board: amlogic: add a skip layout in dfu_boot_info
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 30 Oct 2020 07:22:32 +0000 (16:22 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 4 Nov 2020 03:19:49 +0000 (12:19 +0900)
Add a "skip" layout in dfu_boot_info.
- kvim3 target: u-boot-n2.bin will be skipped.
- odroid-n2 target: u-boot-kvim3.bin will be skipped.

Change-Id: I2a81f88c1610d3e5a13e560a4d5cc6c2322df538
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
board/amlogic/odroid-n2/odroid-n2.c
board/amlogic/w400/w400.c
include/samsung/tizen_amlogic.h

index 557670a..0a7507d 100644 (file)
@@ -78,7 +78,7 @@ static char *get_dfu_alt_boot(char *interface, char *devstr)
        if (!strncmp(devstr, "0", 1))
                alt_boot = DFU_ALT_BOOT_SD;
        else
-               alt_boot = DFU_ALT_BOOT_EMMC;
+               alt_boot = DFU_ALT_BOOT_EMMC_ODROID_N2;
 
        return alt_boot;
 }
index 961ae44..089454a 100644 (file)
@@ -49,7 +49,7 @@ static char *get_dfu_alt_boot(char *interface, char *devstr)
        if (!strncmp(devstr, "0", 1))
                alt_boot = DFU_ALT_BOOT_SD;
        else
-               alt_boot = DFU_ALT_BOOT_EMMC;
+               alt_boot = DFU_ALT_BOOT_EMMC_KVIM3;
 
        return alt_boot;
 }
index af35e62..fcebeb7 100644 (file)
        "ramdisk.img part 1 7\0"
 
 
-#define DFU_ALT_BOOT_EMMC      "u-boot.bin raw 0x1 0x850"
+#define DFU_ALT_BOOT_EMMC_ODROID_N2    "u-boot.bin raw 0x1 0x850;"     \
+                               "u-boot-n2.bin raw 0x1 0x850;"          \
+                               "u-boot-kvim3.bin skip 0 0"
+#define DFU_ALT_BOOT_EMMC_KVIM3        "u-boot.bin raw 0x1 0x850;"     \
+                               "u-boot-kvim3.bin raw 0x1 0x850;"       \
+                               "u-boot-n2.bin skip 0 0"
 #define DFU_ALT_BOOT_SD        ""
 #define CONFIG_SET_DFU_ALT_INFO
 #define CONFIG_SET_DFU_ALT_BUF_LEN     (SZ_1K)