summaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91/spl_at91.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-05-10 07:15:52 -0400
committerTom Rini <trini@konsulko.com>2018-05-22 22:08:57 -0400
commitf58e94602edda7aaa0173e1437bf5972004e133d (patch)
tree59ea18d2fa223f2ce370bf510dc8ee19f7dfa36d /arch/arm/mach-at91/spl_at91.c
parent668e309eff0c54891264903bcbb498d645f090b4 (diff)
at91: Minor tweaks to SPL logic for space savings on smartweb
- spl_board_init is empty on smartweb so drop that function - When CONFIG_AT91SAM9_WATCHDOG is set we do not disable the watchdog in SPL and instead let full U-Boot handle it. Instead of an empty function just do not call a function. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-at91/spl_at91.c')
-rw-r--r--arch/arm/mach-at91/spl_at91.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/arm/mach-at91/spl_at91.c
index d701c3586d..8c368042a6 100644
--- a/arch/arm/mach-at91/spl_at91.c
+++ b/arch/arm/mach-at91/spl_at91.c
@@ -76,7 +76,9 @@ void __weak spl_board_init(void)
void board_init_f(ulong dummy)
{
lowlevel_clock_init();
+#if !defined(CONFIG_AT91SAM9_WATCHDOG)
at91_disable_wdt();
+#endif
/*
* At this stage the main oscillator is supposed to be enabled