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
23 DEPENDS
+=+kmod-of-mdio
25 FILES
:=$(LINUX_DIR
)/net
/dsa
/dsa_core.ko
26 AUTOLOAD
:=$(call AutoLoad
,34,dsa_core
)
29 define KernelPackage
/dsa
/description
30 Kernel module for DSA support.
33 $(eval
$(call KernelPackage
,dsa
))
38 DEPENDS
+=kmod-dsa
$(1)
46 define KernelPackage
/dsa-mv88e6060
47 TITLE
:=Marvell
88E6060 ethernet switch chip support
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
)
56 define KernelPackage
/dsa-mv88e6060
/description
57 This enables support for the Marvell
88E6060 ethernet switch chips.
60 $(eval
$(call KernelPackage
,dsa-mv88e6060
))
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
)
71 define KernelPackage
/dsa-mv88e6xxx
/description
72 This enables support for the Marvell
88E6XXX ethernet switch chips.
75 $(eval
$(call KernelPackage
,dsa-mv88e6xxx
))
77 define AddDepends
/dsa-mv88e6xxx
79 DEPENDS
+=kmod-dsa kmod-dsa-mv88e6xxx
$(1)
83 define KernelPackage
/dsa-mv88e6131
84 TITLE
:=Marvell
88E6085
/6095/6095F
/6131 switch support
86 CONFIG_NET_DSA_MV88E6131 \
87 CONFIG_NET_DSA_TAG_DSA
=y
88 $(call AddDepends
/dsa-mv88e6xxx
)
91 define KernelPackage
/dsa-mv88e6131
/description
92 This enables support for the Marvell
88E6085
/6095/6095F
/6131 ethernet switch chips.
95 $(eval
$(call KernelPackage
,dsa-mv88e6131
))
98 define KernelPackage
/dsa-mv88e6123
99 TITLE
:=Marvell
88E6123
/6161/6165 switch support
101 CONFIG_NET_DSA_MV88E6123_61_65 \
102 CONFIG_NET_DSA_TAG_EDSA
=y
103 $(call AddDepends
/dsa-mv88e6xxx
)
106 define KernelPackage
/dsa-mv88e6123
/description
107 This enables support for the Marvell
88E6123
/6161/6165 ethernet switch chips.
110 $(eval
$(call KernelPackage
,dsa-mv88e6123
))
113 define KernelPackage
/dsa-mv88e6171
114 TITLE
:=Marvell
88E6171
/6172 switch support
116 CONFIG_NET_DSA_MV88E6131 \
117 CONFIG_NET_DSA_TAG_DSA
=y
118 $(call AddDepends
/dsa-mv88e6xxx
)
121 define KernelPackage
/dsa-mv88e6171
/description
122 This enables support for the Marvell
88E6171
/6172 ethernet switch chips.
125 $(eval
$(call KernelPackage
,dsa-mv88e6171
))
128 define KernelPackage
/dsa-mv88e6352
129 TITLE
:=Marvell
88E6176
/88E6352 switch support
131 CONFIG_NET_DSA_MV88E6352 \
132 CONFIG_NET_DSA_TAG_DSA
=y
133 $(call AddDepends
/dsa-mv88e6xxx
)
136 define KernelPackage
/dsa-mv88e6352
/description
137 This enables support for the Marvell
88E6176
/88E6352 ethernet switch chips.
140 $(eval
$(call KernelPackage
,dsa-mv88e6352
))