aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorClaudius Heine <ch@denx.de>2020-03-04 15:23:10 +0100
committerStefano Babic <sbabic@denx.de>2020-05-01 13:46:22 +0200
commitb46e6cc581b3dcb48cdd96bd5db0c40c86285975 (patch)
tree2a502d245626c208e9bee2b9df60f0304f566fd8 /arch/arm/lib
parent242d1cd69b9f750daee0f15c8028d827a6da13e2 (diff)
downloadu-boot-b46e6cc581b3dcb48cdd96bd5db0c40c86285975.zip
u-boot-b46e6cc581b3dcb48cdd96bd5db0c40c86285975.tar.gz
u-boot-b46e6cc581b3dcb48cdd96bd5db0c40c86285975.tar.bz2
ARM: reset: use do_reset in SPL/TPL if SYSRESET was not enabled for them
In case CONFIG_SYSRESET is set, do_reset from reset.c will not be available anywere, even if SYSRESET is disabled for SPL/TPL. 'do_reset' is called from SPL for instance from the panic handler and PANIC_HANG is not set Signed-off-by: Claudius Heine <ch@denx.de> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 8482f54..b839aa7 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -57,7 +57,7 @@ obj-y += interrupts_64.o
else
obj-y += interrupts.o
endif
-ifndef CONFIG_SYSRESET
+ifndef CONFIG_$(SPL_TPL_)SYSRESET
obj-y += reset.o
endif