commit | f0370c075364e195db86a31e052157b7cf8aac86 | [log] [tgz] |
---|---|---|
author | York Sun <york.sun@nxp.com> | Tue Jun 26 10:10:04 2018 -0700 |
committer | Tom Rini <trini@konsulko.com> | Thu Jul 19 16:20:13 2018 -0400 |
tree | 881cc678240b9e0ade96ff1cfbee43b7a9812bfd | |
parent | 79757251eadc9b30e0fb47bd700a287763aeb47c [diff] |
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>
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 @@ (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 {