| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Serial bus device driver configuration |
| 4 | # |
| 5 | menuconfig SERIAL_DEV_BUS |
| 6 | tristate "Serial device bus" |
| 7 | help |
| 8 | Core support for devices connected via a serial port. |
| 9 | |
| 10 | Note that you typically also want to enable TTY port controller support. |
| 11 | |
| 12 | config RUST_SERIAL_DEV_BUS_ABSTRACTIONS |
| 13 | bool "Rust Serial device bus abstractions" |
| 14 | depends on RUST |
| 15 | select SERIAL_DEV_BUS |
| 16 | help |
| 17 | This enables the Rust abstraction for the serial device bus API. |
| 18 | |
| 19 | if SERIAL_DEV_BUS |
| 20 | |
| 21 | config SERIAL_DEV_CTRL_TTYPORT |
| 22 | bool "Serial device TTY port controller" |
| 23 | help |
| 24 | Say Y here if you want to use the Serial device bus with common TTY |
| 25 | drivers (e.g. serial drivers). |
| 26 | |
| 27 | If unsure, say Y. |
| 28 | depends on TTY |
| 29 | depends on SERIAL_DEV_BUS != m |
| 30 | default y |
| 31 | |
| 32 | endif |