From 2d80f9e236137efa476cc6d32cda21dcda1c0ffb Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 14 Mar 2022 21:45:01 +0100 Subject: [PATCH] EFI: add support for dw-apb-uart used on Allwinner A10 SoC Yet another 16550 clone under a different name. Why does device-tree have a "compatible" setting if everyone puts a different name for the same thing? Change-Id: Ia889a527a36739df747ba48d4606c09764703607 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5103 Reviewed-by: Fredrik Holmqvist Tested-by: Commit checker robot --- src/system/boot/platform/efi/dtb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/boot/platform/efi/dtb.cpp b/src/system/boot/platform/efi/dtb.cpp index 106542d0ef..60f9e13a68 100644 --- a/src/system/boot/platform/efi/dtb.cpp +++ b/src/system/boot/platform/efi/dtb.cpp @@ -66,6 +66,7 @@ const struct supported_uarts { { "sifive,uart0", UART_KIND_SIFIVE, &get_uart }, #elif defined(__ARM__) || defined(__aarch64__) { "arm,pl011", UART_KIND_PL011, &get_uart }, + { "snps,dw-apb-uart", UART_KIND_8250, &get_uart }, #endif }; @@ -510,8 +511,7 @@ dtb_set_kernel_args() if (uart.kind[0] == 0) { dprintf("kind: None!\n"); } else { - dprintf(" kind: %s", uart.kind); - dprintf("\n"); + dprintf(" kind: %s\n", uart.kind); dprintf(" regs: %#" B_PRIx64 ", %#" B_PRIx64 "\n", uart.regs.start, uart.regs.size); dprintf(" irq: %" B_PRIu32 "\n", uart.irq); dprintf(" clock: %" B_PRIu64 "\n", uart.clock);