72dd93513c252bed55262297d8321d4997a6cb04
[openwrt/svn-archive/archive.git] / package / kernel / linux / modules / dsa.mk
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 #
9 # DSA core
10 #
11
12 DSA_MENU:=DSA Support
13
14 define KernelPackage/dsa
15 SUBMENU:=$(DSA_MENU)
16 TITLE:=DSA support
17 KCONFIG:=\
18 CONFIG_NET_DSA \
19 CONFIG_NET_SWITCHDEV=y \
20 CONFIG_NET_DSA_HWMON=n
21 DEPENDS:=+kmod-libphy
22 ifeq ($(CONFIG_OF),y)
23 DEPENDS+=+kmod-of-mdio
24 endif
25 FILES:=$(LINUX_DIR)/net/dsa/dsa_core.ko
26 AUTOLOAD:=$(call AutoLoad,34,dsa_core)
27 endef
28
29 define KernelPackage/dsa/description
30 Kernel module for DSA support.
31 endef
32
33 $(eval $(call KernelPackage,dsa))
34
35
36 define AddDepends/dsa
37 SUBMENU:=$(DSA_MENU)
38 DEPENDS+=kmod-dsa $(1)
39 endef
40
41
42 #
43 # Switch drivers
44 #
45
46 define KernelPackage/dsa-mv88e6060
47 TITLE:=Marvell 88E6060 ethernet switch chip support
48 KCONFIG:=\
49 CONFIG_NET_DSA_MV88E6060 \
50 CONFIG_NET_DSA_TAG_TRAILER=y
51 FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6060.ko
52 AUTOLOAD:=$(call AutoLoad,34,mv88e6060)
53 $(call AddDepends/dsa)
54 endef
55
56 define KernelPackage/dsa-mv88e6060/description
57 This enables support for the Marvell 88E6060 ethernet switch chips.
58 endef
59
60 $(eval $(call KernelPackage,dsa-mv88e6060))
61
62
63 define KernelPackage/dsa-mv88e6xxx
64 TITLE:=Marvell 88E6XXX switch support
65 KCONFIG:=CONFIG_NET_DSA_MV88E6XXX
66 FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6xxx_drv.ko
67 AUTOLOAD:=$(call AutoLoad,34,mv88e6xxx_drv)
68 $(call AddDepends/dsa)
69 endef
70
71 define KernelPackage/dsa-mv88e6xxx/description
72 This enables support for the Marvell 88E6XXX ethernet switch chips.
73 endef
74
75 $(eval $(call KernelPackage,dsa-mv88e6xxx))
76
77 define AddDepends/dsa-mv88e6xxx
78 SUBMENU:=$(DSA_MENU)
79 DEPENDS+=kmod-dsa kmod-dsa-mv88e6xxx $(1)
80 endef
81
82
83 define KernelPackage/dsa-mv88e6131
84 TITLE:=Marvell 88E6085/6095/6095F/6131 switch support
85 KCONFIG:=\
86 CONFIG_NET_DSA_MV88E6131 \
87 CONFIG_NET_DSA_TAG_DSA=y
88 $(call AddDepends/dsa-mv88e6xxx)
89 endef
90
91 define KernelPackage/dsa-mv88e6131/description
92 This enables support for the Marvell 88E6085/6095/6095F/6131 ethernet switch chips.
93 endef
94
95 $(eval $(call KernelPackage,dsa-mv88e6131))
96
97
98 define KernelPackage/dsa-mv88e6123
99 TITLE:=Marvell 88E6123/6161/6165 switch support
100 KCONFIG:=\
101 CONFIG_NET_DSA_MV88E6123_61_65 \
102 CONFIG_NET_DSA_TAG_EDSA=y
103 $(call AddDepends/dsa-mv88e6xxx)
104 endef
105
106 define KernelPackage/dsa-mv88e6123/description
107 This enables support for the Marvell 88E6123/6161/6165 ethernet switch chips.
108 endef
109
110 $(eval $(call KernelPackage,dsa-mv88e6123))
111
112
113 define KernelPackage/dsa-mv88e6171
114 TITLE:=Marvell 88E6171/6172 switch support
115 KCONFIG:=\
116 CONFIG_NET_DSA_MV88E6131 \
117 CONFIG_NET_DSA_TAG_DSA=y
118 $(call AddDepends/dsa-mv88e6xxx)
119 endef
120
121 define KernelPackage/dsa-mv88e6171/description
122 This enables support for the Marvell 88E6171/6172 ethernet switch chips.
123 endef
124
125 $(eval $(call KernelPackage,dsa-mv88e6171))
126
127
128 define KernelPackage/dsa-mv88e6352
129 TITLE:=Marvell 88E6176/88E6352 switch support
130 KCONFIG:=\
131 CONFIG_NET_DSA_MV88E6352 \
132 CONFIG_NET_DSA_TAG_DSA=y
133 $(call AddDepends/dsa-mv88e6xxx)
134 endef
135
136 define KernelPackage/dsa-mv88e6352/description
137 This enables support for the Marvell 88E6176/88E6352 ethernet switch chips.
138 endef
139
140 $(eval $(call KernelPackage,dsa-mv88e6352))