summaryrefslogtreecommitdiff
path: root/board/toradex/colibri_t20/colibri_t20.c
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-11-30 13:41:53 -0800
committerStefano Babic <sbabic@denx.de>2016-12-16 09:56:38 +0100
commit37fa41256bd756f3652e7479b976982092a4f9bc (patch)
tree9c08803b3c6f224801c18a85e9d05a1462766ed5 /board/toradex/colibri_t20/colibri_t20.c
parentbeaf40688ba7303e9db50558b3852c79437eecad (diff)
downloadu-boot-imx-37fa41256bd756f3652e7479b976982092a4f9bc.zip
u-boot-imx-37fa41256bd756f3652e7479b976982092a4f9bc.tar.gz
u-boot-imx-37fa41256bd756f3652e7479b976982092a4f9bc.tar.bz2
toradex: allow custom fdt board setup in board file
The config block support currently uses the ft_board_setup function to patch the device tree with config block information. However, this does not allow to patch the device tree with board specific information. Rename the common setup function to ft_common_board_setup and use the call it from the board files directly. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'board/toradex/colibri_t20/colibri_t20.c')
-rw-r--r--board/toradex/colibri_t20/colibri_t20.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index 01b55be..4d298e6 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <i2c.h>
#include <nand.h>
+#include "../common/tdx-common.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -74,6 +75,13 @@ int checkboard(void)
return 0;
}
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, bd_t *bd)
+{
+ return ft_common_board_setup(blob, bd);
+}
+#endif
+
#ifdef CONFIG_TEGRA_MMC
/*
* Routine: pin_mux_mmc