versal2-scmi.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
  2. /*
  3. * Macros IDs for AMD Versal Gen 2
  4. *
  5. * Copyright (c) 2023-2024, Advanced Micro Devices, Inc. All rights reserved.
  6. *
  7. * Michal Simek <michal.simek@amd.com>
  8. */
  9. #ifndef _VERSAL2_SCMI_H
  10. #define _VERSAL2_SCMI_H
  11. #define CLK_GEM0_0 0
  12. #define CLK_GEM0_1 1
  13. #define CLK_GEM0_2 2
  14. #define CLK_GEM0_3 3
  15. #define CLK_GEM0_4 4
  16. #define CLK_GEM1_0 5
  17. #define CLK_GEM1_1 6
  18. #define CLK_GEM1_2 7
  19. #define CLK_GEM1_3 8
  20. #define CLK_GEM1_4 9
  21. #define CLK_SERIAL0_0 10
  22. #define CLK_SERIAL0_1 11
  23. #define CLK_SERIAL1_0 12
  24. #define CLK_SERIAL1_1 13
  25. #define CLK_UFS0_0 14
  26. #define CLK_UFS0_1 15
  27. #define CLK_UFS0_2 16
  28. #define CLK_USB0_0 17
  29. #define CLK_USB0_1 18
  30. #define CLK_USB0_2 19
  31. #define CLK_USB1_0 20
  32. #define CLK_USB1_1 21
  33. #define CLK_USB1_2 22
  34. #define CLK_MMC0_0 23
  35. #define CLK_MMC0_1 24
  36. #define CLK_MMC0_2 25
  37. #define CLK_MMC1_0 26
  38. #define CLK_MMC1_1 27
  39. #define CLK_MMC1_2 28
  40. #define CLK_TTC0_0 29
  41. #define CLK_TTC1_0 30
  42. #define CLK_TTC2_0 31
  43. #define CLK_TTC3_0 32
  44. #define CLK_TTC4_0 33
  45. #define CLK_TTC5_0 34
  46. #define CLK_TTC6_0 35
  47. #define CLK_TTC7_0 36
  48. #define CLK_I2C0_0 37
  49. #define CLK_I2C1_0 38
  50. #define CLK_I2C2_0 39
  51. #define CLK_I2C3_0 40
  52. #define CLK_I2C4_0 41
  53. #define CLK_I2C5_0 42
  54. #define CLK_I2C6_0 43
  55. #define CLK_I2C7_0 44
  56. #define CLK_OSPI0_0 45
  57. #define CLK_QSPI0_0 46
  58. #define CLK_QSPI0_1 47
  59. #define CLK_WWDT0_0 48
  60. #define CLK_WWDT1_0 49
  61. #define CLK_WWDT2_0 50
  62. #define CLK_WWDT3_0 51
  63. #define CLK_ADMA0_0 52
  64. #define CLK_ADMA0_1 53
  65. #define CLK_ADMA1_0 54
  66. #define CLK_ADMA1_1 55
  67. #define CLK_ADMA2_0 56
  68. #define CLK_ADMA2_1 57
  69. #define CLK_ADMA3_0 58
  70. #define CLK_ADMA3_1 59
  71. #define CLK_ADMA4_0 60
  72. #define CLK_ADMA4_1 61
  73. #define CLK_ADMA5_0 62
  74. #define CLK_ADMA5_1 63
  75. #define CLK_ADMA6_0 64
  76. #define CLK_ADMA6_1 65
  77. #define CLK_ADMA7_0 66
  78. #define CLK_ADMA7_1 67
  79. #define CLK_CAN0_0 68
  80. #define CLK_CAN0_1 69
  81. #define CLK_CAN1_0 70
  82. #define CLK_CAN1_1 71
  83. #define CLK_CAN2_0 72
  84. #define CLK_CAN2_1 73
  85. #define CLK_CAN3_0 74
  86. #define CLK_CAN3_1 75
  87. #define CLK_PS_GPIO_0 76
  88. #define CLK_PMC_GPIO_0 77
  89. #define CLK_SPI0_0 78
  90. #define CLK_SPI0_1 79
  91. #define CLK_SPI1_0 80
  92. #define CLK_SPI1_1 81
  93. #define CLK_I3C0_0 82
  94. #define CLK_I3C1_0 83
  95. #define CLK_I3C2_0 84
  96. #define CLK_I3C3_0 85
  97. #define CLK_I3C4_0 86
  98. #define CLK_I3C5_0 87
  99. #define CLK_I3C6_0 88
  100. #define CLK_I3C7_0 89
  101. #define RESET_GEM0_0 0
  102. #define RESET_GEM1_0 1
  103. #define RESET_SERIAL0_0 2
  104. #define RESET_SERIAL1_0 3
  105. #define RESET_UFS0_0 4
  106. #define RESET_I2C0_0 5
  107. #define RESET_I2C1_0 6
  108. #define RESET_I2C2_0 7
  109. #define RESET_I2C3_0 8
  110. #define RESET_I2C4_0 9
  111. #define RESET_I2C5_0 10
  112. #define RESET_I2C6_0 11
  113. #define RESET_I2C7_0 12
  114. #define RESET_I2C8_0 13
  115. #define RESET_OSPI0_0 14
  116. #define RESET_USB0_0 15
  117. #define RESET_USB0_1 16
  118. #define RESET_USB0_2 17
  119. #define RESET_USB1_0 18
  120. #define RESET_USB1_1 19
  121. #define RESET_USB1_2 20
  122. #define RESET_MMC0_0 21
  123. #define RESET_MMC1_0 22
  124. #define RESET_SPI0_0 23
  125. #define RESET_SPI1_0 24
  126. #define RESET_QSPI0_0 25
  127. #define RESET_I3C0_0 26
  128. #define RESET_I3C1_0 27
  129. #define RESET_I3C2_0 28
  130. #define RESET_I3C3_0 29
  131. #define RESET_I3C4_0 30
  132. #define RESET_I3C5_0 31
  133. #define RESET_I3C6_0 32
  134. #define RESET_I3C7_0 33
  135. #define RESET_I3C8_0 34
  136. #define RESET_UFSPHY_0 35
  137. #define PD_USB0 0
  138. #define PD_USB1 1
  139. #endif /* _VERSAL2_SCMI_H */