summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-12-26 05:48:29 -0800
committerYe Li <ye.li@nxp.com>2018-12-26 20:51:46 -0800
commitb9c0bf271d67bc60b945d67f98d8b50fd4a37b0f (patch)
tree26b2d96c53fbc908e1f9b7dc768b3119eaef7dbe
parent145c359ca5909f9135459013287bc884c517c5ec (diff)
MLK-20660 imx8: Check the ROM pass over info only for RevA
Only the ROM on RevA will pass over some info into OCRAM. U-boot gets the info to determine whether it is eMMC fastboot. Thus, change that codes only for RevA, otherwise if we protect the OCRAM used by SPL on RevB, u-boot will fail to access it. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--arch/arm/mach-imx/imx8/cpu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index cc8fad2712c..9887933ac8f 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -188,10 +188,12 @@ int arch_cpu_init(void)
if (IS_ENABLED(CONFIG_XEN))
return 0;
- pass_over = get_pass_over_info();
- if (pass_over && pass_over->g_ap_mu == 0) {
- /* When ap_mu is 0, means the u-boot is boot from first container */
- sc_misc_boot_status(ipcHndl, SC_MISC_BOOT_STATUS_SUCCESS);
+ 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 is boot from first container */
+ sc_misc_boot_status(ipcHndl, SC_MISC_BOOT_STATUS_SUCCESS);
+ }
}
#ifdef CONFIG_IMX_SMMU