2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
14 define KernelPackage/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)
25 define KernelPackage/dsa/description
26 Kernel module for DSA support.
29 $(eval $(call KernelPackage,dsa))
34 DEPENDS+=kmod-dsa $(1)
42 define KernelPackage/dsa-mv88e6060
43 TITLE:=Marvell 88E6060 ethernet switch chip support
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)
52 define KernelPackage/dsa-mv88e6060/description
53 This enables support for the Marvell 88E6060 ethernet switch chips.
56 $(eval $(call KernelPackage,dsa-mv88e6060))
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)
67 define KernelPackage/dsa-mv88e6xxx/description
68 This enables support for the Marvell 88E6XXX ethernet switch chips.
71 $(eval $(call KernelPackage,dsa-mv88e6xxx))
73 define AddDepends/dsa-mv88e6xxx
75 DEPENDS+=kmod-dsa kmod-dsa-mv88e6xxx $(1)
79 define KernelPackage/dsa-mv88e6131
80 TITLE:=Marvell 88E6085/6095/6095F/6131 switch support
82 CONFIG_NET_DSA_MV88E6131 \
83 CONFIG_NET_DSA_TAG_DSA=y
84 $(call AddDepends/dsa-mv88e6xxx)
87 define KernelPackage/dsa-mv88e6131/description
88 This enables support for the Marvell 88E6085/6095/6095F/6131 ethernet switch chips.
91 $(eval $(call KernelPackage,dsa-mv88e6131))
94 define KernelPackage/dsa-mv88e6123
95 TITLE:=Marvell 88E6123/6161/6165 switch support
97 CONFIG_NET_DSA_MV88E6123_61_65 \
98 CONFIG_NET_DSA_TAG_EDSA=y
99 $(call AddDepends/dsa-mv88e6xxx)
102 define KernelPackage/dsa-mv88e6123/description
103 This enables support for the Marvell 88E6123/6161/6165 ethernet switch chips.
106 $(eval $(call KernelPackage,dsa-mv88e6123))
109 define KernelPackage/dsa-mv88e6171
110 TITLE:=Marvell 88E6171/6172 switch support
112 CONFIG_NET_DSA_MV88E6131 \
113 CONFIG_NET_DSA_TAG_DSA=y
114 $(call AddDepends/dsa-mv88e6xxx)
117 define KernelPackage/dsa-mv88e6171/description
118 This enables support for the Marvell 88E6171/6172 ethernet switch chips.
121 $(eval $(call KernelPackage,dsa-mv88e6171))
124 define KernelPackage/dsa-mv88e6352
125 TITLE:=Marvell 88E6176/88E6352 switch support
127 CONFIG_NET_DSA_MV88E6352 \
128 CONFIG_NET_DSA_TAG_DSA=y
129 $(call AddDepends/dsa-mv88e6xxx)
132 define KernelPackage/dsa-mv88e6352/description
133 This enables support for the Marvell 88E6176/88E6352 ethernet switch chips.
136 $(eval $(call KernelPackage,dsa-mv88e6352))