diff options
author | Boschung, Rainer <Rainer.Boschung@keymile.com> | 2014-06-03 07:05:16 (GMT) |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-08-01 21:18:34 (GMT) |
commit | 88ac6ffabbe741b67ea94e33894fb1fdca57e776 (patch) | |
tree | df8829e245fd1b84e6beb1fdd252d2222f876b8f /include/configs/km/kmp204x-common.h | |
parent | 919e05520fbf5c32d3a5d19756449dfd4706cd94 (diff) | |
download | u-boot-88ac6ffabbe741b67ea94e33894fb1fdca57e776.tar.xz |
kmp204x: CPU watchdog enabled
The booting of the board is now protected by the CPU watchdog.
A failure during the boot phase will end up in board reset.
Signed-off-by: Rainer Boschung <rainer.boschung@keymile.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/configs/km/kmp204x-common.h')
-rw-r--r-- | include/configs/km/kmp204x-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h index efd9635..a0f9d29 100644 --- a/include/configs/km/kmp204x-common.h +++ b/include/configs/km/kmp204x-common.h @@ -377,6 +377,14 @@ int get_scl(void); #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */ /* + * Hardware Watchdog + */ +#define CONFIG_WATCHDOG /* enable CPU watchdog */ +#define CONFIG_WATCHDOG_PRESC 34 /* wdog prescaler 2^(64-34) (~10min) */ +#define CONFIG_WATCHDOG_RC WRC_CHIP /* reset chip on watchdog event */ + + +/* * additionnal command line configuration. */ #define CONFIG_CMD_PCI |