Vineet Gupta | d8005e6 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #include <asm/clk.h> |
| 10 | |
Noam Camus | 68e4790e | 2013-02-26 09:27:59 +0200 | [diff] [blame] | 11 | unsigned long core_freq = 80000000; |
Vineet Gupta | 450dd43 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 12 | |
| 13 | /* |
| 14 | * As of now we default to device-tree provided clock |
| 15 | * In future we can determine this in early boot |
| 16 | */ |
| 17 | int arc_set_core_freq(unsigned long freq) |
| 18 | { |
| 19 | core_freq = freq; |
| 20 | return 0; |
| 21 | } |