sgi_variant.h 1.32 KB
Newer Older
1
/*
2
 * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
#ifndef SGI_VARIANT_H
#define SGI_VARIANT_H
9
10

/* SSC_VERSION values for SGI575 */
11
#define SGI575_SSC_VER_PART_NUM			0x0783
12

13
14
15
/* SID Version values for RD-N1E1-Edge */
#define RD_N1E1_EDGE_SID_VER_PART_NUM		0x0786
#define RD_E1_EDGE_CONFIG_ID			0x2
16

17
18
/* SID Version values for RD-V1 */
#define RD_V1_SID_VER_PART_NUM			0x078a
19

20
21
22
/* SID Version values for RD-N2 */
#define RD_N2_SID_VER_PART_NUM			0x07B7

23
24
25
/* SID Version values for RD-N2 variants */
#define RD_N2_CFG1_SID_VER_PART_NUM		0x07B6

26
27
28
29
/* Structure containing SGI platform variant information */
typedef struct sgi_platform_info {
	unsigned int platform_id;	/* Part Number of the platform */
	unsigned int config_id;		/* Config Id of the platform */
30
31
	unsigned int chip_id;		/* Chip Id or Node number */
	unsigned int multi_chip_mode;	/* Multi-chip mode availability */
32
33
34
35
} sgi_platform_info_t;

extern sgi_platform_info_t sgi_plat_info;

36
37
38
39
40
41
/* returns the part number of the platform*/
unsigned int plat_arm_sgi_get_platform_id(void);

/* returns the configuration id of the platform */
unsigned int plat_arm_sgi_get_config_id(void);

42
43
44
/* returns true if operating in multi-chip configuration */
unsigned int plat_arm_sgi_get_multi_chip_mode(void);

45
#endif /* SGI_VARIANT_H */