Configs: Restructure Corstone300 configurations

The CS300 platform (an547 and an552) has been reorganized
in the TF-M, this commit sync the configs with the
I06bf37cdffb55d411d523b0635e8ac9c10f3fefa change.

This includes:
- Rename an552 to corstone300/an552
- Rename an547 to corstone300/an547
- Added corstone300/fvp (which is aligned with an552)
- Changed the lava config to load the binary to the QSPI

Change-Id: I829fa054879661f5d45a2af18618f5dddfebaa06
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
diff --git a/build_helper/build_helper_config_maps.py b/build_helper/build_helper_config_maps.py
index 58fed95..4ad9914 100644
--- a/build_helper/build_helper_config_maps.py
+++ b/build_helper/build_helper_config_maps.py
@@ -17,8 +17,9 @@
     "arm/mps2/an519"                     : "AN519",
     "arm/mps2/an521"                     : "AN521",
     "arm/mps3/an524"                     : "AN524",
-    "arm/mps3/an547"                     : "AN547",
-    "arm/mps3/an552"                     : "AN552",
+    "arm/mps3/corstone300/fvp"           : "CS300_FVP",
+    "arm/mps3/corstone300/an547"         : "CS300_AN547",
+    "arm/mps3/corstone300/an552"         : "CS300_AN552",
     "arm/musca_b1"                       : "MUSCA_B1",
     "arm/musca_s1"                       : "MUSCA_S1",
     "arm/corstone1000"                   : "corstone1000",
diff --git a/build_helper/build_helper_configs.py b/build_helper/build_helper_configs.py
index 11167f0..01c6904 100755
--- a/build_helper/build_helper_configs.py
+++ b/build_helper/build_helper_configs.py
@@ -244,11 +244,11 @@
                     # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
                     ("arm/mps2/an521", "GCC_10_3", "1",
                      "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
-                    # AN552_GNUARM_2_RegBL2_RegS_RegNS_Debug_BL2
-                    ("arm/mps3/an552", "GCC_10_3", "2",
+                    # CS300_FVP_GNUARM_2_RegBL2_RegS_RegNS_Debug_BL2
+                    ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
                      "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
-                    # AN552_GNUARM_2_RegBL2_RegS_RegNS_Release_BL2
-                    ("arm/mps3/an552", "GCC_10_3", "2",
+                    # CS300_FVP_GNUARM_2_RegBL2_RegS_RegNS_Release_BL2
+                    ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
                      "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
                     # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
                     ("arm/musca_b1", "GCC_10_3", "1",
@@ -442,7 +442,8 @@
 
 config_fp = {"seed_params": {
                 "tfm_platform":     ["arm/mps2/an521",
-                                     "arm/mps3/an552"],
+                                     "arm/mps3/corstone300/an552",
+                                     "arm/mps3/corstone300/fvp"],
                 "compiler":         ["GCC_10_3"],
                 "isolation_level":  ["1", "2"],
                 "test_regression":  ["RegBL2, RegS, RegNS"],
@@ -508,7 +509,7 @@
 
 # Config groups for TF-M examples
 config_example_vad = {"seed_params": {
-                "tfm_platform":     ["arm/mps3/an552"],
+                "tfm_platform":     ["arm/mps3/corstone300/an552"],
                 "compiler":         ["GCC_10_3"],
                 "isolation_level":  ["2"],
                 "test_regression":  ["OFF"],
@@ -695,35 +696,50 @@
                 "invalid": _common_tfm_invalid_configs + []
                 }
 
-config_an547 = {"seed_params": {
-                "tfm_platform":     ["arm/mps3/an547"],
-                "compiler":         ["GCC_10_3"],
-                "isolation_level":  ["1"],
-                "test_regression":  ["OFF"],
-                "test_psa_api":     ["OFF"],
-                "cmake_build_type": ["Debug"],
-                "with_bl2":         [True],
-                "profile":          [""],
-                "extra_params":     [""]
-                },
-                "common_params": _common_tfm_builder_cfg,
-                "invalid": _common_tfm_invalid_configs + []
-                }
+config_cs300_an547 = {"seed_params": {
+                      "tfm_platform":     ["arm/mps3/corstone300/an547"],
+                      "compiler":         ["GCC_10_3"],
+                      "isolation_level":  ["1"],
+                      "test_regression":  ["OFF"],
+                      "test_psa_api":     ["OFF"],
+                      "cmake_build_type": ["Debug"],
+                      "with_bl2":         [True],
+                      "profile":          [""],
+                      "extra_params":     [""]
+                      },
+                      "common_params": _common_tfm_builder_cfg,
+                      "invalid": _common_tfm_invalid_configs + []
+                      }
 
-config_an552 = {"seed_params": {
-                "tfm_platform":     ["arm/mps3/an552"],
-                "compiler":         ["GCC_10_3"],
-                "isolation_level":  ["1", "2"],
-                "test_regression":  ["OFF", "RegBL2, RegS, RegNS"],
-                "test_psa_api":     ["OFF"],
-                "cmake_build_type": ["Debug", "Release"],
-                "with_bl2":         [True],
-                "profile":          [""],
-                "extra_params":     [""]
-                },
-                "common_params": _common_tfm_builder_cfg,
-                "invalid": _common_tfm_invalid_configs + []
-                }
+config_cs300_an552 = {"seed_params": {
+                      "tfm_platform":     ["arm/mps3/corstone300/an552"],
+                      "compiler":         ["GCC_10_3"],
+                      "isolation_level":  ["1", "2"],
+                      "test_regression":  ["OFF", "RegBL2, RegS, RegNS"],
+                      "test_psa_api":     ["OFF"],
+                      "cmake_build_type": ["Debug", "Release"],
+                      "with_bl2":         [True],
+                      "profile":          [""],
+                      "extra_params":     [""]
+                      },
+                      "common_params": _common_tfm_builder_cfg,
+                      "invalid": _common_tfm_invalid_configs + []
+                      }
+
+config_cs300_fvp = {"seed_params": {
+                    "tfm_platform":     ["arm/mps3/corstone300/fvp"],
+                    "compiler":         ["GCC_10_3"],
+                    "isolation_level":  ["1", "2"],
+                    "test_regression":  ["OFF", "RegBL2, RegS, RegNS"],
+                    "test_psa_api":     ["OFF"],
+                    "cmake_build_type": ["Debug", "Release"],
+                    "with_bl2":         [True],
+                    "profile":          [""],
+                    "extra_params":     [""]
+                    },
+                    "common_params": _common_tfm_builder_cfg,
+                    "invalid": _common_tfm_invalid_configs + []
+                    }
 
 config_musca_b1 = {"seed_params": {
                 "tfm_platform":     ["arm/musca_b1"],
@@ -1018,8 +1034,9 @@
                     "nightly_psa_api": config_psa_api,
                     "nightly_nsce": config_nsce,
                     "nightly_mmio": config_mmio,
-                    "nightly_an547": config_an547,
-                    "nightly_an552": config_an552,
+                    "nightly_cs300_an547": config_cs300_an547,
+                    "nightly_cs300_an552": config_cs300_an552,
+                    "nightly_cs300_fvp": config_cs300_fvp,
                     "nightly_corstone310": config_corstone310,
                     "nightly_corstone1000": config_corstone1000,
                     "nightly_rss": config_rss,
@@ -1040,8 +1057,9 @@
                     "release_psa_api": config_psa_api,
                     "release_nsce": config_nsce,
                     "release_mmio": config_mmio,
-                    "release_an547": config_an547,
-                    "release_an552": config_an552,
+                    "release_cs300_an547": config_cs300_an547,
+                    "release_cs300_an552": config_cs300_an552,
+                    "release_cs300_fvp": config_cs300_fvp,
                     "release_corstone310": config_corstone310,
                     "release_rss": config_rss,
                     "release_psoc64": config_psoc64,
@@ -1066,8 +1084,9 @@
                     "an521": config_an521,
                     "an519": config_an519,
                     "an524": config_an524,
-                    "an547": config_an547,
-                    "an552": config_an552,
+                    "cs300_an547": config_cs300_an547,
+                    "cs300_an552": config_cs300_an552,
+                    "cs300_fvp": config_cs300_fvp,
                     "musca_b1": config_musca_b1,
                     "musca_s1": config_musca_s1,
                     "corstone310": config_corstone310,
diff --git a/lava_helper/lava_helper_configs.py b/lava_helper/lava_helper_configs.py
index 4de19fa..538f312 100644
--- a/lava_helper/lava_helper_configs.py
+++ b/lava_helper/lava_helper_configs.py
@@ -8,7 +8,7 @@
 
 __copyright__ = """
 /*
- * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2023, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -114,19 +114,19 @@
     }
 }
 
-# FVP with BL2 bootloader for AN552
+# FVP with BL2 bootloader for Corstone300
 # firmware <-> ns <-> application: --application cpu0=bl2.axf
 # bootloader <-> s <-> data: --data cpu0=tfm_s_ns_signed.bin@0x01000000
-fvp_mps3_an552_bl2 = {
+fvp_mps3_cs300_bl2 = {
     "templ": "fvp_mps3.jinja2",
-    "job_name": "fvp_mps3_an552_bl2",
+    "job_name": "fvp_mps3_cs300_bl2",
     "device_type": "fvp",
     "job_timeout": 15,
     "action_timeout": 10,
     "monitor_timeout": 15,
     "poweroff_timeout": 1,
-    "platforms": {"arm/mps3/an552": ""},
-    "data_bin_offset": "0x01000000",
+    "platforms": {"arm/mps3/corstone300/fvp": ""},
+    "data_bin_offset": "0x38000000",
     "binaries": {
         "application": "bl2.axf",
         "data": "tfm_s_ns_signed.bin"
@@ -326,7 +326,7 @@
 # All configurations should be mapped here
 lava_gen_config_map = {
     "mps2_an521_bl2": tfm_mps2_sse_200,
-    "fvp_mps3_an552_bl2": fvp_mps3_an552_bl2,
+    "fvp_mps3_cs300_bl2": fvp_mps3_cs300_bl2,
     "fvp_mps2_an521_bl2": fvp_mps2_an521_bl2,
     "fvp_mps2_an519_bl2": fvp_mps2_an519_bl2,
     "fvp_corstone1000": fvp_corstone1000,