MLK-20259 ARM: imx: add soc revision check for i.MX7ULP
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 7 Nov 2018 06:14:11 +0000 (14:14 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitc16c84370feeba13791fd8f4e3e885ed7befccfb
tree57b1021ed8df97d32a8d280e172036414ea47474
parentd143bfe2baa386ad1fce7aec5beaf2fa729ba6e2
MLK-20259 ARM: imx: add soc revision check for i.MX7ULP

i.MX7ULP SoC revision is available from B0, the SIM_JTAG_ID
register bit[31:28] indicates SoC revision as below:

4b'0001        B0
4b'0010        B1

This register is NOT available on A0, tested on B1 chip
as below:

root@imx7ulpevk:~# cat /sys/devices/soc0/revision
2.1

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
arch/arm/mach-imx/mach-imx7ulp.c