clockdomains44xx_data.c 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*
  2. * OMAP4 Clock domains framework
  3. *
  4. * Copyright (C) 2009 Texas Instruments, Inc.
  5. * Copyright (C) 2009 Nokia Corporation
  6. *
  7. * Abhijit Pagare (abhijitpagare@ti.com)
  8. * Benoit Cousson (b-cousson@ti.com)
  9. *
  10. * This file is automatically generated from the OMAP hardware databases.
  11. * We respectfully ask that any modifications to this file be coordinated
  12. * with the public linux-omap@vger.kernel.org mailing list and the
  13. * authors above to ensure that the autogeneration scripts are kept
  14. * up-to-date with the file contents.
  15. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License version 2 as
  18. * published by the Free Software Foundation.
  19. */
  20. /*
  21. * To-Do List
  22. * -> Populate the Sleep/Wakeup dependencies for the domains
  23. */
  24. #include <linux/kernel.h>
  25. #include <linux/io.h>
  26. #include "clockdomain.h"
  27. #include "cm1_44xx.h"
  28. #include "cm2_44xx.h"
  29. #include "cm-regbits-44xx.h"
  30. #include "prm44xx.h"
  31. #include "prcm44xx.h"
  32. #include "prcm_mpu44xx.h"
  33. static struct clockdomain l4_cefuse_44xx_clkdm = {
  34. .name = "l4_cefuse_clkdm",
  35. .pwrdm = { .name = "cefuse_pwrdm" },
  36. .prcm_partition = OMAP4430_CM2_PARTITION,
  37. .cm_inst = OMAP4430_CM2_CEFUSE_INST,
  38. .clkdm_offs = OMAP4430_CM2_CEFUSE_CEFUSE_CDOFFS,
  39. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  40. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  41. };
  42. static struct clockdomain l4_cfg_44xx_clkdm = {
  43. .name = "l4_cfg_clkdm",
  44. .pwrdm = { .name = "core_pwrdm" },
  45. .prcm_partition = OMAP4430_CM2_PARTITION,
  46. .cm_inst = OMAP4430_CM2_CORE_INST,
  47. .clkdm_offs = OMAP4430_CM2_CORE_L4CFG_CDOFFS,
  48. .flags = CLKDM_CAN_HWSUP,
  49. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  50. };
  51. static struct clockdomain tesla_44xx_clkdm = {
  52. .name = "tesla_clkdm",
  53. .pwrdm = { .name = "tesla_pwrdm" },
  54. .prcm_partition = OMAP4430_CM1_PARTITION,
  55. .cm_inst = OMAP4430_CM1_TESLA_INST,
  56. .clkdm_offs = OMAP4430_CM1_TESLA_TESLA_CDOFFS,
  57. .flags = CLKDM_CAN_HWSUP_SWSUP,
  58. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  59. };
  60. static struct clockdomain l3_gfx_44xx_clkdm = {
  61. .name = "l3_gfx_clkdm",
  62. .pwrdm = { .name = "gfx_pwrdm" },
  63. .prcm_partition = OMAP4430_CM2_PARTITION,
  64. .cm_inst = OMAP4430_CM2_GFX_INST,
  65. .clkdm_offs = OMAP4430_CM2_GFX_GFX_CDOFFS,
  66. .flags = CLKDM_CAN_HWSUP_SWSUP,
  67. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  68. };
  69. static struct clockdomain ivahd_44xx_clkdm = {
  70. .name = "ivahd_clkdm",
  71. .pwrdm = { .name = "ivahd_pwrdm" },
  72. .prcm_partition = OMAP4430_CM2_PARTITION,
  73. .cm_inst = OMAP4430_CM2_IVAHD_INST,
  74. .clkdm_offs = OMAP4430_CM2_IVAHD_IVAHD_CDOFFS,
  75. .flags = CLKDM_CAN_HWSUP_SWSUP,
  76. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  77. };
  78. static struct clockdomain l4_secure_44xx_clkdm = {
  79. .name = "l4_secure_clkdm",
  80. .pwrdm = { .name = "l4per_pwrdm" },
  81. .prcm_partition = OMAP4430_CM2_PARTITION,
  82. .cm_inst = OMAP4430_CM2_L4PER_INST,
  83. .clkdm_offs = OMAP4430_CM2_L4PER_L4SEC_CDOFFS,
  84. .flags = CLKDM_CAN_HWSUP_SWSUP,
  85. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  86. };
  87. static struct clockdomain l4_per_44xx_clkdm = {
  88. .name = "l4_per_clkdm",
  89. .pwrdm = { .name = "l4per_pwrdm" },
  90. .prcm_partition = OMAP4430_CM2_PARTITION,
  91. .cm_inst = OMAP4430_CM2_L4PER_INST,
  92. .clkdm_offs = OMAP4430_CM2_L4PER_L4PER_CDOFFS,
  93. .flags = CLKDM_CAN_HWSUP_SWSUP,
  94. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  95. };
  96. static struct clockdomain abe_44xx_clkdm = {
  97. .name = "abe_clkdm",
  98. .pwrdm = { .name = "abe_pwrdm" },
  99. .prcm_partition = OMAP4430_CM1_PARTITION,
  100. .cm_inst = OMAP4430_CM1_ABE_INST,
  101. .clkdm_offs = OMAP4430_CM1_ABE_ABE_CDOFFS,
  102. .flags = CLKDM_CAN_HWSUP_SWSUP,
  103. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  104. };
  105. static struct clockdomain l3_instr_44xx_clkdm = {
  106. .name = "l3_instr_clkdm",
  107. .pwrdm = { .name = "core_pwrdm" },
  108. .prcm_partition = OMAP4430_CM2_PARTITION,
  109. .cm_inst = OMAP4430_CM2_CORE_INST,
  110. .clkdm_offs = OMAP4430_CM2_CORE_L3INSTR_CDOFFS,
  111. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  112. };
  113. static struct clockdomain l3_init_44xx_clkdm = {
  114. .name = "l3_init_clkdm",
  115. .pwrdm = { .name = "l3init_pwrdm" },
  116. .prcm_partition = OMAP4430_CM2_PARTITION,
  117. .cm_inst = OMAP4430_CM2_L3INIT_INST,
  118. .clkdm_offs = OMAP4430_CM2_L3INIT_L3INIT_CDOFFS,
  119. .flags = CLKDM_CAN_HWSUP_SWSUP,
  120. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  121. };
  122. static struct clockdomain mpuss_44xx_clkdm = {
  123. .name = "mpuss_clkdm",
  124. .pwrdm = { .name = "mpu_pwrdm" },
  125. .prcm_partition = OMAP4430_CM1_PARTITION,
  126. .cm_inst = OMAP4430_CM1_MPU_INST,
  127. .clkdm_offs = OMAP4430_CM1_MPU_MPU_CDOFFS,
  128. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  129. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  130. };
  131. static struct clockdomain mpu0_44xx_clkdm = {
  132. .name = "mpu0_clkdm",
  133. .pwrdm = { .name = "cpu0_pwrdm" },
  134. .prcm_partition = OMAP4430_PRCM_MPU_PARTITION,
  135. .cm_inst = OMAP4430_PRCM_MPU_CPU0_INST,
  136. .clkdm_offs = OMAP4430_PRCM_MPU_CPU0_MPU_CDOFFS,
  137. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  138. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  139. };
  140. static struct clockdomain mpu1_44xx_clkdm = {
  141. .name = "mpu1_clkdm",
  142. .pwrdm = { .name = "cpu1_pwrdm" },
  143. .prcm_partition = OMAP4430_PRCM_MPU_PARTITION,
  144. .cm_inst = OMAP4430_PRCM_MPU_CPU1_INST,
  145. .clkdm_offs = OMAP4430_PRCM_MPU_CPU1_MPU_CDOFFS,
  146. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  147. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  148. };
  149. static struct clockdomain l3_emif_44xx_clkdm = {
  150. .name = "l3_emif_clkdm",
  151. .pwrdm = { .name = "core_pwrdm" },
  152. .prcm_partition = OMAP4430_CM2_PARTITION,
  153. .cm_inst = OMAP4430_CM2_CORE_INST,
  154. .clkdm_offs = OMAP4430_CM2_CORE_MEMIF_CDOFFS,
  155. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  156. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  157. };
  158. static struct clockdomain l4_ao_44xx_clkdm = {
  159. .name = "l4_ao_clkdm",
  160. .pwrdm = { .name = "always_on_core_pwrdm" },
  161. .prcm_partition = OMAP4430_CM2_PARTITION,
  162. .cm_inst = OMAP4430_CM2_ALWAYS_ON_INST,
  163. .clkdm_offs = OMAP4430_CM2_ALWAYS_ON_ALWON_CDOFFS,
  164. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  165. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  166. };
  167. static struct clockdomain ducati_44xx_clkdm = {
  168. .name = "ducati_clkdm",
  169. .pwrdm = { .name = "core_pwrdm" },
  170. .prcm_partition = OMAP4430_CM2_PARTITION,
  171. .cm_inst = OMAP4430_CM2_CORE_INST,
  172. .clkdm_offs = OMAP4430_CM2_CORE_DUCATI_CDOFFS,
  173. .flags = CLKDM_CAN_HWSUP_SWSUP,
  174. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  175. };
  176. static struct clockdomain l3_2_44xx_clkdm = {
  177. .name = "l3_2_clkdm",
  178. .pwrdm = { .name = "core_pwrdm" },
  179. .prcm_partition = OMAP4430_CM2_PARTITION,
  180. .cm_inst = OMAP4430_CM2_CORE_INST,
  181. .clkdm_offs = OMAP4430_CM2_CORE_L3_2_CDOFFS,
  182. .flags = CLKDM_CAN_HWSUP,
  183. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  184. };
  185. static struct clockdomain l3_1_44xx_clkdm = {
  186. .name = "l3_1_clkdm",
  187. .pwrdm = { .name = "core_pwrdm" },
  188. .prcm_partition = OMAP4430_CM2_PARTITION,
  189. .cm_inst = OMAP4430_CM2_CORE_INST,
  190. .clkdm_offs = OMAP4430_CM2_CORE_L3_1_CDOFFS,
  191. .flags = CLKDM_CAN_HWSUP,
  192. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  193. };
  194. static struct clockdomain l3_d2d_44xx_clkdm = {
  195. .name = "l3_d2d_clkdm",
  196. .pwrdm = { .name = "core_pwrdm" },
  197. .prcm_partition = OMAP4430_CM2_PARTITION,
  198. .cm_inst = OMAP4430_CM2_CORE_INST,
  199. .clkdm_offs = OMAP4430_CM2_CORE_D2D_CDOFFS,
  200. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  201. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  202. };
  203. static struct clockdomain iss_44xx_clkdm = {
  204. .name = "iss_clkdm",
  205. .pwrdm = { .name = "cam_pwrdm" },
  206. .prcm_partition = OMAP4430_CM2_PARTITION,
  207. .cm_inst = OMAP4430_CM2_CAM_INST,
  208. .clkdm_offs = OMAP4430_CM2_CAM_CAM_CDOFFS,
  209. .flags = CLKDM_CAN_HWSUP_SWSUP,
  210. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  211. };
  212. static struct clockdomain l3_dss_44xx_clkdm = {
  213. .name = "l3_dss_clkdm",
  214. .pwrdm = { .name = "dss_pwrdm" },
  215. .prcm_partition = OMAP4430_CM2_PARTITION,
  216. .cm_inst = OMAP4430_CM2_DSS_INST,
  217. .clkdm_offs = OMAP4430_CM2_DSS_DSS_CDOFFS,
  218. .flags = CLKDM_CAN_HWSUP_SWSUP,
  219. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  220. };
  221. static struct clockdomain l4_wkup_44xx_clkdm = {
  222. .name = "l4_wkup_clkdm",
  223. .pwrdm = { .name = "wkup_pwrdm" },
  224. .prcm_partition = OMAP4430_PRM_PARTITION,
  225. .cm_inst = OMAP4430_PRM_WKUP_CM_INST,
  226. .clkdm_offs = OMAP4430_PRM_WKUP_CM_WKUP_CDOFFS,
  227. .flags = CLKDM_CAN_HWSUP,
  228. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  229. };
  230. static struct clockdomain emu_sys_44xx_clkdm = {
  231. .name = "emu_sys_clkdm",
  232. .pwrdm = { .name = "emu_pwrdm" },
  233. .prcm_partition = OMAP4430_PRM_PARTITION,
  234. .cm_inst = OMAP4430_PRM_EMU_CM_INST,
  235. .clkdm_offs = OMAP4430_PRM_EMU_CM_EMU_CDOFFS,
  236. .flags = CLKDM_CAN_HWSUP,
  237. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  238. };
  239. static struct clockdomain l3_dma_44xx_clkdm = {
  240. .name = "l3_dma_clkdm",
  241. .pwrdm = { .name = "core_pwrdm" },
  242. .prcm_partition = OMAP4430_CM2_PARTITION,
  243. .cm_inst = OMAP4430_CM2_CORE_INST,
  244. .clkdm_offs = OMAP4430_CM2_CORE_SDMA_CDOFFS,
  245. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  246. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  247. };
  248. static struct clockdomain *clockdomains_omap44xx[] __initdata = {
  249. &l4_cefuse_44xx_clkdm,
  250. &l4_cfg_44xx_clkdm,
  251. &tesla_44xx_clkdm,
  252. &l3_gfx_44xx_clkdm,
  253. &ivahd_44xx_clkdm,
  254. &l4_secure_44xx_clkdm,
  255. &l4_per_44xx_clkdm,
  256. &abe_44xx_clkdm,
  257. &l3_instr_44xx_clkdm,
  258. &l3_init_44xx_clkdm,
  259. &mpuss_44xx_clkdm,
  260. &mpu0_44xx_clkdm,
  261. &mpu1_44xx_clkdm,
  262. &l3_emif_44xx_clkdm,
  263. &l4_ao_44xx_clkdm,
  264. &ducati_44xx_clkdm,
  265. &l3_2_44xx_clkdm,
  266. &l3_1_44xx_clkdm,
  267. &l3_d2d_44xx_clkdm,
  268. &iss_44xx_clkdm,
  269. &l3_dss_44xx_clkdm,
  270. &l4_wkup_44xx_clkdm,
  271. &emu_sys_44xx_clkdm,
  272. &l3_dma_44xx_clkdm,
  273. NULL,
  274. };
  275. void __init omap44xx_clockdomains_init(void)
  276. {
  277. clkdm_init(clockdomains_omap44xx, NULL);
  278. }