mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-14 06:26:13 -04:00
ARM DaVinci: Reset with watchdog enabled
Once the Davinci watchdog has been enabled, the timeout value cannot be changed. If the timeout in use is long, it can take a long time for card to reset. By writing an invalid service key, we can trigger an immediate reset. Signed-off-by: Thomas Lange <thomas@corelatus.se>
This commit is contained in:
parent
6cc7ba9ed4
commit
2ae0f35fd6
@ -50,6 +50,10 @@ reset_cpu:
|
|||||||
str r1, [r0]
|
str r1, [r0]
|
||||||
ldr r1, WDTCR_VAL2
|
ldr r1, WDTCR_VAL2
|
||||||
str r1, [r0]
|
str r1, [r0]
|
||||||
|
/* Write an invalid value to the WDKEY field to trigger
|
||||||
|
* an immediate watchdog reset */
|
||||||
|
mov r1, $0x4000
|
||||||
|
str r1, [r0]
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user