diff options
author | Lukasz Majewski <lukma@denx.de> | 2018-05-11 16:51:08 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-06-18 15:42:38 +0200 |
commit | 27aede24bcdec3777da7b23efc0a8cb777d83d6a (patch) | |
tree | 52d450f184d823083c60f03592650e7fe81b3064 /board/liebherr/display5/common.c | |
parent | cf74e0a96b0f99c4c6025f07549cc51e06a772e0 (diff) | |
download | u-boot-27aede24bcdec3777da7b23efc0a8cb777d83d6a.tar.gz |
display5: Support for the emergency PAD pressing
To enter the special mode, one needs to short cut two pads with e.g. screw
driver.
After power up the SPL will execute u-boot in which proper actions will be
taken.
It is worth noting that we do not alter envs (even the BOOT_FROM variable)
and unconditionally go to recovery.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'board/liebherr/display5/common.c')
-rw-r--r-- | board/liebherr/display5/common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/liebherr/display5/common.c b/board/liebherr/display5/common.c index 26575f73bd..4eb86d8c5d 100644 --- a/board/liebherr/display5/common.c +++ b/board/liebherr/display5/common.c @@ -34,6 +34,16 @@ void displ5_set_iomux_uart(void) SETUP_IOMUX_PADS(uart_pads); } +iomux_v3_cfg_t const misc_pads_spl[] = { + /* Emergency recovery pin */ + MX6_PAD_EIM_D29__GPIO3_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL), +}; + +void displ5_set_iomux_misc_spl(void) +{ + SETUP_IOMUX_PADS(misc_pads_spl); +} + #ifdef CONFIG_MXC_SPI iomux_v3_cfg_t const ecspi_pads[] = { /* SPI3 */ |