From e2f88dfd2d9671945877daf5a8c9223b864c34d1 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 28 Jul 2016 09:06:41 +0200 Subject: libfdt: Introduce new ARCH_FIXUP_FDT option Add new Kconfig option to disable arch_fixup_fdt() calls for cases where U-Boot shouldn't update memory setup in DTB file. One example of usage of this option is to boot OS with different memory setup than U-Boot use. Signed-off-by: Michal Simek Acked-by: Simon Glass --- arch/mips/lib/bootm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/mips') diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index aa0475a..0c6a4ab 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib/bootm.c @@ -253,6 +253,7 @@ 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) @@ -264,6 +265,7 @@ int arch_fixup_fdt(void *blob) return 0; #endif } +#endif static int boot_setup_fdt(bootm_headers_t *images) { -- cgit v1.1