]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: mx6ul: skip setting ahb rate
authorPeng Fan <van.freenix@gmail.com>
Wed, 9 Mar 2016 08:44:36 +0000 (16:44 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 25 Mar 2016 12:56:40 +0000 (13:56 +0100)
To i.MX6UL, default ARM rate and AHB rate is 396M and 198M,
no need to set them.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx6/soc.c

index bdd41b07f4189c1b534cc3b73160cd5367940356..f29901f8cc70ee36f2ce96b1a94203e8d908874b 100644 (file)
@@ -328,13 +328,18 @@ int arch_cpu_init(void)
         */
        init_bandgap();
 
-       /*
-        * When low freq boot is enabled, ROM will not set AHB
-        * freq, so we need to ensure AHB freq is 132MHz in such
-        * scenario.
-        */
-       if (mxc_get_clock(MXC_ARM_CLK) == 396000000)
-               set_ahb_rate(132000000);
+       if (!IS_ENABLED(CONFIG_MX6UL)) {
+               /*
+                * When low freq boot is enabled, ROM will not set AHB
+                * freq, so we need to ensure AHB freq is 132MHz in such
+                * scenario.
+                *
+                * To i.MX6UL, when power up, default ARM core and
+                * AHB rate is 396M and 132M.
+                */
+               if (mxc_get_clock(MXC_ARM_CLK) == 396000000)
+                       set_ahb_rate(132000000);
+       }
 
                /* Set perclk to source from OSC 24MHz */
 #if defined(CONFIG_MX6SL)