From: Przemyslaw Marczak
Date: Tue, 8 Jul 2014 10:47:25 +0000 (+0200)
Subject: common:board_f:setup_fdt: set fdt addr by get_board_fdt() for CONFIG_OF_MULTI
X-Git-Tag: accepted/tizen/unified/20170418.072224~97
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c362fe002f402315526447e36a14d6cd9eefe662;p=platform%2Fkernel%2Fu-boot.git
common:board_f:setup_fdt: set fdt addr by get_board_fdt() for CONFIG_OF_MULTI
Change-Id: I47039ce703c6bd8be18dc932ca67936f1ca5946b
Signed-off-by: Przemyslaw Marczak
---
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 81f47ef..4044d1b 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1230,6 +1230,10 @@ int fdtdec_setup_memory_banksize(void)
}
#endif
+#if defined CONFIG_OF_MULTI
+unsigned long *get_board_fdt(void);
+#endif
+
int fdtdec_setup(void)
{
#if CONFIG_IS_ENABLED(OF_CONTROL)
@@ -1243,6 +1247,8 @@ int fdtdec_setup(void)
gd->fdt_blob = (ulong *)&_image_binary_end;
else
gd->fdt_blob = (ulong *)&__bss_end;
+# elif defined CONFIG_OF_MULTI
+ gd->fdt_blob = get_board_fdt();
# else
/* FDT is at end of image */
gd->fdt_blob = (ulong *)&_end;