drivers: can: Implement Bosch M_CAN driver

Implementation of the Bosch M_CAN IP driver.
This driver is just the base for a specific SoC implementation.

Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
This commit is contained in:
Alexander Wachter 2021-02-11 20:07:04 +01:00 committed by Kumar Gala
commit 1c50ef6c43
12 changed files with 2846 additions and 2 deletions

22
drivers/can/Kconfig.mcan Normal file
View file

@ -0,0 +1,22 @@
# Bosch m_can configuration options
# Copyright (c) 2020 Alexander Wachter
# SPDX-License-Identifier: Apache-2.0
config CAN_MCAN
bool
select CAN_HAS_CANFD
help
Enable Bosch m_can driver.
This driver supports the Bosch m_can IP. This IP is built into the
STM32G4, STM32G0 and the Microchip SAM controllers with CAN-FD.
if CAN_MCAN
config CAN_DELAY_COMP
bool "Enable transceiver delay compensation"
default y
help
Enable the automatic transceiver delay compensation.
endif #CAN_MCAN