From c933268f3faead4a4f6d62247719d916cd84cbe2 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Wed, 6 Jan 2021 14:08:36 +0900 Subject: [PATCH] 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 --- include/samsung/tizen_amlogic.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index dffbe38..abf0f17 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -96,11 +96,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 @@ -111,6 +113,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" @@ -138,7 +141,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" @@ -162,6 +165,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" \ -- 2.7.4