#endif
 };
 
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+        if (is_mx6dq() && !strcmp(name, "imx6q-icore"))
+                return 0;
+        else if (is_mx6dq() && !strcmp(name, "imx6q-icore-rqs"))
+                return 0;
+        else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore"))
+                return 0;
+        else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore-rqs"))
+                return 0;
+        else
+                return -1;
+}
+#endif
+
 #ifdef CONFIG_SPL_OS_BOOT
 int spl_start_uboot(void)
 {
 
        return 0;
 }
 #endif
-
-#ifdef CONFIG_SPL_LOAD_FIT
-int board_fit_config_name_match(const char *name)
-{
-       if (is_mx6dq() && !strcmp(name, "imx6q-icore"))
-               return 0;
-       else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore"))
-               return 0;
-       else
-               return -1;
-}
-#endif
 #endif /* CONFIG_SPL_BUILD */
 
 }
 #endif
 #endif
-
-#ifdef CONFIG_SPL_LOAD_FIT
-int board_fit_config_name_match(const char *name)
-{
-       if (is_mx6dq() && !strcmp(name, "imx6q-icore-rqs"))
-               return 0;
-       else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore-rqs"))
-               return 0;
-       else
-               return -1;
-}
-#endif
 #endif /* CONFIG_SPL_BUILD */