]> git.sur5r.net Git - u-boot/commitdiff
imx: mx6: support i.MX6SOLO when enable/disable_ldb_di_clock_sources
authorPeng Fan <van.freenix@gmail.com>
Mon, 23 May 2016 10:35:53 +0000 (18:35 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 24 May 2016 12:59:56 +0000 (14:59 +0200)
i.MX6DL and i.MX6SOLO work the same, add i.MX6SOLO support
when enable/disable_ldb_di_clock_sources.

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

index e6f227548afeae90487a3f8353daadb51adf7130..a850d1a232489c6250a84d457eaf0b7c9f95c238 100644 (file)
@@ -1228,7 +1228,7 @@ static void disable_ldb_di_clock_sources(void)
        /* Make sure PFDs are disabled at boot. */
        reg = readl(&mxc_ccm->analog_pfd_528);
        /* Cannot disable pll2_pfd2_396M, as it is the MMDC clock in iMX6DL */
-       if (is_cpu_type(MXC_CPU_MX6DL))
+       if (is_cpu_type(MXC_CPU_MX6DL) || is_cpu_type(MXC_CPU_MX6SOLO))
                reg |= 0x80008080;
        else
                reg |= 0x80808080;
@@ -1251,7 +1251,7 @@ static void enable_ldb_di_clock_sources(void)
        int reg;
 
        reg = readl(&mxc_ccm->analog_pfd_528);
-       if (is_cpu_type(MXC_CPU_MX6DL))
+       if (is_cpu_type(MXC_CPU_MX6DL) || is_cpu_type(MXC_CPU_MX6SOLO))
                reg &= ~(0x80008080);
        else
                reg &= ~(0x80808080);