This series adds EEPROM board detection support for AM62x and refactors
the board detection code across AM6x family boards to eliminate code
duplication.

The series introduces two new generic functions for AM6x boards:
- do_board_detect_am6(): Reads the on-board EEPROM with fallback logic
  to alternate I2C addresses
- setup_serial_am6(): Sets up the serial number environment variable
  from EEPROM data

Signed-off-by: Guillaume La Roque (TI.com) <[email protected]>
---
Changes in v3:
- Remove beagleplay part 
- Link to v2: 
https://lore.kernel.org/r/[email protected]

Changes in v2:
- Create Generic function 
- migrate am64 and am65 on it
- Link to v1: 
https://lore.kernel.org/r/[email protected]

---
Guillaume La Roque (TI.com) (4):
      board: ti: common: Add generic AM6x board detection functions
      board: am62x: Add support for reading eeprom data
      board: am64x: Use generic AM6x board detection functions
      board: am65x: Use generic AM6x board detection function

 arch/arm/mach-k3/am62x/Kconfig |  3 +++
 board/ti/am62x/evm.c           | 51 +++++++++++++++++++++++++++++++++++++++++-
 board/ti/am64x/evm.c           | 45 +++----------------------------------
 board/ti/am65x/evm.c           | 17 ++------------
 board/ti/common/board_detect.c | 43 +++++++++++++++++++++++++++++++++++
 board/ti/common/board_detect.h | 22 ++++++++++++++++++
 configs/am62x_evm_r5_defconfig |  1 +
 7 files changed, 124 insertions(+), 58 deletions(-)
---
base-commit: 6a56d10fdcf1309d2070b62dc15e80a047da971b
change-id: 20251016-am62xeeprom-41a1920b8bd2

Best regards,
-- 
Guillaume La Roque (TI.com) <[email protected]>

Reply via email to