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:
parent
e44c0987b9
commit
36f4ef70a9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue