Now the values in the defines agree with those in the manuals.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Tom Rini <trini@ti.com>
Cc: Heiko Schocher <hs@denx.de>
#define RTC_STATE_BUSY 0x01
#define RTC_STATE_RUN 0x02
-#define RTC_KICK0R_WE 0x130be783
-#define RTC_KICK1R_WE 0xe0f1a495
+#define RTC_KICK0R_WE 0x83e70b13
+#define RTC_KICK1R_WE 0x95a4f1e0
#define davinci_rtc_base ((struct davinci_rtc *)DAVINCI_RTC_BASE)
* for RTC Scratch registers. Cratch0 and 1 are
* used for bootcount values.
*/
- out_be32(®->kick0r, RTC_KICK0R_WE);
- out_be32(®->kick1r, RTC_KICK1R_WE);
+ writel(RTC_KICK0R_WE, ®->kick0r);
+ writel(RTC_KICK1R_WE, ®->kick1r);
out_be32(®->scratch0, a);
out_be32(®->scratch1, BOOTCOUNT_MAGIC);
}