MLK-18367 imx8mm: change the GIC clock source

The GIC clock rate has some limitation, it should be
set to higher than 100MHz when NOC frequency is set to
the highest frequency. So switch the GIC clock source
to sys_pll2_100mhz.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit bd4cfcb391389287894bb5cd715be0a67f6332cf)
This commit is contained in:
Bai Ping 2018-05-22 14:49:54 +08:00 committed by Ye Li
parent 95e018dc7e
commit d27ca2cade
1 changed files with 6 additions and 2 deletions

View File

@ -488,8 +488,6 @@ int clock_init()
{
uint32_t val_cfg0;
clock_enable(CCGR_GIC, 1);
/* Configure ARM at 1GHz */
clock_set_target_val(ARM_A53_CLK_ROOT, CLK_ROOT_ON | \
CLK_ROOT_SOURCE_SEL(0));
@ -523,6 +521,12 @@ int clock_init()
writel(val_cfg0, SYS_PLL2_GNRL_CTL);
intpll_configure(ANATOP_SYSTEM_PLL3, INTPLL_OUT_800M);
/* config GIC to sys_pll2_100m */
clock_enable(CCGR_GIC, 0);
clock_set_target_val(GIC_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(3));
clock_enable(CCGR_GIC, 1);
/*
* set uart clock root
* 24M OSC