board: amlogic: fix build warning and add fdt/initrd_high
authorJaehoon Chung <jh80.chung@samsung.com>
Sun, 10 May 2020 22:37:01 +0000 (07:37 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 4 Nov 2020 03:19:49 +0000 (12:19 +0900)
Fix build warning and add fdt_high/initrd_high.
(it's taken from Hardkernel u-boot.)

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

index 9e2613c..6d8323d 100644 (file)
@@ -44,7 +44,7 @@ static char *get_dfu_alt_boot(char *interface, char *devstr)
                return NULL;
 
        if (!strncmp(devstr, "0", 1))
-               alt_boot = CONFIG_DFU_ALT_SYSTEM_SD;
+               alt_boot = CONFIG_DFU_ALT_SYSTEM_2;
        else
                alt_boot = CONFIG_DFU_ALT_SYSTEM;
 
index be2a60e..7e728bf 100644 (file)
@@ -19,7 +19,7 @@
 
 /* DFU */
 /* For SD */
-#define CONFIG_DFU_ALT_SYSTEM_SD               \
+#define CONFIG_DFU_ALT_SYSTEM_               \
        "Image fat 0 1;"                        \
        "meson64_odroidn2_drm.dtb fat 0 1;"             \
        "meson64_odroidn2.dtb fat 0 1;"         \
@@ -73,6 +73,8 @@
        "bootmode=ramdisk\0"                    \
        "bootdev=mmc\0"                         \
        "tfm=setenv bootmode download; run bootcmd\0"   \
+       "fdt_high=0x20000000\n"                 \
+       "initrd_high=0x3d800000\n"                      \
        "opts=loglevel=4\0"                     \
        "dfu_usb_con=0\0"                       \
        "dfu_interface=mmc\0"                   \