From 6f8ef051c5dde7b6daeaf1a542c266d608fac783 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Mon, 2 Sep 2019 18:23:27 -0300 Subject: [PATCH] apalis_imx6: add board_fit_config_name_match to support FIT in SPL Only one dtb is currently supported, so match with imx6-apalis. Signed-off-by: Ricardo Salveti Reviewed-by: Peng Fan Acked-by: Max Krummenacher --- board/toradex/apalis_imx6/apalis_imx6.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c index 6421a22c25..496f76b7f5 100644 --- a/board/toradex/apalis_imx6/apalis_imx6.c +++ b/board/toradex/apalis_imx6/apalis_imx6.c @@ -1116,6 +1116,16 @@ void board_init_f(ulong dummy) board_init_r(NULL, 0); } +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + if (!strcmp(name, "imx6-apalis")) + return 0; + + return -1; +} +#endif + void reset_cpu(ulong addr) { } -- 2.25.1