From: Riku Voipio Date: Tue, 1 Sep 2009 15:10:07 +0000 (+0300) Subject: add omap variant X-Git-Tag: 0.10.0-0sb10~11 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=a8d69fed0610738efe27c7097bbb24c14f10c7f6;p=qemu add omap variant --- diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 0c08e9f..41de926 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -31,6 +31,7 @@ #include "usb.h" #include "pci.h" #include "pxa.h" +#include "omap.h" #include "devices.h" //#define DEBUG_OHCI @@ -61,6 +62,7 @@ typedef struct OHCIPort { enum ohci_type { OHCI_TYPE_PCI, OHCI_TYPE_PXA, + OHCI_TYPE_OMAP, OHCI_TYPE_SM501, }; @@ -1747,6 +1749,16 @@ void usb_ohci_init_pxa(target_phys_addr_t base, int num_ports, int devfn, cpu_register_physical_memory(base, 0x1000, ohci->mem); } +void usb_ohci_init_omap(target_phys_addr_t base, uint32_t region_size, + int num_ports, qemu_irq irq) +{ + OHCIState *ohci = (OHCIState *)qemu_mallocz(sizeof(OHCIState)); + + usb_ohci_init(ohci, num_ports, -1, irq, OHCI_TYPE_OMAP, "OHCI USB" ,0); + + cpu_register_physical_memory(base, 0x1000, ohci->mem); +} + void usb_ohci_init_sm501(uint32_t mmio_base, uint32_t localmem_base, int num_ports, int devfn, qemu_irq irq) {