Following Linux, set GIC clk to 500M. If U-Boot has different settings
compared with kernel required, kernel will dump. However we could not
let kernel runtime change GIC clk parents, because it is CLK_IS_CRITICAL
and CLK_SET_PARENT_GATE, it will always fail. There is no otherway
to address the issue unless let U-Boot configure it ready.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b6ddbcb9dc61e8822899349fc516d06941e7efd6)
(cherry picked from commit
081c11af7ac49865f6bd0026dd8c7ca2c00394fb)
#ifdef CONFIG_IMX8MP
/* 8MP ROM already set NOC to 800Mhz, only need to configure NOC_IO clk to 600Mhz */
- /* 8MP ROM already set GIC to 400Mhz, system_pll1_800m with div = 2 */
clock_set_target_val(NOC_IO_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(2));
+ clock_enable(CCGR_GIC, 0);
+ clock_set_target_val(GIC_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(5));
+ clock_enable(CCGR_GIC, 1);
#else
clock_set_target_val(NOC_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(2));