blob: b57a32f4cc17fd80657b2c3e5475aa12dcfad790 [file] [log] [blame]
Vijayenthiran Subramaniam8c50c6f2020-07-21 19:05:09 +05301#!/bin/bash
2#
3# Copyright (c) 2020, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8fetch_tf_resource() {
9 #Fetch the pre-built SCP/MCP binaries if they haven't been built
10 if [ ! -f "$archive/mcp_rom.bin" ]; then
11 url="$sgi_prebuilts/mcp_rom.bin" fetch_file
12 archive_file "mcp_rom.bin"
13 fi
14 if [ ! -f "$archive/scp_ram.bin" ]; then
15 url="$sgi_prebuilts/scp_ram.bin" fetch_file
16 archive_file "scp_ram.bin"
17 fi
18 if [ ! -f "$archive/scp_rom.bin" ]; then
19 url="$sgi_prebuilts/scp_rom.bin" fetch_file
20 archive_file "scp_rom.bin"
21 fi
22
23 # Hold scp terminal_uart_aon on css0
24 uart="2" file="hold_uart.exp" track_expect
25
26 # Hold scp terminal_uart_aon on css1
27 uart="3" file="hold_uart.exp" track_expect
28}
29
30post_fetch_tf_resource() {
31 model="css-rdn1edgex2" gen_model_params
32 set_run_env "ports_script" "$ci_root/model/css-rdinfra-ports.awk"
33 set_run_env "num_uarts" "4"
34 uart="0" set_expect_variable "num_cpus" "16"
35}