exynos4.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. /*
  2. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  3. * Author: Andrzej Hajda <[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 Exynos4 clock controller.
  10. */
  11. #ifndef _DT_BINDINGS_CLOCK_EXYNOS_4_H
  12. #define _DT_BINDINGS_CLOCK_EXYNOS_4_H
  13. /* core clocks */
  14. #define CLK_XXTI 1
  15. #define CLK_XUSBXTI 2
  16. #define CLK_FIN_PLL 3
  17. #define CLK_FOUT_APLL 4
  18. #define CLK_FOUT_MPLL 5
  19. #define CLK_FOUT_EPLL 6
  20. #define CLK_FOUT_VPLL 7
  21. #define CLK_SCLK_APLL 8
  22. #define CLK_SCLK_MPLL 9
  23. #define CLK_SCLK_EPLL 10
  24. #define CLK_SCLK_VPLL 11
  25. #define CLK_ARM_CLK 12
  26. #define CLK_ACLK200 13
  27. #define CLK_ACLK100 14
  28. #define CLK_ACLK160 15
  29. #define CLK_ACLK133 16
  30. #define CLK_MOUT_MPLL_USER_T 17 /* Exynos4x12 only */
  31. #define CLK_MOUT_MPLL_USER_C 18 /* Exynos4x12 only */
  32. #define CLK_MOUT_CORE 19
  33. #define CLK_MOUT_APLL 20
  34. #define CLK_SCLK_HDMIPHY 22
  35. #define CLK_OUT_DMC 23
  36. #define CLK_OUT_TOP 24
  37. #define CLK_OUT_LEFTBUS 25
  38. #define CLK_OUT_RIGHTBUS 26
  39. #define CLK_OUT_CPU 27
  40. /* gate for special clocks (sclk) */
  41. #define CLK_SCLK_FIMC0 128
  42. #define CLK_SCLK_FIMC1 129
  43. #define CLK_SCLK_FIMC2 130
  44. #define CLK_SCLK_FIMC3 131
  45. #define CLK_SCLK_CAM0 132
  46. #define CLK_SCLK_CAM1 133
  47. #define CLK_SCLK_CSIS0 134
  48. #define CLK_SCLK_CSIS1 135
  49. #define CLK_SCLK_HDMI 136
  50. #define CLK_SCLK_MIXER 137
  51. #define CLK_SCLK_DAC 138
  52. #define CLK_SCLK_PIXEL 139
  53. #define CLK_SCLK_FIMD0 140
  54. #define CLK_SCLK_MDNIE0 141 /* Exynos4412 only */
  55. #define CLK_SCLK_MDNIE_PWM0 142
  56. #define CLK_SCLK_MIPI0 143
  57. #define CLK_SCLK_AUDIO0 144
  58. #define CLK_SCLK_MMC0 145
  59. #define CLK_SCLK_MMC1 146
  60. #define CLK_SCLK_MMC2 147
  61. #define CLK_SCLK_MMC3 148
  62. #define CLK_SCLK_MMC4 149
  63. #define CLK_SCLK_SATA 150 /* Exynos4210 only */
  64. #define CLK_SCLK_UART0 151
  65. #define CLK_SCLK_UART1 152
  66. #define CLK_SCLK_UART2 153
  67. #define CLK_SCLK_UART3 154
  68. #define CLK_SCLK_UART4 155
  69. #define CLK_SCLK_AUDIO1 156
  70. #define CLK_SCLK_AUDIO2 157
  71. #define CLK_SCLK_SPDIF 158
  72. #define CLK_SCLK_SPI0 159
  73. #define CLK_SCLK_SPI1 160
  74. #define CLK_SCLK_SPI2 161
  75. #define CLK_SCLK_SLIMBUS 162
  76. #define CLK_SCLK_FIMD1 163 /* Exynos4210 only */
  77. #define CLK_SCLK_MIPI1 164 /* Exynos4210 only */
  78. #define CLK_SCLK_PCM1 165
  79. #define CLK_SCLK_PCM2 166
  80. #define CLK_SCLK_I2S1 167
  81. #define CLK_SCLK_I2S2 168
  82. #define CLK_SCLK_MIPIHSI 169 /* Exynos4412 only */
  83. #define CLK_SCLK_MFC 170
  84. #define CLK_SCLK_PCM0 171
  85. #define CLK_SCLK_G3D 172
  86. #define CLK_SCLK_PWM_ISP 173 /* Exynos4x12 only */
  87. #define CLK_SCLK_SPI0_ISP 174 /* Exynos4x12 only */
  88. #define CLK_SCLK_SPI1_ISP 175 /* Exynos4x12 only */
  89. #define CLK_SCLK_UART_ISP 176 /* Exynos4x12 only */
  90. #define CLK_SCLK_FIMG2D 177
  91. /* gate clocks */
  92. #define CLK_SSS 255
  93. #define CLK_FIMC0 256
  94. #define CLK_FIMC1 257
  95. #define CLK_FIMC2 258
  96. #define CLK_FIMC3 259
  97. #define CLK_CSIS0 260
  98. #define CLK_CSIS1 261
  99. #define CLK_JPEG 262
  100. #define CLK_SMMU_FIMC0 263
  101. #define CLK_SMMU_FIMC1 264
  102. #define CLK_SMMU_FIMC2 265
  103. #define CLK_SMMU_FIMC3 266
  104. #define CLK_SMMU_JPEG 267
  105. #define CLK_VP 268
  106. #define CLK_MIXER 269
  107. #define CLK_TVENC 270 /* Exynos4210 only */
  108. #define CLK_HDMI 271
  109. #define CLK_SMMU_TV 272
  110. #define CLK_MFC 273
  111. #define CLK_SMMU_MFCL 274
  112. #define CLK_SMMU_MFCR 275
  113. #define CLK_G3D 276
  114. #define CLK_G2D 277
  115. #define CLK_ROTATOR 278
  116. #define CLK_MDMA 279
  117. #define CLK_SMMU_G2D 280
  118. #define CLK_SMMU_ROTATOR 281
  119. #define CLK_SMMU_MDMA 282
  120. #define CLK_FIMD0 283
  121. #define CLK_MIE0 284
  122. #define CLK_MDNIE0 285 /* Exynos4412 only */
  123. #define CLK_DSIM0 286
  124. #define CLK_SMMU_FIMD0 287
  125. #define CLK_FIMD1 288 /* Exynos4210 only */
  126. #define CLK_MIE1 289 /* Exynos4210 only */
  127. #define CLK_DSIM1 290 /* Exynos4210 only */
  128. #define CLK_SMMU_FIMD1 291 /* Exynos4210 only */
  129. #define CLK_PDMA0 292
  130. #define CLK_PDMA1 293
  131. #define CLK_PCIE_PHY 294
  132. #define CLK_SATA_PHY 295 /* Exynos4210 only */
  133. #define CLK_TSI 296
  134. #define CLK_SDMMC0 297
  135. #define CLK_SDMMC1 298
  136. #define CLK_SDMMC2 299
  137. #define CLK_SDMMC3 300
  138. #define CLK_SDMMC4 301
  139. #define CLK_SATA 302 /* Exynos4210 only */
  140. #define CLK_SROMC 303
  141. #define CLK_USB_HOST 304
  142. #define CLK_USB_DEVICE 305
  143. #define CLK_PCIE 306
  144. #define CLK_ONENAND 307
  145. #define CLK_NFCON 308
  146. #define CLK_SMMU_PCIE 309
  147. #define CLK_GPS 310
  148. #define CLK_SMMU_GPS 311
  149. #define CLK_UART0 312
  150. #define CLK_UART1 313
  151. #define CLK_UART2 314
  152. #define CLK_UART3 315
  153. #define CLK_UART4 316
  154. #define CLK_I2C0 317
  155. #define CLK_I2C1 318
  156. #define CLK_I2C2 319
  157. #define CLK_I2C3 320
  158. #define CLK_I2C4 321
  159. #define CLK_I2C5 322
  160. #define CLK_I2C6 323
  161. #define CLK_I2C7 324
  162. #define CLK_I2C_HDMI 325
  163. #define CLK_TSADC 326
  164. #define CLK_SPI0 327
  165. #define CLK_SPI1 328
  166. #define CLK_SPI2 329
  167. #define CLK_I2S1 330
  168. #define CLK_I2S2 331
  169. #define CLK_PCM0 332
  170. #define CLK_I2S0 333
  171. #define CLK_PCM1 334
  172. #define CLK_PCM2 335
  173. #define CLK_PWM 336
  174. #define CLK_SLIMBUS 337
  175. #define CLK_SPDIF 338
  176. #define CLK_AC97 339
  177. #define CLK_MODEMIF 340
  178. #define CLK_CHIPID 341
  179. #define CLK_SYSREG 342
  180. #define CLK_HDMI_CEC 343
  181. #define CLK_MCT 344
  182. #define CLK_WDT 345
  183. #define CLK_RTC 346
  184. #define CLK_KEYIF 347
  185. #define CLK_AUDSS 348
  186. #define CLK_MIPI_HSI 349 /* Exynos4210 only */
  187. #define CLK_PIXELASYNCM0 351
  188. #define CLK_PIXELASYNCM1 352
  189. #define CLK_FIMC_LITE0 353 /* Exynos4x12 only */
  190. #define CLK_FIMC_LITE1 354 /* Exynos4x12 only */
  191. #define CLK_PPMUISPX 355 /* Exynos4x12 only */
  192. #define CLK_PPMUISPMX 356 /* Exynos4x12 only */
  193. #define CLK_FIMC_ISP 357 /* Exynos4x12 only */
  194. #define CLK_FIMC_DRC 358 /* Exynos4x12 only */
  195. #define CLK_FIMC_FD 359 /* Exynos4x12 only */
  196. #define CLK_MCUISP 360 /* Exynos4x12 only */
  197. #define CLK_GICISP 361 /* Exynos4x12 only */
  198. #define CLK_SMMU_ISP 362 /* Exynos4x12 only */
  199. #define CLK_SMMU_DRC 363 /* Exynos4x12 only */
  200. #define CLK_SMMU_FD 364 /* Exynos4x12 only */
  201. #define CLK_SMMU_LITE0 365 /* Exynos4x12 only */
  202. #define CLK_SMMU_LITE1 366 /* Exynos4x12 only */
  203. #define CLK_MCUCTL_ISP 367 /* Exynos4x12 only */
  204. #define CLK_MPWM_ISP 368 /* Exynos4x12 only */
  205. #define CLK_I2C0_ISP 369 /* Exynos4x12 only */
  206. #define CLK_I2C1_ISP 370 /* Exynos4x12 only */
  207. #define CLK_MTCADC_ISP 371 /* Exynos4x12 only */
  208. #define CLK_PWM_ISP 372 /* Exynos4x12 only */
  209. #define CLK_WDT_ISP 373 /* Exynos4x12 only */
  210. #define CLK_UART_ISP 374 /* Exynos4x12 only */
  211. #define CLK_ASYNCAXIM 375 /* Exynos4x12 only */
  212. #define CLK_SMMU_ISPCX 376 /* Exynos4x12 only */
  213. #define CLK_SPI0_ISP 377 /* Exynos4x12 only */
  214. #define CLK_SPI1_ISP 378 /* Exynos4x12 only */
  215. #define CLK_PWM_ISP_SCLK 379 /* Exynos4x12 only */
  216. #define CLK_SPI0_ISP_SCLK 380 /* Exynos4x12 only */
  217. #define CLK_SPI1_ISP_SCLK 381 /* Exynos4x12 only */
  218. #define CLK_UART_ISP_SCLK 382 /* Exynos4x12 only */
  219. #define CLK_TMU_APBIF 383
  220. /* mux clocks */
  221. #define CLK_MOUT_FIMC0 384
  222. #define CLK_MOUT_FIMC1 385
  223. #define CLK_MOUT_FIMC2 386
  224. #define CLK_MOUT_FIMC3 387
  225. #define CLK_MOUT_CAM0 388
  226. #define CLK_MOUT_CAM1 389
  227. #define CLK_MOUT_CSIS0 390
  228. #define CLK_MOUT_CSIS1 391
  229. #define CLK_MOUT_G3D0 392
  230. #define CLK_MOUT_G3D1 393
  231. #define CLK_MOUT_G3D 394
  232. #define CLK_ACLK400_MCUISP 395 /* Exynos4x12 only */
  233. #define CLK_MOUT_HDMI 396
  234. #define CLK_MOUT_MIXER 397
  235. /* gate clocks - ppmu */
  236. #define CLK_PPMULEFT 400
  237. #define CLK_PPMURIGHT 401
  238. #define CLK_PPMUCAMIF 402
  239. #define CLK_PPMUTV 403
  240. #define CLK_PPMUMFC_L 404
  241. #define CLK_PPMUMFC_R 405
  242. #define CLK_PPMUG3D 406
  243. #define CLK_PPMUIMAGE 407
  244. #define CLK_PPMULCD0 408
  245. #define CLK_PPMULCD1 409 /* Exynos4210 only */
  246. #define CLK_PPMUFILE 410
  247. #define CLK_PPMUGPS 411
  248. #define CLK_PPMUDMC0 412
  249. #define CLK_PPMUDMC1 413
  250. #define CLK_PPMUCPU 414
  251. #define CLK_PPMUACP 415
  252. /* div clocks */
  253. #define CLK_DIV_ISP0 450 /* Exynos4x12 only */
  254. #define CLK_DIV_ISP1 451 /* Exynos4x12 only */
  255. #define CLK_DIV_MCUISP0 452 /* Exynos4x12 only */
  256. #define CLK_DIV_MCUISP1 453 /* Exynos4x12 only */
  257. #define CLK_DIV_ACLK200 454 /* Exynos4x12 only */
  258. #define CLK_DIV_ACLK400_MCUISP 455 /* Exynos4x12 only */
  259. #define CLK_DIV_ACP 456
  260. #define CLK_DIV_DMC 457
  261. #define CLK_DIV_C2C 458 /* Exynos4x12 only */
  262. #define CLK_DIV_GDL 459
  263. #define CLK_DIV_GDR 460
  264. /* must be greater than maximal clock id */
  265. #define CLK_NR_CLKS 461
  266. #endif /* _DT_BINDINGS_CLOCK_EXYNOS_4_H */