cns3xxx: fix uImage build issue
[openwrt.git] / package / boot / uboot-sunxi / patches / 003-sun5i-tweak-pll6-init-value.patch
1 From 8f70a049daa30be894158411439a36f920f0d11c Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Wed, 15 Jan 2014 20:13:04 +0100
4 Subject: [PATCH] sun5i: Tweak pll6 init value
5
6 There are multiple ways to get 600 MHz from PLL6, the sun5i ccmu is very
7 similar to the sun4i and sun7i ccmu.
8
9 This commit changes the PLL6 initialization we do for sun5i to make the PLL6
10 reg value match that of sun4i and sun7i. This also makes it closer to the
11 sun5i power on default, as we are now only changing the K-factor from 3 to 1.
12
13 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 ---
15  arch/arm/cpu/armv7/sunxi/clock.c | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/arch/arm/cpu/armv7/sunxi/clock.c b/arch/arm/cpu/armv7/sunxi/clock.c
19 index b9dd608..54b8753 100644
20 --- a/arch/arm/cpu/armv7/sunxi/clock.c
21 +++ b/arch/arm/cpu/armv7/sunxi/clock.c
22 @@ -46,7 +46,7 @@ static void clock_init_safe(void)
23  #ifdef CONFIG_SUN5I
24         /* Power on reset default for PLL6 is 2400 MHz, which is faster then
25          * it can reliable do :|  Set it to a 600 MHz instead. */
26 -       writel(0x21009900, &ccm->pll6_cfg);
27 +       writel(0x21009911, &ccm->pll6_cfg);
28  #endif
29  #ifdef CONFIG_SUN7I
30         writel(0x1 << 6 | readl(&ccm->ahb_gate0), &ccm->ahb_gate0);
31 -- 
32 1.8.5.1
33