From: York Sun <york.sun@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] spl: nor: Skip CONFIG_SYS_FDT_BASE if not defined
Date: Tue, 26 Jun 2018 10:10:04 -0700 [thread overview]
Message-ID: <1530033005-29044-2-git-send-email-york.sun@nxp.com> (raw)
In-Reply-To: <1530033005-29044-1-git-send-email-york.sun@nxp.com>
If FIT image is used, CONFIG_SYS_FDT_BASE is not needed.
Signed-off-by: York Sun <york.sun@nxp.com>
---
common/spl/spl_nor.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 {
--
2.7.4
next prev parent reply other threads:[~2018-06-26 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-26 17:10 [U-Boot] [PATCH 1/2] spl: nor: Add FIT support York Sun
2018-06-26 17:10 ` York Sun [this message]
2018-07-20 12:35 ` [U-Boot] [U-Boot, 2/2] spl: nor: Skip CONFIG_SYS_FDT_BASE if not defined Tom Rini
2018-07-20 12:35 ` [U-Boot] [U-Boot,1/2] spl: nor: Add FIT support Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1530033005-29044-2-git-send-email-york.sun@nxp.com \
--to=york.sun@nxp.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.