Commit b6a1a19c authored by Zhang Bo's avatar Zhang Bo
Browse files

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: default avatarZhang Bo <>
parent 512bdbb6
...@@ -271,6 +271,11 @@ int arch_cpu_init(void) ...@@ -271,6 +271,11 @@ int arch_cpu_init(void)
imx_set_wdog_powerdown(false); imx_set_wdog_powerdown(false);
/* Enable RTC */
writel(0x21, 0x30370038);
return 0; 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