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)
commit06ceff70bf040536163d5010c7560e5846f063c6
tree806cf659bc481b5bf0bde3c8885c5f1ea8d27dee
parent8f527342db4160a1f030de6fe4a1591787cce65a
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 7fbd42f5afc4 ("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