aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2018-06-26 10:10:04 -0700
committerTom Rini <trini@konsulko.com>2018-07-19 16:20:13 -0400
commit14acea0244e33c4522fa3ea774bb3e76fa9e4fb4 (patch)
tree881cc678240b9e0ade96ff1cfbee43b7a9812bfd
parent6ecd820f99177b4002f0518fbe5858b6a3032202 (diff)
downloadu-boot-14acea0244e33c4522fa3ea774bb3e76fa9e4fb4.zip
u-boot-14acea0244e33c4522fa3ea774bb3e76fa9e4fb4.tar.gz
u-boot-14acea0244e33c4522fa3ea774bb3e76fa9e4fb4.tar.bz2
spl: nor: Skip CONFIG_SYS_FDT_BASE if not defined
If FIT image is used, CONFIG_SYS_FDT_BASE is not needed. Signed-off-by: York Sun <york.sun@nxp.com>
-rw-r--r--common/spl/spl_nor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index b919fff..969e319 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -62,8 +62,9 @@ static int spl_nor_load_image(struct spl_image_info *spl_image,
(void *)(CONFIG_SYS_OS_BASE +
sizeof(struct image_header)),
spl_image->size);
-
+#ifdef CONFIG_SYS_FDT_BASE
spl_image->arg = (void *)CONFIG_SYS_FDT_BASE;
+#endif
return 0;
} else {