Skip to content

Commit 5443c22

Browse files
Dan Murphymarckleinebudde
authored andcommitted
can: tcan4x5x: Add tcan4x5x driver to the kernel
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 <[email protected]> Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 4edd396 commit 5443c22

File tree

3 files changed

+542
-0
lines changed

3 files changed

+542
-0
lines changed

drivers/net/can/m_can/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ config CAN_M_CAN_PLATFORM
1313
Say Y here if you want support for IO Mapped Bosch M_CAN controller.
1414
This support is for devices that have the Bosch M_CAN controller
1515
IP embedded into the device and the IP is IO Mapped to the processor.
16+
17+
config CAN_M_CAN_TCAN4X5X
18+
depends on CAN_M_CAN
19+
depends on REGMAP_SPI
20+
tristate "TCAN4X5X M_CAN device"
21+
---help---
22+
Say Y here if you want support for Texas Instruments TCAN4x5x
23+
M_CAN controller. This device is a peripherial device that uses the
24+
SPI bus for communication.

drivers/net/can/m_can/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55

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

0 commit comments

Comments
 (0)