MLK-14994 mx7ulp: Update M4 image header version check
authorYe Li <ye.li@nxp.com>
Wed, 14 Jun 2017 12:54:20 +0000 (07:54 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:36:54 +0000 (02:36 +0800)
The latest M4 image uses the version 0x41 not 0x40, have to update
it when checking M4 image. Otherwise M4 image won't be loaded.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv7/mx7ulp/soc.c

index 4467c87..2cd16c8 100644 (file)
@@ -71,7 +71,7 @@ int mcore_early_load_and_boot(void)
         * should be same as the one programmed into QSPI flash
         */
        tag = *(dest_addr + 1024);
-       if (tag != 0x402000d1)
+       if (tag != 0x402000d1 && tag !=0x412000d1)
                return -1;
 
        pc = *(dest_addr + 1025);