MLK-11679: IPU: Fix ldb0 can not work issue
authorSandor Yu <R01008@freescale.com>
Fri, 9 Oct 2015 09:25:17 +0000 (17:25 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:48 +0000 (14:48 -0500)
LVDS0 can not work on imx6q auto and SDB board,
it is caused by ldb0 clock setting is missed in ipu driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/mxc/ipu3/ipu_disp.c

index a983ba7..fa73bfa 100644 (file)
@@ -1108,7 +1108,7 @@ int32_t ipu_init_sync_panel(struct ipu_soc *ipu, int disp, uint32_t pixel_clk,
                dev_err(ipu->dev, "clk_get di1 failed");
                return PTR_ERR(ldb_di1_clk);
        }
-       if (!strcmp(__clk_get_name(di_parent), __clk_get_name(ldb_di1_clk)) ||
+       if (!strcmp(__clk_get_name(di_parent), __clk_get_name(ldb_di0_clk)) ||
                !strcmp(__clk_get_name(di_parent), __clk_get_name(ldb_di1_clk))) {
                /* if di clk parent is tve/ldb, then keep it;*/
                dev_dbg(ipu->dev, "use special clk parent\n");