aboutsummaryrefslogtreecommitdiff
path: root/product/morello
diff options
context:
space:
mode:
authorAnurag Koul <anurag.koul@arm.com>2020-08-10 18:43:06 +0100
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-09-15 17:03:53 +0100
commit13922efb70e195c2b6d92c1f64b1f31ced3bfcc9 (patch)
tree317f6b6c58c35d9eb4a853f49ee031a8d99a39df /product/morello
parentba384f8ac77a50772802805b8dd7405ed3950a34 (diff)
morello/scp_ramfw_fvp: add ssc & system_info configs
Change-Id: Icaca4d2643f1ae838cb20b99a8032a732a48fcb9 Signed-off-by: Anurag Koul <anurag.koul@arm.com>
Diffstat (limited to 'product/morello')
-rw-r--r--product/morello/scp_ramfw_fvp/config_ssc.c23
-rw-r--r--product/morello/scp_ramfw_fvp/config_system_info.c24
2 files changed, 47 insertions, 0 deletions
diff --git a/product/morello/scp_ramfw_fvp/config_ssc.c b/product/morello/scp_ramfw_fvp/config_ssc.c
new file mode 100644
index 00000000..52d0dbea
--- /dev/null
+++ b/product/morello/scp_ramfw_fvp/config_ssc.c
@@ -0,0 +1,23 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "morello_scp_mmap.h"
+
+#include <mod_ssc.h>
+
+#include <fwk_module.h>
+
+#include <stddef.h>
+
+const struct fwk_module_config config_ssc = {
+ .data =
+ &(struct mod_ssc_config){
+ .ssc_base = SCP_SSC_BASE,
+ .ssc_debug_cfg_set = 0xFF,
+ .product_name = "Morello FVP",
+ },
+};
diff --git a/product/morello/scp_ramfw_fvp/config_system_info.c b/product/morello/scp_ramfw_fvp/config_system_info.c
new file mode 100644
index 00000000..08c70f1e
--- /dev/null
+++ b/product/morello/scp_ramfw_fvp/config_system_info.c
@@ -0,0 +1,24 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <mod_ssc.h>
+#include <mod_system_info.h>
+
+#include <fwk_id.h>
+#include <fwk_module.h>
+#include <fwk_module_idx.h>
+
+#include <stddef.h>
+
+const struct fwk_module_config config_system_info = {
+ .data = &((struct mod_system_info_config){
+ .system_info_driver_module_id = FWK_ID_MODULE_INIT(FWK_MODULE_IDX_SSC),
+ .system_info_driver_data_api_id = FWK_ID_API_INIT(
+ FWK_MODULE_IDX_SSC,
+ MOD_SSC_SYSTEM_INFO_DRIVER_DATA_API_IDX),
+ }),
+};