[PATCH 8/9] soc: imx8m: register SoC UID
Sascha Hauer
s.hauer at pengutronix.de
Thu Nov 13 01:34:32 PST 2025
Just like the ocotp driver the i.MX8M SoC driver also reads the SoC UID.
Unlike the ocotp driver the i.MX8M SoC driver is always enabled, so if
we don't have the ocotp driver enabled then register the SoC UID from
the SoC driver.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/soc/imx/soc-imx8m.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/soc/imx/soc-imx8m.c b/drivers/soc/imx/soc-imx8m.c
index b17f088ad04f3afbf06b823caaaefc1b19f664ea..74abea7ffc904840c91ad50c5ac7b91e7e38520a 100644
--- a/drivers/soc/imx/soc-imx8m.c
+++ b/drivers/soc/imx/soc-imx8m.c
@@ -284,6 +284,10 @@ static int __init imx8_soc_init(void)
goto free_rev;
}
+ if (!IS_ENABLED(CONFIG_IMX_OCOTP))
+ barebox_set_soc_uid(soc_dev_attr->serial_number, soc_uid,
+ sizeof(soc_uid));
+
soc_dev = soc_device_register(soc_dev_attr);
if (IS_ERR(soc_dev)) {
ret = PTR_ERR(soc_dev);
--
2.47.3
More information about the barebox
mailing list