git: 53391af1518e - main - dev/uart: Support the pl011 uart in hw.uart.console

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Tue, 13 Feb 2024 11:51:52 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=53391af1518e6e72545d720c8069b24aa253edad

commit 53391af1518e6e72545d720c8069b24aa253edad
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-01-08 15:24:33 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-02-13 11:48:52 +0000

    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
---
 sys/dev/uart/uart_dev_pl011.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/uart/uart_dev_pl011.c b/sys/dev/uart/uart_dev_pl011.c
index bfcf8cf1584e..d91ae256f2a3 100644
--- a/sys/dev/uart/uart_dev_pl011.c
+++ b/sys/dev/uart/uart_dev_pl011.c
@@ -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[] = {