drivers: can: Add Kconfig option for CANFD datalenght

Add Kconfig option to select appropriate can data field length

Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
This commit is contained in:
Alexander Wachter 2021-01-17 20:09:05 +01:00 committed by Kumar Gala
commit 2ccbfd661e
2 changed files with 27 additions and 0 deletions

View file

@ -29,6 +29,18 @@ config CAN_FD_MODE
help
Enable CAN-FD compatible API
if CAN_FD_MODE
config CANFD_MAX_DLC
int "Max data length code in CAN frames"
range 8 15
default 15
help
Maximum allowed DLC in a CAN frame. This parameter sets the
data buffer size in a CAN frame and is therefore only used to
optimize memory consumption.
endif # CAN_FD_MODE
config CAN_INIT_PRIORITY
int "CAN driver init priority"
default 80