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] = {
21 .name = "MHU_SCP_AP_S",
22 .sub_element_count = 1,
23 .data = &((
24 struct mod_mhu2_channel_config) {
25 .irq = MHU_AP_SEC_IRQ,
26 .recv = SCP_MHU_SCP_AP_RCV_S_CLUS0,
27 .send = SCP_MHU_SCP_AP_SND_S_CLUS0,
28 .channel = 0,
29 }),
30 },
31 [SCP_PLATFORM_MHU_DEVICE_IDX_COUNT] = { 0 },
32 };
33
mhu_get_element_table(fwk_id_t module_id)34 static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id)
35 {
36 return mhu_element_table;
37 }
38
39 const struct fwk_module_config config_mhu2 = {
40 .elements = FWK_MODULE_DYNAMIC_ELEMENTS(mhu_get_element_table),
41 };
42