]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
arm, davinci: Change byte order of RTC kick register values
authorChristian Riesch <christian.riesch@omicron.at>
Wed, 21 Dec 2011 04:49:18 +0000 (04:49 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Jan 2012 07:40:10 +0000 (08:40 +0100)
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>
arch/arm/include/asm/arch-davinci/hardware.h
board/enbw/enbw_cmc/enbw_cmc.c

index dd89e84413bb4e890c556d30dd37148610038ffb..1c71540e481fb249879ab0d1c455e673d17cb9d3 100644 (file)
@@ -622,8 +622,8 @@ struct davinci_rtc {
 #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)
 
index 5cd5357bcd1f755664aa8e600fbfa838b58b099d..98dda1eada77d70f5131aaec7e16e085774079a9 100644 (file)
@@ -526,8 +526,8 @@ void bootcount_store(ulong a)
         * for RTC Scratch registers. Cratch0 and 1 are
         * used for bootcount values.
         */
-       out_be32(&reg->kick0r, RTC_KICK0R_WE);
-       out_be32(&reg->kick1r, RTC_KICK1R_WE);
+       writel(RTC_KICK0R_WE, &reg->kick0r);
+       writel(RTC_KICK1R_WE, &reg->kick1r);
        out_be32(&reg->scratch0, a);
        out_be32(&reg->scratch1, BOOTCOUNT_MAGIC);
 }