board: amlogic: remove DFU_ALT_BOOT_SD about alt_boot 27/247427/1
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 11 Nov 2020 00:25:48 +0000 (09:25 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 11 Nov 2020 00:31:05 +0000 (09:31 +0900)
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 <jh80.chung@samsung.com>
board/amlogic/odroid-n2/odroid-n2.c
board/amlogic/w400/w400.c

index 5b78ec4..4c07ac9 100644 (file)
@@ -75,14 +75,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;
 }
index 089454a..e9b14f1 100644 (file)
@@ -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;
 }