zephyr/drivers/serial/Kconfig.qmsi
Kumar Gala 461b5018d3 serial: introduce SERIAL_SUPPORT_INTERRUPT Kconfig option
As not all drivers support interrupts we don't have a means to know if
we can allow UART_INTERRUPT_DRIVEN to be enabled and thus various
Kconfig options that select UART_INTERRUPT_DRIVEN.  Some drivers have a
interrupts, however not all do.  So introduce a Kconfig option to let us
know what the driver actually supports.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-06-29 07:07:31 -04:00

72 lines
1.5 KiB
Plaintext

menuconfig UART_QMSI
depends on QMSI
bool "QMSI UART driver"
default n
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the QMSI UART driver.
This driver is simply a shim driver based on the UART driver
provided by the QMSI BSP.
config UART_QMSI_0
depends on UART_QMSI
bool "Enable UART 0 controller"
default n
if !HAS_DTS
config UART_QMSI_0_NAME
depends on UART_QMSI_0
string "UART_0 device name"
default "UART_0"
help
This option holds the UART_0 device name. If unsure, use the
default name.
config UART_QMSI_0_BAUDRATE
depends on UART_QMSI_0
int "UART_0 baud rate"
default 115200
help
This option sets the baud rate from the UART_0 device.
endif
config UART_QMSI_0_HW_FC
depends on UART_QMSI_0
bool "HW flow control for UART_0 controller"
config UART_QMSI_0_IRQ_PRI
depends on UART_QMSI_0
int "IRQ priority from UART_0 controller"
config UART_QMSI_1
depends on UART_QMSI
bool "Enable UART 1 controller"
default n
if !HAS_DTS
config UART_QMSI_1_NAME
depends on UART_QMSI_1
string "UART_1 device name"
default "UART_1"
help
This option holds the UART_1 device name. If unsure, use the
default name.
config UART_QMSI_1_BAUDRATE
depends on UART_QMSI_1
int "UART_1 baud rate"
default 115200
help
This option sets the baud rate from the UART_1 device.
endif
config UART_QMSI_1_HW_FC
depends on UART_QMSI_1
bool "HW flow control for UART_1 controller"
config UART_QMSI_1_IRQ_PRI
depends on UART_QMSI_1
int "IRQ priority from UART_1 controller"