qcom,rpmcc.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * Copyright 2015 Linaro Limited
  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_RPMCC_H
  14. #define _DT_BINDINGS_CLK_MSM_RPMCC_H
  15. /* RPM clocks */
  16. #define RPM_PXO_CLK 0
  17. #define RPM_PXO_A_CLK 1
  18. #define RPM_CXO_CLK 2
  19. #define RPM_CXO_A_CLK 3
  20. #define RPM_APPS_FABRIC_CLK 4
  21. #define RPM_APPS_FABRIC_A_CLK 5
  22. #define RPM_CFPB_CLK 6
  23. #define RPM_CFPB_A_CLK 7
  24. #define RPM_QDSS_CLK 8
  25. #define RPM_QDSS_A_CLK 9
  26. #define RPM_DAYTONA_FABRIC_CLK 10
  27. #define RPM_DAYTONA_FABRIC_A_CLK 11
  28. #define RPM_EBI1_CLK 12
  29. #define RPM_EBI1_A_CLK 13
  30. #define RPM_MM_FABRIC_CLK 14
  31. #define RPM_MM_FABRIC_A_CLK 15
  32. #define RPM_MMFPB_CLK 16
  33. #define RPM_MMFPB_A_CLK 17
  34. #define RPM_SYS_FABRIC_CLK 18
  35. #define RPM_SYS_FABRIC_A_CLK 19
  36. #define RPM_SFPB_CLK 20
  37. #define RPM_SFPB_A_CLK 21
  38. #define RPM_SMI_CLK 22
  39. #define RPM_SMI_A_CLK 23
  40. #define RPM_PLL4_CLK 24
  41. #define RPM_XO_D0 25
  42. #define RPM_XO_D1 26
  43. #define RPM_XO_A0 27
  44. #define RPM_XO_A1 28
  45. #define RPM_XO_A2 29
  46. /* SMD RPM clocks */
  47. #define RPM_SMD_XO_CLK_SRC 0
  48. #define RPM_SMD_XO_A_CLK_SRC 1
  49. #define RPM_SMD_PCNOC_CLK 2
  50. #define RPM_SMD_PCNOC_A_CLK 3
  51. #define RPM_SMD_SNOC_CLK 4
  52. #define RPM_SMD_SNOC_A_CLK 5
  53. #define RPM_SMD_BIMC_CLK 6
  54. #define RPM_SMD_BIMC_A_CLK 7
  55. #define RPM_SMD_QDSS_CLK 8
  56. #define RPM_SMD_QDSS_A_CLK 9
  57. #define RPM_SMD_BB_CLK1 10
  58. #define RPM_SMD_BB_CLK1_A 11
  59. #define RPM_SMD_BB_CLK2 12
  60. #define RPM_SMD_BB_CLK2_A 13
  61. #define RPM_SMD_RF_CLK1 14
  62. #define RPM_SMD_RF_CLK1_A 15
  63. #define RPM_SMD_RF_CLK2 16
  64. #define RPM_SMD_RF_CLK2_A 17
  65. #define RPM_SMD_BB_CLK1_PIN 18
  66. #define RPM_SMD_BB_CLK1_A_PIN 19
  67. #define RPM_SMD_BB_CLK2_PIN 20
  68. #define RPM_SMD_BB_CLK2_A_PIN 21
  69. #define RPM_SMD_RF_CLK1_PIN 22
  70. #define RPM_SMD_RF_CLK1_A_PIN 23
  71. #define RPM_SMD_RF_CLK2_PIN 24
  72. #define RPM_SMD_RF_CLK2_A_PIN 25
  73. #define RPM_SMD_PNOC_CLK 26
  74. #define RPM_SMD_PNOC_A_CLK 27
  75. #define RPM_SMD_CNOC_CLK 28
  76. #define RPM_SMD_CNOC_A_CLK 29
  77. #define RPM_SMD_MMSSNOC_AHB_CLK 30
  78. #define RPM_SMD_MMSSNOC_AHB_A_CLK 31
  79. #define RPM_SMD_GFX3D_CLK_SRC 32
  80. #define RPM_SMD_GFX3D_A_CLK_SRC 33
  81. #define RPM_SMD_OCMEMGX_CLK 34
  82. #define RPM_SMD_OCMEMGX_A_CLK 35
  83. #define RPM_SMD_CXO_D0 36
  84. #define RPM_SMD_CXO_D0_A 37
  85. #define RPM_SMD_CXO_D1 38
  86. #define RPM_SMD_CXO_D1_A 39
  87. #define RPM_SMD_CXO_A0 40
  88. #define RPM_SMD_CXO_A0_A 41
  89. #define RPM_SMD_CXO_A1 42
  90. #define RPM_SMD_CXO_A1_A 43
  91. #define RPM_SMD_CXO_A2 44
  92. #define RPM_SMD_CXO_A2_A 45
  93. #define RPM_SMD_DIV_CLK1 46
  94. #define RPM_SMD_DIV_A_CLK1 47
  95. #define RPM_SMD_DIV_CLK2 48
  96. #define RPM_SMD_DIV_A_CLK2 49
  97. #define RPM_SMD_DIFF_CLK 50
  98. #define RPM_SMD_DIFF_A_CLK 51
  99. #define RPM_SMD_CXO_D0_PIN 52
  100. #define RPM_SMD_CXO_D0_A_PIN 53
  101. #define RPM_SMD_CXO_D1_PIN 54
  102. #define RPM_SMD_CXO_D1_A_PIN 55
  103. #define RPM_SMD_CXO_A0_PIN 56
  104. #define RPM_SMD_CXO_A0_A_PIN 57
  105. #define RPM_SMD_CXO_A1_PIN 58
  106. #define RPM_SMD_CXO_A1_A_PIN 59
  107. #define RPM_SMD_CXO_A2_PIN 60
  108. #define RPM_SMD_CXO_A2_A_PIN 61
  109. #define RPM_SMD_AGGR1_NOC_CLK 62
  110. #define RPM_SMD_AGGR1_NOC_A_CLK 63
  111. #define RPM_SMD_AGGR2_NOC_CLK 64
  112. #define RPM_SMD_AGGR2_NOC_A_CLK 65
  113. #define RPM_SMD_MMAXI_CLK 66
  114. #define RPM_SMD_MMAXI_A_CLK 67
  115. #define RPM_SMD_IPA_CLK 68
  116. #define RPM_SMD_IPA_A_CLK 69
  117. #define RPM_SMD_CE1_CLK 70
  118. #define RPM_SMD_CE1_A_CLK 71
  119. #define RPM_SMD_DIV_CLK3 72
  120. #define RPM_SMD_DIV_A_CLK3 73
  121. #define RPM_SMD_LN_BB_CLK 74
  122. #define RPM_SMD_LN_BB_A_CLK 75
  123. #endif