Skip to content
Snippets Groups Projects
Commit 49b461f3 authored by Heiko Schocher's avatar Heiko Schocher Committed by Andreas Bießmann
Browse files

arm, at91, wdt: do not disable WDT in SPL


if CONFIG_AT91SAM9_WATCHDOG is set, do not disable WDT in
SPL

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
parent 26961772
No related branches found
No related tags found
No related merge requests found
......@@ -12,12 +12,16 @@
#include <asm/arch/clk.h>
#include <spl.h>
#if defined(CONFIG_AT91SAM9_WATCHDOG)
void at91_disable_wdt(void) { }
#else
void at91_disable_wdt(void)
{
struct at91_wdt *wdt = (struct at91_wdt *)ATMEL_BASE_WDT;
writel(AT91_WDT_MR_WDDIS, &wdt->mr);
}
#endif
u32 spl_boot_device(void)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment