qcom-rpm.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. * This header provides constants for the Qualcomm RPM bindings.
  3. */
  4. #ifndef _DT_BINDINGS_MFD_QCOM_RPM_H
  5. #define _DT_BINDINGS_MFD_QCOM_RPM_H
  6. /*
  7. * Constants use to identify individual resources in the RPM.
  8. */
  9. #define QCOM_RPM_APPS_FABRIC_ARB 1
  10. #define QCOM_RPM_APPS_FABRIC_CLK 2
  11. #define QCOM_RPM_APPS_FABRIC_HALT 3
  12. #define QCOM_RPM_APPS_FABRIC_IOCTL 4
  13. #define QCOM_RPM_APPS_FABRIC_MODE 5
  14. #define QCOM_RPM_APPS_L2_CACHE_CTL 6
  15. #define QCOM_RPM_CFPB_CLK 7
  16. #define QCOM_RPM_CXO_BUFFERS 8
  17. #define QCOM_RPM_CXO_CLK 9
  18. #define QCOM_RPM_DAYTONA_FABRIC_CLK 10
  19. #define QCOM_RPM_DDR_DMM 11
  20. #define QCOM_RPM_EBI1_CLK 12
  21. #define QCOM_RPM_HDMI_SWITCH 13
  22. #define QCOM_RPM_MMFPB_CLK 14
  23. #define QCOM_RPM_MM_FABRIC_ARB 15
  24. #define QCOM_RPM_MM_FABRIC_CLK 16
  25. #define QCOM_RPM_MM_FABRIC_HALT 17
  26. #define QCOM_RPM_MM_FABRIC_IOCTL 18
  27. #define QCOM_RPM_MM_FABRIC_MODE 19
  28. #define QCOM_RPM_PLL_4 20
  29. #define QCOM_RPM_PM8058_LDO0 21
  30. #define QCOM_RPM_PM8058_LDO1 22
  31. #define QCOM_RPM_PM8058_LDO2 23
  32. #define QCOM_RPM_PM8058_LDO3 24
  33. #define QCOM_RPM_PM8058_LDO4 25
  34. #define QCOM_RPM_PM8058_LDO5 26
  35. #define QCOM_RPM_PM8058_LDO6 27
  36. #define QCOM_RPM_PM8058_LDO7 28
  37. #define QCOM_RPM_PM8058_LDO8 29
  38. #define QCOM_RPM_PM8058_LDO9 30
  39. #define QCOM_RPM_PM8058_LDO10 31
  40. #define QCOM_RPM_PM8058_LDO11 32
  41. #define QCOM_RPM_PM8058_LDO12 33
  42. #define QCOM_RPM_PM8058_LDO13 34
  43. #define QCOM_RPM_PM8058_LDO14 35
  44. #define QCOM_RPM_PM8058_LDO15 36
  45. #define QCOM_RPM_PM8058_LDO16 37
  46. #define QCOM_RPM_PM8058_LDO17 38
  47. #define QCOM_RPM_PM8058_LDO18 39
  48. #define QCOM_RPM_PM8058_LDO19 40
  49. #define QCOM_RPM_PM8058_LDO20 41
  50. #define QCOM_RPM_PM8058_LDO21 42
  51. #define QCOM_RPM_PM8058_LDO22 43
  52. #define QCOM_RPM_PM8058_LDO23 44
  53. #define QCOM_RPM_PM8058_LDO24 45
  54. #define QCOM_RPM_PM8058_LDO25 46
  55. #define QCOM_RPM_PM8058_LVS0 47
  56. #define QCOM_RPM_PM8058_LVS1 48
  57. #define QCOM_RPM_PM8058_NCP 49
  58. #define QCOM_RPM_PM8058_SMPS0 50
  59. #define QCOM_RPM_PM8058_SMPS1 51
  60. #define QCOM_RPM_PM8058_SMPS2 52
  61. #define QCOM_RPM_PM8058_SMPS3 53
  62. #define QCOM_RPM_PM8058_SMPS4 54
  63. #define QCOM_RPM_PM8821_LDO1 55
  64. #define QCOM_RPM_PM8821_SMPS1 56
  65. #define QCOM_RPM_PM8821_SMPS2 57
  66. #define QCOM_RPM_PM8901_LDO0 58
  67. #define QCOM_RPM_PM8901_LDO1 59
  68. #define QCOM_RPM_PM8901_LDO2 60
  69. #define QCOM_RPM_PM8901_LDO3 61
  70. #define QCOM_RPM_PM8901_LDO4 62
  71. #define QCOM_RPM_PM8901_LDO5 63
  72. #define QCOM_RPM_PM8901_LDO6 64
  73. #define QCOM_RPM_PM8901_LVS0 65
  74. #define QCOM_RPM_PM8901_LVS1 66
  75. #define QCOM_RPM_PM8901_LVS2 67
  76. #define QCOM_RPM_PM8901_LVS3 68
  77. #define QCOM_RPM_PM8901_MVS 69
  78. #define QCOM_RPM_PM8901_SMPS0 70
  79. #define QCOM_RPM_PM8901_SMPS1 71
  80. #define QCOM_RPM_PM8901_SMPS2 72
  81. #define QCOM_RPM_PM8901_SMPS3 73
  82. #define QCOM_RPM_PM8901_SMPS4 74
  83. #define QCOM_RPM_PM8921_CLK1 75
  84. #define QCOM_RPM_PM8921_CLK2 76
  85. #define QCOM_RPM_PM8921_LDO1 77
  86. #define QCOM_RPM_PM8921_LDO2 78
  87. #define QCOM_RPM_PM8921_LDO3 79
  88. #define QCOM_RPM_PM8921_LDO4 80
  89. #define QCOM_RPM_PM8921_LDO5 81
  90. #define QCOM_RPM_PM8921_LDO6 82
  91. #define QCOM_RPM_PM8921_LDO7 83
  92. #define QCOM_RPM_PM8921_LDO8 84
  93. #define QCOM_RPM_PM8921_LDO9 85
  94. #define QCOM_RPM_PM8921_LDO10 86
  95. #define QCOM_RPM_PM8921_LDO11 87
  96. #define QCOM_RPM_PM8921_LDO12 88
  97. #define QCOM_RPM_PM8921_LDO13 89
  98. #define QCOM_RPM_PM8921_LDO14 90
  99. #define QCOM_RPM_PM8921_LDO15 91
  100. #define QCOM_RPM_PM8921_LDO16 92
  101. #define QCOM_RPM_PM8921_LDO17 93
  102. #define QCOM_RPM_PM8921_LDO18 94
  103. #define QCOM_RPM_PM8921_LDO19 95
  104. #define QCOM_RPM_PM8921_LDO20 96
  105. #define QCOM_RPM_PM8921_LDO21 97
  106. #define QCOM_RPM_PM8921_LDO22 98
  107. #define QCOM_RPM_PM8921_LDO23 99
  108. #define QCOM_RPM_PM8921_LDO24 100
  109. #define QCOM_RPM_PM8921_LDO25 101
  110. #define QCOM_RPM_PM8921_LDO26 102
  111. #define QCOM_RPM_PM8921_LDO27 103
  112. #define QCOM_RPM_PM8921_LDO28 104
  113. #define QCOM_RPM_PM8921_LDO29 105
  114. #define QCOM_RPM_PM8921_LVS1 106
  115. #define QCOM_RPM_PM8921_LVS2 107
  116. #define QCOM_RPM_PM8921_LVS3 108
  117. #define QCOM_RPM_PM8921_LVS4 109
  118. #define QCOM_RPM_PM8921_LVS5 110
  119. #define QCOM_RPM_PM8921_LVS6 111
  120. #define QCOM_RPM_PM8921_LVS7 112
  121. #define QCOM_RPM_PM8921_MVS 113
  122. #define QCOM_RPM_PM8921_NCP 114
  123. #define QCOM_RPM_PM8921_SMPS1 115
  124. #define QCOM_RPM_PM8921_SMPS2 116
  125. #define QCOM_RPM_PM8921_SMPS3 117
  126. #define QCOM_RPM_PM8921_SMPS4 118
  127. #define QCOM_RPM_PM8921_SMPS5 119
  128. #define QCOM_RPM_PM8921_SMPS6 120
  129. #define QCOM_RPM_PM8921_SMPS7 121
  130. #define QCOM_RPM_PM8921_SMPS8 122
  131. #define QCOM_RPM_PXO_CLK 123
  132. #define QCOM_RPM_QDSS_CLK 124
  133. #define QCOM_RPM_SFPB_CLK 125
  134. #define QCOM_RPM_SMI_CLK 126
  135. #define QCOM_RPM_SYS_FABRIC_ARB 127
  136. #define QCOM_RPM_SYS_FABRIC_CLK 128
  137. #define QCOM_RPM_SYS_FABRIC_HALT 129
  138. #define QCOM_RPM_SYS_FABRIC_IOCTL 130
  139. #define QCOM_RPM_SYS_FABRIC_MODE 131
  140. #define QCOM_RPM_USB_OTG_SWITCH 132
  141. #define QCOM_RPM_VDDMIN_GPIO 133
  142. #define QCOM_RPM_NSS_FABRIC_0_CLK 134
  143. #define QCOM_RPM_NSS_FABRIC_1_CLK 135
  144. #define QCOM_RPM_SMB208_S1a 136
  145. #define QCOM_RPM_SMB208_S1b 137
  146. #define QCOM_RPM_SMB208_S2a 138
  147. #define QCOM_RPM_SMB208_S2b 139
  148. #define QCOM_RPM_PM8018_SMPS1 140
  149. #define QCOM_RPM_PM8018_SMPS2 141
  150. #define QCOM_RPM_PM8018_SMPS3 142
  151. #define QCOM_RPM_PM8018_SMPS4 143
  152. #define QCOM_RPM_PM8018_SMPS5 144
  153. #define QCOM_RPM_PM8018_LDO1 145
  154. #define QCOM_RPM_PM8018_LDO2 146
  155. #define QCOM_RPM_PM8018_LDO3 147
  156. #define QCOM_RPM_PM8018_LDO4 148
  157. #define QCOM_RPM_PM8018_LDO5 149
  158. #define QCOM_RPM_PM8018_LDO6 150
  159. #define QCOM_RPM_PM8018_LDO7 151
  160. #define QCOM_RPM_PM8018_LDO8 152
  161. #define QCOM_RPM_PM8018_LDO9 153
  162. #define QCOM_RPM_PM8018_LDO10 154
  163. #define QCOM_RPM_PM8018_LDO11 155
  164. #define QCOM_RPM_PM8018_LDO12 156
  165. #define QCOM_RPM_PM8018_LDO13 157
  166. #define QCOM_RPM_PM8018_LDO14 158
  167. #define QCOM_RPM_PM8018_LVS1 159
  168. #define QCOM_RPM_PM8018_NCP 160
  169. #define QCOM_RPM_VOLTAGE_CORNER 161
  170. /*
  171. * Constants used to select force mode for regulators.
  172. */
  173. #define QCOM_RPM_FORCE_MODE_NONE 0
  174. #define QCOM_RPM_FORCE_MODE_LPM 1
  175. #define QCOM_RPM_FORCE_MODE_HPM 2
  176. #define QCOM_RPM_FORCE_MODE_AUTO 3
  177. #define QCOM_RPM_FORCE_MODE_BYPASS 4
  178. #endif