[U-Boot] [PATCH] arm: Add CONFIG_OF_BOARD_SETUP support to bootm

Joe Hershberger joe.hershberger at ni.com
Fri Aug 17 22:28:50 CEST 2012


ARM boards need to change device tree settings as well

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---
 arch/arm/lib/bootm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 599547d..2e0b0c1 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -258,6 +258,9 @@ static int create_fdt(bootm_headers_t *images)
 	fixup_memory_node(*of_flat_tree);
 	fdt_fixup_ethernet(*of_flat_tree);
 	fdt_initrd(*of_flat_tree, *initrd_start, *initrd_end, 1);
+#ifdef CONFIG_OF_BOARD_SETUP
+	ft_board_setup(*of_flat_tree, gd->bd);
+#endif
 
 	return 0;
 }
-- 
1.7.11.5



More information about the U-Boot mailing list