blob: 4a59a4689c040b4b85bb3aed3501b518ebb5a3b2 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05002# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7/terminal_s0/ { ports[0] = $NF }
8/terminal_s1/ { ports[1] = $NF }
9/terminal_uart_aon/ { ports[2] = $NF }
10END {
11 for (i = 0; i < num_uarts; i++) {
12 if (ports[i] != "")
13 print "ports[" i "]=" ports[i]
14 }
15}