Skip to content

Commit 009fb09

Browse files
John Crispindavem330
authored andcommitted
net-next: mediatek: add Kconfig and Makefile
This patch adds the Makefile and Kconfig required to make the driver build. Signed-off-by: John Crispin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 656e705 commit 009fb09

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ config LANTIQ_ETOP
106106
Support for the MII0 inside the Lantiq SoC
107107

108108
source "drivers/net/ethernet/marvell/Kconfig"
109+
source "drivers/net/ethernet/mediatek/Kconfig"
109110
source "drivers/net/ethernet/mellanox/Kconfig"
110111
source "drivers/net/ethernet/micrel/Kconfig"
111112
source "drivers/net/ethernet/microchip/Kconfig"

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ obj-$(CONFIG_JME) += jme.o
4646
obj-$(CONFIG_KORINA) += korina.o
4747
obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o
4848
obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
49+
obj-$(CONFIG_NET_VENDOR_MEDIATEK) += mediatek/
4950
obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
5051
obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
5152
obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/

drivers/net/ethernet/mediatek/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
config NET_VENDOR_MEDIATEK
2+
bool "MediaTek ethernet driver"
3+
depends on ARCH_MEDIATEK
4+
---help---
5+
If you have a Mediatek SoC with ethernet, say Y.
6+
7+
if NET_VENDOR_MEDIATEK
8+
9+
config NET_MEDIATEK_SOC
10+
tristate "MediaTek MT7623 Gigabit ethernet support"
11+
depends on NET_VENDOR_MEDIATEK && (MACH_MT7623 || MACH_MT2701)
12+
select PHYLIB
13+
---help---
14+
This driver supports the gigabit ethernet MACs in the
15+
MediaTek MT2701/MT7623 chipset family.
16+
17+
endif #NET_VENDOR_MEDIATEK
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the Mediatek SoCs built-in ethernet macs
3+
#
4+
5+
obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth_soc.o

0 commit comments

Comments
 (0)