u-boot/board
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
..
8dtech/eco5pk lib: merge CRC16-CCITT into u-boot/crc.h 2018-12-08 20:18:32 -05:00
abilis/tb100 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
advantech x86: baytrail: Drop EFI-specific test logics 2018-06-17 21:16:04 +08:00
alliedtelesis watchdog: Implement generic watchdog_reset() version 2019-04-26 09:16:32 +02:00
alphaproject/ap_sh4a_4a SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
altera ARM: socfpga: Fix A10 SoCDK Kconfig 2019-03-09 17:59:14 +01:00
amarula/vyasa-rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
amazon/kc1 fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag 2018-05-30 11:59:21 +02:00
amlogic board: amlogic-q200: fix Khadas VIM2 README 2019-04-23 11:19:59 +02:00
AndesTech riscv: ae350: enable SMP 2019-04-08 09:45:08 +08:00
Arcturus/ucp1020 Convert CONFIG_SF_DEFAULT_* to Kconfig 2019-03-25 17:36:53 -04:00
aristainetos imx: aristainetos: fix build breakage 2019-04-13 20:30:10 +02:00
armadeus lib: merge CRC16-CCITT into u-boot/crc.h 2018-12-08 20:18:32 -05:00
armltd Drop CONFIG_INIT_CRITICAL 2018-11-26 13:57:31 +08:00
aspeed/evb_ast2500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
astro/mcf5373l SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmark-techno/armadillo-800eva SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel board: atmel: add SAMA5D2 ICP board 2019-04-18 09:43:22 +03:00
avionic-design SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bachmann/ot1200 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
barco SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Barix/ipam390 linker: Modify linker scripts to be more generic 2019-01-26 22:55:53 -05:00
beckhoff/mx53cx9020 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
birdland/bav335x SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bitmain/antminer_s9 arm: zynq: Add support for Bitmain Antminer S9 control board 2018-05-31 13:50:39 +02:00
bluegiga/apx4devkit SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bluewater SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bosch am335x, guardian: Add support for the bosch guardian board 2019-04-12 08:05:48 -04:00
boundary/nitrogen6x imx: mx6qsabrelite: Update the SabreLite README 2019-03-13 09:14:35 +01:00
broadcom bcm963158: use TARGET_BCM963158 instead of ARCH_BCM63158 2019-02-19 08:55:43 -05:00
bticino/mamoj Fixup various SPDX tags from the latest merge 2018-05-18 17:56:50 -04:00
buffalo/lsxl arm: kirkwood: lsxl: add note about sata in README 2019-04-26 07:35:38 +02:00
BuR board/BuR/brxre1: use common resetcontroller implementation 2019-04-26 17:51:51 -04:00
BuS/eb_cpu5282 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cadence/xtfpga SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
calao/usb_a9263 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
CarMediaLab/flea3 board: constify struct node_info array 2018-07-25 08:47:52 +09:00
cavium/thunderx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ccv/xpress SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cei/cei-tk1-som SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
chipspark/popmetal_rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cirrus/edb93xx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cloudengines/pogo_e02 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cobra5272 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
compal/paz00 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
compulab arm: am57xx: cl-som-am57x: remove board support 2019-04-17 09:20:26 -04:00
comtrend SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
congatec x86: baytrail: Drop EFI-specific test logics 2018-06-17 21:16:04 +08:00
coreboot x86: coreboot: Add generic coreboot payload support 2018-08-20 13:52:06 +08:00
corscience/tricorder SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
creative/xfi3 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cssi board: MCR3000: use new DM watchdog 2018-12-03 10:44:10 -05:00
CZ.NIC arm: mvebu: turris_omnia: add RESET button handling 2019-05-03 08:14:39 +02:00
d-link/dns325 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
davinci ARM: da850evm: Remove legacy MMC code 2019-04-23 17:57:23 -04:00
devboards/dbm-soc1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfi x86: baytrail: Drop EFI-specific test logics 2018-06-17 21:16:04 +08:00
dhelectronics/dh_imx6 ARM: imx6: DHCOM i.MX6 PDK: use Kconfig for inclusion of DDR calibration 2019-04-25 19:16:24 +02:00
ebv/socrates arm: socfpga: socrates: make rtc work 2019-04-25 00:00:49 +02:00
eets/pdu001 arm: pdu001: Fix order of include files 2019-02-28 14:21:46 -05:00
efi x86: efi-x86_payload: Enumerate PCI bus during early boot 2018-06-24 08:56:04 +08:00
egnite/ethernut5 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
el/el6x SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
elgin/elgin_rv1108 ARM: rockchip: Add rv1108-elgin-r1 board support 2018-12-16 01:30:11 +01:00
embest/mx6boards embestmx6boards: Add SPL support 2019-01-01 14:12:18 +01:00
emulation riscv: qemu: enable SMP 2019-04-08 09:44:26 +08:00
engicam board: engicam: Add watchdog support on Engicam 2019-03-13 09:14:35 +01:00
esd SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
espt SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
firefly/firefly-rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
freescale imx8qxp_mek: drop warning due to unused variable 2019-04-25 19:16:24 +02:00
gardena arm: at91: Add gardena-gateway-at91sam support 2019-04-09 09:28:50 +03:00
gateworks/gw_ventana imx: ventana: added support for 16bit 8Gb density (1GiB) DRAM 2019-03-13 09:14:35 +01:00
gdsys board: mvebu: drop unused ETH_PHY macro definitions 2019-01-21 11:39:50 +01:00
ge mx53ppd: bring dock out of reset at boot 2019-04-13 20:30:08 +02:00
geekbuying/geekbox SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
google rockchip: Add MAINTAINER entry for chromebook_speedy 2019-02-01 16:59:14 +01:00
grinn ARM: liteboard: move towards driver model and device-tree boot 2019-03-13 09:14:35 +01:00
gumstix SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
h2200 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
highbank SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hisilicon poplar: clean up board level mmc initialization code 2019-01-25 12:12:57 -05:00
htkw/mcx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
huawei/hg556a SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ids/ids8313 spi: Zap CONFIG_HARD_SPI 2018-11-27 21:06:53 +05:30
imgtec mips: jz47xx: Add Creator CI20 platform 2018-12-19 15:23:02 +01:00
intel x86: baytrail: Drop EFI-specific test logics 2018-06-17 21:16:04 +08:00
inversepath/usbarmory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
iomega/iconnect SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
is1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
isee omap3: igep00x0: Switch to using TI_COMMON_CMD_OPTION 2019-01-15 15:28:42 -05:00
k+p boot.src: Provide dsa_core.blacklist bootarg when booting via NFS 2019-04-25 17:03:25 +02:00
keymile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
kmc/kzm9g SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
kobol/helios4 board: mvebu: drop unused ETH_PHY macro definitions 2019-01-21 11:39:50 +01:00
kosagi/novena SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
l+g/vinco SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
LaCie SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
laird SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lego/ev3 ARM: legoev3: update boot script to load uEnv.txt and .dtb 2018-06-05 10:33:57 -04:00
lg/sniper fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag 2018-05-30 11:59:21 +02:00
liebherr display5: Add missing environment.h include to avoid warning 2018-06-18 15:44:21 +02:00
logicpd ARM: am3517_evm: Add spl_start_uboot for Falcon Mode 2019-04-12 08:05:56 -04:00
Marvell arm: kirkwood: openrd: Mark openrd boards as maintained again 2019-04-26 09:16:32 +02:00
maxbcm arm: mvebu: AXP: Enhance PCIe port capability configuration 2019-04-12 07:04:18 +02:00
mediatek adding saveenv-command for bananapi r2 2019-01-18 09:26:04 -05:00
menlo/m53menlo arm: mx5: Add M53Menlo board 2018-10-16 10:34:19 +02:00
microchip/pic32mzda SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
micronas/vct SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mini-box/picosam9g45 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpc8308_p1m SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpr2 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mqmaker/miqi_rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ms7720se SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ms7722se SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ms7750se SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mscc board: mscc: jr2: Update MSCC Jaguar2 boards 2019-04-12 17:32:51 +02:00
netgear SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nokia/rx51 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nvidia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
olimex/mx23_olinuxino SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
omicron/calimain gpio: da8xx: Push generic defines of gpio.h out of mach-davinci 2018-10-10 13:35:03 -04:00
opalkelly/zynq xilinx: Move zynq_board_read_rom_ethaddr to shared location 2019-02-14 14:31:09 +01:00
overo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pandora omap3: pandora: Enable DM_SERIAL 2018-09-10 21:19:31 -04:00
phytec pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy 2019-04-13 20:30:08 +02:00
ppcag/bg0900 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qca mips: add initial support for qca956x referenced board 2019-04-12 17:32:50 +02:00
qemu-mips SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qualcomm MAINTAINERS: board: qcom: db820c: update email. 2018-12-03 21:50:54 -05:00
quipos/cairo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
radxa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raidsonic/ib62x0 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raspberrypi/rpi RPi: Add mbrugger as board maintainer 2019-03-29 10:53:18 -04:00
renesas ARM: rmobile: rcar-common: Zap arch_preboot_os() 2019-04-09 19:20:38 +02:00
rockchip rockchip: evb_rk3399: Tidy up the README 2019-02-01 16:59:12 +01:00
ronetix board: pm9g45: Migrate to CONFIG_DM 2019-04-09 09:28:50 +03:00
sagem/f@st1704 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
samsung arndale: fix unknown status 2019-03-14 09:38:41 +09:00
samtec arm: socfpga: move vining_fpga to DM_I2C 2019-04-25 00:00:49 +02:00
sandbox Various minor sandbox iumprovements 2019-04-24 12:27:29 -04:00
sandisk/sansa_fuze_plus SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8349 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8548 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8641d SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
schulercontrol/sc_sps_1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Seagate SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
seco SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
seeed/linkit-smart-7688 mips: mt76xx: linkit-smart-7688: Use ioremap_nocache to get address 2018-11-18 16:02:23 +01:00
sfr/nb4_ser SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
shmin SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
siemens SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sifive/fu540 riscv: fu540: enable SMP 2019-04-08 09:44:26 +08:00
silica/pengwyn SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sks-kinkel/sksimx6 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
socrates SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
solidrun arm: mvebu: clearfog: document eMMC installation 2019-04-12 07:04:18 +02:00
spear SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sr1500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
st STM32 MCUs update: 2019-04-24 12:26:39 -04:00
sunxi sunxi: update SATA driver to always use DM_SCSI 2019-04-17 14:34:45 +05:30
Synology arm: mvebu: AXP: Enhance PCIe port capability configuration 2019-04-12 07:04:18 +02:00
synopsys ARC: [plat-axs10x]: migrate to DM_MMC 2019-04-18 09:12:38 +03:00
sysam SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syteco/zmx25 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tbs/tbs2910 board: tbs2910: Convert mmc to driver model 2019-04-13 20:30:09 +02:00
tcl/sl50 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
technexion pico-imx7d: Convert DM MMC 2019-04-25 19:16:24 +02:00
technologic SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
teejet/mt_ventoux SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
terasic SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
theadorable arm: mvebu: AXP: Enhance PCIe port capability configuration 2019-04-12 07:04:18 +02:00
theobroma-systems rockchip: rk3399: change boot_target based on u-boot, spl-boot-device 2018-07-21 01:55:26 +02:00
ti board: ti: am335x: Remove non DM_ETH code 2019-04-12 08:05:55 -04:00
timll arm: lpc32xx: add CONFIG_ARCH_LPC32XX build option 2018-10-19 12:56:58 -04:00
topic/zynq board: topic-miamiplus: Run IO PLL at 1000 MHz 2019-01-24 10:03:45 +01:00
toradex board: toradex: tdx-cfg-block: add new skus 2019-04-25 19:16:24 +02:00
tplink/wdr4300 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tqc tqma6s_wru4_mmc: manage board_spi_cs_gpio correctly 2019-03-25 17:35:52 -04:00
ucRobotics/bubblegum_96 board: Add uCRobotics Bubblegum-96 board support 2018-07-09 15:25:23 -04:00
udoo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vamrs/rock960_rk3399 rockchip: rk3399: Add MAINTAINERS entry 2018-12-06 10:24:12 -05:00
variscite/dart_6ul imx: Add variscite DART-6UL Evaluation Kit 2019-04-25 19:16:24 +02:00
varisys SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ve8313 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vscom/baltos arm: baltos: remove unused header 2018-12-03 10:44:10 -05:00
wandboard imx6: wandboard: convert to DM_MMC 2019-04-13 20:30:09 +02:00
warp SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
warp7 warp7: Switch to DM USB 2019-04-25 19:21:00 +02:00
woodburn SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
work-microwave/work_92105 work_92105: Kconfig: spelling fixes 2019-01-18 09:16:15 -05:00
xes SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
xilinx watchdog: Implement generic watchdog_reset() version 2019-04-26 09:16:32 +02:00
zipitz2 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zyxel/nsa310s SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00