Kconfig 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "CAN Device Drivers"
  3. config CAN_VCAN
  4. tristate "Virtual Local CAN Interface (vcan)"
  5. ---help---
  6. Similar to the network loopback devices, vcan offers a
  7. virtual local CAN interface.
  8. This driver can also be built as a module. If so, the module
  9. will be called vcan.
  10. config CAN_VXCAN
  11. tristate "Virtual CAN Tunnel (vxcan)"
  12. ---help---
  13. Similar to the virtual ethernet driver veth, vxcan implements a
  14. local CAN traffic tunnel between two virtual CAN network devices.
  15. When creating a vxcan, two vxcan devices are created as pair.
  16. When one end receives the packet it appears on its pair and vice
  17. versa. The vxcan can be used for cross namespace communication.
  18. In opposite to vcan loopback devices the vxcan only forwards CAN
  19. frames to its pair and does *not* provide a local echo of sent
  20. CAN frames. To disable a potential echo in af_can.c the vxcan driver
  21. announces IFF_ECHO in the interface flags. To have a clean start
  22. in each namespace the CAN GW hop counter is set to zero.
  23. This driver can also be built as a module. If so, the module
  24. will be called vxcan.
  25. config CAN_SLCAN
  26. tristate "Serial / USB serial CAN Adaptors (slcan)"
  27. depends on TTY
  28. ---help---
  29. CAN driver for several 'low cost' CAN interfaces that are attached
  30. via serial lines or via USB-to-serial adapters using the LAWICEL
  31. ASCII protocol. The driver implements the tty linediscipline N_SLCAN.
  32. As only the sending and receiving of CAN frames is implemented, this
  33. driver should work with the (serial/USB) CAN hardware from:
  34. www.canusb.com / www.can232.com / www.mictronics.de / www.canhack.de
  35. Userspace tools to attach the SLCAN line discipline (slcan_attach,
  36. slcand) can be found in the can-utils at the SocketCAN SVN, see
  37. http://developer.berlios.de/projects/socketcan for details.
  38. The slcan driver supports up to 10 CAN netdevices by default which
  39. can be changed by the 'maxdev=xx' module option. This driver can
  40. also be built as a module. If so, the module will be called slcan.
  41. config CAN_DEV
  42. tristate "Platform CAN drivers with Netlink support"
  43. default y
  44. ---help---
  45. Enables the common framework for platform CAN drivers with Netlink
  46. support. This is the standard library for CAN drivers.
  47. If unsure, say Y.
  48. if CAN_DEV
  49. config CAN_CALC_BITTIMING
  50. bool "CAN bit-timing calculation"
  51. default y
  52. ---help---
  53. If enabled, CAN bit-timing parameters will be calculated for the
  54. bit-rate specified via Netlink argument "bitrate" when the device
  55. get started. This works fine for the most common CAN controllers
  56. with standard bit-rates but may fail for exotic bit-rates or CAN
  57. source clock frequencies. Disabling saves some space, but then the
  58. bit-timing parameters must be specified directly using the Netlink
  59. arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
  60. If unsure, say Y.
  61. config CAN_LEDS
  62. bool "Enable LED triggers for Netlink based drivers"
  63. depends on LEDS_CLASS
  64. # The netdev trigger (LEDS_TRIGGER_NETDEV) should be able to do
  65. # everything that this driver is doing. This is marked as broken
  66. # because it uses stuff that is intended to be changed or removed.
  67. # Please consider switching to the netdev trigger and confirm it
  68. # fulfills your needs instead of fixing this driver.
  69. depends on BROKEN
  70. select LEDS_TRIGGERS
  71. ---help---
  72. This option adds two LED triggers for packet receive and transmit
  73. events on each supported CAN device.
  74. Say Y here if you are working on a system with led-class supported
  75. LEDs and you want to use them as canbus activity indicators.
  76. config CAN_AT91
  77. tristate "Atmel AT91 onchip CAN controller"
  78. depends on (ARCH_AT91 || COMPILE_TEST) && HAS_IOMEM
  79. ---help---
  80. This is a driver for the SoC CAN controller in Atmel's AT91SAM9263
  81. and AT91SAM9X5 processors.
  82. config CAN_FLEXCAN
  83. tristate "Support for Freescale FLEXCAN based chips"
  84. depends on OF && HAS_IOMEM
  85. ---help---
  86. Say Y here if you want to support for Freescale FlexCAN.
  87. config CAN_GRCAN
  88. tristate "Aeroflex Gaisler GRCAN and GRHCAN CAN devices"
  89. depends on OF && HAS_DMA
  90. ---help---
  91. Say Y here if you want to use Aeroflex Gaisler GRCAN or GRHCAN.
  92. Note that the driver supports little endian, even though little
  93. endian syntheses of the cores would need some modifications on
  94. the hardware level to work.
  95. config CAN_JANZ_ICAN3
  96. tristate "Janz VMOD-ICAN3 Intelligent CAN controller"
  97. depends on MFD_JANZ_CMODIO
  98. ---help---
  99. Driver for Janz VMOD-ICAN3 Intelligent CAN controller module, which
  100. connects to a MODULbus carrier board.
  101. This driver can also be built as a module. If so, the module will be
  102. called janz-ican3.ko.
  103. config CAN_KVASER_PCIEFD
  104. depends on PCI
  105. tristate "Kvaser PCIe FD cards"
  106. select CRC32
  107. help
  108. This is a driver for the Kvaser PCI Express CAN FD family.
  109. Supported devices:
  110. Kvaser PCIEcan 4xHS
  111. Kvaser PCIEcan 2xHS v2
  112. Kvaser PCIEcan HS v2
  113. Kvaser Mini PCI Express HS v2
  114. Kvaser Mini PCI Express 2xHS v2
  115. config CAN_SUN4I
  116. tristate "Allwinner A10 CAN controller"
  117. depends on MACH_SUN4I || MACH_SUN7I || COMPILE_TEST
  118. ---help---
  119. Say Y here if you want to use CAN controller found on Allwinner
  120. A10/A20 SoCs.
  121. To compile this driver as a module, choose M here: the module will
  122. be called sun4i_can.
  123. config CAN_TI_HECC
  124. depends on ARM
  125. tristate "TI High End CAN Controller"
  126. ---help---
  127. Driver for TI HECC (High End CAN Controller) module found on many
  128. TI devices. The device specifications are available from www.ti.com
  129. config CAN_XILINXCAN
  130. tristate "Xilinx CAN"
  131. depends on ARCH_ZYNQ || ARM64 || MICROBLAZE || COMPILE_TEST
  132. depends on COMMON_CLK && HAS_IOMEM
  133. ---help---
  134. Xilinx CAN driver. This driver supports both soft AXI CAN IP and
  135. Zynq CANPS IP.
  136. config PCH_CAN
  137. tristate "Intel EG20T PCH CAN controller"
  138. depends on PCI && (X86_32 || COMPILE_TEST)
  139. ---help---
  140. This driver is for PCH CAN of Topcliff (Intel EG20T PCH) which
  141. is an IOH for x86 embedded processor (Intel Atom E6xx series).
  142. This driver can access CAN bus.
  143. source "drivers/net/can/c_can/Kconfig"
  144. source "drivers/net/can/cc770/Kconfig"
  145. source "drivers/net/can/ifi_canfd/Kconfig"
  146. source "drivers/net/can/m_can/Kconfig"
  147. source "drivers/net/can/mscan/Kconfig"
  148. source "drivers/net/can/peak_canfd/Kconfig"
  149. source "drivers/net/can/rcar/Kconfig"
  150. source "drivers/net/can/sja1000/Kconfig"
  151. source "drivers/net/can/softing/Kconfig"
  152. source "drivers/net/can/spi/Kconfig"
  153. source "drivers/net/can/usb/Kconfig"
  154. endif
  155. config CAN_DEBUG_DEVICES
  156. bool "CAN devices debugging messages"
  157. ---help---
  158. Say Y here if you want the CAN device drivers to produce a bunch of
  159. debug messages to the system log. Select this if you are having
  160. a problem with CAN support and want to see more of what is going
  161. on.
  162. endmenu