ethoc: Add device tree configuration
authorJonas Bonn <jonas@southpole.se>
Thu, 25 Nov 2010 02:30:25 +0000 (02:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 19:16:34 +0000 (11:16 -0800)
commite0f4258be2515afce8ef1e6fb22312525c281798
treee41bb240689d9b2d4b9d86b2e26db863c0f0791d
parent3f0a069a1d5c0ccace735e3a62c1bcef53e4c354
ethoc: Add device tree configuration

This patch adds the ability to describe ethernet devices via a flattened
device tree.  As device tree remains an optional feature, these bits all
need to be guarded by CONFIG_OF ifdefs.

MAC address is settable via the device tree parameter "local-mac-address";
however, the selection of the phy id is limited to probing, for now.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethoc.c