blob: 953f34ff8a3d12f7075307b2043b94fe3fb1c2ee [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Rohit Mathewe134e392022-04-08 17:06:45 +01002# Copyright (c) 2019-2022 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
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 }
Fathi Boudra422bf772019-12-02 11:10:16 +02009/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}