diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-03-07 07:23:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-07 22:31:21 -0500 |
commit | a848748959d554666b34cffc08ef2d23f4bb2990 (patch) | |
tree | 5c775866a379cf17527b293bfef3cccf00ab02ac /drivers/net/ethernet/cadence/macb.h | |
parent | 9c348d45d829be10bea4cb8e675f14a1baf9bab1 (diff) | |
download | op-kernel-dev-a848748959d554666b34cffc08ef2d23f4bb2990.zip op-kernel-dev-a848748959d554666b34cffc08ef2d23f4bb2990.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 83241c8..1797fb0 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -391,6 +391,8 @@ /* Capability mask bits */ #define MACB_CAPS_ISR_CLEAR_ON_WRITE 0x00000001 +#define MACB_CAPS_USRIO_HAS_CLKEN 0x00000002 +#define MACB_CAPS_USRIO_DEFAULT_IS_MII 0x00000004 #define MACB_CAPS_FIFO_MODE 0x10000000 #define MACB_CAPS_GIGABIT_MODE_AVAILABLE 0x20000000 #define MACB_CAPS_SG_DISABLED 0x40000000 |