ARM: shmobile: r7s72100: fix bus clock calculation
authorWolfram Sang <wsa@sang-engineering.com>
Fri, 28 Feb 2014 09:32:55 +0000 (10:32 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 6 Mar 2014 04:22:02 +0000 (13:22 +0900)
The picture in the datasheet is a little misleading, yet the divider of
the bus_clk is 1/3 and not 2/3.

Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-r7s72100.c

index f17a5db0022155817c46d0b8293c10b69d31f23c..bee0073c9b64f641560c41bf740cde5ce76a7488 100644 (file)
@@ -70,7 +70,7 @@ static struct clk pll_clk = {
 
 static unsigned long bus_recalc(struct clk *clk)
 {
-       return clk->parent->rate * 2 / 3;
+       return clk->parent->rate / 3;
 }
 
 static struct sh_clk_ops bus_clk_ops = {
This page took 0.02499 seconds and 5 git commands to generate.