Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 1 | /* |
Tony K Nadackal | a81a3d9 | 2021-11-24 16:09:26 +0000 | [diff] [blame^] | 2 | * Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved. |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Chandni Cherukuri | c8ef045 | 2018-10-04 16:32:03 +0530 | [diff] [blame] | 7 | #ifndef SGI_VARIANT_H |
| 8 | #define SGI_VARIANT_H |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 9 | |
| 10 | /* SSC_VERSION values for SGI575 */ |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 11 | #define SGI575_SSC_VER_PART_NUM 0x0783 |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 12 | |
Chandni Cherukuri | 346a7cc | 2019-02-27 13:59:11 +0530 | [diff] [blame] | 13 | /* 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 Cherukuri | c8ef045 | 2018-10-04 16:32:03 +0530 | [diff] [blame] | 16 | |
Aditya Angadi | ed339d8 | 2020-12-15 17:10:50 +0530 | [diff] [blame] | 17 | /* SID Version values for RD-V1 */ |
| 18 | #define RD_V1_SID_VER_PART_NUM 0x078a |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 19 | |
Aditya Angadi | 503da71 | 2020-11-19 17:18:21 +0530 | [diff] [blame] | 20 | /* SID Version values for RD-N2 */ |
| 21 | #define RD_N2_SID_VER_PART_NUM 0x07B7 |
| 22 | |
Aditya Angadi | f894b9a | 2021-03-20 12:15:04 +0530 | [diff] [blame] | 23 | /* SID Version values for RD-N2 variants */ |
| 24 | #define RD_N2_CFG1_SID_VER_PART_NUM 0x07B6 |
Tony K Nadackal | a81a3d9 | 2021-11-24 16:09:26 +0000 | [diff] [blame^] | 25 | #define RD_N2_CFG3_SID_VER_PART_NUM 0x07F1 |
Aditya Angadi | f894b9a | 2021-03-20 12:15:04 +0530 | [diff] [blame] | 26 | |
Joel Goddard | 38f35c8 | 2022-09-21 21:51:12 +0530 | [diff] [blame] | 27 | /* SID Version values for RD-V2 */ |
| 28 | #define RD_V2_SID_VER_PART_NUM 0x07F2 |
| 29 | #define RD_V2_CONFIG_ID 0x1 |
Tony K Nadackal | e23ca81 | 2021-08-19 14:44:11 +0100 | [diff] [blame] | 30 | |
Chandni Cherukuri | c8ef045 | 2018-10-04 16:32:03 +0530 | [diff] [blame] | 31 | /* Structure containing SGI platform variant information */ |
| 32 | typedef struct sgi_platform_info { |
| 33 | unsigned int platform_id; /* Part Number of the platform */ |
| 34 | unsigned int config_id; /* Config Id of the platform */ |
Vijayenthiran Subramaniam | 8af1843 | 2019-10-22 15:46:14 +0530 | [diff] [blame] | 35 | unsigned int chip_id; /* Chip Id or Node number */ |
| 36 | unsigned int multi_chip_mode; /* Multi-chip mode availability */ |
Chandni Cherukuri | c8ef045 | 2018-10-04 16:32:03 +0530 | [diff] [blame] | 37 | } sgi_platform_info_t; |
| 38 | |
| 39 | extern sgi_platform_info_t sgi_plat_info; |
| 40 | |
Chandni Cherukuri | 3aa09f7 | 2018-11-28 11:31:51 +0530 | [diff] [blame] | 41 | /* returns the part number of the platform*/ |
| 42 | unsigned int plat_arm_sgi_get_platform_id(void); |
| 43 | |
| 44 | /* returns the configuration id of the platform */ |
| 45 | unsigned int plat_arm_sgi_get_config_id(void); |
| 46 | |
Vijayenthiran Subramaniam | 8af1843 | 2019-10-22 15:46:14 +0530 | [diff] [blame] | 47 | /* returns true if operating in multi-chip configuration */ |
| 48 | unsigned int plat_arm_sgi_get_multi_chip_mode(void); |
| 49 | |
Chandni Cherukuri | c8ef045 | 2018-10-04 16:32:03 +0530 | [diff] [blame] | 50 | #endif /* SGI_VARIANT_H */ |