clk: imx: imx93: add mcore_booted module paratemter
authorPeng Fan <peng.fan@nxp.com>
Mon, 3 Apr 2023 09:52:58 +0000 (17:52 +0800)
committerAbel Vesa <abel.vesa@linaro.org>
Sun, 9 Apr 2023 13:48:54 +0000 (16:48 +0300)
commita740d7350ff77ce1ebbdc3b9c548dd3bcaf39b31
tree3a4e8616758c5eb541739ca7fcbb9fc552288d9c
parente040897111a12b7647b8f758336b2f14991e9371
clk: imx: imx93: add mcore_booted module paratemter

Add mcore_booted boot parameter which could simplify AMP clock
management. To i.MX93, there is CCM(clock control Module) to generate
clock root clock, anatop(analog PLL module) to generate PLL, and LPCG
(clock gating) to gate clocks to peripherals. As below:
anatop->ccm->lpcg->peripheral

Linux handles the clock management and the auxiliary core is under
control of Linux. Although there is per hardware domain control for LPCG
and CCM, auxiliary core normally only use LPCG hardware domain control
to avoid linux gate off the clk to peripherals and leave CCM ana anatop
to Linux.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230403095300.3386988-6-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-composite-93.c
drivers/clk/imx/clk-imx93.c