• Peng Fan's avatar
    clk: imx: imx8mq: fix a53 cpu clock · d6fb02f0
    Peng Fan authored
    The A53 CCM clk root only accepts input up to 1GHz, CCM A53 root
    signoff timing is 1Ghz, however the A53 core which sources from CCM
    root could run above 1GHz which violates the CCM.
    
    There is a CORE_SEL slice before A53 core, we need to configure the
    CORE_SEL slice source from ARM PLL, not A53 CCM clk root.
    
    The A53 CCM clk root should only be used when need to change ARM PLL
    frequency.
    
    Add arm_a53_core clk that could source from arm_a53_div and arm_pll_out.
    Configure a53 ccm root sources from 800MHz sys pll
    Configure a53 core sources from arm_pll_out
    Mark arm_a53_core as critical clock
    
    Fixes: db27e40b ("clk: imx8mq: Add the missing ARM clock")
    Reviewed-by: default avatarJacky Bai <ping.bai@nxp.com>
    Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
    Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
    d6fb02f0
clk-imx8mq.c 43.7 KB