]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx: kontron-sl-mx8mm: Add support for reading HW UIDs
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 4 Nov 2025 12:54:28 +0000 (13:54 +0100)
committerFabio Estevam <festevam@nabladev.com>
Tue, 4 Nov 2025 15:46:11 +0000 (12:46 -0300)
commit306c3caf81a34d94a13037a6f5772b64b54fe082
tree6a861046f8da61c02e9bf0f6cc81480f123661e4
parent5b4d3c81719d0e2d6ddef022c8ec904caa5a01d8
imx: kontron-sl-mx8mm: Add support for reading HW UIDs

The factory provides a CPU UID in the OTPs and the SoM module
and the carrier board might provide additional UIDs in the GP
registers of the OTPs. Load these values in the following order
and create a serial number string:

* Board UID (GP2)
* SoM UID (GP1)
* CPU UID (UNIQUE_ID)

The string is stored in the "serial#" env variable and
exported to Linux. Further this prints the used UID to the
console which looks like this

  ID:    0042152331 (Board)

or:

  ID:    0030124840 (SoM)

or:

  ID:    4696668CD9516886 (CPU)

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
board/kontron/sl-mx8mm/Kconfig
board/kontron/sl-mx8mm/sl-mx8mm.c
configs/kontron-sl-mx8mm_defconfig