diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:12 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:12 +0000 |
commit | f1698408f1dcb7548a21828a0b1e2b530fae3af3 (patch) | |
tree | 491458ab922c56707622f1d78f3cabfcd3eceee0 /hw/sm501.c | |
parent | 2d48377a8531de63ec1d0c4b9b1959dc4b78356c (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/sm501.c')
-rw-r--r-- | hw/sm501.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/sm501.c b/hw/sm501.c index 1a342bdc5..41ef3bff7 100644 --- a/hw/sm501.c +++ b/hw/sm501.c @@ -1222,8 +1222,13 @@ void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq, 0x1000, sm501_disp_ctrl_index); /* bridge to usb host emulation module */ +#ifdef TARGET_WORDS_BIGENDIAN + usb_ohci_init_sm501(base + MMIO_BASE_OFFSET + SM501_USB_HOST, base, + 2, -1, irq, 1); +#else usb_ohci_init_sm501(base + MMIO_BASE_OFFSET + SM501_USB_HOST, base, - 2, -1, irq); + 2, -1, irq, 0); +#endif /* bridge to serial emulation module */ if (chr) { |