model: add css awk ports program file to handle multiple rd chips

Reference Design platforms (RD) has multichip FVP variants
(RD-N1-Edge-Dual and RD-Daniel Config XLR) in which there are multiple
uart windows with same title across chips. For example, the title of SCP
uart window on Chip-0's FVP and Chip-1's FVP is 'terminal_uart_aon'.
This commit adds awk ports program file to handle the multiple SCP uart
ports.

Change-Id: I7387191edd0b192982eb930f6b576d62075254f9
Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
diff --git a/model/css-rdinfra-ports.awk b/model/css-rdinfra-ports.awk
new file mode 100644
index 0000000..908af60
--- /dev/null
+++ b/model/css-rdinfra-ports.awk
@@ -0,0 +1,24 @@
+#
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+/terminal_s0/ { ports[0] = $NF }
+/terminal_s1/ { ports[1] = $NF }
+
+# SCP uart window title
+/terminal_uart_aon/ { uart_aon[$NF]++ }
+
+END {
+	# start with idx 2, port idx 0 and 1 are taken by s0 and s1
+	uart_aon_idx = 2;
+	for (port in uart_aon) {
+		ports[uart_aon_idx++] = port;
+	}
+
+	for (i = 0; i < num_uarts; i++) {
+		if (ports[i] != "")
+			print "ports[" i "]=" ports[i]
+	}
+}