u-boot/board/ti
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
..
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 arm: mach-k3: Rename SOC_K3_AM6 to SOC_K3_AM654 2022-07-25 13:02:04 -04:00
am335x board: ti: am335x: Use correct dtbs for SanCloud boards 2022-07-25 13:02:03 -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: Fix EEPROM read quirk for AM6 style data 2022-09-29 10:10:39 -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