From a336276fcddbbab47b6378ec67ba5b00bcb24d85 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Thu, 26 May 2022 10:28:28 +0200 Subject: parisc: Provide serial port name based on given hpa address Prevent usage of the hardcoded PARISC_SERIAL_CONSOLE value and instead check the given hpa and provide the correct serial port name. Signed-off-by: Helge Deller --- src/parisc/parisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 3404578..0a60fa1 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -356,7 +356,7 @@ static const char *hpa_device_name(unsigned long hpa, int output) { return HPA_is_graphics_device(hpa) ? "GRAPHICS(1)" : HPA_is_keyboard_device(hpa) ? "PS2" : - (PARISC_SERIAL_CONSOLE == PORT_SERIAL1) ? + ((hpa + 0x800) == PORT_SERIAL1) ? "SERIAL_1.9600.8.none" : "SERIAL_2.9600.8.none"; } -- cgit v1.1