]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk356x: Enable poweroff command
authorJonas Karlman <jonas@kwiboo.se>
Thu, 17 Aug 2023 05:45:04 +0000 (05:45 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 7 Oct 2023 08:50:15 +0000 (16:50 +0800)
With PMIC_RK8XX, SYSRESET and CMD_POWEROFF options enabled it is
possible to power down a board using the poweroff command and turn the
board back on using a power button.

Enable the poweroff command on RK356x boards that have a button wired
to PMIC pwron.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
configs/quartz64-a-rk3566_defconfig
configs/quartz64-b-rk3566_defconfig
configs/rock-3a-rk3568_defconfig
configs/soquartz-model-a-rk3566_defconfig

index df3728a1f0b44d5a9abe284bb8979033c47c9c9f..bf4d4cd2b8eda3a02dedb6a74ab20984da4f0829 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
+CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_PMIC=y
index 34f56a4a5d89593d3404a6f3c59746895922f116..358687ab5d7f35990af03019cc3b2f18f79e3edf 100644 (file)
@@ -50,6 +50,7 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
+CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_PMIC=y
index 2c8af24b4126340552e64f3b4f64e7ba317002fb..28d157dbd7a736fdb046e23dae31d224e8a626ec 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
+CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_PMIC=y
index 9e8be664e58c8f4e02996d02c95d0362ccda2d85..2f3145745d58cc88f383d04b807a8b8c00a88295 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
+CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_PMIC=y