aboutsummaryrefslogtreecommitdiff
path: root/product/morello
diff options
context:
space:
mode:
authorAnurag Koul <anurag.koul@arm.com>2020-06-08 02:40:44 +0100
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-09-15 17:03:53 +0100
commit272d6dea623b2afbefb011a88f4609789bba2294 (patch)
tree7ebc417a1c501001c4769ca1f2504b4c6aee441e /product/morello
parent73112ee372d1c56937a7d2ecaa365b0867943574 (diff)
morello/scp_ramfw_fvp: add apcontext config data
Change-Id: I1b537aa1eca3779faa02a7d0e93527b86cb02c4a Signed-off-by: Anurag Koul <anurag.koul@arm.com>
Diffstat (limited to 'product/morello')
-rw-r--r--product/morello/scp_ramfw_fvp/config_apcontext.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/product/morello/scp_ramfw_fvp/config_apcontext.c b/product/morello/scp_ramfw_fvp/config_apcontext.c
new file mode 100644
index 00000000..e97582b5
--- /dev/null
+++ b/product/morello/scp_ramfw_fvp/config_apcontext.c
@@ -0,0 +1,29 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "config_clock.h"
+#include "morello_scp_software_mmap.h"
+
+#include <mod_apcontext.h>
+
+#include <fwk_id.h>
+#include <fwk_module.h>
+#include <fwk_module_idx.h>
+
+/*
+ * AP Context module configuration
+ */
+static const struct mod_apcontext_config apcontext_data = {
+ .base = SCP_AP_CONTEXT_BASE,
+ .size = SCP_AP_CONTEXT_SIZE,
+ .clock_id =
+ FWK_ID_ELEMENT_INIT(FWK_MODULE_IDX_CLOCK, CLOCK_IDX_INTERCONNECT),
+};
+
+struct fwk_module_config config_apcontext = {
+ .data = &apcontext_data,
+};