2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 define KernelPackage/can
12 TITLE:=CAN bus support
16 CONFIG_CAN_CALC_BITTIMING=y \
19 CONFIG_CAN_TI_HECC=n \
20 CONFIG_CAN_MCP251X=n \
22 CONFIG_CAN_JANZ_ICAN3=n \
27 CONFIG_CAN_SJA1000=n \
28 CONFIG_CAN_SOFTING=n \
29 CONFIG_CAN_XILINXCAN=n \
30 CONFIG_NET_EMATCH_CANID=n \
31 CONFIG_CAN_DEBUG_DEVICES=n
32 FILES:=$(LINUX_DIR)/drivers/net/can/can-dev.ko \
33 $(LINUX_DIR)/net/can/can.ko
34 AUTOLOAD:=$(call AutoProbe,can can-dev)
37 define KernelPackage/can/description
38 Kernel module for CAN bus support.
41 $(eval $(call KernelPackage,can))
46 DEPENDS+=kmod-can $(1)
50 define KernelPackage/can-raw
51 TITLE:=Raw CAN Protcol
52 KCONFIG:=CONFIG_CAN_RAW
53 FILES:=$(LINUX_DIR)/net/can/can-raw.ko
54 AUTOLOAD:=$(call AutoProbe,can-raw)
55 $(call AddDepends/can)
58 define KernelPackage/can-raw/description
59 The raw CAN protocol option offers access to the CAN bus via
63 $(eval $(call KernelPackage,can-raw))
66 define KernelPackage/can-bcm
67 TITLE:=Broadcast Manager CAN Protcol
68 KCONFIG:=CONFIG_CAN_BCM
69 FILES:=$(LINUX_DIR)/net/can/can-bcm.ko
70 AUTOLOAD:=$(call AutoProbe,can-bcm)
71 $(call AddDepends/can)
74 define KernelPackage/can-bcm/description
75 The Broadcast Manager offers content filtering, timeout monitoring,
76 sending of RTR frames, and cyclic CAN messages without permanent user
80 $(eval $(call KernelPackage,can-bcm))
83 define KernelPackage/can-gw
84 TITLE:=CAN Gateway/Router
85 KCONFIG:=CONFIG_CAN_GW
86 FILES:=$(LINUX_DIR)/net/can/can-gw.ko
87 AUTOLOAD:=$(call AutoProbe,can-gw)
88 $(call AddDepends/can)
91 define KernelPackage/can-gw/description
92 The CAN Gateway/Router is used to route (and modify) CAN frames.
95 $(eval $(call KernelPackage,can-gw))
98 define KernelPackage/can-vcan
99 TITLE:=Virtual Local CAN Interface (vcan)
100 KCONFIG:=CONFIG_CAN_VCAN
101 FILES:=$(LINUX_DIR)/drivers/net/can/vcan.ko
102 AUTOLOAD:=$(call AutoProbe,vcan)
103 $(call AddDepends/can)
106 define KernelPackage/can-vcan/description
107 Similar to the network loopback devices, vcan offers a
108 virtual local CAN interface.
111 $(eval $(call KernelPackage,can-vcan))
114 define KernelPackage/can-slcan
115 TITLE:=Serial / USB serial CAN Adaptors (slcan)
116 KCONFIG:=CONFIG_CAN_SLCAN
117 FILES:=$(LINUX_DIR)/drivers/net/can/slcan.ko
118 AUTOLOAD:=$(call AutoProbe,slcan)
119 $(call AddDepends/can)
122 define KernelPackage/can-slcan/description
123 CAN driver for several 'low cost' CAN interfaces that are attached
124 via serial lines or via USB-to-serial adapters using the LAWICEL
128 $(eval $(call KernelPackage,can-slcan))
131 define KernelPackage/can-flexcan
132 TITLE:=Support for Freescale FLEXCAN based chips
133 KCONFIG:=CONFIG_CAN_FLEXCAN
134 FILES:=$(LINUX_DIR)/drivers/net/can/flexcan.ko
135 AUTOLOAD:=$(call AutoProbe,flexcan)
136 $(call AddDepends/can,@TARGET_imx6)
139 define KernelPackage/can-flexcan/description
140 Freescale FLEXCAN CAN bus controller implementation.
143 $(eval $(call KernelPackage,can-flexcan))
146 define KernelPackage/can-usb-ems
147 TITLE:=EMS CPC-USB/ARM7 CAN/USB interface
148 KCONFIG:=CONFIG_CAN_EMS_USB
149 FILES:=$(LINUX_DIR)/drivers/net/can/usb/ems_usb.ko
150 AUTOLOAD:=$(call AutoProbe,ems_usb)
151 $(call AddDepends/can,+kmod-usb-core)
154 define KernelPackage/can-usb-ems/description
155 This driver is for the one channel CPC-USB/ARM7 CAN/USB interface
156 from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de).
159 $(eval $(call KernelPackage,can-usb-ems))
162 define KernelPackage/can-usb-esd
163 TITLE:=ESD USB/2 CAN/USB interface
164 KCONFIG:=CONFIG_CAN_ESD_USB2
165 FILES:=$(LINUX_DIR)/drivers/net/can/usb/esd_usb2.ko
166 AUTOLOAD:=$(call AutoProbe,esd_usb2)
167 $(call AddDepends/can,+kmod-usb-core)
170 define KernelPackage/can-usb-esd/description
171 This driver supports the CAN-USB/2 interface
172 from esd electronic system design gmbh (http://www.esd.eu).
175 $(eval $(call KernelPackage,can-usb-esd))
178 define KernelPackage/can-usb-kvaser
179 TITLE:=Kvaser CAN/USB interface
180 KCONFIG:=CONFIG_CAN_KVASER_USB
181 FILES:=$(LINUX_DIR)/drivers/net/can/usb/kvaser_usb.ko
182 AUTOLOAD:=$(call AutoProbe,kvaser_usb)
183 $(call AddDepends/can,+kmod-usb-core)
186 define KernelPackage/can-usb-kvaser/description
187 This driver adds support for Kvaser CAN/USB devices like Kvaser
191 $(eval $(call KernelPackage,can-usb-kvaser))
194 define KernelPackage/can-usb-peak
195 TITLE:=PEAK PCAN-USB/USB Pro interfaces
196 KCONFIG:=CONFIG_CAN_PEAK_USB
197 FILES:=$(LINUX_DIR)/drivers/net/can/usb/peak_usb/peak_usb.ko
198 AUTOLOAD:=$(call AutoProbe,peak_usb)
199 $(call AddDepends/can,+kmod-usb-core)
202 define KernelPackage/can-usb-peak/description
203 This driver supports the PCAN-USB and PCAN-USB Pro adapters
204 from PEAK-System Technik (http://www.peak-system.com).
207 $(eval $(call KernelPackage,can-usb-peak))
210 define KernelPackage/can-usb-8dev
211 TITLE:=8 devices USB2CAN interface
212 KCONFIG:=CONFIG_CAN_8DEV_USB
213 FILES:=$(LINUX_DIR)/drivers/net/can/usb/usb_8dev.ko
214 AUTOLOAD:=$(call AutoProbe,usb_8dev)
215 $(call AddDepends/can,+kmod-usb-core)
218 define KernelPackage/can-usb-8dev/description
219 This driver supports the USB2CAN interface
220 from 8 devices (http://www.8devices.com).
223 $(eval $(call KernelPackage,can-usb-8dev))
226 define KernelPackage/can-c-can
227 TITLE:=BOSCH C_CAN/D_CAN drivers
228 KCONFIG:=CONFIG_CAN_C_CAN
229 FILES:=$(LINUX_DIR)/drivers/net/can/c_can/c_can.ko
230 AUTOLOAD:=$(call AutoProbe,c_can)
231 $(call AddDepends/can)
234 define KernelPackage/can-c-can/description
235 This driver adds generic support for the C_CAN/D_CAN chips.
238 $(eval $(call KernelPackage,can-c-can))
241 define KernelPackage/can-c-can-platform
242 TITLE:=Platform Bus based BOSCH C_CAN/D_CAN driver
243 KCONFIG:=CONFIG_CAN_C_CAN_PLATFORM
244 DEPENDS:=kmod-can-c-can +LINUX_4_1:kmod-regmap
245 FILES:=$(LINUX_DIR)/drivers/net/can/c_can/c_can_platform.ko
246 AUTOLOAD:=$(call AutoProbe,c_can_platform)
247 $(call AddDepends/can)
250 define KernelPackage/can-c-can-platform/description
251 This driver adds support for the C_CAN/D_CAN chips connected
252 to the "platform bus" (Linux abstraction for directly to the
253 processor attached devices) which can be found on various
254 boards from ST Microelectronics (http://www.st.com) like the
255 SPEAr1310 and SPEAr320 evaluation boards & TI (www.ti.com)
256 boards like am335x, dm814x, dm813x and dm811x.
259 $(eval $(call KernelPackage,can-c-can-platform))
262 define KernelPackage/can-c-can-pci
263 TITLE:=PCI Bus based BOSCH C_CAN/D_CAN driver
264 KCONFIG:=CONFIG_CAN_C_CAN_PCI
265 DEPENDS:=kmod-can-c-can @PCI_SUPPORT
266 FILES:=$(LINUX_DIR)/drivers/net/can/c_can/c_can_pci.ko
267 AUTOLOAD:=$(call AutoProbe,c_can_pci)
268 $(call AddDepends/can)
271 define KernelPackage/can-c-can-pci/description
272 This driver adds support for the C_CAN/D_CAN chips connected
276 $(eval $(call KernelPackage,can-c-can-pci))