u-boot/arch/arm/lib
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
..
_ashldi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_ashrdi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_divsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_lshrdi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_modsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_udivsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_umodsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
board.c davinci_emac: davinci_eth_set_mac_addr to ->write_hwaddr 2010-10-11 23:07:17 -07:00
bootm.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cache-cp15.c ARM: add relocation support 2010-09-19 19:29:53 +02:00
cache.c ARM (ARM11): add data cache support, test on Qong board 2010-09-19 19:29:51 +02:00
div0.c Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
eabi_compat.c ARM: add __aeabi_unwind_cpp_pr0() function to avoid linker complaints 2010-05-15 19:50:36 +02:00
interrupts.c ARM: add relocation support 2010-09-19 19:29:53 +02:00
Makefile Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
reset.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00