1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #include "morello_mcp_mhu.h"
9 #include "morello_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     [MORELLO_MHU_DEVICE_IDX_S_SCP] = { .name = "SCP_MCP_MHU_S",
21                                        .sub_element_count = 1,
22                                        .data = &((struct mod_mhu_device_config){
23                                            .irq = MHU_SCP_SEC_IRQ,
24                                            .in = MHU_SCP_TO_MCP_S,
25                                            .out = MHU_MCP_TO_SCP_S,
26                                        }) },
27     [MORELLO_MHU_DEVICE_IDX_COUNT] = { 0 },
28 };
29 
mhu_get_element_table(fwk_id_t module_id)30 static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id)
31 {
32     return mhu_element_table;
33 }
34 
35 struct fwk_module_config config_morello_mhu = {
36     .elements = FWK_MODULE_DYNAMIC_ELEMENTS(mhu_get_element_table),
37 };
38