[9/9] ARM: imx: Add serial number support for i.MX7D
diff mbox series

Message ID 1572232370-31580-10-git-send-email-Anson.Huang@nxp.com
State New
Headers show
Series
  • Add SoC serial number support for i.MX6/7 SoCs
Related show

Commit Message

Anson Huang Oct. 28, 2019, 3:12 a.m. UTC
i.MX7D has a 64-bit SoC unique ID stored in OCOTP, it can be used
as SoC serial number, see below example:

root@imx7dsabresd:~# cat /sys/devices/soc0/serial_number
0000028FF618B953

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 arch/arm/mach-imx/cpu.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 17cfa86..d811803 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -160,6 +160,7 @@  struct device * __init imx_soc_device_init(void)
 		soc_id = "i.MX6SLL";
 		break;
 	case MXC_CPU_IMX7D:
+		ocotp_compat = "fsl,imx7d-ocotp";
 		soc_id = "i.MX7D";
 		break;
 	case MXC_CPU_IMX7ULP: