forked from Minki/linux
cab7ffc032
Add support for M_CAN controller on Intel Elkhart Lake attached to the PCI bus. It integrates the Bosch M_CAN controller with Message RAM and the wrapper IP block with additional registers which all of them are within the same MMIO range. Currently only interrupt control register from wrapper IP is used and the MRAM configuration is expected to come from the firmware via "bosch,mram-cfg" device property and parsed by m_can.c core. Initial implementation is done by Felipe Balbi while he was working at Intel with later changes from Raymond Tan and me. Co-developed-by: Felipe Balbi (Intel) <balbi@kernel.org> Co-developed-by: Raymond Tan <raymond.tan@intel.com> Signed-off-by: Felipe Balbi (Intel) <balbi@kernel.org> Signed-off-by: Raymond Tan <raymond.tan@intel.com> Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Link: https://lore.kernel.org/r/20201117160827.3636264-1-jarkko.nikula@linux.intel.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
menuconfig 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.
|
|
|
|
if CAN_M_CAN
|
|
|
|
config CAN_M_CAN_PCI
|
|
tristate "Generic PCI Bus based M_CAN driver"
|
|
depends on PCI
|
|
help
|
|
Say Y here if you want to support Bosch M_CAN controller connected
|
|
to the pci bus.
|
|
|
|
config CAN_M_CAN_PLATFORM
|
|
tristate "Bosch M_CAN support for io-mapped devices"
|
|
depends on HAS_IOMEM
|
|
help
|
|
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 SPI
|
|
select 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 peripheral device that uses the
|
|
SPI bus for communication.
|
|
|
|
endif
|