Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/char/cadence_uart.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c
index 6143494060..f164cee61d 100644
--- a/hw/char/cadence_uart.c
+++ b/hw/char/cadence_uart.c
@@ -23,6 +23,7 @@
#include "qemu/osdep.h"
#include "hw/sysbus.h"
+#include "hw/sysbus-fdt.h"
#include "chardev/char-fe.h"
#include "chardev/char-serial.h"
#include "qemu/timer.h"
@@ -560,6 +561,17 @@ static const TypeInfo cadence_uart_info = {
static void cadence_uart_register_types(void)
{
+ static const char *cadence_uart_fdt_aliases[] = {
+ "cdns.uart",
+ "cdns,uart-r1p8",
+ "xlnx,xuartps", /* Zynq-7xxx SoC */
+ "xlnx.ps7-uart",
+ "cdns,uart-r1p12",
+ "xlnx,zynqmp-uart", /* Zynq Ultrascale+ MPSoC */
+ NULL
+ };
+
+ type_register_fdt_aliases(TYPE_CADENCE_UART, cadence_uart_fdt_aliases);
type_register_static(&cadence_uart_info);
}
--
2.15.1