ralink: cleanup ethernet Makefile/Kconfig
[openwrt/.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / Kconfig
1 config NET_RALINK
2         tristate "Ralink ethernet driver"
3         depends on RALINK
4         help
5           This driver supports the ethernet mac inside the ralink wisocs
6
7 if NET_RALINK
8 choice
9         prompt "MAC type"
10
11 config NET_RALINK_RT288X
12         bool "RT288X"
13         depends on SOC_RT288X
14
15 config NET_RALINK_RT305X
16         bool "RT305X"
17         depends on (SOC_RT305X || SOC_MT7620)
18
19 config NET_RALINK_RT3883
20         bool "RT3883"
21         depends on SOC_RT3883
22
23 config NET_RALINK_MT7620
24         bool "MT7620"
25         depends on SOC_MT7620
26
27 config NET_RALINK_MT7621
28         bool "MT7621"
29         depends on SOC_MT7621
30
31 endchoice
32
33 config NET_RALINK_MDIO
34         def_bool NET_RALINK
35         depends on (NET_RALINK_RT288X || NET_RALINK_RT3883 || NET_RALINK_MT7620 || NET_RALINK_MT7621)
36         select PHYLIB
37
38 config NET_RALINK_MDIO_RT2880
39         def_bool NET_RALINK
40         depends on (NET_RALINK_RT288X || NET_RALINK_RT3883)
41         select NET_RALINK_MDIO
42
43 config NET_RALINK_ESW_RT3052
44         def_bool NET_RALINK
45         depends on NET_RALINK_RT305X
46         select PHYLIB
47         select SWCONFIG
48
49 config NET_RALINK_GSW_MT7620
50         def_bool NET_RALINK
51         depends on NET_RALINK_MT7620 || NET_RALINK_MT7621
52         select NET_RALINK_MDIO
53         select PHYLIB
54         select SWCONFIG
55 endif