/* * Arm SCP/MCP Software * Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include #include #include #include #include #include static const struct fwk_element mhu_element_table[] = { [N1SDP_MHU_DEVICE_IDX_S_CLUS0] = { .name = "MHU_S_CLUSTER_0", .sub_element_count = 1, .data = &((struct mod_mhu_device_config) { .irq = MHU_AP_SEC_IRQ, .in = MHU_AP_TO_SCP_S(0), .out = MHU_SCP_TO_AP_S(0), }) }, [N1SDP_MHU_DEVICE_IDX_NS_CLUS0] = { .name = "MHU_NS_CLUSTER_0", .sub_element_count = 1, .data = &((struct mod_mhu_device_config) { .irq = MHU_AP_NONSEC_IRQ, .in = MHU_AP_TO_SCP_NS(0), .out = MHU_SCP_TO_AP_NS(0), }) }, [N1SDP_MHU_DEVICE_IDX_S_MCP] = { .name = "MHU_S_MCP", .sub_element_count = 1, .data = &((struct mod_mhu_device_config) { .irq = MHU_MCP_SEC_IRQ, .in = MHU_MCP_TO_SCP_S, .out = MHU_SCP_TO_MCP_S, }) }, [N1SDP_MHU_DEVICE_IDX_COUNT] = { 0 }, }; static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id) { return mhu_element_table; } struct fwk_module_config config_mhu = { .get_element_table = mhu_get_element_table, };