MLK-20602 imx8mq: Change clock source of GIC
authorBai Ping <ping.bai@nxp.com>
Mon, 17 Dec 2018 08:10:37 +0000 (16:10 +0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:39:11 +0000 (02:39 -0700)
Change the the GIC clock source to sys_pll2_200m.
Improve the IRQ response latency.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit f4c76d52da9c272b275adf26145d033099cd1974)

arch/arm/mach-imx/imx8m/clock_imx8mq.c

index 42118f5..9578f4e 100644 (file)
@@ -840,6 +840,11 @@ int clock_init(void)
        clock_enable(CCGR_TSENSOR, 1);
        clock_enable(CCGR_OCOTP, 1);
 
+       /* config GIC to sys_pll2_200m */
+       clock_enable(CCGR_GIC, 0);
+       clock_set_target_val(GIC_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(1));
+       clock_enable(CCGR_GIC, 1);
+
        return 0;
 }
 #endif