board: am62x: Add support for reading eeprom data
authorGuillaume La Roque (TI.com) <glaroque@baylibre.com>
Mon, 3 Nov 2025 18:40:03 +0000 (19:40 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 7 Nov 2025 22:06:40 +0000 (16:06 -0600)
commitff1b83c095c2b96b6092099180d9a563702ee256
tree2551621bcdc8f05eb2e5bcfbdf2aca8d82e4f451
parent46684bb0369879413015c93c61998ff2986e0617
board: am62x: Add support for reading eeprom data

I2C EEPROM data contains the board name and its revision.
Add support for:
- Reading EEPROM data and store a copy at end of SRAM
- Updating env variable with relevant board info
- Printing board info during boot

Use the generic do_board_detect_am6() and setup_serial_am6()
functions to avoid code duplication across AM6x family boards.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Signed-off-by: Guillaume La Roque (TI.com) <glaroque@baylibre.com>
arch/arm/mach-k3/am62x/Kconfig
board/ti/am62x/evm.c
configs/am62x_evm_r5_defconfig