The AMD CS5536's USB controllers are located at device 0F, functions 4
[coreboot.git] / payloads / libpayload / drivers / usb / usbinit.c
index 9c8063a3cb17fcf4dda5c5a07f571765481920ea..50dbf9747090e3fb7c42680af4444915f5d9f2ee 100644 (file)
@@ -126,7 +126,7 @@ usb_initialize (void)
         */
        for (bus = 0; bus < 256; bus++)
                for (dev = 0; dev < 32; dev++)
-                       if (pci_read_config32 (PCI_DEV(bus, dev, 0), 8) >> 16 == 0x0c03)
+                       if (pci_read_config32 (PCI_DEV(bus, dev, 0), 8) >> 16 != 0xffff)
                                for (func = 7; func >= 0 ; func--)
                                        usb_controller_initialize (bus, dev, func);
        usb_poll();