From 36f4ef70a91ab89def3619eed867031e65b08ff9 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Wed, 3 Apr 2024 15:19:48 +0200 Subject: [PATCH] drivers: can: transceiver: gpio: automatically select GPIO Automatically select CONFIG_GPIO when the GPIO-controlled CAN transceiver driver is enabled. Update board configurations to benefit from this. Signed-off-by: Henrik Brix Andersen --- boards/nxp/mr_canhubk3/Kconfig.defconfig | 7 ------- boards/nxp/ucans32k1sic/Kconfig.defconfig | 7 ------- drivers/can/transceiver/Kconfig | 2 +- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/boards/nxp/mr_canhubk3/Kconfig.defconfig b/boards/nxp/mr_canhubk3/Kconfig.defconfig index 02710328d6..9d280f7cf3 100644 --- a/boards/nxp/mr_canhubk3/Kconfig.defconfig +++ b/boards/nxp/mr_canhubk3/Kconfig.defconfig @@ -23,13 +23,6 @@ config WDT_NXP_FS26_INIT_PRIORITY endif # WDT_NXP_FS26 endif # SPI -if CAN - -config GPIO - default y - -endif # CAN - if NETWORKING config NET_L2_ETHERNET diff --git a/boards/nxp/ucans32k1sic/Kconfig.defconfig b/boards/nxp/ucans32k1sic/Kconfig.defconfig index 9c6542625b..9b896847c2 100644 --- a/boards/nxp/ucans32k1sic/Kconfig.defconfig +++ b/boards/nxp/ucans32k1sic/Kconfig.defconfig @@ -10,11 +10,4 @@ config UART_CONSOLE endif # SERIAL -if CAN - -config GPIO - default y - -endif # CAN - endif # BOARD_UCANS32K1SIC diff --git a/drivers/can/transceiver/Kconfig b/drivers/can/transceiver/Kconfig index 91af7a1782..e6af354ff4 100644 --- a/drivers/can/transceiver/Kconfig +++ b/drivers/can/transceiver/Kconfig @@ -15,7 +15,7 @@ config CAN_TRANSCEIVER_GPIO bool "GPIO controlled CAN transceiver" default y depends on DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED - depends on GPIO + select GPIO help Enable support for GPIO controlled CAN transceivers.