blob: 908af602ceb6077bb10918435717a2eb4dfe54c6 [file] [log] [blame]
Vijayenthiran Subramaniam33ecfb22020-07-22 14:24:23 +05301#
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7/terminal_s0/ { ports[0] = $NF }
8/terminal_s1/ { ports[1] = $NF }
9
10# SCP uart window title
11/terminal_uart_aon/ { uart_aon[$NF]++ }
12
13END {
14 # start with idx 2, port idx 0 and 1 are taken by s0 and s1
15 uart_aon_idx = 2;
16 for (port in uart_aon) {
17 ports[uart_aon_idx++] = port;
18 }
19
20 for (i = 0; i < num_uarts; i++) {
21 if (ports[i] != "")
22 print "ports[" i "]=" ports[i]
23 }
24}