0696d754d5f0c0164589b7182dea1ef93846572e
[openwrt.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   FILES:=$(LINUX_DIR)/net/dsa/dsa_core.ko
22   AUTOLOAD:=$(call AutoLoad,34,dsa_core)
23 endef
24
25 define KernelPackage/dsa/description
26  Kernel module for DSA support.
27 endef
28
29 $(eval $(call KernelPackage,dsa))
30
31
32 define AddDepends/dsa
33   SUBMENU:=$(DSA_MENU)
34   DEPENDS+=kmod-dsa $(1)
35 endef
36
37
38 #
39 # Switch drivers
40 #
41
42 define KernelPackage/dsa-mv88e6060
43   TITLE:=Marvell 88E6060 ethernet switch chip support
44   KCONFIG:=\
45         CONFIG_NET_DSA_MV88E6060 \
46         CONFIG_NET_DSA_TAG_TRAILER=y
47   FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6060.ko
48   AUTOLOAD:=$(call AutoLoad,34,mv88e6060)
49   $(call AddDepends/dsa)
50 endef
51
52 define KernelPackage/dsa-mv88e6060/description
53   This enables support for the Marvell 88E6060 ethernet switch chips.
54 endef
55
56 $(eval $(call KernelPackage,dsa-mv88e6060))
57
58
59 define KernelPackage/dsa-mv88e6xxx
60   TITLE:=Marvell 88E6XXX switch support
61   KCONFIG:=CONFIG_NET_DSA_MV88E6XXX
62   FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6xxx_drv.ko
63   AUTOLOAD:=$(call AutoLoad,34,mv88e6xxx_drv)
64   $(call AddDepends/dsa)
65 endef
66
67 define KernelPackage/dsa-mv88e6xxx/description
68   This enables support for the Marvell 88E6XXX ethernet switch chips.
69 endef
70
71 $(eval $(call KernelPackage,dsa-mv88e6xxx))
72
73 define AddDepends/dsa-mv88e6xxx
74   SUBMENU:=$(DSA_MENU)
75   DEPENDS+=kmod-dsa kmod-dsa-mv88e6xxx $(1)
76 endef
77
78
79 define KernelPackage/dsa-mv88e6131
80   TITLE:=Marvell 88E6085/6095/6095F/6131 switch support
81   KCONFIG:=\
82         CONFIG_NET_DSA_MV88E6131 \
83         CONFIG_NET_DSA_TAG_DSA=y
84   $(call AddDepends/dsa-mv88e6xxx)
85 endef
86
87 define KernelPackage/dsa-mv88e6131/description
88   This enables support for the Marvell 88E6085/6095/6095F/6131 ethernet switch chips.
89 endef
90
91 $(eval $(call KernelPackage,dsa-mv88e6131))
92
93
94 define KernelPackage/dsa-mv88e6123
95   TITLE:=Marvell 88E6123/6161/6165 switch support
96   KCONFIG:=\
97         CONFIG_NET_DSA_MV88E6123_61_65 \
98         CONFIG_NET_DSA_TAG_EDSA=y
99   $(call AddDepends/dsa-mv88e6xxx)
100 endef
101
102 define KernelPackage/dsa-mv88e6123/description
103   This enables support for the Marvell 88E6123/6161/6165 ethernet switch chips.
104 endef
105
106 $(eval $(call KernelPackage,dsa-mv88e6123))
107
108
109 define KernelPackage/dsa-mv88e6171
110   TITLE:=Marvell 88E6171/6172 switch support
111   KCONFIG:=\
112         CONFIG_NET_DSA_MV88E6131 \
113         CONFIG_NET_DSA_TAG_DSA=y
114   $(call AddDepends/dsa-mv88e6xxx)
115 endef
116
117 define KernelPackage/dsa-mv88e6171/description
118   This enables support for the Marvell 88E6171/6172 ethernet switch chips.
119 endef
120
121 $(eval $(call KernelPackage,dsa-mv88e6171))
122
123
124 define KernelPackage/dsa-mv88e6352
125   TITLE:=Marvell 88E6176/88E6352 switch support
126   KCONFIG:=\
127         CONFIG_NET_DSA_MV88E6352 \
128         CONFIG_NET_DSA_TAG_DSA=y
129   $(call AddDepends/dsa-mv88e6xxx)
130 endef
131
132 define KernelPackage/dsa-mv88e6352/description
133   This enables support for the Marvell 88E6176/88E6352 ethernet switch chips.
134 endef
135
136 $(eval $(call KernelPackage,dsa-mv88e6352))