]> git.sur5r.net Git - u-boot/commit
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)
commit69e8d4ba7f183fcde32ffff1f3136cd10c30dda9
tree5696d7246dc343159c6690b8a8949db0e257520f
parent2059ecf30f389ec0e396fccc067f6f9fecb36a2c
ti: common: board_detect: Add function to determine if EEPROM was read

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>
board/ti/common/board_detect.c
board/ti/common/board_detect.h