u-boot/arch
Ben Gardiner 7b37a27e14 davinci_emac: davinci_eth_set_mac_addr to ->write_hwaddr
This patch proposes to migrate the davinci_emac driver to using the
eth_device->write_hwaddr function pointer as suggested by Ben Warren.

All the davinci boards had the behaviour, prior to this patch, of
sync'ing the environment variable enetaddr with the MAC address read
from non-volatile storage on boot -- when the two locations disagreed,
the environment variable value took precendence. This patch keeps the
same behaviour but lets eth_initialize take care of it.

This patch refactors davinci_emac setup in the boards so that the MAC
address is read from non-volatile storage into the environment variable
and then the environment variable value is use in eth_intialize. The
only exception is the direct call to davinci_eth_set_mac_addr made by
the da830evm board init which was changed into an assignment of the
enetaddr field.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Tested-by: Nick Thompson <nick.thompson@ge.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2010-10-11 23:07:17 -07:00
..
arm davinci_emac: davinci_eth_set_mac_addr to ->write_hwaddr 2010-10-11 23:07:17 -07:00
avr32 relocation: fixup cmdtable 2010-09-19 19:29:51 +02:00
blackfin Blackfin: fix MMC init output alignment 2010-10-02 16:00:40 -04:00
i386 x86: Implement fully relocatable image 2010-10-07 20:03:33 +11:00
m68k PCU_E: remove code for yet another corpse 2010-10-06 22:22:24 +02:00
microblaze New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
mips common: move TOTAL_MALLOC_LEN to include/common.h 2010-09-19 19:29:52 +02:00
nios2 New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
powerpc Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2010-10-11 09:56:34 +02:00
sh New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
sparc Remove unused CONFIG_SERIAL_SOFTWARE_FIFO feature 2010-09-23 09:02:05 +02:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00