aboutsummaryrefslogtreecommitdiff
path: root/product/rdn1e1/scp_ramfw/config_scmi_perf.c
blob: 57b3baf25a07fe4aca6b01275d0395e815d4cff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Arm SCP/MCP Software
 * Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <stdint.h>
#include <fwk_element.h>
#include <fwk_module.h>
#include <scp_rdn1e1_scmi.h>
#include <mod_scmi_perf.h>

static const struct mod_scmi_perf_domain_config domains[] = {
    [0] = {
        .permissions = &(const uint32_t[]) {
            [SCP_SCMI_AGENT_ID_OSPM] = MOD_SCMI_PERF_PERMS_SET_LEVEL  |
                                       MOD_SCMI_PERF_PERMS_SET_LIMITS,
            [SCP_SCMI_AGENT_ID_PSCI] = MOD_SCMI_PERF_PERMS_NONE,
        }
    },
    [1] = {
        .permissions = &(const uint32_t[]) {
            [SCP_SCMI_AGENT_ID_OSPM] = MOD_SCMI_PERF_PERMS_SET_LEVEL  |
                                       MOD_SCMI_PERF_PERMS_SET_LIMITS,
            [SCP_SCMI_AGENT_ID_PSCI] = MOD_SCMI_PERF_PERMS_NONE,
        }
    },
};

const struct fwk_module_config config_scmi_perf = {
    .get_element_table = NULL,
    .data = &((struct mod_scmi_perf_config) {
        .domains = &domains,
    }),
};