]> git.baikalelectronics.ru Git - uboot.git/commit
watchdog: Fix SPL build with watchdog disabled in asm files
authorPali Rohár <pali@kernel.org>
Thu, 28 Apr 2022 11:33:09 +0000 (13:33 +0200)
committerStefan Roese <sr@denx.de>
Tue, 7 Jun 2022 06:45:35 +0000 (08:45 +0200)
commita4ef3fb57be1e965b325edcaa8e26446e740e988
tree806cf659bc481b5bf0bde3c8885c5f1ea8d27dee
parentd5abd8156d8a2db5f7b933ec8bd5266db1914fdb
watchdog: Fix SPL build with watchdog disabled in asm files

Allow to compile assembler files in SPL build which calls WATCHDOG_RESET
function when watchdog is disabled in SPL and enabled in U-Boot proper.

This issue was fixed in past by commit 85b14f6c9375 ("watchdog: Handle SPL
build with watchdog disabled") for C source files, but not for assembler
source files.

Currently the only assembler source file which calls WATCHDOG_RESET is
arch/powerpc/lib/ticks.S, so this patch affects and fixes powerpc SPL
builds.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
include/watchdog.h