qemu-arm
[Top][All Lists]
Advanced

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

[Qemu-arm] [RFC PATCH v2 6/9] hw/usb/hcd-ehci: add 'xlnx, ps7-usb' FDT a


From: Philippe Mathieu-Daudé
Subject: [Qemu-arm] [RFC PATCH v2 6/9] hw/usb/hcd-ehci: add 'xlnx, ps7-usb' FDT aliases
Date: Mon, 8 Jan 2018 23:00:51 -0300

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

diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c
index 3b83beb140..0c1a995c2f 100644
--- a/hw/usb/hcd-ehci-sysbus.c
+++ b/hw/usb/hcd-ehci-sysbus.c
@@ -16,6 +16,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "hw/sysbus-fdt.h"
 #include "hw/usb/hcd-ehci.h"
 
 static const VMStateDescription vmstate_ehci_sysbus = {
@@ -244,6 +245,13 @@ static const TypeInfo ehci_fusbh200_type_info = {
 
 static void ehci_sysbus_register_types(void)
 {
+    static const char *xlnx_ehci_fdt_aliases[] = {
+        "xlnx.zynq-usb",    /* Zynq */
+        "xlnx.ps7-usb",     /* Zynq-7xxx SoC */
+        NULL
+    };
+
+    type_register_fdt_aliases("xlnx,ps7-usb", xlnx_ehci_fdt_aliases);
     type_register_static(&ehci_type_info);
     type_register_static(&ehci_xlnx_type_info);
     type_register_static(&ehci_exynos4210_type_info);
-- 
2.15.1




reply via email to

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