From c16cc4f689060f4ef06382b6408b86619f5efb7a Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Fri, 12 Apr 2019 11:55:46 +0200 Subject: stm32mp1: add command poweroff Activate the command poweroff by default for STM32MP1: - with PCSI from TF-A for trusted boot - with PMIC sysreset request for basic boot (SYSRESET_POWER) Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/mach-stm32mp/Makefile') diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile index f59ced5ee1b..1493914a110 100644 --- a/arch/arm/mach-stm32mp/Makefile +++ b/arch/arm/mach-stm32mp/Makefile @@ -11,6 +11,9 @@ ifdef CONFIG_SPL_BUILD obj-y += spl.o else obj-y += bsec.o +ifndef CONFIG_STM32MP1_TRUSTED +obj-$(CONFIG_SYSRESET) += cmd_poweroff.o +endif endif obj-$(CONFIG_ARMV7_PSCI) += psci.o obj-$(CONFIG_$(SPL_)DM_REGULATOR) += pwr_regulator.o -- cgit v1.2.3