]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/ehci-pci.c
powerpc/85xx: Add ULPI and UTMI USB Phy support for P1010/P1014
[u-boot] / drivers / usb / host / ehci-pci.c
index 2b68f7bd19eafe03c23faf0cabfe9b0a612a2c79..020ab11355eb81c5acfc44b33521fec37704c7bf 100644 (file)
@@ -29,6 +29,7 @@
 static struct pci_device_id ehci_pci_ids[] = {
        /* Please add supported PCI EHCI controller ids here */
        {0x1033, 0x00E0},       /* NEC */
+       {0x10B9, 0x5239},       /* ULI1575 PCI EHCI module ids */
        {0x12D8, 0x400F},       /* Pericom */
        {0, 0}
 };
@@ -41,7 +42,6 @@ static struct pci_device_id ehci_pci_ids[] = {
 int ehci_hcd_init(void)
 {
        pci_dev_t pdev;
-       uint32_t addr;
 
        pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
        if (pdev == -1) {
@@ -49,8 +49,8 @@ int ehci_hcd_init(void)
                return -1;
        }
 
-       pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &addr);
-       hccr = (struct ehci_hccr *)addr;
+       hccr = (struct ehci_hccr *)pci_map_bar(pdev,
+                       PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
        hcor = (struct ehci_hcor *)((uint32_t) hccr +
                        HC_LENGTH(ehci_readl(&hccr->cr_capbase)));