cm2_7xx.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. /*
  2. * DRA7xx CM2 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. #ifndef __ARCH_ARM_MACH_OMAP2_CM2_7XX_H
  22. #define __ARCH_ARM_MACH_OMAP2_CM2_7XX_H
  23. /* CM2 base address */
  24. #define DRA7XX_CM_CORE_BASE 0x4a008000
  25. #define DRA7XX_CM_CORE_REGADDR(inst, reg) \
  26. OMAP2_L4_IO_ADDRESS(DRA7XX_CM_CORE_BASE + (inst) + (reg))
  27. /* CM_CORE instances */
  28. #define DRA7XX_CM_CORE_OCP_SOCKET_INST 0x0000
  29. #define DRA7XX_CM_CORE_CKGEN_INST 0x0104
  30. #define DRA7XX_CM_CORE_COREAON_INST 0x0600
  31. #define DRA7XX_CM_CORE_CORE_INST 0x0700
  32. #define DRA7XX_CM_CORE_IVA_INST 0x0f00
  33. #define DRA7XX_CM_CORE_CAM_INST 0x1000
  34. #define DRA7XX_CM_CORE_DSS_INST 0x1100
  35. #define DRA7XX_CM_CORE_GPU_INST 0x1200
  36. #define DRA7XX_CM_CORE_L3INIT_INST 0x1300
  37. #define DRA7XX_CM_CORE_CUSTEFUSE_INST 0x1600
  38. #define DRA7XX_CM_CORE_L4PER_INST 0x1700
  39. #define DRA7XX_CM_CORE_RESTORE_INST 0x1e18
  40. /* CM_CORE clockdomain register offsets (from instance start) */
  41. #define DRA7XX_CM_CORE_COREAON_COREAON_CDOFFS 0x0000
  42. #define DRA7XX_CM_CORE_CORE_L3MAIN1_CDOFFS 0x0000
  43. #define DRA7XX_CM_CORE_CORE_IPU2_CDOFFS 0x0200
  44. #define DRA7XX_CM_CORE_CORE_DMA_CDOFFS 0x0300
  45. #define DRA7XX_CM_CORE_CORE_EMIF_CDOFFS 0x0400
  46. #define DRA7XX_CM_CORE_CORE_ATL_CDOFFS 0x0520
  47. #define DRA7XX_CM_CORE_CORE_L4CFG_CDOFFS 0x0600
  48. #define DRA7XX_CM_CORE_CORE_L3INSTR_CDOFFS 0x0700
  49. #define DRA7XX_CM_CORE_IVA_IVA_CDOFFS 0x0000
  50. #define DRA7XX_CM_CORE_CAM_CAM_CDOFFS 0x0000
  51. #define DRA7XX_CM_CORE_DSS_DSS_CDOFFS 0x0000
  52. #define DRA7XX_CM_CORE_GPU_GPU_CDOFFS 0x0000
  53. #define DRA7XX_CM_CORE_L3INIT_L3INIT_CDOFFS 0x0000
  54. #define DRA7XX_CM_CORE_L3INIT_PCIE_CDOFFS 0x00a0
  55. #define DRA7XX_CM_CORE_L3INIT_GMAC_CDOFFS 0x00c0
  56. #define DRA7XX_CM_CORE_CUSTEFUSE_CUSTEFUSE_CDOFFS 0x0000
  57. #define DRA7XX_CM_CORE_L4PER_L4PER_CDOFFS 0x0000
  58. #define DRA7XX_CM_CORE_L4PER_L4SEC_CDOFFS 0x0180
  59. #define DRA7XX_CM_CORE_L4PER_L4PER2_CDOFFS 0x01fc
  60. #define DRA7XX_CM_CORE_L4PER_L4PER3_CDOFFS 0x0210
  61. /* CM_CORE */
  62. /* CM_CORE.OCP_SOCKET_CM_CORE register offsets */
  63. #define DRA7XX_REVISION_CM_CORE_OFFSET 0x0000
  64. #define DRA7XX_CM_CM_CORE_PROFILING_CLKCTRL_OFFSET 0x0040
  65. #define DRA7XX_CM_CM_CORE_PROFILING_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_OCP_SOCKET_INST, 0x0040)
  66. #define DRA7XX_CM_CORE_DEBUG_CFG_OFFSET 0x00f0
  67. /* CM_CORE.CKGEN_CM_CORE register offsets */
  68. #define DRA7XX_CM_CLKSEL_USB_60MHZ_OFFSET 0x0000
  69. #define DRA7XX_CM_CLKSEL_USB_60MHZ DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0000)
  70. #define DRA7XX_CM_CLKMODE_DPLL_PER_OFFSET 0x003c
  71. #define DRA7XX_CM_CLKMODE_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x003c)
  72. #define DRA7XX_CM_IDLEST_DPLL_PER_OFFSET 0x0040
  73. #define DRA7XX_CM_IDLEST_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0040)
  74. #define DRA7XX_CM_AUTOIDLE_DPLL_PER_OFFSET 0x0044
  75. #define DRA7XX_CM_AUTOIDLE_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0044)
  76. #define DRA7XX_CM_CLKSEL_DPLL_PER_OFFSET 0x0048
  77. #define DRA7XX_CM_CLKSEL_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0048)
  78. #define DRA7XX_CM_DIV_M2_DPLL_PER_OFFSET 0x004c
  79. #define DRA7XX_CM_DIV_M2_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x004c)
  80. #define DRA7XX_CM_DIV_M3_DPLL_PER_OFFSET 0x0050
  81. #define DRA7XX_CM_DIV_M3_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0050)
  82. #define DRA7XX_CM_DIV_H11_DPLL_PER_OFFSET 0x0054
  83. #define DRA7XX_CM_DIV_H11_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0054)
  84. #define DRA7XX_CM_DIV_H12_DPLL_PER_OFFSET 0x0058
  85. #define DRA7XX_CM_DIV_H12_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0058)
  86. #define DRA7XX_CM_DIV_H13_DPLL_PER_OFFSET 0x005c
  87. #define DRA7XX_CM_DIV_H13_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x005c)
  88. #define DRA7XX_CM_DIV_H14_DPLL_PER_OFFSET 0x0060
  89. #define DRA7XX_CM_DIV_H14_DPLL_PER DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0060)
  90. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_PER_OFFSET 0x0064
  91. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_PER_OFFSET 0x0068
  92. #define DRA7XX_CM_CLKMODE_DPLL_USB_OFFSET 0x007c
  93. #define DRA7XX_CM_CLKMODE_DPLL_USB DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x007c)
  94. #define DRA7XX_CM_IDLEST_DPLL_USB_OFFSET 0x0080
  95. #define DRA7XX_CM_IDLEST_DPLL_USB DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0080)
  96. #define DRA7XX_CM_AUTOIDLE_DPLL_USB_OFFSET 0x0084
  97. #define DRA7XX_CM_AUTOIDLE_DPLL_USB DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0084)
  98. #define DRA7XX_CM_CLKSEL_DPLL_USB_OFFSET 0x0088
  99. #define DRA7XX_CM_CLKSEL_DPLL_USB DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0088)
  100. #define DRA7XX_CM_DIV_M2_DPLL_USB_OFFSET 0x008c
  101. #define DRA7XX_CM_DIV_M2_DPLL_USB DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x008c)
  102. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_USB_OFFSET 0x00a4
  103. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_USB_OFFSET 0x00a8
  104. #define DRA7XX_CM_CLKDCOLDO_DPLL_USB_OFFSET 0x00b0
  105. #define DRA7XX_CM_CLKDCOLDO_DPLL_USB DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x00b0)
  106. #define DRA7XX_CM_CLKMODE_DPLL_PCIE_REF_OFFSET 0x00fc
  107. #define DRA7XX_CM_CLKMODE_DPLL_PCIE_REF DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x00fc)
  108. #define DRA7XX_CM_IDLEST_DPLL_PCIE_REF_OFFSET 0x0100
  109. #define DRA7XX_CM_IDLEST_DPLL_PCIE_REF DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0100)
  110. #define DRA7XX_CM_AUTOIDLE_DPLL_PCIE_REF_OFFSET 0x0104
  111. #define DRA7XX_CM_AUTOIDLE_DPLL_PCIE_REF DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0104)
  112. #define DRA7XX_CM_CLKSEL_DPLL_PCIE_REF_OFFSET 0x0108
  113. #define DRA7XX_CM_CLKSEL_DPLL_PCIE_REF DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0108)
  114. #define DRA7XX_CM_DIV_M2_DPLL_PCIE_REF_OFFSET 0x010c
  115. #define DRA7XX_CM_DIV_M2_DPLL_PCIE_REF DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x010c)
  116. #define DRA7XX_CM_SSC_DELTAMSTEP_DPLL_PCIE_REF_OFFSET 0x0110
  117. #define DRA7XX_CM_SSC_MODFREQDIV_DPLL_PCIE_REF_OFFSET 0x0114
  118. #define DRA7XX_CM_CLKMODE_APLL_PCIE_OFFSET 0x0118
  119. #define DRA7XX_CM_CLKMODE_APLL_PCIE DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0118)
  120. #define DRA7XX_CM_IDLEST_APLL_PCIE_OFFSET 0x011c
  121. #define DRA7XX_CM_IDLEST_APLL_PCIE DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x011c)
  122. #define DRA7XX_CM_DIV_M2_APLL_PCIE_OFFSET 0x0120
  123. #define DRA7XX_CM_DIV_M2_APLL_PCIE DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0120)
  124. #define DRA7XX_CM_CLKVCOLDO_APLL_PCIE_OFFSET 0x0124
  125. #define DRA7XX_CM_CLKVCOLDO_APLL_PCIE DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CKGEN_INST, 0x0124)
  126. /* CM_CORE.COREAON_CM_CORE register offsets */
  127. #define DRA7XX_CM_COREAON_CLKSTCTRL_OFFSET 0x0000
  128. #define DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET 0x0028
  129. #define DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0028)
  130. #define DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET 0x0038
  131. #define DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0038)
  132. #define DRA7XX_CM_COREAON_USB_PHY1_CORE_CLKCTRL_OFFSET 0x0040
  133. #define DRA7XX_CM_COREAON_USB_PHY1_CORE_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0040)
  134. #define DRA7XX_CM_COREAON_IO_SRCOMP_CLKCTRL_OFFSET 0x0050
  135. #define DRA7XX_CM_COREAON_IO_SRCOMP_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0050)
  136. #define DRA7XX_CM_COREAON_SMARTREFLEX_GPU_CLKCTRL_OFFSET 0x0058
  137. #define DRA7XX_CM_COREAON_SMARTREFLEX_GPU_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0058)
  138. #define DRA7XX_CM_COREAON_SMARTREFLEX_DSPEVE_CLKCTRL_OFFSET 0x0068
  139. #define DRA7XX_CM_COREAON_SMARTREFLEX_DSPEVE_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0068)
  140. #define DRA7XX_CM_COREAON_SMARTREFLEX_IVAHD_CLKCTRL_OFFSET 0x0078
  141. #define DRA7XX_CM_COREAON_SMARTREFLEX_IVAHD_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0078)
  142. #define DRA7XX_CM_COREAON_USB_PHY2_CORE_CLKCTRL_OFFSET 0x0088
  143. #define DRA7XX_CM_COREAON_USB_PHY2_CORE_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0088)
  144. #define DRA7XX_CM_COREAON_USB_PHY3_CORE_CLKCTRL_OFFSET 0x0098
  145. #define DRA7XX_CM_COREAON_USB_PHY3_CORE_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x0098)
  146. #define DRA7XX_CM_COREAON_DUMMY_MODULE1_CLKCTRL_OFFSET 0x00a0
  147. #define DRA7XX_CM_COREAON_DUMMY_MODULE1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x00a0)
  148. #define DRA7XX_CM_COREAON_DUMMY_MODULE2_CLKCTRL_OFFSET 0x00b0
  149. #define DRA7XX_CM_COREAON_DUMMY_MODULE2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x00b0)
  150. #define DRA7XX_CM_COREAON_DUMMY_MODULE3_CLKCTRL_OFFSET 0x00c0
  151. #define DRA7XX_CM_COREAON_DUMMY_MODULE3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x00c0)
  152. #define DRA7XX_CM_COREAON_DUMMY_MODULE4_CLKCTRL_OFFSET 0x00d0
  153. #define DRA7XX_CM_COREAON_DUMMY_MODULE4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_COREAON_INST, 0x00d0)
  154. /* CM_CORE.CORE_CM_CORE register offsets */
  155. #define DRA7XX_CM_L3MAIN1_CLKSTCTRL_OFFSET 0x0000
  156. #define DRA7XX_CM_L3MAIN1_DYNAMICDEP_OFFSET 0x0008
  157. #define DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET 0x0020
  158. #define DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0020)
  159. #define DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET 0x0028
  160. #define DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0028)
  161. #define DRA7XX_CM_L3MAIN1_MMU_EDMA_CLKCTRL_OFFSET 0x0030
  162. #define DRA7XX_CM_L3MAIN1_MMU_EDMA_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0030)
  163. #define DRA7XX_CM_L3MAIN1_OCMC_RAM1_CLKCTRL_OFFSET 0x0050
  164. #define DRA7XX_CM_L3MAIN1_OCMC_RAM1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0050)
  165. #define DRA7XX_CM_L3MAIN1_OCMC_RAM2_CLKCTRL_OFFSET 0x0058
  166. #define DRA7XX_CM_L3MAIN1_OCMC_RAM2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0058)
  167. #define DRA7XX_CM_L3MAIN1_OCMC_RAM3_CLKCTRL_OFFSET 0x0060
  168. #define DRA7XX_CM_L3MAIN1_OCMC_RAM3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0060)
  169. #define DRA7XX_CM_L3MAIN1_OCMC_ROM_CLKCTRL_OFFSET 0x0068
  170. #define DRA7XX_CM_L3MAIN1_OCMC_ROM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0068)
  171. #define DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL_OFFSET 0x0070
  172. #define DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0070)
  173. #define DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL_OFFSET 0x0078
  174. #define DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0078)
  175. #define DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL_OFFSET 0x0080
  176. #define DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0080)
  177. #define DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET 0x0088
  178. #define DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0088)
  179. #define DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET 0x0090
  180. #define DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0090)
  181. #define DRA7XX_CM_L3MAIN1_SPARE_CME_CLKCTRL_OFFSET 0x0098
  182. #define DRA7XX_CM_L3MAIN1_SPARE_CME_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0098)
  183. #define DRA7XX_CM_L3MAIN1_SPARE_HDMI_CLKCTRL_OFFSET 0x00a0
  184. #define DRA7XX_CM_L3MAIN1_SPARE_HDMI_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00a0)
  185. #define DRA7XX_CM_L3MAIN1_SPARE_ICM_CLKCTRL_OFFSET 0x00a8
  186. #define DRA7XX_CM_L3MAIN1_SPARE_ICM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00a8)
  187. #define DRA7XX_CM_L3MAIN1_SPARE_IVA2_CLKCTRL_OFFSET 0x00b0
  188. #define DRA7XX_CM_L3MAIN1_SPARE_IVA2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00b0)
  189. #define DRA7XX_CM_L3MAIN1_SPARE_SATA2_CLKCTRL_OFFSET 0x00b8
  190. #define DRA7XX_CM_L3MAIN1_SPARE_SATA2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00b8)
  191. #define DRA7XX_CM_L3MAIN1_SPARE_UNKNOWN4_CLKCTRL_OFFSET 0x00c0
  192. #define DRA7XX_CM_L3MAIN1_SPARE_UNKNOWN4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00c0)
  193. #define DRA7XX_CM_L3MAIN1_SPARE_UNKNOWN5_CLKCTRL_OFFSET 0x00c8
  194. #define DRA7XX_CM_L3MAIN1_SPARE_UNKNOWN5_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00c8)
  195. #define DRA7XX_CM_L3MAIN1_SPARE_UNKNOWN6_CLKCTRL_OFFSET 0x00d0
  196. #define DRA7XX_CM_L3MAIN1_SPARE_UNKNOWN6_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00d0)
  197. #define DRA7XX_CM_L3MAIN1_SPARE_VIDEOPLL1_CLKCTRL_OFFSET 0x00d8
  198. #define DRA7XX_CM_L3MAIN1_SPARE_VIDEOPLL1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00d8)
  199. #define DRA7XX_CM_L3MAIN1_SPARE_VIDEOPLL2_CLKCTRL_OFFSET 0x00f0
  200. #define DRA7XX_CM_L3MAIN1_SPARE_VIDEOPLL2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00f0)
  201. #define DRA7XX_CM_L3MAIN1_SPARE_VIDEOPLL3_CLKCTRL_OFFSET 0x00f8
  202. #define DRA7XX_CM_L3MAIN1_SPARE_VIDEOPLL3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x00f8)
  203. #define DRA7XX_CM_IPU2_CLKSTCTRL_OFFSET 0x0200
  204. #define DRA7XX_CM_IPU2_STATICDEP_OFFSET 0x0204
  205. #define DRA7XX_CM_IPU2_DYNAMICDEP_OFFSET 0x0208
  206. #define DRA7XX_CM_IPU2_IPU2_CLKCTRL_OFFSET 0x0220
  207. #define DRA7XX_CM_IPU2_IPU2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0220)
  208. #define DRA7XX_CM_DMA_CLKSTCTRL_OFFSET 0x0300
  209. #define DRA7XX_CM_DMA_STATICDEP_OFFSET 0x0304
  210. #define DRA7XX_CM_DMA_DYNAMICDEP_OFFSET 0x0308
  211. #define DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET 0x0320
  212. #define DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0320)
  213. #define DRA7XX_CM_EMIF_CLKSTCTRL_OFFSET 0x0400
  214. #define DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET 0x0420
  215. #define DRA7XX_CM_EMIF_DMM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0420)
  216. #define DRA7XX_CM_EMIF_EMIF_OCP_FW_CLKCTRL_OFFSET 0x0428
  217. #define DRA7XX_CM_EMIF_EMIF_OCP_FW_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0428)
  218. #define DRA7XX_CM_EMIF_EMIF1_CLKCTRL_OFFSET 0x0430
  219. #define DRA7XX_CM_EMIF_EMIF1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0430)
  220. #define DRA7XX_CM_EMIF_EMIF2_CLKCTRL_OFFSET 0x0438
  221. #define DRA7XX_CM_EMIF_EMIF2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0438)
  222. #define DRA7XX_CM_EMIF_EMIF_DLL_CLKCTRL_OFFSET 0x0440
  223. #define DRA7XX_CM_EMIF_EMIF_DLL_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0440)
  224. #define DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET 0x0500
  225. #define DRA7XX_CM_ATL_ATL_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0500)
  226. #define DRA7XX_CM_ATL_CLKSTCTRL_OFFSET 0x0520
  227. #define DRA7XX_CM_L4CFG_CLKSTCTRL_OFFSET 0x0600
  228. #define DRA7XX_CM_L4CFG_DYNAMICDEP_OFFSET 0x0608
  229. #define DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET 0x0620
  230. #define DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0620)
  231. #define DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET 0x0628
  232. #define DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0628)
  233. #define DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET 0x0630
  234. #define DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0630)
  235. #define DRA7XX_CM_L4CFG_SAR_ROM_CLKCTRL_OFFSET 0x0638
  236. #define DRA7XX_CM_L4CFG_SAR_ROM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0638)
  237. #define DRA7XX_CM_L4CFG_OCP2SCP2_CLKCTRL_OFFSET 0x0640
  238. #define DRA7XX_CM_L4CFG_OCP2SCP2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0640)
  239. #define DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET 0x0648
  240. #define DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0648)
  241. #define DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET 0x0650
  242. #define DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0650)
  243. #define DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET 0x0658
  244. #define DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0658)
  245. #define DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET 0x0660
  246. #define DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0660)
  247. #define DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET 0x0668
  248. #define DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0668)
  249. #define DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET 0x0670
  250. #define DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0670)
  251. #define DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET 0x0678
  252. #define DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0678)
  253. #define DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET 0x0680
  254. #define DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0680)
  255. #define DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET 0x0688
  256. #define DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0688)
  257. #define DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET 0x0690
  258. #define DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0690)
  259. #define DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET 0x0698
  260. #define DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0698)
  261. #define DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET 0x06a0
  262. #define DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x06a0)
  263. #define DRA7XX_CM_L4CFG_SPARE_SMARTREFLEX_RTC_CLKCTRL_OFFSET 0x06a8
  264. #define DRA7XX_CM_L4CFG_SPARE_SMARTREFLEX_RTC_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x06a8)
  265. #define DRA7XX_CM_L4CFG_SPARE_SMARTREFLEX_SDRAM_CLKCTRL_OFFSET 0x06b0
  266. #define DRA7XX_CM_L4CFG_SPARE_SMARTREFLEX_SDRAM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x06b0)
  267. #define DRA7XX_CM_L4CFG_SPARE_SMARTREFLEX_WKUP_CLKCTRL_OFFSET 0x06b8
  268. #define DRA7XX_CM_L4CFG_SPARE_SMARTREFLEX_WKUP_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x06b8)
  269. #define DRA7XX_CM_L4CFG_IO_DELAY_BLOCK_CLKCTRL_OFFSET 0x06c0
  270. #define DRA7XX_CM_L4CFG_IO_DELAY_BLOCK_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x06c0)
  271. #define DRA7XX_CM_L3INSTR_CLKSTCTRL_OFFSET 0x0700
  272. #define DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET 0x0720
  273. #define DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0720)
  274. #define DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET 0x0728
  275. #define DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0728)
  276. #define DRA7XX_CM_L3INSTR_OCP_WP_NOC_CLKCTRL_OFFSET 0x0740
  277. #define DRA7XX_CM_L3INSTR_OCP_WP_NOC_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0740)
  278. #define DRA7XX_CM_L3INSTR_DLL_AGING_CLKCTRL_OFFSET 0x0748
  279. #define DRA7XX_CM_L3INSTR_DLL_AGING_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0748)
  280. #define DRA7XX_CM_L3INSTR_CTRL_MODULE_BANDGAP_CLKCTRL_OFFSET 0x0750
  281. #define DRA7XX_CM_L3INSTR_CTRL_MODULE_BANDGAP_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CORE_INST, 0x0750)
  282. /* CM_CORE.IVA_CM_CORE register offsets */
  283. #define DRA7XX_CM_IVA_CLKSTCTRL_OFFSET 0x0000
  284. #define DRA7XX_CM_IVA_STATICDEP_OFFSET 0x0004
  285. #define DRA7XX_CM_IVA_DYNAMICDEP_OFFSET 0x0008
  286. #define DRA7XX_CM_IVA_IVA_CLKCTRL_OFFSET 0x0020
  287. #define DRA7XX_CM_IVA_IVA_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_IVA_INST, 0x0020)
  288. #define DRA7XX_CM_IVA_SL2_CLKCTRL_OFFSET 0x0028
  289. #define DRA7XX_CM_IVA_SL2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_IVA_INST, 0x0028)
  290. /* CM_CORE.CAM_CM_CORE register offsets */
  291. #define DRA7XX_CM_CAM_CLKSTCTRL_OFFSET 0x0000
  292. #define DRA7XX_CM_CAM_STATICDEP_OFFSET 0x0004
  293. #define DRA7XX_CM_CAM_VIP1_CLKCTRL_OFFSET 0x0020
  294. #define DRA7XX_CM_CAM_VIP1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CAM_INST, 0x0020)
  295. #define DRA7XX_CM_CAM_VIP2_CLKCTRL_OFFSET 0x0028
  296. #define DRA7XX_CM_CAM_VIP2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CAM_INST, 0x0028)
  297. #define DRA7XX_CM_CAM_VIP3_CLKCTRL_OFFSET 0x0030
  298. #define DRA7XX_CM_CAM_VIP3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CAM_INST, 0x0030)
  299. #define DRA7XX_CM_CAM_LVDSRX_CLKCTRL_OFFSET 0x0038
  300. #define DRA7XX_CM_CAM_LVDSRX_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CAM_INST, 0x0038)
  301. #define DRA7XX_CM_CAM_CSI1_CLKCTRL_OFFSET 0x0040
  302. #define DRA7XX_CM_CAM_CSI1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CAM_INST, 0x0040)
  303. #define DRA7XX_CM_CAM_CSI2_CLKCTRL_OFFSET 0x0048
  304. #define DRA7XX_CM_CAM_CSI2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CAM_INST, 0x0048)
  305. /* CM_CORE.DSS_CM_CORE register offsets */
  306. #define DRA7XX_CM_DSS_CLKSTCTRL_OFFSET 0x0000
  307. #define DRA7XX_CM_DSS_STATICDEP_OFFSET 0x0004
  308. #define DRA7XX_CM_DSS_DYNAMICDEP_OFFSET 0x0008
  309. #define DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET 0x0020
  310. #define DRA7XX_CM_DSS_DSS_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_DSS_INST, 0x0020)
  311. #define DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET 0x0030
  312. #define DRA7XX_CM_DSS_BB2D_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_DSS_INST, 0x0030)
  313. #define DRA7XX_CM_DSS_SDVENC_CLKCTRL_OFFSET 0x003c
  314. #define DRA7XX_CM_DSS_SDVENC_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_DSS_INST, 0x003c)
  315. /* CM_CORE.GPU_CM_CORE register offsets */
  316. #define DRA7XX_CM_GPU_CLKSTCTRL_OFFSET 0x0000
  317. #define DRA7XX_CM_GPU_STATICDEP_OFFSET 0x0004
  318. #define DRA7XX_CM_GPU_DYNAMICDEP_OFFSET 0x0008
  319. #define DRA7XX_CM_GPU_GPU_CLKCTRL_OFFSET 0x0020
  320. #define DRA7XX_CM_GPU_GPU_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_GPU_INST, 0x0020)
  321. /* CM_CORE.L3INIT_CM_CORE register offsets */
  322. #define DRA7XX_CM_L3INIT_CLKSTCTRL_OFFSET 0x0000
  323. #define DRA7XX_CM_L3INIT_STATICDEP_OFFSET 0x0004
  324. #define DRA7XX_CM_L3INIT_DYNAMICDEP_OFFSET 0x0008
  325. #define DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET 0x0028
  326. #define DRA7XX_CM_L3INIT_MMC1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0028)
  327. #define DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET 0x0030
  328. #define DRA7XX_CM_L3INIT_MMC2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0030)
  329. #define DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET 0x0040
  330. #define DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0040)
  331. #define DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET 0x0048
  332. #define DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0048)
  333. #define DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET 0x0050
  334. #define DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0050)
  335. #define DRA7XX_CM_L3INIT_MLB_SS_CLKCTRL_OFFSET 0x0058
  336. #define DRA7XX_CM_L3INIT_MLB_SS_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0058)
  337. #define DRA7XX_CM_L3INIT_IEEE1500_2_OCP_CLKCTRL_OFFSET 0x0078
  338. #define DRA7XX_CM_L3INIT_IEEE1500_2_OCP_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0078)
  339. #define DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET 0x0088
  340. #define DRA7XX_CM_L3INIT_SATA_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x0088)
  341. #define DRA7XX_CM_PCIE_CLKSTCTRL_OFFSET 0x00a0
  342. #define DRA7XX_CM_PCIE_STATICDEP_OFFSET 0x00a4
  343. #define DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET 0x00b0
  344. #define DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x00b0)
  345. #define DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET 0x00b8
  346. #define DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x00b8)
  347. #define DRA7XX_CM_GMAC_CLKSTCTRL_OFFSET 0x00c0
  348. #define DRA7XX_CM_GMAC_STATICDEP_OFFSET 0x00c4
  349. #define DRA7XX_CM_GMAC_DYNAMICDEP_OFFSET 0x00c8
  350. #define DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET 0x00d0
  351. #define DRA7XX_CM_GMAC_GMAC_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x00d0)
  352. #define DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET 0x00e0
  353. #define DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x00e0)
  354. #define DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET 0x00e8
  355. #define DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x00e8)
  356. #define DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET 0x00f0
  357. #define DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L3INIT_INST, 0x00f0)
  358. /* CM_CORE.CUSTEFUSE_CM_CORE register offsets */
  359. #define DRA7XX_CM_CUSTEFUSE_CLKSTCTRL_OFFSET 0x0000
  360. #define DRA7XX_CM_CUSTEFUSE_EFUSE_CTRL_CUST_CLKCTRL_OFFSET 0x0020
  361. #define DRA7XX_CM_CUSTEFUSE_EFUSE_CTRL_CUST_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_CUSTEFUSE_INST, 0x0020)
  362. /* CM_CORE.L4PER_CM_CORE register offsets */
  363. #define DRA7XX_CM_L4PER_CLKSTCTRL_OFFSET 0x0000
  364. #define DRA7XX_CM_L4PER_DYNAMICDEP_OFFSET 0x0008
  365. #define DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET 0x000c
  366. #define DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x000c)
  367. #define DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET 0x0014
  368. #define DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0014)
  369. #define DRA7XX_CM_L4PER2_PRUSS1_CLKCTRL_OFFSET 0x0018
  370. #define DRA7XX_CM_L4PER2_PRUSS1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0018)
  371. #define DRA7XX_CM_L4PER2_PRUSS2_CLKCTRL_OFFSET 0x0020
  372. #define DRA7XX_CM_L4PER2_PRUSS2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0020)
  373. #define DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET 0x0028
  374. #define DRA7XX_CM_L4PER_TIMER10_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0028)
  375. #define DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET 0x0030
  376. #define DRA7XX_CM_L4PER_TIMER11_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0030)
  377. #define DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET 0x0038
  378. #define DRA7XX_CM_L4PER_TIMER2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0038)
  379. #define DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET 0x0040
  380. #define DRA7XX_CM_L4PER_TIMER3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0040)
  381. #define DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET 0x0048
  382. #define DRA7XX_CM_L4PER_TIMER4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0048)
  383. #define DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET 0x0050
  384. #define DRA7XX_CM_L4PER_TIMER9_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0050)
  385. #define DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET 0x0058
  386. #define DRA7XX_CM_L4PER_ELM_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0058)
  387. #define DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET 0x0060
  388. #define DRA7XX_CM_L4PER_GPIO2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0060)
  389. #define DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET 0x0068
  390. #define DRA7XX_CM_L4PER_GPIO3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0068)
  391. #define DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET 0x0070
  392. #define DRA7XX_CM_L4PER_GPIO4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0070)
  393. #define DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET 0x0078
  394. #define DRA7XX_CM_L4PER_GPIO5_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0078)
  395. #define DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET 0x0080
  396. #define DRA7XX_CM_L4PER_GPIO6_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0080)
  397. #define DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET 0x0088
  398. #define DRA7XX_CM_L4PER_HDQ1W_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0088)
  399. #define DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET 0x0090
  400. #define DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0090)
  401. #define DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET 0x0098
  402. #define DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0098)
  403. #define DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET 0x00a0
  404. #define DRA7XX_CM_L4PER_I2C1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00a0)
  405. #define DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET 0x00a8
  406. #define DRA7XX_CM_L4PER_I2C2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00a8)
  407. #define DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET 0x00b0
  408. #define DRA7XX_CM_L4PER_I2C3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00b0)
  409. #define DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET 0x00b8
  410. #define DRA7XX_CM_L4PER_I2C4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00b8)
  411. #define DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET 0x00c0
  412. #define DRA7XX_CM_L4PER_L4_PER1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00c0)
  413. #define DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET 0x00c4
  414. #define DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00c4)
  415. #define DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET 0x00c8
  416. #define DRA7XX_CM_L4PER3_TIMER13_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00c8)
  417. #define DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET 0x00d0
  418. #define DRA7XX_CM_L4PER3_TIMER14_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00d0)
  419. #define DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET 0x00d8
  420. #define DRA7XX_CM_L4PER3_TIMER15_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00d8)
  421. #define DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET 0x00f0
  422. #define DRA7XX_CM_L4PER_MCSPI1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00f0)
  423. #define DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET 0x00f8
  424. #define DRA7XX_CM_L4PER_MCSPI2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x00f8)
  425. #define DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET 0x0100
  426. #define DRA7XX_CM_L4PER_MCSPI3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0100)
  427. #define DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET 0x0108
  428. #define DRA7XX_CM_L4PER_MCSPI4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0108)
  429. #define DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET 0x0110
  430. #define DRA7XX_CM_L4PER_GPIO7_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0110)
  431. #define DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET 0x0118
  432. #define DRA7XX_CM_L4PER_GPIO8_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0118)
  433. #define DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET 0x0120
  434. #define DRA7XX_CM_L4PER_MMC3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0120)
  435. #define DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET 0x0128
  436. #define DRA7XX_CM_L4PER_MMC4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0128)
  437. #define DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET 0x0130
  438. #define DRA7XX_CM_L4PER3_TIMER16_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0130)
  439. #define DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET 0x0138
  440. #define DRA7XX_CM_L4PER2_QSPI_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0138)
  441. #define DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET 0x0140
  442. #define DRA7XX_CM_L4PER_UART1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0140)
  443. #define DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET 0x0148
  444. #define DRA7XX_CM_L4PER_UART2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0148)
  445. #define DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET 0x0150
  446. #define DRA7XX_CM_L4PER_UART3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0150)
  447. #define DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET 0x0158
  448. #define DRA7XX_CM_L4PER_UART4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0158)
  449. #define DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET 0x0160
  450. #define DRA7XX_CM_L4PER2_MCASP2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0160)
  451. #define DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET 0x0168
  452. #define DRA7XX_CM_L4PER2_MCASP3_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0168)
  453. #define DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET 0x0170
  454. #define DRA7XX_CM_L4PER_UART5_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0170)
  455. #define DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET 0x0178
  456. #define DRA7XX_CM_L4PER2_MCASP5_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0178)
  457. #define DRA7XX_CM_L4SEC_CLKSTCTRL_OFFSET 0x0180
  458. #define DRA7XX_CM_L4SEC_STATICDEP_OFFSET 0x0184
  459. #define DRA7XX_CM_L4SEC_DYNAMICDEP_OFFSET 0x0188
  460. #define DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET 0x0190
  461. #define DRA7XX_CM_L4PER2_MCASP8_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0190)
  462. #define DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET 0x0198
  463. #define DRA7XX_CM_L4PER2_MCASP4_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0198)
  464. #define DRA7XX_CM_L4SEC_AES1_CLKCTRL_OFFSET 0x01a0
  465. #define DRA7XX_CM_L4SEC_AES1_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01a0)
  466. #define DRA7XX_CM_L4SEC_AES2_CLKCTRL_OFFSET 0x01a8
  467. #define DRA7XX_CM_L4SEC_AES2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01a8)
  468. #define DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET 0x01b0
  469. #define DRA7XX_CM_L4SEC_DES3DES_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01b0)
  470. #define DRA7XX_CM_L4SEC_FPKA_CLKCTRL_OFFSET 0x01b8
  471. #define DRA7XX_CM_L4SEC_FPKA_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01b8)
  472. #define DRA7XX_CM_L4SEC_RNG_CLKCTRL_OFFSET 0x01c0
  473. #define DRA7XX_CM_L4SEC_RNG_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01c0)
  474. #define DRA7XX_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET 0x01c8
  475. #define DRA7XX_CM_L4SEC_SHA2MD51_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01c8)
  476. #define DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET 0x01d0
  477. #define DRA7XX_CM_L4PER2_UART7_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01d0)
  478. #define DRA7XX_CM_L4SEC_DMA_CRYPTO_CLKCTRL_OFFSET 0x01d8
  479. #define DRA7XX_CM_L4SEC_DMA_CRYPTO_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01d8)
  480. #define DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET 0x01e0
  481. #define DRA7XX_CM_L4PER2_UART8_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01e0)
  482. #define DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET 0x01e8
  483. #define DRA7XX_CM_L4PER2_UART9_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01e8)
  484. #define DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET 0x01f0
  485. #define DRA7XX_CM_L4PER2_DCAN2_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01f0)
  486. #define DRA7XX_CM_L4SEC_SHA2MD52_CLKCTRL_OFFSET 0x01f8
  487. #define DRA7XX_CM_L4SEC_SHA2MD52_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x01f8)
  488. #define DRA7XX_CM_L4PER2_CLKSTCTRL_OFFSET 0x01fc
  489. #define DRA7XX_CM_L4PER2_DYNAMICDEP_OFFSET 0x0200
  490. #define DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET 0x0204
  491. #define DRA7XX_CM_L4PER2_MCASP6_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0204)
  492. #define DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET 0x0208
  493. #define DRA7XX_CM_L4PER2_MCASP7_CLKCTRL DRA7XX_CM_CORE_REGADDR(DRA7XX_CM_CORE_L4PER_INST, 0x0208)
  494. #define DRA7XX_CM_L4PER2_STATICDEP_OFFSET 0x020c
  495. #define DRA7XX_CM_L4PER3_CLKSTCTRL_OFFSET 0x0210
  496. #define DRA7XX_CM_L4PER3_DYNAMICDEP_OFFSET 0x0214
  497. #endif