]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc: qemu: Drop a custom env variable 'fdt_addr_r'
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:56 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:44 +0000 (10:25 +0530)
Now that we have switched to CONFIG_OF_CONTROL, and we can use the
env variable 'fdtcontroladdr' directly instead of creating one that
is duplicated.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/qemu-ppce500/qemu-ppce500.c
include/configs/qemu-ppce500.h

index 480776a21d1a110f0aa53d8220bcf72db606d7bc..202b7f657debd48e66deeed9f023ed46da4bc987 100644 (file)
@@ -168,9 +168,6 @@ int last_stage_init(void)
        if (prop && (len >= 8))
                env_set_hex("qemu_kernel_addr", *prop);
 
-       /* Give the user a variable for the host fdt */
-       env_set_hex("fdt_addr_r", (ulong)fdt);
-
        return 0;
 }
 
index 7c65e64d756cc6fe49a54cb6c5c9f87fdb2283b1..b2e1204e0fadbe537159ba3c031856dd814250b1 100644 (file)
@@ -106,6 +106,6 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void);
 #define CONFIG_LOADADDR                1000000
 
 #define CONFIG_BOOTCOMMAND             \
-       "test -n \"$qemu_kernel_addr\" && bootm $qemu_kernel_addr - $fdt_addr_r\0"
+       "test -n \"$qemu_kernel_addr\" && bootm $qemu_kernel_addr - $fdtcontroladdr\0"
 
 #endif /* __QEMU_PPCE500_H */