Skip to content
Permalink
Browse files

drivers: can: add support for two CAN controller instances

Add support for two CAN bus controller instances and disable both of
them by default. Enable CAN_1 for the STM boards currently supporting
CAN.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information...
henrikbrixandersen authored and MaureenHelm committed Jun 6, 2019
1 parent a570b40 commit 64a9a0450075e3b5e8f1d82fc630c50ca687ebba
@@ -55,4 +55,11 @@ config SPI_1

endif # SPI

if CAN

config CAN_1
default y

endif # CAN

endif # BOARD_NUCLEO_F746ZG
@@ -35,4 +35,11 @@ config SPI_STM32_INTERRUPT

endif # SPI

if CAN

config CAN_1
default y

endif # CAN

endif # BOARD_NUCLEO_L432KC
@@ -37,4 +37,11 @@ config SPI_STM32_INTERRUPT

endif # SPI

if CAN

config CAN_1
default y

endif # CAN

endif # BOARD_STM32F072B_DISCO
@@ -36,9 +36,13 @@ config CAN_WORKQ_FRAMES_BUF_CNT
help
Number of frames in the buffer of a zcan_work.

config CAN_0
bool "Enable CAN 0"
help
Enable CAN controller 0

config CAN_1
bool "Enable CAN 1"
default y
help
Enable CAN controller 1

0 comments on commit 64a9a04

Please sign in to comment.
You can’t perform that action at this time.