aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-08-16 09:54:05 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-17 03:23:48 -0400
commitc96c1e394fa72bd995154af7143873945a3fa89d (patch)
treeb0907d87a40b7927dfd99ebc2bfe09484ae0a623 /arch/arm/mach-mx3
parent9a6f17fd1cd84811962735ff47111f84a8f05073 (diff)
clock-imx35: fix divider if ahb is source for ipg_per
According to the Datasheet: "i.MX35 (MCIMX35) Multimedia Applications Processor Reference Manual, Rev. 2" "Table 14-6. PDR0 Field Descriptions" the divider is CCM_PER_AHB[3:0] + 1. This patch adds the missing + 1. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/clock-imx35.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c
index d3a8d3f32160..e582ceb6e0c1 100644
--- a/arch/arm/mach-mx3/clock-imx35.c
+++ b/arch/arm/mach-mx3/clock-imx35.c
@@ -292,7 +292,7 @@ static unsigned long get_rate_ipg_per(struct clk *clk)
292 return get_rate_arm() / (div + 1); 292 return get_rate_arm() / (div + 1);
293 } else { 293 } else {
294 div = (pdr0 >> 12) & 0x7; 294 div = (pdr0 >> 12) & 0x7;
295 return get_rate_ahb(NULL) / div; 295 return get_rate_ahb(NULL) / (div + 1);
296 } 296 }
297} 297}
298 298