From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 9 Mar 2017 08:08:06 -0500 Subject: [U-Boot] [PATCH 05/31] ti: common: board_detect: Add function to determine if EEPROM was read In-Reply-To: <20170302190435.23212-6-fcooper@ti.com> References: <20170302190435.23212-1-fcooper@ti.com> <20170302190435.23212-6-fcooper@ti.com> Message-ID: <20170309130806.GN19897@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 Thu, Mar 02, 2017 at 01:04:09PM -0600, Franklin S Cooper Jr 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 -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: