2019-10-28 13:16:50

by Anson Huang

[permalink] [raw]
Subject: [PATCH 2/9] ARM: imx: Add serial number support for i.MX6DL

i.MX6DL has a 64-bit SoC unique ID stored in OCOTP, it can be used
as SoC serial number, see below example:

root@imx6qpdlsolox:~# cat /sys/devices/soc0/serial_number
706519D4D72D7859

Signed-off-by: Anson Huang <[email protected]>
---
arch/arm/mach-imx/cpu.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 3293c1d..54e5ab3 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -131,6 +131,7 @@ struct device * __init imx_soc_device_init(void)
soc_id = "i.MX6SL";
break;
case MXC_CPU_IMX6DL:
+ ocotp_compat = "fsl,imx6q-ocotp";
soc_id = "i.MX6DL";
break;
case MXC_CPU_IMX6SX:
--
2.7.4