Commit 214c6a7e authored by Eric Miao's avatar Eric Miao

[ARM] sa1100_wdt: use reset_status to remember watchdog reset status

Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
parent 04fef228
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include <asm/arch/pxa-regs.h> #include <asm/arch/pxa-regs.h>
#endif #endif
#include <asm/arch/reset.h>
#include <asm/hardware.h> #include <asm/hardware.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -162,7 +164,8 @@ static int __init sa1100dog_init(void) ...@@ -162,7 +164,8 @@ static int __init sa1100dog_init(void)
* we suspend, RCSR will be cleared, and the watchdog * we suspend, RCSR will be cleared, and the watchdog
* reset reason will be lost. * reset reason will be lost.
*/ */
boot_status = (RCSR & RCSR_WDR) ? WDIOF_CARDRESET : 0; boot_status = (reset_status & RESET_STATUS_WATCHDOG) ?
WDIOF_CARDRESET : 0;
pre_margin = OSCR_FREQ * margin; pre_margin = OSCR_FREQ * margin;
ret = misc_register(&sa1100dog_miscdev); ret = misc_register(&sa1100dog_miscdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment