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: submit/tizen/20160425.072005~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b699f648c9eace6f401b26d76d366198ae60b179;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 b361a2579f..6e6defbc7c 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1173,6 +1173,10 @@ int fdtdec_decode_display_timing(const void *blob, int parent, int index, return 0; } +#if defined CONFIG_OF_MULTI +unsigned long *get_board_fdt(void); +#endif + int fdtdec_setup(void) { #if CONFIG_IS_ENABLED(OF_CONTROL) @@ -1186,6 +1190,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;