Commit b9c0bf271d67bc60b945d67f98d8b50fd4a37b0f
1 parent
145c359ca5
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
4 other branches
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>
Showing 1 changed file with 6 additions and 4 deletions Side-by-side Diff
arch/arm/mach-imx/imx8/cpu.c
... | ... | @@ -188,10 +188,12 @@ |
188 | 188 | if (IS_ENABLED(CONFIG_XEN)) |
189 | 189 | return 0; |
190 | 190 | |
191 | - pass_over = get_pass_over_info(); | |
192 | - if (pass_over && pass_over->g_ap_mu == 0) { | |
193 | - /* When ap_mu is 0, means the u-boot is boot from first container */ | |
194 | - sc_misc_boot_status(ipcHndl, SC_MISC_BOOT_STATUS_SUCCESS); | |
191 | + if (is_soc_rev(CHIP_REV_A)) { | |
192 | + pass_over = get_pass_over_info(); | |
193 | + if (pass_over && pass_over->g_ap_mu == 0) { | |
194 | + /* When ap_mu is 0, means the u-boot is boot from first container */ | |
195 | + sc_misc_boot_status(ipcHndl, SC_MISC_BOOT_STATUS_SUCCESS); | |
196 | + } | |
195 | 197 | } |
196 | 198 | |
197 | 199 | #ifdef CONFIG_IMX_SMMU |