[PATCH v2 4/6] board: colibri_imx6: add board_fit_config_name_match to support FIT in SPL

Oleksandr Suvorov oleksandr.suvorov at toradex.com
Fri Jul 23 08:39:48 CEST 2021


From: Ming Liu <ming.liu at toradex.com>

Only one dtb is currently supported, so match with imx6-colibri.

Signed-off-by: Ming Liu <ming.liu at toradex.com>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov at toradex.com>
---

Changes in v2: None

 board/toradex/colibri_imx6/colibri_imx6.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index c0e7754469..587d92a8e9 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -1081,6 +1081,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-colibri"))
+		return 0;
+
+	return -1;
+}
+#endif
+
 void reset_cpu(void)
 {
 }
-- 
2.31.1



More information about the U-Boot mailing list