mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-09 03:42:33 +00:00
This patch extends the UART QMSI driver so it supports the IRQ APIs from include/uart.h. The IRQ APIs are enabled by the 'CONFIG_UART_INTERRUPT_ DRIVEN' option. Differently from others APIs such as I2C and SPI, the UART API is very low level. For that reason, the IRQ facilities (e.g. irq based transfers) from the QMSI driver are not useful to the shim driver at the moment. In order to implement the IRQ APIs we rely on UART registers defined by QMSI. QMSI UART header is missing some macro definitions from IRR register so we define them in the shim driver. Since the IRQ trigger condition is not configurable in the QMSI shim driver, this patch also changes drivers/serial/Kconfig so the "UART IRQ Trigger Condition" choice doesn't appear on the menu if the QMSI driver is selected. Change-Id: Idf9a0f6a47af2a550a31f474d721068dca989713 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
menuconfig UART_QMSI
|
|
depends on QMSI_DRIVERS
|
|
bool "QMSI UART driver"
|
|
default n
|
|
select SERIAL_HAS_DRIVER
|
|
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. For more information about QMSI BSP
|
|
see CONFIG_QMSI_DRIVERS.
|
|
|
|
config UART_QMSI_0
|
|
depends on UART_QMSI
|
|
bool "Enable UART 0 controller"
|
|
default n
|
|
|
|
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.
|
|
|
|
config UART_QMSI_0_IRQ
|
|
depends on UART_QMSI_0
|
|
int "IRQ number from 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
|
|
|
|
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.
|
|
|
|
config UART_QMSI_1_IRQ
|
|
depends on UART_QMSI_1
|
|
int "IRQ number from UART_1 controller"
|
|
|
|
config UART_QMSI_1_IRQ_PRI
|
|
depends on UART_QMSI_1
|
|
int "IRQ priority from UART_1 controller" |