board: mx6sabresd: Add board_fit_config_name_match to support FIT in SPL
[oweals/u-boot.git] / board / freescale / mx6sabresd / mx6sabresd.c
index 0183ede148c23d94eccc01de947eac498b685c79..46880952b5681eb7f79da1682e14d3919a1ee29e 100644 (file)
@@ -1062,3 +1062,21 @@ void board_init_f(ulong dummy)
        board_init_r(NULL, 0);
 }
 #endif
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+       if (is_mx6dq()) {
+               if (!strcmp(name, "imx6q-sabresd"))
+                       return 0;
+       } else if (is_mx6dqp()) {
+               if (!strcmp(name, "imx6qp-sabresd"))
+                       return 0;
+       } else if (is_mx6dl()) {
+               if (!strcmp(name, "imx6dl-sabresd"))
+                       return 0;
+       }
+
+       return -1;
+}
+#endif