X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=cpu%2Fsh4%2Fwatchdog.c;h=346e21714fd9a1bd199c7c1cbfd078427b1aacec;hb=56844a22b76c719e600047e23b80465a44d76abd;hp=e2bc8203176370f314046aad06256050332c19cf;hpb=0b135cfc2e524dc249b75057b55dd4cc09842e27;p=u-boot diff --git a/cpu/sh4/watchdog.c b/cpu/sh4/watchdog.c index e2bc820317..346e21714f 100644 --- a/cpu/sh4/watchdog.c +++ b/cpu/sh4/watchdog.c @@ -32,11 +32,13 @@ static void cnt_write (unsigned char value){ while (csr_read() & (1 << 5)) { /* delay */ } - *((volatile unsigned short *)(WDT_BASE + 0x00)) = ((unsigned short) value) | 0x5A00; + *((volatile unsigned short *)(WDT_BASE + 0x00)) + = ((unsigned short) value) | 0x5A00; } static void csr_write (unsigned char value){ - *((volatile unsigned short *)(WDT_BASE + 0x04)) = ((unsigned short) value) | 0xA500; + *((volatile unsigned short *)(WDT_BASE + 0x04)) + = ((unsigned short) value) | 0xA500; } @@ -46,5 +48,3 @@ void reset_cpu (unsigned long ignored) { while(1); } - -