ramips: switch to linux 4.14
[openwrt/openwrt.git] / target / linux / ramips / files-4.9 / drivers / net / ethernet / mtk / Kconfig
1 config NET_VENDOR_MEDIATEK
2 tristate "Mediatek/Ralink ethernet driver"
3 depends on RALINK
4 help
5 This driver supports the ethernet mac inside the Mediatek and Ralink WiSoCs
6
7 config NET_MEDIATEK_SOC
8 def_tristate NET_VENDOR_MEDIATEK
9
10 if NET_MEDIATEK_SOC
11 choice
12 prompt "MAC type"
13
14 config NET_MEDIATEK_RT2880
15 bool "RT2882"
16 depends on MIPS && SOC_RT288X
17
18 config NET_MEDIATEK_RT3050
19 bool "RT3050/MT7628"
20 depends on MIPS && (SOC_RT305X || SOC_MT7620)
21
22 config NET_MEDIATEK_RT3883
23 bool "RT3883"
24 depends on MIPS && SOC_RT3883
25
26 config NET_MEDIATEK_MT7620
27 bool "MT7620"
28 depends on MIPS && SOC_MT7620
29
30 config NET_MEDIATEK_MT7621
31 bool "MT7621"
32 depends on MIPS && SOC_MT7621
33
34 endchoice
35
36 config NET_MEDIATEK_MDIO
37 def_bool NET_MEDIATEK_SOC
38 depends on (NET_MEDIATEK_RT2880 || NET_MEDIATEK_RT3883 || NET_MEDIATEK_MT7620 || NET_MEDIATEK_MT7621)
39 select PHYLIB
40
41 config NET_MEDIATEK_MDIO_RT2880
42 def_bool NET_MEDIATEK_SOC
43 depends on (NET_MEDIATEK_RT2880 || NET_MEDIATEK_RT3883)
44 select NET_MEDIATEK_MDIO
45
46 config NET_MEDIATEK_MDIO_MT7620
47 def_bool NET_MEDIATEK_SOC
48 depends on (NET_MEDIATEK_MT7620 || NET_MEDIATEK_MT7621)
49 select NET_MEDIATEK_MDIO
50
51 config NET_MEDIATEK_ESW_RT3050
52 def_tristate NET_MEDIATEK_SOC
53 depends on NET_MEDIATEK_RT3050
54
55 config NET_MEDIATEK_GSW_MT7620
56 def_tristate NET_MEDIATEK_SOC
57 depends on NET_MEDIATEK_MT7620
58
59 config NET_MEDIATEK_GSW_MT7621
60 def_tristate NET_MEDIATEK_SOC
61 depends on NET_MEDIATEK_MT7621
62 endif