ARM: imx: Add serial number support for i.MX6/7 SoCs
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 28 Oct 2019 09:16:01 +0000 (17:16 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 28 Oct 2019 13:28:55 +0000 (21:28 +0800)
commit8267ff89b71317407f2c6938bd66f3a87070e45f
treed8afb4fedefaac64eea85eb45436756d9dadc5b6
parent427fca60ee4524d7755cc7a980280e7ac6d92877
ARM: imx: Add serial number support for i.MX6/7 SoCs

i.MX6/7 SoCs have a 64-bit SoC unique ID stored in OCOTP,
it can be used as SoC serial number, add this support for
i.MX6Q/6DL/6SL/6SX/6SLL/6UL/6ULL/6ULZ/7D, see below example
on i.MX6Q:

root@imx6qpdlsolox:~# cat /sys/devices/soc0/serial_number
240F31D4E1FDFCA7

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