aboutsummaryrefslogtreecommitdiff
path: root/hw/pxa2xx.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:12 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:12 +0000
commitf1698408f1dcb7548a21828a0b1e2b530fae3af3 (patch)
tree491458ab922c56707622f1d78f3cabfcd3eceee0 /hw/pxa2xx.c
parent2d48377a8531de63ec1d0c4b9b1959dc4b78356c (diff)
downloadqemu-f1698408f1dcb7548a21828a0b1e2b530fae3af3.zip
qemu-f1698408f1dcb7548a21828a0b1e2b530fae3af3.tar.gz
qemu-f1698408f1dcb7548a21828a0b1e2b530fae3af3.tar.bz2
Compile usb-ohci only once
Push TARGET_WORDS_BIGENDIAN dependency to board level. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pxa2xx.c')
-rw-r--r--hw/pxa2xx.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c
index 705c369..4fafba2 100644
--- a/hw/pxa2xx.c
+++ b/hw/pxa2xx.c
@@ -9,6 +9,7 @@
#include "sysbus.h"
#include "pxa.h"
+#include "usb-ohci.h"
#include "sysemu.h"
#include "pc.h"
#include "i2c.h"
@@ -2128,7 +2129,11 @@ PXA2xxState *pxa270_init(unsigned int sdram_size, const char *revision)
}
if (usb_enabled) {
- usb_ohci_init_pxa(0x4c000000, 3, -1, s->pic[PXA2XX_PIC_USBH1]);
+#ifdef TARGET_WORDS_BIGENDIAN
+ usb_ohci_init_pxa(0x4c000000, 3, -1, s->pic[PXA2XX_PIC_USBH1], 1);
+#else
+ usb_ohci_init_pxa(0x4c000000, 3, -1, s->pic[PXA2XX_PIC_USBH1], 0);
+#endif
}
s->pcmcia[0] = pxa2xx_pcmcia_init(0x20000000);
@@ -2247,7 +2252,11 @@ PXA2xxState *pxa255_init(unsigned int sdram_size)
}
if (usb_enabled) {
- usb_ohci_init_pxa(0x4c000000, 3, -1, s->pic[PXA2XX_PIC_USBH1]);
+#ifdef TARGET_WORDS_BIGENDIAN
+ usb_ohci_init_pxa(0x4c000000, 3, -1, s->pic[PXA2XX_PIC_USBH1], 1);
+#else
+ usb_ohci_init_pxa(0x4c000000, 3, -1, s->pic[PXA2XX_PIC_USBH1], 0);
+#endif
}
s->pcmcia[0] = pxa2xx_pcmcia_init(0x20000000);