b9fc192779
The PrimeCell UART (PL011) IP can use one single combined/shared interrupt line instead than different IRQ lines for TX/RX/Err/... This is the most common configuration supported in the Linux world but not currently supported in Zephyr. QEMU emulates a PL011 UART with a single interrupt line as well. To support this configuration we have to hookup the PL011 driver with a shared IRQ driver and add two new configuration options when the shared IRQ line is used. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# Copyright (c) 2018 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig UART_PL011
|
|
bool "ARM PL011 UART Driver"
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
help
|
|
This option enables the UART driver for the PL011
|
|
|
|
if UART_PL011
|
|
|
|
config UART_PL011_PORT0
|
|
bool "Enable driver for UART 0"
|
|
help
|
|
Build the driver to utilize UART controller Port 0.
|
|
|
|
config UART_PL011_PORT1
|
|
bool "Enable driver for UART 1"
|
|
help
|
|
Build the driver to utilize UART controller Port 1.
|
|
|
|
config UART_PL011_SHARED_IRQ
|
|
bool
|
|
|
|
config UART_PL011_PORT0_SHARED_IRQ
|
|
bool "Shared IRQ for UART 0"
|
|
depends on SHARED_IRQ_0
|
|
depends on UART_PL011_PORT0
|
|
select UART_PL011_SHARED_IRQ
|
|
help
|
|
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
|
|
driver dispatches the interrupt to the UART driver.
|
|
|
|
config UART_PL011_PORT1_SHARED_IRQ
|
|
bool "Shared IRQ for UART 1"
|
|
depends on SHARED_IRQ_1
|
|
depends on UART_PL011_PORT1
|
|
select UART_PL011_SHARED_IRQ
|
|
help
|
|
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
|
|
driver dispatches the interrupt to the UART driver.
|
|
|
|
endif # UART_PL011
|