summaryrefslogtreecommitdiff
path: root/cpu/pxa
diff options
context:
space:
mode:
authorMarkus Klotzbuecher <mk@denx.de>2006-05-23 13:38:35 +0200
committerMarkus Klotzbuecher <mk@pollux.denx.de>2006-05-23 13:38:35 +0200
commit301f1aa384d0edcae6a22fd9adb933ad71695ecc (patch)
tree6372c981f149c1baac612c71ff7d994a097071e0 /cpu/pxa
parent24e37645e7378b20fa8f20e2996c8fb8e90c70c9 (diff)
downloadu-boot-imx-301f1aa384d0edcae6a22fd9adb933ad71695ecc.zip
u-boot-imx-301f1aa384d0edcae6a22fd9adb933ad71695ecc.tar.gz
u-boot-imx-301f1aa384d0edcae6a22fd9adb933ad71695ecc.tar.bz2
Changed the mp2usb (at91rm9200) board to use the generic OHCI driver. Some
fixes to the latter.
Diffstat (limited to 'cpu/pxa')
-rw-r--r--cpu/pxa/usb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpu/pxa/usb.c b/cpu/pxa/usb.c
index e89391c..1716157 100644
--- a/cpu/pxa/usb.c
+++ b/cpu/pxa/usb.c
@@ -22,10 +22,12 @@
*/
#include <common.h>
-#include <asm/arch/pxa-regs.h>
-#ifdef CFG_USB_CPU_INIT
+#if defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT)
# ifdef CONFIG_CPU_MONAHANS
+
+#include <asm/arch/pxa-regs.h>
+
int usb_cpu_init()
{
/* Enable USB host clock. */
@@ -68,4 +70,4 @@ int usb_cpu_stop()
return 0;
}
# endif /* CONFIG_CPU_MONAHANS */
-#endif /* CFG_USB_CPU_INIT */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */