diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2021-01-06 14:08:36 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2024-10-28 20:28:35 +0900 |
commit | ca7426b0e8d6f8ac1beb106637c9e93f47b727eb (patch) | |
tree | 1d8fcf5f7afc5201fafe0e0baa8fa069f72b6e3c /include | |
parent | 2dc3966d21b414a3238f06273e3d0ca5681e0a3f (diff) | |
download | u-boot-ca7426b0e8d6f8ac1beb106637c9e93f47b727eb.tar.gz u-boot-ca7426b0e8d6f8ac1beb106637c9e93f47b727eb.tar.bz2 u-boot-ca7426b0e8d6f8ac1beb106637c9e93f47b727eb.zip |
samsung: tizen_amlogic: add button_label variable
Add button_label variable to clarify button about each boards.
- KVIM3(L) : Function
- Odroid-C4 : PowerKey
Change-Id: I7580cce0c580df14debbe40c48a70f5b6aa532bd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/samsung/tizen_amlogic.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index fffdc58cea..07b5281856 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -90,11 +90,13 @@ #define DFU_ALT_BOOT DFU_ALT_BOOT_VIM3 #define DEVICE_TREE_NAME "kvim3_linux.dtb" #define BOARD_NAME "khadas-vim3" +#define BUTTON_LABEL "Function" #elif CONFIG_TIZEN_KHADAS_VIM3L #define TIZEN_BOOT_PREFIX "/kvim/ /" #define DFU_ALT_BOOT DFU_ALT_BOOT_VIM3L #define DEVICE_TREE_NAME "kvim3l_linux.dtb" #define BOARD_NAME "khadas-vim3l" +#define BUTTON_LABEL "Function" #elif CONFIG_TIZEN_ODROID_N2 #define TIZEN_BOOT_PREFIX "/odroid/ /" #define DFU_ALT_BOOT DFU_ALT_BOOT_ODROID_N2 @@ -105,6 +107,7 @@ #define DFU_ALT_BOOT DFU_ALT_BOOT_ODROID_C4 #define DEVICE_TREE_NAME "meson64_odroidc4.dtb" #define BOARD_NAME "odroid-c4" +#define BUTTON_LABEL "PowerKey" #else #define TIZEN_BOOT_PREFIX "/ /boot/" #define DFU_ALT_BOOT "u-boot.bin skip 0 0" @@ -132,7 +135,7 @@ #define BUTTON_CHECK \ "echo Checking Func button state (for THOR download mode): \\\\\\\\c; " \ "sleep 0.25; " \ - "if button Function; then " \ + "if button ${button_label}; then " \ "thor; " \ "fi" @@ -156,6 +159,7 @@ "mbr_parts=" PARTS_DEFAULT "\0" \ "mbr_check=" MBR_CHECK "\0" \ "button_check=" BUTTON_CHECK "\0" \ + "button_label=" BUTTON_LABEL "\0" \ "reboot_check=" REBOOT_CHECK "\0" \ "splashimage=0x2000000\0" \ "splashsource=mmc_fs\0" \ |