[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 31/50] lasi: fix serial port initialisation
From: |
Mark Cave-Ayland |
Subject: |
[PATCH v2 31/50] lasi: fix serial port initialisation |
Date: |
Wed, 4 May 2022 10:25:41 +0100 |
The existing code checks for serial_hd(1) but sets the LASI serial port chardev
to serial_hd(0). Use serial_hd(1) for the LASI serial port and also set the
serial port endian to DEVICE_BIG_ENDIAN (which also matches the endian of the
existing serial port).
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
---
hw/hppa/lasi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c
index 32c7514d3a..219eb779f3 100644
--- a/hw/hppa/lasi.c
+++ b/hw/hppa/lasi.c
@@ -253,7 +253,7 @@ DeviceState *lasi_initfn(MemoryRegion *address_space)
/* Serial port */
serial_mm_init(address_space, LASI_UART_HPA + 0x800, 0,
qdev_get_gpio_in(dev, LASI_IRQ_UART_HPA), 8000000 / 16,
- serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ serial_hd(1), DEVICE_BIG_ENDIAN);
}
/* PS/2 Keyboard/Mouse */
--
2.20.1
- [PATCH v2 24/50] lasi: move memory region initialisation to new lasi_init() function, (continued)
- [PATCH v2 24/50] lasi: move memory region initialisation to new lasi_init() function, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 25/50] lasi: move register memory mapping from lasi.c to machine.c, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 26/50] lasi: move initialisation of iar and rtc to new lasi_reset() function, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 28/50] lasi: replace lasi_get_irq() with defined constants, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 27/50] lasi: move LASIState and associated QOM structures to lasi.h, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 30/50] lasi: use qdev GPIOs to wire up IRQs in lasi_initfn(), Mark Cave-Ayland, 2022/05/04
- [PATCH v2 31/50] lasi: fix serial port initialisation,
Mark Cave-Ayland <=
- [PATCH v2 29/50] lasi: define IRQ inputs as qdev GPIOs, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 32/50] lasi: update lasi_initfn() to return LASIState, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 33/50] lasi: move LAN initialisation to machine.c, Mark Cave-Ayland, 2022/05/04
- [PATCH v2 35/50] lasi: move second serial port initialisation to machine.c, Mark Cave-Ayland, 2022/05/04