mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
arm, at91, wdt: do not disable WDT in SPL
if CONFIG_AT91SAM9_WATCHDOG is set, do not disable WDT in SPL Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
26961772ff
commit
49b461f34a
1 changed files with 4 additions and 0 deletions
|
@ -12,12 +12,16 @@
|
||||||
#include <asm/arch/clk.h>
|
#include <asm/arch/clk.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_AT91SAM9_WATCHDOG)
|
||||||
|
void at91_disable_wdt(void) { }
|
||||||
|
#else
|
||||||
void at91_disable_wdt(void)
|
void at91_disable_wdt(void)
|
||||||
{
|
{
|
||||||
struct at91_wdt *wdt = (struct at91_wdt *)ATMEL_BASE_WDT;
|
struct at91_wdt *wdt = (struct at91_wdt *)ATMEL_BASE_WDT;
|
||||||
|
|
||||||
writel(AT91_WDT_MR_WDDIS, &wdt->mr);
|
writel(AT91_WDT_MR_WDDIS, &wdt->mr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
u32 spl_boot_device(void)
|
u32 spl_boot_device(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue