blob: 4fa3f7a05ff9969212e03c6b37d79508a05a41ca [file] [log] [blame]
Olivier Deprez18101ca2021-04-23 19:42:04 +02001#!/usr/bin/env bash
2#
Harrison Mutaia6d6e682023-03-27 13:20:33 +01003# Copyright (c) 2021-2023, Arm Limited. All rights reserved.
Olivier Deprez18101ca2021-04-23 19:42:04 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 fvp_romlib_runtime
10 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
11}
12
Chris Kay4e8aaf12022-09-01 15:21:55 +010013generate_lava_job_template() {
Harrison Mutaia6d6e682023-03-27 13:20:33 +010014 payload_type="tftf" gen_yaml_template
Chris Kay4e8aaf12022-09-01 15:21:55 +010015}
16
17generate_lava_job() {
18 local model="base-aemv8a"
19
20 uart="0" file="tftf.exp" track_expect
Olivier Deprez18101ca2021-04-23 19:42:04 +020021
22 # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
23 # enabled to help with stage-2 translation and virtualization of
24 # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
25 # by configuring the appropriate parameters of the SMMUv3 AEM.
26
27 model="$model" \
Chris Kay4e8aaf12022-09-01 15:21:55 +010028 arch_version="8.5" \
29 has_branch_target_exception="1" \
30 has_smmuv3_params="1" \
31 memory_tagging_support_level="2" \
Madhukar Pappireddyb642aa02023-08-23 16:49:20 -050032 gicd_are_fixed_one="1" \
33 gicv3_ext_interrupt_range="1" \
34 gicd_ext_ppi_count="64" \
35 gicd_ext_spi_count="1024" \
Olivier Deprez18101ca2021-04-23 19:42:04 +020036 gen_model_params
37
38 model="$model" gen_fvp_yaml
39}