From: Jaehoon Chung Date: Wed, 6 Jan 2021 05:08:36 +0000 (+0900) Subject: samsung: tizen_amlogic: add button_label variable X-Git-Tag: accepted/tizen/unified/20231106.171643~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d78b2a7f93dbb0c29c1a6163861c217ac90782c;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index fffdc58..07b5281 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" \