]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx: kontron: Add common function to get HW UIDs from OTPs
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 4 Nov 2025 12:54:26 +0000 (13:54 +0100)
committerFabio Estevam <festevam@nabladev.com>
Tue, 4 Nov 2025 15:46:10 +0000 (12:46 -0300)
commitf00b09abbf18b9cc91311b0330f4f49fc1917019
treef6ff3c54fc1d97543c0bb24a66f86eb89cd89188
parent0089270b45ba89188d75a680da8add2e2f62d209
imx: kontron: Add common function to get HW UIDs from OTPs

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.

Provide a common function to load UIDs from arbitrary OTP
registers and generate a serial number string that is saved
in the "serial#" env variable.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
board/kontron/common/Kconfig [new file with mode: 0644]
board/kontron/common/Makefile [new file with mode: 0644]
board/kontron/common/hw-uid.c [new file with mode: 0644]
board/kontron/common/hw-uid.h [new file with mode: 0644]