aboutsummaryrefslogtreecommitdiff
path: root/product/rdn1e1/src/config_sid.c
blob: 2e57223da2051a6a34d70ee6586c4fd8151ad742 (plain)
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
48
49
50
/*
 * 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_module.h>
#include <mod_sid.h>
#include <scp_rdn1e1_mmap.h>

static const struct fwk_element subsystem_table[] = {
    {
        .name = "RDN1E1",
        .data = &(struct mod_sid_subsystem_config) {
            .part_number = 0x786,
        }
    },
    {
        .name = "Christensen",
        .data = &(struct mod_sid_subsystem_config) {
            .part_number = 0x785,
        }
    },
    { 0 },
};

static const struct fwk_element *get_subsystem_table(fwk_id_t id)
{
    return subsystem_table;
}

const struct fwk_module_config config_sid = {
    .get_element_table = get_subsystem_table,
    .data = &(struct mod_sid_config) {
        .sid_base = SCP_SID_BASE,
        .pcid_expected = {
            .PID0 = 0xD2,
            .PID1 = 0xB0,
            .PID2 = 0x0B,
            .PID3 = 0x00,
            .PID4 = 0x04,
            .CID0 = 0x0D,
            .CID1 = 0xF0,
            .CID2 = 0x05,
            .CID3 = 0xB1,
        },
    },
};