[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [RFC PATCH v2 3/9] hw/net/cadence_gem: add FDT aliases
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-arm] [RFC PATCH v2 3/9] hw/net/cadence_gem: add FDT aliases |
Date: |
Mon, 8 Jan 2018 23:00:48 -0300 |
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/net/cadence_gem.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c
index 3943187572..34ff738bf7 100644
--- a/hw/net/cadence_gem.c
+++ b/hw/net/cadence_gem.c
@@ -25,6 +25,7 @@
#include "qemu/osdep.h"
#include <zlib.h> /* For crc32 */
+#include "hw/sysbus-fdt.h"
#include "hw/net/cadence_gem.h"
#include "qapi/error.h"
#include "qemu/log.h"
@@ -1552,6 +1553,15 @@ static const TypeInfo gem_info = {
static void gem_register_types(void)
{
+ static const char *gem_fdt_aliases[] = {
+ "cdns,gem",
+ "cdns,zynq-gem", /* Zynq-7xxx SoC */
+ "xlnx.ps7-ethernet",
+ "cdns,zynqmp-gem", /* Zynq Ultrascale+ MPSoC */
+ NULL
+ };
+
+ type_register_fdt_aliases(TYPE_CADENCE_GEM, gem_fdt_aliases);
type_register_static(&gem_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é <=
- [Qemu-arm] [RFC PATCH v2 4/9] hw/timer/cadence_ttc: add FDT aliases, Philippe Mathieu-Daudé, 2018/01/08
- [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