Commit b9c0bf271d67bc60b945d67f98d8b50fd4a37b0f

Authored by Ye Li
1 parent 145c359ca5

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