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 "scp_mmap.h"
9 #include "scp_tc2_mhu.h"
10 
11 #include <mod_mhu2.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     [0] = {
21         .name = "MHU_SCP_RSS_S",
22         .sub_element_count = 1,
23         .data = &((
24             struct
25             mod_mhu2_channel_config){
26             .irq = 121,
27             .recv = SCP_MHU_SCP_RSS_RCV_S_CLUS0,
28             .send = SCP_MHU_SCP_RSS_SND_S_CLUS0,
29             .channel = 0,
30         }),
31     },
32     [1] = { 0 },
33 };
34 
mhu_get_element_table(fwk_id_t module_id)35 static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id)
36 {
37     return mhu_element_table;
38 }
39 
40 const struct fwk_module_config config_mhu2 = {
41     .elements = FWK_MODULE_DYNAMIC_ELEMENTS(mhu_get_element_table),
42 };
43