escc: add port index to uart_init_line()

This will be needed to allow uart_init_line() to reset the correct port.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
diff --git a/drivers/escc.c b/drivers/escc.c
index d9e1990..4da8917 100644
--- a/drivers/escc.c
+++ b/drivers/escc.c
@@ -78,7 +78,7 @@
     DATA(port) = c;
 }
 
-static void uart_init_line(volatile unsigned char *port, unsigned long baud)
+static void uart_init_line(volatile unsigned char *port, unsigned long baud, int index)
 {
     CTRL(port) = 4; // reg 4
     CTRL(port) = SB1 | X16CLK; // no parity, async, 1 stop bit, 16x
@@ -110,7 +110,7 @@
 #else
     escc_serial_dev = (unsigned char *)(uintptr_t)port;
 #endif
-    uart_init_line(escc_serial_dev, speed);
+    uart_init_line(escc_serial_dev, speed, 1);
     return -1;
 }
 
@@ -518,7 +518,7 @@
     fword("finish-device");
 
     uart_init_line((unsigned char*)addr + offset + reg_offsets[legacy][index][0],
-                   CONFIG_SERIAL_SPEED);
+                   CONFIG_SERIAL_SPEED, index);
 }
 
 void