Patchwork [v2,07/11] usb/ehci: Add Xilinx ps7 USB controller

login
register
mail settings
Submitter Peter Crosthwaite
Date Oct. 26, 2012, 5:47 a.m.
Message ID <206b70987c088caca1764b14d6c0bba891498a27.1351229557.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/194371/
State New
Headers show

Comments

Peter Crosthwaite - Oct. 26, 2012, 5:47 a.m.
Definition of the USB controller implemented in Zynq.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---

 hw/usb/hcd-ehci.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 50a85d5..443038b 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2746,6 +2746,16 @@  static TypeInfo ehci_info[] = {
             0x00,
             0x20,
         } }
+    }, {
+        .name          = "xlnx,ps7-usb",
+        .parent        = TYPE_SYS_BUS_DEVICE,
+        .instance_size = sizeof(EHCISysBusState),
+        .class_init    = ehci_sysbus_class_init,
+        .class_size    = sizeof(EHCIClass),
+        .class_data    = (EHCIClass[]) {{
+            .capabase = 0x100,
+            .opregbase = 0x140,
+        } }
     }, { .name = NULL }
 };