clocks_omap3.h 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. /*
  2. * (C) Copyright 2006-2008
  3. * Texas Instruments, <www.ti.com>
  4. * Richard Woodruff <r-woodruff2@ti.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. */
  21. #ifndef _CLOCKS_OMAP3_H_
  22. #define _CLOCKS_OMAP3_H_
  23. #define PLL_STOP 1 /* PER & IVA */
  24. #define PLL_LOW_POWER_BYPASS 5 /* MPU, IVA & CORE */
  25. #define PLL_FAST_RELOCK_BYPASS 6 /* CORE */
  26. #define PLL_LOCK 7 /* MPU, IVA, CORE & PER */
  27. /*
  28. * The following configurations are OPP and SysClk value independant
  29. * and hence are defined here. All the other DPLL related values are
  30. * tabulated in lowlevel_init.S.
  31. */
  32. /* CORE DPLL */
  33. #define CORE_M3X2 2 /* 332MHz : CM_CLKSEL1_EMU */
  34. #define CORE_SSI_DIV 3 /* 221MHz : CM_CLKSEL_CORE */
  35. #define CORE_FUSB_DIV 2 /* 41.5MHz: */
  36. #define CORE_L4_DIV 2 /* 83MHz : L4 */
  37. #define CORE_L3_DIV 2 /* 166MHz : L3 {DDR} */
  38. #define GFX_DIV 2 /* 83MHz : CM_CLKSEL_GFX */
  39. #define WKUP_RSM 2 /* 41.5MHz: CM_CLKSEL_WKUP */
  40. /* PER DPLL */
  41. #define PER_M6X2 3 /* 288MHz: CM_CLKSEL1_EMU */
  42. #define PER_M5X2 4 /* 216MHz: CM_CLKSEL_CAM */
  43. #define PER_M4X2 2 /* 432MHz: CM_CLKSEL_DSS-dss1 */
  44. #define PER_M3X2 16 /* 54MHz : CM_CLKSEL_DSS-tv */
  45. #define CLSEL1_EMU_VAL ((CORE_M3X2 << 16) | (PER_M6X2 << 24) | (0x0A50))
  46. /* MPU DPLL */
  47. #define MPU_M_12_ES1 0x0FE
  48. #define MPU_N_12_ES1 0x07
  49. #define MPU_FSEL_12_ES1 0x05
  50. #define MPU_M2_12_ES1 0x01
  51. #define MPU_M_12_ES2 0x0FA
  52. #define MPU_N_12_ES2 0x05
  53. #define MPU_FSEL_12_ES2 0x07
  54. #define MPU_M2_ES2 0x01
  55. #define MPU_M_12 0x085
  56. #define MPU_N_12 0x05
  57. #define MPU_FSEL_12 0x07
  58. #define MPU_M2_12 0x01
  59. #define MPU_M_13_ES1 0x17D
  60. #define MPU_N_13_ES1 0x0C
  61. #define MPU_FSEL_13_ES1 0x03
  62. #define MPU_M2_13_ES1 0x01
  63. #define MPU_M_13_ES2 0x1F4
  64. #define MPU_N_13_ES2 0x0C
  65. #define MPU_FSEL_13_ES2 0x03
  66. #define MPU_M2_13_ES2 0x01
  67. #define MPU_M_13 0x10A
  68. #define MPU_N_13 0x0C
  69. #define MPU_FSEL_13 0x03
  70. #define MPU_M2_13 0x01
  71. #define MPU_M_19P2_ES1 0x179
  72. #define MPU_N_19P2_ES1 0x12
  73. #define MPU_FSEL_19P2_ES1 0x04
  74. #define MPU_M2_19P2_ES1 0x01
  75. #define MPU_M_19P2_ES2 0x271
  76. #define MPU_N_19P2_ES2 0x17
  77. #define MPU_FSEL_19P2_ES2 0x03
  78. #define MPU_M2_19P2_ES2 0x01
  79. #define MPU_M_19P2 0x14C
  80. #define MPU_N_19P2 0x17
  81. #define MPU_FSEL_19P2 0x03
  82. #define MPU_M2_19P2 0x01
  83. #define MPU_M_26_ES1 0x17D
  84. #define MPU_N_26_ES1 0x19
  85. #define MPU_FSEL_26_ES1 0x03
  86. #define MPU_M2_26_ES1 0x01
  87. #define MPU_M_26_ES2 0x0FA
  88. #define MPU_N_26_ES2 0x0C
  89. #define MPU_FSEL_26_ES2 0x07
  90. #define MPU_M2_26_ES2 0x01
  91. #define MPU_M_26 0x085
  92. #define MPU_N_26 0x0C
  93. #define MPU_FSEL_26 0x07
  94. #define MPU_M2_26 0x01
  95. #define MPU_M_38P4_ES1 0x1FA
  96. #define MPU_N_38P4_ES1 0x32
  97. #define MPU_FSEL_38P4_ES1 0x03
  98. #define MPU_M2_38P4_ES1 0x01
  99. #define MPU_M_38P4_ES2 0x271
  100. #define MPU_N_38P4_ES2 0x2F
  101. #define MPU_FSEL_38P4_ES2 0x03
  102. #define MPU_M2_38P4_ES2 0x01
  103. #define MPU_M_38P4 0x14C
  104. #define MPU_N_38P4 0x2F
  105. #define MPU_FSEL_38P4 0x03
  106. #define MPU_M2_38P4 0x01
  107. /* IVA DPLL */
  108. #define IVA_M_12_ES1 0x07D
  109. #define IVA_N_12_ES1 0x05
  110. #define IVA_FSEL_12_ES1 0x07
  111. #define IVA_M2_12_ES1 0x01
  112. #define IVA_M_12_ES2 0x0B4
  113. #define IVA_N_12_ES2 0x05
  114. #define IVA_FSEL_12_ES2 0x07
  115. #define IVA_M2_12_ES2 0x01
  116. #define IVA_M_12 0x085
  117. #define IVA_N_12 0x05
  118. #define IVA_FSEL_12 0x07
  119. #define IVA_M2_12 0x01
  120. #define IVA_M_13_ES1 0x0FA
  121. #define IVA_N_13_ES1 0x0C
  122. #define IVA_FSEL_13_ES1 0x03
  123. #define IVA_M2_13_ES1 0x01
  124. #define IVA_M_13_ES2 0x168
  125. #define IVA_N_13_ES2 0x0C
  126. #define IVA_FSEL_13_ES2 0x03
  127. #define IVA_M2_13_ES2 0x01
  128. #define IVA_M_13 0x10A
  129. #define IVA_N_13 0x0C
  130. #define IVA_FSEL_13 0x03
  131. #define IVA_M2_13 0x01
  132. #define IVA_M_19P2_ES1 0x082
  133. #define IVA_N_19P2_ES1 0x09
  134. #define IVA_FSEL_19P2_ES1 0x07
  135. #define IVA_M2_19P2_ES1 0x01
  136. #define IVA_M_19P2_ES2 0x0E1
  137. #define IVA_N_19P2_ES2 0x0B
  138. #define IVA_FSEL_19P2_ES2 0x06
  139. #define IVA_M2_19P2_ES2 0x01
  140. #define IVA_M_19P2 0x14C
  141. #define IVA_N_19P2 0x17
  142. #define IVA_FSEL_19P2 0x03
  143. #define IVA_M2_19P2 0x01
  144. #define IVA_M_26_ES1 0x07D
  145. #define IVA_N_26_ES1 0x0C
  146. #define IVA_FSEL_26_ES1 0x07
  147. #define IVA_M2_26_ES1 0x01
  148. #define IVA_M_26_ES2 0x0B4
  149. #define IVA_N_26_ES2 0x0C
  150. #define IVA_FSEL_26_ES2 0x07
  151. #define IVA_M2_26_ES2 0x01
  152. #define IVA_M_26 0x085
  153. #define IVA_N_26 0x0C
  154. #define IVA_FSEL_26 0x07
  155. #define IVA_M2_26 0x01
  156. #define IVA_M_38P4_ES1 0x13F
  157. #define IVA_N_38P4_ES1 0x30
  158. #define IVA_FSEL_38P4_ES1 0x03
  159. #define IVA_M2_38P4_ES1 0x01
  160. #define IVA_M_38P4_ES2 0x0E1
  161. #define IVA_N_38P4_ES2 0x17
  162. #define IVA_FSEL_38P4_ES2 0x06
  163. #define IVA_M2_38P4_ES2 0x01
  164. #define IVA_M_38P4 0x14C
  165. #define IVA_N_38P4 0x2F
  166. #define IVA_FSEL_38P4 0x03
  167. #define IVA_M2_38P4 0x01
  168. /* CORE DPLL */
  169. #define CORE_M_12 0xA6
  170. #define CORE_N_12 0x05
  171. #define CORE_FSEL_12 0x07
  172. #define CORE_M2_12 0x01 /* M3 of 2 */
  173. #define CORE_M_12_ES1 0x19F
  174. #define CORE_N_12_ES1 0x0E
  175. #define CORE_FSL_12_ES1 0x03
  176. #define CORE_M2_12_ES1 0x1 /* M3 of 2 */
  177. #define CORE_M_13 0x14C
  178. #define CORE_N_13 0x0C
  179. #define CORE_FSEL_13 0x03
  180. #define CORE_M2_13 0x01 /* M3 of 2 */
  181. #define CORE_M_13_ES1 0x1B2
  182. #define CORE_N_13_ES1 0x10
  183. #define CORE_FSL_13_ES1 0x03
  184. #define CORE_M2_13_ES1 0x01 /* M3 of 2 */
  185. #define CORE_M_19P2 0x19F
  186. #define CORE_N_19P2 0x17
  187. #define CORE_FSEL_19P2 0x03
  188. #define CORE_M2_19P2 0x01 /* M3 of 2 */
  189. #define CORE_M_19P2_ES1 0x19F
  190. #define CORE_N_19P2_ES1 0x17
  191. #define CORE_FSL_19P2_ES1 0x03
  192. #define CORE_M2_19P2_ES1 0x01 /* M3 of 2 */
  193. #define CORE_M_26 0xA6
  194. #define CORE_N_26 0x0C
  195. #define CORE_FSEL_26 0x07
  196. #define CORE_M2_26 0x01 /* M3 of 2 */
  197. #define CORE_M_26_ES1 0x1B2
  198. #define CORE_N_26_ES1 0x21
  199. #define CORE_FSL_26_ES1 0x03
  200. #define CORE_M2_26_ES1 0x01 /* M3 of 2 */
  201. #define CORE_M_38P4 0x19F
  202. #define CORE_N_38P4 0x2F
  203. #define CORE_FSEL_38P4 0x03
  204. #define CORE_M2_38P4 0x01 /* M3 of 2 */
  205. #define CORE_M_38P4_ES1 0x19F
  206. #define CORE_N_38P4_ES1 0x2F
  207. #define CORE_FSL_38P4_ES1 0x03
  208. #define CORE_M2_38P4_ES1 0x01 /* M3 of 2 */
  209. /* PER DPLL */
  210. #define PER_M_12 0xD8
  211. #define PER_N_12 0x05
  212. #define PER_FSEL_12 0x07
  213. #define PER_M2_12 0x09
  214. #define PER_M_13 0x1B0
  215. #define PER_N_13 0x0C
  216. #define PER_FSEL_13 0x03
  217. #define PER_M2_13 0x09
  218. #define PER_M_19P2 0xE1
  219. #define PER_N_19P2 0x09
  220. #define PER_FSEL_19P2 0x07
  221. #define PER_M2_19P2 0x09
  222. #define PER_M_26 0xD8
  223. #define PER_N_26 0x0C
  224. #define PER_FSEL_26 0x07
  225. #define PER_M2_26 0x09
  226. #define PER_M_38P4 0xE1
  227. #define PER_N_38P4 0x13
  228. #define PER_FSEL_38P4 0x07
  229. #define PER_M2_38P4 0x09
  230. #endif /* endif _CLOCKS_OMAP3_H_ */