omap_hwmod_44xx_data.c 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898
  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 "cm1_44xx.h"
  27. #include "cm2_44xx.h"
  28. #include "prm44xx.h"
  29. #include "prm-regbits-44xx.h"
  30. #include "wd_timer.h"
  31. /* Base offset for all OMAP4 interrupts external to MPUSS */
  32. #define OMAP44XX_IRQ_GIC_START 32
  33. /* Base offset for all OMAP4 dma requests */
  34. #define OMAP44XX_DMA_REQ_START 1
  35. /* Backward references (IPs with Bus Master capability) */
  36. static struct omap_hwmod omap44xx_dma_system_hwmod;
  37. static struct omap_hwmod omap44xx_dmm_hwmod;
  38. static struct omap_hwmod omap44xx_dsp_hwmod;
  39. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  40. static struct omap_hwmod omap44xx_iva_hwmod;
  41. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  42. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  43. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  44. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  45. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  46. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  47. static struct omap_hwmod omap44xx_l4_per_hwmod;
  48. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  49. static struct omap_hwmod omap44xx_mpu_hwmod;
  50. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  51. /*
  52. * Interconnects omap_hwmod structures
  53. * hwmods that compose the global OMAP interconnect
  54. */
  55. /*
  56. * 'dmm' class
  57. * instance(s): dmm
  58. */
  59. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  60. .name = "dmm",
  61. };
  62. /* dmm interface data */
  63. /* l3_main_1 -> dmm */
  64. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  65. .master = &omap44xx_l3_main_1_hwmod,
  66. .slave = &omap44xx_dmm_hwmod,
  67. .clk = "l3_div_ck",
  68. .user = OCP_USER_SDMA,
  69. };
  70. static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
  71. {
  72. .pa_start = 0x4e000000,
  73. .pa_end = 0x4e0007ff,
  74. .flags = ADDR_TYPE_RT
  75. },
  76. };
  77. /* mpu -> dmm */
  78. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  79. .master = &omap44xx_mpu_hwmod,
  80. .slave = &omap44xx_dmm_hwmod,
  81. .clk = "l3_div_ck",
  82. .addr = omap44xx_dmm_addrs,
  83. .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
  84. .user = OCP_USER_MPU,
  85. };
  86. /* dmm slave ports */
  87. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  88. &omap44xx_l3_main_1__dmm,
  89. &omap44xx_mpu__dmm,
  90. };
  91. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  92. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  93. };
  94. static struct omap_hwmod omap44xx_dmm_hwmod = {
  95. .name = "dmm",
  96. .class = &omap44xx_dmm_hwmod_class,
  97. .slaves = omap44xx_dmm_slaves,
  98. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  99. .mpu_irqs = omap44xx_dmm_irqs,
  100. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  101. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  102. };
  103. /*
  104. * 'emif_fw' class
  105. * instance(s): emif_fw
  106. */
  107. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  108. .name = "emif_fw",
  109. };
  110. /* emif_fw interface data */
  111. /* dmm -> emif_fw */
  112. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  113. .master = &omap44xx_dmm_hwmod,
  114. .slave = &omap44xx_emif_fw_hwmod,
  115. .clk = "l3_div_ck",
  116. .user = OCP_USER_MPU | OCP_USER_SDMA,
  117. };
  118. static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
  119. {
  120. .pa_start = 0x4a20c000,
  121. .pa_end = 0x4a20c0ff,
  122. .flags = ADDR_TYPE_RT
  123. },
  124. };
  125. /* l4_cfg -> emif_fw */
  126. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  127. .master = &omap44xx_l4_cfg_hwmod,
  128. .slave = &omap44xx_emif_fw_hwmod,
  129. .clk = "l4_div_ck",
  130. .addr = omap44xx_emif_fw_addrs,
  131. .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
  132. .user = OCP_USER_MPU,
  133. };
  134. /* emif_fw slave ports */
  135. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  136. &omap44xx_dmm__emif_fw,
  137. &omap44xx_l4_cfg__emif_fw,
  138. };
  139. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  140. .name = "emif_fw",
  141. .class = &omap44xx_emif_fw_hwmod_class,
  142. .slaves = omap44xx_emif_fw_slaves,
  143. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  144. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  145. };
  146. /*
  147. * 'l3' class
  148. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  149. */
  150. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  151. .name = "l3",
  152. };
  153. /* l3_instr interface data */
  154. /* iva -> l3_instr */
  155. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  156. .master = &omap44xx_iva_hwmod,
  157. .slave = &omap44xx_l3_instr_hwmod,
  158. .clk = "l3_div_ck",
  159. .user = OCP_USER_MPU | OCP_USER_SDMA,
  160. };
  161. /* l3_main_3 -> l3_instr */
  162. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  163. .master = &omap44xx_l3_main_3_hwmod,
  164. .slave = &omap44xx_l3_instr_hwmod,
  165. .clk = "l3_div_ck",
  166. .user = OCP_USER_MPU | OCP_USER_SDMA,
  167. };
  168. /* l3_instr slave ports */
  169. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  170. &omap44xx_iva__l3_instr,
  171. &omap44xx_l3_main_3__l3_instr,
  172. };
  173. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  174. .name = "l3_instr",
  175. .class = &omap44xx_l3_hwmod_class,
  176. .slaves = omap44xx_l3_instr_slaves,
  177. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  178. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  179. };
  180. /* l3_main_1 interface data */
  181. /* dsp -> l3_main_1 */
  182. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  183. .master = &omap44xx_dsp_hwmod,
  184. .slave = &omap44xx_l3_main_1_hwmod,
  185. .clk = "l3_div_ck",
  186. .user = OCP_USER_MPU | OCP_USER_SDMA,
  187. };
  188. /* l3_main_2 -> l3_main_1 */
  189. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  190. .master = &omap44xx_l3_main_2_hwmod,
  191. .slave = &omap44xx_l3_main_1_hwmod,
  192. .clk = "l3_div_ck",
  193. .user = OCP_USER_MPU | OCP_USER_SDMA,
  194. };
  195. /* l4_cfg -> l3_main_1 */
  196. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  197. .master = &omap44xx_l4_cfg_hwmod,
  198. .slave = &omap44xx_l3_main_1_hwmod,
  199. .clk = "l4_div_ck",
  200. .user = OCP_USER_MPU | OCP_USER_SDMA,
  201. };
  202. /* mpu -> l3_main_1 */
  203. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  204. .master = &omap44xx_mpu_hwmod,
  205. .slave = &omap44xx_l3_main_1_hwmod,
  206. .clk = "l3_div_ck",
  207. .user = OCP_USER_MPU | OCP_USER_SDMA,
  208. };
  209. /* l3_main_1 slave ports */
  210. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  211. &omap44xx_dsp__l3_main_1,
  212. &omap44xx_l3_main_2__l3_main_1,
  213. &omap44xx_l4_cfg__l3_main_1,
  214. &omap44xx_mpu__l3_main_1,
  215. };
  216. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  217. .name = "l3_main_1",
  218. .class = &omap44xx_l3_hwmod_class,
  219. .slaves = omap44xx_l3_main_1_slaves,
  220. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  221. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  222. };
  223. /* l3_main_2 interface data */
  224. /* iva -> l3_main_2 */
  225. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  226. .master = &omap44xx_iva_hwmod,
  227. .slave = &omap44xx_l3_main_2_hwmod,
  228. .clk = "l3_div_ck",
  229. .user = OCP_USER_MPU | OCP_USER_SDMA,
  230. };
  231. /* l3_main_1 -> l3_main_2 */
  232. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  233. .master = &omap44xx_l3_main_1_hwmod,
  234. .slave = &omap44xx_l3_main_2_hwmod,
  235. .clk = "l3_div_ck",
  236. .user = OCP_USER_MPU | OCP_USER_SDMA,
  237. };
  238. /* dma_system -> l3_main_2 */
  239. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  240. .master = &omap44xx_dma_system_hwmod,
  241. .slave = &omap44xx_l3_main_2_hwmod,
  242. .clk = "l3_div_ck",
  243. .user = OCP_USER_MPU | OCP_USER_SDMA,
  244. };
  245. /* l4_cfg -> l3_main_2 */
  246. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  247. .master = &omap44xx_l4_cfg_hwmod,
  248. .slave = &omap44xx_l3_main_2_hwmod,
  249. .clk = "l4_div_ck",
  250. .user = OCP_USER_MPU | OCP_USER_SDMA,
  251. };
  252. /* l3_main_2 slave ports */
  253. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  254. &omap44xx_dma_system__l3_main_2,
  255. &omap44xx_iva__l3_main_2,
  256. &omap44xx_l3_main_1__l3_main_2,
  257. &omap44xx_l4_cfg__l3_main_2,
  258. };
  259. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  260. .name = "l3_main_2",
  261. .class = &omap44xx_l3_hwmod_class,
  262. .slaves = omap44xx_l3_main_2_slaves,
  263. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  264. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  265. };
  266. /* l3_main_3 interface data */
  267. /* l3_main_1 -> l3_main_3 */
  268. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  269. .master = &omap44xx_l3_main_1_hwmod,
  270. .slave = &omap44xx_l3_main_3_hwmod,
  271. .clk = "l3_div_ck",
  272. .user = OCP_USER_MPU | OCP_USER_SDMA,
  273. };
  274. /* l3_main_2 -> l3_main_3 */
  275. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  276. .master = &omap44xx_l3_main_2_hwmod,
  277. .slave = &omap44xx_l3_main_3_hwmod,
  278. .clk = "l3_div_ck",
  279. .user = OCP_USER_MPU | OCP_USER_SDMA,
  280. };
  281. /* l4_cfg -> l3_main_3 */
  282. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  283. .master = &omap44xx_l4_cfg_hwmod,
  284. .slave = &omap44xx_l3_main_3_hwmod,
  285. .clk = "l4_div_ck",
  286. .user = OCP_USER_MPU | OCP_USER_SDMA,
  287. };
  288. /* l3_main_3 slave ports */
  289. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  290. &omap44xx_l3_main_1__l3_main_3,
  291. &omap44xx_l3_main_2__l3_main_3,
  292. &omap44xx_l4_cfg__l3_main_3,
  293. };
  294. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  295. .name = "l3_main_3",
  296. .class = &omap44xx_l3_hwmod_class,
  297. .slaves = omap44xx_l3_main_3_slaves,
  298. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  299. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  300. };
  301. /*
  302. * 'l4' class
  303. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  304. */
  305. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  306. .name = "l4",
  307. };
  308. /* l4_abe interface data */
  309. /* dsp -> l4_abe */
  310. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  311. .master = &omap44xx_dsp_hwmod,
  312. .slave = &omap44xx_l4_abe_hwmod,
  313. .clk = "ocp_abe_iclk",
  314. .user = OCP_USER_MPU | OCP_USER_SDMA,
  315. };
  316. /* l3_main_1 -> l4_abe */
  317. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  318. .master = &omap44xx_l3_main_1_hwmod,
  319. .slave = &omap44xx_l4_abe_hwmod,
  320. .clk = "l3_div_ck",
  321. .user = OCP_USER_MPU | OCP_USER_SDMA,
  322. };
  323. /* mpu -> l4_abe */
  324. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  325. .master = &omap44xx_mpu_hwmod,
  326. .slave = &omap44xx_l4_abe_hwmod,
  327. .clk = "ocp_abe_iclk",
  328. .user = OCP_USER_MPU | OCP_USER_SDMA,
  329. };
  330. /* l4_abe slave ports */
  331. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  332. &omap44xx_dsp__l4_abe,
  333. &omap44xx_l3_main_1__l4_abe,
  334. &omap44xx_mpu__l4_abe,
  335. };
  336. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  337. .name = "l4_abe",
  338. .class = &omap44xx_l4_hwmod_class,
  339. .slaves = omap44xx_l4_abe_slaves,
  340. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  341. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  342. };
  343. /* l4_cfg interface data */
  344. /* l3_main_1 -> l4_cfg */
  345. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  346. .master = &omap44xx_l3_main_1_hwmod,
  347. .slave = &omap44xx_l4_cfg_hwmod,
  348. .clk = "l3_div_ck",
  349. .user = OCP_USER_MPU | OCP_USER_SDMA,
  350. };
  351. /* l4_cfg slave ports */
  352. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  353. &omap44xx_l3_main_1__l4_cfg,
  354. };
  355. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  356. .name = "l4_cfg",
  357. .class = &omap44xx_l4_hwmod_class,
  358. .slaves = omap44xx_l4_cfg_slaves,
  359. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  360. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  361. };
  362. /* l4_per interface data */
  363. /* l3_main_2 -> l4_per */
  364. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  365. .master = &omap44xx_l3_main_2_hwmod,
  366. .slave = &omap44xx_l4_per_hwmod,
  367. .clk = "l3_div_ck",
  368. .user = OCP_USER_MPU | OCP_USER_SDMA,
  369. };
  370. /* l4_per slave ports */
  371. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  372. &omap44xx_l3_main_2__l4_per,
  373. };
  374. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  375. .name = "l4_per",
  376. .class = &omap44xx_l4_hwmod_class,
  377. .slaves = omap44xx_l4_per_slaves,
  378. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  379. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  380. };
  381. /* l4_wkup interface data */
  382. /* l4_cfg -> l4_wkup */
  383. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  384. .master = &omap44xx_l4_cfg_hwmod,
  385. .slave = &omap44xx_l4_wkup_hwmod,
  386. .clk = "l4_div_ck",
  387. .user = OCP_USER_MPU | OCP_USER_SDMA,
  388. };
  389. /* l4_wkup slave ports */
  390. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  391. &omap44xx_l4_cfg__l4_wkup,
  392. };
  393. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  394. .name = "l4_wkup",
  395. .class = &omap44xx_l4_hwmod_class,
  396. .slaves = omap44xx_l4_wkup_slaves,
  397. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  398. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  399. };
  400. /*
  401. * 'mpu_bus' class
  402. * instance(s): mpu_private
  403. */
  404. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  405. .name = "mpu_bus",
  406. };
  407. /* mpu_private interface data */
  408. /* mpu -> mpu_private */
  409. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  410. .master = &omap44xx_mpu_hwmod,
  411. .slave = &omap44xx_mpu_private_hwmod,
  412. .clk = "l3_div_ck",
  413. .user = OCP_USER_MPU | OCP_USER_SDMA,
  414. };
  415. /* mpu_private slave ports */
  416. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  417. &omap44xx_mpu__mpu_private,
  418. };
  419. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  420. .name = "mpu_private",
  421. .class = &omap44xx_mpu_bus_hwmod_class,
  422. .slaves = omap44xx_mpu_private_slaves,
  423. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  424. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  425. };
  426. /*
  427. * Modules omap_hwmod structures
  428. *
  429. * The following IPs are excluded for the moment because:
  430. * - They do not need an explicit SW control using omap_hwmod API.
  431. * - They still need to be validated with the driver
  432. * properly adapted to omap_hwmod / omap_device
  433. *
  434. * aess
  435. * bandgap
  436. * c2c
  437. * c2c_target_fw
  438. * cm_core
  439. * cm_core_aon
  440. * counter_32k
  441. * ctrl_module_core
  442. * ctrl_module_pad_core
  443. * ctrl_module_pad_wkup
  444. * ctrl_module_wkup
  445. * debugss
  446. * dma_system
  447. * dmic
  448. * dss
  449. * dss_dispc
  450. * dss_dsi1
  451. * dss_dsi2
  452. * dss_hdmi
  453. * dss_rfbi
  454. * dss_venc
  455. * efuse_ctrl_cust
  456. * efuse_ctrl_std
  457. * elm
  458. * emif1
  459. * emif2
  460. * fdif
  461. * gpmc
  462. * gpu
  463. * hdq1w
  464. * hsi
  465. * ipu
  466. * iss
  467. * kbd
  468. * mailbox
  469. * mcasp
  470. * mcbsp1
  471. * mcbsp2
  472. * mcbsp3
  473. * mcbsp4
  474. * mcpdm
  475. * mcspi1
  476. * mcspi2
  477. * mcspi3
  478. * mcspi4
  479. * mmc1
  480. * mmc2
  481. * mmc3
  482. * mmc4
  483. * mmc5
  484. * mpu_c0
  485. * mpu_c1
  486. * ocmc_ram
  487. * ocp2scp_usb_phy
  488. * ocp_wp_noc
  489. * prcm
  490. * prcm_mpu
  491. * prm
  492. * scrm
  493. * sl2if
  494. * slimbus1
  495. * slimbus2
  496. * smartreflex_core
  497. * smartreflex_iva
  498. * smartreflex_mpu
  499. * spinlock
  500. * timer1
  501. * timer10
  502. * timer11
  503. * timer2
  504. * timer3
  505. * timer4
  506. * timer5
  507. * timer6
  508. * timer7
  509. * timer8
  510. * timer9
  511. * usb_host_fs
  512. * usb_host_hs
  513. * usb_otg_hs
  514. * usb_phy_cm
  515. * usb_tll_hs
  516. * usim
  517. */
  518. /*
  519. * 'dsp' class
  520. * dsp sub-system
  521. */
  522. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  523. .name = "dsp",
  524. };
  525. /* dsp */
  526. static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
  527. { .irq = 28 + OMAP44XX_IRQ_GIC_START },
  528. };
  529. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  530. { .name = "mmu_cache", .rst_shift = 1 },
  531. };
  532. static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
  533. { .name = "dsp", .rst_shift = 0 },
  534. };
  535. /* dsp -> iva */
  536. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  537. .master = &omap44xx_dsp_hwmod,
  538. .slave = &omap44xx_iva_hwmod,
  539. .clk = "dpll_iva_m5x2_ck",
  540. };
  541. /* dsp master ports */
  542. static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
  543. &omap44xx_dsp__l3_main_1,
  544. &omap44xx_dsp__l4_abe,
  545. &omap44xx_dsp__iva,
  546. };
  547. /* l4_cfg -> dsp */
  548. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  549. .master = &omap44xx_l4_cfg_hwmod,
  550. .slave = &omap44xx_dsp_hwmod,
  551. .clk = "l4_div_ck",
  552. .user = OCP_USER_MPU | OCP_USER_SDMA,
  553. };
  554. /* dsp slave ports */
  555. static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
  556. &omap44xx_l4_cfg__dsp,
  557. };
  558. /* Pseudo hwmod for reset control purpose only */
  559. static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
  560. .name = "dsp_c0",
  561. .class = &omap44xx_dsp_hwmod_class,
  562. .flags = HWMOD_INIT_NO_RESET,
  563. .rst_lines = omap44xx_dsp_c0_resets,
  564. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
  565. .prcm = {
  566. .omap4 = {
  567. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  568. },
  569. },
  570. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  571. };
  572. static struct omap_hwmod omap44xx_dsp_hwmod = {
  573. .name = "dsp",
  574. .class = &omap44xx_dsp_hwmod_class,
  575. .mpu_irqs = omap44xx_dsp_irqs,
  576. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
  577. .rst_lines = omap44xx_dsp_resets,
  578. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  579. .main_clk = "dsp_fck",
  580. .prcm = {
  581. .omap4 = {
  582. .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
  583. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  584. },
  585. },
  586. .slaves = omap44xx_dsp_slaves,
  587. .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
  588. .masters = omap44xx_dsp_masters,
  589. .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
  590. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  591. };
  592. /*
  593. * 'gpio' class
  594. * general purpose io module
  595. */
  596. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  597. .rev_offs = 0x0000,
  598. .sysc_offs = 0x0010,
  599. .syss_offs = 0x0114,
  600. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  601. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  602. SYSS_HAS_RESET_STATUS),
  603. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  604. .sysc_fields = &omap_hwmod_sysc_type1,
  605. };
  606. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  607. .name = "gpio",
  608. .sysc = &omap44xx_gpio_sysc,
  609. .rev = 2,
  610. };
  611. /* gpio dev_attr */
  612. static struct omap_gpio_dev_attr gpio_dev_attr = {
  613. .bank_width = 32,
  614. .dbck_flag = true,
  615. };
  616. /* gpio1 */
  617. static struct omap_hwmod omap44xx_gpio1_hwmod;
  618. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  619. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  620. };
  621. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  622. {
  623. .pa_start = 0x4a310000,
  624. .pa_end = 0x4a3101ff,
  625. .flags = ADDR_TYPE_RT
  626. },
  627. };
  628. /* l4_wkup -> gpio1 */
  629. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  630. .master = &omap44xx_l4_wkup_hwmod,
  631. .slave = &omap44xx_gpio1_hwmod,
  632. .addr = omap44xx_gpio1_addrs,
  633. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  634. .user = OCP_USER_MPU | OCP_USER_SDMA,
  635. };
  636. /* gpio1 slave ports */
  637. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  638. &omap44xx_l4_wkup__gpio1,
  639. };
  640. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  641. { .role = "dbclk", .clk = "sys_32k_ck" },
  642. };
  643. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  644. .name = "gpio1",
  645. .class = &omap44xx_gpio_hwmod_class,
  646. .mpu_irqs = omap44xx_gpio1_irqs,
  647. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  648. .main_clk = "gpio1_ick",
  649. .prcm = {
  650. .omap4 = {
  651. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  652. },
  653. },
  654. .opt_clks = gpio1_opt_clks,
  655. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  656. .dev_attr = &gpio_dev_attr,
  657. .slaves = omap44xx_gpio1_slaves,
  658. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  659. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  660. };
  661. /* gpio2 */
  662. static struct omap_hwmod omap44xx_gpio2_hwmod;
  663. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  664. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  665. };
  666. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  667. {
  668. .pa_start = 0x48055000,
  669. .pa_end = 0x480551ff,
  670. .flags = ADDR_TYPE_RT
  671. },
  672. };
  673. /* l4_per -> gpio2 */
  674. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  675. .master = &omap44xx_l4_per_hwmod,
  676. .slave = &omap44xx_gpio2_hwmod,
  677. .addr = omap44xx_gpio2_addrs,
  678. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  679. .user = OCP_USER_MPU | OCP_USER_SDMA,
  680. };
  681. /* gpio2 slave ports */
  682. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  683. &omap44xx_l4_per__gpio2,
  684. };
  685. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  686. { .role = "dbclk", .clk = "sys_32k_ck" },
  687. };
  688. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  689. .name = "gpio2",
  690. .class = &omap44xx_gpio_hwmod_class,
  691. .mpu_irqs = omap44xx_gpio2_irqs,
  692. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  693. .main_clk = "gpio2_ick",
  694. .prcm = {
  695. .omap4 = {
  696. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  697. },
  698. },
  699. .opt_clks = gpio2_opt_clks,
  700. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  701. .dev_attr = &gpio_dev_attr,
  702. .slaves = omap44xx_gpio2_slaves,
  703. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  704. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  705. };
  706. /* gpio3 */
  707. static struct omap_hwmod omap44xx_gpio3_hwmod;
  708. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  709. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  710. };
  711. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  712. {
  713. .pa_start = 0x48057000,
  714. .pa_end = 0x480571ff,
  715. .flags = ADDR_TYPE_RT
  716. },
  717. };
  718. /* l4_per -> gpio3 */
  719. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  720. .master = &omap44xx_l4_per_hwmod,
  721. .slave = &omap44xx_gpio3_hwmod,
  722. .addr = omap44xx_gpio3_addrs,
  723. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  724. .user = OCP_USER_MPU | OCP_USER_SDMA,
  725. };
  726. /* gpio3 slave ports */
  727. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  728. &omap44xx_l4_per__gpio3,
  729. };
  730. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  731. { .role = "dbclk", .clk = "sys_32k_ck" },
  732. };
  733. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  734. .name = "gpio3",
  735. .class = &omap44xx_gpio_hwmod_class,
  736. .mpu_irqs = omap44xx_gpio3_irqs,
  737. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  738. .main_clk = "gpio3_ick",
  739. .prcm = {
  740. .omap4 = {
  741. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  742. },
  743. },
  744. .opt_clks = gpio3_opt_clks,
  745. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  746. .dev_attr = &gpio_dev_attr,
  747. .slaves = omap44xx_gpio3_slaves,
  748. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  749. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  750. };
  751. /* gpio4 */
  752. static struct omap_hwmod omap44xx_gpio4_hwmod;
  753. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  754. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  755. };
  756. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  757. {
  758. .pa_start = 0x48059000,
  759. .pa_end = 0x480591ff,
  760. .flags = ADDR_TYPE_RT
  761. },
  762. };
  763. /* l4_per -> gpio4 */
  764. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  765. .master = &omap44xx_l4_per_hwmod,
  766. .slave = &omap44xx_gpio4_hwmod,
  767. .addr = omap44xx_gpio4_addrs,
  768. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  769. .user = OCP_USER_MPU | OCP_USER_SDMA,
  770. };
  771. /* gpio4 slave ports */
  772. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  773. &omap44xx_l4_per__gpio4,
  774. };
  775. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  776. { .role = "dbclk", .clk = "sys_32k_ck" },
  777. };
  778. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  779. .name = "gpio4",
  780. .class = &omap44xx_gpio_hwmod_class,
  781. .mpu_irqs = omap44xx_gpio4_irqs,
  782. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  783. .main_clk = "gpio4_ick",
  784. .prcm = {
  785. .omap4 = {
  786. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  787. },
  788. },
  789. .opt_clks = gpio4_opt_clks,
  790. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  791. .dev_attr = &gpio_dev_attr,
  792. .slaves = omap44xx_gpio4_slaves,
  793. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  794. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  795. };
  796. /* gpio5 */
  797. static struct omap_hwmod omap44xx_gpio5_hwmod;
  798. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  799. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  800. };
  801. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  802. {
  803. .pa_start = 0x4805b000,
  804. .pa_end = 0x4805b1ff,
  805. .flags = ADDR_TYPE_RT
  806. },
  807. };
  808. /* l4_per -> gpio5 */
  809. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  810. .master = &omap44xx_l4_per_hwmod,
  811. .slave = &omap44xx_gpio5_hwmod,
  812. .addr = omap44xx_gpio5_addrs,
  813. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  814. .user = OCP_USER_MPU | OCP_USER_SDMA,
  815. };
  816. /* gpio5 slave ports */
  817. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  818. &omap44xx_l4_per__gpio5,
  819. };
  820. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  821. { .role = "dbclk", .clk = "sys_32k_ck" },
  822. };
  823. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  824. .name = "gpio5",
  825. .class = &omap44xx_gpio_hwmod_class,
  826. .mpu_irqs = omap44xx_gpio5_irqs,
  827. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  828. .main_clk = "gpio5_ick",
  829. .prcm = {
  830. .omap4 = {
  831. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  832. },
  833. },
  834. .opt_clks = gpio5_opt_clks,
  835. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  836. .dev_attr = &gpio_dev_attr,
  837. .slaves = omap44xx_gpio5_slaves,
  838. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  839. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  840. };
  841. /* gpio6 */
  842. static struct omap_hwmod omap44xx_gpio6_hwmod;
  843. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  844. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  845. };
  846. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  847. {
  848. .pa_start = 0x4805d000,
  849. .pa_end = 0x4805d1ff,
  850. .flags = ADDR_TYPE_RT
  851. },
  852. };
  853. /* l4_per -> gpio6 */
  854. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  855. .master = &omap44xx_l4_per_hwmod,
  856. .slave = &omap44xx_gpio6_hwmod,
  857. .addr = omap44xx_gpio6_addrs,
  858. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  859. .user = OCP_USER_MPU | OCP_USER_SDMA,
  860. };
  861. /* gpio6 slave ports */
  862. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  863. &omap44xx_l4_per__gpio6,
  864. };
  865. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  866. { .role = "dbclk", .clk = "sys_32k_ck" },
  867. };
  868. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  869. .name = "gpio6",
  870. .class = &omap44xx_gpio_hwmod_class,
  871. .mpu_irqs = omap44xx_gpio6_irqs,
  872. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  873. .main_clk = "gpio6_ick",
  874. .prcm = {
  875. .omap4 = {
  876. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  877. },
  878. },
  879. .opt_clks = gpio6_opt_clks,
  880. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  881. .dev_attr = &gpio_dev_attr,
  882. .slaves = omap44xx_gpio6_slaves,
  883. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  884. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  885. };
  886. /*
  887. * 'i2c' class
  888. * multimaster high-speed i2c controller
  889. */
  890. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  891. .sysc_offs = 0x0010,
  892. .syss_offs = 0x0090,
  893. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  894. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  895. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  896. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  897. .sysc_fields = &omap_hwmod_sysc_type1,
  898. };
  899. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  900. .name = "i2c",
  901. .sysc = &omap44xx_i2c_sysc,
  902. };
  903. /* i2c1 */
  904. static struct omap_hwmod omap44xx_i2c1_hwmod;
  905. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  906. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  907. };
  908. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  909. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  910. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  911. };
  912. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  913. {
  914. .pa_start = 0x48070000,
  915. .pa_end = 0x480700ff,
  916. .flags = ADDR_TYPE_RT
  917. },
  918. };
  919. /* l4_per -> i2c1 */
  920. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  921. .master = &omap44xx_l4_per_hwmod,
  922. .slave = &omap44xx_i2c1_hwmod,
  923. .clk = "l4_div_ck",
  924. .addr = omap44xx_i2c1_addrs,
  925. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  926. .user = OCP_USER_MPU | OCP_USER_SDMA,
  927. };
  928. /* i2c1 slave ports */
  929. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  930. &omap44xx_l4_per__i2c1,
  931. };
  932. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  933. .name = "i2c1",
  934. .class = &omap44xx_i2c_hwmod_class,
  935. .flags = HWMOD_INIT_NO_RESET,
  936. .mpu_irqs = omap44xx_i2c1_irqs,
  937. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  938. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  939. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  940. .main_clk = "i2c1_fck",
  941. .prcm = {
  942. .omap4 = {
  943. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  944. },
  945. },
  946. .slaves = omap44xx_i2c1_slaves,
  947. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  948. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  949. };
  950. /* i2c2 */
  951. static struct omap_hwmod omap44xx_i2c2_hwmod;
  952. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  953. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  954. };
  955. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  956. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  957. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  958. };
  959. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  960. {
  961. .pa_start = 0x48072000,
  962. .pa_end = 0x480720ff,
  963. .flags = ADDR_TYPE_RT
  964. },
  965. };
  966. /* l4_per -> i2c2 */
  967. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  968. .master = &omap44xx_l4_per_hwmod,
  969. .slave = &omap44xx_i2c2_hwmod,
  970. .clk = "l4_div_ck",
  971. .addr = omap44xx_i2c2_addrs,
  972. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  973. .user = OCP_USER_MPU | OCP_USER_SDMA,
  974. };
  975. /* i2c2 slave ports */
  976. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  977. &omap44xx_l4_per__i2c2,
  978. };
  979. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  980. .name = "i2c2",
  981. .class = &omap44xx_i2c_hwmod_class,
  982. .flags = HWMOD_INIT_NO_RESET,
  983. .mpu_irqs = omap44xx_i2c2_irqs,
  984. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  985. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  986. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  987. .main_clk = "i2c2_fck",
  988. .prcm = {
  989. .omap4 = {
  990. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  991. },
  992. },
  993. .slaves = omap44xx_i2c2_slaves,
  994. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  995. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  996. };
  997. /* i2c3 */
  998. static struct omap_hwmod omap44xx_i2c3_hwmod;
  999. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  1000. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  1001. };
  1002. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  1003. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  1004. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  1005. };
  1006. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  1007. {
  1008. .pa_start = 0x48060000,
  1009. .pa_end = 0x480600ff,
  1010. .flags = ADDR_TYPE_RT
  1011. },
  1012. };
  1013. /* l4_per -> i2c3 */
  1014. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  1015. .master = &omap44xx_l4_per_hwmod,
  1016. .slave = &omap44xx_i2c3_hwmod,
  1017. .clk = "l4_div_ck",
  1018. .addr = omap44xx_i2c3_addrs,
  1019. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  1020. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1021. };
  1022. /* i2c3 slave ports */
  1023. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  1024. &omap44xx_l4_per__i2c3,
  1025. };
  1026. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1027. .name = "i2c3",
  1028. .class = &omap44xx_i2c_hwmod_class,
  1029. .flags = HWMOD_INIT_NO_RESET,
  1030. .mpu_irqs = omap44xx_i2c3_irqs,
  1031. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  1032. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  1033. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  1034. .main_clk = "i2c3_fck",
  1035. .prcm = {
  1036. .omap4 = {
  1037. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  1038. },
  1039. },
  1040. .slaves = omap44xx_i2c3_slaves,
  1041. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  1042. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1043. };
  1044. /* i2c4 */
  1045. static struct omap_hwmod omap44xx_i2c4_hwmod;
  1046. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  1047. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  1048. };
  1049. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  1050. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  1051. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  1052. };
  1053. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  1054. {
  1055. .pa_start = 0x48350000,
  1056. .pa_end = 0x483500ff,
  1057. .flags = ADDR_TYPE_RT
  1058. },
  1059. };
  1060. /* l4_per -> i2c4 */
  1061. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  1062. .master = &omap44xx_l4_per_hwmod,
  1063. .slave = &omap44xx_i2c4_hwmod,
  1064. .clk = "l4_div_ck",
  1065. .addr = omap44xx_i2c4_addrs,
  1066. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  1067. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1068. };
  1069. /* i2c4 slave ports */
  1070. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  1071. &omap44xx_l4_per__i2c4,
  1072. };
  1073. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1074. .name = "i2c4",
  1075. .class = &omap44xx_i2c_hwmod_class,
  1076. .flags = HWMOD_INIT_NO_RESET,
  1077. .mpu_irqs = omap44xx_i2c4_irqs,
  1078. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  1079. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  1080. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  1081. .main_clk = "i2c4_fck",
  1082. .prcm = {
  1083. .omap4 = {
  1084. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  1085. },
  1086. },
  1087. .slaves = omap44xx_i2c4_slaves,
  1088. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  1089. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1090. };
  1091. /*
  1092. * 'iva' class
  1093. * multi-standard video encoder/decoder hardware accelerator
  1094. */
  1095. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1096. .name = "iva",
  1097. };
  1098. /* iva */
  1099. static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
  1100. { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
  1101. { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
  1102. { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
  1103. };
  1104. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1105. { .name = "logic", .rst_shift = 2 },
  1106. };
  1107. static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
  1108. { .name = "seq0", .rst_shift = 0 },
  1109. };
  1110. static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
  1111. { .name = "seq1", .rst_shift = 1 },
  1112. };
  1113. /* iva master ports */
  1114. static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
  1115. &omap44xx_iva__l3_main_2,
  1116. &omap44xx_iva__l3_instr,
  1117. };
  1118. static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
  1119. {
  1120. .pa_start = 0x5a000000,
  1121. .pa_end = 0x5a07ffff,
  1122. .flags = ADDR_TYPE_RT
  1123. },
  1124. };
  1125. /* l3_main_2 -> iva */
  1126. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  1127. .master = &omap44xx_l3_main_2_hwmod,
  1128. .slave = &omap44xx_iva_hwmod,
  1129. .clk = "l3_div_ck",
  1130. .addr = omap44xx_iva_addrs,
  1131. .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
  1132. .user = OCP_USER_MPU,
  1133. };
  1134. /* iva slave ports */
  1135. static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
  1136. &omap44xx_dsp__iva,
  1137. &omap44xx_l3_main_2__iva,
  1138. };
  1139. /* Pseudo hwmod for reset control purpose only */
  1140. static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
  1141. .name = "iva_seq0",
  1142. .class = &omap44xx_iva_hwmod_class,
  1143. .flags = HWMOD_INIT_NO_RESET,
  1144. .rst_lines = omap44xx_iva_seq0_resets,
  1145. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
  1146. .prcm = {
  1147. .omap4 = {
  1148. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1149. },
  1150. },
  1151. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1152. };
  1153. /* Pseudo hwmod for reset control purpose only */
  1154. static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
  1155. .name = "iva_seq1",
  1156. .class = &omap44xx_iva_hwmod_class,
  1157. .flags = HWMOD_INIT_NO_RESET,
  1158. .rst_lines = omap44xx_iva_seq1_resets,
  1159. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
  1160. .prcm = {
  1161. .omap4 = {
  1162. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1163. },
  1164. },
  1165. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1166. };
  1167. static struct omap_hwmod omap44xx_iva_hwmod = {
  1168. .name = "iva",
  1169. .class = &omap44xx_iva_hwmod_class,
  1170. .mpu_irqs = omap44xx_iva_irqs,
  1171. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
  1172. .rst_lines = omap44xx_iva_resets,
  1173. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1174. .main_clk = "iva_fck",
  1175. .prcm = {
  1176. .omap4 = {
  1177. .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
  1178. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1179. },
  1180. },
  1181. .slaves = omap44xx_iva_slaves,
  1182. .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
  1183. .masters = omap44xx_iva_masters,
  1184. .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
  1185. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1186. };
  1187. /*
  1188. * 'mpu' class
  1189. * mpu sub-system
  1190. */
  1191. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1192. .name = "mpu",
  1193. };
  1194. /* mpu */
  1195. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  1196. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  1197. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  1198. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  1199. };
  1200. /* mpu master ports */
  1201. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  1202. &omap44xx_mpu__l3_main_1,
  1203. &omap44xx_mpu__l4_abe,
  1204. &omap44xx_mpu__dmm,
  1205. };
  1206. static struct omap_hwmod omap44xx_mpu_hwmod = {
  1207. .name = "mpu",
  1208. .class = &omap44xx_mpu_hwmod_class,
  1209. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1210. .mpu_irqs = omap44xx_mpu_irqs,
  1211. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  1212. .main_clk = "dpll_mpu_m2_ck",
  1213. .prcm = {
  1214. .omap4 = {
  1215. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  1216. },
  1217. },
  1218. .masters = omap44xx_mpu_masters,
  1219. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  1220. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1221. };
  1222. /*
  1223. * 'uart' class
  1224. * universal asynchronous receiver/transmitter (uart)
  1225. */
  1226. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  1227. .rev_offs = 0x0050,
  1228. .sysc_offs = 0x0054,
  1229. .syss_offs = 0x0058,
  1230. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1231. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1232. SYSS_HAS_RESET_STATUS),
  1233. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1234. .sysc_fields = &omap_hwmod_sysc_type1,
  1235. };
  1236. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  1237. .name = "uart",
  1238. .sysc = &omap44xx_uart_sysc,
  1239. };
  1240. /* uart1 */
  1241. static struct omap_hwmod omap44xx_uart1_hwmod;
  1242. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  1243. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  1244. };
  1245. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  1246. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  1247. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  1248. };
  1249. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  1250. {
  1251. .pa_start = 0x4806a000,
  1252. .pa_end = 0x4806a0ff,
  1253. .flags = ADDR_TYPE_RT
  1254. },
  1255. };
  1256. /* l4_per -> uart1 */
  1257. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  1258. .master = &omap44xx_l4_per_hwmod,
  1259. .slave = &omap44xx_uart1_hwmod,
  1260. .clk = "l4_div_ck",
  1261. .addr = omap44xx_uart1_addrs,
  1262. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  1263. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1264. };
  1265. /* uart1 slave ports */
  1266. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  1267. &omap44xx_l4_per__uart1,
  1268. };
  1269. static struct omap_hwmod omap44xx_uart1_hwmod = {
  1270. .name = "uart1",
  1271. .class = &omap44xx_uart_hwmod_class,
  1272. .mpu_irqs = omap44xx_uart1_irqs,
  1273. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  1274. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  1275. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  1276. .main_clk = "uart1_fck",
  1277. .prcm = {
  1278. .omap4 = {
  1279. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  1280. },
  1281. },
  1282. .slaves = omap44xx_uart1_slaves,
  1283. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  1284. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1285. };
  1286. /* uart2 */
  1287. static struct omap_hwmod omap44xx_uart2_hwmod;
  1288. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  1289. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  1290. };
  1291. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  1292. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  1293. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  1294. };
  1295. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  1296. {
  1297. .pa_start = 0x4806c000,
  1298. .pa_end = 0x4806c0ff,
  1299. .flags = ADDR_TYPE_RT
  1300. },
  1301. };
  1302. /* l4_per -> uart2 */
  1303. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  1304. .master = &omap44xx_l4_per_hwmod,
  1305. .slave = &omap44xx_uart2_hwmod,
  1306. .clk = "l4_div_ck",
  1307. .addr = omap44xx_uart2_addrs,
  1308. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  1309. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1310. };
  1311. /* uart2 slave ports */
  1312. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  1313. &omap44xx_l4_per__uart2,
  1314. };
  1315. static struct omap_hwmod omap44xx_uart2_hwmod = {
  1316. .name = "uart2",
  1317. .class = &omap44xx_uart_hwmod_class,
  1318. .mpu_irqs = omap44xx_uart2_irqs,
  1319. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  1320. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  1321. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  1322. .main_clk = "uart2_fck",
  1323. .prcm = {
  1324. .omap4 = {
  1325. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  1326. },
  1327. },
  1328. .slaves = omap44xx_uart2_slaves,
  1329. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  1330. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1331. };
  1332. /* uart3 */
  1333. static struct omap_hwmod omap44xx_uart3_hwmod;
  1334. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  1335. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  1336. };
  1337. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  1338. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  1339. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  1340. };
  1341. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  1342. {
  1343. .pa_start = 0x48020000,
  1344. .pa_end = 0x480200ff,
  1345. .flags = ADDR_TYPE_RT
  1346. },
  1347. };
  1348. /* l4_per -> uart3 */
  1349. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  1350. .master = &omap44xx_l4_per_hwmod,
  1351. .slave = &omap44xx_uart3_hwmod,
  1352. .clk = "l4_div_ck",
  1353. .addr = omap44xx_uart3_addrs,
  1354. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  1355. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1356. };
  1357. /* uart3 slave ports */
  1358. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  1359. &omap44xx_l4_per__uart3,
  1360. };
  1361. static struct omap_hwmod omap44xx_uart3_hwmod = {
  1362. .name = "uart3",
  1363. .class = &omap44xx_uart_hwmod_class,
  1364. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1365. .mpu_irqs = omap44xx_uart3_irqs,
  1366. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  1367. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  1368. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  1369. .main_clk = "uart3_fck",
  1370. .prcm = {
  1371. .omap4 = {
  1372. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  1373. },
  1374. },
  1375. .slaves = omap44xx_uart3_slaves,
  1376. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  1377. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1378. };
  1379. /* uart4 */
  1380. static struct omap_hwmod omap44xx_uart4_hwmod;
  1381. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  1382. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  1383. };
  1384. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  1385. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  1386. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  1387. };
  1388. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  1389. {
  1390. .pa_start = 0x4806e000,
  1391. .pa_end = 0x4806e0ff,
  1392. .flags = ADDR_TYPE_RT
  1393. },
  1394. };
  1395. /* l4_per -> uart4 */
  1396. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  1397. .master = &omap44xx_l4_per_hwmod,
  1398. .slave = &omap44xx_uart4_hwmod,
  1399. .clk = "l4_div_ck",
  1400. .addr = omap44xx_uart4_addrs,
  1401. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  1402. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1403. };
  1404. /* uart4 slave ports */
  1405. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  1406. &omap44xx_l4_per__uart4,
  1407. };
  1408. static struct omap_hwmod omap44xx_uart4_hwmod = {
  1409. .name = "uart4",
  1410. .class = &omap44xx_uart_hwmod_class,
  1411. .mpu_irqs = omap44xx_uart4_irqs,
  1412. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  1413. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  1414. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  1415. .main_clk = "uart4_fck",
  1416. .prcm = {
  1417. .omap4 = {
  1418. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  1419. },
  1420. },
  1421. .slaves = omap44xx_uart4_slaves,
  1422. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  1423. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1424. };
  1425. /*
  1426. * 'wd_timer' class
  1427. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  1428. * overflow condition
  1429. */
  1430. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  1431. .rev_offs = 0x0000,
  1432. .sysc_offs = 0x0010,
  1433. .syss_offs = 0x0014,
  1434. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1435. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1436. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1437. .sysc_fields = &omap_hwmod_sysc_type1,
  1438. };
  1439. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  1440. .name = "wd_timer",
  1441. .sysc = &omap44xx_wd_timer_sysc,
  1442. .pre_shutdown = &omap2_wd_timer_disable
  1443. };
  1444. /* wd_timer2 */
  1445. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  1446. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  1447. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  1448. };
  1449. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  1450. {
  1451. .pa_start = 0x4a314000,
  1452. .pa_end = 0x4a31407f,
  1453. .flags = ADDR_TYPE_RT
  1454. },
  1455. };
  1456. /* l4_wkup -> wd_timer2 */
  1457. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  1458. .master = &omap44xx_l4_wkup_hwmod,
  1459. .slave = &omap44xx_wd_timer2_hwmod,
  1460. .clk = "l4_wkup_clk_mux_ck",
  1461. .addr = omap44xx_wd_timer2_addrs,
  1462. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  1463. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1464. };
  1465. /* wd_timer2 slave ports */
  1466. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  1467. &omap44xx_l4_wkup__wd_timer2,
  1468. };
  1469. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  1470. .name = "wd_timer2",
  1471. .class = &omap44xx_wd_timer_hwmod_class,
  1472. .mpu_irqs = omap44xx_wd_timer2_irqs,
  1473. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  1474. .main_clk = "wd_timer2_fck",
  1475. .prcm = {
  1476. .omap4 = {
  1477. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  1478. },
  1479. },
  1480. .slaves = omap44xx_wd_timer2_slaves,
  1481. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  1482. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1483. };
  1484. /* wd_timer3 */
  1485. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  1486. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  1487. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  1488. };
  1489. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  1490. {
  1491. .pa_start = 0x40130000,
  1492. .pa_end = 0x4013007f,
  1493. .flags = ADDR_TYPE_RT
  1494. },
  1495. };
  1496. /* l4_abe -> wd_timer3 */
  1497. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  1498. .master = &omap44xx_l4_abe_hwmod,
  1499. .slave = &omap44xx_wd_timer3_hwmod,
  1500. .clk = "ocp_abe_iclk",
  1501. .addr = omap44xx_wd_timer3_addrs,
  1502. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  1503. .user = OCP_USER_MPU,
  1504. };
  1505. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  1506. {
  1507. .pa_start = 0x49030000,
  1508. .pa_end = 0x4903007f,
  1509. .flags = ADDR_TYPE_RT
  1510. },
  1511. };
  1512. /* l4_abe -> wd_timer3 (dma) */
  1513. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  1514. .master = &omap44xx_l4_abe_hwmod,
  1515. .slave = &omap44xx_wd_timer3_hwmod,
  1516. .clk = "ocp_abe_iclk",
  1517. .addr = omap44xx_wd_timer3_dma_addrs,
  1518. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  1519. .user = OCP_USER_SDMA,
  1520. };
  1521. /* wd_timer3 slave ports */
  1522. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  1523. &omap44xx_l4_abe__wd_timer3,
  1524. &omap44xx_l4_abe__wd_timer3_dma,
  1525. };
  1526. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  1527. .name = "wd_timer3",
  1528. .class = &omap44xx_wd_timer_hwmod_class,
  1529. .mpu_irqs = omap44xx_wd_timer3_irqs,
  1530. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  1531. .main_clk = "wd_timer3_fck",
  1532. .prcm = {
  1533. .omap4 = {
  1534. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  1535. },
  1536. },
  1537. .slaves = omap44xx_wd_timer3_slaves,
  1538. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  1539. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1540. };
  1541. /*
  1542. * 'dma' class
  1543. * dma controller for data exchange between memory to memory (i.e. internal or
  1544. * external memory) and gp peripherals to memory or memory to gp peripherals
  1545. */
  1546. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  1547. .rev_offs = 0x0000,
  1548. .sysc_offs = 0x002c,
  1549. .syss_offs = 0x0028,
  1550. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1551. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1552. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1553. SYSS_HAS_RESET_STATUS),
  1554. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1555. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1556. .sysc_fields = &omap_hwmod_sysc_type1,
  1557. };
  1558. /* dma attributes */
  1559. static struct omap_dma_dev_attr dma_dev_attr = {
  1560. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1561. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  1562. .lch_count = 32,
  1563. };
  1564. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  1565. .name = "dma",
  1566. .sysc = &omap44xx_dma_sysc,
  1567. };
  1568. /* dma_system */
  1569. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  1570. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  1571. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  1572. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  1573. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  1574. };
  1575. /* dma_system master ports */
  1576. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  1577. &omap44xx_dma_system__l3_main_2,
  1578. };
  1579. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  1580. {
  1581. .pa_start = 0x4a056000,
  1582. .pa_end = 0x4a0560ff,
  1583. .flags = ADDR_TYPE_RT
  1584. },
  1585. };
  1586. /* l4_cfg -> dma_system */
  1587. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  1588. .master = &omap44xx_l4_cfg_hwmod,
  1589. .slave = &omap44xx_dma_system_hwmod,
  1590. .clk = "l4_div_ck",
  1591. .addr = omap44xx_dma_system_addrs,
  1592. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  1593. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1594. };
  1595. /* dma_system slave ports */
  1596. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  1597. &omap44xx_l4_cfg__dma_system,
  1598. };
  1599. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  1600. .name = "dma_system",
  1601. .class = &omap44xx_dma_hwmod_class,
  1602. .mpu_irqs = omap44xx_dma_system_irqs,
  1603. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  1604. .main_clk = "l3_div_ck",
  1605. .prcm = {
  1606. .omap4 = {
  1607. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  1608. },
  1609. },
  1610. .slaves = omap44xx_dma_system_slaves,
  1611. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  1612. .masters = omap44xx_dma_system_masters,
  1613. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  1614. .dev_attr = &dma_dev_attr,
  1615. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1616. };
  1617. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  1618. /* dmm class */
  1619. &omap44xx_dmm_hwmod,
  1620. /* emif_fw class */
  1621. &omap44xx_emif_fw_hwmod,
  1622. /* l3 class */
  1623. &omap44xx_l3_instr_hwmod,
  1624. &omap44xx_l3_main_1_hwmod,
  1625. &omap44xx_l3_main_2_hwmod,
  1626. &omap44xx_l3_main_3_hwmod,
  1627. /* l4 class */
  1628. &omap44xx_l4_abe_hwmod,
  1629. &omap44xx_l4_cfg_hwmod,
  1630. &omap44xx_l4_per_hwmod,
  1631. &omap44xx_l4_wkup_hwmod,
  1632. /* dma class */
  1633. &omap44xx_dma_system_hwmod,
  1634. /* mpu_bus class */
  1635. &omap44xx_mpu_private_hwmod,
  1636. /* dsp class */
  1637. &omap44xx_dsp_hwmod,
  1638. &omap44xx_dsp_c0_hwmod,
  1639. /* gpio class */
  1640. &omap44xx_gpio1_hwmod,
  1641. &omap44xx_gpio2_hwmod,
  1642. &omap44xx_gpio3_hwmod,
  1643. &omap44xx_gpio4_hwmod,
  1644. &omap44xx_gpio5_hwmod,
  1645. &omap44xx_gpio6_hwmod,
  1646. /* i2c class */
  1647. &omap44xx_i2c1_hwmod,
  1648. &omap44xx_i2c2_hwmod,
  1649. &omap44xx_i2c3_hwmod,
  1650. &omap44xx_i2c4_hwmod,
  1651. /* iva class */
  1652. &omap44xx_iva_hwmod,
  1653. &omap44xx_iva_seq0_hwmod,
  1654. &omap44xx_iva_seq1_hwmod,
  1655. /* mpu class */
  1656. &omap44xx_mpu_hwmod,
  1657. /* uart class */
  1658. &omap44xx_uart1_hwmod,
  1659. &omap44xx_uart2_hwmod,
  1660. &omap44xx_uart3_hwmod,
  1661. &omap44xx_uart4_hwmod,
  1662. /* wd_timer class */
  1663. &omap44xx_wd_timer2_hwmod,
  1664. &omap44xx_wd_timer3_hwmod,
  1665. NULL,
  1666. };
  1667. int __init omap44xx_hwmod_init(void)
  1668. {
  1669. return omap_hwmod_init(omap44xx_hwmods);
  1670. }