1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #include "config_ppu_v0.h"
9 #include "scp_rdn1e1_mmap.h"
10 
11 #include <mod_power_domain.h>
12 #include <mod_ppu_v0.h>
13 
14 #include <fwk_element.h>
15 #include <fwk_id.h>
16 #include <fwk_module.h>
17 
18 static struct fwk_element ppu_v0_element_table[] = {
19     [PPU_V0_ELEMENT_IDX_DBGTOP] = {
20         .name = "DBGTOP",
21         .data = &((struct mod_ppu_v0_pd_config) {
22             .pd_type = MOD_PD_TYPE_DEVICE_DEBUG,
23             .ppu.reg_base = SCP_PPU_DEBUG_BASE,
24         }),
25     },
26     [PPU_V0_ELEMENT_IDX_COUNT] = { 0 }, /* Termination entry */
27 };
28 
29 
ppu_v0_get_element_table(fwk_id_t module_id)30 static const struct fwk_element *ppu_v0_get_element_table(fwk_id_t module_id)
31 {
32     return ppu_v0_element_table;
33 }
34 
35 /*
36  * Power module configuration data
37  */
38 const struct fwk_module_config config_ppu_v0 = {
39     .elements = FWK_MODULE_DYNAMIC_ELEMENTS(ppu_v0_get_element_table),
40 };
41