summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSergei Poselenov <sposelenov@emcraft.com>2008-05-22 01:15:53 +0200
committerMarkus Klotzbuecher <mk@denx.de>2008-05-22 17:12:48 +0200
commit477434c63c2ea5baa5c6c4e43500786f436511ff (patch)
tree3de62a5e7979d805d688ea12e556e125e3b06b4f /drivers/usb
parent2c8d41969b47eb0b973912830c58689b2ba0e50a (diff)
downloadu-boot-477434c63c2ea5baa5c6c4e43500786f436511ff.tar.gz
u-boot-477434c63c2ea5baa5c6c4e43500786f436511ff.tar.xz
u-boot-477434c63c2ea5baa5c6c4e43500786f436511ff.zip
USB: add support for multiple PCI OHCI controllers
Add new configuration variable CONFIG_PCI_OHCI_DEVNO. In case of several PCI USB controllers on a board this variable specifys which controller to use. Also add USB support for sokrates board. See doc/README.generic_usb_ohci for details. Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com> Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/usb_ohci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
index ee0f2e45b1..318478afa4 100644
--- a/drivers/usb/usb_ohci.c
+++ b/drivers/usb/usb_ohci.c
@@ -53,6 +53,9 @@
#if defined(CONFIG_PCI_OHCI)
# include <pci.h>
+#if !defined(CONFIG_PCI_OHCI_DEVNO)
+#define CONFIG_PCI_OHCI_DEVNO 0
+#endif
#endif
#include <malloc.h>
@@ -1818,7 +1821,7 @@ int usb_lowlevel_init(void)
gohci.sleeping = 0;
gohci.irq = -1;
#ifdef CONFIG_PCI_OHCI
- pdev = pci_find_devices(ohci_pci_ids, 0);
+ pdev = pci_find_devices(ohci_pci_ids, CONFIG_PCI_OHCI_DEVNO);
if (pdev != -1) {
u16 vid, did;