MA-9554[Android_6DL_SD]RTC: Sometimes the RTC reset to the initial time 1970 after...
authorZhang Bo <bo.zhang@nxp.com>
Thu, 7 Sep 2017 10:57:57 +0000 (18:57 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:17 +0000 (02:37 +0800)
commit4d9eb77533496173b5b88146c9c79cf5c66f4a44
tree480496652707d45c1744449b8f2d6cfae5f21642
parent4a769ff7a8430cd8233d8a8578f6dea42fa834bb
MA-9554[Android_6DL_SD]RTC: Sometimes the RTC reset to the initial time 1970 after softare reboot the first time. 40%

RTC timer is default disabled after power off and bootup again. it will be
enabled in kernel rtc driver init. But rtc time is shorter than system clock,
so rtc time cannot update to system clock in rtc_hctosys(), and the sysfs
file /sys/class/rtc/rtc0/hctosys cat result is 0. Android AlarmManagerService
cannot work normally when hctosys is 0.
Enable RTC in u-boot so the time in RTC timer is longer than system clock.

Change-Id: Ie8b1c1b36e5ab48031efe44dd06468ac35ca3d3b
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
arch/arm/cpu/armv7/mx6/soc.c
arch/arm/cpu/armv7/mx7/soc.c
arch/arm/cpu/armv7/mx7ulp/soc.c