diff mbox series

[5/9] ARM: imx: Add serial number support for i.MX6UL

Message ID 1572232370-31580-6-git-send-email-Anson.Huang@nxp.com (mailing list archive)
State New, archived
Headers show
Series Add SoC serial number support for i.MX6/7 SoCs | expand

Commit Message

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

root@imx6ul7d:~# cat /sys/devices/soc0/serial_number
6738495762ACE932

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

Patch

diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index cdb9d6d..1e8150e 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -142,6 +142,7 @@  struct device * __init imx_soc_device_init(void)
 		soc_id = "i.MX6Q";
 		break;
 	case MXC_CPU_IMX6UL:
+		ocotp_compat = "fsl,imx6ul-ocotp";
 		soc_id = "i.MX6UL";
 		break;
 	case MXC_CPU_IMX6ULL: