Skip to content

Commit f524f82

Browse files
Dan Murphymarckleinebudde
authored andcommitted
can: m_can: Create a m_can platform framework
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 <[email protected]> Signed-off-by: Dan Murphy <[email protected]> Acked-by: Faiz Abbas <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 6965219 commit f524f82

File tree

5 files changed

+704
-345
lines changed

5 files changed

+704
-345
lines changed

drivers/net/can/m_can/Kconfig

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config CAN_M_CAN
3+
tristate "Bosch M_CAN support"
4+
---help---
5+
Say Y here if you want support for Bosch M_CAN controller framework.
6+
This is common support for devices that embed the Bosch M_CAN IP.
7+
8+
config CAN_M_CAN_PLATFORM
9+
tristate "Bosch M_CAN support for io-mapped devices"
310
depends on HAS_IOMEM
4-
tristate "Bosch M_CAN devices"
11+
depends on CAN_M_CAN
512
---help---
6-
Say Y here if you want to support for Bosch M_CAN controller.
13+
Say Y here if you want support for IO Mapped Bosch M_CAN controller.
14+
This support is for devices that have the Bosch M_CAN controller
15+
IP embedded into the device and the IP is IO Mapped to the processor.

drivers/net/can/m_can/Makefile

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

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

0 commit comments

Comments
 (0)