mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
bf6376642f
There are three different kinds of EEPROM possibly present on boards.
1. 1byte address. For those we should avoid 2byte address in order
not to rewrite the data. Second byte of the address can potentially
be interpreted as the data to write.
2. 2byte address with defined behaviour. When we try to use 1byte
address they just return "FF FF FF FF ... FF"
3. 2byte address with undefined behaviour (for instance, 24LC32AI).
When we try to use 1byte address, then their internal read
pointer is changed to some value. Subsequential reads may be
broken.
To gracefully handle both case #1 and case #3 we read all required
data from EEPROM at once (about 80 bytes). So either all the data is
valid or we fallback to 2byte address.
Cc: Nishanth Menon <nm@ti.com>
Fixes:
|
||
---|---|---|
.. | ||
am43xx | ||
am57xx | ||
am62x | ||
am64x | ||
am65x | ||
am335x | ||
beagle | ||
common | ||
dra7xx | ||
evm | ||
j721e | ||
j721s2 | ||
ks2_evm | ||
omap5_uevm | ||
panda | ||
sdp4430 | ||
ti816x |