summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/usb_ohci.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-03-21 13:38:59 +0100
committerStefan Roese <sr@denx.de>2007-03-21 13:38:59 +0100
commite01bd218b00af73499331a1a701625a852cd286f (patch)
treeefb6d32bfba353b01a07e82f2ef9308b9919e5df /cpu/ppc4xx/usb_ohci.c
parent87ed3bfb4214c4b39a5a642bcd851f60b3898af2 (diff)
downloadu-boot-imx-e01bd218b00af73499331a1a701625a852cd286f.zip
u-boot-imx-e01bd218b00af73499331a1a701625a852cd286f.tar.gz
u-boot-imx-e01bd218b00af73499331a1a701625a852cd286f.tar.bz2
[PATCH] Add AMCC PPC405EZ support
This patch adds support for the new AMCC 405EZ PPC. It is in preparation for the AMCC Acadia board support. Please note that this Acadia/405EZ support is still in a beta stage. Still lot's of cleanup needed but we need a preliminary release now. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu/ppc4xx/usb_ohci.c')
-rw-r--r--cpu/ppc4xx/usb_ohci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpu/ppc4xx/usb_ohci.c b/cpu/ppc4xx/usb_ohci.c
index ab852c5..c71a6a9 100644
--- a/cpu/ppc4xx/usb_ohci.c
+++ b/cpu/ppc4xx/usb_ohci.c
@@ -76,7 +76,7 @@
#define m16_swap(x) swap_16(x)
#define m32_swap(x) swap_32(x)
-#if defined(CONFIG_440EP) || defined(CONFIG_440EPX)
+#if defined(CONFIG_405EZ) || defined(CONFIG_440EP) || defined(CONFIG_440EPX)
#define ohci_cpu_to_le16(x) (x)
#define ohci_cpu_to_le32(x) (x)
#else
@@ -1601,7 +1601,7 @@ int usb_lowlevel_init(void)
gohci.irq = -1;
#if defined(CONFIG_440EP)
gohci.regs = (struct ohci_regs *)(CFG_PERIPHERAL_BASE | 0x1000);
-#elif defined(CONFIG_440EPX)
+#elif defined(CONFIG_440EPX) || defined(CFG_USB_HOST)
gohci.regs = (struct ohci_regs *)(CFG_USB_HOST);
#endif
@@ -1625,8 +1625,10 @@ int usb_lowlevel_init(void)
ohci_inited = 1;
urb_finished = 1;
+#if defined(CONFIG_440EP) || defined(CONFIG_440EPX)
/* init the device driver */
usb_dev_init();
+#endif
return 0;
}