qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH v2 4/9] hw/timer/cadence_ttc: add FDT aliases


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] [RFC PATCH v2 4/9] hw/timer/cadence_ttc: add FDT aliases
Date: Mon, 8 Jan 2018 23:00:49 -0300

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
 hw/timer/cadence_ttc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hw/timer/cadence_ttc.c b/hw/timer/cadence_ttc.c
index 5e65fdb5a0..9aff19d3a5 100644
--- a/hw/timer/cadence_ttc.c
+++ b/hw/timer/cadence_ttc.c
@@ -18,6 +18,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
+#include "hw/sysbus-fdt.h"
 #include "qemu/timer.h"
 
 #ifdef CADENCE_TTC_ERR_DEBUG
@@ -488,6 +489,13 @@ static const TypeInfo cadence_ttc_info = {
 
 static void cadence_ttc_register_types(void)
 {
+    static const char *cadence_ttc_fdt_aliases[] = {
+        "cdns.ttc",         /* Zynq */
+        "xlnx.ps7-ttc",     /* Zynq-7xxx SoC */
+        NULL
+    };
+
+    type_register_fdt_aliases(TYPE_CADENCE_TTC, cadence_ttc_fdt_aliases);
     type_register_static(&cadence_ttc_info);
 }
 
-- 
2.15.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]