Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig CAN_DEV
  3. tristate "CAN Device Drivers"
  4. default y
  5. depends on CAN
  6. help
  7. Controller Area Network (CAN) is serial communications protocol up to
  8. 1Mbit/s for its original release (now known as Classical CAN) and up
  9. to 8Mbit/s for the more recent CAN with Flexible Data-Rate
  10. (CAN-FD). The CAN bus was originally mainly for automotive, but is now
  11. widely used in marine (NMEA2000), industrial, and medical
  12. applications. More information on the CAN network protocol family
  13. PF_CAN is contained in <Documentation/networking/can.rst>.
  14. This section contains all the CAN(-FD) device drivers including the
  15. virtual ones. If you own such devices or plan to use the virtual CAN
  16. interfaces to develop applications, say Y here.
  17. To compile as a module, choose M here: the module will be called
  18. can-dev.
  19. if CAN_DEV
  20. config CAN_VCAN
  21. tristate "Virtual Local CAN Interface (vcan)"
  22. help
  23. Similar to the network loopback devices, vcan offers a
  24. virtual local CAN interface.
  25. This driver can also be built as a module. If so, the module
  26. will be called vcan.
  27. config CAN_VXCAN
  28. tristate "Virtual CAN Tunnel (vxcan)"
  29. help
  30. Similar to the virtual ethernet driver veth, vxcan implements a
  31. local CAN traffic tunnel between two virtual CAN network devices.
  32. When creating a vxcan, two vxcan devices are created as pair.
  33. When one end receives the packet it appears on its pair and vice
  34. versa. The vxcan can be used for cross namespace communication.
  35. In opposite to vcan loopback devices the vxcan only forwards CAN
  36. frames to its pair and does *not* provide a local echo of sent
  37. CAN frames. To disable a potential echo in af_can.c the vxcan driver
  38. announces IFF_ECHO in the interface flags. To have a clean start
  39. in each namespace the CAN GW hop counter is set to zero.
  40. This driver can also be built as a module. If so, the module
  41. will be called vxcan.
  42. config CAN_NETLINK
  43. bool "CAN device drivers with Netlink support"
  44. default y
  45. help
  46. Enables the common framework for CAN device drivers. This is the
  47. standard library and provides features for the Netlink interface such
  48. as bittiming validation, support of CAN error states, device restart
  49. and others.
  50. The additional features selected by this option will be added to the
  51. can-dev module.
  52. This is required by all platform and hardware CAN drivers. If you
  53. plan to use such devices or if unsure, say Y.
  54. if CAN_NETLINK
  55. config CAN_CALC_BITTIMING
  56. bool "CAN bit-timing calculation"
  57. default y
  58. help
  59. If enabled, CAN bit-timing parameters will be calculated for the
  60. bit-rate specified via Netlink argument "bitrate" when the device
  61. get started. This works fine for the most common CAN controllers
  62. with standard bit-rates but may fail for exotic bit-rates or CAN
  63. source clock frequencies. Disabling saves some space, but then the
  64. bit-timing parameters must be specified directly using the Netlink
  65. arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
  66. The additional features selected by this option will be added to the
  67. can-dev module.
  68. If unsure, say Y.
  69. config CAN_RX_OFFLOAD
  70. bool
  71. config CAN_AT91
  72. tristate "Atmel AT91 onchip CAN controller"
  73. depends on (ARCH_AT91 || COMPILE_TEST) && HAS_IOMEM
  74. select CAN_RX_OFFLOAD
  75. help
  76. This is a driver for the SoC CAN controller in Atmel's AT91SAM9263
  77. and AT91SAM9X5 processors.
  78. config CAN_BXCAN
  79. tristate "STM32 Basic Extended CAN (bxCAN) devices"
  80. depends on ARCH_STM32 || COMPILE_TEST
  81. depends on HAS_IOMEM
  82. select CAN_RX_OFFLOAD
  83. help
  84. Say yes here to build support for the STMicroelectronics STM32 basic
  85. extended CAN Controller (bxCAN).
  86. This driver can also be built as a module. If so, the module
  87. will be called bxcan.
  88. config CAN_CAN327
  89. tristate "Serial / USB serial ELM327 based OBD-II Interfaces (can327)"
  90. depends on TTY
  91. select CAN_RX_OFFLOAD
  92. help
  93. CAN driver for several 'low cost' OBD-II interfaces based on the
  94. ELM327 OBD-II interpreter chip.
  95. This is a best effort driver - the ELM327 interface was never
  96. designed to be used as a standalone CAN interface. However, it can
  97. still be used for simple request-response protocols (such as OBD II),
  98. and to monitor broadcast messages on a bus (such as in a vehicle).
  99. Please refer to the documentation for information on how to use it:
  100. Documentation/networking/device_drivers/can/can327.rst
  101. If this driver is built as a module, it will be called can327.
  102. config CAN_DUMMY
  103. tristate "Dummy CAN"
  104. help
  105. A dummy CAN module supporting Classical CAN, CAN FD and CAN XL. It
  106. exposes bittiming values which can be configured through the netlink
  107. interface.
  108. The module will simply echo any frame sent to it. If debug messages
  109. are activated, it prints all the CAN bittiming information in the
  110. kernel log. Aside from that it does nothing.
  111. This is convenient for testing the CAN netlink interface. Most of the
  112. users will never need this. If unsure, say NO.
  113. To compile this driver as a module, choose M here: the module will be
  114. called dummy-can.
  115. config CAN_FLEXCAN
  116. tristate "Support for Freescale FLEXCAN based chips"
  117. depends on OF || COLDFIRE || COMPILE_TEST
  118. depends on HAS_IOMEM
  119. select CAN_RX_OFFLOAD
  120. help
  121. Say Y here if you want to support for Freescale FlexCAN.
  122. config CAN_GRCAN
  123. tristate "Aeroflex Gaisler GRCAN and GRHCAN CAN devices"
  124. depends on OF && HAS_DMA && HAS_IOMEM
  125. help
  126. Say Y here if you want to use Aeroflex Gaisler GRCAN or GRHCAN.
  127. Note that the driver supports little endian, even though little
  128. endian syntheses of the cores would need some modifications on
  129. the hardware level to work.
  130. config CAN_JANZ_ICAN3
  131. tristate "Janz VMOD-ICAN3 Intelligent CAN controller"
  132. depends on MFD_JANZ_CMODIO
  133. help
  134. Driver for Janz VMOD-ICAN3 Intelligent CAN controller module, which
  135. connects to a MODULbus carrier board.
  136. This driver can also be built as a module. If so, the module will be
  137. called janz-ican3.ko.
  138. config CAN_KVASER_PCIEFD
  139. depends on PCI
  140. tristate "Kvaser PCIe FD cards"
  141. select NET_DEVLINK
  142. help
  143. This is a driver for the Kvaser PCI Express CAN FD family.
  144. Supported devices:
  145. Kvaser PCIEcan 4xHS
  146. Kvaser PCIEcan 2xHS v2
  147. Kvaser PCIEcan HS v2
  148. Kvaser PCIEcan 1xCAN v3
  149. Kvaser PCIEcan 2xCAN v3
  150. Kvaser PCIEcan 4xCAN v2
  151. Kvaser Mini PCI Express HS v2
  152. Kvaser Mini PCI Express 2xHS v2
  153. Kvaser Mini PCI Express 1xCAN v3
  154. Kvaser Mini PCI Express 2xCAN v3
  155. Kvaser M.2 PCIe 4xCAN
  156. Kvaser PCIe 8xCAN
  157. config CAN_SLCAN
  158. tristate "Serial / USB serial CAN Adaptors (slcan)"
  159. depends on TTY
  160. help
  161. CAN driver for several 'low cost' CAN interfaces that are attached
  162. via serial lines or via USB-to-serial adapters using the LAWICEL
  163. ASCII protocol. The driver implements the tty linediscipline N_SLCAN.
  164. As only the sending and receiving of CAN frames is implemented, this
  165. driver should work with the (serial/USB) CAN hardware from:
  166. www.canusb.com / www.can232.com / www.mictronics.de / www.canhack.de
  167. Userspace tools to attach the SLCAN line discipline (slcan_attach,
  168. slcand) can be found in the can-utils at the linux-can project, see
  169. https://github.com/linux-can/can-utils for details.
  170. This driver can also be built as a module. If so, the module
  171. will be called slcan.
  172. config CAN_SUN4I
  173. tristate "Allwinner A10 CAN controller"
  174. depends on MACH_SUN4I || MACH_SUN7I || (RISCV && ARCH_SUNXI) || COMPILE_TEST
  175. help
  176. Say Y here if you want to use CAN controller found on Allwinner
  177. A10/A20/D1 SoCs.
  178. To compile this driver as a module, choose M here: the module will
  179. be called sun4i_can.
  180. config CAN_TI_HECC
  181. depends on ARM || COMPILE_TEST
  182. tristate "TI High End CAN Controller"
  183. select CAN_RX_OFFLOAD
  184. help
  185. Driver for TI HECC (High End CAN Controller) module found on many
  186. TI devices. The device specifications are available from www.ti.com
  187. config CAN_XILINXCAN
  188. tristate "Xilinx CAN"
  189. depends on ARCH_ZYNQ || ARM64 || MICROBLAZE || COMPILE_TEST
  190. depends on COMMON_CLK && HAS_IOMEM
  191. help
  192. Xilinx CAN driver. This driver supports both soft AXI CAN IP and
  193. Zynq CANPS IP.
  194. source "drivers/net/can/c_can/Kconfig"
  195. source "drivers/net/can/cc770/Kconfig"
  196. source "drivers/net/can/ctucanfd/Kconfig"
  197. source "drivers/net/can/esd/Kconfig"
  198. source "drivers/net/can/ifi_canfd/Kconfig"
  199. source "drivers/net/can/m_can/Kconfig"
  200. source "drivers/net/can/mscan/Kconfig"
  201. source "drivers/net/can/peak_canfd/Kconfig"
  202. source "drivers/net/can/rcar/Kconfig"
  203. source "drivers/net/can/rockchip/Kconfig"
  204. source "drivers/net/can/sja1000/Kconfig"
  205. source "drivers/net/can/softing/Kconfig"
  206. source "drivers/net/can/spi/Kconfig"
  207. source "drivers/net/can/usb/Kconfig"
  208. endif #CAN_NETLINK
  209. config CAN_DEBUG_DEVICES
  210. bool "CAN devices debugging messages"
  211. help
  212. Say Y here if you want the CAN device drivers to produce a bunch of
  213. debug messages to the system log. Select this if you are having
  214. a problem with CAN support and want to see more of what is going
  215. on.
  216. endif #CAN_DEV