1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #include <mod_tc0_power_model.h>
9 
10 #include <fwk_module.h>
11 
12 static const struct fwk_element pm_elem_table[] = {
13     [0] = {
14         .name = "Power Model 0",
15         .data = &(struct mod_tc0_power_model_dev_config){
16             .coeff = 1,
17         },
18     },
19     [1] = {
20         .name = "Power Model 1",
21         .data = &(struct mod_tc0_power_model_dev_config){
22             .coeff = 1,
23         },
24     },
25     [2] = {
26         .name = "Power Model 2",
27         .data = &(struct mod_tc0_power_model_dev_config){
28             .coeff = 1,
29         },
30     },
31     [3] = { 0 } /* Termination description */
32 };
33 
get_element_table(fwk_id_t module_id)34 static const struct fwk_element *get_element_table(fwk_id_t module_id)
35 {
36     return pm_elem_table;
37 };
38 
39 const struct fwk_module_config config_tc0_power_model = {
40     .data = NULL,
41     .elements = FWK_MODULE_DYNAMIC_ELEMENTS(get_element_table),
42 };
43