aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorWolfram Sang <wsa@sang-engineering.com>2014-02-28 04:32:55 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-03-05 23:22:02 -0500
commitd93023f81d2c79595e64e4f516f03af4e4c73c13 (patch)
treeac4050e829e0ec09ceaf251b2c70de55463e2c65 /arch/arm/mach-shmobile
parent9ced1d47719b5f32e4231338dd362c136518ed08 (diff)
ARM: shmobile: r7s72100: fix bus clock calculation
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>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/clock-r7s72100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c
index f17a5db00221..bee0073c9b64 100644
--- a/arch/arm/mach-shmobile/clock-r7s72100.c
+++ b/arch/arm/mach-shmobile/clock-r7s72100.c
@@ -70,7 +70,7 @@ static struct clk pll_clk = {
70 70
71static unsigned long bus_recalc(struct clk *clk) 71static unsigned long bus_recalc(struct clk *clk)
72{ 72{
73 return clk->parent->rate * 2 / 3; 73 return clk->parent->rate / 3;
74} 74}
75 75
76static struct sh_clk_ops bus_clk_ops = { 76static struct sh_clk_ops bus_clk_ops = {