summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorMoshe Piekarski <dev.rockbox@melachim.net>2020-07-27 15:25:06 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-27 21:03:39 +0000
commit7f282b9280cbbee697572b1178d6a5ee5b142d97 (patch)
tree8a5fd7fb7ba4682fe9233d47afabd06eeb1fc59f /firmware/target/arm
parentcda5b055fe8399ca3565adee9a4a832fe9f489ed (diff)
downloadrockbox-7f282b9280cbbee697572b1178d6a5ee5b142d97.tar.gz
rockbox-7f282b9280cbbee697572b1178d6a5ee5b142d97.tar.bz2
rockbox-7f282b9280cbbee697572b1178d6a5ee5b142d97.zip
imx233: rtc: Initialize PERSISTENT0 register
Prevents the rtc from breaking on power removal Change-Id: I1e434285ccc27d864d2fd9454993d02cae32711d
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/rtc-imx233.h1
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);
}