qcom,gcc-sdxpoorwills.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  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_GCC_SDX24_H
  14. #define _DT_BINDINGS_CLK_MSM_GCC_SDX24_H
  15. /* GCC clock registers */
  16. #define GCC_BLSP1_AHB_CLK 0
  17. #define GCC_BLSP1_QUP1_I2C_APPS_CLK 1
  18. #define GCC_BLSP1_QUP1_I2C_APPS_CLK_SRC 2
  19. #define GCC_BLSP1_QUP1_SPI_APPS_CLK 3
  20. #define GCC_BLSP1_QUP1_SPI_APPS_CLK_SRC 4
  21. #define GCC_BLSP1_QUP2_I2C_APPS_CLK 5
  22. #define GCC_BLSP1_QUP2_I2C_APPS_CLK_SRC 6
  23. #define GCC_BLSP1_QUP2_SPI_APPS_CLK 7
  24. #define GCC_BLSP1_QUP2_SPI_APPS_CLK_SRC 8
  25. #define GCC_BLSP1_QUP3_I2C_APPS_CLK 9
  26. #define GCC_BLSP1_QUP3_I2C_APPS_CLK_SRC 10
  27. #define GCC_BLSP1_QUP3_SPI_APPS_CLK 11
  28. #define GCC_BLSP1_QUP3_SPI_APPS_CLK_SRC 12
  29. #define GCC_BLSP1_QUP4_I2C_APPS_CLK 13
  30. #define GCC_BLSP1_QUP4_I2C_APPS_CLK_SRC 14
  31. #define GCC_BLSP1_QUP4_SPI_APPS_CLK 15
  32. #define GCC_BLSP1_QUP4_SPI_APPS_CLK_SRC 16
  33. #define GCC_BLSP1_SLEEP_CLK 17
  34. #define GCC_BLSP1_UART1_APPS_CLK 18
  35. #define GCC_BLSP1_UART1_APPS_CLK_SRC 19
  36. #define GCC_BLSP1_UART2_APPS_CLK 20
  37. #define GCC_BLSP1_UART2_APPS_CLK_SRC 21
  38. #define GCC_BLSP1_UART3_APPS_CLK 22
  39. #define GCC_BLSP1_UART3_APPS_CLK_SRC 23
  40. #define GCC_BLSP1_UART4_APPS_CLK 24
  41. #define GCC_BLSP1_UART4_APPS_CLK_SRC 25
  42. #define GCC_BOOT_ROM_AHB_CLK 26
  43. #define GCC_CE1_AHB_CLK 27
  44. #define GCC_CE1_AXI_CLK 28
  45. #define GCC_CE1_CLK 29
  46. #define GCC_CPUSS_AHB_CLK 30
  47. #define GCC_CPUSS_AHB_CLK_SRC 31
  48. #define GCC_CPUSS_GNOC_CLK 32
  49. #define GCC_CPUSS_RBCPR_CLK 33
  50. #define GCC_CPUSS_RBCPR_CLK_SRC 34
  51. #define GCC_EMAC_CLK_SRC 35
  52. #define GCC_EMAC_PTP_CLK_SRC 36
  53. #define GCC_ETH_AXI_CLK 37
  54. #define GCC_ETH_PTP_CLK 38
  55. #define GCC_ETH_RGMII_CLK 39
  56. #define GCC_ETH_SLAVE_AHB_CLK 40
  57. #define GCC_GP1_CLK 41
  58. #define GCC_GP1_CLK_SRC 42
  59. #define GCC_GP2_CLK 43
  60. #define GCC_GP2_CLK_SRC 44
  61. #define GCC_GP3_CLK 45
  62. #define GCC_GP3_CLK_SRC 46
  63. #define GCC_PCIE_0_CLKREF_CLK 47
  64. #define GCC_PCIE_AUX_CLK 48
  65. #define GCC_PCIE_AUX_PHY_CLK_SRC 49
  66. #define GCC_PCIE_CFG_AHB_CLK 50
  67. #define GCC_PCIE_MSTR_AXI_CLK 51
  68. #define GCC_PCIE_PHY_REFGEN_CLK 52
  69. #define GCC_PCIE_PHY_REFGEN_CLK_SRC 53
  70. #define GCC_PCIE_PIPE_CLK 54
  71. #define GCC_PCIE_SLEEP_CLK 55
  72. #define GCC_PCIE_SLV_AXI_CLK 56
  73. #define GCC_PCIE_SLV_Q2A_AXI_CLK 57
  74. #define GCC_PDM2_CLK 58
  75. #define GCC_PDM2_CLK_SRC 59
  76. #define GCC_PDM_AHB_CLK 60
  77. #define GCC_PDM_XO4_CLK 61
  78. #define GCC_PRNG_AHB_CLK 62
  79. #define GCC_SDCC1_AHB_CLK 63
  80. #define GCC_SDCC1_APPS_CLK 64
  81. #define GCC_SDCC1_APPS_CLK_SRC 65
  82. #define GCC_SPMI_FETCHER_AHB_CLK 66
  83. #define GCC_SPMI_FETCHER_CLK 67
  84. #define GCC_SPMI_FETCHER_CLK_SRC 68
  85. #define GCC_SYS_NOC_CPUSS_AHB_CLK 69
  86. #define GCC_SYS_NOC_USB3_CLK 70
  87. #define GCC_USB30_MASTER_CLK 71
  88. #define GCC_USB30_MASTER_CLK_SRC 72
  89. #define GCC_USB30_MOCK_UTMI_CLK 73
  90. #define GCC_USB30_MOCK_UTMI_CLK_SRC 74
  91. #define GCC_USB30_SLEEP_CLK 75
  92. #define GCC_USB3_PHY_AUX_CLK 76
  93. #define GCC_USB3_PHY_AUX_CLK_SRC 77
  94. #define GCC_USB3_PHY_PIPE_CLK 78
  95. #define GCC_USB3_PRIM_CLKREF_CLK 79
  96. #define GCC_USB_PHY_CFG_AHB2PHY_CLK 80
  97. #define GPLL0 81
  98. #define GPLL0_OUT_EVEN 82
  99. #define GPLL4 83
  100. #define GPLL4_OUT_EVEN 84
  101. /* CPU clocks */
  102. #define CLOCK_A7SS 0
  103. /* GCC reset clocks */
  104. #define GCC_BLSP1_QUP1_BCR 0
  105. #define GCC_BLSP1_QUP2_BCR 1
  106. #define GCC_BLSP1_QUP3_BCR 2
  107. #define GCC_BLSP1_QUP4_BCR 3
  108. #define GCC_BLSP1_UART2_BCR 4
  109. #define GCC_BLSP1_UART3_BCR 5
  110. #define GCC_BLSP1_UART4_BCR 6
  111. #define GCC_CE1_BCR 7
  112. #define GCC_PCIE_BCR 8
  113. #define GCC_PCIE_PHY_BCR 9
  114. #define GCC_PDM_BCR 10
  115. #define GCC_PRNG_BCR 11
  116. #define GCC_SDCC1_BCR 12
  117. #define GCC_SPMI_FETCHER_BCR 13
  118. #define GCC_USB30_BCR 14
  119. #define GCC_USB3_PHY_BCR 15
  120. #define GCC_USB3PHY_PHY_BCR 16
  121. #define GCC_QUSB2PHY_BCR 17
  122. #define GCC_USB_PHY_CFG_AHB2PHY_BCR 18
  123. #define GCC_EMAC_BCR 19
  124. /* Dummy clocks for rate measurement */
  125. #define MEASURE_ONLY_IPA_2X_CLK 0
  126. #endif