aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed Gadallah <ahmed.gadallah@arm.com>2020-11-03 15:47:10 +0000
committertarek-arm <56722698+tarek-arm@users.noreply.github.com>2020-11-05 19:08:26 +0000
commit6d1d25524db432a5cc09778c678d4e23b4de7147 (patch)
treea928b9d1c13d34736c2b564bbeb0ddb3c374a981
parent769df4c6e3c6d553d2ba975d2891c206989b0792 (diff)
product/juno : disable Resource Permissions for juno
Disable Resource permission for juno in order to reclaim memory used by this module and enable new features to be developed. Change-Id: Ic95fabdb50e2224d6b3afa4aea8cefe2245871b8 Signed-off-by: Ahmed Gadallah <ahmed.gadallah@arm.com>
-rw-r--r--product/juno/scp_ramfw/config_scmi.c14
-rw-r--r--product/juno/scp_ramfw/firmware.mk2
2 files changed, 14 insertions, 2 deletions
diff --git a/product/juno/scp_ramfw/config_scmi.c b/product/juno/scp_ramfw/config_scmi.c
index 4dda33e2..ee759d43 100644
--- a/product/juno/scp_ramfw/config_scmi.c
+++ b/product/juno/scp_ramfw/config_scmi.c
@@ -107,6 +107,17 @@ static const struct fwk_element *get_element_table(fwk_id_t module_id)
return element_table;
}
+#ifndef BUILD_HAS_RESOURCE_PERMISSIONS
+
+/* PSCI agent has no access to clock, perf and sensor protocol
+ */
+static const uint32_t dis_protocol_list_psci[] = {
+ MOD_SCMI_PROTOCOL_ID_SENSOR,
+ MOD_SCMI_PROTOCOL_ID_CLOCK,
+ MOD_SCMI_PROTOCOL_ID_PERF,
+};
+#endif
+
static const struct mod_scmi_agent agent_table[] = {
[JUNO_SCMI_AGENT_IDX_OSPM] = {
.type = SCMI_AGENT_TYPE_OSPM,
@@ -123,7 +134,8 @@ struct fwk_module_config config_scmi = {
&(struct mod_scmi_config){
.protocol_count_max = 6,
#ifndef BUILD_HAS_RESOURCE_PERMISSIONS
-# error "Please configure the disabled protocols for PSCI agents"
+ .dis_protocol_count_psci = FWK_ARRAY_SIZE(dis_protocol_list_psci),
+ .dis_protocol_list_psci = dis_protocol_list_psci,
#endif
.agent_count = FWK_ARRAY_SIZE(agent_table) - 1,
.agent_table = agent_table,
diff --git a/product/juno/scp_ramfw/firmware.mk b/product/juno/scp_ramfw/firmware.mk
index f61ed717..45ef556d 100644
--- a/product/juno/scp_ramfw/firmware.mk
+++ b/product/juno/scp_ramfw/firmware.mk
@@ -13,7 +13,7 @@ BS_FIRMWARE_HAS_MULTITHREADING := no
BS_FIRMWARE_HAS_NOTIFICATION := yes
BS_FIRMWARE_HAS_SCMI_NOTIFICATIONS := no
BS_FIRMWARE_HAS_FAST_CHANNELS := no
-BS_FIRMWARE_HAS_RESOURCE_PERMISSIONS := yes
+BS_FIRMWARE_HAS_RESOURCE_PERMISSIONS := no
BS_FIRMWARE_HAS_DEBUG_UNIT := yes
BS_FIRMWARE_HAS_SCMI_RESET := no
BS_FIRMWARE_HAS_STATISTICS := no