summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2019-06-05 16:24:31 +0800
committerJacky Bai <ping.bai@nxp.com>2019-06-10 14:19:35 +0800
commit349857b260e4f33de81fbecb84f52e704d8766c0 (patch)
treee0c670ac4c69c487903eafef4baf2119c828a688 /drivers
parent8c6187d5ba44895ae0c216c95a881f6e78322cfa (diff)
MLK-21954 clk: imx: keep qspi clock always on if m core is enabled
On i.MX8MN, in some user case, M7 will XIP running in QSPI, so need to make sure QSPI clock is always on if M7 is enabled. Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/imx/clk-imx8mn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c
index 785d83ca1357..da06e7e6bdf7 100644
--- a/drivers/clk/imx/clk-imx8mn.c
+++ b/drivers/clk/imx/clk-imx8mn.c
@@ -587,6 +587,9 @@ static void __init imx8mn_clocks_init(struct device_node *ccm_node)
for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
clk_prepare_enable(clks[clks_init_on[i]]);
+ if(imx_src_is_m4_enabled())
+ clk_prepare_enable(clks[IMX8MN_CLK_QSPI_ROOT]);
+
clk_set_parent(clks[IMX8MN_CLK_AUDIO_AHB], clks[IMX8MN_SYS_PLL1_800M]);
clk_set_rate(clks[IMX8MN_CLK_AUDIO_AHB], 400000000);
clk_set_rate(clks[IMX8MN_CLK_IPG_AUDIO_ROOT], 400000000);