[U-Boot-Users] 512-Bytes EEPROM

VanBaren, Gerald (AGRE) Gerald.VanBaren at smiths-aerospace.com
Fri Apr 23 16:15:24 CEST 2004


Hi Bruno,

If you look in .../common/soft_i2c.c you will find the following:

#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
	/*
	 * EEPROM chips that implement "address overflow" are ones
	 * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
	 * address and the extra bits end up in the "chip address"
	 * bit slots. This makes a 24WC08 (1Kbyte) chip look like
	 * four 256 byte chips.
	 *
	 * Note that we consider the length of the address field to
	 * still be one byte because the extra address bits are
	 * hidden in the chip address.
	 */
	chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);

	PRINTD("i2c_read: fix addr_overflow: chip %02X addr %02X\n",
		chip, addr);
#endif

The EEPROM you are using apparently uses the "overflow" method of addressing beyond the first 256 bytes.

gvb


> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Bruno
> Sent: Friday, April 23, 2004 9:51 AM
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] 512-Bytes EEPROM
>
>
>
> Hello,
>
> I'm porting U-Boot 1.1.0 to a board which has a
> 512-Bytes EEPROM. So, I set the define
> CFG_I2C_EEPROM_ADDR_LEN to 2, to support the 16-bit
> addresses. But the EEPROM doesn't worked fine, I can't
> even read or write it. If I set this define to 1, the
> EEPROM works properly (but only the first 256 bytes).
>
> So, my question is: it's necessary set another
> define/flag to user EEPROMs larger than 256 bytes?
>
> Thanks in advance,
>
> Bruno
>
>
> ______________________________________________________________________
>
> Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
> http://br.yahoo.com/info/mail.html
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************




More information about the U-Boot mailing list