From ede5b2ccebd7b5e22d38304def6d449aaa8096d3 Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Fri, 8 Jun 2018 18:21:33 +0800 Subject: plat: imx8mm: switch the CKIL clock source to 32K OSC Switch the CKIL clock source to 32K OSC. On i.MX8MM, after SOC PoR, the default clock source for CKIL is from divided 24MHz OSC, as 24MHz OSC will be power down when system enters DSM mdoe. So it is better to use 32K OSC as the default clock source after system bootup. Signed-off-by: Bai Ping --- plat/imx/imx8mm/imx8mm_bl31_setup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plat/imx/imx8mm/imx8mm_bl31_setup.c') diff --git a/plat/imx/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8mm/imx8mm_bl31_setup.c index d2356654..b4ebb60d 100644 --- a/plat/imx/imx8mm/imx8mm_bl31_setup.c +++ b/plat/imx/imx8mm/imx8mm_bl31_setup.c @@ -272,6 +272,9 @@ void bl31_plat_arch_setup(void) void bl31_platform_setup(void) { + /* select the CKIL source to 32K OSC */ + mmio_write_32(0x30360124, 0x1); + /* init the GICv3 cpu and distributor interface */ plat_gic_driver_init(); plat_gic_init(); -- cgit v1.2.3