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:
parent
2ccbfd661e
commit
1c50ef6c43
12 changed files with 2846 additions and 2 deletions
35
drivers/can/Kconfig.stm32fd
Normal file
35
drivers/can/Kconfig.stm32fd
Normal file
|
@ -0,0 +1,35 @@
|
|||
# STM32 CAN configuration options
|
||||
if CAN_MCAN && SOC_SERIES_STM32G4X
|
||||
|
||||
config CAN_STM32FD
|
||||
bool
|
||||
default y
|
||||
|
||||
config CAN_MAX_STD_ID_FILTER
|
||||
int "Maximum number of std ID filters"
|
||||
default 28
|
||||
range 0 28
|
||||
help
|
||||
Defines the maximum number of filters with standard ID (11-bit)
|
||||
that can be attached.
|
||||
|
||||
config CAN_MAX_EXT_ID_FILTER
|
||||
int "Maximum number of ext ID filters"
|
||||
default 8
|
||||
range 0 8
|
||||
help
|
||||
Defines the maximum number of filters with extended ID (29-bit)
|
||||
that can be attached.
|
||||
|
||||
config CAN_CKDIV
|
||||
int "CKDIV register value"
|
||||
range 0 15
|
||||
default 0
|
||||
help
|
||||
This value is written to the CKDIV register.
|
||||
The APB clock is divided according to this value before it is feed to
|
||||
CAN core. Note that the the divider affects all CAN controllers.
|
||||
The values of the register are multiplied by two and zero corresponds
|
||||
to one. The value six, for example results in a clock divided by 12.
|
||||
|
||||
endif #CAN_MCAN
|
Loading…
Add table
Add a link
Reference in a new issue