MLK-25291-1 iMX8MQ: Recognize the B2 revision
authorYe Li <ye.li@nxp.com>
Wed, 3 Feb 2021 18:17:36 +0000 (10:17 -0800)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 10:26:23 +0000 (03:26 -0700)
commitc99877486adc9eb4e7cf4d44cabf075974f3331b
treeff53e007e7572c119049b9394cf32ababd4bfeeb
parent241276ab21621fb3da386bb8e3fee0a205b2b47f
MLK-25291-1 iMX8MQ: Recognize the B2 revision

i.MX8MQ B2 is using same value in OCOTP_READ_FUSE_DATA like B1, so
we have to check the ROM verision to distinguish the revision.

As we have checked the B1 rev for sticky bits work around in
secure boot. So it won't apply on B2.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 1ac96bde4920fa3e2a3bb4a79b342ca4f5adb4a5)
(cherry picked from commit ec1f64b420c7a5c6dc6435fa98735b694720e26c)
arch/arm/include/asm/arch-imx/cpu.h
arch/arm/mach-imx/imx8m/soc.c