aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-09-10 08:24:51 -0500
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:51 -0700
commit8cd7c4d44f1617797eda578d28437b8ef417cd80 (patch)
tree7db4550f77926d70b0f6f78fc7c655b5c823e8ae
parentd790b518416e61512700cdb10eeb99bbe0a7ce9f (diff)
downloadu-boot-linaro-stable-8cd7c4d44f1617797eda578d28437b8ef417cd80.tar.gz
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>
-rw-r--r--arch/arm/lib/bootm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 37476cc90..9f313074e 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -265,6 +265,11 @@ static int create_fdt(bootm_headers_t *images)
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