]> git.sur5r.net Git - u-boot/commit
MX31: add support for MX31 watchdog
authorStefano Babic <sbabic@denx.de>
Wed, 2 Feb 2011 00:49:36 +0000 (00:49 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 27 Apr 2011 17:38:04 +0000 (19:38 +0200)
commit2cf36ae7cf897b2a942db98e9e826539961fb55d
treee4a85cdaa7d82e8a53cee22f47487c60b90a4169
parentc7bdcb61f3680c897e59b5ea554da363d7d21ed7
MX31: add support for MX31 watchdog

The patch add CONFIG_HW_WATCHDOG to be used
with the internal watchdog timer of the MX31
processor. Two function are exported for the
board maintainers:
mxc_hw_watchdog_enable
mxc_hw_watchdog_reset

The board maintainer can decide to use mxc_hw_watchdog_reset as
hw_watchdog_reset, or to implement his own function to reset
the watchdog.
The watchdog timer can be configured with CONFIG_SYS_WD_TIMER_SECS
(value in seconds). The MX31 allows values between 0.5
(CONFIG_SYS_WD_TIMER_SECS = 0) and 128 seconds.

Signed-off-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm1136/mx31/timer.c
arch/arm/include/asm/arch-mx31/mx31-regs.h