drivers/serial/pl011: add support of uart0/2/3 port

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-01-11 14:15:45 +08:00
committed by Alin Jerpelea
parent 5f51aba1be
commit 1dd9f64287
2 changed files with 342 additions and 143 deletions
+33 -25
View File
@@ -10,51 +10,59 @@ config UART0_PL011
select UART0_SERIALDRIVER
default n
if UART0_PL011
config UART0_BASE
hex "UART0 base address"
config UART0_IRQ
int "PL011 UART0 IRQ number"
endif # UART0_PL011
config UART1_PL011
bool "UART1 PL011"
select UART1_SERIALDRIVER
default n
if UART1_PL011
config UART1_BASE
hex "UART1 base address"
config UART1_IRQ
int "PL011 UART1 IRQ number"
endif # UART1_PL011
config UART2_PL011
bool "UART2 PL011"
select UART2_SERIALDRIVER
default n
if UART2_PL011
config UART2_BASE
hex "UART2 base address"
config UART2_IRQ
int "PL011 UART2 IRQ number"
endif # UART2_PL011
config UART3_PL011
bool "UART3 PL011"
select UART3_SERIALDRIVER
default n
config UART0_BASE
hex "UART0 base address"
depends on UART0_PL011
config UART1_BASE
hex "UART1 base address"
depends on UART1_PL011
config UART2_BASE
hex "UART2 base address"
depends on UART2_PL011
if UART3_PL011
config UART3_BASE
hex "UART3 base address"
depends on UART3_PL011
config UART0_IRQ
int "PL011 UART0 IRQ number"
depends on UART0_PL011
config UART1_IRQ
int "PL011 UART1 IRQ number"
depends on UART1_PL011
config UART2_IRQ
int "PL011 UART2 IRQ number"
depends on UART2_PL011
config UART3_IRQ
int "PL011 UART3 IRQ number"
depends on UART3_PL011
endif # UART3_PL011
endif # UART_PL011
File diff suppressed because it is too large Load Diff