diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-12-14 08:33:30 +0100 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2021-11-16 12:59:49 +0100 |
commit | 9771b86b3c50fac6bcd8d1a60b497c7c6de51cc3 (patch) | |
tree | 41f43fad970624e49cf494d15c517910830bb097 /configs | |
parent | 1e01412bb60be83e8a8b918ff5a916cf8cd92ce1 (diff) | |
download | u-boot-9771b86b3c50fac6bcd8d1a60b497c7c6de51cc3.tar.gz u-boot-9771b86b3c50fac6bcd8d1a60b497c7c6de51cc3.tar.bz2 u-boot-9771b86b3c50fac6bcd8d1a60b497c7c6de51cc3.zip |
tizen: vim3(l)_deconfig: enable THOR mode if Func button is pressed
Extend the preboot script with a check of the Func button state. If it is
pressed, enter the THOR download mode.
Change-Id: Ic026c345078adbd9030b65e250b18afcc171553b
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'configs')
-rw-r--r-- | configs/khadas-vim3_defconfig | 3 | ||||
-rw-r--r-- | configs/khadas-vim3l_defconfig | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/configs/khadas-vim3_defconfig b/configs/khadas-vim3_defconfig index a698620e8f..623fd3aa20 100644 --- a/configs/khadas-vim3_defconfig +++ b/configs/khadas-vim3_defconfig @@ -16,13 +16,14 @@ CONFIG_DEBUG_UART=y CONFIG_OF_BOARD_SETUP=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_USE_PREBOOT=y -CONFIG_PREBOOT="run mbr_check" +CONFIG_PREBOOT="run mbr_check; echo Checking Func button state (for THOR download mode): \\\\\\\\c; sleep 0.25; if button Function; then thor; fi" # CONFIG_CONSOLE_MUX is not set CONFIG_MISC_INIT_R=y CONFIG_SYS_PROMPT="Khadas VIM3> " # CONFIG_CMD_BDI is not set # CONFIG_CMD_IMI is not set CONFIG_CMD_THOR_DOWNLOAD=y +CONFIG_CMD_ADC=y CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y diff --git a/configs/khadas-vim3l_defconfig b/configs/khadas-vim3l_defconfig index 6e5c45f154..1a696dc775 100644 --- a/configs/khadas-vim3l_defconfig +++ b/configs/khadas-vim3l_defconfig @@ -16,12 +16,13 @@ CONFIG_DEBUG_UART=y CONFIG_OF_BOARD_SETUP=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_USE_PREBOOT=y -CONFIG_PREBOOT="run mbr_check" +CONFIG_PREBOOT="run mbr_check; echo Checking Func button state (for THOR download mode): \\\\\\\\c; sleep 0.25; if button Function; then thor; fi" CONFIG_MISC_INIT_R=y CONFIG_SYS_PROMPT="Khadas VIM3L> " # CONFIG_CMD_BDI is not set # CONFIG_CMD_IMI is not set CONFIG_CMD_THOR_DOWNLOAD=y +CONFIG_CMD_ADC=y CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y |