dev/uart: Support the pl011 uart in hw.uart.console

Add the pl011 uart to the list of supported uarts for use by
hw.uart.console. This is commonly found in Arm based devices, and a
variant is standardised in the Arm SBSA.

Reviewed by:	imp
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D43363
This commit is contained in:
Andrew Turner
2024-01-08 15:24:33 +00:00
parent eae36de826
commit 53391af151
+2 -1
View File
@@ -332,7 +332,7 @@ static kobj_method_t uart_pl011_methods[] = {
};
static struct uart_class uart_pl011_class = {
"uart_pl011",
"pl011",
uart_pl011_methods,
sizeof(struct uart_pl011_softc),
.uc_ops = &uart_pl011_ops,
@@ -340,6 +340,7 @@ static struct uart_class uart_pl011_class = {
.uc_rclk = 0,
.uc_rshift = 2
};
DATA_SET(uart_class_set, uart_pl011_class);
#ifdef FDT
static struct ofw_compat_data fdt_compat_data[] = {