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/pxa2xx.c | |
parent | d3ffc7a6e7372e1b88a4bf1c588cbe8ed46b2ca4 (diff) | |
download | qemu-2d48377a8531de63ec1d0c4b9b1959dc4b78356c.zip qemu-2d48377a8531de63ec1d0c4b9b1959dc4b78356c.tar.gz qemu-2d48377a8531de63ec1d0c4b9b1959dc4b78356c.tar.bz2 |
Compile serial 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.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index f8292e7..705c369 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -2076,9 +2076,15 @@ PXA2xxState *pxa270_init(unsigned int sdram_size, const char *revision) for (i = 0; pxa270_serial[i].io_base; i ++) if (serial_hds[i]) +#ifdef TARGET_WORDS_BIGENDIAN serial_mm_init(pxa270_serial[i].io_base, 2, s->pic[pxa270_serial[i].irqn], 14857000/16, - serial_hds[i], 1); + serial_hds[i], 1, 1); +#else + serial_mm_init(pxa270_serial[i].io_base, 2, + s->pic[pxa270_serial[i].irqn], 14857000/16, + serial_hds[i], 1, 1); +#endif else break; if (serial_hds[i]) @@ -2187,12 +2193,19 @@ PXA2xxState *pxa255_init(unsigned int sdram_size) s->pic[PXA2XX_PIC_MMC], s->dma); for (i = 0; pxa255_serial[i].io_base; i ++) - if (serial_hds[i]) + if (serial_hds[i]) { +#ifdef TARGET_WORDS_BIGENDIAN serial_mm_init(pxa255_serial[i].io_base, 2, s->pic[pxa255_serial[i].irqn], 14745600/16, - serial_hds[i], 1); - else + serial_hds[i], 1, 1); +#else + serial_mm_init(pxa255_serial[i].io_base, 2, + s->pic[pxa255_serial[i].irqn], 14745600/16, + serial_hds[i], 1, 0); +#endif + } else { break; + } if (serial_hds[i]) s->fir = pxa2xx_fir_init(0x40800000, s->pic[PXA2XX_PIC_ICP], s->dma, serial_hds[i]); |