]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx: kontron-sl-mx6ul: Add support for reading HW UIDs
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 4 Nov 2025 12:54:27 +0000 (13:54 +0100)
committerFabio Estevam <festevam@nabladev.com>
Tue, 4 Nov 2025 15:46:11 +0000 (12:46 -0300)
commit5b4d3c81719d0e2d6ddef022c8ec904caa5a01d8
tree6d2644f2b5591e4648a6474288434ba47bc1334c
parentf00b09abbf18b9cc91311b0330f4f49fc1917019
imx: kontron-sl-mx6ul: 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-mx6ul/Kconfig
board/kontron/sl-mx6ul/sl-mx6ul.c
configs/kontron-sl-mx6ul_defconfig