]> Git Repo - qemu.git/commitdiff
hw/usb/hcd-ehci-sysbus: Remove obsolete xlnx, ps7-usb class
authorGuenter Roeck <[email protected]>
Sat, 15 Feb 2020 12:23:54 +0000 (04:23 -0800)
committerPeter Maydell <[email protected]>
Fri, 28 Feb 2020 16:14:57 +0000 (16:14 +0000)
Xilinx USB devices are now instantiated through TYPE_CHIPIDEA,
and xlnx support in the EHCI code is no longer needed.

Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Gerd Hoffmann <[email protected]>
Message-id: 20200215122354[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/usb/hcd-ehci-sysbus.c

index b22fb258be784751c1123e8c33a2d0e04f56857c..5b7991cffe49f886910fb0b3ef79eed8e035ae8e 100644 (file)
@@ -115,22 +115,6 @@ static const TypeInfo ehci_platform_type_info = {
     .class_init    = ehci_platform_class_init,
 };
 
-static void ehci_xlnx_class_init(ObjectClass *oc, void *data)
-{
-    SysBusEHCIClass *sec = SYS_BUS_EHCI_CLASS(oc);
-    DeviceClass *dc = DEVICE_CLASS(oc);
-
-    set_bit(DEVICE_CATEGORY_USB, dc->categories);
-    sec->capsbase = 0x100;
-    sec->opregbase = 0x140;
-}
-
-static const TypeInfo ehci_xlnx_type_info = {
-    .name          = "xlnx,ps7-usb",
-    .parent        = TYPE_SYS_BUS_EHCI,
-    .class_init    = ehci_xlnx_class_init,
-};
-
 static void ehci_exynos4210_class_init(ObjectClass *oc, void *data)
 {
     SysBusEHCIClass *sec = SYS_BUS_EHCI_CLASS(oc);
@@ -267,7 +251,6 @@ static void ehci_sysbus_register_types(void)
 {
     type_register_static(&ehci_type_info);
     type_register_static(&ehci_platform_type_info);
-    type_register_static(&ehci_xlnx_type_info);
     type_register_static(&ehci_exynos4210_type_info);
     type_register_static(&ehci_tegra2_type_info);
     type_register_static(&ehci_ppc4xx_type_info);
This page took 0.025668 seconds and 4 git commands to generate.