Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
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