2013-01-18 09:42:18 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm/clk.h>
|
|
|
|
|
2013-02-26 07:27:59 +00:00
|
|
|
unsigned long core_freq = 80000000;
|
2013-01-18 09:42:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* As of now we default to device-tree provided clock
|
|
|
|
* In future we can determine this in early boot
|
|
|
|
*/
|
|
|
|
int arc_set_core_freq(unsigned long freq)
|
|
|
|
{
|
|
|
|
core_freq = freq;
|
|
|
|
return 0;
|
|
|
|
}
|