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 /include | |
parent | cf74e0a96b0f99c4c6025f07549cc51e06a772e0 (diff) | |
download | u-boot-27aede24bcdec3777da7b23efc0a8cb777d83d6a.tar.gz u-boot-27aede24bcdec3777da7b23efc0a8cb777d83d6a.tar.xz u-boot-27aede24bcdec3777da7b23efc0a8cb777d83d6a.zip |
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 'include')
-rw-r--r-- | include/configs/display5.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/display5.h b/include/configs/display5.h index f5656a29ff..c4cd2ff6f9 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@ -100,11 +100,13 @@ #define CONFIG_BAUDRATE 115200 #ifndef CONFIG_BOOTCOMMAND -#define CONFIG_BOOTCOMMAND "if test ${BOOT_FROM} = FACTORY; then " \ +#define CONFIG_BOOTCOMMAND "if run check_em_pad; then " \ + "run recovery;" \ + "else if test ${BOOT_FROM} = FACTORY; then " \ "run factory_nfs;" \ "else " \ "run boot_mmc;" \ - "fi" + "fi;fi" #endif #define PARTS_DEFAULT \ @@ -246,6 +248,8 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ PARTS_DEFAULT \ + "gpio_recovery=93\0" \ + "check_em_pad=gpio input ${gpio_recovery};test $? -eq 0;\0" \ "display=tianma-tm070-800x480\0" \ "board=display5\0" \ "mmcdev=0\0" \ |