]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
imx: mx6ull: skip setting ahb clock
authorPeng Fan <van.freenix@gmail.com>
Thu, 11 Aug 2016 06:02:43 +0000 (14:02 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 16 Sep 2016 17:25:40 +0000 (14:25 -0300)
Rom already initialized clock at 396M and 132M for arm core and ahb,
so skip setting them again in U-Boot.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx6/soc.c

index 88fcfdc2aa61641534e18164af74854942d8cf66..af7fca5d67954b3e2c858fd393bfabdbe3f3bb87 100644 (file)
@@ -343,7 +343,7 @@ int arch_cpu_init(void)
         */
        init_bandgap();
 
-       if (!IS_ENABLED(CONFIG_MX6UL)) {
+       if (!is_mx6ul() && !is_mx6ull()) {
                /*
                 * When low freq boot is enabled, ROM will not set AHB
                 * freq, so we need to ensure AHB freq is 132MHz in such