CONFIG_CMD_POWEROFF's do_poweroff() is normally provided by drivers/firmware/psci.c, which is unavailable in Snagboot mode since CONFIG_PSCI_RESET is disabled.
Enable CONFIG_SYSRESET_CMD_POWEROFF so that sysreset-uclass.c's do_poweroff() is used instead, routing through the qcom-pshold driver configuring the reset type to SHUTDOWN in PON_PBS_PS_HOLD_SW_CTL register. Signed-off-by: Sumit Singh Dhami <[email protected]> --- configs/qcom-snagboot.config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/qcom-snagboot.config b/configs/qcom-snagboot.config index d19ad453029..07b217b75c7 100644 --- a/configs/qcom-snagboot.config +++ b/configs/qcom-snagboot.config @@ -31,3 +31,6 @@ CONFIG_FASTBOOT_FLASH_BLOCK_INTERFACE_NAME="scsi" CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID=4 CONFIG_FASTBOOT_GPT_NAME="gpt" CONFIG_FASTBOOT_MBR_NAME="mbr" + +# Enable Poweroff via Sysreset uclass +CONFIG_SYSRESET_CMD_POWEROFF=y \ No newline at end of file -- 2.55.0
