blob: fb77b2d2b4c669f30d2169dc4d42e062dd44d971 [file] [log] [blame]
Maksims Svecovs180c8182021-04-07 16:58:48 +01001#!/usr/bin/env bash
2#
3# Copyright (c) 2021, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
10}
11
12fetch_tf_resource() {
13 # Expect scripts
14 uart="0" file="tftf.exp" track_expect
15 uart="2" file="spm-uart2.exp" track_expect
16
17 payload_type="tftf" gen_fvp_yaml_template
18
19}
20
21post_fetch_tf_resource() {
22 local model="base-aemv8a"
23
24 # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
25 # enabled to help with stage-2 translation and virtualization of
26 # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
27 # by confuguring the appropriate parameters of the SMMUv3 AEM.
28
29 model="$model" \
Arunachalam Ganapathy28833112021-07-14 12:32:19 +010030 amu_present="1" \
Maksims Svecovs180c8182021-04-07 16:58:48 +010031 sve_plugin=1 \
32 arch_version="8.5" \
33 has_smmuv3_params="1" \
34 has_branch_target_exception="1" \
35 restriction_on_speculative_execution="2" \
36 gen_model_params
37
38 model="$model" gen_fvp_yaml
39}