From 185432c96dd74fb30edc334f973a5a42876d22f0 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Mon, 21 Oct 2024 18:18:23 +0000 Subject: [PATCH] drivers: can: select CONFIG_PINCTRL where needed Select CONFIG_PINCTRL for all CAN controllers drivers using pinctrl. Signed-off-by: Henrik Brix Andersen --- drivers/can/Kconfig.esp32 | 1 + drivers/can/Kconfig.nrf | 1 + drivers/can/Kconfig.numaker | 1 + drivers/can/Kconfig.rcar | 1 + drivers/can/Kconfig.sam | 1 + drivers/can/Kconfig.sam0 | 1 + drivers/can/Kconfig.stm32 | 2 ++ drivers/can/Kconfig.xmc4xxx | 1 + 8 files changed, 9 insertions(+) diff --git a/drivers/can/Kconfig.esp32 b/drivers/can/Kconfig.esp32 index e1b301096578..432c8c7ca23e 100644 --- a/drivers/can/Kconfig.esp32 +++ b/drivers/can/Kconfig.esp32 @@ -8,6 +8,7 @@ config CAN_ESP32_TWAI default y depends on DT_HAS_ESPRESSIF_ESP32_TWAI_ENABLED select CAN_SJA1000 + select PINCTRL help This enables support for the Espressif Two-Wire Automotive Interface (TWAI) CAN driver. diff --git a/drivers/can/Kconfig.nrf b/drivers/can/Kconfig.nrf index d21bb4e7ebe3..47c65e418b8f 100644 --- a/drivers/can/Kconfig.nrf +++ b/drivers/can/Kconfig.nrf @@ -7,5 +7,6 @@ config CAN_NRF depends on DT_HAS_NORDIC_NRF_CAN_ENABLED select CAN_MCAN select CLOCK_CONTROL + select PINCTRL help Driver for nRF CAN. diff --git a/drivers/can/Kconfig.numaker b/drivers/can/Kconfig.numaker index f36feee6fb41..3e0db28a2004 100644 --- a/drivers/can/Kconfig.numaker +++ b/drivers/can/Kconfig.numaker @@ -7,6 +7,7 @@ config CAN_NUMAKER bool "Nuvoton NuMaker CAN FD driver" default y select CAN_MCAN + select PINCTRL depends on DT_HAS_NUVOTON_NUMAKER_CANFD_ENABLED depends on SOC_SERIES_M46X || SOC_SERIES_M2L31X help diff --git a/drivers/can/Kconfig.rcar b/drivers/can/Kconfig.rcar index abbd41cf8de4..7ae2e1e927ea 100644 --- a/drivers/can/Kconfig.rcar +++ b/drivers/can/Kconfig.rcar @@ -7,6 +7,7 @@ config CAN_RCAR bool "Renesas R-Car CAN Driver" default y depends on DT_HAS_RENESAS_RCAR_CAN_ENABLED + select PINCTRL help Enable Renesas R-Car CAN Driver. diff --git a/drivers/can/Kconfig.sam b/drivers/can/Kconfig.sam index cfb3d9d2709d..cf62f6678d95 100644 --- a/drivers/can/Kconfig.sam +++ b/drivers/can/Kconfig.sam @@ -7,3 +7,4 @@ config CAN_SAM default y depends on DT_HAS_ATMEL_SAM_CAN_ENABLED select CAN_MCAN + select PINCTRL diff --git a/drivers/can/Kconfig.sam0 b/drivers/can/Kconfig.sam0 index aca2befcca81..f5c941c2cf8e 100644 --- a/drivers/can/Kconfig.sam0 +++ b/drivers/can/Kconfig.sam0 @@ -7,3 +7,4 @@ config CAN_SAM0 default y depends on DT_HAS_ATMEL_SAM0_CAN_ENABLED select CAN_MCAN + select PINCTRL diff --git a/drivers/can/Kconfig.stm32 b/drivers/can/Kconfig.stm32 index a9f8dca2a882..65da04a7225f 100644 --- a/drivers/can/Kconfig.stm32 +++ b/drivers/can/Kconfig.stm32 @@ -53,6 +53,7 @@ config CAN_STM32_FDCAN default y depends on DT_HAS_ST_STM32_FDCAN_ENABLED select CAN_MCAN + select PINCTRL select USE_STM32_LL_RCC if CAN_STM32_FDCAN @@ -80,4 +81,5 @@ config CAN_STM32H7_FDCAN default y depends on DT_HAS_ST_STM32H7_FDCAN_ENABLED select CAN_MCAN + select PINCTRL select USE_STM32_LL_RCC diff --git a/drivers/can/Kconfig.xmc4xxx b/drivers/can/Kconfig.xmc4xxx index 2fbb5df70645..00a6598fa28f 100644 --- a/drivers/can/Kconfig.xmc4xxx +++ b/drivers/can/Kconfig.xmc4xxx @@ -29,6 +29,7 @@ config CAN_XMC4XXX_RX_FIFO_ITEMS config CAN_XMC4XXX_INTERNAL_BUS_MODE bool "Internal bus mode" + select PINCTRL help Connects all XMC4XXX CAN devices to an internal bus. Enables message exchange between MCU CAN devices without any external connectors.