| From eca5e076aea7678a163a700d882a6f2436499baf Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Tue, 19 Nov 2013 01:04:20 -0800 |
| Subject: ARM: shmobile: r8a7790: care EXTAL divider settings |
| |
| EXTAL clock frequency needs 1/2 when |
| (MD14, MD13, MD19) = (1, x, x). |
| |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| (cherry picked from commit 31ac8e47e9060a9b27ac955d387264b3b6b76bec) |
| (Queued by ARM-SoC for v3.14 but not yet in Linus's tree) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/mach-shmobile/clock-r8a7790.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c |
| index d6669e946eef..3f483f8734fa 100644 |
| --- a/arch/arm/mach-shmobile/clock-r8a7790.c |
| +++ b/arch/arm/mach-shmobile/clock-r8a7790.c |
| @@ -329,10 +329,10 @@ void __init r8a7790_clock_init(void) |
| R8A7790_CLOCK_ROOT(20, &extal_clk, 130, 156, 80, 66); |
| break; |
| case MD(14): |
| - R8A7790_CLOCK_ROOT(26, &extal_div2_clk, 200, 240, 122, 102); |
| + R8A7790_CLOCK_ROOT(26 / 2, &extal_div2_clk, 200, 240, 122, 102); |
| break; |
| case MD(13) | MD(14): |
| - R8A7790_CLOCK_ROOT(30, &extal_div2_clk, 172, 208, 106, 88); |
| + R8A7790_CLOCK_ROOT(30 / 2, &extal_div2_clk, 172, 208, 106, 88); |
| break; |
| } |
| |
| -- |
| 1.8.5.rc3 |
| |