Maksims Svecovs | 180c818 | 2021-04-07 16:58:48 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
Maksims Svecovs | c2e2475 | 2022-03-24 13:52:31 +0000 | [diff] [blame^] | 3 | # Copyright (c) 2021-2022, Arm Limited. All rights reserved. |
Maksims Svecovs | 180c818 | 2021-04-07 16:58:48 +0100 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
| 9 | build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin" |
| 10 | } |
| 11 | |
| 12 | fetch_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 | |
| 21 | post_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 Ganapathy | 2883311 | 2021-07-14 12:32:19 +0100 | [diff] [blame] | 30 | amu_present="1" \ |
Maksims Svecovs | 180c818 | 2021-04-07 16:58:48 +0100 | [diff] [blame] | 31 | 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 Svecovs | c2e2475 | 2022-03-24 13:52:31 +0000 | [diff] [blame^] | 36 | memory_tagging_support_level="2" \ |
Maksims Svecovs | 180c818 | 2021-04-07 16:58:48 +0100 | [diff] [blame] | 37 | gen_model_params |
| 38 | |
| 39 | model="$model" gen_fvp_yaml |
| 40 | } |