plat/arm: Add initial platform support for TC0
This patch adds TC0 platform support for tf-a-tests.
Enables tftf and el3_payload build targets.
Change-Id: Ia93e867e27f96ba94b686fadde5a730ffa221cbc
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
diff --git a/plat/arm/tc0/tc0_mem_prot.c b/plat/arm/tc0/tc0_mem_prot.c
new file mode 100644
index 0000000..06a333e
--- /dev/null
+++ b/plat/arm/tc0/tc0_mem_prot.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2020, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <platform.h>
+
+#define TC0_DRAM1_NS_START (TFTF_BASE + 0x4000000)
+#define TC0_DRAM1_NS_SIZE 0x10000000
+
+static const mem_region_t tc0_ram_ranges[] = {
+ { TC0_DRAM1_NS_START, TC0_DRAM1_NS_SIZE }
+};
+
+const mem_region_t *plat_get_prot_regions(int *nelem)
+{
+ *nelem = ARRAY_SIZE(tc0_ram_ranges);
+ return tc0_ram_ranges;
+}