apalis_imx6: add board_fit_config_name_match to support FIT in SPL
authorRicardo Salveti <ricardo@foundries.io>
Mon, 2 Sep 2019 21:23:27 +0000 (18:23 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:16 +0000 (16:35 +0200)
Only one dtb is currently supported, so match with imx6-apalis.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
board/toradex/apalis_imx6/apalis_imx6.c

index 6421a22..496f76b 100644 (file)
@@ -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)
 {
 }