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