• Peng Fan's avatar
    clk: imx: add mcore_booted module paratemter · 19565ea1
    Peng Fan authored
    Add mcore_booted boot parameter which could simplify AMP clock
    management. To i.MX8M, there is CCM(clock control Module) to generate
    clock root clock, anatop(analog PLL module) to generate PLL, and CCGR
    (clock gating) to gate clocks to peripherals. As below:
      anatop->ccm->ccgr->peripheral
    
    Linux handles the clock management and the auxiliary core is under
    control of Linux. Although there is per hardware domain control for CCGR
    and CCM, auxiliary core normally only use CCGR hardware domain control
    to avoid linux gate off the clk to peripherals and leave CCM ana anatop
    to Linux.
    
    Per NXP hardware design, because CCGR already support gate to
    peripherals, and clk root gate power leakage is negligible. So
    when in AMP case, we could not register the clk root gate.
    Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
    Reviewed-by: default avatarAbel Vesa <abel.vesa@nxp.com>
    Link: https://lore.kernel.org/r/20220228124112.3974242-1-peng.fan@oss.nxp.comSigned-off-by: default avatarAbel Vesa <abel.vesa@nxp.com>
    19565ea1
clk.h 15.6 KB