diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2011-12-21 04:49:18 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-01-16 08:40:10 +0100 |
commit | a601bed0652de9e5f75e153bb511964b381895e5 (patch) | |
tree | aabbcce98cc98ff072f63bb39a33643f7260713c | |
parent | 1378cac6694dc5826589c732f83c9e416edcee84 (diff) | |
download | u-boot-imx-a601bed0652de9e5f75e153bb511964b381895e5.zip u-boot-imx-a601bed0652de9e5f75e153bb511964b381895e5.tar.gz u-boot-imx-a601bed0652de9e5f75e153bb511964b381895e5.tar.bz2 |
arm, davinci: Change byte order of RTC kick register values
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>
-rw-r--r-- | arch/arm/include/asm/arch-davinci/hardware.h | 4 | ||||
-rw-r--r-- | board/enbw/enbw_cmc/enbw_cmc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/include/asm/arch-davinci/hardware.h b/arch/arm/include/asm/arch-davinci/hardware.h index dd89e84..1c71540 100644 --- a/arch/arm/include/asm/arch-davinci/hardware.h +++ b/arch/arm/include/asm/arch-davinci/hardware.h @@ -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) diff --git a/board/enbw/enbw_cmc/enbw_cmc.c b/board/enbw/enbw_cmc/enbw_cmc.c index 5cd5357..98dda1e 100644 --- a/board/enbw/enbw_cmc/enbw_cmc.c +++ b/board/enbw/enbw_cmc/enbw_cmc.c @@ -526,8 +526,8 @@ void bootcount_store(ulong a) * 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); } |