aboutsummaryrefslogtreecommitdiff
path: root/product/tc0/scp_ramfw/config_tc0_power_model.c
blob: 8d5d3cdd1b2c469a1e34ff8af82dc92eedea63a4 (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
37
38
39
40
41
42
/*
 * Arm SCP/MCP Software
 * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <mod_tc0_power_model.h>

#include <fwk_module.h>

static const struct fwk_element pm_elem_table[] = {
    [0] = {
        .name = "Power Model 0",
        .data = &(struct mod_tc0_power_model_dev_config){
            .coeff = 1,
        },
    },
    [1] = {
        .name = "Power Model 1",
        .data = &(struct mod_tc0_power_model_dev_config){
            .coeff = 1,
        },
    },
    [2] = {
        .name = "Power Model 2",
        .data = &(struct mod_tc0_power_model_dev_config){
            .coeff = 1,
        },
    },
    [3] = { 0 } /* Termination description */
};

static const struct fwk_element *get_element_table(fwk_id_t module_id)
{
    return pm_elem_table;
};

const struct fwk_module_config config_tc0_power_model = {
    .data = NULL,
    .elements = FWK_MODULE_DYNAMIC_ELEMENTS(get_element_table),
};