[U-Boot] [PATCH v6] Add support for the digsy MTC board.

Wolfgang Denk wd at denx.de
Thu Mar 12 19:47:42 CET 2009


Dear Grzegorz Bernacki,

In message <49B92954.2080504 at semihalf.com> you wrote:
> Wolfgang Denk wrote:
> >> +	for (n = 0; n < 6 ; n++) {
> >> +		addr = addr_of_eth_addr + n;
> >> +		chip = EEPROM_ADDR + ((addr & 0x300)>>8);
> >> +		i2c_read(chip, (addr & 0xFF), 1, (uchar *)&eth_addr[n], 1);
> >> +	}
> > 
> > Can we not do this with a single i2c_read() call with length = 6 ?
> > 
> 
> Yes we can, but it is safer this way in the case when ethernet address
> spans across two chips. Rest of comments addressed in version 7 of the
> patch which will be sent soon.

Is such a scenario (MAC address split across 2 different EEPROM
devices) possible (and supported) on these systems?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It may be that your whole purpose in life is simply  to  serve  as  a
warning to others.


More information about the U-Boot mailing list