test(spm): add SME only (no SVE) test config

Add SPM test config for testing FEAT_SME without FEAT_SVE.

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I273abf127971f608f3a7f178518f67fc643d2afa
diff --git a/group/spm-l2-boot-tests/fvp-default,fvp-spm-sme-only,fvp-default:fvp-spm.smeonly b/group/spm-l2-boot-tests/fvp-default,fvp-spm-sme-only,fvp-default:fvp-spm.smeonly
new file mode 100644
index 0000000..87ad7f5
--- /dev/null
+++ b/group/spm-l2-boot-tests/fvp-default,fvp-spm-sme-only,fvp-default:fvp-spm.smeonly
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2024, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/run_config/fvp-spm.smeonly b/run_config/fvp-spm.smeonly
new file mode 100644
index 0000000..4be3d39
--- /dev/null
+++ b/run_config/fvp-spm.smeonly
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2024, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_tf_build() {
+	build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
+}
+
+generate_lava_job_template() {
+	payload_type="tftf" gen_yaml_template
+}
+
+generate_lava_job() {
+	local model="base-aemv8a"
+
+	uart="0" file="tftf.exp" track_expect
+	uart="1" file="hold_uart.exp" track_expect
+
+	# SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
+	# enabled to help with stage-2 translation and virtualization of
+	# upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
+	# by configuring the appropriate parameters of the SMMUv3 AEM.
+
+	model="$model" \
+		arch_version="8.5" \
+		has_branch_target_exception="1" \
+		has_smmuv3_params="1" \
+		memory_tagging_support_level="2" \
+		has_sve="1" \
+		has_sme="1" \
+		sme_only="1" \
+		gicd_are_fixed_one="1" \
+		gicv3_ext_interrupt_range="1" \
+		gicd_ext_ppi_count="64" \
+		gicd_ext_spi_count="1024" \
+		gen_model_params
+
+	model="$model" gen_fvp_yaml
+}
diff --git a/tf_config/fvp-spm-sme-only b/tf_config/fvp-spm-sme-only
new file mode 100644
index 0000000..e7b9713
--- /dev/null
+++ b/tf_config/fvp-spm-sme-only
@@ -0,0 +1,12 @@
+CROSS_COMPILE=aarch64-none-elf-
+PLAT=fvp
+SPD=spmd
+ARM_ARCH_MAJOR=8
+ARM_ARCH_MINOR=5
+BRANCH_PROTECTION=1
+ENABLE_FEAT_MTE2=1
+ENABLE_SVE_FOR_SWD=1
+ENABLE_SME_FOR_SWD=1
+SP_LAYOUT_FILE=${tftf_root}/build/fvp/${bin_mode}/sp_layout.json
+GIC_EXT_INTID=1
+PLAT_TEST_SPM=1