u-boot/board/ti/common
Nishanth Menon a58147c2db board: ti: common: board_detect: Do 1byte address checks first.
Do 1 byte address checks first prior to doing 2 byte address checks.
When performing 2 byte addressing on 1 byte addressing eeprom, the
second byte is taken in as a write operation and ends up erasing the
eeprom region we want to preserve.

While we could have theoretically handled this by ensuring the write
protect of the eeproms are properly managed, this is not true in case
where board are updated with 1 byte eeproms to handle supply status.

Flipping the checks by checking for 1 byte addressing prior to 2 byte
addressing check prevents this problem at the minor cost of additional
overhead for boards with 2 byte addressing eeproms.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2022-07-06 14:30:08 -04:00
..
board_detect.c board: ti: common: board_detect: Do 1byte address checks first. 2022-07-06 14:30:08 -04:00
board_detect.h board: ti: board_detect: Add stub functions for EEPROM detection apis 2020-08-11 20:34:46 +05:30
cape_detect.c ti/common: add support for extension_scan_board function 2021-05-13 13:09:09 -04:00
cape_detect.h ti/common: add support for extension_scan_board function 2021-05-13 13:09:09 -04:00
Kconfig ti/common: add support for extension_scan_board function 2021-05-13 13:09:09 -04:00
Makefile ti/common: add support for extension_scan_board function 2021-05-13 13:09:09 -04:00