]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx8mm-cl-iot-gate: Retrieve the serial number from EEPROM
authorFabio Estevam <festevam@denx.de>
Tue, 12 Apr 2022 16:05:38 +0000 (13:05 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
commitea10bea68dee0c3e18cfc508dce03c25d06fc91b
tree386fd4908854f3f9a5fcc340c577a563d4ba487a
parent79bc9dcfa2d7d9557f32f9c84712169e041ced70
imx8mm-cl-iot-gate: Retrieve the serial number from EEPROM

The serial number is located at offset 0x14 of the EEPROM
under i2c0 bus at address 0x54.

To print the serial number in Linux:

SERNUM=$(cat /proc/device-tree/serial-number)
echo $SERNUM

Signed-off-by: Fabio Estevam <festevam@denx.de>
board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c