18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_cimenu "CAN Device Drivers"
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciconfig CAN_VCAN
58c2ecf20Sopenharmony_ci	tristate "Virtual Local CAN Interface (vcan)"
68c2ecf20Sopenharmony_ci	help
78c2ecf20Sopenharmony_ci	  Similar to the network loopback devices, vcan offers a
88c2ecf20Sopenharmony_ci	  virtual local CAN interface.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci	  This driver can also be built as a module.  If so, the module
118c2ecf20Sopenharmony_ci	  will be called vcan.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciconfig CAN_VXCAN
148c2ecf20Sopenharmony_ci	tristate "Virtual CAN Tunnel (vxcan)"
158c2ecf20Sopenharmony_ci	help
168c2ecf20Sopenharmony_ci	  Similar to the virtual ethernet driver veth, vxcan implements a
178c2ecf20Sopenharmony_ci	  local CAN traffic tunnel between two virtual CAN network devices.
188c2ecf20Sopenharmony_ci	  When creating a vxcan, two vxcan devices are created as pair.
198c2ecf20Sopenharmony_ci	  When one end receives the packet it appears on its pair and vice
208c2ecf20Sopenharmony_ci	  versa. The vxcan can be used for cross namespace communication.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci	  In opposite to vcan loopback devices the vxcan only forwards CAN
238c2ecf20Sopenharmony_ci	  frames to its pair and does *not* provide a local echo of sent
248c2ecf20Sopenharmony_ci	  CAN frames. To disable a potential echo in af_can.c the vxcan driver
258c2ecf20Sopenharmony_ci	  announces IFF_ECHO in the interface flags. To have a clean start
268c2ecf20Sopenharmony_ci	  in each namespace the CAN GW hop counter is set to zero.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	  This driver can also be built as a module.  If so, the module
298c2ecf20Sopenharmony_ci	  will be called vxcan.
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciconfig CAN_SLCAN
328c2ecf20Sopenharmony_ci	tristate "Serial / USB serial CAN Adaptors (slcan)"
338c2ecf20Sopenharmony_ci	depends on TTY
348c2ecf20Sopenharmony_ci	help
358c2ecf20Sopenharmony_ci	  CAN driver for several 'low cost' CAN interfaces that are attached
368c2ecf20Sopenharmony_ci	  via serial lines or via USB-to-serial adapters using the LAWICEL
378c2ecf20Sopenharmony_ci	  ASCII protocol. The driver implements the tty linediscipline N_SLCAN.
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci	  As only the sending and receiving of CAN frames is implemented, this
408c2ecf20Sopenharmony_ci	  driver should work with the (serial/USB) CAN hardware from:
418c2ecf20Sopenharmony_ci	  www.canusb.com / www.can232.com / www.mictronics.de / www.canhack.de
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci	  Userspace tools to attach the SLCAN line discipline (slcan_attach,
448c2ecf20Sopenharmony_ci	  slcand) can be found in the can-utils at the linux-can project, see
458c2ecf20Sopenharmony_ci	  https://github.com/linux-can/can-utils for details.
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci	  The slcan driver supports up to 10 CAN netdevices by default which
488c2ecf20Sopenharmony_ci	  can be changed by the 'maxdev=xx' module option. This driver can
498c2ecf20Sopenharmony_ci	  also be built as a module. If so, the module will be called slcan.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciconfig CAN_DEV
528c2ecf20Sopenharmony_ci	tristate "Platform CAN drivers with Netlink support"
538c2ecf20Sopenharmony_ci	default y
548c2ecf20Sopenharmony_ci	help
558c2ecf20Sopenharmony_ci	  Enables the common framework for platform CAN drivers with Netlink
568c2ecf20Sopenharmony_ci	  support. This is the standard library for CAN drivers.
578c2ecf20Sopenharmony_ci	  If unsure, say Y.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciif CAN_DEV
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ciconfig CAN_CALC_BITTIMING
628c2ecf20Sopenharmony_ci	bool "CAN bit-timing calculation"
638c2ecf20Sopenharmony_ci	default y
648c2ecf20Sopenharmony_ci	help
658c2ecf20Sopenharmony_ci	  If enabled, CAN bit-timing parameters will be calculated for the
668c2ecf20Sopenharmony_ci	  bit-rate specified via Netlink argument "bitrate" when the device
678c2ecf20Sopenharmony_ci	  get started. This works fine for the most common CAN controllers
688c2ecf20Sopenharmony_ci	  with standard bit-rates but may fail for exotic bit-rates or CAN
698c2ecf20Sopenharmony_ci	  source clock frequencies. Disabling saves some space, but then the
708c2ecf20Sopenharmony_ci	  bit-timing parameters must be specified directly using the Netlink
718c2ecf20Sopenharmony_ci	  arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
728c2ecf20Sopenharmony_ci	  If unsure, say Y.
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ciconfig CAN_LEDS
758c2ecf20Sopenharmony_ci	bool "Enable LED triggers for Netlink based drivers"
768c2ecf20Sopenharmony_ci	depends on LEDS_CLASS
778c2ecf20Sopenharmony_ci	# The netdev trigger (LEDS_TRIGGER_NETDEV) should be able to do
788c2ecf20Sopenharmony_ci	# everything that this driver is doing. This is marked as broken
798c2ecf20Sopenharmony_ci	# because it uses stuff that is intended to be changed or removed.
808c2ecf20Sopenharmony_ci	# Please consider switching to the netdev trigger and confirm it
818c2ecf20Sopenharmony_ci	# fulfills your needs instead of fixing this driver.
828c2ecf20Sopenharmony_ci	depends on BROKEN
838c2ecf20Sopenharmony_ci	select LEDS_TRIGGERS
848c2ecf20Sopenharmony_ci	help
858c2ecf20Sopenharmony_ci	  This option adds two LED triggers for packet receive and transmit
868c2ecf20Sopenharmony_ci	  events on each supported CAN device.
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci	  Say Y here if you are working on a system with led-class supported
898c2ecf20Sopenharmony_ci	  LEDs and you want to use them as canbus activity indicators.
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ciconfig CAN_AT91
928c2ecf20Sopenharmony_ci	tristate "Atmel AT91 onchip CAN controller"
938c2ecf20Sopenharmony_ci	depends on (ARCH_AT91 || COMPILE_TEST) && HAS_IOMEM
948c2ecf20Sopenharmony_ci	help
958c2ecf20Sopenharmony_ci	  This is a driver for the SoC CAN controller in Atmel's AT91SAM9263
968c2ecf20Sopenharmony_ci	  and AT91SAM9X5 processors.
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ciconfig CAN_FLEXCAN
998c2ecf20Sopenharmony_ci	tristate "Support for Freescale FLEXCAN based chips"
1008c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
1018c2ecf20Sopenharmony_ci	help
1028c2ecf20Sopenharmony_ci	  Say Y here if you want to support for Freescale FlexCAN.
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ciconfig CAN_GRCAN
1058c2ecf20Sopenharmony_ci	tristate "Aeroflex Gaisler GRCAN and GRHCAN CAN devices"
1068c2ecf20Sopenharmony_ci	depends on OF && HAS_DMA
1078c2ecf20Sopenharmony_ci	help
1088c2ecf20Sopenharmony_ci	  Say Y here if you want to use Aeroflex Gaisler GRCAN or GRHCAN.
1098c2ecf20Sopenharmony_ci	  Note that the driver supports little endian, even though little
1108c2ecf20Sopenharmony_ci	  endian syntheses of the cores would need some modifications on
1118c2ecf20Sopenharmony_ci	  the hardware level to work.
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ciconfig CAN_JANZ_ICAN3
1148c2ecf20Sopenharmony_ci	tristate "Janz VMOD-ICAN3 Intelligent CAN controller"
1158c2ecf20Sopenharmony_ci	depends on MFD_JANZ_CMODIO
1168c2ecf20Sopenharmony_ci	help
1178c2ecf20Sopenharmony_ci	  Driver for Janz VMOD-ICAN3 Intelligent CAN controller module, which
1188c2ecf20Sopenharmony_ci	  connects to a MODULbus carrier board.
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci	  This driver can also be built as a module. If so, the module will be
1218c2ecf20Sopenharmony_ci	  called janz-ican3.ko.
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_ciconfig CAN_KVASER_PCIEFD
1248c2ecf20Sopenharmony_ci	depends on PCI
1258c2ecf20Sopenharmony_ci	tristate "Kvaser PCIe FD cards"
1268c2ecf20Sopenharmony_ci	select CRC32
1278c2ecf20Sopenharmony_ci	  help
1288c2ecf20Sopenharmony_ci	  This is a driver for the Kvaser PCI Express CAN FD family.
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_ci	  Supported devices:
1318c2ecf20Sopenharmony_ci	    Kvaser PCIEcan 4xHS
1328c2ecf20Sopenharmony_ci	    Kvaser PCIEcan 2xHS v2
1338c2ecf20Sopenharmony_ci	    Kvaser PCIEcan HS v2
1348c2ecf20Sopenharmony_ci	    Kvaser Mini PCI Express HS v2
1358c2ecf20Sopenharmony_ci	    Kvaser Mini PCI Express 2xHS v2
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ciconfig CAN_SUN4I
1388c2ecf20Sopenharmony_ci	tristate "Allwinner A10 CAN controller"
1398c2ecf20Sopenharmony_ci	depends on MACH_SUN4I || MACH_SUN7I || COMPILE_TEST
1408c2ecf20Sopenharmony_ci	help
1418c2ecf20Sopenharmony_ci	  Say Y here if you want to use CAN controller found on Allwinner
1428c2ecf20Sopenharmony_ci	  A10/A20 SoCs.
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the module will
1458c2ecf20Sopenharmony_ci	  be called sun4i_can.
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ciconfig CAN_TI_HECC
1488c2ecf20Sopenharmony_ci	depends on ARM
1498c2ecf20Sopenharmony_ci	tristate "TI High End CAN Controller"
1508c2ecf20Sopenharmony_ci	help
1518c2ecf20Sopenharmony_ci	  Driver for TI HECC (High End CAN Controller) module found on many
1528c2ecf20Sopenharmony_ci	  TI devices. The device specifications are available from www.ti.com
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ciconfig CAN_XILINXCAN
1558c2ecf20Sopenharmony_ci	tristate "Xilinx CAN"
1568c2ecf20Sopenharmony_ci	depends on ARCH_ZYNQ || ARM64 || MICROBLAZE || COMPILE_TEST
1578c2ecf20Sopenharmony_ci	depends on COMMON_CLK && HAS_IOMEM
1588c2ecf20Sopenharmony_ci	help
1598c2ecf20Sopenharmony_ci	  Xilinx CAN driver. This driver supports both soft AXI CAN IP and
1608c2ecf20Sopenharmony_ci	  Zynq CANPS IP.
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_ciconfig PCH_CAN
1638c2ecf20Sopenharmony_ci	tristate "Intel EG20T PCH CAN controller"
1648c2ecf20Sopenharmony_ci	depends on PCI && (X86_32 || COMPILE_TEST)
1658c2ecf20Sopenharmony_ci	help
1668c2ecf20Sopenharmony_ci	  This driver is for PCH CAN of Topcliff (Intel EG20T PCH) which
1678c2ecf20Sopenharmony_ci	  is an IOH for x86 embedded processor (Intel Atom E6xx series).
1688c2ecf20Sopenharmony_ci	  This driver can access CAN bus.
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_cisource "drivers/net/can/c_can/Kconfig"
1718c2ecf20Sopenharmony_cisource "drivers/net/can/cc770/Kconfig"
1728c2ecf20Sopenharmony_cisource "drivers/net/can/ifi_canfd/Kconfig"
1738c2ecf20Sopenharmony_cisource "drivers/net/can/m_can/Kconfig"
1748c2ecf20Sopenharmony_cisource "drivers/net/can/mscan/Kconfig"
1758c2ecf20Sopenharmony_cisource "drivers/net/can/peak_canfd/Kconfig"
1768c2ecf20Sopenharmony_cisource "drivers/net/can/rcar/Kconfig"
1778c2ecf20Sopenharmony_cisource "drivers/net/can/sja1000/Kconfig"
1788c2ecf20Sopenharmony_cisource "drivers/net/can/softing/Kconfig"
1798c2ecf20Sopenharmony_cisource "drivers/net/can/spi/Kconfig"
1808c2ecf20Sopenharmony_cisource "drivers/net/can/usb/Kconfig"
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_ciendif
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_ciconfig CAN_DEBUG_DEVICES
1858c2ecf20Sopenharmony_ci	bool "CAN devices debugging messages"
1868c2ecf20Sopenharmony_ci	help
1878c2ecf20Sopenharmony_ci	  Say Y here if you want the CAN device drivers to produce a bunch of
1888c2ecf20Sopenharmony_ci	  debug messages to the system log.  Select this if you are having
1898c2ecf20Sopenharmony_ci	  a problem with CAN support and want to see more of what is going
1908c2ecf20Sopenharmony_ci	  on.
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ciendmenu
193