blob: cb0a5ec3bfe782256e336845e5b2ba020f247238 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Madhukar Pappireddy024efd52020-12-31 16:45:52 -06003# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
Zelaleme9e81482020-07-10 15:18:46 -05009 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
10}
11
Olivier Deprezaa4d1262020-10-30 15:02:17 +010012fetch_tf_resource() {
13 # Expect scripts
14 uart="0" file="tftf.exp" track_expect
15 uart="2" file="spm-uart2.exp" track_expect
Leonardo Sandoval4f0c7912021-03-17 11:35:07 -060016
17 payload_type="tftf" gen_fvp_yaml_template
18
Olivier Deprezaa4d1262020-10-30 15:02:17 +010019}
20
Zelaleme9e81482020-07-10 15:18:46 -050021post_fetch_tf_resource() {
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060022 local model="base-aemv8a"
Leonardo Sandoval6ba23802020-10-27 13:17:53 -060023
Madhukar Pappireddy024efd52020-12-31 16:45:52 -060024 # 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
Olivier Deprez18101ca2021-04-23 19:42:04 +020027 # by configuring the appropriate parameters of the SMMUv3 AEM.
28
29 model="$model" \
30 arch_version="8.5" \
31 has_smmuv3_params="1" \
32 has_branch_target_exception="1" \
33 restriction_on_speculative_execution="2" \
34 gen_model_params
Madhukar Pappireddy024efd52020-12-31 16:45:52 -060035
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060036 model="$model" gen_fvp_yaml
Zelaleme9e81482020-07-10 15:18:46 -050037}