]> git.baikalelectronics.ru Git - uboot.git/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)
commit1e8feb3cac4187458fcc50146240386bb6bc2bd8
tree5696d7246dc343159c6690b8a8949db0e257520f
parent0041c562cc2550fc9900800606dedf8f0a20da44
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