u-boot/arch/arm/mach-mvebu
Marek Behún 539f0242f3 arm: mvebu: turris_omnia: add RESET button handling
There is a Factory RESET button on the back side of the Turris Omnia
router. When user presses this button before powering the device up and
keeps it pressed, the microcontroller prevents the main CPU from booting
and counts how long the RESET button is being pressed (and indicates
this by lighting up front LEDs).

The idea behind this is that the user can boot the device into several
Factory RESET modes.

This patch adds support for U-Boot to read into which Factory RESET mode
the user booted the device. The value is an integer stored into the
omnia_reset environment variable. It is 0 if the button was not pressed
at all during power up, otherwise it is the number identifying the
Factory RESET mode.

This patch also changes bootcmd to a special hardcoded value if Factory
RESET button was pressed during device powerup. This special bootcmd
value sets the colors of all the LEDs on the front panel to green and
then tries to load the rescue image from the SPI flash memory and boot
it.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
2019-05-03 08:14:39 +02:00
..
armada8k arm64: mvebu: armada-8k: support environment in SD/eMMC 2018-09-19 08:59:26 +02:00
armada3700 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
include/mach mmc: mv_sdhci: add driver model support 2019-04-26 07:35:38 +02:00
serdes arm: mvebu: AXP: Enhance PCIe port capability configuration 2019-04-12 07:04:18 +02:00
.gitignore mvebu: select boot device at SoC level 2018-08-06 14:07:23 +02:00
arm64-common.c arm: mvebu: turris_mox: Support 1 GB version of Turris Mox 2019-01-21 11:39:50 +01:00
cpu.c mmc: mv_sdhci: add driver model support 2019-04-26 07:35:38 +02:00
dram.c arm: mvebu: Move PCI(e) MBUS window to end of RAM 2018-11-06 13:21:13 +01:00
efuse.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig arm: mvebu: turris_omnia: add RESET button handling 2019-05-03 08:14:39 +02:00
kwbimage.cfg.in mvebu: select boot device at SoC level 2018-08-06 14:07:23 +02:00
lowlevel_spl.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile arm: mvebu: Add Marvell's integrated CPUs 2019-04-12 07:04:18 +02:00
mbus.c arm: mvebu: Add Marvell's integrated CPUs 2019-04-12 07:04:18 +02:00
spl.c dm: core: Change platform specific translation-offset handling 2019-04-23 20:26:43 -06:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00