aboutsummaryrefslogtreecommitdiff
path: root/product/sgi575
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.kachhap@arm.com>2018-07-20 16:47:36 +0530
committerronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com>2018-10-18 17:22:34 +0000
commitc41f6c4bd4ad650b6a05e8f475f3a8267db0beb6 (patch)
treecf52582002c00cc8b4c4b45eb6d2e6383f645130 /product/sgi575
parent33aa9cbc42c4f10476fc13f538a6fee0c8368c0d (diff)
sgi575/scp_ramfw: Add PPU V0 config
Change-Id: Iee23a1e0da71bc1f98992a7882539b166a8bee89 Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Diffstat (limited to 'product/sgi575')
-rw-r--r--product/sgi575/scp_ramfw/config_ppu_v0.c37
-rw-r--r--product/sgi575/scp_ramfw/config_ppu_v0.h16
2 files changed, 53 insertions, 0 deletions
diff --git a/product/sgi575/scp_ramfw/config_ppu_v0.c b/product/sgi575/scp_ramfw/config_ppu_v0.c
new file mode 100644
index 00000000..1acf54bb
--- /dev/null
+++ b/product/sgi575/scp_ramfw/config_ppu_v0.c
@@ -0,0 +1,37 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <fwk_element.h>
+#include <fwk_module.h>
+#include <mod_ppu_v0.h>
+#include <scp_sgi575_irq.h>
+#include <scp_sgi575_mmap.h>
+#include <config_ppu_v0.h>
+
+static struct fwk_element ppu_v0_element_table[] = {
+ [PPU_V0_ELEMENT_IDX_DBGTOP] = {
+ .name = "DBGTOP",
+ .data = &((struct mod_ppu_v0_pd_config) {
+ .pd_type = MOD_PD_TYPE_DEVICE_DEBUG,
+ .ppu.reg_base = SCP_PPU_DEBUG_BASE,
+ }),
+ },
+ [PPU_V0_ELEMENT_IDX_COUNT] = { 0 }, /* Termination entry */
+};
+
+
+static const struct fwk_element *ppu_v0_get_element_table(fwk_id_t module_id)
+{
+ return ppu_v0_element_table;
+}
+
+/*
+ * Power module configuration data
+ */
+const struct fwk_module_config config_ppu_v0 = {
+ .get_element_table = ppu_v0_get_element_table,
+};
diff --git a/product/sgi575/scp_ramfw/config_ppu_v0.h b/product/sgi575/scp_ramfw/config_ppu_v0.h
new file mode 100644
index 00000000..ec0c88df
--- /dev/null
+++ b/product/sgi575/scp_ramfw/config_ppu_v0.h
@@ -0,0 +1,16 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef CONFIG_PPU_V0_H
+#define CONFIG_PPU_V0_H
+
+enum ppu_v0_element_idx {
+ PPU_V0_ELEMENT_IDX_DBGTOP,
+ PPU_V0_ELEMENT_IDX_COUNT
+};
+
+#endif /* CONFIG_PPU_V0_H */