From 37fa41256bd756f3652e7479b976982092a4f9bc Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 30 Nov 2016 13:41:53 -0800 Subject: 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 --- board/toradex/colibri_t30/colibri_t30.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'board/toradex/colibri_t30') diff --git a/board/toradex/colibri_t30/colibri_t30.c b/board/toradex/colibri_t30/colibri_t30.c index 707d07e..b68d3ca 100644 --- a/board/toradex/colibri_t30/colibri_t30.c +++ b/board/toradex/colibri_t30/colibri_t30.c @@ -14,6 +14,7 @@ #include #include #include "pinmux-config-colibri_t30.h" +#include "../common/tdx-common.h" int arch_misc_init(void) { @@ -31,6 +32,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 + /* * Routine: pinmux_init * Description: Do individual peripheral pinmux configs -- cgit v1.1