ARM: add optional call to ft_board_setup
Allow board specific FDT fixups on ARM using the ft_board_setup function.
This is enabled using CONFIG_OF_BOARD_SETUP define.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 37476cc..9f31307 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -265,6 +265,11 @@
ft_board_setup(*of_flat_tree, gd->bd);
#endif
+#ifdef CONFIG_OF_BOARD_SETUP
+ /* Call the board-specific fixup routine */
+ ft_board_setup(*of_flat_tree, gd->bd);
+#endif
+
return 0;
}
#endif