]> git.sur5r.net Git - u-boot/commitdiff
imx: mx6sx: Fix issue in LCDIF clock enablement
authorYe Li <ye.li@nxp.com>
Tue, 26 Jan 2016 14:01:57 +0000 (22:01 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 2 Feb 2016 20:25:05 +0000 (21:25 +0100)
Wrong checking for the base_addr paramter with LCDIF1 and LCDIF2. Always
enter the -EINVAL return.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx6/clock.c

index 27a3f2f4e68fc9af0b9838d91b0579a847bd5643..007204dd4d40a9f4b7445137ebae4f6825b56b5f 100644 (file)
@@ -742,8 +742,8 @@ int enable_lcdif_clock(u32 base_addr)
        u32 lcdif_clk_sel_mask, lcdif_ccgr3_mask;
 
        if (is_cpu_type(MXC_CPU_MX6SX)) {
-               if ((base_addr == LCDIF1_BASE_ADDR) ||
-                   (base_addr == LCDIF2_BASE_ADDR)) {
+               if ((base_addr != LCDIF1_BASE_ADDR) &&
+                   (base_addr != LCDIF2_BASE_ADDR)) {
                        puts("Wrong LCD interface!\n");
                        return -EINVAL;
                }