regs-clkctrl-mx23.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. /*
  2. * Freescale CLKCTRL Register Definitions
  3. *
  4. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
  5. * Copyright 2008-2010 Freescale Semiconductor, Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. * This file is created by xml file. Don't Edit it.
  22. *
  23. * Xml Revision: 1.48
  24. * Template revision: 26195
  25. */
  26. #ifndef __REGS_CLKCTRL_MX23_H__
  27. #define __REGS_CLKCTRL_MX23_H__
  28. #define HW_CLKCTRL_PLLCTRL0 (0x00000000)
  29. #define HW_CLKCTRL_PLLCTRL0_SET (0x00000004)
  30. #define HW_CLKCTRL_PLLCTRL0_CLR (0x00000008)
  31. #define HW_CLKCTRL_PLLCTRL0_TOG (0x0000000c)
  32. #define BP_CLKCTRL_PLLCTRL0_LFR_SEL 28
  33. #define BM_CLKCTRL_PLLCTRL0_LFR_SEL 0x30000000
  34. #define BF_CLKCTRL_PLLCTRL0_LFR_SEL(v) \
  35. (((v) << 28) & BM_CLKCTRL_PLLCTRL0_LFR_SEL)
  36. #define BV_CLKCTRL_PLLCTRL0_LFR_SEL__DEFAULT 0x0
  37. #define BV_CLKCTRL_PLLCTRL0_LFR_SEL__TIMES_2 0x1
  38. #define BV_CLKCTRL_PLLCTRL0_LFR_SEL__TIMES_05 0x2
  39. #define BV_CLKCTRL_PLLCTRL0_LFR_SEL__UNDEFINED 0x3
  40. #define BP_CLKCTRL_PLLCTRL0_CP_SEL 24
  41. #define BM_CLKCTRL_PLLCTRL0_CP_SEL 0x03000000
  42. #define BF_CLKCTRL_PLLCTRL0_CP_SEL(v) \
  43. (((v) << 24) & BM_CLKCTRL_PLLCTRL0_CP_SEL)
  44. #define BV_CLKCTRL_PLLCTRL0_CP_SEL__DEFAULT 0x0
  45. #define BV_CLKCTRL_PLLCTRL0_CP_SEL__TIMES_2 0x1
  46. #define BV_CLKCTRL_PLLCTRL0_CP_SEL__TIMES_05 0x2
  47. #define BV_CLKCTRL_PLLCTRL0_CP_SEL__UNDEFINED 0x3
  48. #define BP_CLKCTRL_PLLCTRL0_DIV_SEL 20
  49. #define BM_CLKCTRL_PLLCTRL0_DIV_SEL 0x00300000
  50. #define BF_CLKCTRL_PLLCTRL0_DIV_SEL(v) \
  51. (((v) << 20) & BM_CLKCTRL_PLLCTRL0_DIV_SEL)
  52. #define BV_CLKCTRL_PLLCTRL0_DIV_SEL__DEFAULT 0x0
  53. #define BV_CLKCTRL_PLLCTRL0_DIV_SEL__LOWER 0x1
  54. #define BV_CLKCTRL_PLLCTRL0_DIV_SEL__LOWEST 0x2
  55. #define BV_CLKCTRL_PLLCTRL0_DIV_SEL__UNDEFINED 0x3
  56. #define BM_CLKCTRL_PLLCTRL0_EN_USB_CLKS 0x00040000
  57. #define BM_CLKCTRL_PLLCTRL0_POWER 0x00010000
  58. #define HW_CLKCTRL_PLLCTRL1 (0x00000010)
  59. #define BM_CLKCTRL_PLLCTRL1_LOCK 0x80000000
  60. #define BM_CLKCTRL_PLLCTRL1_FORCE_LOCK 0x40000000
  61. #define BP_CLKCTRL_PLLCTRL1_LOCK_COUNT 0
  62. #define BM_CLKCTRL_PLLCTRL1_LOCK_COUNT 0x0000FFFF
  63. #define BF_CLKCTRL_PLLCTRL1_LOCK_COUNT(v) \
  64. (((v) << 0) & BM_CLKCTRL_PLLCTRL1_LOCK_COUNT)
  65. #define HW_CLKCTRL_CPU (0x00000020)
  66. #define HW_CLKCTRL_CPU_SET (0x00000024)
  67. #define HW_CLKCTRL_CPU_CLR (0x00000028)
  68. #define HW_CLKCTRL_CPU_TOG (0x0000002c)
  69. #define BM_CLKCTRL_CPU_BUSY_REF_XTAL 0x20000000
  70. #define BM_CLKCTRL_CPU_BUSY_REF_CPU 0x10000000
  71. #define BM_CLKCTRL_CPU_DIV_XTAL_FRAC_EN 0x04000000
  72. #define BP_CLKCTRL_CPU_DIV_XTAL 16
  73. #define BM_CLKCTRL_CPU_DIV_XTAL 0x03FF0000
  74. #define BF_CLKCTRL_CPU_DIV_XTAL(v) \
  75. (((v) << 16) & BM_CLKCTRL_CPU_DIV_XTAL)
  76. #define BM_CLKCTRL_CPU_INTERRUPT_WAIT 0x00001000
  77. #define BM_CLKCTRL_CPU_DIV_CPU_FRAC_EN 0x00000400
  78. #define BP_CLKCTRL_CPU_DIV_CPU 0
  79. #define BM_CLKCTRL_CPU_DIV_CPU 0x0000003F
  80. #define BF_CLKCTRL_CPU_DIV_CPU(v) \
  81. (((v) << 0) & BM_CLKCTRL_CPU_DIV_CPU)
  82. #define HW_CLKCTRL_HBUS (0x00000030)
  83. #define HW_CLKCTRL_HBUS_SET (0x00000034)
  84. #define HW_CLKCTRL_HBUS_CLR (0x00000038)
  85. #define HW_CLKCTRL_HBUS_TOG (0x0000003c)
  86. #define BM_CLKCTRL_HBUS_BUSY 0x20000000
  87. #define BM_CLKCTRL_HBUS_DCP_AS_ENABLE 0x10000000
  88. #define BM_CLKCTRL_HBUS_PXP_AS_ENABLE 0x08000000
  89. #define BM_CLKCTRL_HBUS_APBHDMA_AS_ENABLE 0x04000000
  90. #define BM_CLKCTRL_HBUS_APBXDMA_AS_ENABLE 0x02000000
  91. #define BM_CLKCTRL_HBUS_TRAFFIC_JAM_AS_ENABLE 0x01000000
  92. #define BM_CLKCTRL_HBUS_TRAFFIC_AS_ENABLE 0x00800000
  93. #define BM_CLKCTRL_HBUS_CPU_DATA_AS_ENABLE 0x00400000
  94. #define BM_CLKCTRL_HBUS_CPU_INSTR_AS_ENABLE 0x00200000
  95. #define BM_CLKCTRL_HBUS_AUTO_SLOW_MODE 0x00100000
  96. #define BP_CLKCTRL_HBUS_SLOW_DIV 16
  97. #define BM_CLKCTRL_HBUS_SLOW_DIV 0x00070000
  98. #define BF_CLKCTRL_HBUS_SLOW_DIV(v) \
  99. (((v) << 16) & BM_CLKCTRL_HBUS_SLOW_DIV)
  100. #define BV_CLKCTRL_HBUS_SLOW_DIV__BY1 0x0
  101. #define BV_CLKCTRL_HBUS_SLOW_DIV__BY2 0x1
  102. #define BV_CLKCTRL_HBUS_SLOW_DIV__BY4 0x2
  103. #define BV_CLKCTRL_HBUS_SLOW_DIV__BY8 0x3
  104. #define BV_CLKCTRL_HBUS_SLOW_DIV__BY16 0x4
  105. #define BV_CLKCTRL_HBUS_SLOW_DIV__BY32 0x5
  106. #define BM_CLKCTRL_HBUS_DIV_FRAC_EN 0x00000020
  107. #define BP_CLKCTRL_HBUS_DIV 0
  108. #define BM_CLKCTRL_HBUS_DIV 0x0000001F
  109. #define BF_CLKCTRL_HBUS_DIV(v) \
  110. (((v) << 0) & BM_CLKCTRL_HBUS_DIV)
  111. #define HW_CLKCTRL_XBUS (0x00000040)
  112. #define BM_CLKCTRL_XBUS_BUSY 0x80000000
  113. #define BM_CLKCTRL_XBUS_DIV_FRAC_EN 0x00000400
  114. #define BP_CLKCTRL_XBUS_DIV 0
  115. #define BM_CLKCTRL_XBUS_DIV 0x000003FF
  116. #define BF_CLKCTRL_XBUS_DIV(v) \
  117. (((v) << 0) & BM_CLKCTRL_XBUS_DIV)
  118. #define HW_CLKCTRL_XTAL (0x00000050)
  119. #define HW_CLKCTRL_XTAL_SET (0x00000054)
  120. #define HW_CLKCTRL_XTAL_CLR (0x00000058)
  121. #define HW_CLKCTRL_XTAL_TOG (0x0000005c)
  122. #define BP_CLKCTRL_XTAL_UART_CLK_GATE 31
  123. #define BM_CLKCTRL_XTAL_UART_CLK_GATE 0x80000000
  124. #define BP_CLKCTRL_XTAL_FILT_CLK24M_GATE 30
  125. #define BM_CLKCTRL_XTAL_FILT_CLK24M_GATE 0x40000000
  126. #define BP_CLKCTRL_XTAL_PWM_CLK24M_GATE 29
  127. #define BM_CLKCTRL_XTAL_PWM_CLK24M_GATE 0x20000000
  128. #define BM_CLKCTRL_XTAL_DRI_CLK24M_GATE 0x10000000
  129. #define BM_CLKCTRL_XTAL_DIGCTRL_CLK1M_GATE 0x08000000
  130. #define BP_CLKCTRL_XTAL_TIMROT_CLK32K_GATE 26
  131. #define BM_CLKCTRL_XTAL_TIMROT_CLK32K_GATE 0x04000000
  132. #define BP_CLKCTRL_XTAL_DIV_UART 0
  133. #define BM_CLKCTRL_XTAL_DIV_UART 0x00000003
  134. #define BF_CLKCTRL_XTAL_DIV_UART(v) \
  135. (((v) << 0) & BM_CLKCTRL_XTAL_DIV_UART)
  136. #define HW_CLKCTRL_PIX (0x00000060)
  137. #define BP_CLKCTRL_PIX_CLKGATE 31
  138. #define BM_CLKCTRL_PIX_CLKGATE 0x80000000
  139. #define BM_CLKCTRL_PIX_BUSY 0x20000000
  140. #define BM_CLKCTRL_PIX_DIV_FRAC_EN 0x00001000
  141. #define BP_CLKCTRL_PIX_DIV 0
  142. #define BM_CLKCTRL_PIX_DIV 0x00000FFF
  143. #define BF_CLKCTRL_PIX_DIV(v) \
  144. (((v) << 0) & BM_CLKCTRL_PIX_DIV)
  145. #define HW_CLKCTRL_SSP (0x00000070)
  146. #define BP_CLKCTRL_SSP_CLKGATE 31
  147. #define BM_CLKCTRL_SSP_CLKGATE 0x80000000
  148. #define BM_CLKCTRL_SSP_BUSY 0x20000000
  149. #define BM_CLKCTRL_SSP_DIV_FRAC_EN 0x00000200
  150. #define BP_CLKCTRL_SSP_DIV 0
  151. #define BM_CLKCTRL_SSP_DIV 0x000001FF
  152. #define BF_CLKCTRL_SSP_DIV(v) \
  153. (((v) << 0) & BM_CLKCTRL_SSP_DIV)
  154. #define HW_CLKCTRL_GPMI (0x00000080)
  155. #define BP_CLKCTRL_GPMI_CLKGATE 31
  156. #define BM_CLKCTRL_GPMI_CLKGATE 0x80000000
  157. #define BM_CLKCTRL_GPMI_BUSY 0x20000000
  158. #define BM_CLKCTRL_GPMI_DIV_FRAC_EN 0x00000400
  159. #define BP_CLKCTRL_GPMI_DIV 0
  160. #define BM_CLKCTRL_GPMI_DIV 0x000003FF
  161. #define BF_CLKCTRL_GPMI_DIV(v) \
  162. (((v) << 0) & BM_CLKCTRL_GPMI_DIV)
  163. #define HW_CLKCTRL_SPDIF (0x00000090)
  164. #define BM_CLKCTRL_SPDIF_CLKGATE 0x80000000
  165. #define HW_CLKCTRL_EMI (0x000000a0)
  166. #define BP_CLKCTRL_EMI_CLKGATE 31
  167. #define BM_CLKCTRL_EMI_CLKGATE 0x80000000
  168. #define BM_CLKCTRL_EMI_SYNC_MODE_EN 0x40000000
  169. #define BM_CLKCTRL_EMI_BUSY_REF_XTAL 0x20000000
  170. #define BM_CLKCTRL_EMI_BUSY_REF_EMI 0x10000000
  171. #define BM_CLKCTRL_EMI_BUSY_REF_CPU 0x08000000
  172. #define BM_CLKCTRL_EMI_BUSY_SYNC_MODE 0x04000000
  173. #define BM_CLKCTRL_EMI_BUSY_DCC_RESYNC 0x00020000
  174. #define BM_CLKCTRL_EMI_DCC_RESYNC_ENABLE 0x00010000
  175. #define BP_CLKCTRL_EMI_DIV_XTAL 8
  176. #define BM_CLKCTRL_EMI_DIV_XTAL 0x00000F00
  177. #define BF_CLKCTRL_EMI_DIV_XTAL(v) \
  178. (((v) << 8) & BM_CLKCTRL_EMI_DIV_XTAL)
  179. #define BP_CLKCTRL_EMI_DIV_EMI 0
  180. #define BM_CLKCTRL_EMI_DIV_EMI 0x0000003F
  181. #define BF_CLKCTRL_EMI_DIV_EMI(v) \
  182. (((v) << 0) & BM_CLKCTRL_EMI_DIV_EMI)
  183. #define HW_CLKCTRL_IR (0x000000b0)
  184. #define BM_CLKCTRL_IR_CLKGATE 0x80000000
  185. #define BM_CLKCTRL_IR_AUTO_DIV 0x20000000
  186. #define BM_CLKCTRL_IR_IR_BUSY 0x10000000
  187. #define BM_CLKCTRL_IR_IROV_BUSY 0x08000000
  188. #define BP_CLKCTRL_IR_IROV_DIV 16
  189. #define BM_CLKCTRL_IR_IROV_DIV 0x01FF0000
  190. #define BF_CLKCTRL_IR_IROV_DIV(v) \
  191. (((v) << 16) & BM_CLKCTRL_IR_IROV_DIV)
  192. #define BP_CLKCTRL_IR_IR_DIV 0
  193. #define BM_CLKCTRL_IR_IR_DIV 0x000003FF
  194. #define BF_CLKCTRL_IR_IR_DIV(v) \
  195. (((v) << 0) & BM_CLKCTRL_IR_IR_DIV)
  196. #define HW_CLKCTRL_SAIF (0x000000c0)
  197. #define BM_CLKCTRL_SAIF_CLKGATE 0x80000000
  198. #define BM_CLKCTRL_SAIF_BUSY 0x20000000
  199. #define BM_CLKCTRL_SAIF_DIV_FRAC_EN 0x00010000
  200. #define BP_CLKCTRL_SAIF_DIV 0
  201. #define BM_CLKCTRL_SAIF_DIV 0x0000FFFF
  202. #define BF_CLKCTRL_SAIF_DIV(v) \
  203. (((v) << 0) & BM_CLKCTRL_SAIF_DIV)
  204. #define HW_CLKCTRL_TV (0x000000d0)
  205. #define BM_CLKCTRL_TV_CLK_TV108M_GATE 0x80000000
  206. #define BM_CLKCTRL_TV_CLK_TV_GATE 0x40000000
  207. #define HW_CLKCTRL_ETM (0x000000e0)
  208. #define BM_CLKCTRL_ETM_CLKGATE 0x80000000
  209. #define BM_CLKCTRL_ETM_BUSY 0x20000000
  210. #define BM_CLKCTRL_ETM_DIV_FRAC_EN 0x00000040
  211. #define BP_CLKCTRL_ETM_DIV 0
  212. #define BM_CLKCTRL_ETM_DIV 0x0000003F
  213. #define BF_CLKCTRL_ETM_DIV(v) \
  214. (((v) << 0) & BM_CLKCTRL_ETM_DIV)
  215. #define HW_CLKCTRL_FRAC (0x000000f0)
  216. #define HW_CLKCTRL_FRAC_SET (0x000000f4)
  217. #define HW_CLKCTRL_FRAC_CLR (0x000000f8)
  218. #define HW_CLKCTRL_FRAC_TOG (0x000000fc)
  219. #define BP_CLKCTRL_FRAC_CLKGATEIO 31
  220. #define BM_CLKCTRL_FRAC_CLKGATEIO 0x80000000
  221. #define BM_CLKCTRL_FRAC_IO_STABLE 0x40000000
  222. #define BP_CLKCTRL_FRAC_IOFRAC 24
  223. #define BM_CLKCTRL_FRAC_IOFRAC 0x3F000000
  224. #define BF_CLKCTRL_FRAC_IOFRAC(v) \
  225. (((v) << 24) & BM_CLKCTRL_FRAC_IOFRAC)
  226. #define BP_CLKCTRL_FRAC_CLKGATEPIX 23
  227. #define BM_CLKCTRL_FRAC_CLKGATEPIX 0x00800000
  228. #define BM_CLKCTRL_FRAC_PIX_STABLE 0x00400000
  229. #define BP_CLKCTRL_FRAC_PIXFRAC 16
  230. #define BM_CLKCTRL_FRAC_PIXFRAC 0x003F0000
  231. #define BF_CLKCTRL_FRAC_PIXFRAC(v) \
  232. (((v) << 16) & BM_CLKCTRL_FRAC_PIXFRAC)
  233. #define BP_CLKCTRL_FRAC_CLKGATEEMI 15
  234. #define BM_CLKCTRL_FRAC_CLKGATEEMI 0x00008000
  235. #define BM_CLKCTRL_FRAC_EMI_STABLE 0x00004000
  236. #define BP_CLKCTRL_FRAC_EMIFRAC 8
  237. #define BM_CLKCTRL_FRAC_EMIFRAC 0x00003F00
  238. #define BF_CLKCTRL_FRAC_EMIFRAC(v) \
  239. (((v) << 8) & BM_CLKCTRL_FRAC_EMIFRAC)
  240. #define BP_CLKCTRL_FRAC_CLKGATECPU 7
  241. #define BM_CLKCTRL_FRAC_CLKGATECPU 0x00000080
  242. #define BM_CLKCTRL_FRAC_CPU_STABLE 0x00000040
  243. #define BP_CLKCTRL_FRAC_CPUFRAC 0
  244. #define BM_CLKCTRL_FRAC_CPUFRAC 0x0000003F
  245. #define BF_CLKCTRL_FRAC_CPUFRAC(v) \
  246. (((v) << 0) & BM_CLKCTRL_FRAC_CPUFRAC)
  247. #define HW_CLKCTRL_FRAC1 (0x00000100)
  248. #define HW_CLKCTRL_FRAC1_SET (0x00000104)
  249. #define HW_CLKCTRL_FRAC1_CLR (0x00000108)
  250. #define HW_CLKCTRL_FRAC1_TOG (0x0000010c)
  251. #define BM_CLKCTRL_FRAC1_CLKGATEVID 0x80000000
  252. #define BM_CLKCTRL_FRAC1_VID_STABLE 0x40000000
  253. #define HW_CLKCTRL_CLKSEQ (0x00000110)
  254. #define HW_CLKCTRL_CLKSEQ_SET (0x00000114)
  255. #define HW_CLKCTRL_CLKSEQ_CLR (0x00000118)
  256. #define HW_CLKCTRL_CLKSEQ_TOG (0x0000011c)
  257. #define BM_CLKCTRL_CLKSEQ_BYPASS_ETM 0x00000100
  258. #define BM_CLKCTRL_CLKSEQ_BYPASS_CPU 0x00000080
  259. #define BM_CLKCTRL_CLKSEQ_BYPASS_EMI 0x00000040
  260. #define BM_CLKCTRL_CLKSEQ_BYPASS_SSP 0x00000020
  261. #define BM_CLKCTRL_CLKSEQ_BYPASS_GPMI 0x00000010
  262. #define BM_CLKCTRL_CLKSEQ_BYPASS_IR 0x00000008
  263. #define BM_CLKCTRL_CLKSEQ_BYPASS_PIX 0x00000002
  264. #define BM_CLKCTRL_CLKSEQ_BYPASS_SAIF 0x00000001
  265. #define HW_CLKCTRL_RESET (0x00000120)
  266. #define BM_CLKCTRL_RESET_CHIP 0x00000002
  267. #define BM_CLKCTRL_RESET_DIG 0x00000001
  268. #define HW_CLKCTRL_STATUS (0x00000130)
  269. #define BP_CLKCTRL_STATUS_CPU_LIMIT 30
  270. #define BM_CLKCTRL_STATUS_CPU_LIMIT 0xC0000000
  271. #define BF_CLKCTRL_STATUS_CPU_LIMIT(v) \
  272. (((v) << 30) & BM_CLKCTRL_STATUS_CPU_LIMIT)
  273. #define HW_CLKCTRL_VERSION (0x00000140)
  274. #define BP_CLKCTRL_VERSION_MAJOR 24
  275. #define BM_CLKCTRL_VERSION_MAJOR 0xFF000000
  276. #define BF_CLKCTRL_VERSION_MAJOR(v) \
  277. (((v) << 24) & BM_CLKCTRL_VERSION_MAJOR)
  278. #define BP_CLKCTRL_VERSION_MINOR 16
  279. #define BM_CLKCTRL_VERSION_MINOR 0x00FF0000
  280. #define BF_CLKCTRL_VERSION_MINOR(v) \
  281. (((v) << 16) & BM_CLKCTRL_VERSION_MINOR)
  282. #define BP_CLKCTRL_VERSION_STEP 0
  283. #define BM_CLKCTRL_VERSION_STEP 0x0000FFFF
  284. #define BF_CLKCTRL_VERSION_STEP(v) \
  285. (((v) << 0) & BM_CLKCTRL_VERSION_STEP)
  286. #endif /* __REGS_CLKCTRL_MX23_H__ */