[ECOS] mac adress setup for edb7xxx network interface

Rene.Affourtit@pemstar.nl Rene.Affourtit@pemstar.nl
Tue Jun 27 02:29:00 GMT 2000


In the ethernet driver setup for the edb7xxx boards the hardware address is
set to a fixed value
( devs/arm/eth/arm/edb7xxxx/current/src/if_edb7xxx.c line line 174 - 178 )

my board (edb7111-2) is equipped with an eeprom which contains a
configuration for the ethenet chip.
Is it possible to check for the eprom_present and eeprom_ok bits in the
status register?

you'd get something like this:

if( !(chip_status&PP_SelfStat_EEPROM) ||
!(chip_status&PP_SelfStat_EEPROM_OK) )
{   // no eeprom present  or eeprom not OK
     // Set up hardware address - FIXME
    for (i = 0;  i < ETHER_ADDR_LEN;  i += 2) {
        put_reg(PP_LAF+i, 0xFFFF);
        put_reg(PP_IA+i, enaddr[i] | (enaddr[i+1] << 8));
    }
}

was this not implemented because of time pressure, or is there some other
reason and might it break something?
Rene





More information about the Ecos-discuss mailing list