refactor(sgi): regroup "sgi" and "rdinfra" to "neoverse_rd"
Currently, reference design platforms such as RD-N2, RD-N1-Edge, RD-V1,
and SGI-575 utilize "sgi/common" as the common source directory. The
"sgi" prefix originated from the System Guidance Infrastructure (SGI)
and was initially associated with the SGI-575 platform. However,
subsequent platforms released were under the Neoverse reference design
product name.
To align with the Neoverse reference design nomenclature, regroup all
common and board files within neoverse_rd directory. Consolidate common
sources and headers under neoverse_rd/common. Board files for RD-V1,
RD-N2, RD-N1-Edge and SGI-575 are moved to neoverse_rd/platform. With
the changes in this commit, the tree view would look as follows:
├── neoverse_rd
│ ├── common
│ │ ├── arch
│ │ └── include
│ └── platform
│ ├── rdn1edge
│ ├── rdn2
│ ├── rdv1
│ └── sgi575
Additionally, update all file prefixes from "sgi" to "nrd."
Signed-off-by: Rohit Mathew <Rohit.Mathew@arm.com>
Change-Id: I07e2af143fad82e48172612fe0e28db6464fa901
diff --git a/plat/arm/neoverse_rd/common/plat_setup.c b/plat/arm/neoverse_rd/common/plat_setup.c
new file mode 100644
index 0000000..e6d4c0d
--- /dev/null
+++ b/plat/arm/neoverse_rd/common/plat_setup.c
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <drivers/arm/arm_gic.h>
+#include <xlat_tables_v2.h>
+
+static const mmap_region_t mmap[] = {
+ MAP_REGION_FLAT(SGI_DEVICE0_BASE, SGI_DEVICE0_SIZE,
+ MT_DEVICE | MT_RW | MT_NS),
+ MAP_REGION_FLAT(SGI_DEVICE1_BASE, SGI_DEVICE1_SIZE,
+ MT_DEVICE | MT_RW | MT_NS),
+ MAP_REGION_FLAT(DRAM_BASE, TFTF_BASE - DRAM_BASE,
+ MT_MEMORY | MT_RW | MT_NS),
+ {0}
+};
+
+const mmap_region_t *tftf_platform_get_mmap(void)
+{
+ return mmap;
+}
+
+void plat_arm_gic_init(void)
+{
+ arm_gic_init(PLAT_ARM_GICC_BASE, PLAT_ARM_GICD_BASE, PLAT_ARM_GICR_BASE);
+}