summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2020-12-21 11:25:56 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2023-10-17 13:19:28 +0900
commit080908cfa0461a1a8a315f1aaeb9ae79723fe69a (patch)
tree44abf8de49ad9049a13f6c860b6275530347dac9 /include
parent1a3761c63080fc422150e965c73a63f8f1b30ba5 (diff)
downloadu-boot-080908cfa0461a1a8a315f1aaeb9ae79723fe69a.tar.gz
u-boot-080908cfa0461a1a8a315f1aaeb9ae79723fe69a.tar.bz2
u-boot-080908cfa0461a1a8a315f1aaeb9ae79723fe69a.zip
tizen: move Function button check to separate env script
This will make CONFIG_PREBOOT a bit more readable and easier to understand. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I75d0e42a6b26c7e4c5d7d4818e9e0f450151a1b2
Diffstat (limited to 'include')
-rw-r--r--include/samsung/tizen_amlogic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h
index fe1a382428..fffdc58cea 100644
--- a/include/samsung/tizen_amlogic.h
+++ b/include/samsung/tizen_amlogic.h
@@ -129,6 +129,13 @@
"thor; " \
"fi"
+#define BUTTON_CHECK \
+ "echo Checking Func button state (for THOR download mode): \\\\\\\\c; " \
+ "sleep 0.25; " \
+ "if button Function; then " \
+ "thor; " \
+ "fi"
+
#define TIZEN_ENV_SETTING \
"mmcbootpart=1\0" \
"mmcrootpart=2\0" \
@@ -148,6 +155,7 @@
"boot_prefixes=" TIZEN_BOOT_PREFIX "\0" \
"mbr_parts=" PARTS_DEFAULT "\0" \
"mbr_check=" MBR_CHECK "\0" \
+ "button_check=" BUTTON_CHECK "\0" \
"reboot_check=" REBOOT_CHECK "\0" \
"splashimage=0x2000000\0" \
"splashsource=mmc_fs\0" \