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 <ping.bai@nxp.com>
(cherry picked from commit ede5b2ccebd7b5e22d38304def6d449aaa8096d3)
diff --git a/plat/imx/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8mm/imx8mm_bl31_setup.c
index 241d8fa..c6baf85 100644
--- a/plat/imx/imx8mm/imx8mm_bl31_setup.c
+++ b/plat/imx/imx8mm/imx8mm_bl31_setup.c
@@ -262,6 +262,9 @@
 
 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();