net: macb: remove #if defined(CONFIG_ARCH_AT91) sections
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Sat, 7 Mar 2015 06:23:30 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Mar 2015 03:31:21 +0000 (22:31 -0500)
commita848748959d554666b34cffc08ef2d23f4bb2990
tree5c775866a379cf17527b293bfef3cccf00ab02ac
parent9c348d45d829be10bea4cb8e675f14a1baf9bab1
net: macb: remove #if defined(CONFIG_ARCH_AT91) sections

With multi platform support those sections could lead to unexpected
behavior if both ARCH_AT91 and another ARM SoC using the MACB IP are
selected.
Add two new capabilities to encode the default MII mode and the presence
of a CLKEN bit in USRIO register.
Then define the appropriate config for IPs embedded in at91 SoCs.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h