sandbox: enable poweroff command
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 27 Oct 2020 19:29:22 +0000 (20:29 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:30 +0000 (09:11 -0700)
The command to shut down a device is 'poweroff'. It is a deficit of the
sandbox that it does not support resetting yet but shuts down upong seeing
the 'reset' command.

Once the sandbox properly supports reset we need the 'poweroff' command to
leave the sandbox.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/Kconfig

index 3b9fcce..18de8d8 100644 (file)
@@ -92,6 +92,7 @@ config SANDBOX
        bool "Sandbox"
        select BOARD_LATE_INIT
        select BZIP2
+       select CMD_POWEROFF
        select DM
        select DM_GPIO
        select DM_I2C
@@ -107,7 +108,7 @@ config SANDBOX
        select PCI_ENDPOINT
        select SPI
        select SUPPORT_OF_CONTROL
-       select SYSRESET_CMD_POWEROFF if CMD_POWEROFF
+       select SYSRESET_CMD_POWEROFF
        imply BITREVERSE
        select BLOBLIST
        imply CMD_DM