forked from Mirrors/opensbi
lib: utils/serial: Add PXA UARTs support
The PXA variant of the uart8250 adds the UART Unit Enable bit (UUE) that needs to be set to enable the XScale PXA UART. And it is required for some RISC-V SoCs like the Spacemit K1 that implement the PXA UART. This introduces the "intel,xscale-uart" compatible to handle setting the UUE bit. Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250327-pxa-uart-support-v2-1-c4400c1fcd0b@pigmoral.tech Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#define ARIANE_UART_REG_SHIFT 2
|
||||
#define ARIANE_UART_REG_WIDTH 4
|
||||
#define ARIANE_UART_REG_OFFSET 0
|
||||
#define ARIANE_UART_CAPS 0
|
||||
#define ARIANE_PLIC_ADDR 0xc000000
|
||||
#define ARIANE_PLIC_SIZE (0x200000 + \
|
||||
(ARIANE_HART_COUNT * 0x1000))
|
||||
@@ -78,7 +79,8 @@ static int ariane_early_init(bool cold_boot)
|
||||
ARIANE_UART_BAUDRATE,
|
||||
ARIANE_UART_REG_SHIFT,
|
||||
ARIANE_UART_REG_WIDTH,
|
||||
ARIANE_UART_REG_OFFSET);
|
||||
ARIANE_UART_REG_OFFSET,
|
||||
ARIANE_UART_CAPS);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user