7195f2b99e7d5fc71567c3216746c1c4c9a4ec1e
[openwrt/staging/chunkeey.git] / target / linux / mediatek / patches-4.4 / 0050-net-next-mediatek-add-Kconfig-and-Makefile.patch
1 From 0189b71d0ce9feef1c3fac7d9c3eb7dae57dabdf Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 2 Mar 2016 04:32:43 +0100
4 Subject: [PATCH 50/81] net-next: mediatek: add Kconfig and Makefile
5
6 This patch adds the Makefile and Kconfig required to make the driver build.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 ---
10 drivers/net/ethernet/Kconfig | 1 +
11 drivers/net/ethernet/Makefile | 1 +
12 drivers/net/ethernet/mediatek/Kconfig | 17 +++++++++++++++++
13 drivers/net/ethernet/mediatek/Makefile | 5 +++++
14 4 files changed, 24 insertions(+)
15 create mode 100644 drivers/net/ethernet/mediatek/Kconfig
16 create mode 100644 drivers/net/ethernet/mediatek/Makefile
17
18 --- a/drivers/net/ethernet/Kconfig
19 +++ b/drivers/net/ethernet/Kconfig
20 @@ -106,6 +106,7 @@ config LANTIQ_ETOP
21 Support for the MII0 inside the Lantiq SoC
22
23 source "drivers/net/ethernet/marvell/Kconfig"
24 +source "drivers/net/ethernet/mediatek/Kconfig"
25 source "drivers/net/ethernet/mellanox/Kconfig"
26 source "drivers/net/ethernet/micrel/Kconfig"
27 source "drivers/net/ethernet/microchip/Kconfig"
28 --- a/drivers/net/ethernet/Makefile
29 +++ b/drivers/net/ethernet/Makefile
30 @@ -46,6 +46,7 @@ obj-$(CONFIG_JME) += jme.o
31 obj-$(CONFIG_KORINA) += korina.o
32 obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o
33 obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
34 +obj-$(CONFIG_NET_VENDOR_MEDIATEK) += mediatek/
35 obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
36 obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
37 obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/
38 --- /dev/null
39 +++ b/drivers/net/ethernet/mediatek/Kconfig
40 @@ -0,0 +1,17 @@
41 +config NET_VENDOR_MEDIATEK
42 + bool "MediaTek ethernet driver"
43 + depends on ARCH_MEDIATEK
44 + ---help---
45 + If you have a Mediatek SoC with ethernet, say Y.
46 +
47 +if NET_VENDOR_MEDIATEK
48 +
49 +config NET_MEDIATEK_SOC
50 + tristate "MediaTek MT7623 Gigabit ethernet support"
51 + depends on NET_VENDOR_MEDIATEK #&& (MACH_MT7623 || MACH_MT2701)
52 + select PHYLIB
53 + ---help---
54 + This driver supports the gigabit ethernet MACs in the
55 + MediaTek MT2701/MT7623 chipset family.
56 +
57 +endif #NET_VENDOR_MEDIATEK
58 --- /dev/null
59 +++ b/drivers/net/ethernet/mediatek/Makefile
60 @@ -0,0 +1,5 @@
61 +#
62 +# Makefile for the Mediatek SoCs built-in ethernet macs
63 +#
64 +
65 +obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth_soc.o