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/20140807.020216~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dad17cfc3f41f4d9c2cbe87380309a3604aa1bee;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/common/board_f.c b/common/board_f.c index 6203d85619..20f5458cab 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -328,14 +328,21 @@ static int setup_ram_buf(void) } #endif +#if defined CONFIG_OF_MULTI +unsigned long *get_board_fdt(void); +#endif static int setup_fdt(void) { #ifdef CONFIG_OF_EMBED /* Get a pointer to the FDT */ gd->fdt_blob = __dtb_dt_begin; #elif defined CONFIG_OF_SEPARATE +#if defined CONFIG_OF_MULTI + gd->fdt_blob = get_board_fdt(); +#else /* FDT is at end of image */ gd->fdt_blob = (ulong *)&_end; +#endif /* CONFIG_OF_MULTI */ #elif defined(CONFIG_OF_HOSTFILE) if (read_fdt_from_file()) { puts("Failed to read control FDT\n");