nrd_variant.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef NRD_VARIANT_H
  7. #define NRD_VARIANT_H
  8. /* SSC_VERSION values for SGI575 */
  9. #define SGI575_SSC_VER_PART_NUM 0x0783
  10. /* SID Version values for RD-N1E1-Edge */
  11. #define RD_N1E1_EDGE_SID_VER_PART_NUM 0x0786
  12. #define RD_E1_EDGE_CONFIG_ID 0x2
  13. /* SID Version values for RD-V1 */
  14. #define RD_V1_SID_VER_PART_NUM 0x078a
  15. /* SID Version values for RD-N2 */
  16. #define RD_N2_SID_VER_PART_NUM 0x07B7
  17. /* SID Version values for RD-N2 variants */
  18. #define RD_N2_CFG1_SID_VER_PART_NUM 0x07B6
  19. #define RD_N2_CFG3_SID_VER_PART_NUM 0x07F1
  20. /* SID Version values for RD-V2 */
  21. #define RD_V2_SID_VER_PART_NUM 0x07F2
  22. #define RD_V2_CONFIG_ID 0x1
  23. /* SID Version values for RD-V3 */
  24. #define RD_V3_SID_VER_PART_NUM 0x07EE
  25. #define RD_V3_CONFIG_ID 0x0
  26. /* SID Version values for RD-V3 variants */
  27. #define RD_V3_CFG1_SID_VER_PART_NUM 0x07F9
  28. #define RD_V3_CFG2_SID_VER_PART_NUM 0x07EE
  29. /* Structure containing Neoverse RD platform variant information */
  30. typedef struct nrd_platform_info {
  31. unsigned int platform_id; /* Part Number of the platform */
  32. unsigned int config_id; /* Config Id of the platform */
  33. unsigned int chip_id; /* Chip Id or Node number */
  34. unsigned int multi_chip_mode; /* Multi-chip mode availability */
  35. } nrd_platform_info_t;
  36. extern nrd_platform_info_t nrd_plat_info;
  37. /* returns the part number of the platform*/
  38. unsigned int plat_arm_nrd_get_platform_id(void);
  39. /* returns the configuration id of the platform */
  40. unsigned int plat_arm_nrd_get_config_id(void);
  41. /* returns true if operating in multi-chip configuration */
  42. unsigned int plat_arm_nrd_get_multi_chip_mode(void);
  43. #endif /* NRD_VARIANT_H */