1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* Arm SCP/MCP Software
* Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <fwk_element.h>
#include <fwk_id.h>
#include <fwk_module.h>
#include <mod_mhu2.h>
#include <scp_rdn1e1_irq.h>
#include <scp_rdn1e1_mmap.h>
#include <scp_rdn1e1_mhu.h>
static const struct fwk_element mhu_element_table[] = {
[SCP_RDN1E1_MHU_DEVICE_IDX_SCP_AP_S_CLUS0] = {
.name = "MHU_SCP_AP_S",
.sub_element_count = 1,
.data = &((struct mod_mhu2_channel_config) {
.irq = MHU_AP_SEC_IRQ,
.recv = SCP_MHU_SCP_AP_RCV_S_CLUS0,
.send = SCP_MHU_SCP_AP_SND_S_CLUS0,
.channel = 0,
})
},
[SCP_RDN1E1_MHU_DEVICE_IDX_SCP_AP_NS_CLUS0] = {
.name = "MHU_SCP_AP_NS",
.sub_element_count = 1,
.data = &((struct mod_mhu2_channel_config) {
.irq = MHU_AP_NONSEC_IRQ,
.recv = SCP_MHU_SCP_AP_RCV_NS_CLUS0,
.send = SCP_MHU_SCP_AP_SND_NS_CLUS0,
.channel = 0,
})
},
[SCP_RDN1E1_MHU_DEVICE_IDX_COUNT] = { 0 },
};
static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id)
{
return mhu_element_table;
}
const struct fwk_module_config config_mhu2 = {
.get_element_table = mhu_get_element_table,
};
|