diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:11 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:11 +0000 |
commit | 2d48377a8531de63ec1d0c4b9b1959dc4b78356c (patch) | |
tree | 5d953e12d529ea65102e1600dbcb14127261ea28 /hw/mips_jazz.c | |
parent | d3ffc7a6e7372e1b88a4bf1c588cbe8ed46b2ca4 (diff) |
Compile serial only once
Push TARGET_WORDS_BIGENDIAN dependency to board level.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/mips_jazz.c')
-rw-r--r-- | hw/mips_jazz.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index ea74ea4ed..e8a81b122 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -254,10 +254,20 @@ void mips_jazz_init (ram_addr_t ram_size, i8042_mm_init(rc4030[6], rc4030[7], 0x80005000, 0x1000, 0x1); /* Serial ports */ - if (serial_hds[0]) - serial_mm_init(0x80006000, 0, rc4030[8], 8000000/16, serial_hds[0], 1); - if (serial_hds[1]) - serial_mm_init(0x80007000, 0, rc4030[9], 8000000/16, serial_hds[1], 1); + if (serial_hds[0]) { +#ifdef TARGET_WORDS_BIGENDIAN + serial_mm_init(0x80006000, 0, rc4030[8], 8000000/16, serial_hds[0], 1, 1); +#else + serial_mm_init(0x80006000, 0, rc4030[8], 8000000/16, serial_hds[0], 1, 0); +#endif + } + if (serial_hds[1]) { +#ifdef TARGET_WORDS_BIGENDIAN + serial_mm_init(0x80007000, 0, rc4030[9], 8000000/16, serial_hds[1], 1, 1); +#else + serial_mm_init(0x80007000, 0, rc4030[9], 8000000/16, serial_hds[1], 1, 0); +#endif + } /* Parallel port */ if (parallel_hds[0]) |