Commit 4d81f267 authored by Ahmed Gadallah's avatar Ahmed Gadallah Committed by nicola-mazzucato-arm
Browse files

product/tc0: Add disabled PSCI protocols w/o resource permissions



Currently for this platform resource permission is enabled and its
resources are managed by the resource permissions module.
At the same time there is no static configuration for PSCI agent should
the resource permission be turned off.
This patch adds a list of protocols that are disabled by default for
PSCI agent when there is no resource permission enabled.

Change-Id: I111bb85f7c312b6b3cb3d5fd6b90ab742968979a
Signed-off-by: default avatarAhmed Gadallah <ahmed.gadallah@arm.com>
parent 7afb0f8c
......@@ -72,6 +72,16 @@ static const struct fwk_element *get_service_table(fwk_id_t module_id)
return service_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 struct mod_scmi_agent agent_table[] = {
[SCP_SCMI_AGENT_ID_OSPM] = {
.type = SCMI_AGENT_TYPE_OSPM,
......@@ -88,7 +98,8 @@ const struct fwk_module_config config_scmi = {
.data = &((struct mod_scmi_config){
.protocol_count_max = 9,
#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),
.agent_table = agent_table,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment