aboutsummaryrefslogtreecommitdiff
path: root/hw/milkymist-hw.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2011-08-11 00:13:23 +0200
committerMichael Walle <michael@walle.cc>2011-10-03 12:44:22 +0200
commitfcfa339778a624dd67bb2def664ec6aabb497ba8 (patch)
tree0e9fa8160c64b72314a1e013178b815db4b23bfc /hw/milkymist-hw.h
parent27f930c5f0c26fbb845d8071e3bca5f127891ecd (diff)
milkymist_uart: support new core version
The new version of the uart core introduces status and control bits. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'hw/milkymist-hw.h')
-rw-r--r--hw/milkymist-hw.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/milkymist-hw.h b/hw/milkymist-hw.h
index 20de68ecce..9f358a7d69 100644
--- a/hw/milkymist-hw.h
+++ b/hw/milkymist-hw.h
@@ -5,15 +5,14 @@
#include "qdev-addr.h"
static inline DeviceState *milkymist_uart_create(target_phys_addr_t base,
- qemu_irq rx_irq, qemu_irq tx_irq)
+ qemu_irq irq)
{
DeviceState *dev;
dev = qdev_create(NULL, "milkymist-uart");
qdev_init_nofail(dev);
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
- sysbus_connect_irq(sysbus_from_qdev(dev), 0, rx_irq);
- sysbus_connect_irq(sysbus_from_qdev(dev), 1, tx_irq);
+ sysbus_connect_irq(sysbus_from_qdev(dev), 0, irq);
return dev;
}