diff --git a/arch/Kconfig b/arch/Kconfig index fb3e8d598e7..b6e52654743 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -212,7 +212,7 @@ config SANDBOX select SUPPORT_OF_CONTROL select SUPPORT_BIG_ENDIAN select SUPPORT_LITTLE_ENDIAN - select SYSRESET_CMD_POWEROFF if CMD_POWEROFF + select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF select SYS_CACHE_SHIFT_4 select IRQ select SUPPORT_EXTENSION_SCAN if CMDLINE diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index 345b7c92263..5bc14842e66 100644 --- a/drivers/power/pmic/Kconfig +++ b/drivers/power/pmic/Kconfig @@ -384,7 +384,7 @@ config DM_PMIC_TPS80031 config PMIC_STPMIC1 bool "Enable support for STMicroelectronics STPMIC1 PMIC" depends on DM_I2C - select SYSRESET_CMD_POWEROFF if CMD_POWEROFF && !ARM_PSCI_FW + select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF && !ARM_PSCI_FW ---help--- The STPMIC1 PMIC provides 4 BUCKs, 6 LDOs, 1 VREF and 2 power switches. It is accessed via an I2C interface. The device is used with STM32MP1