MLK-19433-2 imx8mq: Get chip rev for B1 revision
authorYe Li <ye.li@nxp.com>
Mon, 3 Sep 2018 07:46:09 +0000 (00:46 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:36:39 +0000 (02:36 -0700)
commit9c25ddd32945bef151c407749fc3d51b2a7041af
tree18c84fbed39edae2731a5213506d5387cd9f5c67
parent37a2b1cfdf0ad5144f5b453445384d1c1c41c8c4
MLK-19433-2 imx8mq: Get chip rev for B1 revision

The mscale B1 uses OCOTP_HW_OCOTP_READ_FUSE_DATA register for chip id.
It returns a magic number 0xff0055aa.
Update get_cpu_rev to support this way, also enable OCOTP clock to allow
access OCOTP register.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 866631c2140b9352c6f74ec36d1a51fea40c0445)
(cherry picked from commit 11a44009a6d301df30ecda4209e79906a36a0981)
arch/arm/mach-imx/imx8m/clock_imx8mq.c
arch/arm/mach-imx/imx8m/soc.c