ARM: imx: Add i.MX7ULP SoC serial number support
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 4 Nov 2019 07:35:31 +0000 (15:35 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 12 Dec 2019 12:38:01 +0000 (20:38 +0800)
commitb3082f1bf8a604c9a0f483b5d6060d7255c2a51b
treea0b69e7b31efaa34e7a083e6ee4f48c86a68e28c
parent7947e3238b64c00c396e6f5738f94c4d653bc6a2
ARM: imx: Add i.MX7ULP SoC serial number support

i.MX7ULP's unique ID layout in OCOTP is different from other
i.MX6/7 SoCs as below:

OCOTP layout unique ID

0x4b0 bit[15:0] bit[15:0]
0x4c0 bit[15:0] bit[31:16]
0x4d0 bit[15:0] bit[47:32]
0x4e0 bit[15:0] bit[63:48]

Add support for reading serial number from OCOTP on i.MX7ULP.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/cpu.c