can: hi311x: Add Holt HI-311x CAN driver

This patch adds support for the Holt HI-311x CAN controller. The HI311x
CAN controller is capable of transmitting and receiving standard data
frames, extended data frames and remote frames. The HI311x interfaces
with the host over SPI.

Datasheet: www.holtic.com/documents/371-hi-3110_v-rev-jpdf.do

Signed-off-by: Akshay Bhat <nodeax@gmail.com>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Akshay Bhat 2017-03-17 17:10:40 -04:00 committed by Marc Kleine-Budde
parent 20a1e35511
commit 57e83fb9b7
3 changed files with 1083 additions and 0 deletions

View File

@ -1,6 +1,12 @@
menu "CAN SPI interfaces" menu "CAN SPI interfaces"
depends on SPI depends on SPI
config CAN_HI311X
tristate "Holt HI311x SPI CAN controllers"
depends on CAN_DEV && SPI && HAS_DMA
---help---
Driver for the Holt HI311x SPI CAN controllers.
config CAN_MCP251X config CAN_MCP251X
tristate "Microchip MCP251x SPI CAN controllers" tristate "Microchip MCP251x SPI CAN controllers"
depends on HAS_DMA depends on HAS_DMA

View File

@ -3,4 +3,5 @@
# #
obj-$(CONFIG_CAN_HI311X) += hi311x.o
obj-$(CONFIG_CAN_MCP251X) += mcp251x.o obj-$(CONFIG_CAN_MCP251X) += mcp251x.o

1076
drivers/net/can/spi/hi311x.c Normal file

File diff suppressed because it is too large Load Diff