[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1572232370-31580-10-git-send-email-Anson.Huang@nxp.com>
Date: Mon, 28 Oct 2019 11:12:50 +0800
From: Anson Huang <Anson.Huang@....com>
To: linux@...linux.org.uk, shawnguo@...nel.org, s.hauer@...gutronix.de,
kernel@...gutronix.de, festevam@...il.com, aisheng.dong@....com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: Linux-imx@....com
Subject: [PATCH 9/9] ARM: imx: Add serial number support for i.MX7D
i.MX7D has a 64-bit SoC unique ID stored in OCOTP, it can be used
as SoC serial number, see below example:
root@...7dsabresd:~# cat /sys/devices/soc0/serial_number
0000028FF618B953
Signed-off-by: Anson Huang <Anson.Huang@....com>
---
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 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:
--
2.7.4
Powered by blists - more mailing lists