]> git.baikalelectronics.ru Git - uboot.git/commit
watchdog: Handle SPL build with watchdog disabled
authorStefan Roese <sr@denx.de>
Tue, 2 Apr 2019 08:57:18 +0000 (10:57 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 9 Apr 2019 06:28:50 +0000 (09:28 +0300)
commit85b14f6c93756dd6b7dc0997e4d5a61c55f3641b
tree3e28c46857cad16c1f45a825f58e1430fc7915a9
parentdae12f6bcd9aaa134bdec4146de004712a182fac
watchdog: Handle SPL build with watchdog disabled

This patch adds some checks, so that the watchdog can be enabled in main
U-Boot proper but can be disabled in SPL.

This will be used by some AT91SAM based boards, which might enable the
watchdog in the main U-Boot proper and not in SPL. It will be enabled in
SPL by default there, so no need to configure it there. This approach
saves some space in SPL.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Andreas Bießmann <andreas@biessmann.org>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Tested on the taurus board:
Tested-by: Heiko Schocher <hs@denx.de>
include/watchdog.h