mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 15:01:27 +02:00
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
Commit e2f88dfd2d
("libfdt: Introduce new ARCH_FIXUP_FDT option")
allows us to skip memory setup of DTB, but a problem for ARM is that
spin_table_update_dt() and psci_update_dt() are skipped as well if
CONFIG_ARCH_FIXUP_FDT is disabled.
This commit allows us to skip only fdt_fixup_memory_banks() instead
of the whole of arch_fixup_fdt(). It will be useful when we want to
use a memory node from a kernel DTB as is, but need some fixups for
Spin-Table/PSCI.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Simon Glass <sjg@chromium.org>
Fixed build error for x86:
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
f7f191ee41
commit
63c0941726
@@ -253,7 +253,6 @@ static int boot_reloc_fdt(bootm_headers_t *images)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_FIXUP_FDT
|
||||
int arch_fixup_fdt(void *blob)
|
||||
{
|
||||
#if CONFIG_IS_ENABLED(MIPS_BOOT_FDT) && CONFIG_IS_ENABLED(OF_LIBFDT)
|
||||
@@ -265,7 +264,6 @@ int arch_fixup_fdt(void *blob)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static int boot_setup_fdt(bootm_headers_t *images)
|
||||
{
|
||||
|
Reference in New Issue
Block a user