summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Klotzbuecher <mk@denx.de>2006-11-27 11:44:58 +0100
committerMarkus Klotzbuecher <mk@pollux.denx.de>2006-11-27 11:44:58 +0100
commit7b59b3c7a8ce2e4b567abf99c1cd667bf35b9418 (patch)
tree360384a18d6bef3a36e5379f6282a4045b681093
parent53e336e9ffc51035bdc4e5867631b3378761b4df (diff)
downloadu-boot-imx-7b59b3c7a8ce2e4b567abf99c1cd667bf35b9418.zip
u-boot-imx-7b59b3c7a8ce2e4b567abf99c1cd667bf35b9418.tar.gz
u-boot-imx-7b59b3c7a8ce2e4b567abf99c1cd667bf35b9418.tar.bz2
Introduced the configuration option CONFIG_USB_OHCI_NEW in order to be able
to choose between the old and the generic OHCI drivers.
-rw-r--r--board/trab/auto_update.c2
-rw-r--r--cpu/arm920t/at91rm9200/usb.c2
-rw-r--r--cpu/arm920t/s3c24x0/usb.c2
-rw-r--r--cpu/pxa/usb.c2
-rw-r--r--drivers/usb_ohci.c4
-rw-r--r--include/configs/TQM5200.h2
-rw-r--r--include/configs/delta.h2
-rw-r--r--include/configs/mp2usb.h2
-rw-r--r--include/configs/trab.h2
-rw-r--r--include/configs/yosemite.h2
-rw-r--r--include/usb.h2
11 files changed, 12 insertions, 12 deletions
diff --git a/board/trab/auto_update.c b/board/trab/auto_update.c
index d2c8d44..7684499 100644
--- a/board/trab/auto_update.c
+++ b/board/trab/auto_update.c
@@ -34,7 +34,7 @@
#ifdef CONFIG_AUTO_UPDATE
-#ifndef CONFIG_USB_OHCI
+#ifndef CONFIG_USB_OHCI_NEW
#error "must define CONFIG_USB_OHCI"
#endif
diff --git a/cpu/arm920t/at91rm9200/usb.c b/cpu/arm920t/at91rm9200/usb.c
index 98e3cdd..366262e 100644
--- a/cpu/arm920t/at91rm9200/usb.c
+++ b/cpu/arm920t/at91rm9200/usb.c
@@ -23,7 +23,7 @@
#include <common.h>
-#if defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
# ifdef CONFIG_AT91RM9200
#include <asm/arch/hardware.h>
diff --git a/cpu/arm920t/s3c24x0/usb.c b/cpu/arm920t/s3c24x0/usb.c
index 4bc7961..ef5d5bf 100644
--- a/cpu/arm920t/s3c24x0/usb.c
+++ b/cpu/arm920t/s3c24x0/usb.c
@@ -23,7 +23,7 @@
#include <common.h>
-#if defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
# if defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410)
#if defined(CONFIG_S3C2400)
diff --git a/cpu/pxa/usb.c b/cpu/pxa/usb.c
index bff5bfb..5d273cb 100644
--- a/cpu/pxa/usb.c
+++ b/cpu/pxa/usb.c
@@ -23,7 +23,7 @@
#include <common.h>
-#if defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
# ifdef CONFIG_CPU_MONAHANS
#include <asm/arch/pxa-regs.h>
diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c
index be1a615..482633f 100644
--- a/drivers/usb_ohci.c
+++ b/drivers/usb_ohci.c
@@ -43,7 +43,7 @@
#include <common.h>
/* #include <pci.h> no PCI on the S3C24X0 */
-#ifdef CONFIG_USB_OHCI
+#ifdef CONFIG_USB_OHCI_NEW
/* mk: are these really required? */
#if defined(CONFIG_S3C2400)
@@ -1756,4 +1756,4 @@ int usb_lowlevel_stop(void)
return 0;
}
-#endif /* CONFIG_USB_OHCI */
+#endif /* CONFIG_USB_OHCI_NEW */
diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h
index 832dcdd..6c8712b 100644
--- a/include/configs/TQM5200.h
+++ b/include/configs/TQM5200.h
@@ -125,7 +125,7 @@
/* USB */
#ifdef CONFIG_STK52XX
-#define CONFIG_USB_OHCI
+#define CONFIG_USB_OHCI_NEW
#define ADD_USB_CMD CFG_CMD_USB | CFG_CMD_FAT
#define CONFIG_USB_STORAGE
diff --git a/include/configs/delta.h b/include/configs/delta.h
index 0617ad8..4038f21 100644
--- a/include/configs/delta.h
+++ b/include/configs/delta.h
@@ -103,7 +103,7 @@
#endif
/* USB */
-#define CONFIG_USB_OHCI 1
+#define CONFIG_USB_OHCI_NEW 1
#define CONFIG_USB_STORAGE 1
#define CONFIG_DOS_PARTITION 1
diff --git a/include/configs/mp2usb.h b/include/configs/mp2usb.h
index d182d49..2cf78a3 100644
--- a/include/configs/mp2usb.h
+++ b/include/configs/mp2usb.h
@@ -101,7 +101,7 @@
#undef CONFIG_MODEM_SUPPORT /* disable modem initialization stuff */
-#define CONFIG_USB_OHCI 1
+#define CONFIG_USB_OHCI_NEW 1
#define CONFIG_USB_KEYBOARD 1
#define CONFIG_USB_STORAGE 1
#define CONFIG_DOS_PARTITION 1
diff --git a/include/configs/trab.h b/include/configs/trab.h
index 33617cd..acf86d0 100644
--- a/include/configs/trab.h
+++ b/include/configs/trab.h
@@ -80,7 +80,7 @@
#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
/* USB stuff */
-#define CONFIG_USB_OHCI 1
+#define CONFIG_USB_OHCI_NEW 1
#define CONFIG_USB_STORAGE 1
#define CONFIG_DOS_PARTITION 1
diff --git a/include/configs/yosemite.h b/include/configs/yosemite.h
index e6a02c6..7f434e9 100644
--- a/include/configs/yosemite.h
+++ b/include/configs/yosemite.h
@@ -213,7 +213,7 @@
#ifdef CONFIG_440EP
/* USB */
-#define CONFIG_USB_OHCI
+#define CONFIG_USB_OHCI_NEW
#define CONFIG_USB_STORAGE
#undef CFG_USB_OHCI_BOARD_INIT
diff --git a/include/usb.h b/include/usb.h
index bf71554..fafac89 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -169,7 +169,7 @@ struct usb_device {
* this is how the lowlevel part communicate with the outer world
*/
-#if defined(CONFIG_USB_UHCI) || defined(CONFIG_USB_OHCI) || defined (CONFIG_USB_SL811HS)
+#if defined(CONFIG_USB_UHCI) || defined(CONFIG_USB_OHCI) || defined (CONFIG_USB_SL811HS) || defined(CONFIG_USB_OHCI_NEW)
int usb_lowlevel_init(void);
int usb_lowlevel_stop(void);
int submit_bulk_msg(struct usb_device *dev, unsigned long pipe, void *buffer,int transfer_len);