ramips: remove legacy ethernet driver components for mt7621
[openwrt/.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / Kconfig
index b25a12a1289f76db5f80f37a092e7e978fc9ca9c..26e5e6d73ed98fc9c295e19f60656c2cd11f8ed8 100644 (file)
@@ -1,55 +1,58 @@
-config NET_RALINK
+config NET_VENDOR_RALINK
        tristate "Ralink ethernet driver"
        depends on RALINK
        help
-         This driver supports the ethernet mac inside the ralink wisocs
+         This driver supports the ethernet mac inside Ralink WiSoCs
 
-if NET_RALINK
+config NET_RALINK_SOC
+       def_tristate NET_VENDOR_RALINK
+
+if NET_RALINK_SOC
 choice
        prompt "MAC type"
 
-config NET_RALINK_RT288X
-       bool "RT288X"
-       depends on SOC_RT288X
+config NET_RALINK_RT2880
+       bool "RT2882"
+       depends on MIPS && SOC_RT288X
 
-config NET_RALINK_RT305X
-       bool "RT305X"
-       depends on (SOC_RT305X || SOC_MT7620)
+config NET_RALINK_RT3050
+       bool "RT3050/MT7628"
+       depends on MIPS && (SOC_RT305X || SOC_MT7620)
 
 config NET_RALINK_RT3883
        bool "RT3883"
-       depends on SOC_RT3883
+       depends on MIPS && SOC_RT3883
 
 config NET_RALINK_MT7620
        bool "MT7620"
-       depends on SOC_MT7620
-
-config NET_RALINK_MT7621
-       bool "MT7621"
-       depends on SOC_MT7621
+       depends on MIPS && SOC_MT7620
 
 endchoice
 
+config NET_RALINK_HW_QOS
+       def_bool NET_RALINK_SOC
+       depends on NET_RALINK_MT7623
+
 config NET_RALINK_MDIO
-       def_bool NET_RALINK
-       depends on (NET_RALINK_RT288X || NET_RALINK_RT3883 || NET_RALINK_MT7620 || NET_RALINK_MT7621)
+       def_bool NET_RALINK_SOC
+       depends on (NET_RALINK_RT2880 || NET_RALINK_RT3883 || NET_RALINK_MT7620)
        select PHYLIB
 
 config NET_RALINK_MDIO_RT2880
-       def_bool NET_RALINK
-       depends on (NET_RALINK_RT288X || NET_RALINK_RT3883)
+       def_bool NET_RALINK_SOC
+       depends on (NET_RALINK_RT2880 || NET_RALINK_RT3883)
        select NET_RALINK_MDIO
 
-config NET_RALINK_ESW_RT3052
-       def_bool NET_RALINK
-       depends on NET_RALINK_RT305X
-       select PHYLIB
-       select SWCONFIG
+config NET_RALINK_MDIO_MT7620
+       def_bool NET_RALINK_SOC
+       depends on NET_RALINK_MT7620
+       select NET_RALINK_MDIO
+
+config NET_RALINK_ESW_RT3050
+       def_tristate NET_RALINK_SOC
+       depends on NET_RALINK_RT3050
 
 config NET_RALINK_GSW_MT7620
-       def_bool NET_RALINK
-       depends on NET_RALINK_MT7620 || NET_RALINK_MT7621
-       select NET_RALINK_MDIO
-       select PHYLIB
-       select SWCONFIG
+       def_tristate NET_RALINK_SOC
+       depends on NET_RALINK_MT7620
 endif