ARM: uniphier: rename environment variable fdt_file to fdtfile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 17 May 2018 10:55:20 +0000 (19:55 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 22 May 2018 15:32:39 +0000 (00:32 +0900)
For booting Linux in the generic distro mechanism, cmd/pxe.c
retrieves the FDT file name from "fdtfile" environment variable.

Rename "fdt_file" to "fdtfile" for easier migration to distro boot.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/board_late_init.c
include/configs/uniphier.h

index 9dff3f16a067ee5b602cf3c14280793a38468079..6a995728d4bc3d66d31e4e950a0639ee838d3df0 100644 (file)
@@ -38,7 +38,7 @@ static int uniphier_set_fdt_file(void)
        char dtb_name[256];
        int buf_len = sizeof(dtb_name);
 
-       if (env_get("fdt_file"))
+       if (env_get("fdtfile"))
                return 0;       /* do nothing if it is already set */
 
        compat = fdt_stringlist_get(gd->fdt_blob, 0, "compatible", 0, NULL);
@@ -56,7 +56,7 @@ static int uniphier_set_fdt_file(void)
 
        strncat(dtb_name, ".dtb", buf_len);
 
-       return env_set("fdt_file", dtb_name);
+       return env_set("fdtfile", dtb_name);
 }
 
 int board_late_init(void)
index f710c8fe2a4556012a46a6df3346b2b1443d240d..b631f79df8ca91884efccabdf0dfa972a7d973fa 100644 (file)
                "run boot_common\0" \
        "tftpboot=tftpboot $kernel_addr_load $bootfile && " \
                "tftpboot $ramdisk_addr_r $ramdisk_file &&" \
-               "tftpboot $fdt_addr_r $fdt_file &&" \
+               "tftpboot $fdt_addr_r $fdtfile &&" \
                "run boot_common\0" \
        "__nfsboot=tftpboot $kernel_addr_load $bootfile && " \
-               "tftpboot $fdt_addr_r $fdt_file &&" \
+               "tftpboot $fdt_addr_r $fdtfile &&" \
                "setenv ramdisk_addr_r - &&" \
                "run boot_common\0"
 #endif