Skip to content

Commit

Permalink
can: tcan4x5x: Add tcan4x5x driver to the kernel
Browse files Browse the repository at this point in the history
Add the TCAN4x5x SPI CAN driver.

This device uses the Bosch MCAN IP core along with a SPI interface map.
Register to the MCAN common core code to manage the MCAN IP.

This device has a special method to indicate a write/read operation on
the data payload.

Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Dan Murphy authored and marckleinebudde committed Jul 24, 2019
1 parent 4edd396 commit 5443c22
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/net/can/m_can/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ config CAN_M_CAN_PLATFORM
Say Y here if you want support for IO Mapped Bosch M_CAN controller.
This support is for devices that have the Bosch M_CAN controller
IP embedded into the device and the IP is IO Mapped to the processor.

config CAN_M_CAN_TCAN4X5X
depends on CAN_M_CAN
depends on REGMAP_SPI
tristate "TCAN4X5X M_CAN device"
---help---
Say Y here if you want support for Texas Instruments TCAN4x5x
M_CAN controller. This device is a peripherial device that uses the
SPI bus for communication.
1 change: 1 addition & 0 deletions drivers/net/can/m_can/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@

obj-$(CONFIG_CAN_M_CAN) += m_can.o
obj-$(CONFIG_CAN_M_CAN_PLATFORM) += m_can_platform.o
obj-$(CONFIG_CAN_M_CAN_TCAN4X5X) += tcan4x5x.o

0 comments on commit 5443c22

Please sign in to comment.