s5pv210.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /*
  2. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  3. * Author: Mateusz Krawczuk <[email protected]>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Device Tree binding constants for Samsung S5PV210 clock controller.
  10. */
  11. #ifndef _DT_BINDINGS_CLOCK_S5PV210_H
  12. #define _DT_BINDINGS_CLOCK_S5PV210_H
  13. /* Core clocks. */
  14. #define FIN_PLL 1
  15. #define FOUT_APLL 2
  16. #define FOUT_MPLL 3
  17. #define FOUT_EPLL 4
  18. #define FOUT_VPLL 5
  19. /* Muxes. */
  20. #define MOUT_FLASH 6
  21. #define MOUT_PSYS 7
  22. #define MOUT_DSYS 8
  23. #define MOUT_MSYS 9
  24. #define MOUT_VPLL 10
  25. #define MOUT_EPLL 11
  26. #define MOUT_MPLL 12
  27. #define MOUT_APLL 13
  28. #define MOUT_VPLLSRC 14
  29. #define MOUT_CSIS 15
  30. #define MOUT_FIMD 16
  31. #define MOUT_CAM1 17
  32. #define MOUT_CAM0 18
  33. #define MOUT_DAC 19
  34. #define MOUT_MIXER 20
  35. #define MOUT_HDMI 21
  36. #define MOUT_G2D 22
  37. #define MOUT_MFC 23
  38. #define MOUT_G3D 24
  39. #define MOUT_FIMC2 25
  40. #define MOUT_FIMC1 26
  41. #define MOUT_FIMC0 27
  42. #define MOUT_UART3 28
  43. #define MOUT_UART2 29
  44. #define MOUT_UART1 30
  45. #define MOUT_UART0 31
  46. #define MOUT_MMC3 32
  47. #define MOUT_MMC2 33
  48. #define MOUT_MMC1 34
  49. #define MOUT_MMC0 35
  50. #define MOUT_PWM 36
  51. #define MOUT_SPI0 37
  52. #define MOUT_SPI1 38
  53. #define MOUT_DMC0 39
  54. #define MOUT_PWI 40
  55. #define MOUT_HPM 41
  56. #define MOUT_SPDIF 42
  57. #define MOUT_AUDIO2 43
  58. #define MOUT_AUDIO1 44
  59. #define MOUT_AUDIO0 45
  60. /* Dividers. */
  61. #define DOUT_PCLKP 46
  62. #define DOUT_HCLKP 47
  63. #define DOUT_PCLKD 48
  64. #define DOUT_HCLKD 49
  65. #define DOUT_PCLKM 50
  66. #define DOUT_HCLKM 51
  67. #define DOUT_A2M 52
  68. #define DOUT_APLL 53
  69. #define DOUT_CSIS 54
  70. #define DOUT_FIMD 55
  71. #define DOUT_CAM1 56
  72. #define DOUT_CAM0 57
  73. #define DOUT_TBLK 58
  74. #define DOUT_G2D 59
  75. #define DOUT_MFC 60
  76. #define DOUT_G3D 61
  77. #define DOUT_FIMC2 62
  78. #define DOUT_FIMC1 63
  79. #define DOUT_FIMC0 64
  80. #define DOUT_UART3 65
  81. #define DOUT_UART2 66
  82. #define DOUT_UART1 67
  83. #define DOUT_UART0 68
  84. #define DOUT_MMC3 69
  85. #define DOUT_MMC2 70
  86. #define DOUT_MMC1 71
  87. #define DOUT_MMC0 72
  88. #define DOUT_PWM 73
  89. #define DOUT_SPI1 74
  90. #define DOUT_SPI0 75
  91. #define DOUT_DMC0 76
  92. #define DOUT_PWI 77
  93. #define DOUT_HPM 78
  94. #define DOUT_COPY 79
  95. #define DOUT_FLASH 80
  96. #define DOUT_AUDIO2 81
  97. #define DOUT_AUDIO1 82
  98. #define DOUT_AUDIO0 83
  99. #define DOUT_DPM 84
  100. #define DOUT_DVSEM 85
  101. /* Gates */
  102. #define SCLK_FIMC 86
  103. #define CLK_CSIS 87
  104. #define CLK_ROTATOR 88
  105. #define CLK_FIMC2 89
  106. #define CLK_FIMC1 90
  107. #define CLK_FIMC0 91
  108. #define CLK_MFC 92
  109. #define CLK_G2D 93
  110. #define CLK_G3D 94
  111. #define CLK_IMEM 95
  112. #define CLK_PDMA1 96
  113. #define CLK_PDMA0 97
  114. #define CLK_MDMA 98
  115. #define CLK_DMC1 99
  116. #define CLK_DMC0 100
  117. #define CLK_NFCON 101
  118. #define CLK_SROMC 102
  119. #define CLK_CFCON 103
  120. #define CLK_NANDXL 104
  121. #define CLK_USB_HOST 105
  122. #define CLK_USB_OTG 106
  123. #define CLK_HDMI 107
  124. #define CLK_TVENC 108
  125. #define CLK_MIXER 109
  126. #define CLK_VP 110
  127. #define CLK_DSIM 111
  128. #define CLK_FIMD 112
  129. #define CLK_TZIC3 113
  130. #define CLK_TZIC2 114
  131. #define CLK_TZIC1 115
  132. #define CLK_TZIC0 116
  133. #define CLK_VIC3 117
  134. #define CLK_VIC2 118
  135. #define CLK_VIC1 119
  136. #define CLK_VIC0 120
  137. #define CLK_TSI 121
  138. #define CLK_HSMMC3 122
  139. #define CLK_HSMMC2 123
  140. #define CLK_HSMMC1 124
  141. #define CLK_HSMMC0 125
  142. #define CLK_JTAG 126
  143. #define CLK_MODEMIF 127
  144. #define CLK_CORESIGHT 128
  145. #define CLK_SDM 129
  146. #define CLK_SECSS 130
  147. #define CLK_PCM2 131
  148. #define CLK_PCM1 132
  149. #define CLK_PCM0 133
  150. #define CLK_SYSCON 134
  151. #define CLK_GPIO 135
  152. #define CLK_TSADC 136
  153. #define CLK_PWM 137
  154. #define CLK_WDT 138
  155. #define CLK_KEYIF 139
  156. #define CLK_UART3 140
  157. #define CLK_UART2 141
  158. #define CLK_UART1 142
  159. #define CLK_UART0 143
  160. #define CLK_SYSTIMER 144
  161. #define CLK_RTC 145
  162. #define CLK_SPI1 146
  163. #define CLK_SPI0 147
  164. #define CLK_I2C_HDMI_PHY 148
  165. #define CLK_I2C1 149
  166. #define CLK_I2C2 150
  167. #define CLK_I2C0 151
  168. #define CLK_I2S1 152
  169. #define CLK_I2S2 153
  170. #define CLK_I2S0 154
  171. #define CLK_AC97 155
  172. #define CLK_SPDIF 156
  173. #define CLK_TZPC3 157
  174. #define CLK_TZPC2 158
  175. #define CLK_TZPC1 159
  176. #define CLK_TZPC0 160
  177. #define CLK_SECKEY 161
  178. #define CLK_IEM_APC 162
  179. #define CLK_IEM_IEC 163
  180. #define CLK_CHIPID 164
  181. #define CLK_JPEG 163
  182. /* Special clocks*/
  183. #define SCLK_PWI 164
  184. #define SCLK_SPDIF 165
  185. #define SCLK_AUDIO2 166
  186. #define SCLK_AUDIO1 167
  187. #define SCLK_AUDIO0 168
  188. #define SCLK_PWM 169
  189. #define SCLK_SPI1 170
  190. #define SCLK_SPI0 171
  191. #define SCLK_UART3 172
  192. #define SCLK_UART2 173
  193. #define SCLK_UART1 174
  194. #define SCLK_UART0 175
  195. #define SCLK_MMC3 176
  196. #define SCLK_MMC2 177
  197. #define SCLK_MMC1 178
  198. #define SCLK_MMC0 179
  199. #define SCLK_FINVPLL 180
  200. #define SCLK_CSIS 181
  201. #define SCLK_FIMD 182
  202. #define SCLK_CAM1 183
  203. #define SCLK_CAM0 184
  204. #define SCLK_DAC 185
  205. #define SCLK_MIXER 186
  206. #define SCLK_HDMI 187
  207. #define SCLK_FIMC2 188
  208. #define SCLK_FIMC1 189
  209. #define SCLK_FIMC0 190
  210. #define SCLK_HDMI27M 191
  211. #define SCLK_HDMIPHY 192
  212. #define SCLK_USBPHY0 193
  213. #define SCLK_USBPHY1 194
  214. /* S5P6442-specific clocks */
  215. #define MOUT_D0SYNC 195
  216. #define MOUT_D1SYNC 196
  217. #define DOUT_MIXER 197
  218. #define CLK_ETB 198
  219. #define CLK_ETM 199
  220. /* CLKOUT */
  221. #define FOUT_APLL_CLKOUT 200
  222. #define FOUT_MPLL_CLKOUT 201
  223. #define DOUT_APLL_CLKOUT 202
  224. #define MOUT_CLKSEL 203
  225. #define DOUT_CLKOUT 204
  226. #define MOUT_CLKOUT 205
  227. /* Total number of clocks. */
  228. #define NR_CLKS 206
  229. #endif /* _DT_BINDINGS_CLOCK_S5PV210_H */