feat(versal2): add build config for AMD Versal Gen 2 platform
Add build config for AMD Versal Gen 2 platform.
Change-Id: I40a2c811b429aefbb17a2a193978c9d22f92c960
Signed-off-by: Amit Nagal <amit.nagal@amd.com>
diff --git a/group/tf-l1-build-plat/versal2-ddr:nil b/group/tf-l1-build-plat/versal2-ddr:nil
new file mode 100644
index 0000000..9cff17b
--- /dev/null
+++ b/group/tf-l1-build-plat/versal2-ddr:nil
@@ -0,0 +1,5 @@
+#
+# Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
diff --git a/group/tf-l1-build-plat/versal2-default:nil b/group/tf-l1-build-plat/versal2-default:nil
new file mode 100644
index 0000000..6eaa1fd
--- /dev/null
+++ b/group/tf-l1-build-plat/versal2-default:nil
@@ -0,0 +1,5 @@
+#
+# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
diff --git a/script/tf-coverity/tf-cov-make b/script/tf-coverity/tf-cov-make
index 02c69c7..40a2368 100755
--- a/script/tf-coverity/tf-cov-make
+++ b/script/tf-coverity/tf-cov-make
@@ -434,6 +434,9 @@
# Build Xilinx Versal NET without Platform Management support
clean_build PLAT=versal_net $(common_flags) TFA_NO_PM=1
+# Build Xilinx Versal Gen 2 platform
+clean_build PLAT=versal2 $(common_flags)
+
# Platforms from Allwinner
clean_build PLAT=sun50i_a64 $(common_flags release) all
clean_build PLAT=sun50i_a64 $(common_flags release) SUNXI_PSCI_USE_NATIVE=0 all
diff --git a/tf_config/versal2-ddr b/tf_config/versal2-ddr
new file mode 100644
index 0000000..21e44a7
--- /dev/null
+++ b/tf_config/versal2-ddr
@@ -0,0 +1,6 @@
+CROSS_COMPILE=aarch64-none-elf-
+PLAT=versal2
+RESET_TO_BL31=1
+MEM_BASE=0x10080000
+MEM_SIZE=0x50000
+XILINX_OF_BOARD_DTB_ADDR=0x1000
diff --git a/tf_config/versal2-default b/tf_config/versal2-default
new file mode 100644
index 0000000..8404a3c
--- /dev/null
+++ b/tf_config/versal2-default
@@ -0,0 +1,3 @@
+CROSS_COMPILE=aarch64-none-elf-
+PLAT=versal2
+RESET_TO_BL31=1