aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc_prep.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-22 13:53:21 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:50 -0500
commitac0be998009257f0368e25470bac4e85b694ceaf (patch)
treee6ff10fce45bd25890688a871758a428fb5cbcaf /hw/ppc_prep.c
parent41b5e892b7dbf553b356b51004a6966233e71a6d (diff)
serial: convert isa to qdev
Everything using standard isa I/O ports and IRQ windup is considerd being an actual isa device. That are all serial_init() users except mips_mipssim() which seems to have a non-standard IRQ windup. baud rate is fixed at 115200 now as no caller passed in something else. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ppc_prep.c')
-rw-r--r--hw/ppc_prep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c
index cb7167eeb3..889284a239 100644
--- a/hw/ppc_prep.c
+++ b/hw/ppc_prep.c
@@ -685,7 +685,8 @@ static void ppc_prep_init (ram_addr_t ram_size,
// pit = pit_init(0x40, i8259[0]);
rtc_init(2000);
- serial_init(0x3f8, i8259[4], 115200, serial_hds[0]);
+ if (serial_hds[0])
+ serial_isa_init(0, serial_hds[0]);
nb_nics1 = nb_nics;
if (nb_nics1 > NE2000_NB_MAX)
nb_nics1 = NE2000_NB_MAX;