blob: ecf6d93d6f6c142da352785a9cd2f8a2c1f57cac [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001/*
Aditya Angadie6508952019-07-21 22:13:45 +05302 * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Nariman Poushin0ece80f2018-02-26 06:52:04 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Chandni Cherukuric8ef0452018-10-04 16:32:03 +05307#ifndef SGI_VARIANT_H
8#define SGI_VARIANT_H
Nariman Poushin0ece80f2018-02-26 06:52:04 +00009
10/* SSC_VERSION values for SGI575 */
Aditya Angadie6508952019-07-21 22:13:45 +053011#define SGI575_SSC_VER_PART_NUM 0x0783
Nariman Poushin0ece80f2018-02-26 06:52:04 +000012
Chandni Cherukuri346a7cc2019-02-27 13:59:11 +053013/* SID Version values for RD-N1E1-Edge */
14#define RD_N1E1_EDGE_SID_VER_PART_NUM 0x0786
15#define RD_E1_EDGE_CONFIG_ID 0x2
Chandni Cherukuric8ef0452018-10-04 16:32:03 +053016
Aditya Angadied339d82020-12-15 17:10:50 +053017/* SID Version values for RD-V1 */
18#define RD_V1_SID_VER_PART_NUM 0x078a
Aditya Angadie6508952019-07-21 22:13:45 +053019
Aditya Angadi503da712020-11-19 17:18:21 +053020/* SID Version values for RD-N2 */
21#define RD_N2_SID_VER_PART_NUM 0x07B7
22
Chandni Cherukuric8ef0452018-10-04 16:32:03 +053023/* Structure containing SGI platform variant information */
24typedef struct sgi_platform_info {
25 unsigned int platform_id; /* Part Number of the platform */
26 unsigned int config_id; /* Config Id of the platform */
Vijayenthiran Subramaniam8af18432019-10-22 15:46:14 +053027 unsigned int chip_id; /* Chip Id or Node number */
28 unsigned int multi_chip_mode; /* Multi-chip mode availability */
Chandni Cherukuric8ef0452018-10-04 16:32:03 +053029} sgi_platform_info_t;
30
31extern sgi_platform_info_t sgi_plat_info;
32
Chandni Cherukuri3aa09f72018-11-28 11:31:51 +053033/* returns the part number of the platform*/
34unsigned int plat_arm_sgi_get_platform_id(void);
35
36/* returns the configuration id of the platform */
37unsigned int plat_arm_sgi_get_config_id(void);
38
Vijayenthiran Subramaniam8af18432019-10-22 15:46:14 +053039/* returns true if operating in multi-chip configuration */
40unsigned int plat_arm_sgi_get_multi_chip_mode(void);
41
Chandni Cherukuric8ef0452018-10-04 16:32:03 +053042#endif /* SGI_VARIANT_H */