Skip to contentSkip to conversation

ARM: r7s72100: fix bus clock calculation

PATCH Simon Horman 1 participant 1 message Mar 6, 2014 SuperH

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · Wolfram Sang

From: Wolfram Sang <[email protected]>

The picture in the datasheet is a little misleading, yet the divider of the bus_clk is 1/3 and not 2/3.

Thanks, I have queued this up with "shmobile: " inserted into the subject.

Quoted 25 lines
---
 arch/arm/mach-shmobile/clock-r7s72100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/clock-r7s72100.c +1 -1
index f17a5db..bee0073 100644
@@ -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 = {
Signature · 6 lines
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html