summaryrefslogtreecommitdiff
path: root/hw/omap1.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-08-08 14:09:26 +0200
committerAndrzej Zaborowski <balrog@zabor.org>2010-09-10 01:55:53 +0200
commit6a8aabd3c132188ee8e0e82ef4aba09f782cbe96 (patch)
treeb1867d887a224a7cc75c00a7c253b11ca3da0ee0 /hw/omap1.c
parent62dd89dea25b08796fcb83beeac3aea5f5a89c95 (diff)
downloadqemu-6a8aabd3c132188ee8e0e82ef4aba09f782cbe96.tar.gz
hw/omap: Fix default setup for OMAP UART devices
Character devices created by qemu_chr_open don't allow duplicate device names, so naming all UART devices "null" no longer works. Running "qemu-system-arm -M n800" (and some other machines) results in this error message: qemu-system-arm: Duplicate ID 'null' for chardev Can't create serial device, empty char device This is fixed by setting a default label "uart1", "uart2" or "uart3". Cc: Andrzej Zaborowski <andrew.zaborowski@intel.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Diffstat (limited to 'hw/omap1.c')
-rw-r--r--hw/omap1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/omap1.c b/hw/omap1.c
index 06370b6d34..1ee55147bb 100644
--- a/hw/omap1.c
+++ b/hw/omap1.c
@@ -3809,16 +3809,19 @@ struct omap_mpu_state_s *omap310_mpu_init(unsigned long sdram_size,
omap_findclk(s, "uart1_ck"),
omap_findclk(s, "uart1_ck"),
s->drq[OMAP_DMA_UART1_TX], s->drq[OMAP_DMA_UART1_RX],
+ "uart1",
serial_hds[0]);
s->uart[1] = omap_uart_init(0xfffb0800, s->irq[1][OMAP_INT_UART2],
omap_findclk(s, "uart2_ck"),
omap_findclk(s, "uart2_ck"),
s->drq[OMAP_DMA_UART2_TX], s->drq[OMAP_DMA_UART2_RX],
+ "uart2",
serial_hds[0] ? serial_hds[1] : NULL);
s->uart[2] = omap_uart_init(0xfffb9800, s->irq[0][OMAP_INT_UART3],
omap_findclk(s, "uart3_ck"),
omap_findclk(s, "uart3_ck"),
s->drq[OMAP_DMA_UART3_TX], s->drq[OMAP_DMA_UART3_RX],
+ "uart3",
serial_hds[0] && serial_hds[1] ? serial_hds[2] : NULL);
omap_dpll_init(&s->dpll[0], 0xfffecf00, omap_findclk(s, "dpll1"));