]> git.sur5r.net Git - u-boot/commitdiff
i.MX6Q: icorem6: Move spl load fit to common/spl
authorJagan Teki <jagannadh.teki@gmail.com>
Mon, 20 Nov 2017 18:32:11 +0000 (00:02 +0530)
committerStefano Babic <sbabic@denx.de>
Mon, 27 Nov 2017 09:36:40 +0000 (10:36 +0100)
Move spl load fit code into common/spl

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
board/engicam/common/spl.c
board/engicam/icorem6/icorem6.c
board/engicam/icorem6_rqs/icorem6_rqs.c

index 8711418fb4724e6e3dd7bba575df78214e3baec5..f8ae3acb0d44db32c4077a018ae3c2493722890b 100644 (file)
@@ -39,6 +39,22 @@ static iomux_v3_cfg_t const uart_pads[] = {
 #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)
 {
index 59c085bb2c55d9cca00890d4be91b52917d96d7e..e173124fa181cc6a05061ff477b7206f03ec7dec 100644 (file)
@@ -264,16 +264,4 @@ int board_mmc_init(bd_t *bis)
        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 */
index 8afc9beaf9091305d30b57b95013837e976ea6f0..84ab936d0f4d4a94ad03c9b5d75f0a6cee537226 100644 (file)
@@ -147,16 +147,4 @@ void board_boot_order(u32 *spl_boot_list)
 }
 #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 */