blob: 9ab697f54db75402d1519eabfc1645f110b83f65 [file] [log] [blame]
Maksims Svecovs180c8182021-04-07 16:58:48 +01001#!/usr/bin/env bash
2#
Maksims Svecovsc2e24752022-03-24 13:52:31 +00003# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
Maksims Svecovs180c8182021-04-07 16:58:48 +01004#
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" \
Maksims Svecovsc2e24752022-03-24 13:52:31 +000036 memory_tagging_support_level="2" \
Maksims Svecovs180c8182021-04-07 16:58:48 +010037 gen_model_params
38
39 model="$model" gen_fvp_yaml
40}