qcom,mmcc-msm8996.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. /*
  2. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _DT_BINDINGS_CLK_MSM_MMCC_8996_H
  14. #define _DT_BINDINGS_CLK_MSM_MMCC_8996_H
  15. #define MMPLL0_EARLY 0
  16. #define MMPLL0_PLL 1
  17. #define MMPLL1_EARLY 2
  18. #define MMPLL1_PLL 3
  19. #define MMPLL2_EARLY 4
  20. #define MMPLL2_PLL 5
  21. #define MMPLL3_EARLY 6
  22. #define MMPLL3_PLL 7
  23. #define MMPLL4_EARLY 8
  24. #define MMPLL4_PLL 9
  25. #define MMPLL5_EARLY 10
  26. #define MMPLL5_PLL 11
  27. #define MMPLL8_EARLY 12
  28. #define MMPLL8_PLL 13
  29. #define MMPLL9_EARLY 14
  30. #define MMPLL9_PLL 15
  31. #define AHB_CLK_SRC 16
  32. #define AXI_CLK_SRC 17
  33. #define MAXI_CLK_SRC 18
  34. #define DSA_CORE_CLK_SRC 19
  35. #define GFX3D_CLK_SRC 20
  36. #define RBBMTIMER_CLK_SRC 21
  37. #define ISENSE_CLK_SRC 22
  38. #define RBCPR_CLK_SRC 23
  39. #define VIDEO_CORE_CLK_SRC 24
  40. #define VIDEO_SUBCORE0_CLK_SRC 25
  41. #define VIDEO_SUBCORE1_CLK_SRC 26
  42. #define PCLK0_CLK_SRC 27
  43. #define PCLK1_CLK_SRC 28
  44. #define MDP_CLK_SRC 29
  45. #define EXTPCLK_CLK_SRC 30
  46. #define VSYNC_CLK_SRC 31
  47. #define HDMI_CLK_SRC 32
  48. #define BYTE0_CLK_SRC 33
  49. #define BYTE1_CLK_SRC 34
  50. #define ESC0_CLK_SRC 35
  51. #define ESC1_CLK_SRC 36
  52. #define CAMSS_GP0_CLK_SRC 37
  53. #define CAMSS_GP1_CLK_SRC 38
  54. #define MCLK0_CLK_SRC 39
  55. #define MCLK1_CLK_SRC 40
  56. #define MCLK2_CLK_SRC 41
  57. #define MCLK3_CLK_SRC 42
  58. #define CCI_CLK_SRC 43
  59. #define CSI0PHYTIMER_CLK_SRC 44
  60. #define CSI1PHYTIMER_CLK_SRC 45
  61. #define CSI2PHYTIMER_CLK_SRC 46
  62. #define CSIPHY0_3P_CLK_SRC 47
  63. #define CSIPHY1_3P_CLK_SRC 48
  64. #define CSIPHY2_3P_CLK_SRC 49
  65. #define JPEG0_CLK_SRC 50
  66. #define JPEG2_CLK_SRC 51
  67. #define JPEG_DMA_CLK_SRC 52
  68. #define VFE0_CLK_SRC 53
  69. #define VFE1_CLK_SRC 54
  70. #define CPP_CLK_SRC 55
  71. #define CSI0_CLK_SRC 56
  72. #define CSI1_CLK_SRC 57
  73. #define CSI2_CLK_SRC 58
  74. #define CSI3_CLK_SRC 59
  75. #define FD_CORE_CLK_SRC 60
  76. #define MMSS_CXO_CLK 61
  77. #define MMSS_SLEEPCLK_CLK 62
  78. #define MMSS_MMAGIC_AHB_CLK 63
  79. #define MMSS_MMAGIC_CFG_AHB_CLK 64
  80. #define MMSS_MISC_AHB_CLK 65
  81. #define MMSS_MISC_CXO_CLK 66
  82. #define MMSS_BTO_AHB_CLK 67
  83. #define MMSS_MMAGIC_AXI_CLK 68
  84. #define MMSS_S0_AXI_CLK 69
  85. #define MMSS_MMAGIC_MAXI_CLK 70
  86. #define DSA_CORE_CLK 71
  87. #define DSA_NOC_CFG_AHB_CLK 72
  88. #define MMAGIC_CAMSS_AXI_CLK 73
  89. #define MMAGIC_CAMSS_NOC_CFG_AHB_CLK 74
  90. #define THROTTLE_CAMSS_CXO_CLK 75
  91. #define THROTTLE_CAMSS_AHB_CLK 76
  92. #define THROTTLE_CAMSS_AXI_CLK 77
  93. #define SMMU_VFE_AHB_CLK 78
  94. #define SMMU_VFE_AXI_CLK 79
  95. #define SMMU_CPP_AHB_CLK 80
  96. #define SMMU_CPP_AXI_CLK 81
  97. #define SMMU_JPEG_AHB_CLK 82
  98. #define SMMU_JPEG_AXI_CLK 83
  99. #define MMAGIC_MDSS_AXI_CLK 84
  100. #define MMAGIC_MDSS_NOC_CFG_AHB_CLK 85
  101. #define THROTTLE_MDSS_CXO_CLK 86
  102. #define THROTTLE_MDSS_AHB_CLK 87
  103. #define THROTTLE_MDSS_AXI_CLK 88
  104. #define SMMU_ROT_AHB_CLK 89
  105. #define SMMU_ROT_AXI_CLK 90
  106. #define SMMU_MDP_AHB_CLK 91
  107. #define SMMU_MDP_AXI_CLK 92
  108. #define MMAGIC_VIDEO_AXI_CLK 93
  109. #define MMAGIC_VIDEO_NOC_CFG_AHB_CLK 94
  110. #define THROTTLE_VIDEO_CXO_CLK 95
  111. #define THROTTLE_VIDEO_AHB_CLK 96
  112. #define THROTTLE_VIDEO_AXI_CLK 97
  113. #define SMMU_VIDEO_AHB_CLK 98
  114. #define SMMU_VIDEO_AXI_CLK 99
  115. #define MMAGIC_BIMC_AXI_CLK 100
  116. #define MMAGIC_BIMC_NOC_CFG_AHB_CLK 101
  117. #define GPU_GX_GFX3D_CLK 102
  118. #define GPU_GX_RBBMTIMER_CLK 103
  119. #define GPU_AHB_CLK 104
  120. #define GPU_AON_ISENSE_CLK 105
  121. #define VMEM_MAXI_CLK 106
  122. #define VMEM_AHB_CLK 107
  123. #define MMSS_RBCPR_CLK 108
  124. #define MMSS_RBCPR_AHB_CLK 109
  125. #define VIDEO_CORE_CLK 110
  126. #define VIDEO_AXI_CLK 111
  127. #define VIDEO_MAXI_CLK 112
  128. #define VIDEO_AHB_CLK 113
  129. #define VIDEO_SUBCORE0_CLK 114
  130. #define VIDEO_SUBCORE1_CLK 115
  131. #define MDSS_AHB_CLK 116
  132. #define MDSS_HDMI_AHB_CLK 117
  133. #define MDSS_AXI_CLK 118
  134. #define MDSS_PCLK0_CLK 119
  135. #define MDSS_PCLK1_CLK 120
  136. #define MDSS_MDP_CLK 121
  137. #define MDSS_EXTPCLK_CLK 122
  138. #define MDSS_VSYNC_CLK 123
  139. #define MDSS_HDMI_CLK 124
  140. #define MDSS_BYTE0_CLK 125
  141. #define MDSS_BYTE1_CLK 126
  142. #define MDSS_ESC0_CLK 127
  143. #define MDSS_ESC1_CLK 128
  144. #define CAMSS_TOP_AHB_CLK 129
  145. #define CAMSS_AHB_CLK 130
  146. #define CAMSS_MICRO_AHB_CLK 131
  147. #define CAMSS_GP0_CLK 132
  148. #define CAMSS_GP1_CLK 133
  149. #define CAMSS_MCLK0_CLK 134
  150. #define CAMSS_MCLK1_CLK 135
  151. #define CAMSS_MCLK2_CLK 136
  152. #define CAMSS_MCLK3_CLK 137
  153. #define CAMSS_CCI_CLK 138
  154. #define CAMSS_CCI_AHB_CLK 139
  155. #define CAMSS_CSI0PHYTIMER_CLK 140
  156. #define CAMSS_CSI1PHYTIMER_CLK 141
  157. #define CAMSS_CSI2PHYTIMER_CLK 142
  158. #define CAMSS_CSIPHY0_3P_CLK 143
  159. #define CAMSS_CSIPHY1_3P_CLK 144
  160. #define CAMSS_CSIPHY2_3P_CLK 145
  161. #define CAMSS_JPEG0_CLK 146
  162. #define CAMSS_JPEG2_CLK 147
  163. #define CAMSS_JPEG_DMA_CLK 148
  164. #define CAMSS_JPEG_AHB_CLK 149
  165. #define CAMSS_JPEG_AXI_CLK 150
  166. #define CAMSS_VFE_AHB_CLK 151
  167. #define CAMSS_VFE_AXI_CLK 152
  168. #define CAMSS_VFE0_CLK 153
  169. #define CAMSS_VFE0_STREAM_CLK 154
  170. #define CAMSS_VFE0_AHB_CLK 155
  171. #define CAMSS_VFE1_CLK 156
  172. #define CAMSS_VFE1_STREAM_CLK 157
  173. #define CAMSS_VFE1_AHB_CLK 158
  174. #define CAMSS_CSI_VFE0_CLK 159
  175. #define CAMSS_CSI_VFE1_CLK 160
  176. #define CAMSS_CPP_VBIF_AHB_CLK 161
  177. #define CAMSS_CPP_AXI_CLK 162
  178. #define CAMSS_CPP_CLK 163
  179. #define CAMSS_CPP_AHB_CLK 164
  180. #define CAMSS_CSI0_CLK 165
  181. #define CAMSS_CSI0_AHB_CLK 166
  182. #define CAMSS_CSI0PHY_CLK 167
  183. #define CAMSS_CSI0RDI_CLK 168
  184. #define CAMSS_CSI0PIX_CLK 169
  185. #define CAMSS_CSI1_CLK 170
  186. #define CAMSS_CSI1_AHB_CLK 171
  187. #define CAMSS_CSI1PHY_CLK 172
  188. #define CAMSS_CSI1RDI_CLK 173
  189. #define CAMSS_CSI1PIX_CLK 174
  190. #define CAMSS_CSI2_CLK 175
  191. #define CAMSS_CSI2_AHB_CLK 176
  192. #define CAMSS_CSI2PHY_CLK 177
  193. #define CAMSS_CSI2RDI_CLK 178
  194. #define CAMSS_CSI2PIX_CLK 179
  195. #define CAMSS_CSI3_CLK 180
  196. #define CAMSS_CSI3_AHB_CLK 181
  197. #define CAMSS_CSI3PHY_CLK 182
  198. #define CAMSS_CSI3RDI_CLK 183
  199. #define CAMSS_CSI3PIX_CLK 184
  200. #define CAMSS_ISPIF_AHB_CLK 185
  201. #define FD_CORE_CLK 186
  202. #define FD_CORE_UAR_CLK 187
  203. #define FD_AHB_CLK 188
  204. #define MMSS_SPDM_CSI0_CLK 189
  205. #define MMSS_SPDM_JPEG_DMA_CLK 190
  206. #define MMSS_SPDM_CPP_CLK 191
  207. #define MMSS_SPDM_PCLK0_CLK 192
  208. #define MMSS_SPDM_AHB_CLK 193
  209. #define MMSS_SPDM_GFX3D_CLK 194
  210. #define MMSS_SPDM_PCLK1_CLK 195
  211. #define MMSS_SPDM_JPEG2_CLK 196
  212. #define MMSS_SPDM_DEBUG_CLK 197
  213. #define MMSS_SPDM_VFE1_CLK 198
  214. #define MMSS_SPDM_VFE0_CLK 199
  215. #define MMSS_SPDM_VIDEO_CORE_CLK 200
  216. #define MMSS_SPDM_AXI_CLK 201
  217. #define MMSS_SPDM_MDP_CLK 202
  218. #define MMSS_SPDM_JPEG0_CLK 203
  219. #define MMSS_SPDM_RM_AXI_CLK 204
  220. #define MMSS_SPDM_RM_MAXI_CLK 205
  221. #define MMAGICAHB_BCR 0
  222. #define MMAGIC_CFG_BCR 1
  223. #define MISC_BCR 2
  224. #define BTO_BCR 3
  225. #define MMAGICAXI_BCR 4
  226. #define MMAGICMAXI_BCR 5
  227. #define DSA_BCR 6
  228. #define MMAGIC_CAMSS_BCR 7
  229. #define THROTTLE_CAMSS_BCR 8
  230. #define SMMU_VFE_BCR 9
  231. #define SMMU_CPP_BCR 10
  232. #define SMMU_JPEG_BCR 11
  233. #define MMAGIC_MDSS_BCR 12
  234. #define THROTTLE_MDSS_BCR 13
  235. #define SMMU_ROT_BCR 14
  236. #define SMMU_MDP_BCR 15
  237. #define MMAGIC_VIDEO_BCR 16
  238. #define THROTTLE_VIDEO_BCR 17
  239. #define SMMU_VIDEO_BCR 18
  240. #define MMAGIC_BIMC_BCR 19
  241. #define GPU_GX_BCR 20
  242. #define GPU_BCR 21
  243. #define GPU_AON_BCR 22
  244. #define VMEM_BCR 23
  245. #define MMSS_RBCPR_BCR 24
  246. #define VIDEO_BCR 25
  247. #define MDSS_BCR 26
  248. #define CAMSS_TOP_BCR 27
  249. #define CAMSS_AHB_BCR 28
  250. #define CAMSS_MICRO_BCR 29
  251. #define CAMSS_CCI_BCR 30
  252. #define CAMSS_PHY0_BCR 31
  253. #define CAMSS_PHY1_BCR 32
  254. #define CAMSS_PHY2_BCR 33
  255. #define CAMSS_CSIPHY0_3P_BCR 34
  256. #define CAMSS_CSIPHY1_3P_BCR 35
  257. #define CAMSS_CSIPHY2_3P_BCR 36
  258. #define CAMSS_JPEG_BCR 37
  259. #define CAMSS_VFE_BCR 38
  260. #define CAMSS_VFE0_BCR 39
  261. #define CAMSS_VFE1_BCR 40
  262. #define CAMSS_CSI_VFE0_BCR 41
  263. #define CAMSS_CSI_VFE1_BCR 42
  264. #define CAMSS_CPP_TOP_BCR 43
  265. #define CAMSS_CPP_BCR 44
  266. #define CAMSS_CSI0_BCR 45
  267. #define CAMSS_CSI0RDI_BCR 46
  268. #define CAMSS_CSI0PIX_BCR 47
  269. #define CAMSS_CSI1_BCR 48
  270. #define CAMSS_CSI1RDI_BCR 49
  271. #define CAMSS_CSI1PIX_BCR 50
  272. #define CAMSS_CSI2_BCR 51
  273. #define CAMSS_CSI2RDI_BCR 52
  274. #define CAMSS_CSI2PIX_BCR 53
  275. #define CAMSS_CSI3_BCR 54
  276. #define CAMSS_CSI3RDI_BCR 55
  277. #define CAMSS_CSI3PIX_BCR 56
  278. #define CAMSS_ISPIF_BCR 57
  279. #define FD_BCR 58
  280. #define MMSS_SPDM_RM_BCR 59
  281. /* Indexes for GDSCs */
  282. #define MMAGIC_VIDEO_GDSC 0
  283. #define MMAGIC_MDSS_GDSC 1
  284. #define MMAGIC_CAMSS_GDSC 2
  285. #define GPU_GDSC 3
  286. #define VENUS_GDSC 4
  287. #define VENUS_CORE0_GDSC 5
  288. #define VENUS_CORE1_GDSC 6
  289. #define CAMSS_GDSC 7
  290. #define VFE0_GDSC 8
  291. #define VFE1_GDSC 9
  292. #define JPEG_GDSC 10
  293. #define CPP_GDSC 11
  294. #define FD_GDSC 12
  295. #define MDSS_GDSC 13
  296. #define GPU_GX_GDSC 14
  297. #define MMAGIC_BIMC_GDSC 15
  298. #endif