diff options
Diffstat (limited to 'product/rdn2/src/config_sid.c')
-rw-r--r-- | product/rdn2/src/config_sid.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/product/rdn2/src/config_sid.c b/product/rdn2/src/config_sid.c new file mode 100644 index 00000000..7465d806 --- /dev/null +++ b/product/rdn2/src/config_sid.c @@ -0,0 +1,48 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "scp_css_mmap.h" + +#include <mod_sid.h> + +#include <fwk_element.h> +#include <fwk_id.h> +#include <fwk_module.h> + +static const struct fwk_element subsystem_table[] = { + { + .name = "RD-N2", + .data = &(struct mod_sid_subsystem_config) { + .part_number = 0x7B7, + } + }, + { 0 }, +}; + +static const struct fwk_element *get_subsystem_table(fwk_id_t id) +{ + return subsystem_table; +} + +const struct fwk_module_config config_sid = { + .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, + }, + }, + + .elements = FWK_MODULE_DYNAMIC_ELEMENTS(get_subsystem_table), +}; |