aboutsummaryrefslogtreecommitdiff
path: root/hw/versatilepb.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/versatilepb.c
parent2d48377a8531de63ec1d0c4b9b1959dc4b78356c (diff)
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/versatilepb.c')
-rw-r--r--hw/versatilepb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c
index 391f5b88c6..a962106976 100644
--- a/hw/versatilepb.c
+++ b/hw/versatilepb.c
@@ -218,7 +218,11 @@ static void versatile_init(ram_addr_t ram_size,
}
}
if (usb_enabled) {
- usb_ohci_init_pci(pci_bus, -1);
+#ifdef TARGET_WORDS_BIGENDIAN
+ usb_ohci_init_pci(pci_bus, -1, 1);
+#else
+ usb_ohci_init_pci(pci_bus, -1, 0);
+#endif
}
n = drive_get_max_bus(IF_SCSI);
while (n >= 0) {