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

Message ID 1572232370-31580-8-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.MX6SL has a 64-bit SoC unique ID stored in OCOTP, it can be used
as SoC serial number, see below example:

root@imx6sl:~# cat /sys/devices/soc0/serial_number
897BC6578FEAB980

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 1274b52..eb65eff 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -128,6 +128,7 @@  struct device * __init imx_soc_device_init(void)
 		soc_id = "i.MX53";
 		break;
 	case MXC_CPU_IMX6SL:
+		ocotp_compat = "fsl,imx6sl-ocotp";
 		soc_id = "i.MX6SL";
 		break;
 	case MXC_CPU_IMX6DL: