This command helps to shutdown the device directly from serial command line. Or, the phone has to be booted into recovery mode to power off.
Signed-off-by: Biswapriyo Nath <[email protected]> --- board/qualcomm/qcom-phone.config | 1 + board/qualcomm/qcom-phone.env | 1 + 2 files changed, 2 insertions(+) diff --git a/board/qualcomm/qcom-phone.config b/board/qualcomm/qcom-phone.config index d24094eefddb..e4727fa8b930 100644 --- a/board/qualcomm/qcom-phone.config +++ b/board/qualcomm/qcom-phone.config @@ -5,6 +5,7 @@ CONFIG_PANIC_HANG=y # We use pause in various places to allow text to be read # before it scrolls off the screen CONFIG_CMD_PAUSE=y +CONFIG_CMD_POWEROFF=y CONFIG_BOOT_RETRY=y CONFIG_BOOT_RETRY_TIME=1 CONFIG_BUTTON_REMAP_PHONE_KEYS=y diff --git a/board/qualcomm/qcom-phone.env b/board/qualcomm/qcom-phone.env index e91ae3ecdfbd..f9911340295f 100644 --- a/board/qualcomm/qcom-phone.env +++ b/board/qualcomm/qcom-phone.env @@ -40,6 +40,7 @@ bootmenu_6=Dump clocks=clk dump; pause bootmenu_7=Dump environment=printenv; pause bootmenu_8=Board info=bdinfo; pause bootmenu_9=Dump bootargs=fdt print /chosen bootargs; pause +bootmenu_10=Power off=poweroff # Allow holding the volume down button while U-Boot loads to enter # the boot menu -- 2.54.0

