clockdomains44xx_data.c 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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 "cm1_44xx.h"
  30. #include "cm2_44xx.h"
  31. #include "cm-regbits-44xx.h"
  32. #include "prm44xx.h"
  33. #include "prcm44xx.h"
  34. #include "prcm_mpu44xx.h"
  35. static struct clockdomain l4_cefuse_44xx_clkdm = {
  36. .name = "l4_cefuse_clkdm",
  37. .pwrdm = { .name = "cefuse_pwrdm" },
  38. .prcm_partition = OMAP4430_CM2_PARTITION,
  39. .cm_inst = OMAP4430_CM2_CEFUSE_INST,
  40. .clkdm_offs = OMAP4430_CM2_CEFUSE_CEFUSE_CDOFFS,
  41. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  42. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  43. };
  44. static struct clockdomain l4_cfg_44xx_clkdm = {
  45. .name = "l4_cfg_clkdm",
  46. .pwrdm = { .name = "core_pwrdm" },
  47. .prcm_partition = OMAP4430_CM2_PARTITION,
  48. .cm_inst = OMAP4430_CM2_CORE_INST,
  49. .clkdm_offs = OMAP4430_CM2_CORE_L4CFG_CDOFFS,
  50. .flags = CLKDM_CAN_HWSUP,
  51. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  52. };
  53. static struct clockdomain tesla_44xx_clkdm = {
  54. .name = "tesla_clkdm",
  55. .pwrdm = { .name = "tesla_pwrdm" },
  56. .prcm_partition = OMAP4430_CM1_PARTITION,
  57. .cm_inst = OMAP4430_CM1_TESLA_INST,
  58. .clkdm_offs = OMAP4430_CM1_TESLA_TESLA_CDOFFS,
  59. .flags = CLKDM_CAN_HWSUP_SWSUP,
  60. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  61. };
  62. static struct clockdomain l3_gfx_44xx_clkdm = {
  63. .name = "l3_gfx_clkdm",
  64. .pwrdm = { .name = "gfx_pwrdm" },
  65. .prcm_partition = OMAP4430_CM2_PARTITION,
  66. .cm_inst = OMAP4430_CM2_GFX_INST,
  67. .clkdm_offs = OMAP4430_CM2_GFX_GFX_CDOFFS,
  68. .flags = CLKDM_CAN_HWSUP_SWSUP,
  69. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  70. };
  71. static struct clockdomain ivahd_44xx_clkdm = {
  72. .name = "ivahd_clkdm",
  73. .pwrdm = { .name = "ivahd_pwrdm" },
  74. .prcm_partition = OMAP4430_CM2_PARTITION,
  75. .cm_inst = OMAP4430_CM2_IVAHD_INST,
  76. .clkdm_offs = OMAP4430_CM2_IVAHD_IVAHD_CDOFFS,
  77. .flags = CLKDM_CAN_HWSUP_SWSUP,
  78. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  79. };
  80. static struct clockdomain l4_secure_44xx_clkdm = {
  81. .name = "l4_secure_clkdm",
  82. .pwrdm = { .name = "l4per_pwrdm" },
  83. .prcm_partition = OMAP4430_CM2_PARTITION,
  84. .cm_inst = OMAP4430_CM2_L4PER_INST,
  85. .clkdm_offs = OMAP4430_CM2_L4PER_L4SEC_CDOFFS,
  86. .flags = CLKDM_CAN_HWSUP_SWSUP,
  87. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  88. };
  89. static struct clockdomain l4_per_44xx_clkdm = {
  90. .name = "l4_per_clkdm",
  91. .pwrdm = { .name = "l4per_pwrdm" },
  92. .prcm_partition = OMAP4430_CM2_PARTITION,
  93. .cm_inst = OMAP4430_CM2_L4PER_INST,
  94. .clkdm_offs = OMAP4430_CM2_L4PER_L4PER_CDOFFS,
  95. .flags = CLKDM_CAN_HWSUP_SWSUP,
  96. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  97. };
  98. static struct clockdomain abe_44xx_clkdm = {
  99. .name = "abe_clkdm",
  100. .pwrdm = { .name = "abe_pwrdm" },
  101. .prcm_partition = OMAP4430_CM1_PARTITION,
  102. .cm_inst = OMAP4430_CM1_ABE_INST,
  103. .clkdm_offs = OMAP4430_CM1_ABE_ABE_CDOFFS,
  104. .flags = CLKDM_CAN_HWSUP_SWSUP,
  105. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  106. };
  107. static struct clockdomain l3_instr_44xx_clkdm = {
  108. .name = "l3_instr_clkdm",
  109. .pwrdm = { .name = "core_pwrdm" },
  110. .prcm_partition = OMAP4430_CM2_PARTITION,
  111. .cm_inst = OMAP4430_CM2_CORE_INST,
  112. .clkdm_offs = OMAP4430_CM2_CORE_L3INSTR_CDOFFS,
  113. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  114. };
  115. static struct clockdomain l3_init_44xx_clkdm = {
  116. .name = "l3_init_clkdm",
  117. .pwrdm = { .name = "l3init_pwrdm" },
  118. .prcm_partition = OMAP4430_CM2_PARTITION,
  119. .cm_inst = OMAP4430_CM2_L3INIT_INST,
  120. .clkdm_offs = OMAP4430_CM2_L3INIT_L3INIT_CDOFFS,
  121. .flags = CLKDM_CAN_HWSUP_SWSUP,
  122. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  123. };
  124. static struct clockdomain mpuss_44xx_clkdm = {
  125. .name = "mpuss_clkdm",
  126. .pwrdm = { .name = "mpu_pwrdm" },
  127. .prcm_partition = OMAP4430_CM1_PARTITION,
  128. .cm_inst = OMAP4430_CM1_MPU_INST,
  129. .clkdm_offs = OMAP4430_CM1_MPU_MPU_CDOFFS,
  130. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  131. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  132. };
  133. static struct clockdomain mpu0_44xx_clkdm = {
  134. .name = "mpu0_clkdm",
  135. .pwrdm = { .name = "cpu0_pwrdm" },
  136. .prcm_partition = OMAP4430_PRCM_MPU_PARTITION,
  137. .cm_inst = OMAP4430_PRCM_MPU_CPU0_INST,
  138. .clkdm_offs = OMAP4430_PRCM_MPU_CPU0_MPU_CDOFFS,
  139. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  140. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  141. };
  142. static struct clockdomain mpu1_44xx_clkdm = {
  143. .name = "mpu1_clkdm",
  144. .pwrdm = { .name = "cpu1_pwrdm" },
  145. .prcm_partition = OMAP4430_PRCM_MPU_PARTITION,
  146. .cm_inst = OMAP4430_PRCM_MPU_CPU1_INST,
  147. .clkdm_offs = OMAP4430_PRCM_MPU_CPU1_MPU_CDOFFS,
  148. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  149. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  150. };
  151. static struct clockdomain l3_emif_44xx_clkdm = {
  152. .name = "l3_emif_clkdm",
  153. .pwrdm = { .name = "core_pwrdm" },
  154. .prcm_partition = OMAP4430_CM2_PARTITION,
  155. .cm_inst = OMAP4430_CM2_CORE_INST,
  156. .clkdm_offs = OMAP4430_CM2_CORE_MEMIF_CDOFFS,
  157. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  158. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  159. };
  160. static struct clockdomain l4_ao_44xx_clkdm = {
  161. .name = "l4_ao_clkdm",
  162. .pwrdm = { .name = "always_on_core_pwrdm" },
  163. .prcm_partition = OMAP4430_CM2_PARTITION,
  164. .cm_inst = OMAP4430_CM2_ALWAYS_ON_INST,
  165. .clkdm_offs = OMAP4430_CM2_ALWAYS_ON_ALWON_CDOFFS,
  166. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  167. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  168. };
  169. static struct clockdomain ducati_44xx_clkdm = {
  170. .name = "ducati_clkdm",
  171. .pwrdm = { .name = "core_pwrdm" },
  172. .prcm_partition = OMAP4430_CM2_PARTITION,
  173. .cm_inst = OMAP4430_CM2_CORE_INST,
  174. .clkdm_offs = OMAP4430_CM2_CORE_DUCATI_CDOFFS,
  175. .flags = CLKDM_CAN_HWSUP_SWSUP,
  176. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  177. };
  178. static struct clockdomain l3_2_44xx_clkdm = {
  179. .name = "l3_2_clkdm",
  180. .pwrdm = { .name = "core_pwrdm" },
  181. .prcm_partition = OMAP4430_CM2_PARTITION,
  182. .cm_inst = OMAP4430_CM2_CORE_INST,
  183. .clkdm_offs = OMAP4430_CM2_CORE_L3_2_CDOFFS,
  184. .flags = CLKDM_CAN_HWSUP,
  185. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  186. };
  187. static struct clockdomain l3_1_44xx_clkdm = {
  188. .name = "l3_1_clkdm",
  189. .pwrdm = { .name = "core_pwrdm" },
  190. .prcm_partition = OMAP4430_CM2_PARTITION,
  191. .cm_inst = OMAP4430_CM2_CORE_INST,
  192. .clkdm_offs = OMAP4430_CM2_CORE_L3_1_CDOFFS,
  193. .flags = CLKDM_CAN_HWSUP,
  194. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  195. };
  196. static struct clockdomain l3_d2d_44xx_clkdm = {
  197. .name = "l3_d2d_clkdm",
  198. .pwrdm = { .name = "core_pwrdm" },
  199. .prcm_partition = OMAP4430_CM2_PARTITION,
  200. .cm_inst = OMAP4430_CM2_CORE_INST,
  201. .clkdm_offs = OMAP4430_CM2_CORE_D2D_CDOFFS,
  202. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  203. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  204. };
  205. static struct clockdomain iss_44xx_clkdm = {
  206. .name = "iss_clkdm",
  207. .pwrdm = { .name = "cam_pwrdm" },
  208. .prcm_partition = OMAP4430_CM2_PARTITION,
  209. .cm_inst = OMAP4430_CM2_CAM_INST,
  210. .clkdm_offs = OMAP4430_CM2_CAM_CAM_CDOFFS,
  211. .flags = CLKDM_CAN_HWSUP_SWSUP,
  212. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  213. };
  214. static struct clockdomain l3_dss_44xx_clkdm = {
  215. .name = "l3_dss_clkdm",
  216. .pwrdm = { .name = "dss_pwrdm" },
  217. .prcm_partition = OMAP4430_CM2_PARTITION,
  218. .cm_inst = OMAP4430_CM2_DSS_INST,
  219. .clkdm_offs = OMAP4430_CM2_DSS_DSS_CDOFFS,
  220. .flags = CLKDM_CAN_HWSUP_SWSUP,
  221. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  222. };
  223. static struct clockdomain l4_wkup_44xx_clkdm = {
  224. .name = "l4_wkup_clkdm",
  225. .pwrdm = { .name = "wkup_pwrdm" },
  226. .prcm_partition = OMAP4430_PRM_PARTITION,
  227. .cm_inst = OMAP4430_PRM_WKUP_CM_INST,
  228. .clkdm_offs = OMAP4430_PRM_WKUP_CM_WKUP_CDOFFS,
  229. .flags = CLKDM_CAN_HWSUP,
  230. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  231. };
  232. static struct clockdomain emu_sys_44xx_clkdm = {
  233. .name = "emu_sys_clkdm",
  234. .pwrdm = { .name = "emu_pwrdm" },
  235. .prcm_partition = OMAP4430_PRM_PARTITION,
  236. .cm_inst = OMAP4430_PRM_EMU_CM_INST,
  237. .clkdm_offs = OMAP4430_PRM_EMU_CM_EMU_CDOFFS,
  238. .flags = CLKDM_CAN_HWSUP,
  239. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  240. };
  241. static struct clockdomain l3_dma_44xx_clkdm = {
  242. .name = "l3_dma_clkdm",
  243. .pwrdm = { .name = "core_pwrdm" },
  244. .prcm_partition = OMAP4430_CM2_PARTITION,
  245. .cm_inst = OMAP4430_CM2_CORE_INST,
  246. .clkdm_offs = OMAP4430_CM2_CORE_SDMA_CDOFFS,
  247. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  248. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  249. };
  250. static struct clockdomain *clockdomains_omap44xx[] __initdata = {
  251. &l4_cefuse_44xx_clkdm,
  252. &l4_cfg_44xx_clkdm,
  253. &tesla_44xx_clkdm,
  254. &l3_gfx_44xx_clkdm,
  255. &ivahd_44xx_clkdm,
  256. &l4_secure_44xx_clkdm,
  257. &l4_per_44xx_clkdm,
  258. &abe_44xx_clkdm,
  259. &l3_instr_44xx_clkdm,
  260. &l3_init_44xx_clkdm,
  261. &mpuss_44xx_clkdm,
  262. &mpu0_44xx_clkdm,
  263. &mpu1_44xx_clkdm,
  264. &l3_emif_44xx_clkdm,
  265. &l4_ao_44xx_clkdm,
  266. &ducati_44xx_clkdm,
  267. &l3_2_44xx_clkdm,
  268. &l3_1_44xx_clkdm,
  269. &l3_d2d_44xx_clkdm,
  270. &iss_44xx_clkdm,
  271. &l3_dss_44xx_clkdm,
  272. &l4_wkup_44xx_clkdm,
  273. &emu_sys_44xx_clkdm,
  274. &l3_dma_44xx_clkdm,
  275. NULL,
  276. };
  277. void __init omap44xx_clockdomains_init(void)
  278. {
  279. clkdm_init(clockdomains_omap44xx, NULL);
  280. }