clockdomains54xx_data.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. /*
  2. * OMAP54XX Clock domains framework
  3. *
  4. * Copyright (C) 2013 Texas Instruments, Inc.
  5. *
  6. * Abhijit Pagare (abhijitpagare@ti.com)
  7. * Benoit Cousson (b-cousson@ti.com)
  8. * Paul Walmsley (paul@pwsan.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. #include <linux/kernel.h>
  21. #include <linux/io.h>
  22. #include "clockdomain.h"
  23. #include "cm1_54xx.h"
  24. #include "cm2_54xx.h"
  25. #include "cm-regbits-54xx.h"
  26. #include "prm54xx.h"
  27. #include "prcm44xx.h"
  28. #include "prcm_mpu54xx.h"
  29. /* Static Dependencies for OMAP4 Clock Domains */
  30. static struct clkdm_dep c2c_wkup_sleep_deps[] = {
  31. { .clkdm_name = "abe_clkdm" },
  32. { .clkdm_name = "emif_clkdm" },
  33. { .clkdm_name = "iva_clkdm" },
  34. { .clkdm_name = "l3init_clkdm" },
  35. { .clkdm_name = "l3main1_clkdm" },
  36. { .clkdm_name = "l3main2_clkdm" },
  37. { .clkdm_name = "l4cfg_clkdm" },
  38. { .clkdm_name = "l4per_clkdm" },
  39. { NULL },
  40. };
  41. static struct clkdm_dep cam_wkup_sleep_deps[] = {
  42. { .clkdm_name = "emif_clkdm" },
  43. { .clkdm_name = "iva_clkdm" },
  44. { .clkdm_name = "l3main1_clkdm" },
  45. { NULL },
  46. };
  47. static struct clkdm_dep dma_wkup_sleep_deps[] = {
  48. { .clkdm_name = "abe_clkdm" },
  49. { .clkdm_name = "dss_clkdm" },
  50. { .clkdm_name = "emif_clkdm" },
  51. { .clkdm_name = "ipu_clkdm" },
  52. { .clkdm_name = "iva_clkdm" },
  53. { .clkdm_name = "l3init_clkdm" },
  54. { .clkdm_name = "l3main1_clkdm" },
  55. { .clkdm_name = "l4cfg_clkdm" },
  56. { .clkdm_name = "l4per_clkdm" },
  57. { .clkdm_name = "l4sec_clkdm" },
  58. { .clkdm_name = "wkupaon_clkdm" },
  59. { NULL },
  60. };
  61. static struct clkdm_dep dsp_wkup_sleep_deps[] = {
  62. { .clkdm_name = "abe_clkdm" },
  63. { .clkdm_name = "emif_clkdm" },
  64. { .clkdm_name = "iva_clkdm" },
  65. { .clkdm_name = "l3init_clkdm" },
  66. { .clkdm_name = "l3main1_clkdm" },
  67. { .clkdm_name = "l3main2_clkdm" },
  68. { .clkdm_name = "l4cfg_clkdm" },
  69. { .clkdm_name = "l4per_clkdm" },
  70. { .clkdm_name = "wkupaon_clkdm" },
  71. { NULL },
  72. };
  73. static struct clkdm_dep dss_wkup_sleep_deps[] = {
  74. { .clkdm_name = "emif_clkdm" },
  75. { .clkdm_name = "iva_clkdm" },
  76. { .clkdm_name = "l3main2_clkdm" },
  77. { NULL },
  78. };
  79. static struct clkdm_dep gpu_wkup_sleep_deps[] = {
  80. { .clkdm_name = "emif_clkdm" },
  81. { .clkdm_name = "iva_clkdm" },
  82. { .clkdm_name = "l3main1_clkdm" },
  83. { NULL },
  84. };
  85. static struct clkdm_dep ipu_wkup_sleep_deps[] = {
  86. { .clkdm_name = "abe_clkdm" },
  87. { .clkdm_name = "dsp_clkdm" },
  88. { .clkdm_name = "dss_clkdm" },
  89. { .clkdm_name = "emif_clkdm" },
  90. { .clkdm_name = "gpu_clkdm" },
  91. { .clkdm_name = "iva_clkdm" },
  92. { .clkdm_name = "l3init_clkdm" },
  93. { .clkdm_name = "l3main1_clkdm" },
  94. { .clkdm_name = "l3main2_clkdm" },
  95. { .clkdm_name = "l4cfg_clkdm" },
  96. { .clkdm_name = "l4per_clkdm" },
  97. { .clkdm_name = "l4sec_clkdm" },
  98. { .clkdm_name = "wkupaon_clkdm" },
  99. { NULL },
  100. };
  101. static struct clkdm_dep iva_wkup_sleep_deps[] = {
  102. { .clkdm_name = "emif_clkdm" },
  103. { .clkdm_name = "l3main1_clkdm" },
  104. { NULL },
  105. };
  106. static struct clkdm_dep l3init_wkup_sleep_deps[] = {
  107. { .clkdm_name = "abe_clkdm" },
  108. { .clkdm_name = "emif_clkdm" },
  109. { .clkdm_name = "iva_clkdm" },
  110. { .clkdm_name = "l4cfg_clkdm" },
  111. { .clkdm_name = "l4per_clkdm" },
  112. { .clkdm_name = "l4sec_clkdm" },
  113. { .clkdm_name = "wkupaon_clkdm" },
  114. { NULL },
  115. };
  116. static struct clkdm_dep l4sec_wkup_sleep_deps[] = {
  117. { .clkdm_name = "emif_clkdm" },
  118. { .clkdm_name = "l3main1_clkdm" },
  119. { .clkdm_name = "l4per_clkdm" },
  120. { NULL },
  121. };
  122. static struct clkdm_dep mipiext_wkup_sleep_deps[] = {
  123. { .clkdm_name = "abe_clkdm" },
  124. { .clkdm_name = "emif_clkdm" },
  125. { .clkdm_name = "iva_clkdm" },
  126. { .clkdm_name = "l3init_clkdm" },
  127. { .clkdm_name = "l3main1_clkdm" },
  128. { .clkdm_name = "l3main2_clkdm" },
  129. { .clkdm_name = "l4cfg_clkdm" },
  130. { .clkdm_name = "l4per_clkdm" },
  131. { NULL },
  132. };
  133. static struct clkdm_dep mpu_wkup_sleep_deps[] = {
  134. { .clkdm_name = "abe_clkdm" },
  135. { .clkdm_name = "dsp_clkdm" },
  136. { .clkdm_name = "dss_clkdm" },
  137. { .clkdm_name = "emif_clkdm" },
  138. { .clkdm_name = "gpu_clkdm" },
  139. { .clkdm_name = "ipu_clkdm" },
  140. { .clkdm_name = "iva_clkdm" },
  141. { .clkdm_name = "l3init_clkdm" },
  142. { .clkdm_name = "l3main1_clkdm" },
  143. { .clkdm_name = "l3main2_clkdm" },
  144. { .clkdm_name = "l4cfg_clkdm" },
  145. { .clkdm_name = "l4per_clkdm" },
  146. { .clkdm_name = "l4sec_clkdm" },
  147. { .clkdm_name = "wkupaon_clkdm" },
  148. { NULL },
  149. };
  150. static struct clockdomain l4sec_54xx_clkdm = {
  151. .name = "l4sec_clkdm",
  152. .pwrdm = { .name = "core_pwrdm" },
  153. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  154. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  155. .clkdm_offs = OMAP54XX_CM_CORE_CORE_L4SEC_CDOFFS,
  156. .dep_bit = OMAP54XX_L4SEC_STATDEP_SHIFT,
  157. .wkdep_srcs = l4sec_wkup_sleep_deps,
  158. .sleepdep_srcs = l4sec_wkup_sleep_deps,
  159. .flags = CLKDM_CAN_HWSUP_SWSUP,
  160. };
  161. static struct clockdomain iva_54xx_clkdm = {
  162. .name = "iva_clkdm",
  163. .pwrdm = { .name = "iva_pwrdm" },
  164. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  165. .cm_inst = OMAP54XX_CM_CORE_IVA_INST,
  166. .clkdm_offs = OMAP54XX_CM_CORE_IVA_IVA_CDOFFS,
  167. .dep_bit = OMAP54XX_IVA_STATDEP_SHIFT,
  168. .wkdep_srcs = iva_wkup_sleep_deps,
  169. .sleepdep_srcs = iva_wkup_sleep_deps,
  170. .flags = CLKDM_CAN_HWSUP_SWSUP,
  171. };
  172. static struct clockdomain mipiext_54xx_clkdm = {
  173. .name = "mipiext_clkdm",
  174. .pwrdm = { .name = "core_pwrdm" },
  175. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  176. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  177. .clkdm_offs = OMAP54XX_CM_CORE_CORE_MIPIEXT_CDOFFS,
  178. .wkdep_srcs = mipiext_wkup_sleep_deps,
  179. .sleepdep_srcs = mipiext_wkup_sleep_deps,
  180. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  181. };
  182. static struct clockdomain l3main2_54xx_clkdm = {
  183. .name = "l3main2_clkdm",
  184. .pwrdm = { .name = "core_pwrdm" },
  185. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  186. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  187. .clkdm_offs = OMAP54XX_CM_CORE_CORE_L3MAIN2_CDOFFS,
  188. .dep_bit = OMAP54XX_L3MAIN2_STATDEP_SHIFT,
  189. .flags = CLKDM_CAN_HWSUP,
  190. };
  191. static struct clockdomain l3main1_54xx_clkdm = {
  192. .name = "l3main1_clkdm",
  193. .pwrdm = { .name = "core_pwrdm" },
  194. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  195. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  196. .clkdm_offs = OMAP54XX_CM_CORE_CORE_L3MAIN1_CDOFFS,
  197. .dep_bit = OMAP54XX_L3MAIN1_STATDEP_SHIFT,
  198. .flags = CLKDM_CAN_HWSUP,
  199. };
  200. static struct clockdomain custefuse_54xx_clkdm = {
  201. .name = "custefuse_clkdm",
  202. .pwrdm = { .name = "custefuse_pwrdm" },
  203. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  204. .cm_inst = OMAP54XX_CM_CORE_CUSTEFUSE_INST,
  205. .clkdm_offs = OMAP54XX_CM_CORE_CUSTEFUSE_CUSTEFUSE_CDOFFS,
  206. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  207. };
  208. static struct clockdomain ipu_54xx_clkdm = {
  209. .name = "ipu_clkdm",
  210. .pwrdm = { .name = "core_pwrdm" },
  211. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  212. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  213. .clkdm_offs = OMAP54XX_CM_CORE_CORE_IPU_CDOFFS,
  214. .dep_bit = OMAP54XX_IPU_STATDEP_SHIFT,
  215. .wkdep_srcs = ipu_wkup_sleep_deps,
  216. .sleepdep_srcs = ipu_wkup_sleep_deps,
  217. .flags = CLKDM_CAN_HWSUP_SWSUP,
  218. };
  219. static struct clockdomain l4cfg_54xx_clkdm = {
  220. .name = "l4cfg_clkdm",
  221. .pwrdm = { .name = "core_pwrdm" },
  222. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  223. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  224. .clkdm_offs = OMAP54XX_CM_CORE_CORE_L4CFG_CDOFFS,
  225. .dep_bit = OMAP54XX_L4CFG_STATDEP_SHIFT,
  226. .flags = CLKDM_CAN_HWSUP,
  227. };
  228. static struct clockdomain abe_54xx_clkdm = {
  229. .name = "abe_clkdm",
  230. .pwrdm = { .name = "abe_pwrdm" },
  231. .prcm_partition = OMAP54XX_CM_CORE_AON_PARTITION,
  232. .cm_inst = OMAP54XX_CM_CORE_AON_ABE_INST,
  233. .clkdm_offs = OMAP54XX_CM_CORE_AON_ABE_ABE_CDOFFS,
  234. .dep_bit = OMAP54XX_ABE_STATDEP_SHIFT,
  235. .flags = CLKDM_CAN_HWSUP_SWSUP,
  236. };
  237. static struct clockdomain dss_54xx_clkdm = {
  238. .name = "dss_clkdm",
  239. .pwrdm = { .name = "dss_pwrdm" },
  240. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  241. .cm_inst = OMAP54XX_CM_CORE_DSS_INST,
  242. .clkdm_offs = OMAP54XX_CM_CORE_DSS_DSS_CDOFFS,
  243. .dep_bit = OMAP54XX_DSS_STATDEP_SHIFT,
  244. .wkdep_srcs = dss_wkup_sleep_deps,
  245. .sleepdep_srcs = dss_wkup_sleep_deps,
  246. .flags = CLKDM_CAN_HWSUP_SWSUP,
  247. };
  248. static struct clockdomain dsp_54xx_clkdm = {
  249. .name = "dsp_clkdm",
  250. .pwrdm = { .name = "dsp_pwrdm" },
  251. .prcm_partition = OMAP54XX_CM_CORE_AON_PARTITION,
  252. .cm_inst = OMAP54XX_CM_CORE_AON_DSP_INST,
  253. .clkdm_offs = OMAP54XX_CM_CORE_AON_DSP_DSP_CDOFFS,
  254. .dep_bit = OMAP54XX_DSP_STATDEP_SHIFT,
  255. .wkdep_srcs = dsp_wkup_sleep_deps,
  256. .sleepdep_srcs = dsp_wkup_sleep_deps,
  257. .flags = CLKDM_CAN_HWSUP_SWSUP,
  258. };
  259. static struct clockdomain c2c_54xx_clkdm = {
  260. .name = "c2c_clkdm",
  261. .pwrdm = { .name = "core_pwrdm" },
  262. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  263. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  264. .clkdm_offs = OMAP54XX_CM_CORE_CORE_C2C_CDOFFS,
  265. .wkdep_srcs = c2c_wkup_sleep_deps,
  266. .sleepdep_srcs = c2c_wkup_sleep_deps,
  267. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  268. };
  269. static struct clockdomain l4per_54xx_clkdm = {
  270. .name = "l4per_clkdm",
  271. .pwrdm = { .name = "core_pwrdm" },
  272. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  273. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  274. .clkdm_offs = OMAP54XX_CM_CORE_CORE_L4PER_CDOFFS,
  275. .dep_bit = OMAP54XX_L4PER_STATDEP_SHIFT,
  276. .flags = CLKDM_CAN_HWSUP_SWSUP,
  277. };
  278. static struct clockdomain gpu_54xx_clkdm = {
  279. .name = "gpu_clkdm",
  280. .pwrdm = { .name = "gpu_pwrdm" },
  281. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  282. .cm_inst = OMAP54XX_CM_CORE_GPU_INST,
  283. .clkdm_offs = OMAP54XX_CM_CORE_GPU_GPU_CDOFFS,
  284. .dep_bit = OMAP54XX_GPU_STATDEP_SHIFT,
  285. .wkdep_srcs = gpu_wkup_sleep_deps,
  286. .sleepdep_srcs = gpu_wkup_sleep_deps,
  287. .flags = CLKDM_CAN_HWSUP_SWSUP,
  288. };
  289. static struct clockdomain wkupaon_54xx_clkdm = {
  290. .name = "wkupaon_clkdm",
  291. .pwrdm = { .name = "wkupaon_pwrdm" },
  292. .prcm_partition = OMAP54XX_PRM_PARTITION,
  293. .cm_inst = OMAP54XX_PRM_WKUPAON_CM_INST,
  294. .clkdm_offs = OMAP54XX_PRM_WKUPAON_CM_WKUPAON_CDOFFS,
  295. .dep_bit = OMAP54XX_WKUPAON_STATDEP_SHIFT,
  296. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  297. };
  298. static struct clockdomain mpu0_54xx_clkdm = {
  299. .name = "mpu0_clkdm",
  300. .pwrdm = { .name = "cpu0_pwrdm" },
  301. .prcm_partition = OMAP54XX_PRCM_MPU_PARTITION,
  302. .cm_inst = OMAP54XX_PRCM_MPU_CM_C0_INST,
  303. .clkdm_offs = OMAP54XX_PRCM_MPU_CM_C0_CPU0_CDOFFS,
  304. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  305. };
  306. static struct clockdomain mpu1_54xx_clkdm = {
  307. .name = "mpu1_clkdm",
  308. .pwrdm = { .name = "cpu1_pwrdm" },
  309. .prcm_partition = OMAP54XX_PRCM_MPU_PARTITION,
  310. .cm_inst = OMAP54XX_PRCM_MPU_CM_C1_INST,
  311. .clkdm_offs = OMAP54XX_PRCM_MPU_CM_C1_CPU1_CDOFFS,
  312. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  313. };
  314. static struct clockdomain coreaon_54xx_clkdm = {
  315. .name = "coreaon_clkdm",
  316. .pwrdm = { .name = "coreaon_pwrdm" },
  317. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  318. .cm_inst = OMAP54XX_CM_CORE_COREAON_INST,
  319. .clkdm_offs = OMAP54XX_CM_CORE_COREAON_COREAON_CDOFFS,
  320. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  321. };
  322. static struct clockdomain mpu_54xx_clkdm = {
  323. .name = "mpu_clkdm",
  324. .pwrdm = { .name = "mpu_pwrdm" },
  325. .prcm_partition = OMAP54XX_CM_CORE_AON_PARTITION,
  326. .cm_inst = OMAP54XX_CM_CORE_AON_MPU_INST,
  327. .clkdm_offs = OMAP54XX_CM_CORE_AON_MPU_MPU_CDOFFS,
  328. .wkdep_srcs = mpu_wkup_sleep_deps,
  329. .sleepdep_srcs = mpu_wkup_sleep_deps,
  330. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  331. };
  332. static struct clockdomain l3init_54xx_clkdm = {
  333. .name = "l3init_clkdm",
  334. .pwrdm = { .name = "l3init_pwrdm" },
  335. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  336. .cm_inst = OMAP54XX_CM_CORE_L3INIT_INST,
  337. .clkdm_offs = OMAP54XX_CM_CORE_L3INIT_L3INIT_CDOFFS,
  338. .dep_bit = OMAP54XX_L3INIT_STATDEP_SHIFT,
  339. .wkdep_srcs = l3init_wkup_sleep_deps,
  340. .sleepdep_srcs = l3init_wkup_sleep_deps,
  341. .flags = CLKDM_CAN_HWSUP_SWSUP,
  342. };
  343. static struct clockdomain dma_54xx_clkdm = {
  344. .name = "dma_clkdm",
  345. .pwrdm = { .name = "core_pwrdm" },
  346. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  347. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  348. .clkdm_offs = OMAP54XX_CM_CORE_CORE_DMA_CDOFFS,
  349. .wkdep_srcs = dma_wkup_sleep_deps,
  350. .sleepdep_srcs = dma_wkup_sleep_deps,
  351. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  352. };
  353. static struct clockdomain l3instr_54xx_clkdm = {
  354. .name = "l3instr_clkdm",
  355. .pwrdm = { .name = "core_pwrdm" },
  356. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  357. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  358. .clkdm_offs = OMAP54XX_CM_CORE_CORE_L3INSTR_CDOFFS,
  359. };
  360. static struct clockdomain emif_54xx_clkdm = {
  361. .name = "emif_clkdm",
  362. .pwrdm = { .name = "core_pwrdm" },
  363. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  364. .cm_inst = OMAP54XX_CM_CORE_CORE_INST,
  365. .clkdm_offs = OMAP54XX_CM_CORE_CORE_EMIF_CDOFFS,
  366. .dep_bit = OMAP54XX_EMIF_STATDEP_SHIFT,
  367. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  368. };
  369. static struct clockdomain emu_54xx_clkdm = {
  370. .name = "emu_clkdm",
  371. .pwrdm = { .name = "emu_pwrdm" },
  372. .prcm_partition = OMAP54XX_PRM_PARTITION,
  373. .cm_inst = OMAP54XX_PRM_EMU_CM_INST,
  374. .clkdm_offs = OMAP54XX_PRM_EMU_CM_EMU_CDOFFS,
  375. .flags = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
  376. };
  377. static struct clockdomain cam_54xx_clkdm = {
  378. .name = "cam_clkdm",
  379. .pwrdm = { .name = "cam_pwrdm" },
  380. .prcm_partition = OMAP54XX_CM_CORE_PARTITION,
  381. .cm_inst = OMAP54XX_CM_CORE_CAM_INST,
  382. .clkdm_offs = OMAP54XX_CM_CORE_CAM_CAM_CDOFFS,
  383. .wkdep_srcs = cam_wkup_sleep_deps,
  384. .sleepdep_srcs = cam_wkup_sleep_deps,
  385. .flags = CLKDM_CAN_HWSUP_SWSUP,
  386. };
  387. /* As clockdomains are added or removed above, this list must also be changed */
  388. static struct clockdomain *clockdomains_omap54xx[] __initdata = {
  389. &l4sec_54xx_clkdm,
  390. &iva_54xx_clkdm,
  391. &mipiext_54xx_clkdm,
  392. &l3main2_54xx_clkdm,
  393. &l3main1_54xx_clkdm,
  394. &custefuse_54xx_clkdm,
  395. &ipu_54xx_clkdm,
  396. &l4cfg_54xx_clkdm,
  397. &abe_54xx_clkdm,
  398. &dss_54xx_clkdm,
  399. &dsp_54xx_clkdm,
  400. &c2c_54xx_clkdm,
  401. &l4per_54xx_clkdm,
  402. &gpu_54xx_clkdm,
  403. &wkupaon_54xx_clkdm,
  404. &mpu0_54xx_clkdm,
  405. &mpu1_54xx_clkdm,
  406. &coreaon_54xx_clkdm,
  407. &mpu_54xx_clkdm,
  408. &l3init_54xx_clkdm,
  409. &dma_54xx_clkdm,
  410. &l3instr_54xx_clkdm,
  411. &emif_54xx_clkdm,
  412. &emu_54xx_clkdm,
  413. &cam_54xx_clkdm,
  414. NULL
  415. };
  416. void __init omap54xx_clockdomains_init(void)
  417. {
  418. clkdm_register_platform_funcs(&omap4_clkdm_operations);
  419. clkdm_register_clkdms(clockdomains_omap54xx);
  420. clkdm_complete_init();
  421. }