u-boot/arch/arm
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
..
cpu arm: lpc32xx: Fix timer initialization 2019-04-26 18:58:20 -04:00
dts Porting to DM and i.MX8 2019-05-01 07:25:51 -04:00
include Porting to DM and i.MX8 2019-05-01 07:25:51 -04:00
lib arm: arm64 32bit address relocation 2019-04-22 18:13:24 -04:00
mach-aspeed
mach-at91 watchdog: at91sam9_wdt: Remove now superfluous wdt start and reset 2019-04-26 09:16:32 +02:00
mach-bcm283x
mach-bcmstb
mach-davinci
mach-exynos exynos: replace CONFIG_ENV_SPI_BASE by CONFIG_SYS_SPI_BASE 2019-03-25 17:35:52 -04:00
mach-highbank
mach-imx imx: Add variscite DART-6UL Evaluation Kit 2019-04-25 19:16:24 +02:00
mach-integrator
mach-k3 arm: mach-k3: Add secure device build support 2019-04-26 17:51:51 -04:00
mach-keystone ARM: k2g: add a workaround to reset the phy 2019-04-12 08:05:46 -04:00
mach-kirkwood ARM: kirkwood: add db-88f6281-bp board 2019-04-26 07:35:38 +02:00
mach-mediatek ARM: MediaTek: Add support for MT8516 SoC 2019-04-23 17:57:26 -04:00
mach-meson ARM: meson: add G12a support 2019-04-23 11:19:09 +02:00
mach-mvebu arm: mvebu: turris_omnia: add RESET button handling 2019-05-03 08:14:39 +02:00
mach-omap2 arm: am57xx: cl-som-am57x: remove board support 2019-04-17 09:20:26 -04:00
mach-orion5x
mach-owl
mach-qemu
mach-rmobile pinctrl: renesas: Add R8A77965 pin control tables 2019-04-09 18:19:10 +02:00
mach-rockchip Revert "rockchip: Drop call to rockchip_dnl_mode_check() for now" 2019-03-29 09:21:13 +01:00
mach-s5pc1xx
mach-snapdragon
mach-socfpga arm: socfpga: mailbox: Fix off-by-one error on command length checking 2019-04-25 00:00:49 +02:00
mach-sti
mach-stm32
mach-stm32mp stm32mp1: add command poweroff 2019-04-12 16:09:13 +02:00
mach-sunxi arm: sunxi: Enable DM_MMC and DM_SCSI 2019-04-17 14:34:45 +05:30
mach-tegra
mach-uniphier
mach-versal
mach-versatile
mach-zynq
mach-zynqmp arm64: zynqmp: fix preprocessor check for SPL_ZYNQMP_TWO_SDHCI 2019-04-16 11:52:02 +02:00
mach-zynqmp-r5
thumb1/include/asm/proc-armv
config.mk
Kconfig Porting to DM and i.MX8 2019-05-01 07:25:51 -04:00
Kconfig.debug
Makefile