net: xilinx_emacps: Obtain MAC Address from Device Tree if available
authorTinghui WANG (Steven) <steven.wang@digilentinc.com>
Wed, 16 Jan 2013 00:13:31 +0000 (16:13 -0800)
committerTinghui WANG (Steven) <steven.wang@digilentinc.com>
Wed, 16 Jan 2013 00:13:31 +0000 (16:13 -0800)
commit220a7572d365a2d94eb58fcd1a0f286db59c698e
tree83a882446825bcb44baa6f838925b567e7602f1a
parent5265e2500368c02c7ca8ad12f9ea4eaf0b9f364d
net: xilinx_emacps: Obtain MAC Address from Device Tree if available

xilinx_emacps will obtain MAC address from local-mac-address property in device tree first.
If the property is not set, it will try to obtain mac address from EMACPS hardware registers.
If the mac hardware address from EMACPS registers is not valid, it will generate a random mac address.
drivers/net/ethernet/xilinx/xilinx_emacps.c