[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [RFC PATCH v2 4/9] hw/timer/cadence_ttc: add FDT aliases
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-arm] [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
- [Qemu-arm] [RFC PATCH v2 0/9] resolv device by Flattened Device Tree alias name, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 1/9] hw/sysbus: add helpers to register FDT aliases, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 2/9] hw/char/cadence_uart: add FDT aliases, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 3/9] hw/net/cadence_gem: add FDT aliases, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 4/9] hw/timer/cadence_ttc: add FDT aliases,
Philippe Mathieu-Daudé <=
- [Qemu-arm] [RFC PATCH v2 5/9] hw/dma/axidma: add 'xlnx, eth-dma' FDT alias, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 6/9] hw/usb/hcd-ehci: add 'xlnx, ps7-usb' FDT aliases, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 7/9] hw/ssi/xlnx-spips: add 'xlnx.zynq-qspi' FDT alias, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 8/9] hw/dma/xlnx_dpdma: add 'xlnx, axi-dpdma-1.0' FDT alias, Philippe Mathieu-Daudé, 2018/01/08
- [Qemu-arm] [RFC PATCH v2 9/9] hw/arm/xlnx-zynqmp: use Linux FDT names, Philippe Mathieu-Daudé, 2018/01/08