u-boot-brain/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 arm: Kconfig: spelling fixes 2019-01-18 09:16:15 -05:00
mach-bcmstb board: arm: Add support for Broadcom BCM7260 2018-09-10 21:19:31 -04:00
mach-davinci driver: net: consolidate ti's code in separate folder 2018-11-05 10:41:59 -06:00
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 arm: remove prototype for get_timer_masked 2018-10-10 13:35:09 -04:00
mach-owl board: Add uCRobotics Bubblegum-96 board support 2018-07-09 15:25:23 -04:00
mach-qemu Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
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 exynos: Convert to use CONFIG_BLK 2019-02-09 12:50:21 -07:00
mach-snapdragon arm: mach-snapdragon: pinctrl: clarify gpio disable bit 2019-01-25 12:12:56 -05:00
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-stm32: Set MPU SDRAM size to 512MB for STM32F7/H7 2018-10-06 14:09:41 -04:00
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 arm64: zynqmp: Move SoC sources to mach-zynqmp 2019-01-24 10:03:44 +01:00
mach-uniphier ARM: uniphier: do not modify bootcmd environment variable at run-time 2018-12-29 11:38:33 +09:00
mach-versal arm64: versal: Move IOU_SWITCH_DIVISOR0 to Kconfig 2019-02-14 14:31:10 +01:00
mach-versatile
mach-zynq ARM: zynq: Remove addresses for i2c controllers 2019-02-14 14:31:10 +01:00
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 efi_loader: Rename sections to allow for implicit data 2018-07-25 14:57:44 +02:00
Kconfig Porting to DM and i.MX8 2019-05-01 07:25:51 -04:00
Kconfig.debug
Makefile arm: imx: build mach-imx for i.MX8 2019-01-28 20:35:47 +01:00