From: Jaehoon Chung Date: Wed, 11 Nov 2020 00:25:48 +0000 (+0900) Subject: board: amlogic: remove DFU_ALT_BOOT_SD about alt_boot X-Git-Tag: accepted/tizen/unified/20241126.175211~357 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b4e573d36111797d1deeb24b035233e47a12e31;p=platform%2Fkernel%2Fu-boot.git board: amlogic: remove DFU_ALT_BOOT_SD about alt_boot It doesn't need to set to DFU_ALT_BOOT_SD. It's only using raw write on Amlogic board. Not need to consider what device is selected. Change-Id: Ie444ded409f16e60e8622611bf2135b034940ecd Signed-off-by: Jaehoon Chung --- diff --git a/board/amlogic/odroid-n2/odroid-n2.c b/board/amlogic/odroid-n2/odroid-n2.c index f80421b4c1..ce9d4156d0 100644 --- a/board/amlogic/odroid-n2/odroid-n2.c +++ b/board/amlogic/odroid-n2/odroid-n2.c @@ -166,14 +166,10 @@ static char *get_dfu_alt_boot(char *interface, char *devstr) if (mmc_init(mmc)) return NULL; - if (!strncmp(devstr, "0", 1)) - alt_boot = DFU_ALT_BOOT_SD; - else { - if (CONFIG_IS_ENABLED(TIZEN_CONFIG_N2)) - alt_boot = DFU_ALT_BOOT_EMMC_ODROID_N2; - else - alt_boot = DFU_ALT_BOOT_EMMC_ODROID_C4; - } + if (CONFIG_IS_ENABLED(TIZEN_CONFIG_N2)) + alt_boot = DFU_ALT_BOOT_EMMC_ODROID_N2; + else + alt_boot = DFU_ALT_BOOT_EMMC_ODROID_C4; return alt_boot; } diff --git a/board/amlogic/w400/w400.c b/board/amlogic/w400/w400.c index 01f464d5dd..53fc93ea00 100644 --- a/board/amlogic/w400/w400.c +++ b/board/amlogic/w400/w400.c @@ -45,10 +45,7 @@ static char *get_dfu_alt_boot(char *interface, char *devstr) if (mmc_init(mmc)) return NULL; - if (!strncmp(devstr, "0", 1)) - alt_boot = DFU_ALT_BOOT_SD; - else - alt_boot = DFU_ALT_BOOT_EMMC_KVIM3; + alt_boot = DFU_ALT_BOOT_EMMC_KVIM3; return alt_boot; }