summaryrefslogtreecommitdiff
path: root/cpu/sh4/watchdog.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-12-27 01:52:50 +0100
committerWolfgang Denk <wd@denx.de>2007-12-27 01:52:50 +0100
commit61fb15c516fef5631e305f1976d7b3a679725856 (patch)
tree3b3e66c90349f1b5df7c2a05dd47c11f42eb58bd /cpu/sh4/watchdog.c
parent6e1bbe6e3edf5f508de89114577ce7b7caa89c8a (diff)
downloadu-boot-imx-61fb15c516fef5631e305f1976d7b3a679725856.zip
u-boot-imx-61fb15c516fef5631e305f1976d7b3a679725856.tar.gz
u-boot-imx-61fb15c516fef5631e305f1976d7b3a679725856.tar.bz2
Fix coding style issues; update CHANGELOG.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/sh4/watchdog.c')
-rw-r--r--cpu/sh4/watchdog.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpu/sh4/watchdog.c b/cpu/sh4/watchdog.c
index 04723a7..346e217 100644
--- a/cpu/sh4/watchdog.c
+++ b/cpu/sh4/watchdog.c
@@ -32,12 +32,12 @@ static void cnt_write (unsigned char value){
while (csr_read() & (1 << 5)) {
/* delay */
}
- *((volatile unsigned short *)(WDT_BASE + 0x00))
+ *((volatile unsigned short *)(WDT_BASE + 0x00))
= ((unsigned short) value) | 0x5A00;
}
static void csr_write (unsigned char value){
- *((volatile unsigned short *)(WDT_BASE + 0x04))
+ *((volatile unsigned short *)(WDT_BASE + 0x04))
= ((unsigned short) value) | 0xA500;
}
@@ -48,5 +48,3 @@ void reset_cpu (unsigned long ignored)
{
while(1);
}
-
-