Skip to content

Commit

Permalink
can: m_can: Create a m_can platform framework
Browse files Browse the repository at this point in the history
Create a m_can platform framework that peripheral
devices can register to and use common code and register sets.
The peripheral devices may provide read/write and configuration
support of the IP.

Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Faiz Abbas <faiz_abbas@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 6965219 commit f524f82
Show file tree
Hide file tree
Showing 5 changed files with 704 additions and 345 deletions.
13 changes: 11 additions & 2 deletions drivers/net/can/m_can/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# SPDX-License-Identifier: GPL-2.0-only
config CAN_M_CAN
tristate "Bosch M_CAN support"
---help---
Say Y here if you want support for Bosch M_CAN controller framework.
This is common support for devices that embed the Bosch M_CAN IP.

config CAN_M_CAN_PLATFORM
tristate "Bosch M_CAN support for io-mapped devices"
depends on HAS_IOMEM
tristate "Bosch M_CAN devices"
depends on CAN_M_CAN
---help---
Say Y here if you want to support for Bosch M_CAN controller.
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.
1 change: 1 addition & 0 deletions drivers/net/can/m_can/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
#

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

0 comments on commit f524f82

Please sign in to comment.