mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 02:32:11 +02:00
generic_board: do not set gd->fdt_blob unless CONFIG_OF_CONTROL=y
gd->fdt_blob is used for FDT control of U-Boot. If CONFIG_OF_CONTROL is not defined, it is useless. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
8e71443211
commit
c970dffedb
@@ -341,6 +341,7 @@ static int setup_ram_buf(void)
|
|||||||
|
|
||||||
static int setup_fdt(void)
|
static int setup_fdt(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_OF_CONTROL
|
||||||
# ifdef CONFIG_OF_EMBED
|
# ifdef CONFIG_OF_EMBED
|
||||||
/* Get a pointer to the FDT */
|
/* Get a pointer to the FDT */
|
||||||
gd->fdt_blob = __dtb_dt_begin;
|
gd->fdt_blob = __dtb_dt_begin;
|
||||||
@@ -356,6 +357,7 @@ static int setup_fdt(void)
|
|||||||
/* Allow the early environment to override the fdt address */
|
/* Allow the early environment to override the fdt address */
|
||||||
gd->fdt_blob = (void *)getenv_ulong("fdtcontroladdr", 16,
|
gd->fdt_blob = (void *)getenv_ulong("fdtcontroladdr", 16,
|
||||||
(uintptr_t)gd->fdt_blob);
|
(uintptr_t)gd->fdt_blob);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user