can.mk 7.5 KB

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