1 /*
2 * Arm SCP/MCP Software
3 * Copyright (c) 2019-2021, Arm Limited and Contributors. All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7 #include "n1sdp_scp_mmap.h"
8
9 #include <mod_n1sdp_ddr_phy.h>
10
11 #include <fwk_element.h>
12 #include <fwk_id.h>
13 #include <fwk_module.h>
14
15 /* Table of N1SDP DDR PHY element descriptions. */
16 static struct fwk_element n1sdp_ddr_phy_element_table[] = {
17 [0] = { .name = "DDR_PHY-0",
18 .data = &((struct mod_n1sdp_ddr_phy_element_config) {
19 .ddr = SCP_DDR_PHY0,
20 }),
21 },
22 [1] = { .name = "DDR_PHY-1",
23 .data = &((struct mod_n1sdp_ddr_phy_element_config) {
24 .ddr = SCP_DDR_PHY1,
25 }),
26 },
27 [2] = { 0 }, /* Termination description. */
28 };
29
n1sdp_ddr_phy_get_element_table(fwk_id_t module_id)30 static const struct fwk_element *n1sdp_ddr_phy_get_element_table
31 (fwk_id_t module_id)
32 {
33 return n1sdp_ddr_phy_element_table;
34 }
35
36 /* Configuration of the N1SDP DDR PHY module. */
37 const struct fwk_module_config config_n1sdp_ddr_phy = {
38 .elements = FWK_MODULE_DYNAMIC_ELEMENTS(n1sdp_ddr_phy_get_element_table),
39 };
40