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: submit/tizen/20211123.233157~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f40ecb0742785b595657899575b1db876f6c1ac;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 7ac3788b5b..6c225b6c62 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 d4671a1d70..b37a4acbfd 100644 --- a/board/amlogic/w400/w400.c +++ b/board/amlogic/w400/w400.c @@ -46,10 +46,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; }