mac80211: refresh patches
[openwrt/staging/wigyori.git] / package / kernel / linux / modules / can.mk
1 #
2 # Copyright (C) 2013 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 CAN_MENU:=CAN Support
9
10 define KernelPackage/can
11 SUBMENU:=$(CAN_MENU)
12 TITLE:=CAN bus support
13 KCONFIG:=\
14 CONFIG_CAN=m \
15 CONFIG_CAN_DEV \
16 CONFIG_CAN_CALC_BITTIMING=y \
17 CONFIG_CAN_LEDS=y \
18 CONFIG_CAN_AT91=n \
19 CONFIG_CAN_TI_HECC=n \
20 CONFIG_CAN_MCP251X=n \
21 CONFIG_CAN_BFIN=n \
22 CONFIG_CAN_JANZ_ICAN3=n \
23 CONFIG_PCH_CAN=n \
24 CONFIG_CAN_GRCAN=n \
25 CONFIG_CAN_CC770=n \
26 CONFIG_CAN_MSCAN=n \
27 CONFIG_CAN_SJA1000=n \
28 CONFIG_CAN_SOFTING=n \
29 CONFIG_NET_EMATCH_CANID=n \
30 CONFIG_CAN_DEBUG_DEVICES=n
31 FILES:=$(LINUX_DIR)/drivers/net/can/can-dev.ko \
32 $(LINUX_DIR)/net/can/can.ko
33 AUTOLOAD:=$(call AutoProbe,can can-dev)
34 endef
35
36 define KernelPackage/can/description
37 Kernel module for CAN bus support.
38 endef
39
40 $(eval $(call KernelPackage,can))
41
42
43 define AddDepends/can
44 SUBMENU:=$(CAN_MENU)
45 DEPENDS+=kmod-can $(1)
46 endef
47
48
49 define KernelPackage/can-bcm
50 TITLE:=Broadcast Manager CAN Protcol
51 KCONFIG:=CONFIG_CAN_BCM
52 FILES:=$(LINUX_DIR)/net/can/can-bcm.ko
53 AUTOLOAD:=$(call AutoProbe,can-bcm)
54 $(call AddDepends/can)
55 endef
56
57 define KernelPackage/can-bcm/description
58 The Broadcast Manager offers content filtering, timeout monitoring,
59 sending of RTR frames, and cyclic CAN messages without permanent user
60 interaction.
61 endef
62
63 $(eval $(call KernelPackage,can-bcm))
64
65
66 define KernelPackage/can-c-can
67 TITLE:=BOSCH C_CAN/D_CAN drivers
68 KCONFIG:=CONFIG_CAN_C_CAN
69 FILES:=$(LINUX_DIR)/drivers/net/can/c_can/c_can.ko
70 AUTOLOAD:=$(call AutoProbe,c_can)
71 $(call AddDepends/can)
72 endef
73
74 define KernelPackage/can-c-can/description
75 This driver adds generic support for the C_CAN/D_CAN chips.
76 endef
77
78 $(eval $(call KernelPackage,can-c-can))
79
80
81 define KernelPackage/can-c-can-pci
82 TITLE:=PCI Bus based BOSCH C_CAN/D_CAN driver
83 KCONFIG:=CONFIG_CAN_C_CAN_PCI
84 DEPENDS:=kmod-can-c-can @PCI_SUPPORT
85 FILES:=$(LINUX_DIR)/drivers/net/can/c_can/c_can_pci.ko
86 AUTOLOAD:=$(call AutoProbe,c_can_pci)
87 $(call AddDepends/can)
88 endef
89
90 define KernelPackage/can-c-can-pci/description
91 This driver adds support for the C_CAN/D_CAN chips connected
92 to the PCI bus.
93 endef
94
95 $(eval $(call KernelPackage,can-c-can-pci))
96
97
98 define KernelPackage/can-c-can-platform
99 TITLE:=Platform Bus based BOSCH C_CAN/D_CAN driver
100 KCONFIG:=CONFIG_CAN_C_CAN_PLATFORM
101 DEPENDS:=kmod-can-c-can +kmod-regmap-core
102 FILES:=$(LINUX_DIR)/drivers/net/can/c_can/c_can_platform.ko
103 AUTOLOAD:=$(call AutoProbe,c_can_platform)
104 $(call AddDepends/can)
105 endef
106
107 define KernelPackage/can-c-can-platform/description
108 This driver adds support for the C_CAN/D_CAN chips connected
109 to the "platform bus" (Linux abstraction for directly to the
110 processor attached devices) which can be found on various
111 boards from ST Microelectronics (http://www.st.com) like the
112 SPEAr1310 and SPEAr320 evaluation boards & TI (www.ti.com)
113 boards like am335x, dm814x, dm813x and dm811x.
114 endef
115
116 $(eval $(call KernelPackage,can-c-can-platform))
117
118
119 define KernelPackage/can-flexcan
120 TITLE:=Support for Freescale FLEXCAN based chips
121 KCONFIG:=CONFIG_CAN_FLEXCAN
122 FILES:=$(LINUX_DIR)/drivers/net/can/flexcan.ko
123 AUTOLOAD:=$(call AutoProbe,flexcan)
124 $(call AddDepends/can,@TARGET_imx6)
125 endef
126
127 define KernelPackage/can-flexcan/description
128 Freescale FLEXCAN CAN bus controller implementation.
129 endef
130
131 $(eval $(call KernelPackage,can-flexcan))
132
133
134 define KernelPackage/can-gw
135 TITLE:=CAN Gateway/Router
136 KCONFIG:=CONFIG_CAN_GW
137 FILES:=$(LINUX_DIR)/net/can/can-gw.ko
138 AUTOLOAD:=$(call AutoProbe,can-gw)
139 $(call AddDepends/can)
140 endef
141
142 define KernelPackage/can-gw/description
143 The CAN Gateway/Router is used to route (and modify) CAN frames.
144 endef
145
146 $(eval $(call KernelPackage,can-gw))
147
148
149 define KernelPackage/can-raw
150 TITLE:=Raw CAN Protcol
151 KCONFIG:=CONFIG_CAN_RAW
152 FILES:=$(LINUX_DIR)/net/can/can-raw.ko
153 AUTOLOAD:=$(call AutoProbe,can-raw)
154 $(call AddDepends/can)
155 endef
156
157 define KernelPackage/can-raw/description
158 The raw CAN protocol option offers access to the CAN bus via
159 the BSD socket API.
160 endef
161
162 $(eval $(call KernelPackage,can-raw))
163
164
165 define KernelPackage/can-slcan
166 TITLE:=Serial / USB serial CAN Adaptors (slcan)
167 KCONFIG:=CONFIG_CAN_SLCAN
168 FILES:=$(LINUX_DIR)/drivers/net/can/slcan.ko
169 AUTOLOAD:=$(call AutoProbe,slcan)
170 $(call AddDepends/can)
171 endef
172
173 define KernelPackage/can-slcan/description
174 CAN driver for several 'low cost' CAN interfaces that are attached
175 via serial lines or via USB-to-serial adapters using the LAWICEL
176 ASCII protocol.
177 endef
178
179 $(eval $(call KernelPackage,can-slcan))
180
181
182 define KernelPackage/can-usb-8dev
183 TITLE:=8 devices USB2CAN interface
184 KCONFIG:=CONFIG_CAN_8DEV_USB
185 FILES:=$(LINUX_DIR)/drivers/net/can/usb/usb_8dev.ko
186 AUTOLOAD:=$(call AutoProbe,usb_8dev)
187 $(call AddDepends/can,+kmod-usb-core)
188 endef
189
190 define KernelPackage/can-usb-8dev/description
191 This driver supports the USB2CAN interface
192 from 8 devices (http://www.8devices.com).
193 endef
194
195 $(eval $(call KernelPackage,can-usb-8dev))
196
197
198 define KernelPackage/can-usb-ems
199 TITLE:=EMS CPC-USB/ARM7 CAN/USB interface
200 KCONFIG:=CONFIG_CAN_EMS_USB
201 FILES:=$(LINUX_DIR)/drivers/net/can/usb/ems_usb.ko
202 AUTOLOAD:=$(call AutoProbe,ems_usb)
203 $(call AddDepends/can,+kmod-usb-core)
204 endef
205
206 define KernelPackage/can-usb-ems/description
207 This driver is for the one channel CPC-USB/ARM7 CAN/USB interface
208 from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de).
209 endef
210
211 $(eval $(call KernelPackage,can-usb-ems))
212
213
214 define KernelPackage/can-usb-esd
215 TITLE:=ESD USB/2 CAN/USB interface
216 KCONFIG:=CONFIG_CAN_ESD_USB2
217 FILES:=$(LINUX_DIR)/drivers/net/can/usb/esd_usb2.ko
218 AUTOLOAD:=$(call AutoProbe,esd_usb2)
219 $(call AddDepends/can,+kmod-usb-core)
220 endef
221
222 define KernelPackage/can-usb-esd/description
223 This driver supports the CAN-USB/2 interface
224 from esd electronic system design gmbh (http://www.esd.eu).
225 endef
226
227 $(eval $(call KernelPackage,can-usb-esd))
228
229
230 define KernelPackage/can-usb-kvaser
231 TITLE:=Kvaser CAN/USB interface
232 KCONFIG:=CONFIG_CAN_KVASER_USB
233 FILES:= \
234 $(LINUX_DIR)/drivers/net/can/usb/kvaser_usb.ko@lt4.19 \
235 $(LINUX_DIR)/drivers/net/can/usb/kvaser_usb/kvaser_usb.ko@ge4.19
236 AUTOLOAD:=$(call AutoProbe,kvaser_usb)
237 $(call AddDepends/can,+kmod-usb-core)
238 endef
239
240 define KernelPackage/can-usb-kvaser/description
241 This driver adds support for Kvaser CAN/USB devices like Kvaser
242 Leaf Light.
243 endef
244
245 $(eval $(call KernelPackage,can-usb-kvaser))
246
247
248 define KernelPackage/can-usb-peak
249 TITLE:=PEAK PCAN-USB/USB Pro interfaces
250 KCONFIG:=CONFIG_CAN_PEAK_USB
251 FILES:=$(LINUX_DIR)/drivers/net/can/usb/peak_usb/peak_usb.ko
252 AUTOLOAD:=$(call AutoProbe,peak_usb)
253 $(call AddDepends/can,+kmod-usb-core)
254 endef
255
256 define KernelPackage/can-usb-peak/description
257 This driver supports the PCAN-USB and PCAN-USB Pro adapters
258 from PEAK-System Technik (http://www.peak-system.com).
259 endef
260
261 $(eval $(call KernelPackage,can-usb-peak))
262
263
264 define KernelPackage/can-vcan
265 TITLE:=Virtual Local CAN Interface (vcan)
266 KCONFIG:=CONFIG_CAN_VCAN
267 FILES:=$(LINUX_DIR)/drivers/net/can/vcan.ko
268 AUTOLOAD:=$(call AutoProbe,vcan)
269 $(call AddDepends/can)
270 endef
271
272 define KernelPackage/can-vcan/description
273 Similar to the network loopback devices, vcan offers a
274 virtual local CAN interface.
275 endef
276
277 $(eval $(call KernelPackage,can-vcan))
278
279 define KernelPackage/can-xilinx-can
280 TITLE:=Xilinx CAN IP
281 KCONFIG:=CONFIG_CAN_XILINXCAN
282 FILES:=$(LINUX_DIR)/drivers/net/can/xilinx_can.ko
283 AUTOLOAD:=$(call AutoProbe,xilinx_can)
284 $(call AddDepends/can,@TARGET_zynq)
285 endef
286
287 define KernelPackage/can-xilinx-can/description
288 Xilinx CAN driver. This driver supports both
289 soft AXI CAN IP and Zynq CANPS IP.
290 endef
291
292 $(eval $(call KernelPackage,can-xilinx-can))