From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 11 Jul 2017 08:38:25 -0400 Subject: [U-Boot] [U-Boot, v4, 05/30] ti: common: board_detect: Add function to determine if EEPROM was read In-Reply-To: <20170616222533.25008-6-fcooper@ti.com> References: <20170616222533.25008-6-fcooper@ti.com> Message-ID: <20170711123825.GS22707@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 16, 2017 at 05:25:08PM -0500, Cooper Jr., Franklin wrote: > 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 > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: