board: ti: j721s2: Add support for detecting multiple device trees
authorSinthu Raja <sinthu.raja@ti.com>
Tue, 10 Jan 2023 15:47:52 +0000 (21:17 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 17:51:26 +0000 (12:51 -0500)
commit1aaf9df19776b3ba0d9f18f1d292f7fb979b64e1
tree05fa6ce9bd3a29d29b3f074854d35f430c1c2a8d
parentad45a17578a6fa4f8cbd77dec9cea0c55fef7a89
board: ti: j721s2: Add support for detecting multiple device trees

Update the board_fit_config_name_match() to choose the right dtb
based on the board name read from EEPROM.

Also restrict multpile EEPROM reads by verifying if EEPROM is already
read

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/j721s2/evm.c