blob: 4829a7670d29ed1456307b99943b47bb89903564 [file] [log] [blame]
Vijayenthiran Subramaniam33ecfb22020-07-22 14:24:23 +05301#
Rohit Mathewe134e392022-04-08 17:06:45 +01002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Vijayenthiran Subramaniam33ecfb22020-07-22 14:24:23 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Rohit Mathewe134e392022-04-08 17:06:45 +01007/terminal_uart1_ap/ { ports[0] = $NF }
8/terminal_uart_ap/ { ports[1] = $NF }
Vijayenthiran Subramaniam33ecfb22020-07-22 14:24:23 +05309
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}