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 
10 #include <mod_sid.h>
11 
12 #include <fwk_element.h>
13 #include <fwk_id.h>
14 #include <fwk_module.h>
15 
16 static const struct fwk_element subsystem_table[] = {
17     { .name = "RD-V1",
18       .data =
19           &(struct mod_sid_subsystem_config){
20               .part_number = 0x78a,
21           } },
22     { 0 },
23 };
24 
get_subsystem_table(fwk_id_t id)25 static const struct fwk_element *get_subsystem_table(fwk_id_t id)
26 {
27     return subsystem_table;
28 }
29 
30 const struct fwk_module_config config_sid = {
31     .data = &(struct mod_sid_config) {
32         .sid_base = SCP_SID_BASE,
33         .pcid_expected = {
34             .PID0 = 0xD2,
35             .PID1 = 0xB0,
36             .PID2 = 0x0B,
37             .PID3 = 0x00,
38             .PID4 = 0x04,
39             .CID0 = 0x0D,
40             .CID1 = 0xF0,
41             .CID2 = 0x05,
42             .CID3 = 0xB1,
43         },
44     },
45 
46     .elements = FWK_MODULE_DYNAMIC_ELEMENTS(get_subsystem_table),
47 };
48