mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
a577ca6bad
This patch adds glue-code that allows the EMAC driver to interface with the existing dt-supported PHYs in drivers/net/phy. Because currently, the emac driver maintains a small library of supported phys for in a private phy.c file located in the drivers directory. The support is limited to mostly single ethernet transceiver like the: CIS8201, BCM5248, ET1011C, Marvell 88E1111 and 88E1112, AR8035. However, routers like the Netgear WNDR4700 and Cisco Meraki MX60(W) have a 5-port switch (AR8327N) attached to the EMAC. The switch chip is supported by the qca8k mdio driver, which uses the generic phy library. Another reason is that PHYLIB also supports the BCM54610, which was used for the Western Digital My Book Live. This will now also make EMAC select PHYLIB. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
78 lines
1.4 KiB
Plaintext
78 lines
1.4 KiB
Plaintext
config IBM_EMAC
|
|
tristate "IBM EMAC Ethernet support"
|
|
depends on PPC_DCR
|
|
select CRC32
|
|
select PHYLIB
|
|
help
|
|
This driver supports the IBM EMAC family of Ethernet controllers
|
|
typically found on 4xx embedded PowerPC chips, but also on the
|
|
Axon southbridge for Cell.
|
|
|
|
config IBM_EMAC_RXB
|
|
int "Number of receive buffers"
|
|
depends on IBM_EMAC
|
|
default "128"
|
|
|
|
config IBM_EMAC_TXB
|
|
int "Number of transmit buffers"
|
|
depends on IBM_EMAC
|
|
default "64"
|
|
|
|
config IBM_EMAC_POLL_WEIGHT
|
|
int "MAL NAPI polling weight"
|
|
depends on IBM_EMAC
|
|
default "32"
|
|
|
|
config IBM_EMAC_RX_COPY_THRESHOLD
|
|
int "RX skb copy threshold (bytes)"
|
|
depends on IBM_EMAC
|
|
default "256"
|
|
|
|
config IBM_EMAC_RX_SKB_HEADROOM
|
|
int "Additional RX skb headroom (bytes)"
|
|
depends on IBM_EMAC
|
|
default "0"
|
|
help
|
|
Additional receive skb headroom. Note, that driver
|
|
will always reserve at least 2 bytes to make IP header
|
|
aligned, so usually there is no need to add any additional
|
|
headroom.
|
|
|
|
If unsure, set to 0.
|
|
|
|
config IBM_EMAC_DEBUG
|
|
bool "Debugging"
|
|
depends on IBM_EMAC
|
|
default n
|
|
|
|
# The options below has to be select'ed by the respective
|
|
# processor types or platforms
|
|
|
|
config IBM_EMAC_ZMII
|
|
bool
|
|
default n
|
|
|
|
config IBM_EMAC_RGMII
|
|
bool
|
|
default n
|
|
|
|
config IBM_EMAC_TAH
|
|
bool
|
|
default n
|
|
|
|
config IBM_EMAC_EMAC4
|
|
bool
|
|
default n
|
|
|
|
config IBM_EMAC_NO_FLOW_CTRL
|
|
bool
|
|
default n
|
|
|
|
config IBM_EMAC_MAL_CLR_ICINTSTAT
|
|
bool
|
|
default n
|
|
|
|
config IBM_EMAC_MAL_COMMON_ERR
|
|
bool
|
|
default n
|