omap_hwmod_44xx_data.c 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2010 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley
  8. * Benoit Cousson
  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/io.h>
  21. #include <plat/omap_hwmod.h>
  22. #include <plat/cpu.h>
  23. #include <plat/gpio.h>
  24. #include <plat/dma.h>
  25. #include "omap_hwmod_common_data.h"
  26. #include "cm.h"
  27. #include "prm-regbits-44xx.h"
  28. #include "wd_timer.h"
  29. /* Base offset for all OMAP4 interrupts external to MPUSS */
  30. #define OMAP44XX_IRQ_GIC_START 32
  31. /* Base offset for all OMAP4 dma requests */
  32. #define OMAP44XX_DMA_REQ_START 1
  33. /* Backward references (IPs with Bus Master capability) */
  34. static struct omap_hwmod omap44xx_dma_system_hwmod;
  35. static struct omap_hwmod omap44xx_dmm_hwmod;
  36. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  37. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  38. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  39. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  40. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  41. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  42. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  43. static struct omap_hwmod omap44xx_l4_per_hwmod;
  44. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  45. static struct omap_hwmod omap44xx_mpu_hwmod;
  46. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  47. /*
  48. * Interconnects omap_hwmod structures
  49. * hwmods that compose the global OMAP interconnect
  50. */
  51. /*
  52. * 'dmm' class
  53. * instance(s): dmm
  54. */
  55. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  56. .name = "dmm",
  57. };
  58. /* dmm interface data */
  59. /* l3_main_1 -> dmm */
  60. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  61. .master = &omap44xx_l3_main_1_hwmod,
  62. .slave = &omap44xx_dmm_hwmod,
  63. .clk = "l3_div_ck",
  64. .user = OCP_USER_MPU | OCP_USER_SDMA,
  65. };
  66. /* mpu -> dmm */
  67. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  68. .master = &omap44xx_mpu_hwmod,
  69. .slave = &omap44xx_dmm_hwmod,
  70. .clk = "l3_div_ck",
  71. .user = OCP_USER_MPU | OCP_USER_SDMA,
  72. };
  73. /* dmm slave ports */
  74. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  75. &omap44xx_l3_main_1__dmm,
  76. &omap44xx_mpu__dmm,
  77. };
  78. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  79. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  80. };
  81. static struct omap_hwmod omap44xx_dmm_hwmod = {
  82. .name = "dmm",
  83. .class = &omap44xx_dmm_hwmod_class,
  84. .slaves = omap44xx_dmm_slaves,
  85. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  86. .mpu_irqs = omap44xx_dmm_irqs,
  87. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  88. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  89. };
  90. /*
  91. * 'emif_fw' class
  92. * instance(s): emif_fw
  93. */
  94. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  95. .name = "emif_fw",
  96. };
  97. /* emif_fw interface data */
  98. /* dmm -> emif_fw */
  99. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  100. .master = &omap44xx_dmm_hwmod,
  101. .slave = &omap44xx_emif_fw_hwmod,
  102. .clk = "l3_div_ck",
  103. .user = OCP_USER_MPU | OCP_USER_SDMA,
  104. };
  105. /* l4_cfg -> emif_fw */
  106. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  107. .master = &omap44xx_l4_cfg_hwmod,
  108. .slave = &omap44xx_emif_fw_hwmod,
  109. .clk = "l4_div_ck",
  110. .user = OCP_USER_MPU | OCP_USER_SDMA,
  111. };
  112. /* emif_fw slave ports */
  113. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  114. &omap44xx_dmm__emif_fw,
  115. &omap44xx_l4_cfg__emif_fw,
  116. };
  117. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  118. .name = "emif_fw",
  119. .class = &omap44xx_emif_fw_hwmod_class,
  120. .slaves = omap44xx_emif_fw_slaves,
  121. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  122. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  123. };
  124. /*
  125. * 'l3' class
  126. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  127. */
  128. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  129. .name = "l3",
  130. };
  131. /* l3_instr interface data */
  132. /* l3_main_3 -> l3_instr */
  133. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  134. .master = &omap44xx_l3_main_3_hwmod,
  135. .slave = &omap44xx_l3_instr_hwmod,
  136. .clk = "l3_div_ck",
  137. .user = OCP_USER_MPU | OCP_USER_SDMA,
  138. };
  139. /* l3_instr slave ports */
  140. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  141. &omap44xx_l3_main_3__l3_instr,
  142. };
  143. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  144. .name = "l3_instr",
  145. .class = &omap44xx_l3_hwmod_class,
  146. .slaves = omap44xx_l3_instr_slaves,
  147. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  148. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  149. };
  150. /* l3_main_2 -> l3_main_1 */
  151. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  152. .master = &omap44xx_l3_main_2_hwmod,
  153. .slave = &omap44xx_l3_main_1_hwmod,
  154. .clk = "l3_div_ck",
  155. .user = OCP_USER_MPU | OCP_USER_SDMA,
  156. };
  157. /* l4_cfg -> l3_main_1 */
  158. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  159. .master = &omap44xx_l4_cfg_hwmod,
  160. .slave = &omap44xx_l3_main_1_hwmod,
  161. .clk = "l4_div_ck",
  162. .user = OCP_USER_MPU | OCP_USER_SDMA,
  163. };
  164. /* mpu -> l3_main_1 */
  165. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  166. .master = &omap44xx_mpu_hwmod,
  167. .slave = &omap44xx_l3_main_1_hwmod,
  168. .clk = "l3_div_ck",
  169. .user = OCP_USER_MPU | OCP_USER_SDMA,
  170. };
  171. /* l3_main_1 slave ports */
  172. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  173. &omap44xx_l3_main_2__l3_main_1,
  174. &omap44xx_l4_cfg__l3_main_1,
  175. &omap44xx_mpu__l3_main_1,
  176. };
  177. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  178. .name = "l3_main_1",
  179. .class = &omap44xx_l3_hwmod_class,
  180. .slaves = omap44xx_l3_main_1_slaves,
  181. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  182. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  183. };
  184. /* l3_main_2 interface data */
  185. /* l3_main_1 -> l3_main_2 */
  186. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  187. .master = &omap44xx_l3_main_1_hwmod,
  188. .slave = &omap44xx_l3_main_2_hwmod,
  189. .clk = "l3_div_ck",
  190. .user = OCP_USER_MPU | OCP_USER_SDMA,
  191. };
  192. /* dma_system -> l3_main_2 */
  193. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  194. .master = &omap44xx_dma_system_hwmod,
  195. .slave = &omap44xx_l3_main_2_hwmod,
  196. .clk = "l3_div_ck",
  197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  198. };
  199. /* l4_cfg -> l3_main_2 */
  200. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  201. .master = &omap44xx_l4_cfg_hwmod,
  202. .slave = &omap44xx_l3_main_2_hwmod,
  203. .clk = "l4_div_ck",
  204. .user = OCP_USER_MPU | OCP_USER_SDMA,
  205. };
  206. /* l3_main_2 slave ports */
  207. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  208. &omap44xx_dma_system__l3_main_2,
  209. &omap44xx_l3_main_1__l3_main_2,
  210. &omap44xx_l4_cfg__l3_main_2,
  211. };
  212. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  213. .name = "l3_main_2",
  214. .class = &omap44xx_l3_hwmod_class,
  215. .slaves = omap44xx_l3_main_2_slaves,
  216. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  217. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  218. };
  219. /* l3_main_3 interface data */
  220. /* l3_main_1 -> l3_main_3 */
  221. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  222. .master = &omap44xx_l3_main_1_hwmod,
  223. .slave = &omap44xx_l3_main_3_hwmod,
  224. .clk = "l3_div_ck",
  225. .user = OCP_USER_MPU | OCP_USER_SDMA,
  226. };
  227. /* l3_main_2 -> l3_main_3 */
  228. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  229. .master = &omap44xx_l3_main_2_hwmod,
  230. .slave = &omap44xx_l3_main_3_hwmod,
  231. .clk = "l3_div_ck",
  232. .user = OCP_USER_MPU | OCP_USER_SDMA,
  233. };
  234. /* l4_cfg -> l3_main_3 */
  235. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  236. .master = &omap44xx_l4_cfg_hwmod,
  237. .slave = &omap44xx_l3_main_3_hwmod,
  238. .clk = "l4_div_ck",
  239. .user = OCP_USER_MPU | OCP_USER_SDMA,
  240. };
  241. /* l3_main_3 slave ports */
  242. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  243. &omap44xx_l3_main_1__l3_main_3,
  244. &omap44xx_l3_main_2__l3_main_3,
  245. &omap44xx_l4_cfg__l3_main_3,
  246. };
  247. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  248. .name = "l3_main_3",
  249. .class = &omap44xx_l3_hwmod_class,
  250. .slaves = omap44xx_l3_main_3_slaves,
  251. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  252. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  253. };
  254. /*
  255. * 'l4' class
  256. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  257. */
  258. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  259. .name = "l4",
  260. };
  261. /* l4_abe interface data */
  262. /* l3_main_1 -> l4_abe */
  263. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  264. .master = &omap44xx_l3_main_1_hwmod,
  265. .slave = &omap44xx_l4_abe_hwmod,
  266. .clk = "l3_div_ck",
  267. .user = OCP_USER_MPU | OCP_USER_SDMA,
  268. };
  269. /* mpu -> l4_abe */
  270. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  271. .master = &omap44xx_mpu_hwmod,
  272. .slave = &omap44xx_l4_abe_hwmod,
  273. .clk = "ocp_abe_iclk",
  274. .user = OCP_USER_MPU | OCP_USER_SDMA,
  275. };
  276. /* l4_abe slave ports */
  277. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  278. &omap44xx_l3_main_1__l4_abe,
  279. &omap44xx_mpu__l4_abe,
  280. };
  281. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  282. .name = "l4_abe",
  283. .class = &omap44xx_l4_hwmod_class,
  284. .slaves = omap44xx_l4_abe_slaves,
  285. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  286. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  287. };
  288. /* l4_cfg interface data */
  289. /* l3_main_1 -> l4_cfg */
  290. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  291. .master = &omap44xx_l3_main_1_hwmod,
  292. .slave = &omap44xx_l4_cfg_hwmod,
  293. .clk = "l3_div_ck",
  294. .user = OCP_USER_MPU | OCP_USER_SDMA,
  295. };
  296. /* l4_cfg slave ports */
  297. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  298. &omap44xx_l3_main_1__l4_cfg,
  299. };
  300. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  301. .name = "l4_cfg",
  302. .class = &omap44xx_l4_hwmod_class,
  303. .slaves = omap44xx_l4_cfg_slaves,
  304. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  305. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  306. };
  307. /* l4_per interface data */
  308. /* l3_main_2 -> l4_per */
  309. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  310. .master = &omap44xx_l3_main_2_hwmod,
  311. .slave = &omap44xx_l4_per_hwmod,
  312. .clk = "l3_div_ck",
  313. .user = OCP_USER_MPU | OCP_USER_SDMA,
  314. };
  315. /* l4_per slave ports */
  316. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  317. &omap44xx_l3_main_2__l4_per,
  318. };
  319. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  320. .name = "l4_per",
  321. .class = &omap44xx_l4_hwmod_class,
  322. .slaves = omap44xx_l4_per_slaves,
  323. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  324. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  325. };
  326. /* l4_wkup interface data */
  327. /* l4_cfg -> l4_wkup */
  328. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  329. .master = &omap44xx_l4_cfg_hwmod,
  330. .slave = &omap44xx_l4_wkup_hwmod,
  331. .clk = "l4_div_ck",
  332. .user = OCP_USER_MPU | OCP_USER_SDMA,
  333. };
  334. /* l4_wkup slave ports */
  335. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  336. &omap44xx_l4_cfg__l4_wkup,
  337. };
  338. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  339. .name = "l4_wkup",
  340. .class = &omap44xx_l4_hwmod_class,
  341. .slaves = omap44xx_l4_wkup_slaves,
  342. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  343. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  344. };
  345. /*
  346. * 'i2c' class
  347. * multimaster high-speed i2c controller
  348. */
  349. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  350. .sysc_offs = 0x0010,
  351. .syss_offs = 0x0090,
  352. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  353. SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SOFTRESET |
  354. SYSC_HAS_AUTOIDLE),
  355. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  356. .sysc_fields = &omap_hwmod_sysc_type1,
  357. };
  358. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  359. .name = "i2c",
  360. .sysc = &omap44xx_i2c_sysc,
  361. };
  362. /* i2c1 */
  363. static struct omap_hwmod omap44xx_i2c1_hwmod;
  364. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  365. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  366. };
  367. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  368. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  369. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  370. };
  371. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  372. {
  373. .pa_start = 0x48070000,
  374. .pa_end = 0x480700ff,
  375. .flags = ADDR_TYPE_RT
  376. },
  377. };
  378. /* l4_per -> i2c1 */
  379. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  380. .master = &omap44xx_l4_per_hwmod,
  381. .slave = &omap44xx_i2c1_hwmod,
  382. .clk = "l4_div_ck",
  383. .addr = omap44xx_i2c1_addrs,
  384. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  385. .user = OCP_USER_MPU | OCP_USER_SDMA,
  386. };
  387. /* i2c1 slave ports */
  388. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  389. &omap44xx_l4_per__i2c1,
  390. };
  391. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  392. .name = "i2c1",
  393. .class = &omap44xx_i2c_hwmod_class,
  394. .flags = HWMOD_INIT_NO_RESET,
  395. .mpu_irqs = omap44xx_i2c1_irqs,
  396. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  397. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  398. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  399. .main_clk = "i2c1_fck",
  400. .prcm = {
  401. .omap4 = {
  402. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  403. },
  404. },
  405. .slaves = omap44xx_i2c1_slaves,
  406. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  407. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  408. };
  409. /* i2c2 */
  410. static struct omap_hwmod omap44xx_i2c2_hwmod;
  411. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  412. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  413. };
  414. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  415. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  416. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  417. };
  418. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  419. {
  420. .pa_start = 0x48072000,
  421. .pa_end = 0x480720ff,
  422. .flags = ADDR_TYPE_RT
  423. },
  424. };
  425. /* l4_per -> i2c2 */
  426. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  427. .master = &omap44xx_l4_per_hwmod,
  428. .slave = &omap44xx_i2c2_hwmod,
  429. .clk = "l4_div_ck",
  430. .addr = omap44xx_i2c2_addrs,
  431. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  432. .user = OCP_USER_MPU | OCP_USER_SDMA,
  433. };
  434. /* i2c2 slave ports */
  435. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  436. &omap44xx_l4_per__i2c2,
  437. };
  438. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  439. .name = "i2c2",
  440. .class = &omap44xx_i2c_hwmod_class,
  441. .flags = HWMOD_INIT_NO_RESET,
  442. .mpu_irqs = omap44xx_i2c2_irqs,
  443. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  444. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  445. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  446. .main_clk = "i2c2_fck",
  447. .prcm = {
  448. .omap4 = {
  449. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  450. },
  451. },
  452. .slaves = omap44xx_i2c2_slaves,
  453. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  454. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  455. };
  456. /* i2c3 */
  457. static struct omap_hwmod omap44xx_i2c3_hwmod;
  458. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  459. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  460. };
  461. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  462. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  463. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  464. };
  465. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  466. {
  467. .pa_start = 0x48060000,
  468. .pa_end = 0x480600ff,
  469. .flags = ADDR_TYPE_RT
  470. },
  471. };
  472. /* l4_per -> i2c3 */
  473. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  474. .master = &omap44xx_l4_per_hwmod,
  475. .slave = &omap44xx_i2c3_hwmod,
  476. .clk = "l4_div_ck",
  477. .addr = omap44xx_i2c3_addrs,
  478. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  479. .user = OCP_USER_MPU | OCP_USER_SDMA,
  480. };
  481. /* i2c3 slave ports */
  482. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  483. &omap44xx_l4_per__i2c3,
  484. };
  485. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  486. .name = "i2c3",
  487. .class = &omap44xx_i2c_hwmod_class,
  488. .flags = HWMOD_INIT_NO_RESET,
  489. .mpu_irqs = omap44xx_i2c3_irqs,
  490. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  491. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  492. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  493. .main_clk = "i2c3_fck",
  494. .prcm = {
  495. .omap4 = {
  496. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  497. },
  498. },
  499. .slaves = omap44xx_i2c3_slaves,
  500. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  501. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  502. };
  503. /* i2c4 */
  504. static struct omap_hwmod omap44xx_i2c4_hwmod;
  505. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  506. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  507. };
  508. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  509. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  510. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  511. };
  512. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  513. {
  514. .pa_start = 0x48350000,
  515. .pa_end = 0x483500ff,
  516. .flags = ADDR_TYPE_RT
  517. },
  518. };
  519. /* l4_per -> i2c4 */
  520. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  521. .master = &omap44xx_l4_per_hwmod,
  522. .slave = &omap44xx_i2c4_hwmod,
  523. .clk = "l4_div_ck",
  524. .addr = omap44xx_i2c4_addrs,
  525. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  526. .user = OCP_USER_MPU | OCP_USER_SDMA,
  527. };
  528. /* i2c4 slave ports */
  529. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  530. &omap44xx_l4_per__i2c4,
  531. };
  532. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  533. .name = "i2c4",
  534. .class = &omap44xx_i2c_hwmod_class,
  535. .flags = HWMOD_INIT_NO_RESET,
  536. .mpu_irqs = omap44xx_i2c4_irqs,
  537. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  538. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  539. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  540. .main_clk = "i2c4_fck",
  541. .prcm = {
  542. .omap4 = {
  543. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  544. },
  545. },
  546. .slaves = omap44xx_i2c4_slaves,
  547. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  548. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  549. };
  550. /*
  551. * 'mpu_bus' class
  552. * instance(s): mpu_private
  553. */
  554. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  555. .name = "mpu_bus",
  556. };
  557. /* mpu_private interface data */
  558. /* mpu -> mpu_private */
  559. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  560. .master = &omap44xx_mpu_hwmod,
  561. .slave = &omap44xx_mpu_private_hwmod,
  562. .clk = "l3_div_ck",
  563. .user = OCP_USER_MPU | OCP_USER_SDMA,
  564. };
  565. /* mpu_private slave ports */
  566. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  567. &omap44xx_mpu__mpu_private,
  568. };
  569. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  570. .name = "mpu_private",
  571. .class = &omap44xx_mpu_bus_hwmod_class,
  572. .slaves = omap44xx_mpu_private_slaves,
  573. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  574. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  575. };
  576. /*
  577. * 'mpu' class
  578. * mpu sub-system
  579. */
  580. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  581. .name = "mpu",
  582. };
  583. /* mpu */
  584. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  585. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  586. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  587. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  588. };
  589. /* mpu master ports */
  590. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  591. &omap44xx_mpu__l3_main_1,
  592. &omap44xx_mpu__l4_abe,
  593. &omap44xx_mpu__dmm,
  594. };
  595. static struct omap_hwmod omap44xx_mpu_hwmod = {
  596. .name = "mpu",
  597. .class = &omap44xx_mpu_hwmod_class,
  598. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  599. .mpu_irqs = omap44xx_mpu_irqs,
  600. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  601. .main_clk = "dpll_mpu_m2_ck",
  602. .prcm = {
  603. .omap4 = {
  604. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  605. },
  606. },
  607. .masters = omap44xx_mpu_masters,
  608. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  609. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  610. };
  611. /*
  612. * 'wd_timer' class
  613. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  614. * overflow condition
  615. */
  616. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  617. .rev_offs = 0x0000,
  618. .sysc_offs = 0x0010,
  619. .syss_offs = 0x0014,
  620. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
  621. SYSC_HAS_SOFTRESET),
  622. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  623. .sysc_fields = &omap_hwmod_sysc_type1,
  624. };
  625. /*
  626. * 'uart' class
  627. * universal asynchronous receiver/transmitter (uart)
  628. */
  629. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  630. .rev_offs = 0x0050,
  631. .sysc_offs = 0x0054,
  632. .syss_offs = 0x0058,
  633. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  634. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  635. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  636. .sysc_fields = &omap_hwmod_sysc_type1,
  637. };
  638. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  639. .name = "wd_timer",
  640. .sysc = &omap44xx_wd_timer_sysc,
  641. .pre_shutdown = &omap2_wd_timer_disable
  642. };
  643. /* wd_timer2 */
  644. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  645. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  646. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  647. };
  648. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  649. {
  650. .pa_start = 0x4a314000,
  651. .pa_end = 0x4a31407f,
  652. .flags = ADDR_TYPE_RT
  653. },
  654. };
  655. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  656. .name = "uart",
  657. .sysc = &omap44xx_uart_sysc,
  658. };
  659. /* uart1 */
  660. static struct omap_hwmod omap44xx_uart1_hwmod;
  661. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  662. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  663. };
  664. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  665. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  666. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  667. };
  668. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  669. {
  670. .pa_start = 0x4806a000,
  671. .pa_end = 0x4806a0ff,
  672. .flags = ADDR_TYPE_RT
  673. },
  674. };
  675. /* l4_per -> uart1 */
  676. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  677. .master = &omap44xx_l4_per_hwmod,
  678. .slave = &omap44xx_uart1_hwmod,
  679. .clk = "l4_div_ck",
  680. .addr = omap44xx_uart1_addrs,
  681. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  682. .user = OCP_USER_MPU | OCP_USER_SDMA,
  683. };
  684. /* uart1 slave ports */
  685. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  686. &omap44xx_l4_per__uart1,
  687. };
  688. static struct omap_hwmod omap44xx_uart1_hwmod = {
  689. .name = "uart1",
  690. .class = &omap44xx_uart_hwmod_class,
  691. .mpu_irqs = omap44xx_uart1_irqs,
  692. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  693. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  694. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  695. .main_clk = "uart1_fck",
  696. .prcm = {
  697. .omap4 = {
  698. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  699. },
  700. },
  701. .slaves = omap44xx_uart1_slaves,
  702. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  703. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  704. };
  705. /* uart2 */
  706. static struct omap_hwmod omap44xx_uart2_hwmod;
  707. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  708. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  709. };
  710. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  711. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  712. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  713. };
  714. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  715. {
  716. .pa_start = 0x4806c000,
  717. .pa_end = 0x4806c0ff,
  718. .flags = ADDR_TYPE_RT
  719. },
  720. };
  721. /* l4_wkup -> wd_timer2 */
  722. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  723. .master = &omap44xx_l4_wkup_hwmod,
  724. .slave = &omap44xx_wd_timer2_hwmod,
  725. .clk = "l4_wkup_clk_mux_ck",
  726. .addr = omap44xx_wd_timer2_addrs,
  727. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  728. .user = OCP_USER_MPU | OCP_USER_SDMA,
  729. };
  730. /* wd_timer2 slave ports */
  731. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  732. &omap44xx_l4_wkup__wd_timer2,
  733. };
  734. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  735. .name = "wd_timer2",
  736. .class = &omap44xx_wd_timer_hwmod_class,
  737. .mpu_irqs = omap44xx_wd_timer2_irqs,
  738. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  739. .main_clk = "wd_timer2_fck",
  740. .prcm = {
  741. .omap4 = {
  742. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  743. },
  744. },
  745. .slaves = omap44xx_wd_timer2_slaves,
  746. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  747. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  748. };
  749. /* wd_timer3 */
  750. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  751. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  752. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  753. };
  754. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  755. {
  756. .pa_start = 0x40130000,
  757. .pa_end = 0x4013007f,
  758. .flags = ADDR_TYPE_RT
  759. },
  760. };
  761. /* l4_per -> uart2 */
  762. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  763. .master = &omap44xx_l4_per_hwmod,
  764. .slave = &omap44xx_uart2_hwmod,
  765. .clk = "l4_div_ck",
  766. .addr = omap44xx_uart2_addrs,
  767. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  768. .user = OCP_USER_MPU | OCP_USER_SDMA,
  769. };
  770. /* uart2 slave ports */
  771. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  772. &omap44xx_l4_per__uart2,
  773. };
  774. static struct omap_hwmod omap44xx_uart2_hwmod = {
  775. .name = "uart2",
  776. .class = &omap44xx_uart_hwmod_class,
  777. .mpu_irqs = omap44xx_uart2_irqs,
  778. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  779. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  780. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  781. .main_clk = "uart2_fck",
  782. .prcm = {
  783. .omap4 = {
  784. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  785. },
  786. },
  787. .slaves = omap44xx_uart2_slaves,
  788. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  789. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  790. };
  791. /* uart3 */
  792. static struct omap_hwmod omap44xx_uart3_hwmod;
  793. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  794. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  795. };
  796. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  797. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  798. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  799. };
  800. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  801. {
  802. .pa_start = 0x48020000,
  803. .pa_end = 0x480200ff,
  804. .flags = ADDR_TYPE_RT
  805. },
  806. };
  807. /* l4_abe -> wd_timer3 */
  808. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  809. .master = &omap44xx_l4_abe_hwmod,
  810. .slave = &omap44xx_wd_timer3_hwmod,
  811. .clk = "ocp_abe_iclk",
  812. .addr = omap44xx_wd_timer3_addrs,
  813. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  814. .user = OCP_USER_MPU,
  815. };
  816. /* l4_abe -> wd_timer3 (dma) */
  817. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  818. {
  819. .pa_start = 0x49030000,
  820. .pa_end = 0x4903007f,
  821. .flags = ADDR_TYPE_RT
  822. },
  823. };
  824. /* l4_per -> uart3 */
  825. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  826. .master = &omap44xx_l4_per_hwmod,
  827. .slave = &omap44xx_uart3_hwmod,
  828. .clk = "l4_div_ck",
  829. .addr = omap44xx_uart3_addrs,
  830. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  831. .user = OCP_USER_MPU | OCP_USER_SDMA,
  832. };
  833. /* uart3 slave ports */
  834. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  835. &omap44xx_l4_per__uart3,
  836. };
  837. static struct omap_hwmod omap44xx_uart3_hwmod = {
  838. .name = "uart3",
  839. .class = &omap44xx_uart_hwmod_class,
  840. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  841. .mpu_irqs = omap44xx_uart3_irqs,
  842. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  843. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  844. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  845. .main_clk = "uart3_fck",
  846. .prcm = {
  847. .omap4 = {
  848. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  849. },
  850. },
  851. .slaves = omap44xx_uart3_slaves,
  852. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  853. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  854. };
  855. /* uart4 */
  856. static struct omap_hwmod omap44xx_uart4_hwmod;
  857. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  858. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  859. };
  860. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  861. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  862. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  863. };
  864. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  865. {
  866. .pa_start = 0x4806e000,
  867. .pa_end = 0x4806e0ff,
  868. .flags = ADDR_TYPE_RT
  869. },
  870. };
  871. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  872. .master = &omap44xx_l4_abe_hwmod,
  873. .slave = &omap44xx_wd_timer3_hwmod,
  874. .clk = "ocp_abe_iclk",
  875. .addr = omap44xx_wd_timer3_dma_addrs,
  876. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  877. .user = OCP_USER_SDMA,
  878. };
  879. /* wd_timer3 slave ports */
  880. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  881. &omap44xx_l4_abe__wd_timer3,
  882. &omap44xx_l4_abe__wd_timer3_dma,
  883. };
  884. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  885. .name = "wd_timer3",
  886. .class = &omap44xx_wd_timer_hwmod_class,
  887. .mpu_irqs = omap44xx_wd_timer3_irqs,
  888. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  889. .main_clk = "wd_timer3_fck",
  890. .prcm = {
  891. .omap4 = {
  892. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  893. },
  894. },
  895. .slaves = omap44xx_wd_timer3_slaves,
  896. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  897. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  898. };
  899. /* l4_per -> uart4 */
  900. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  901. .master = &omap44xx_l4_per_hwmod,
  902. .slave = &omap44xx_uart4_hwmod,
  903. .clk = "l4_div_ck",
  904. .addr = omap44xx_uart4_addrs,
  905. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  906. .user = OCP_USER_MPU | OCP_USER_SDMA,
  907. };
  908. /* uart4 slave ports */
  909. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  910. &omap44xx_l4_per__uart4,
  911. };
  912. static struct omap_hwmod omap44xx_uart4_hwmod = {
  913. .name = "uart4",
  914. .class = &omap44xx_uart_hwmod_class,
  915. .mpu_irqs = omap44xx_uart4_irqs,
  916. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  917. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  918. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  919. .main_clk = "uart4_fck",
  920. .prcm = {
  921. .omap4 = {
  922. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  923. },
  924. },
  925. .slaves = omap44xx_uart4_slaves,
  926. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  927. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  928. };
  929. /*
  930. * 'gpio' class
  931. * general purpose io module
  932. */
  933. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  934. .rev_offs = 0x0000,
  935. .sysc_offs = 0x0010,
  936. .syss_offs = 0x0114,
  937. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  938. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  939. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  940. .sysc_fields = &omap_hwmod_sysc_type1,
  941. };
  942. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  943. .name = "gpio",
  944. .sysc = &omap44xx_gpio_sysc,
  945. .rev = 2,
  946. };
  947. /* gpio dev_attr */
  948. static struct omap_gpio_dev_attr gpio_dev_attr = {
  949. .bank_width = 32,
  950. .dbck_flag = true,
  951. };
  952. /* gpio1 */
  953. static struct omap_hwmod omap44xx_gpio1_hwmod;
  954. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  955. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  956. };
  957. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  958. {
  959. .pa_start = 0x4a310000,
  960. .pa_end = 0x4a3101ff,
  961. .flags = ADDR_TYPE_RT
  962. },
  963. };
  964. /* l4_wkup -> gpio1 */
  965. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  966. .master = &omap44xx_l4_wkup_hwmod,
  967. .slave = &omap44xx_gpio1_hwmod,
  968. .addr = omap44xx_gpio1_addrs,
  969. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  970. .user = OCP_USER_MPU | OCP_USER_SDMA,
  971. };
  972. /* gpio1 slave ports */
  973. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  974. &omap44xx_l4_wkup__gpio1,
  975. };
  976. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  977. { .role = "dbclk", .clk = "sys_32k_ck" },
  978. };
  979. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  980. .name = "gpio1",
  981. .class = &omap44xx_gpio_hwmod_class,
  982. .mpu_irqs = omap44xx_gpio1_irqs,
  983. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  984. .main_clk = "gpio1_ick",
  985. .prcm = {
  986. .omap4 = {
  987. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  988. },
  989. },
  990. .opt_clks = gpio1_opt_clks,
  991. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  992. .dev_attr = &gpio_dev_attr,
  993. .slaves = omap44xx_gpio1_slaves,
  994. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  995. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  996. };
  997. /* gpio2 */
  998. static struct omap_hwmod omap44xx_gpio2_hwmod;
  999. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  1000. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  1001. };
  1002. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  1003. {
  1004. .pa_start = 0x48055000,
  1005. .pa_end = 0x480551ff,
  1006. .flags = ADDR_TYPE_RT
  1007. },
  1008. };
  1009. /* l4_per -> gpio2 */
  1010. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  1011. .master = &omap44xx_l4_per_hwmod,
  1012. .slave = &omap44xx_gpio2_hwmod,
  1013. .addr = omap44xx_gpio2_addrs,
  1014. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  1015. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1016. };
  1017. /* gpio2 slave ports */
  1018. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  1019. &omap44xx_l4_per__gpio2,
  1020. };
  1021. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  1022. { .role = "dbclk", .clk = "sys_32k_ck" },
  1023. };
  1024. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  1025. .name = "gpio2",
  1026. .class = &omap44xx_gpio_hwmod_class,
  1027. .mpu_irqs = omap44xx_gpio2_irqs,
  1028. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  1029. .main_clk = "gpio2_ick",
  1030. .prcm = {
  1031. .omap4 = {
  1032. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  1033. },
  1034. },
  1035. .opt_clks = gpio2_opt_clks,
  1036. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1037. .dev_attr = &gpio_dev_attr,
  1038. .slaves = omap44xx_gpio2_slaves,
  1039. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  1040. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1041. };
  1042. /* gpio3 */
  1043. static struct omap_hwmod omap44xx_gpio3_hwmod;
  1044. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  1045. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  1046. };
  1047. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  1048. {
  1049. .pa_start = 0x48057000,
  1050. .pa_end = 0x480571ff,
  1051. .flags = ADDR_TYPE_RT
  1052. },
  1053. };
  1054. /* l4_per -> gpio3 */
  1055. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  1056. .master = &omap44xx_l4_per_hwmod,
  1057. .slave = &omap44xx_gpio3_hwmod,
  1058. .addr = omap44xx_gpio3_addrs,
  1059. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  1060. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1061. };
  1062. /* gpio3 slave ports */
  1063. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  1064. &omap44xx_l4_per__gpio3,
  1065. };
  1066. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1067. { .role = "dbclk", .clk = "sys_32k_ck" },
  1068. };
  1069. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1070. .name = "gpio3",
  1071. .class = &omap44xx_gpio_hwmod_class,
  1072. .mpu_irqs = omap44xx_gpio3_irqs,
  1073. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  1074. .main_clk = "gpio3_ick",
  1075. .prcm = {
  1076. .omap4 = {
  1077. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  1078. },
  1079. },
  1080. .opt_clks = gpio3_opt_clks,
  1081. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1082. .dev_attr = &gpio_dev_attr,
  1083. .slaves = omap44xx_gpio3_slaves,
  1084. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  1085. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1086. };
  1087. /* gpio4 */
  1088. static struct omap_hwmod omap44xx_gpio4_hwmod;
  1089. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  1090. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  1091. };
  1092. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  1093. {
  1094. .pa_start = 0x48059000,
  1095. .pa_end = 0x480591ff,
  1096. .flags = ADDR_TYPE_RT
  1097. },
  1098. };
  1099. /* l4_per -> gpio4 */
  1100. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  1101. .master = &omap44xx_l4_per_hwmod,
  1102. .slave = &omap44xx_gpio4_hwmod,
  1103. .addr = omap44xx_gpio4_addrs,
  1104. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  1105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1106. };
  1107. /* gpio4 slave ports */
  1108. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  1109. &omap44xx_l4_per__gpio4,
  1110. };
  1111. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1112. { .role = "dbclk", .clk = "sys_32k_ck" },
  1113. };
  1114. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1115. .name = "gpio4",
  1116. .class = &omap44xx_gpio_hwmod_class,
  1117. .mpu_irqs = omap44xx_gpio4_irqs,
  1118. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  1119. .main_clk = "gpio4_ick",
  1120. .prcm = {
  1121. .omap4 = {
  1122. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  1123. },
  1124. },
  1125. .opt_clks = gpio4_opt_clks,
  1126. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1127. .dev_attr = &gpio_dev_attr,
  1128. .slaves = omap44xx_gpio4_slaves,
  1129. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  1130. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1131. };
  1132. /* gpio5 */
  1133. static struct omap_hwmod omap44xx_gpio5_hwmod;
  1134. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  1135. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  1136. };
  1137. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  1138. {
  1139. .pa_start = 0x4805b000,
  1140. .pa_end = 0x4805b1ff,
  1141. .flags = ADDR_TYPE_RT
  1142. },
  1143. };
  1144. /* l4_per -> gpio5 */
  1145. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  1146. .master = &omap44xx_l4_per_hwmod,
  1147. .slave = &omap44xx_gpio5_hwmod,
  1148. .addr = omap44xx_gpio5_addrs,
  1149. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  1150. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1151. };
  1152. /* gpio5 slave ports */
  1153. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  1154. &omap44xx_l4_per__gpio5,
  1155. };
  1156. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1157. { .role = "dbclk", .clk = "sys_32k_ck" },
  1158. };
  1159. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1160. .name = "gpio5",
  1161. .class = &omap44xx_gpio_hwmod_class,
  1162. .mpu_irqs = omap44xx_gpio5_irqs,
  1163. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  1164. .main_clk = "gpio5_ick",
  1165. .prcm = {
  1166. .omap4 = {
  1167. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  1168. },
  1169. },
  1170. .opt_clks = gpio5_opt_clks,
  1171. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1172. .dev_attr = &gpio_dev_attr,
  1173. .slaves = omap44xx_gpio5_slaves,
  1174. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  1175. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1176. };
  1177. /* gpio6 */
  1178. static struct omap_hwmod omap44xx_gpio6_hwmod;
  1179. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  1180. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  1181. };
  1182. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  1183. {
  1184. .pa_start = 0x4805d000,
  1185. .pa_end = 0x4805d1ff,
  1186. .flags = ADDR_TYPE_RT
  1187. },
  1188. };
  1189. /* l4_per -> gpio6 */
  1190. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  1191. .master = &omap44xx_l4_per_hwmod,
  1192. .slave = &omap44xx_gpio6_hwmod,
  1193. .addr = omap44xx_gpio6_addrs,
  1194. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  1195. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1196. };
  1197. /* gpio6 slave ports */
  1198. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  1199. &omap44xx_l4_per__gpio6,
  1200. };
  1201. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1202. { .role = "dbclk", .clk = "sys_32k_ck" },
  1203. };
  1204. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1205. .name = "gpio6",
  1206. .class = &omap44xx_gpio_hwmod_class,
  1207. .mpu_irqs = omap44xx_gpio6_irqs,
  1208. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  1209. .main_clk = "gpio6_ick",
  1210. .prcm = {
  1211. .omap4 = {
  1212. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  1213. },
  1214. },
  1215. .opt_clks = gpio6_opt_clks,
  1216. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1217. .dev_attr = &gpio_dev_attr,
  1218. .slaves = omap44xx_gpio6_slaves,
  1219. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  1220. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1221. };
  1222. /*
  1223. * 'dma' class
  1224. * dma controller for data exchange between memory to memory (i.e. internal or
  1225. * external memory) and gp peripherals to memory or memory to gp peripherals
  1226. */
  1227. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  1228. .rev_offs = 0x0000,
  1229. .sysc_offs = 0x002c,
  1230. .syss_offs = 0x0028,
  1231. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1232. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1233. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1234. SYSS_HAS_RESET_STATUS),
  1235. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1236. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1237. .sysc_fields = &omap_hwmod_sysc_type1,
  1238. };
  1239. /* dma attributes */
  1240. static struct omap_dma_dev_attr dma_dev_attr = {
  1241. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1242. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  1243. .lch_count = 32,
  1244. };
  1245. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  1246. .name = "dma",
  1247. .sysc = &omap44xx_dma_sysc,
  1248. };
  1249. /* dma_system */
  1250. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  1251. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  1252. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  1253. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  1254. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  1255. };
  1256. /* dma_system master ports */
  1257. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  1258. &omap44xx_dma_system__l3_main_2,
  1259. };
  1260. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  1261. {
  1262. .pa_start = 0x4a056000,
  1263. .pa_end = 0x4a0560ff,
  1264. .flags = ADDR_TYPE_RT
  1265. },
  1266. };
  1267. /* l4_cfg -> dma_system */
  1268. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  1269. .master = &omap44xx_l4_cfg_hwmod,
  1270. .slave = &omap44xx_dma_system_hwmod,
  1271. .clk = "l4_div_ck",
  1272. .addr = omap44xx_dma_system_addrs,
  1273. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  1274. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1275. };
  1276. /* dma_system slave ports */
  1277. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  1278. &omap44xx_l4_cfg__dma_system,
  1279. };
  1280. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  1281. .name = "dma_system",
  1282. .class = &omap44xx_dma_hwmod_class,
  1283. .mpu_irqs = omap44xx_dma_system_irqs,
  1284. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  1285. .main_clk = "l3_div_ck",
  1286. .prcm = {
  1287. .omap4 = {
  1288. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  1289. },
  1290. },
  1291. .slaves = omap44xx_dma_system_slaves,
  1292. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  1293. .masters = omap44xx_dma_system_masters,
  1294. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  1295. .dev_attr = &dma_dev_attr,
  1296. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1297. };
  1298. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  1299. /* dmm class */
  1300. &omap44xx_dmm_hwmod,
  1301. /* emif_fw class */
  1302. &omap44xx_emif_fw_hwmod,
  1303. /* l3 class */
  1304. &omap44xx_l3_instr_hwmod,
  1305. &omap44xx_l3_main_1_hwmod,
  1306. &omap44xx_l3_main_2_hwmod,
  1307. &omap44xx_l3_main_3_hwmod,
  1308. /* l4 class */
  1309. &omap44xx_l4_abe_hwmod,
  1310. &omap44xx_l4_cfg_hwmod,
  1311. &omap44xx_l4_per_hwmod,
  1312. &omap44xx_l4_wkup_hwmod,
  1313. /* dma class */
  1314. &omap44xx_dma_system_hwmod,
  1315. /* i2c class */
  1316. &omap44xx_i2c1_hwmod,
  1317. &omap44xx_i2c2_hwmod,
  1318. &omap44xx_i2c3_hwmod,
  1319. &omap44xx_i2c4_hwmod,
  1320. /* mpu_bus class */
  1321. &omap44xx_mpu_private_hwmod,
  1322. /* gpio class */
  1323. &omap44xx_gpio1_hwmod,
  1324. &omap44xx_gpio2_hwmod,
  1325. &omap44xx_gpio3_hwmod,
  1326. &omap44xx_gpio4_hwmod,
  1327. &omap44xx_gpio5_hwmod,
  1328. &omap44xx_gpio6_hwmod,
  1329. /* mpu class */
  1330. &omap44xx_mpu_hwmod,
  1331. /* wd_timer class */
  1332. &omap44xx_wd_timer2_hwmod,
  1333. &omap44xx_wd_timer3_hwmod,
  1334. /* uart class */
  1335. &omap44xx_uart1_hwmod,
  1336. &omap44xx_uart2_hwmod,
  1337. &omap44xx_uart3_hwmod,
  1338. &omap44xx_uart4_hwmod,
  1339. NULL,
  1340. };
  1341. int __init omap44xx_hwmod_init(void)
  1342. {
  1343. return omap_hwmod_init(omap44xx_hwmods);
  1344. }