cm1_7xx.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. /*
  2. * DRA7xx CM1 instance offset macros
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Generated by code originally written by:
  7. * Paul Walmsley (paul@pwsan.com)
  8. * Rajendra Nayak (rnayak@ti.com)
  9. * Benoit Cousson (b-cousson@ti.com)
  10. *
  11. * This file is automatically generated from the OMAP hardware databases.
  12. * We respectfully ask that any modifications to this file be coordinated
  13. * with the public linux-omap@vger.kernel.org mailing list and the
  14. * authors above to ensure that the autogeneration scripts are kept
  15. * up-to-date with the file contents.
  16. *
  17. * This program is free software; you can redistribute it and/or modify
  18. * it under the terms of the GNU General Public License version 2 as
  19. * published by the Free Software Foundation.
  20. *
  21. */
  22. #ifndef __ARCH_ARM_MACH_OMAP2_CM1_7XX_H
  23. #define __ARCH_ARM_MACH_OMAP2_CM1_7XX_H
  24. /* CM1 base address */
  25. #define DRA7XX_CM_CORE_AON_BASE 0x4a005000
  26. #define DRA7XX_CM_CORE_AON_REGADDR(inst, reg) \
  27. OMAP2_L4_IO_ADDRESS(DRA7XX_CM_CORE_AON_BASE + (inst) + (reg))
  28. /* CM_CORE_AON instances */
  29. #define DRA7XX_CM_CORE_AON_OCP_SOCKET_INST 0x0000
  30. #define DRA7XX_CM_CORE_AON_CKGEN_INST 0x0100
  31. #define DRA7XX_CM_CORE_AON_MPU_INST 0x0300
  32. #define DRA7XX_CM_CORE_AON_DSP1_INST 0x0400
  33. #define DRA7XX_CM_CORE_AON_IPU_INST 0x0500
  34. #define DRA7XX_CM_CORE_AON_DSP2_INST 0x0600
  35. #define DRA7XX_CM_CORE_AON_EVE1_INST 0x0640
  36. #define DRA7XX_CM_CORE_AON_EVE2_INST 0x0680
  37. #define DRA7XX_CM_CORE_AON_EVE3_INST 0x06c0
  38. #define DRA7XX_CM_CORE_AON_EVE4_INST 0x0700
  39. #define DRA7XX_CM_CORE_AON_RTC_INST 0x0740
  40. #define DRA7XX_CM_CORE_AON_VPE_INST 0x0760
  41. #define DRA7XX_CM_CORE_AON_RESTORE_INST 0x0e00
  42. #define DRA7XX_CM_CORE_AON_INSTR_INST 0x0f00
  43. /* CM_CORE_AON clockdomain register offsets (from instance start) */
  44. #define DRA7XX_CM_CORE_AON_MPU_MPU_CDOFFS 0x0000
  45. #define DRA7XX_CM_CORE_AON_DSP1_DSP1_CDOFFS 0x0000
  46. #define DRA7XX_CM_CORE_AON_IPU_IPU1_CDOFFS 0x0000
  47. #define DRA7XX_CM_CORE_AON_IPU_IPU_CDOFFS 0x0040
  48. #define DRA7XX_CM_CORE_AON_DSP2_DSP2_CDOFFS 0x0000
  49. #define DRA7XX_CM_CORE_AON_EVE1_EVE1_CDOFFS 0x0000
  50. #define DRA7XX_CM_CORE_AON_EVE2_EVE2_CDOFFS 0x0000
  51. #define DRA7XX_CM_CORE_AON_EVE3_EVE3_CDOFFS 0x0000
  52. #define DRA7XX_CM_CORE_AON_EVE4_EVE4_CDOFFS 0x0000
  53. #define DRA7XX_CM_CORE_AON_RTC_RTC_CDOFFS 0x0000
  54. #define DRA7XX_CM_CORE_AON_VPE_VPE_CDOFFS 0x0000
  55. /* CM_CORE_AON */
  56. /* CM_CORE_AON.OCP_SOCKET_CM_CORE_AON register offsets */
  57. #define DRA7XX_REVISION_CM_CORE_AON_OFFSET 0x0000
  58. #define DRA7XX_CM_CM_CORE_AON_PROFILING_CLKCTRL_OFFSET 0x0040
  59. #define DRA7XX_CM_CM_CORE_AON_PROFILING_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_OCP_SOCKET_INST, 0x0040)
  60. #define DRA7XX_CM_CORE_AON_DEBUG_OUT_OFFSET 0x00ec
  61. #define DRA7XX_CM_CORE_AON_DEBUG_CFG0_OFFSET 0x00f0
  62. #define DRA7XX_CM_CORE_AON_DEBUG_CFG1_OFFSET 0x00f4
  63. #define DRA7XX_CM_CORE_AON_DEBUG_CFG2_OFFSET 0x00f8
  64. #define DRA7XX_CM_CORE_AON_DEBUG_CFG3_OFFSET 0x00fc
  65. /* CM_CORE_AON.CKGEN_CM_CORE_AON register offsets */
  66. #define DRA7XX_CM_CLKSEL_CORE_OFFSET 0x0000
  67. #define DRA7XX_CM_CLKSEL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0000)
  68. #define DRA7XX_CM_CLKSEL_ABE_OFFSET 0x0008
  69. #define DRA7XX_CM_CLKSEL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0008)
  70. #define DRA7XX_CM_DLL_CTRL_OFFSET 0x0010
  71. #define DRA7XX_CM_CLKMODE_DPLL_CORE_OFFSET 0x0020
  72. #define DRA7XX_CM_CLKMODE_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0020)
  73. #define DRA7XX_CM_IDLEST_DPLL_CORE_OFFSET 0x0024
  74. #define DRA7XX_CM_IDLEST_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0024)
  75. #define DRA7XX_CM_AUTOIDLE_DPLL_CORE_OFFSET 0x0028
  76. #define DRA7XX_CM_AUTOIDLE_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0028)
  77. #define DRA7XX_CM_CLKSEL_DPLL_CORE_OFFSET 0x002c
  78. #define DRA7XX_CM_CLKSEL_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x002c)
  79. #define DRA7XX_CM_DIV_M2_DPLL_CORE_OFFSET 0x0030
  80. #define DRA7XX_CM_DIV_M2_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0030)
  81. #define DRA7XX_CM_DIV_M3_DPLL_CORE_OFFSET 0x0034
  82. #define DRA7XX_CM_DIV_M3_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0034)
  83. #define DRA7XX_CM_DIV_H11_DPLL_CORE_OFFSET 0x0038
  84. #define DRA7XX_CM_DIV_H11_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0038)
  85. #define DRA7XX_CM_DIV_H12_DPLL_CORE_OFFSET 0x003c
  86. #define DRA7XX_CM_DIV_H12_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x003c)
  87. #define DRA7XX_CM_DIV_H13_DPLL_CORE_OFFSET 0x0040
  88. #define DRA7XX_CM_DIV_H13_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0040)
  89. #define DRA7XX_CM_DIV_H14_DPLL_CORE_OFFSET 0x0044
  90. #define DRA7XX_CM_DIV_H14_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0044)
  91. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_CORE_OFFSET 0x0048
  92. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_CORE_OFFSET 0x004c
  93. #define DRA7XX_CM_DIV_H21_DPLL_CORE_OFFSET 0x0050
  94. #define DRA7XX_CM_DIV_H21_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0050)
  95. #define DRA7XX_CM_DIV_H22_DPLL_CORE_OFFSET 0x0054
  96. #define DRA7XX_CM_DIV_H22_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0054)
  97. #define DRA7XX_CM_DIV_H23_DPLL_CORE_OFFSET 0x0058
  98. #define DRA7XX_CM_DIV_H23_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0058)
  99. #define DRA7XX_CM_DIV_H24_DPLL_CORE_OFFSET 0x005c
  100. #define DRA7XX_CM_DIV_H24_DPLL_CORE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x005c)
  101. #define DRA7XX_CM_CLKMODE_DPLL_MPU_OFFSET 0x0060
  102. #define DRA7XX_CM_CLKMODE_DPLL_MPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0060)
  103. #define DRA7XX_CM_IDLEST_DPLL_MPU_OFFSET 0x0064
  104. #define DRA7XX_CM_IDLEST_DPLL_MPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0064)
  105. #define DRA7XX_CM_AUTOIDLE_DPLL_MPU_OFFSET 0x0068
  106. #define DRA7XX_CM_AUTOIDLE_DPLL_MPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0068)
  107. #define DRA7XX_CM_CLKSEL_DPLL_MPU_OFFSET 0x006c
  108. #define DRA7XX_CM_CLKSEL_DPLL_MPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x006c)
  109. #define DRA7XX_CM_DIV_M2_DPLL_MPU_OFFSET 0x0070
  110. #define DRA7XX_CM_DIV_M2_DPLL_MPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0070)
  111. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_MPU_OFFSET 0x0088
  112. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_MPU_OFFSET 0x008c
  113. #define DRA7XX_CM_BYPCLK_DPLL_MPU_OFFSET 0x009c
  114. #define DRA7XX_CM_BYPCLK_DPLL_MPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x009c)
  115. #define DRA7XX_CM_CLKMODE_DPLL_IVA_OFFSET 0x00a0
  116. #define DRA7XX_CM_CLKMODE_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00a0)
  117. #define DRA7XX_CM_IDLEST_DPLL_IVA_OFFSET 0x00a4
  118. #define DRA7XX_CM_IDLEST_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00a4)
  119. #define DRA7XX_CM_AUTOIDLE_DPLL_IVA_OFFSET 0x00a8
  120. #define DRA7XX_CM_AUTOIDLE_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00a8)
  121. #define DRA7XX_CM_CLKSEL_DPLL_IVA_OFFSET 0x00ac
  122. #define DRA7XX_CM_CLKSEL_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00ac)
  123. #define DRA7XX_CM_DIV_M2_DPLL_IVA_OFFSET 0x00b0
  124. #define DRA7XX_CM_DIV_M2_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00b0)
  125. #define DRA7XX_CM_DIV_M3_DPLL_IVA_OFFSET 0x00b4
  126. #define DRA7XX_CM_DIV_M3_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00b4)
  127. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_IVA_OFFSET 0x00c8
  128. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_IVA_OFFSET 0x00cc
  129. #define DRA7XX_CM_BYPCLK_DPLL_IVA_OFFSET 0x00dc
  130. #define DRA7XX_CM_BYPCLK_DPLL_IVA DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00dc)
  131. #define DRA7XX_CM_CLKMODE_DPLL_ABE_OFFSET 0x00e0
  132. #define DRA7XX_CM_CLKMODE_DPLL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00e0)
  133. #define DRA7XX_CM_IDLEST_DPLL_ABE_OFFSET 0x00e4
  134. #define DRA7XX_CM_IDLEST_DPLL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00e4)
  135. #define DRA7XX_CM_AUTOIDLE_DPLL_ABE_OFFSET 0x00e8
  136. #define DRA7XX_CM_AUTOIDLE_DPLL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00e8)
  137. #define DRA7XX_CM_CLKSEL_DPLL_ABE_OFFSET 0x00ec
  138. #define DRA7XX_CM_CLKSEL_DPLL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00ec)
  139. #define DRA7XX_CM_DIV_M2_DPLL_ABE_OFFSET 0x00f0
  140. #define DRA7XX_CM_DIV_M2_DPLL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00f0)
  141. #define DRA7XX_CM_DIV_M3_DPLL_ABE_OFFSET 0x00f4
  142. #define DRA7XX_CM_DIV_M3_DPLL_ABE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x00f4)
  143. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_ABE_OFFSET 0x0108
  144. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_ABE_OFFSET 0x010c
  145. #define DRA7XX_CM_CLKMODE_DPLL_DDR_OFFSET 0x0110
  146. #define DRA7XX_CM_CLKMODE_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0110)
  147. #define DRA7XX_CM_IDLEST_DPLL_DDR_OFFSET 0x0114
  148. #define DRA7XX_CM_IDLEST_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0114)
  149. #define DRA7XX_CM_AUTOIDLE_DPLL_DDR_OFFSET 0x0118
  150. #define DRA7XX_CM_AUTOIDLE_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0118)
  151. #define DRA7XX_CM_CLKSEL_DPLL_DDR_OFFSET 0x011c
  152. #define DRA7XX_CM_CLKSEL_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x011c)
  153. #define DRA7XX_CM_DIV_M2_DPLL_DDR_OFFSET 0x0120
  154. #define DRA7XX_CM_DIV_M2_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0120)
  155. #define DRA7XX_CM_DIV_M3_DPLL_DDR_OFFSET 0x0124
  156. #define DRA7XX_CM_DIV_M3_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0124)
  157. #define DRA7XX_CM_DIV_H11_DPLL_DDR_OFFSET 0x0128
  158. #define DRA7XX_CM_DIV_H11_DPLL_DDR DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0128)
  159. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_DDR_OFFSET 0x012c
  160. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_DDR_OFFSET 0x0130
  161. #define DRA7XX_CM_CLKMODE_DPLL_DSP_OFFSET 0x0134
  162. #define DRA7XX_CM_CLKMODE_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0134)
  163. #define DRA7XX_CM_IDLEST_DPLL_DSP_OFFSET 0x0138
  164. #define DRA7XX_CM_IDLEST_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0138)
  165. #define DRA7XX_CM_AUTOIDLE_DPLL_DSP_OFFSET 0x013c
  166. #define DRA7XX_CM_AUTOIDLE_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x013c)
  167. #define DRA7XX_CM_CLKSEL_DPLL_DSP_OFFSET 0x0140
  168. #define DRA7XX_CM_CLKSEL_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0140)
  169. #define DRA7XX_CM_DIV_M2_DPLL_DSP_OFFSET 0x0144
  170. #define DRA7XX_CM_DIV_M2_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0144)
  171. #define DRA7XX_CM_DIV_M3_DPLL_DSP_OFFSET 0x0148
  172. #define DRA7XX_CM_DIV_M3_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0148)
  173. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_DSP_OFFSET 0x014c
  174. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_DSP_OFFSET 0x0150
  175. #define DRA7XX_CM_BYPCLK_DPLL_DSP_OFFSET 0x0154
  176. #define DRA7XX_CM_BYPCLK_DPLL_DSP DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0154)
  177. #define DRA7XX_CM_SHADOW_FREQ_CONFIG1_OFFSET 0x0160
  178. #define DRA7XX_CM_SHADOW_FREQ_CONFIG2_OFFSET 0x0164
  179. #define DRA7XX_CM_DYN_DEP_PRESCAL_OFFSET 0x0170
  180. #define DRA7XX_CM_RESTORE_ST_OFFSET 0x0180
  181. #define DRA7XX_CM_CLKMODE_DPLL_EVE_OFFSET 0x0184
  182. #define DRA7XX_CM_CLKMODE_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0184)
  183. #define DRA7XX_CM_IDLEST_DPLL_EVE_OFFSET 0x0188
  184. #define DRA7XX_CM_IDLEST_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0188)
  185. #define DRA7XX_CM_AUTOIDLE_DPLL_EVE_OFFSET 0x018c
  186. #define DRA7XX_CM_AUTOIDLE_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x018c)
  187. #define DRA7XX_CM_CLKSEL_DPLL_EVE_OFFSET 0x0190
  188. #define DRA7XX_CM_CLKSEL_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0190)
  189. #define DRA7XX_CM_DIV_M2_DPLL_EVE_OFFSET 0x0194
  190. #define DRA7XX_CM_DIV_M2_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0194)
  191. #define DRA7XX_CM_DIV_M3_DPLL_EVE_OFFSET 0x0198
  192. #define DRA7XX_CM_DIV_M3_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x0198)
  193. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_EVE_OFFSET 0x019c
  194. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_EVE_OFFSET 0x01a0
  195. #define DRA7XX_CM_BYPCLK_DPLL_EVE_OFFSET 0x01a4
  196. #define DRA7XX_CM_BYPCLK_DPLL_EVE DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01a4)
  197. #define DRA7XX_CM_CLKMODE_DPLL_GMAC_OFFSET 0x01a8
  198. #define DRA7XX_CM_CLKMODE_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01a8)
  199. #define DRA7XX_CM_IDLEST_DPLL_GMAC_OFFSET 0x01ac
  200. #define DRA7XX_CM_IDLEST_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01ac)
  201. #define DRA7XX_CM_AUTOIDLE_DPLL_GMAC_OFFSET 0x01b0
  202. #define DRA7XX_CM_AUTOIDLE_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01b0)
  203. #define DRA7XX_CM_CLKSEL_DPLL_GMAC_OFFSET 0x01b4
  204. #define DRA7XX_CM_CLKSEL_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01b4)
  205. #define DRA7XX_CM_DIV_M2_DPLL_GMAC_OFFSET 0x01b8
  206. #define DRA7XX_CM_DIV_M2_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01b8)
  207. #define DRA7XX_CM_DIV_M3_DPLL_GMAC_OFFSET 0x01bc
  208. #define DRA7XX_CM_DIV_M3_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01bc)
  209. #define DRA7XX_CM_DIV_H11_DPLL_GMAC_OFFSET 0x01c0
  210. #define DRA7XX_CM_DIV_H11_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01c0)
  211. #define DRA7XX_CM_DIV_H12_DPLL_GMAC_OFFSET 0x01c4
  212. #define DRA7XX_CM_DIV_H12_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01c4)
  213. #define DRA7XX_CM_DIV_H13_DPLL_GMAC_OFFSET 0x01c8
  214. #define DRA7XX_CM_DIV_H13_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01c8)
  215. #define DRA7XX_CM_DIV_H14_DPLL_GMAC_OFFSET 0x01cc
  216. #define DRA7XX_CM_DIV_H14_DPLL_GMAC DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01cc)
  217. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_GMAC_OFFSET 0x01d0
  218. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_GMAC_OFFSET 0x01d4
  219. #define DRA7XX_CM_CLKMODE_DPLL_GPU_OFFSET 0x01d8
  220. #define DRA7XX_CM_CLKMODE_DPLL_GPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01d8)
  221. #define DRA7XX_CM_IDLEST_DPLL_GPU_OFFSET 0x01dc
  222. #define DRA7XX_CM_IDLEST_DPLL_GPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01dc)
  223. #define DRA7XX_CM_AUTOIDLE_DPLL_GPU_OFFSET 0x01e0
  224. #define DRA7XX_CM_AUTOIDLE_DPLL_GPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01e0)
  225. #define DRA7XX_CM_CLKSEL_DPLL_GPU_OFFSET 0x01e4
  226. #define DRA7XX_CM_CLKSEL_DPLL_GPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01e4)
  227. #define DRA7XX_CM_DIV_M2_DPLL_GPU_OFFSET 0x01e8
  228. #define DRA7XX_CM_DIV_M2_DPLL_GPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01e8)
  229. #define DRA7XX_CM_DIV_M3_DPLL_GPU_OFFSET 0x01ec
  230. #define DRA7XX_CM_DIV_M3_DPLL_GPU DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_CKGEN_INST, 0x01ec)
  231. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_GPU_OFFSET 0x01f0
  232. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_GPU_OFFSET 0x01f4
  233. /* CM_CORE_AON.MPU_CM_CORE_AON register offsets */
  234. #define DRA7XX_CM_MPU_CLKSTCTRL_OFFSET 0x0000
  235. #define DRA7XX_CM_MPU_STATICDEP_OFFSET 0x0004
  236. #define DRA7XX_CM_MPU_DYNAMICDEP_OFFSET 0x0008
  237. #define DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET 0x0020
  238. #define DRA7XX_CM_MPU_MPU_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_MPU_INST, 0x0020)
  239. #define DRA7XX_CM_MPU_MPU_MPU_DBG_CLKCTRL_OFFSET 0x0028
  240. #define DRA7XX_CM_MPU_MPU_MPU_DBG_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_MPU_INST, 0x0028)
  241. /* CM_CORE_AON.DSP1_CM_CORE_AON register offsets */
  242. #define DRA7XX_CM_DSP1_CLKSTCTRL_OFFSET 0x0000
  243. #define DRA7XX_CM_DSP1_STATICDEP_OFFSET 0x0004
  244. #define DRA7XX_CM_DSP1_DYNAMICDEP_OFFSET 0x0008
  245. #define DRA7XX_CM_DSP1_DSP1_CLKCTRL_OFFSET 0x0020
  246. #define DRA7XX_CM_DSP1_DSP1_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_DSP1_INST, 0x0020)
  247. /* CM_CORE_AON.IPU_CM_CORE_AON register offsets */
  248. #define DRA7XX_CM_IPU1_CLKSTCTRL_OFFSET 0x0000
  249. #define DRA7XX_CM_IPU1_STATICDEP_OFFSET 0x0004
  250. #define DRA7XX_CM_IPU1_DYNAMICDEP_OFFSET 0x0008
  251. #define DRA7XX_CM_IPU1_IPU1_CLKCTRL_OFFSET 0x0020
  252. #define DRA7XX_CM_IPU1_IPU1_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0020)
  253. #define DRA7XX_CM_IPU_CLKSTCTRL_OFFSET 0x0040
  254. #define DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET 0x0050
  255. #define DRA7XX_CM_IPU_MCASP1_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0050)
  256. #define DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET 0x0058
  257. #define DRA7XX_CM_IPU_TIMER5_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0058)
  258. #define DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET 0x0060
  259. #define DRA7XX_CM_IPU_TIMER6_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0060)
  260. #define DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET 0x0068
  261. #define DRA7XX_CM_IPU_TIMER7_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0068)
  262. #define DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET 0x0070
  263. #define DRA7XX_CM_IPU_TIMER8_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0070)
  264. #define DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET 0x0078
  265. #define DRA7XX_CM_IPU_I2C5_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0078)
  266. #define DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET 0x0080
  267. #define DRA7XX_CM_IPU_UART6_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_IPU_INST, 0x0080)
  268. /* CM_CORE_AON.DSP2_CM_CORE_AON register offsets */
  269. #define DRA7XX_CM_DSP2_CLKSTCTRL_OFFSET 0x0000
  270. #define DRA7XX_CM_DSP2_STATICDEP_OFFSET 0x0004
  271. #define DRA7XX_CM_DSP2_DYNAMICDEP_OFFSET 0x0008
  272. #define DRA7XX_CM_DSP2_DSP2_CLKCTRL_OFFSET 0x0020
  273. #define DRA7XX_CM_DSP2_DSP2_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_DSP2_INST, 0x0020)
  274. /* CM_CORE_AON.EVE1_CM_CORE_AON register offsets */
  275. #define DRA7XX_CM_EVE1_CLKSTCTRL_OFFSET 0x0000
  276. #define DRA7XX_CM_EVE1_STATICDEP_OFFSET 0x0004
  277. #define DRA7XX_CM_EVE1_EVE1_CLKCTRL_OFFSET 0x0020
  278. #define DRA7XX_CM_EVE1_EVE1_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_EVE1_INST, 0x0020)
  279. /* CM_CORE_AON.EVE2_CM_CORE_AON register offsets */
  280. #define DRA7XX_CM_EVE2_CLKSTCTRL_OFFSET 0x0000
  281. #define DRA7XX_CM_EVE2_STATICDEP_OFFSET 0x0004
  282. #define DRA7XX_CM_EVE2_EVE2_CLKCTRL_OFFSET 0x0020
  283. #define DRA7XX_CM_EVE2_EVE2_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_EVE2_INST, 0x0020)
  284. /* CM_CORE_AON.EVE3_CM_CORE_AON register offsets */
  285. #define DRA7XX_CM_EVE3_CLKSTCTRL_OFFSET 0x0000
  286. #define DRA7XX_CM_EVE3_STATICDEP_OFFSET 0x0004
  287. #define DRA7XX_CM_EVE3_EVE3_CLKCTRL_OFFSET 0x0020
  288. #define DRA7XX_CM_EVE3_EVE3_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_EVE3_INST, 0x0020)
  289. /* CM_CORE_AON.EVE4_CM_CORE_AON register offsets */
  290. #define DRA7XX_CM_EVE4_CLKSTCTRL_OFFSET 0x0000
  291. #define DRA7XX_CM_EVE4_STATICDEP_OFFSET 0x0004
  292. #define DRA7XX_CM_EVE4_EVE4_CLKCTRL_OFFSET 0x0020
  293. #define DRA7XX_CM_EVE4_EVE4_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_EVE4_INST, 0x0020)
  294. /* CM_CORE_AON.RTC_CM_CORE_AON register offsets */
  295. #define DRA7XX_CM_RTC_CLKSTCTRL_OFFSET 0x0000
  296. #define DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET 0x0004
  297. #define DRA7XX_CM_RTC_RTCSS_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_RTC_INST, 0x0004)
  298. /* CM_CORE_AON.VPE_CM_CORE_AON register offsets */
  299. #define DRA7XX_CM_VPE_CLKSTCTRL_OFFSET 0x0000
  300. #define DRA7XX_CM_VPE_VPE_CLKCTRL_OFFSET 0x0004
  301. #define DRA7XX_CM_VPE_VPE_CLKCTRL DRA7XX_CM_CORE_AON_REGADDR(DRA7XX_CM_CORE_AON_VPE_INST, 0x0004)
  302. #define DRA7XX_CM_VPE_STATICDEP_OFFSET 0x0008
  303. #endif