summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-sa1100/clock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c
index e8691921c69a..c4356e620c0f 100644
--- a/arch/arm/mach-sa1100/clock.c
+++ b/arch/arm/mach-sa1100/clock.c
@@ -12,7 +12,6 @@
#include <linux/spinlock.h>
#include <mach/hardware.h>
-#include <mach/generic.h>
static const char * const clk_tucr_parents[] = {
"clk32768", "clk3686400",
@@ -66,12 +65,12 @@ static const struct clk_init_data clk_gpio27_init_data __initconst = {
* Derived from the table 8-1 in the SA1110 manual, the MPLL appears to
* multiply its input rate by 4 x (4 + PPCR). This calculation gives
* the exact rate. The figures given in the table are the rates rounded
- * to 100kHz. Stick with sa11x0_getspeed() for the time being.
+ * to 100kHz.
*/
static unsigned long clk_mpll_recalc_rate(struct clk_hw *hw,
unsigned long prate)
{
- return sa11x0_getspeed(0) * 1000;
+ return prate * 4 * (4 + (PPCR & 15));
}
static const struct clk_ops clk_mpll_ops = {