diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-06-09 09:36:56 (GMT) |
---|---|---|
committer | Ian Campbell <ijc@hellion.org.uk> | 2014-07-06 19:12:44 (GMT) |
commit | c7e79dec85f324565cee03f5be1d1a7765481573 (patch) | |
tree | 15381b8ae19d3b4ef99c25d3a9a490e50d317d8d /arch/arm/include/asm/arch-sunxi | |
parent | b6ae6765c5a9e5daa3799e4d65562d3184712506 (diff) | |
download | u-boot-c7e79dec85f324565cee03f5be1d1a7765481573.tar.xz |
sunxi: Implement reset_cpu
There is no way to reset the cpu, so use the watchdog for this.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi')
-rw-r--r-- | arch/arm/include/asm/arch-sunxi/timer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/timer.h b/arch/arm/include/asm/arch-sunxi/timer.h index 6aacfd7..58e14fd 100644 --- a/arch/arm/include/asm/arch-sunxi/timer.h +++ b/arch/arm/include/asm/arch-sunxi/timer.h @@ -11,6 +11,11 @@ #ifndef _SUNXI_TIMER_H_ #define _SUNXI_TIMER_H_ +#define WDT_CTRL_RESTART (0x1 << 0) +#define WDT_CTRL_KEY (0x0a57 << 1) +#define WDT_MODE_EN (0x1 << 0) +#define WDT_MODE_RESET_EN (0x1 << 1) + #ifndef __ASSEMBLY__ #include <linux/types.h> |