clk: imx: imx6sx: Allow a different LCDIF1 clock parent
authorFabio Estevam <festevam@denx.de>
Tue, 15 Aug 2023 13:09:23 +0000 (10:09 -0300)
committerAbel Vesa <abel.vesa@linaro.org>
Wed, 4 Oct 2023 12:33:47 +0000 (15:33 +0300)
commit0a22b3a6f446223aff5bcdcc06003ef6e412bfd8
treeaf8d726c5604a1140a88645d89f4738ad938e977
parent577ad169966e6e75b10e004389a3f79813e84b5d
clk: imx: imx6sx: Allow a different LCDIF1 clock parent

It is not a good idea to hardcode the LCDIF1 parent inside the
clock driver because some users may want to use a different clock
parent for LCDIF1. One of the reasons could be related to EMI tests.

Remove the harcoded LCDIF1 parent when the LCDIF1 parent is described
via devicetree.

Old dtb's that do not describe the LCDIF1 parent via devicetree will
use the same PLL5 clock as parent to keep the original behavior.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230815130923.775117-1-festevam@gmail.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-imx6sx.c