]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: pmic: rk8xx: Use sysreset implementation of the poweroff command
authorJonas Karlman <jonas@kwiboo.se>
Thu, 17 Aug 2023 05:45:02 +0000 (05:45 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 7 Oct 2023 08:50:15 +0000 (16:50 +0800)
Select SYSRESET_CMD_POWEROFF to use the sysreset implementation of the
poweroff command when PMIC_RK8XX is enabled.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/power/pmic/Kconfig

index 176fb07c651a55af1ae70fca86136a19d6fee2eb..4a6f0ce093add6470e048d5e3ada43ecf507394f 100644 (file)
@@ -233,6 +233,7 @@ config PMIC_QCOM
 
 config PMIC_RK8XX
        bool "Enable support for Rockchip PMIC RK8XX"
+       select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF
        ---help---
        The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs,
        an RTC and two low Rds (resistance (drain to source)) switches. It is