Without axi clock, lcdif register access will cause system hang.
This issue happens when this driver built as module.
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
/* TODO: Maybe the clock enable should
* be done in reset driver.
*/
+ clk_prepare_enable(lcdifv3->clk_disp_axi);
clk_prepare_enable(lcdifv3->clk_disp_apb);
writel(CTRL_SW_RESET, lcdifv3->base + LCDIFV3_CTRL_CLR);
if (ret)
dev_warn(dev, "lcdif1 reset failed: %d\n", ret);
+ clk_disable_unprepare(lcdifv3->clk_disp_axi);
clk_disable_unprepare(lcdifv3->clk_disp_apb);
}