diff options
author | Marek Behún <marek.behun@nic.cz> | 2021-06-07 16:34:47 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-06-10 07:18:06 +0200 |
commit | ec3784d62646c8f765310d564a3fc898d9945088 (patch) | |
tree | 81a74b3a2534590e6b4dc914b126c45b7e03262f /configs | |
parent | e04bf43681c205d73a50eb0cfa13d20667d7666e (diff) | |
download | u-boot-ec3784d62646c8f765310d564a3fc898d9945088.tar.gz u-boot-ec3784d62646c8f765310d564a3fc898d9945088.tar.bz2 u-boot-ec3784d62646c8f765310d564a3fc898d9945088.zip |
arm: mvebu: turris_mox: add support for board rescue mode
Add necessary config options and board code to support board factory
reset / rescue mode on Turris MOX.
In order to also support invoking rescue mode from U-Boot console,
without having to press the factory reset button, put the rescue command
into `bootcmd_rescue` default environment variable. When factory reset
button is pressed, invoke rescue mode via distroboot by setting
`boot_targets` to `rescue`.
Rescue boot from console can be invoked by running
run bootcmd_rescue
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'configs')
-rw-r--r-- | configs/turris_mox_defconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index 75524babbc..d6d37a3d7d 100644 --- a/configs/turris_mox_defconfig +++ b/configs/turris_mox_defconfig @@ -23,10 +23,14 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_ARCH_EARLY_INIT_R=y CONFIG_MISC_INIT_R=y +CONFIG_BUTTON=y +CONFIG_BUTTON_GPIO=y +CONFIG_CMD_BUTTON=y CONFIG_CMD_CLK=y # CONFIG_CMD_FLASH is not set CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y +CONFIG_CMD_LED=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y CONFIG_CMD_SPI=y @@ -46,6 +50,8 @@ CONFIG_CLK=y CONFIG_CLK_MVEBU=y # CONFIG_MVEBU_GPIO is not set CONFIG_DM_I2C=y +CONFIG_LED=y +CONFIG_LED_GPIO=y CONFIG_MISC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_SDMA=y |