From: Andreas Kölbl <[email protected]> The 8250 chip has two registers to set the baud rate. Write the 8 upper bits to the UART_DLM register.
Signed-off-by: Andreas Kölbl <[email protected]> --- hypervisor/arch/arm-common/uart-8250.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hypervisor/arch/arm-common/uart-8250.c b/hypervisor/arch/arm-common/uart-8250.c index be600369..e379dd27 100644 --- a/hypervisor/arch/arm-common/uart-8250.c +++ b/hypervisor/arch/arm-common/uart-8250.c @@ -39,8 +39,10 @@ static void uart_init(struct uart_chip *chip) return; mmio_write32(chip->virt_base + UART_LCR, UART_LCR_DLAB); - mmio_write32(chip->virt_base + UART_DLL, chip->debug_console->divider); - mmio_write32(chip->virt_base + UART_DLM, 0); + mmio_write32(chip->virt_base + UART_DLL, + chip->debug_console->divider & 0xff); + mmio_write32(chip->virt_base + UART_DLM, + (chip->debug_console->divider >> 8) & 0xff); mmio_write32(chip->virt_base + UART_LCR, UART_LCR_8N1); } -- 2.11.0 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
