aboutsummaryrefslogtreecommitdiff
path: root/cmd/qfw.c
diff options
context:
space:
mode:
authorTom Rini2021-08-23 10:25:29 -0400
committerTom Rini2021-08-31 17:46:37 -0400
commit2f45b3041e8431f3e2007d521a570daa4cb95a8e (patch)
tree886b49ccce9d6b847cf6a0e9e138aa7c1e187087 /cmd/qfw.c
parent9582af1afa506a29dd23912cdc888af582f85d56 (diff)
qfw: Switch to CONFIG_SYS_LOAD_ADDR from CONFIG_LOADADDR
All platforms define CONFIG_SYS_LOAD_ADDR, but only some define CONFIG_LOADADDR. Very very rarely are these not the same address, and qemu-ppce500 is one such case. However, based on reading the history of the code, this mismatched value was simply a copy-paste from other PowerPC platforms where it is this unused currently. Switch the code to use CONFIG_SYS_LOAD_ADDR and update the documentation. Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd/qfw.c')
-rw-r--r--cmd/qfw.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/qfw.c b/cmd/qfw.c
index eb6a552f6fa..d58615040c6 100644
--- a/cmd/qfw.c
+++ b/cmd/qfw.c
@@ -121,11 +121,7 @@ static int qemu_fwcfg_do_load(struct cmd_tbl *cmdtp, int flag,
env = env_get("loadaddr");
load_addr = env ?
(void *)hextoul(env, NULL) :
-#ifdef CONFIG_LOADADDR
- (void *)CONFIG_LOADADDR;
-#else
- NULL;
-#endif
+ (void *)CONFIG_SYS_LOAD_ADDR;
env = env_get("ramdiskaddr");
initrd_addr = env ?