hw_pllc_C6748.h 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. /**
  2. * \file hw_pllc_C6748.h
  3. *
  4. * \brief Hardware definitions for PLLC on C6748
  5. */
  6. /*
  7. * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
  8. */
  9. /*
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. *
  14. * Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. *
  17. * Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the
  20. * distribution.
  21. *
  22. * Neither the name of Texas Instruments Incorporated nor the names of
  23. * its contributors may be used to endorse or promote products derived
  24. * from this software without specific prior written permission.
  25. *
  26. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  31. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  32. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  33. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  34. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  35. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  36. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37. *
  38. */
  39. #ifndef _HW_PLLC_H_
  40. #define _HW_PLLC_H_
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. #define PLLC_REVID (0x0)
  45. #define PLLC_RSTYPE (0xE4)
  46. #define PLLC_PLLCTL (0x100)
  47. #define PLLC_OCSEL (0x104)
  48. #define PLLC_PLLM (0x110)
  49. #define PLLC_PREDIV (0x114)
  50. #define PLLC_PLLDIV1 (0x118)
  51. #define PLLC_PLLDIV2 (0x11C)
  52. #define PLLC_PLLDIV3 (0x120)
  53. #define PLLC_OSCDIV (0x124)
  54. #define PLLC_POSTDIV (0x128)
  55. #define PLLC_PLLCMD (0x138)
  56. #define PLLC_PLLSTAT (0x13C)
  57. #define PLLC_ALNCTL (0x140)
  58. #define PLLC_DCHANGE (0x144)
  59. #define PLLC_CKEN (0x148)
  60. #define PLLC_CKSTAT (0x14C)
  61. #define PLLC_SYSTAT (0x150)
  62. #define PLLC_PLLDIV4 (0x160)
  63. #define PLLC_PLLDIV5 (0x164)
  64. #define PLLC_PLLDIV6 (0x168)
  65. #define PLLC_PLLDIV7 (0x16C)
  66. #define PLLC_EMUCNT0 (0x1F0)
  67. #define PLLC_EMUCNT1 (0x1F4)
  68. /**************************************************************************\
  69. * Field Definition Macros
  70. \**************************************************************************/
  71. /* REVID */
  72. #define PLLC_REVID_REV (0xFFFFFFFFu)
  73. #define PLLC_REVID_REV_SHIFT (0x00000000u)
  74. /* RSTYPE */
  75. #define PLLC_RSTYPE_PLLSWRST (0x00000004u)
  76. #define PLLC_RSTYPE_PLLSWRST_SHIFT (0x00000002u)
  77. #define PLLC_RSTYPE_XWRST (0x00000002u)
  78. #define PLLC_RSTYPE_XWRST_SHIFT (0x00000001u)
  79. #define PLLC_RSTYPE_POR (0x00000001u)
  80. #define PLLC_RSTYPE_POR_SHIFT (0x00000000u)
  81. /* PLLCTL */
  82. #define PLLC_PLLCTL_EXTCLKSRC (0x00000200u)
  83. #define PLLC_PLLCTL_EXTCLKSRC_SHIFT (0x00000009u)
  84. #define PLLC_PLLCTL_CLKMODE (0x00000100u)
  85. #define PLLC_PLLCTL_CLKMODE_SHIFT (0x00000008u)
  86. #define PLLC_PLLCTL_PLLENSRC (0x00000020u)
  87. #define PLLC_PLLCTL_PLLENSRC_SHIFT (0x00000005u)
  88. #define PLLC_PLLCTL_PLLDIS (0x00000010u)
  89. #define PLLC_PLLCTL_PLLDIS_SHIFT (0x00000004u)
  90. #define PLLC_PLLCTL_PLLRST (0x00000008u)
  91. #define PLLC_PLLCTL_PLLRST_SHIFT (0x00000003u)
  92. #define PLLC_PLLCTL_PLLPWRDN (0x00000002u)
  93. #define PLLC_PLLCTL_PLLPWRDN_SHIFT (0x00000001u)
  94. #define PLLC_PLLCTL_PLLEN (0x00000001u)
  95. #define PLLC_PLLCTL_PLLEN_SHIFT (0x00000000u)
  96. /* OCSEL */
  97. #define PLLC_OCSEL_OCSRC (0x0000001Fu)
  98. #define PLLC_OCSEL_OCSRC_SHIFT (0x00000000u)
  99. /*----OCSRC Tokens----*/
  100. #define PLLC_OCSEL_OCSRC_CLKIN (0x00000014u)
  101. #define PLLC_OCSEL_OCSRC_SYSCLK1 (0x00000017u)
  102. #define PLLC_OCSEL_OCSRC_SYSCLK2 (0x00000018u)
  103. #define PLLC_OCSEL_OCSRC_SYSCLK3 (0x00000019u)
  104. #define PLLC_OCSEL_OCSRC_SYSCLK4 (0x0000001au)
  105. #define PLLC_OCSEL_OCSRC_SYSCLK5 (0x0000001bu)
  106. #define PLLC_OCSEL_OCSRC_SYSCLK6 (0x0000001cu)
  107. #define PLLC_OCSEL_OCSRC_SYSCLK7 (0x0000001du)
  108. #define PLLC_OCSEL_OCSRC_RSVD (0x0000001eu)
  109. /* PLLM */
  110. #define PLLC_PLLM_PLLM (0x0000001Fu)
  111. #define PLLC_PLLM_PLLM_SHIFT (0x00000000u)
  112. /* PREDIV */
  113. #define PLLC_PREDIV_PREDEN (0x00008000u)
  114. #define PLLC_PREDIV_PREDEN_SHIFT (0x0000000Fu)
  115. #define PLLC_PREDIV_RATIO (0x0000001Fu)
  116. #define PLLC_PREDIV_RATIO_SHIFT (0x00000000u)
  117. /* PLLDIV1 */
  118. #define PLLC_PLLDIV1_D1EN (0x00008000u)
  119. #define PLLC_PLLDIV1_D1EN_SHIFT (0x0000000Fu)
  120. #define PLLC_PLLDIV1_RATIO (0x0000001Fu)
  121. #define PLLC_PLLDIV1_RATIO_SHIFT (0x00000000u)
  122. /* PLLDIV2 */
  123. #define PLLC_PLLDIV2_D2EN (0x00008000u)
  124. #define PLLC_PLLDIV2_D2EN_SHIFT (0x0000000Fu)
  125. #define PLLC_PLLDIV2_RATIO (0x0000001Fu)
  126. #define PLLC_PLLDIV2_RATIO_SHIFT (0x00000000u)
  127. /* PLLDIV3 */
  128. #define PLLC_PLLDIV3_D3EN (0x00008000u)
  129. #define PLLC_PLLDIV3_D3EN_SHIFT (0x0000000Fu)
  130. #define PLLC_PLLDIV3_RATIO (0x0000001Fu)
  131. #define PLLC_PLLDIV3_RATIO_SHIFT (0x00000000u)
  132. /* OSCDIV */
  133. #define PLLC_OSCDIV_OD1EN (0x00008000u)
  134. #define PLLC_OSCDIV_OD1EN_SHIFT (0x0000000Fu)
  135. #define PLLC_OSCDIV_RATIO (0x0000001Fu)
  136. #define PLLC_OSCDIV_RATIO_SHIFT (0x00000000u)
  137. /* POSTDIV */
  138. #define PLLC_POSTDIV_POSTDEN (0x00008000u)
  139. #define PLLC_POSTDIV_POSTDEN_SHIFT (0x0000000Fu)
  140. #define PLLC_POSTDIV_RATIO (0x0000001Fu)
  141. #define PLLC_POSTDIV_RATIO_SHIFT (0x00000000u)
  142. /* PLLCMD */
  143. #define PLLC_PLLCMD_GOSET (0x00000001u)
  144. #define PLLC_PLLCMD_GOSET_SHIFT (0x00000000u)
  145. /* PLLSTAT */
  146. #define PLLC_PLLSTAT_STABLE (0x00000004u)
  147. #define PLLC_PLLSTAT_STABLE_SHIFT (0x00000002u)
  148. #define PLLC_PLLSTAT_GOSTAT (0x00000001u)
  149. #define PLLC_PLLSTAT_GOSTAT_SHIFT (0x00000000u)
  150. /* ALNCTL */
  151. #define PLLC_ALNCTL_ALN7 (0x00000040u)
  152. #define PLLC_ALNCTL_ALN7_SHIFT (0x00000006u)
  153. #define PLLC_ALNCTL_ALN6 (0x00000020u)
  154. #define PLLC_ALNCTL_ALN6_SHIFT (0x00000005u)
  155. #define PLLC_ALNCTL_ALN5 (0x00000010u)
  156. #define PLLC_ALNCTL_ALN5_SHIFT (0x00000004u)
  157. #define PLLC_ALNCTL_ALN4 (0x00000008u)
  158. #define PLLC_ALNCTL_ALN4_SHIFT (0x00000003u)
  159. #define PLLC_ALNCTL_ALN3 (0x00000004u)
  160. #define PLLC_ALNCTL_ALN3_SHIFT (0x00000002u)
  161. #define PLLC_ALNCTL_ALN2 (0x00000002u)
  162. #define PLLC_ALNCTL_ALN2_SHIFT (0x00000001u)
  163. #define PLLC_ALNCTL_ALN1 (0x00000001u)
  164. #define PLLC_ALNCTL_ALN1_SHIFT (0x00000000u)
  165. /* DCHANGE */
  166. #define PLLC_DCHANGE_SYS7 (0x00000040u)
  167. #define PLLC_DCHANGE_SYS7_SHIFT (0x00000006u)
  168. #define PLLC_DCHANGE_SYS6 (0x00000020u)
  169. #define PLLC_DCHANGE_SYS6_SHIFT (0x00000005u)
  170. #define PLLC_DCHANGE_SYS5 (0x00000010u)
  171. #define PLLC_DCHANGE_SYS5_SHIFT (0x00000004u)
  172. #define PLLC_DCHANGE_SYS4 (0x00000008u)
  173. #define PLLC_DCHANGE_SYS4_SHIFT (0x00000003u)
  174. #define PLLC_DCHANGE_SYS3 (0x00000004u)
  175. #define PLLC_DCHANGE_SYS3_SHIFT (0x00000002u)
  176. #define PLLC_DCHANGE_SYS2 (0x00000002u)
  177. #define PLLC_DCHANGE_SYS2_SHIFT (0x00000001u)
  178. #define PLLC_DCHANGE_SYS1 (0x00000001u)
  179. #define PLLC_DCHANGE_SYS1_SHIFT (0x00000000u)
  180. /* CKEN */
  181. #define PLLC_CKEN_OBSEN (0x00000002u)
  182. #define PLLC_CKEN_OBSEN_SHIFT (0x00000001u)
  183. #define PLLC_CKEN_AUXEN (0x00000001u)
  184. #define PLLC_CKEN_AUXEN_SHIFT (0x00000000u)
  185. /* CKSTAT */
  186. #define PLLC_CKSTAT_OBSON (0x00000002u)
  187. #define PLLC_CKSTAT_OBSON_SHIFT (0x00000001u)
  188. #define PLLC_CKSTAT_AUXEN (0x00000001u)
  189. #define PLLC_CKSTAT_AUXEN_SHIFT (0x00000000u)
  190. /* SYSTAT */
  191. #define PLLC_SYSTAT_SYS7ON (0x00000040u)
  192. #define PLLC_SYSTAT_SYS7ON_SHIFT (0x00000006u)
  193. #define PLLC_SYSTAT_SYS6ON (0x00000020u)
  194. #define PLLC_SYSTAT_SYS6ON_SHIFT (0x00000005u)
  195. #define PLLC_SYSTAT_SYS5ON (0x00000010u)
  196. #define PLLC_SYSTAT_SYS5ON_SHIFT (0x00000004u)
  197. #define PLLC_SYSTAT_SYS4ON (0x00000008u)
  198. #define PLLC_SYSTAT_SYS4ON_SHIFT (0x00000003u)
  199. #define PLLC_SYSTAT_SYS3ON (0x00000004u)
  200. #define PLLC_SYSTAT_SYS3ON_SHIFT (0x00000002u)
  201. #define PLLC_SYSTAT_SYS2ON (0x00000002u)
  202. #define PLLC_SYSTAT_SYS2ON_SHIFT (0x00000001u)
  203. #define PLLC_SYSTAT_SYS1ON (0x00000001u)
  204. #define PLLC_SYSTAT_SYS1ON_SHIFT (0x00000000u)
  205. /* PLLDIV4 */
  206. #define PLLC_PLLDIV4_D4EN (0x00008000u)
  207. #define PLLC_PLLDIV4_D4EN_SHIFT (0x0000000Fu)
  208. #define PLLC_PLLDIV4_RATIO (0x0000001Fu)
  209. #define PLLC_PLLDIV4_RATIO_SHIFT (0x00000000u)
  210. /* PLLDIV5 */
  211. #define PLLC_PLLDIV5_D5EN (0x00008000u)
  212. #define PLLC_PLLDIV5_D5EN_SHIFT (0x0000000Fu)
  213. #define PLLC_PLLDIV5_RATIO (0x0000001Fu)
  214. #define PLLC_PLLDIV5_RATIO_SHIFT (0x00000000u)
  215. /* PLLDIV6 */
  216. #define PLLC_PLLDIV6_D6EN (0x00008000u)
  217. #define PLLC_PLLDIV6_D6EN_SHIFT (0x0000000Fu)
  218. #define PLLC_PLLDIV6_RATIO (0x0000001Fu)
  219. #define PLLC_PLLDIV6_RATIO_SHIFT (0x00000000u)
  220. /* PLLDIV7 */
  221. #define PLLC_PLLDIV7_D7EN (0x00008000u)
  222. #define PLLC_PLLDIV7_D7EN_SHIFT (0x0000000Fu)
  223. #define PLLC_PLLDIV7_RATIO (0x0000001Fu)
  224. #define PLLC_PLLDIV7_RATIO_SHIFT (0x00000000u)
  225. /* EMUCNT0 */
  226. #define PLLC_EMUCNT0_COUNT (0xFFFFFFFFu)
  227. #define PLLC_EMUCNT0_COUNT_SHIFT (0x00000000u)
  228. /* EMUCNT1 */
  229. #define PLLC_EMUCNT1_COUNT (0xFFFFFFFFu)
  230. #define PLLC_EMUCNT1_COUNT_SHIFT (0x00000000u)
  231. #ifdef __cplusplus
  232. }
  233. #endif
  234. #endif