zephyr/drivers/can/transceiver/Kconfig
Henrik Brix Andersen b01ea7c0c9 drivers: can: transceiver: Update drivers to use dts Kconfig symbol
Update the GPIO-controlled CAN transceiver driver to use the
DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED Kconfig symbol to expose the driver and
enable it by default based on devicetree.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-09-08 15:30:23 +00:00

23 lines
530 B
Plaintext

# CAN transceiver configuration options
# Copyright (c) 2022 Vestas Wind Systems A/S
# SPDX-License-Identifier: Apache-2.0
menu "CAN transceiver drivers"
config CAN_TRANSCEIVER_INIT_PRIORITY
int "CAN transceiver driver init priority"
default 45
help
CAN transceiver device driver initialization priority.
config CAN_TRANSCEIVER_GPIO
bool "GPIO controlled CAN transceiver"
default y
depends on DT_HAS_CAN_TRANSCEIVER_GPIO_ENABLED
depends on GPIO
help
Enable support for GPIO controlled CAN transceivers.
endmenu