mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
e0d1f4816f
The patch adds the basic CAN TX/RX function support for Bosch M_CAN controller. For TX, only one dedicated tx buffer is used for sending data. For RX, RXFIFO 0 is used for receiving data to avoid overflow. Rx FIFO 1 and Rx Buffers are not used currently, as well as Tx Event FIFO. Due to the message ram can be shared by multi m_can instances and the fifo element is configurable which is SoC dependant, the design is to parse the message ram related configuration data from device tree rather than hardcode define it in driver which can make the message ram sharing fully transparent to M_CAN controller driver, then we can gain better driver maintainability and future features upgrade. M_CAN also supports CANFD protocol features like data payload up to 64 bytes and bitrate switch at runtime, however, this patch still does not add the support for these features. Cc: Wolfgang Grandegger <wg@grandegger.com> Cc: Marc Kleine-Budde <mkl@pengutronix.de> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Oliver Hartkopp <socketcan@hartkopp.net> Cc: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Dong Aisheng <b29396@freescale.com> Reviewed-by: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> [mkl: Squahed semicolon cleanup by Fengguang Wu] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
33 lines
872 B
Makefile
33 lines
872 B
Makefile
#
|
|
# Makefile for the Linux Controller Area Network drivers.
|
|
#
|
|
|
|
obj-$(CONFIG_CAN_VCAN) += vcan.o
|
|
obj-$(CONFIG_CAN_SLCAN) += slcan.o
|
|
|
|
obj-$(CONFIG_CAN_DEV) += can-dev.o
|
|
can-dev-y := dev.o
|
|
|
|
can-dev-$(CONFIG_CAN_LEDS) += led.o
|
|
|
|
obj-y += spi/
|
|
obj-y += usb/
|
|
obj-y += softing/
|
|
|
|
obj-$(CONFIG_CAN_SJA1000) += sja1000/
|
|
obj-$(CONFIG_CAN_MSCAN) += mscan/
|
|
obj-$(CONFIG_CAN_C_CAN) += c_can/
|
|
obj-$(CONFIG_CAN_M_CAN) += m_can/
|
|
obj-$(CONFIG_CAN_CC770) += cc770/
|
|
obj-$(CONFIG_CAN_AT91) += at91_can.o
|
|
obj-$(CONFIG_CAN_TI_HECC) += ti_hecc.o
|
|
obj-$(CONFIG_CAN_BFIN) += bfin_can.o
|
|
obj-$(CONFIG_CAN_JANZ_ICAN3) += janz-ican3.o
|
|
obj-$(CONFIG_CAN_FLEXCAN) += flexcan.o
|
|
obj-$(CONFIG_PCH_CAN) += pch_can.o
|
|
obj-$(CONFIG_CAN_GRCAN) += grcan.o
|
|
obj-$(CONFIG_CAN_RCAR) += rcar_can.o
|
|
obj-$(CONFIG_CAN_XILINXCAN) += xilinx_can.o
|
|
|
|
subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
|