sh: fix sh7785 master clock value
PATCH 1/1 sh: fix sh7785 master clock value
Signed-off-by Yoshihiro Shimoda <[email protected]>
--- arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/kernel/cpu/sh4a/clock-sh7785.c +1 -1
@@ -26,7 +26,7 @@ static int pfc_divisors[] = { 1, 1, 1, 1, 1, 1, 1, 18,static void master_clk_init (struct clk *clk) { - clk->rate *=36 ; + clk->rate *= pfc_divisors[ctrl_inl (FRQMR1 ) &0x000f ]; }static struct clk_ops sh7785_master_clk_ops = {
Paul Mundt
AppliedQuoted 11 lines · Yoshihiro Shimoda
Signed-off-by Yoshihiro Shimoda <[email protected]>--- arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/sh/kernel/cpu/sh4a/clock-sh7785.c +0
-0
arch/sh/kernel/cpu/sh4a/clock-sh7785.c static int pfc_divisors[] = { 1, 1, 1, 1, 1, 1, 1, 18, · line 32
Quoted 8 lines
arch/sh/kernel/cpu/sh4a/clock-sh7785.c +1
-1@@ -26,7 +26,7 @@ static int pfc_divisors[] = { 1, 1, 1, 1, 1, 1, 1, 18,static void master_clk_init (struct clk *clk) { - clk->rate *=36 ; + clk->rate *= pfc_divisors[ctrl_inl (FRQMR1 ) &0x000f ]; }static struct clk_ops sh7785_master_clk_ops = {
Applied, thanks.