diff options
-rw-r--r-- | drivers/net/Kconfig | 2 | ||||
-rw-r--r-- | drivers/net/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/dsa/Kconfig | 36 | ||||
-rw-r--r-- | drivers/net/dsa/Makefile | 9 | ||||
-rw-r--r-- | drivers/net/dsa/mv88e6060.c (renamed from net/dsa/mv88e6060.c) | 0 | ||||
-rw-r--r-- | drivers/net/dsa/mv88e6123_61_65.c (renamed from net/dsa/mv88e6123_61_65.c) | 0 | ||||
-rw-r--r-- | drivers/net/dsa/mv88e6131.c (renamed from net/dsa/mv88e6131.c) | 0 | ||||
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.c (renamed from net/dsa/mv88e6xxx.c) | 0 | ||||
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h (renamed from net/dsa/mv88e6xxx.h) | 0 | ||||
-rw-r--r-- | net/dsa/Kconfig | 36 | ||||
-rw-r--r-- | net/dsa/Makefile | 11 |
11 files changed, 49 insertions, 46 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index debdf1c07c5b..9845afb37cc8 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -243,6 +243,8 @@ source "drivers/atm/Kconfig" | |||
243 | 243 | ||
244 | source "drivers/net/caif/Kconfig" | 244 | source "drivers/net/caif/Kconfig" |
245 | 245 | ||
246 | source "drivers/net/dsa/Kconfig" | ||
247 | |||
246 | source "drivers/net/ethernet/Kconfig" | 248 | source "drivers/net/ethernet/Kconfig" |
247 | 249 | ||
248 | source "drivers/net/fddi/Kconfig" | 250 | source "drivers/net/fddi/Kconfig" |
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 4e4ebfe1aa53..1988881853ab 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
@@ -30,6 +30,7 @@ obj-$(CONFIG_DEV_APPLETALK) += appletalk/ | |||
30 | obj-$(CONFIG_CAIF) += caif/ | 30 | obj-$(CONFIG_CAIF) += caif/ |
31 | obj-$(CONFIG_CAN) += can/ | 31 | obj-$(CONFIG_CAN) += can/ |
32 | obj-$(CONFIG_ETRAX_ETHERNET) += cris/ | 32 | obj-$(CONFIG_ETRAX_ETHERNET) += cris/ |
33 | obj-$(CONFIG_NET_DSA) += dsa/ | ||
33 | obj-$(CONFIG_ETHERNET) += ethernet/ | 34 | obj-$(CONFIG_ETHERNET) += ethernet/ |
34 | obj-$(CONFIG_FDDI) += fddi/ | 35 | obj-$(CONFIG_FDDI) += fddi/ |
35 | obj-$(CONFIG_HIPPI) += hippi/ | 36 | obj-$(CONFIG_HIPPI) += hippi/ |
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig new file mode 100644 index 000000000000..dd151d53d506 --- /dev/null +++ b/drivers/net/dsa/Kconfig | |||
@@ -0,0 +1,36 @@ | |||
1 | menu "Distributed Switch Architecture drivers" | ||
2 | depends on NET_DSA | ||
3 | |||
4 | config NET_DSA_MV88E6XXX | ||
5 | tristate | ||
6 | default n | ||
7 | |||
8 | config NET_DSA_MV88E6060 | ||
9 | tristate "Marvell 88E6060 ethernet switch chip support" | ||
10 | select NET_DSA_TAG_TRAILER | ||
11 | ---help--- | ||
12 | This enables support for the Marvell 88E6060 ethernet switch | ||
13 | chip. | ||
14 | |||
15 | config NET_DSA_MV88E6XXX_NEED_PPU | ||
16 | bool | ||
17 | default n | ||
18 | |||
19 | config NET_DSA_MV88E6131 | ||
20 | tristate "Marvell 88E6085/6095/6095F/6131 ethernet switch chip support" | ||
21 | select NET_DSA_MV88E6XXX | ||
22 | select NET_DSA_MV88E6XXX_NEED_PPU | ||
23 | select NET_DSA_TAG_DSA | ||
24 | ---help--- | ||
25 | This enables support for the Marvell 88E6085/6095/6095F/6131 | ||
26 | ethernet switch chips. | ||
27 | |||
28 | config NET_DSA_MV88E6123_61_65 | ||
29 | tristate "Marvell 88E6123/6161/6165 ethernet switch chip support" | ||
30 | select NET_DSA_MV88E6XXX | ||
31 | select NET_DSA_TAG_EDSA | ||
32 | ---help--- | ||
33 | This enables support for the Marvell 88E6123/6161/6165 | ||
34 | ethernet switch chips. | ||
35 | |||
36 | endmenu | ||
diff --git a/drivers/net/dsa/Makefile b/drivers/net/dsa/Makefile new file mode 100644 index 000000000000..f3bda05536cc --- /dev/null +++ b/drivers/net/dsa/Makefile | |||
@@ -0,0 +1,9 @@ | |||
1 | obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o | ||
2 | obj-$(CONFIG_NET_DSA_MV88E6XXX) += mv88e6xxx_drv.o | ||
3 | mv88e6xxx_drv-y += mv88e6xxx.o | ||
4 | ifdef CONFIG_NET_DSA_MV88E6123_61_65 | ||
5 | mv88e6xxx_drv-y += mv88e6123_61_65.o | ||
6 | endif | ||
7 | ifdef CONFIG_NET_DSA_MV88E6131 | ||
8 | mv88e6xxx_drv-y += mv88e6131.o | ||
9 | endif | ||
diff --git a/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c index 7fc4e81d4d43..7fc4e81d4d43 100644 --- a/net/dsa/mv88e6060.c +++ b/drivers/net/dsa/mv88e6060.c | |||
diff --git a/net/dsa/mv88e6123_61_65.c b/drivers/net/dsa/mv88e6123_61_65.c index c0a458fc698f..c0a458fc698f 100644 --- a/net/dsa/mv88e6123_61_65.c +++ b/drivers/net/dsa/mv88e6123_61_65.c | |||
diff --git a/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c index e0eb68243834..e0eb68243834 100644 --- a/net/dsa/mv88e6131.c +++ b/drivers/net/dsa/mv88e6131.c | |||
diff --git a/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c index 5467c040824a..5467c040824a 100644 --- a/net/dsa/mv88e6xxx.c +++ b/drivers/net/dsa/mv88e6xxx.c | |||
diff --git a/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index fc2cd7b90e8d..fc2cd7b90e8d 100644 --- a/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h | |||
diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig index 7e12303827e8..274791cd7a35 100644 --- a/net/dsa/Kconfig +++ b/net/dsa/Kconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | menuconfig NET_DSA | 1 | config NET_DSA |
2 | tristate "Distributed Switch Architecture support" | 2 | tristate "Distributed Switch Architecture support" |
3 | default n | 3 | default n |
4 | depends on EXPERIMENTAL && NETDEVICES && !S390 | 4 | depends on EXPERIMENTAL && NETDEVICES && !S390 |
@@ -23,38 +23,4 @@ config NET_DSA_TAG_TRAILER | |||
23 | bool | 23 | bool |
24 | default n | 24 | default n |
25 | 25 | ||
26 | |||
27 | # switch drivers | ||
28 | config NET_DSA_MV88E6XXX | ||
29 | tristate | ||
30 | default n | ||
31 | |||
32 | config NET_DSA_MV88E6060 | ||
33 | tristate "Marvell 88E6060 ethernet switch chip support" | ||
34 | select NET_DSA_TAG_TRAILER | ||
35 | ---help--- | ||
36 | This enables support for the Marvell 88E6060 ethernet switch | ||
37 | chip. | ||
38 | |||
39 | config NET_DSA_MV88E6XXX_NEED_PPU | ||
40 | bool | ||
41 | default n | ||
42 | |||
43 | config NET_DSA_MV88E6131 | ||
44 | tristate "Marvell 88E6085/6095/6095F/6131 ethernet switch chip support" | ||
45 | select NET_DSA_MV88E6XXX | ||
46 | select NET_DSA_MV88E6XXX_NEED_PPU | ||
47 | select NET_DSA_TAG_DSA | ||
48 | ---help--- | ||
49 | This enables support for the Marvell 88E6085/6095/6095F/6131 | ||
50 | ethernet switch chips. | ||
51 | |||
52 | config NET_DSA_MV88E6123_61_65 | ||
53 | tristate "Marvell 88E6123/6161/6165 ethernet switch chip support" | ||
54 | select NET_DSA_MV88E6XXX | ||
55 | select NET_DSA_TAG_EDSA | ||
56 | ---help--- | ||
57 | This enables support for the Marvell 88E6123/6161/6165 | ||
58 | ethernet switch chips. | ||
59 | |||
60 | endif | 26 | endif |
diff --git a/net/dsa/Makefile b/net/dsa/Makefile index 191dd482e557..7b9fcbbeda5d 100644 --- a/net/dsa/Makefile +++ b/net/dsa/Makefile | |||
@@ -6,14 +6,3 @@ dsa_core-y += dsa.o slave.o | |||
6 | dsa_core-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o | 6 | dsa_core-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o |
7 | dsa_core-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o | 7 | dsa_core-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o |
8 | dsa_core-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o | 8 | dsa_core-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o |
9 | |||
10 | # switch drivers | ||
11 | obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o | ||
12 | obj-$(CONFIG_NET_DSA_MV88E6XXX) += mv88e6xxx_drv.o | ||
13 | mv88e6xxx_drv-y += mv88e6xxx.o | ||
14 | ifdef CONFIG_NET_DSA_MV88E6123_61_65 | ||
15 | mv88e6xxx_drv-y += mv88e6123_61_65.o | ||
16 | endif | ||
17 | ifdef CONFIG_NET_DSA_MV88E6131 | ||
18 | mv88e6xxx_drv-y += mv88e6131.o | ||
19 | endif | ||