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 "scp_css_mmap.h"
9 #include "scp_platform_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     [SCP_PLATFORM_MHU_DEVICE_IDX_SCP_AP_S_CLUS0] = { .name = "MHU_SCP_AP_S",
21                                                      .sub_element_count = 1,
22                                                      .data = &((
23                                                          struct
24                                                          mod_mhu2_channel_config){
25                                                          .irq = MHU_AP_SEC_IRQ,
26                                                          .recv =
27                                                              SCP_MHU_SCP_AP_RCV_S_CLUS0,
28                                                          .send =
29                                                              SCP_MHU_SCP_AP_SND_S_CLUS0,
30                                                          .channel = 0,
31                                                      }) },
32     [SCP_PLATFORM_MHU_DEVICE_IDX_COUNT] = { 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