1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #include "n1sdp_mcp_mhu.h"
9 #include "n1sdp_mcp_mmap.h"
10 
11 #include <mod_mhu.h>
12 
13 #include <fwk_element.h>
14 #include <fwk_id.h>
15 #include <fwk_module.h>
16 
17 #include <fmw_cmsis.h>
18 
19 static const struct fwk_element mhu_element_table[] = {
20     [N1SDP_MHU_DEVICE_IDX_S_SCP] = {
21         .name = "SCP_MCP_MHU_S",
22         .sub_element_count = 1,
23         .data = &((struct mod_mhu_device_config) {
24             .irq = MHU_SCP_SEC_IRQ,
25             .in = MHU_SCP_TO_MCP_S,
26             .out = MHU_MCP_TO_SCP_S,
27         })
28     },
29     [N1SDP_MHU_DEVICE_IDX_COUNT] = { 0 },
30 };
31 
mhu_get_element_table(fwk_id_t module_id)32 static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id)
33 {
34     return mhu_element_table;
35 }
36 
37 struct fwk_module_config config_n1sdp_mhu = {
38     .elements = FWK_MODULE_DYNAMIC_ELEMENTS(mhu_get_element_table),
39 };
40