From cd45b490dff322db53d459b335afaa1b9aba723a Mon Sep 17 00:00:00 2001
From: Oleksii Kutuzov <oleksii.kutuzov@seco.com>
Date: Wed, 18 Dec 2024 10:13:26 +0000
Subject: [PATCH] [DRIVER] Increase the UART number to 5

We have 5 UARTs in E81 design,
accordingly increasing the number of possible uarts.
---
 drivers/tty/serial/qcom_geni_serial.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c
index 0862cba772dc0..5a42c38d3ebb4 100644
--- a/drivers/tty/serial/qcom_geni_serial.c
+++ b/drivers/tty/serial/qcom_geni_serial.c
@@ -95,7 +95,7 @@ void serial_trace_log(struct device *dev, const char *fmt, ...)
 #define STALE_TIMEOUT			16
 #define DEFAULT_BITS_PER_CHAR		10
 #define GENI_UART_CONS_PORTS		1
-#define GENI_UART_PORTS			3
+#define GENI_UART_PORTS			5
 #define DEF_FIFO_DEPTH_WORDS		16
 #define DEF_TX_WM			2
 #define DEF_FIFO_WIDTH_BITS		32
@@ -193,6 +193,22 @@ static struct qcom_geni_serial_port qcom_geni_uart_ports[GENI_UART_PORTS] = {
 			.line = 2,
 		},
 	},
+	[3] = {
+		.uport = {
+			.iotype = UPIO_MEM,
+			.ops = &qcom_geni_uart_pops,
+			.flags = UPF_BOOT_AUTOCONF,
+			.line = 3,
+		},
+	},
+	[4] = {
+		.uport = {
+			.iotype = UPIO_MEM,
+			.ops = &qcom_geni_uart_pops,
+			.flags = UPF_BOOT_AUTOCONF,
+			.line = 4,
+		},
+	},
 };
 
 static struct qcom_geni_serial_port qcom_geni_console_port = {
-- 
GitLab