blob: 223ac3ecc3070bc93c3b6537f470f0df670c8104 [file] [log] [blame]
Nariman Poushinb44cfc62018-02-26 06:52:04 +00001/*
Joel Goddard91890b72022-09-21 21:51:12 +05302 * Copyright (c) 2018-2022, ARM Limited and Contributors. All rights reserved.
Nariman Poushinb44cfc62018-02-26 06:52:04 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Chandni Cherukuri7c294f92018-10-04 16:32:03 +05307#ifndef SGI_VARIANT_H
8#define SGI_VARIANT_H
Nariman Poushinb44cfc62018-02-26 06:52:04 +00009
10/* SSC_VERSION values for SGI575 */
Aditya Angadi2103a732019-07-21 22:13:45 +053011#define SGI575_SSC_VER_PART_NUM 0x0783
Nariman Poushinb44cfc62018-02-26 06:52:04 +000012
Chandni Cherukuri27a257d2019-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 Cherukuri7c294f92018-10-04 16:32:03 +053016
Aditya Angadiedf771a2020-12-15 17:10:50 +053017/* SID Version values for RD-V1 */
18#define RD_V1_SID_VER_PART_NUM 0x078a
Aditya Angadi2103a732019-07-21 22:13:45 +053019
Aditya Angadi1b19ad62020-11-19 17:18:21 +053020/* SID Version values for RD-N2 */
21#define RD_N2_SID_VER_PART_NUM 0x07B7
22
Aditya Angadife5d5bb2021-03-20 12:15:04 +053023/* SID Version values for RD-N2 variants */
24#define RD_N2_CFG1_SID_VER_PART_NUM 0x07B6
25
Joel Goddard91890b72022-09-21 21:51:12 +053026/* SID Version values for RD-V2 */
27#define RD_V2_SID_VER_PART_NUM 0x07F2
28#define RD_V2_CONFIG_ID 0x1
Tony K Nadackalef515f02021-08-19 14:44:11 +010029
Chandni Cherukuri7c294f92018-10-04 16:32:03 +053030/* Structure containing SGI platform variant information */
31typedef struct sgi_platform_info {
32 unsigned int platform_id; /* Part Number of the platform */
33 unsigned int config_id; /* Config Id of the platform */
Vijayenthiran Subramaniam6daeec72019-10-22 15:46:14 +053034 unsigned int chip_id; /* Chip Id or Node number */
35 unsigned int multi_chip_mode; /* Multi-chip mode availability */
Chandni Cherukuri7c294f92018-10-04 16:32:03 +053036} sgi_platform_info_t;
37
38extern sgi_platform_info_t sgi_plat_info;
39
Chandni Cherukuri699223a2018-11-28 11:31:51 +053040/* returns the part number of the platform*/
41unsigned int plat_arm_sgi_get_platform_id(void);
42
43/* returns the configuration id of the platform */
44unsigned int plat_arm_sgi_get_config_id(void);
45
Vijayenthiran Subramaniam6daeec72019-10-22 15:46:14 +053046/* returns true if operating in multi-chip configuration */
47unsigned int plat_arm_sgi_get_multi_chip_mode(void);
48
Chandni Cherukuri7c294f92018-10-04 16:32:03 +053049#endif /* SGI_VARIANT_H */