From: Anson Huang <Anson.Huang@nxp.com>
To: linux@armlinux.org.uk, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, aisheng.dong@nxp.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Cc: Linux-imx@nxp.com
Subject: [PATCH 8/9] ARM: imx: Add serial number support for i.MX6SX
Date: Mon, 28 Oct 2019 11:12:49 +0800 [thread overview]
Message-ID: <1572232370-31580-9-git-send-email-Anson.Huang@nxp.com> (raw)
In-Reply-To: <1572232370-31580-1-git-send-email-Anson.Huang@nxp.com>
i.MX6SX 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
986540983AE87921
Signed-off-by: Anson Huang <Anson.Huang@nxp.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 eb65eff..17cfa86 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -136,6 +136,7 @@ struct device * __init imx_soc_device_init(void)
soc_id = "i.MX6DL";
break;
case MXC_CPU_IMX6SX:
+ ocotp_compat = "fsl,imx6sx-ocotp";
soc_id = "i.MX6SX";
break;
case MXC_CPU_IMX6Q:
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-10-28 3:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-28 3:12 [PATCH 0/9] Add SoC serial number support for i.MX6/7 SoCs Anson Huang
2019-10-28 3:12 ` [PATCH 1/9] ARM: imx: Add serial number support for i.MX6Q Anson Huang
2019-10-28 3:12 ` [PATCH 2/9] ARM: imx: Add serial number support for i.MX6DL Anson Huang
2019-10-28 3:12 ` [PATCH 3/9] ARM: imx: Add serial number support for i.MX6SLL Anson Huang
2019-10-28 3:12 ` [PATCH 4/9] ARM: imx: Add serial number support for i.MX6ULL Anson Huang
2019-10-28 3:12 ` [PATCH 5/9] ARM: imx: Add serial number support for i.MX6UL Anson Huang
2019-10-28 3:12 ` [PATCH 6/9] ARM: imx: Add serial number support for i.MX6ULZ Anson Huang
2019-10-28 3:12 ` [PATCH 7/9] ARM: imx: Add serial number support for i.MX6SL Anson Huang
2019-10-28 3:12 ` Anson Huang [this message]
2019-10-28 3:12 ` [PATCH 9/9] ARM: imx: Add serial number support for i.MX7D Anson Huang
2019-10-28 9:08 ` [PATCH 0/9] Add SoC serial number support for i.MX6/7 SoCs Shawn Guo
2019-10-28 9:19 ` Anson Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1572232370-31580-9-git-send-email-Anson.Huang@nxp.com \
--to=anson.huang@nxp.com \
--cc=Linux-imx@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).