diff options
author | Moshe Piekarski <dev.rockbox@melachim.net> | 2020-07-27 15:25:06 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-27 21:03:39 +0000 |
commit | 7f282b9280cbbee697572b1178d6a5ee5b142d97 (patch) | |
tree | 8a5fd7fb7ba4682fe9233d47afabd06eeb1fc59f | |
parent | cda5b055fe8399ca3565adee9a4a832fe9f489ed (diff) | |
download | rockbox-7f282b9.tar.gz rockbox-7f282b9.zip |
imx233: rtc: Initialize PERSISTENT0 register
Prevents the rtc from breaking on power removal
Change-Id: I1e434285ccc27d864d2fd9454993d02cae32711d
-rw-r--r-- | firmware/target/arm/imx233/rtc-imx233.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/rtc-imx233.h b/firmware/target/arm/imx233/rtc-imx233.h index c6138efbb6..bc9e8e0c1e 100644 --- a/firmware/target/arm/imx233/rtc-imx233.h +++ b/firmware/target/arm/imx233/rtc-imx233.h @@ -84,6 +84,7 @@ static inline void imx233_rtc_init(void) BF_CLR(RTC_CTRL, SFTRST); udelay(5); /* only need 3 GPMI clocks (1us) */ BF_CLR(RTC_CTRL, CLKGATE); + HW_RTC_PERSISTENT0_SET=0x082114; imx233_rtc_enable_watchdog(false); } |