mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 00:10:10 +07:00
889bcbdeee
The Mediatek MT7621 SoC contains the same ethernet hardware module as
used on a number of other MediaTek SoC parts. There are some minor
differences to deal with but we can use the same driver to support
them all.
This patch is based on work by Bjørn Mork <bjorn@mork.no>, and his
original patch is at:
3293bc63f5
There is an additional compatible devicetree type added, and the primary
change to the code required is to support a single interrupt (for both
RX and TX interrupts).
Signed-off-by: Bjørn Mork <bjorn@mork.no>
[gerg@kernel.org: rebase to mainline and irq handler fix]
Signed-off-by: Greg Ungerer <gerg@kernel.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Sean Wang <sean.wang@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 lines
431 B
Plaintext
18 lines
431 B
Plaintext
config NET_VENDOR_MEDIATEK
|
|
bool "MediaTek ethernet driver"
|
|
depends on ARCH_MEDIATEK || SOC_MT7621
|
|
---help---
|
|
If you have a Mediatek SoC with ethernet, say Y.
|
|
|
|
if NET_VENDOR_MEDIATEK
|
|
|
|
config NET_MEDIATEK_SOC
|
|
tristate "MediaTek SoC Gigabit Ethernet support"
|
|
depends on NET_VENDOR_MEDIATEK
|
|
select PHYLIB
|
|
---help---
|
|
This driver supports the gigabit ethernet MACs in the
|
|
MediaTek SoC family.
|
|
|
|
endif #NET_VENDOR_MEDIATEK
|