u-boot/board/ti
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
..
am43xx Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
am57xx WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
am62x board: ti: am62x: Account for DDR size fixups if ECC is enabled 2022-07-06 14:30:08 -04:00
am64x spl: Move SPL_LDSCRIPT defaults to one place 2022-06-28 17:03:31 -04:00
am65x spl: Move SPL_LDSCRIPT defaults to one place 2022-06-28 17:03:31 -04:00
am335x linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
beagle ARM: omap3_beagle: Power on MMC when setting up PMIC 2022-03-10 13:49:57 -05:00
common board: ti: common: board_detect: Do 1byte address checks first. 2022-07-06 14:30:08 -04:00
dra7xx doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
evm ARM: omap3: evm: Power on MMC when setting up PMIC 2022-06-10 13:37:32 -04:00
j721e board: ti: j721e: Return if there is an error while configuring SerDes 2022-07-06 14:30:08 -04:00
j721s2 spl: Move SPL_LDSCRIPT defaults to one place 2022-06-28 17:03:31 -04:00
ks2_evm board: ti: k2g: Program PadConfig_202 before locking RSTMUX8 2021-07-29 10:42:22 +05:30
omap5_uevm doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
panda doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
sdp4430 doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ti816x common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00