net-next: mediatek: add Kconfig and Makefile
authorJohn Crispin <blogic@openwrt.org>
Tue, 8 Mar 2016 10:29:56 +0000 (11:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2016 21:22:12 +0000 (16:22 -0500)
This patch adds the Makefile and Kconfig required to make the driver build.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/Kconfig
drivers/net/ethernet/Makefile
drivers/net/ethernet/mediatek/Kconfig [new file with mode: 0644]
drivers/net/ethernet/mediatek/Makefile [new file with mode: 0644]

index 0b13af8e40701747a063f3a7e1518dc1cd66d966..be67a19e01b90f6c173f45a32dff41919b8a81f6 100644 (file)
@@ -106,6 +106,7 @@ config LANTIQ_ETOP
          Support for the MII0 inside the Lantiq SoC
 
 source "drivers/net/ethernet/marvell/Kconfig"
+source "drivers/net/ethernet/mediatek/Kconfig"
 source "drivers/net/ethernet/mellanox/Kconfig"
 source "drivers/net/ethernet/micrel/Kconfig"
 source "drivers/net/ethernet/microchip/Kconfig"
index 38dc1a776a2bd60d67b87ce1135c6d85b1c0a87e..6ffcc801d37ef0ad2c374d3793dcfe7723aedc73 100644 (file)
@@ -46,6 +46,7 @@ obj-$(CONFIG_JME) += jme.o
 obj-$(CONFIG_KORINA) += korina.o
 obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o
 obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
+obj-$(CONFIG_NET_VENDOR_MEDIATEK) += mediatek/
 obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
 obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
 obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/
diff --git a/drivers/net/ethernet/mediatek/Kconfig b/drivers/net/ethernet/mediatek/Kconfig
new file mode 100644 (file)
index 0000000..698bb89
--- /dev/null
@@ -0,0 +1,17 @@
+config NET_VENDOR_MEDIATEK
+       bool "MediaTek ethernet driver"
+       depends on ARCH_MEDIATEK
+       ---help---
+         If you have a Mediatek SoC with ethernet, say Y.
+
+if NET_VENDOR_MEDIATEK
+
+config NET_MEDIATEK_SOC
+       tristate "MediaTek MT7623 Gigabit ethernet support"
+       depends on NET_VENDOR_MEDIATEK && (MACH_MT7623 || MACH_MT2701)
+       select PHYLIB
+       ---help---
+         This driver supports the gigabit ethernet MACs in the
+         MediaTek MT2701/MT7623 chipset family.
+
+endif #NET_VENDOR_MEDIATEK
diff --git a/drivers/net/ethernet/mediatek/Makefile b/drivers/net/ethernet/mediatek/Makefile
new file mode 100644 (file)
index 0000000..aa3f1c8
--- /dev/null
@@ -0,0 +1,5 @@
+#
+# Makefile for the Mediatek SoCs built-in ethernet macs
+#
+
+obj-$(CONFIG_NET_MEDIATEK_SOC)                 += mtk_eth_soc.o