]> git.sur5r.net Git - u-boot/commitdiff
ti: common: board_detect: Add function to determine if EEPROM was read
authorCooper Jr., Franklin <fcooper@ti.com>
Fri, 16 Jun 2017 22:25:08 +0000 (17:25 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 10 Jul 2017 18:25:53 +0000 (14:25 -0400)
When the EEPROM is first read its contents are stored in memory as a
cache to avoid further I2C operations. To determine if the EEPROM was
previously read the easiest way is to check the memory to see if the
EEPROM's magic header value is set. Create a new function that can
determine if the EEPROM was previously read or not without having to
perform a I2C transaction.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

No differences found