u-boot/board/ti/common
Nishanth Menon d2ab2a2baf board: ti: common: board_detect: Fix EEPROM read quirk for AM6 style data
The situation is similar to commit bf6376642f ("board: ti: common:
board_detect: Fix EEPROM read quirk"). This is seen on a variant of
eeproms seen on some BeagleBone-AI64 which now has a mix of both 1 byte
addressing and 2 byte addressing eeproms.

Unlike the am335x (ti_i2c_eeprom_am_get) and dra7
(ti_i2c_eeprom_dra7_get) which use constant data structure which allows
us to do a complete read of the data, the
am6(ti_i2c_eeprom_am6_get) eeprom parse operation is dynamic.

This removes the option of being able to read the complete eeprom data
in one single shot.

Fortunately, on the I2C bus, we do see the following behavior: In 1
byte mode, if we attempt to read the first header data yet again, the
misbehaving 2 byte addressing device acts in constant addressing mode
which results in the header not matching up and follow on attempt at 2
byte addressing scheme grabs the correct data.

This costs us an extra ~3 milliseconds, which is a minor penalty
compared to the consistent image support we need to have.

Reported-by: Jason Kridner <jkridner@beagleboard.org>
Fixes: a58147c2db ("board: ti: common: board_detect: Do 1byte address checks first.")
Signed-off-by: Nishanth Menon <nm@ti.com>
2022-09-29 10:10:39 -04:00
..
board_detect.c board: ti: common: board_detect: Fix EEPROM read quirk for AM6 style data 2022-09-29 10:10:39 -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