DaVinci Ethernet cleanup
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 13 Apr 2009 05:49:26 +0000 (22:49 -0700)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:39:47 +0000 (20:39 +0200)
commit641e0925e4bf7adf8e2e04e3ad81b840fd71cadd
tree2ced1e5c623193212fb8204890ac9524ef5a866f
parentc790b04d230363d03939dc008bcc80f3ba4de1ae
DaVinci Ethernet cleanup

Chips without the EMAC controller won't need the utilities
it uses to read an Ethernet address from EEPROM; so don't
include them needlessly.

Use is_valid_ether() to validate the address from EEPROM.
All-zero addresses aren't the only invalid addresses.
A fully erased EEPROM returns all-ones, also invalid...

Switch those Ethernet utilities to use "%pM" for printing
MAC addresses; and not say ROM when they mean EEPROM.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
board/davinci/common/misc.c