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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Nov 2021 10:04:04 +0000 (11:04 +0100)
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 7ac3788b5b72728496aa5eda741283e53c6cc392..6c225b6c62854e0a084751c406a438c3d688a709 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 d4671a1d700bc16e2fa4b02340573b4946238ccd..b37a4acbfd763bcec654a5d2f2e7e7c9b4f37f7f 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;
 }