libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 26 Nov 2016 02:02:10 +0000 (11:02 +0900)
committerSimon Glass <sjg@chromium.org>
Sat, 3 Dec 2016 03:54:34 +0000 (20:54 -0700)
commit63c0941726e44f31c42de744a57f528fee2df88f
tree30b480501cca603cc6a3ca3b7462d37a011ef671
parentf7f191ee41c0590917f4a969b569af0a01106380
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY

Commit e2f88dfd2d96 ("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>
12 files changed:
Kconfig
arch/arc/lib/bootm.c
arch/arm/lib/bootm-fdt.c
arch/arm/lib/bootm.c
arch/microblaze/lib/bootm.c
arch/mips/lib/bootm.c
arch/powerpc/lib/bootm.c
arch/sandbox/lib/bootm.c
arch/x86/lib/bootm.c
common/fdt_support.c
common/image-fdt.c
include/fdt_support.h