[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 31/50] lasi: fix serial port initialisation
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 31/50] lasi: fix serial port initialisation |
Date: |
Thu, 21 Apr 2022 20:30: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>
---
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 21/50] dino: move DINO HPA constants from hppa_hardware.h to dino.h, (continued)
- [PATCH 21/50] dino: move DINO HPA constants from hppa_hardware.h to dino.h, Mark Cave-Ayland, 2022/04/21
- [PATCH 24/50] lasi: move memory region initialisation to new lasi_init() function, Mark Cave-Ayland, 2022/04/21
- [PATCH 26/50] lasi: move initialisation of iar and rtc to new lasi_reset() function, Mark Cave-Ayland, 2022/04/21
- [PATCH 27/50] lasi: move LASIState and associated QOM structures to lasi.h, Mark Cave-Ayland, 2022/04/21
- [PATCH 23/50] lasi: checkpatch fixes, Mark Cave-Ayland, 2022/04/21
- [PATCH 22/50] dino: move from hw/hppa to hw/pci-host, Mark Cave-Ayland, 2022/04/21
- [PATCH 25/50] lasi: move register memory mapping from lasi.c to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 28/50] lasi: replace lasi_get_irq() with defined constants, Mark Cave-Ayland, 2022/04/21
- [PATCH 29/50] lasi: define IRQ inputs as qdev GPIOs, Mark Cave-Ayland, 2022/04/21
- [PATCH 30/50] lasi: use qdev GPIOs to wire up IRQs in lasi_initfn(), Mark Cave-Ayland, 2022/04/21
- [PATCH 31/50] lasi: fix serial port initialisation,
Mark Cave-Ayland <=
- [PATCH 32/50] lasi: update lasi_initfn() to return LASIState, Mark Cave-Ayland, 2022/04/21
- [PATCH 34/50] lasi: move parallel port initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 36/50] lasi: move PS2 initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 33/50] lasi: move LAN initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 39/50] lasi: use constants for device register offsets, Mark Cave-Ayland, 2022/04/21
- [PATCH 35/50] lasi: move second serial port initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 41/50] hppa: move device headers from hppa_sys.h into individual .c files, Mark Cave-Ayland, 2022/04/21
- [PATCH 37/50] lasi: remove address space parameter from lasi_initfn(), Mark Cave-Ayland, 2022/04/21
- [PATCH 38/50] lasi: move lasi_initfn() to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 40/50] lasi: use numerical constant for iar reset value, Mark Cave-Ayland, 2022/04/21