MLK-21856 imx8: Check the RevA ROM pass over info only in u-boot
authorYe Li <ye.li@nxp.com>
Tue, 23 Apr 2019 08:47:11 +0000 (01:47 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 10:37:26 +0000 (03:37 -0700)
Since we only support RevA booting without SPL, so move the ROM pass
over info checking to u-boot build. Because the we get CPU revision
from SCU, need moving it to arch_cpu_init_dm after SCFW driver is ready.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/imx8/cpu.c

index 0ef1e2b..b45fd01 100644 (file)
@@ -72,21 +72,6 @@ int arch_cpu_init(void)
        save_restore_data();
 #endif
 
-#ifdef CONFIG_SPL_BUILD
-       struct pass_over_info_t *pass_over;
-
-       if (is_soc_rev(CHIP_REV_A)) {
-               pass_over = get_pass_over_info();
-               if (pass_over && pass_over->g_ap_mu == 0) {
-                       /*
-                        * When ap_mu is 0, means the U-Boot booted
-                        * from first container
-                        */
-                       sc_misc_boot_status(-1, SC_MISC_BOOT_STATUS_SUCCESS);
-               }
-       }
-#endif
-
        return 0;
 }
 
@@ -103,6 +88,19 @@ int arch_cpu_init_dm(void)
                return ret;
        }
 
+       struct pass_over_info_t *pass_over;
+
+       if (is_soc_rev(CHIP_REV_A)) {
+               pass_over = get_pass_over_info();
+               if (pass_over && pass_over->g_ap_mu == 0) {
+                       /*
+                        * When ap_mu is 0, means the U-Boot booted
+                        * from first container
+                        */
+                       sc_misc_boot_status(-1, SC_MISC_BOOT_STATUS_SUCCESS);
+               }
+       }
+
 #ifdef CONFIG_IMX_SMMU
        int sciErr;
        sciErr = sc_pm_set_resource_power_mode(-1, SC_R_SMMU,