From 14acea0244e33c4522fa3ea774bb3e76fa9e4fb4 Mon Sep 17 00:00:00 2001 From: York Sun Date: Tue, 26 Jun 2018 10:10:04 -0700 Subject: [PATCH] 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 --- 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 b919fffb30..969e319de0 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.39.5