board: amlogic: remove DFU_ALT_BOOT_SD about alt_boot
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 11 Nov 2020 00:25:48 +0000 (09:25 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Oct 2024 11:27:59 +0000 (20:27 +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 f80421b4c1beb96a149b4f1c12f1210e92bfd198..ce9d4156d054211e52088fb26ef6a98790643f60 100644 (file)
@@ -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;
 }
index 01f464d5dd79c3bd99510f9bb064e21938c0efc5..53fc93ea0053b6ff31a0de8219e556ab0872c84f 100644 (file)
@@ -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;
 }