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 <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2024-04-03 15:19:48 +02:00 committed by Fabio Baltieri
parent e44c0987b9
commit 36f4ef70a9
3 changed files with 1 additions and 15 deletions

View file

@ -23,13 +23,6 @@ config WDT_NXP_FS26_INIT_PRIORITY
endif # WDT_NXP_FS26 endif # WDT_NXP_FS26
endif # SPI endif # SPI
if CAN
config GPIO
default y
endif # CAN
if NETWORKING if NETWORKING
config NET_L2_ETHERNET config NET_L2_ETHERNET

View file

@ -10,11 +10,4 @@ config UART_CONSOLE
endif # SERIAL endif # SERIAL
if CAN
config GPIO
default y
endif # CAN
endif # BOARD_UCANS32K1SIC endif # BOARD_UCANS32K1SIC

View file

@ -15,7 +15,7 @@ config CAN_TRANSCEIVER_GPIO
bool "GPIO controlled CAN transceiver" bool "GPIO controlled CAN transceiver"
default y default y
depends on DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED depends on DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED
depends on GPIO select GPIO
help help
Enable support for GPIO controlled CAN transceivers. Enable support for GPIO controlled CAN transceivers.