Commit b6a1a19c authored by Zhang Bo's avatar Zhang Bo

MA-12536[Android] Enable RTC for imx8m in uboot

Enable RTC in bootloader to avoid rtc time less than jiffies time
when linux first bootup after RTC lose power.
It will cause the issue as
MA-9554[Android_6DL_SD]RTC: Sometimes the RTC reset to the initial
time 1970 after softare reboot the first time. 40%

Change-Id: I0c87180640be98a2c928a30c6949f91f4515844d
Signed-off-by: 's avatarZhang Bo <bo.zhang@nxp.com>
parent 512bdbb6
......@@ -271,6 +271,11 @@ int arch_cpu_init(void)
imx_set_wdog_powerdown(false);
#if defined(CONFIG_ANDROID_SUPPORT)
/* Enable RTC */
writel(0x21, 0x30370038);
#endif
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment