omap_hwmod_44xx_data.c 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2011 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_dss_hwmod;
  40. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  41. static struct omap_hwmod omap44xx_iva_hwmod;
  42. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  43. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  44. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  45. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  46. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  47. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  48. static struct omap_hwmod omap44xx_l4_per_hwmod;
  49. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  50. static struct omap_hwmod omap44xx_mpu_hwmod;
  51. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  52. /*
  53. * Interconnects omap_hwmod structures
  54. * hwmods that compose the global OMAP interconnect
  55. */
  56. /*
  57. * 'dmm' class
  58. * instance(s): dmm
  59. */
  60. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  61. .name = "dmm",
  62. };
  63. /* dmm interface data */
  64. /* l3_main_1 -> dmm */
  65. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  66. .master = &omap44xx_l3_main_1_hwmod,
  67. .slave = &omap44xx_dmm_hwmod,
  68. .clk = "l3_div_ck",
  69. .user = OCP_USER_SDMA,
  70. };
  71. static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
  72. {
  73. .pa_start = 0x4e000000,
  74. .pa_end = 0x4e0007ff,
  75. .flags = ADDR_TYPE_RT
  76. },
  77. };
  78. /* mpu -> dmm */
  79. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  80. .master = &omap44xx_mpu_hwmod,
  81. .slave = &omap44xx_dmm_hwmod,
  82. .clk = "l3_div_ck",
  83. .addr = omap44xx_dmm_addrs,
  84. .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
  85. .user = OCP_USER_MPU,
  86. };
  87. /* dmm slave ports */
  88. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  89. &omap44xx_l3_main_1__dmm,
  90. &omap44xx_mpu__dmm,
  91. };
  92. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  93. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  94. };
  95. static struct omap_hwmod omap44xx_dmm_hwmod = {
  96. .name = "dmm",
  97. .class = &omap44xx_dmm_hwmod_class,
  98. .slaves = omap44xx_dmm_slaves,
  99. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  100. .mpu_irqs = omap44xx_dmm_irqs,
  101. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  102. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  103. };
  104. /*
  105. * 'emif_fw' class
  106. * instance(s): emif_fw
  107. */
  108. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  109. .name = "emif_fw",
  110. };
  111. /* emif_fw interface data */
  112. /* dmm -> emif_fw */
  113. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  114. .master = &omap44xx_dmm_hwmod,
  115. .slave = &omap44xx_emif_fw_hwmod,
  116. .clk = "l3_div_ck",
  117. .user = OCP_USER_MPU | OCP_USER_SDMA,
  118. };
  119. static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
  120. {
  121. .pa_start = 0x4a20c000,
  122. .pa_end = 0x4a20c0ff,
  123. .flags = ADDR_TYPE_RT
  124. },
  125. };
  126. /* l4_cfg -> emif_fw */
  127. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  128. .master = &omap44xx_l4_cfg_hwmod,
  129. .slave = &omap44xx_emif_fw_hwmod,
  130. .clk = "l4_div_ck",
  131. .addr = omap44xx_emif_fw_addrs,
  132. .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
  133. .user = OCP_USER_MPU,
  134. };
  135. /* emif_fw slave ports */
  136. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  137. &omap44xx_dmm__emif_fw,
  138. &omap44xx_l4_cfg__emif_fw,
  139. };
  140. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  141. .name = "emif_fw",
  142. .class = &omap44xx_emif_fw_hwmod_class,
  143. .slaves = omap44xx_emif_fw_slaves,
  144. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  145. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  146. };
  147. /*
  148. * 'l3' class
  149. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  150. */
  151. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  152. .name = "l3",
  153. };
  154. /* l3_instr interface data */
  155. /* iva -> l3_instr */
  156. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  157. .master = &omap44xx_iva_hwmod,
  158. .slave = &omap44xx_l3_instr_hwmod,
  159. .clk = "l3_div_ck",
  160. .user = OCP_USER_MPU | OCP_USER_SDMA,
  161. };
  162. /* l3_main_3 -> l3_instr */
  163. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  164. .master = &omap44xx_l3_main_3_hwmod,
  165. .slave = &omap44xx_l3_instr_hwmod,
  166. .clk = "l3_div_ck",
  167. .user = OCP_USER_MPU | OCP_USER_SDMA,
  168. };
  169. /* l3_instr slave ports */
  170. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  171. &omap44xx_iva__l3_instr,
  172. &omap44xx_l3_main_3__l3_instr,
  173. };
  174. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  175. .name = "l3_instr",
  176. .class = &omap44xx_l3_hwmod_class,
  177. .slaves = omap44xx_l3_instr_slaves,
  178. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  179. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  180. };
  181. /* l3_main_1 interface data */
  182. /* dsp -> l3_main_1 */
  183. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  184. .master = &omap44xx_dsp_hwmod,
  185. .slave = &omap44xx_l3_main_1_hwmod,
  186. .clk = "l3_div_ck",
  187. .user = OCP_USER_MPU | OCP_USER_SDMA,
  188. };
  189. /* dss -> l3_main_1 */
  190. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  191. .master = &omap44xx_dss_hwmod,
  192. .slave = &omap44xx_l3_main_1_hwmod,
  193. .clk = "l3_div_ck",
  194. .user = OCP_USER_MPU | OCP_USER_SDMA,
  195. };
  196. /* l3_main_2 -> l3_main_1 */
  197. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  198. .master = &omap44xx_l3_main_2_hwmod,
  199. .slave = &omap44xx_l3_main_1_hwmod,
  200. .clk = "l3_div_ck",
  201. .user = OCP_USER_MPU | OCP_USER_SDMA,
  202. };
  203. /* l4_cfg -> l3_main_1 */
  204. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  205. .master = &omap44xx_l4_cfg_hwmod,
  206. .slave = &omap44xx_l3_main_1_hwmod,
  207. .clk = "l4_div_ck",
  208. .user = OCP_USER_MPU | OCP_USER_SDMA,
  209. };
  210. /* mpu -> l3_main_1 */
  211. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  212. .master = &omap44xx_mpu_hwmod,
  213. .slave = &omap44xx_l3_main_1_hwmod,
  214. .clk = "l3_div_ck",
  215. .user = OCP_USER_MPU | OCP_USER_SDMA,
  216. };
  217. /* l3_main_1 slave ports */
  218. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  219. &omap44xx_dsp__l3_main_1,
  220. &omap44xx_dss__l3_main_1,
  221. &omap44xx_l3_main_2__l3_main_1,
  222. &omap44xx_l4_cfg__l3_main_1,
  223. &omap44xx_mpu__l3_main_1,
  224. };
  225. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  226. .name = "l3_main_1",
  227. .class = &omap44xx_l3_hwmod_class,
  228. .slaves = omap44xx_l3_main_1_slaves,
  229. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  230. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  231. };
  232. /* l3_main_2 interface data */
  233. /* dma_system -> l3_main_2 */
  234. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  235. .master = &omap44xx_dma_system_hwmod,
  236. .slave = &omap44xx_l3_main_2_hwmod,
  237. .clk = "l3_div_ck",
  238. .user = OCP_USER_MPU | OCP_USER_SDMA,
  239. };
  240. /* iva -> l3_main_2 */
  241. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  242. .master = &omap44xx_iva_hwmod,
  243. .slave = &omap44xx_l3_main_2_hwmod,
  244. .clk = "l3_div_ck",
  245. .user = OCP_USER_MPU | OCP_USER_SDMA,
  246. };
  247. /* l3_main_1 -> l3_main_2 */
  248. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  249. .master = &omap44xx_l3_main_1_hwmod,
  250. .slave = &omap44xx_l3_main_2_hwmod,
  251. .clk = "l3_div_ck",
  252. .user = OCP_USER_MPU | OCP_USER_SDMA,
  253. };
  254. /* l4_cfg -> l3_main_2 */
  255. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  256. .master = &omap44xx_l4_cfg_hwmod,
  257. .slave = &omap44xx_l3_main_2_hwmod,
  258. .clk = "l4_div_ck",
  259. .user = OCP_USER_MPU | OCP_USER_SDMA,
  260. };
  261. /* l3_main_2 slave ports */
  262. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  263. &omap44xx_dma_system__l3_main_2,
  264. &omap44xx_iva__l3_main_2,
  265. &omap44xx_l3_main_1__l3_main_2,
  266. &omap44xx_l4_cfg__l3_main_2,
  267. };
  268. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  269. .name = "l3_main_2",
  270. .class = &omap44xx_l3_hwmod_class,
  271. .slaves = omap44xx_l3_main_2_slaves,
  272. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  273. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  274. };
  275. /* l3_main_3 interface data */
  276. /* l3_main_1 -> l3_main_3 */
  277. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  278. .master = &omap44xx_l3_main_1_hwmod,
  279. .slave = &omap44xx_l3_main_3_hwmod,
  280. .clk = "l3_div_ck",
  281. .user = OCP_USER_MPU | OCP_USER_SDMA,
  282. };
  283. /* l3_main_2 -> l3_main_3 */
  284. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  285. .master = &omap44xx_l3_main_2_hwmod,
  286. .slave = &omap44xx_l3_main_3_hwmod,
  287. .clk = "l3_div_ck",
  288. .user = OCP_USER_MPU | OCP_USER_SDMA,
  289. };
  290. /* l4_cfg -> l3_main_3 */
  291. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  292. .master = &omap44xx_l4_cfg_hwmod,
  293. .slave = &omap44xx_l3_main_3_hwmod,
  294. .clk = "l4_div_ck",
  295. .user = OCP_USER_MPU | OCP_USER_SDMA,
  296. };
  297. /* l3_main_3 slave ports */
  298. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  299. &omap44xx_l3_main_1__l3_main_3,
  300. &omap44xx_l3_main_2__l3_main_3,
  301. &omap44xx_l4_cfg__l3_main_3,
  302. };
  303. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  304. .name = "l3_main_3",
  305. .class = &omap44xx_l3_hwmod_class,
  306. .slaves = omap44xx_l3_main_3_slaves,
  307. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  308. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  309. };
  310. /*
  311. * 'l4' class
  312. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  313. */
  314. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  315. .name = "l4",
  316. };
  317. /* l4_abe interface data */
  318. /* dsp -> l4_abe */
  319. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  320. .master = &omap44xx_dsp_hwmod,
  321. .slave = &omap44xx_l4_abe_hwmod,
  322. .clk = "ocp_abe_iclk",
  323. .user = OCP_USER_MPU | OCP_USER_SDMA,
  324. };
  325. /* l3_main_1 -> l4_abe */
  326. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  327. .master = &omap44xx_l3_main_1_hwmod,
  328. .slave = &omap44xx_l4_abe_hwmod,
  329. .clk = "l3_div_ck",
  330. .user = OCP_USER_MPU | OCP_USER_SDMA,
  331. };
  332. /* mpu -> l4_abe */
  333. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  334. .master = &omap44xx_mpu_hwmod,
  335. .slave = &omap44xx_l4_abe_hwmod,
  336. .clk = "ocp_abe_iclk",
  337. .user = OCP_USER_MPU | OCP_USER_SDMA,
  338. };
  339. /* l4_abe slave ports */
  340. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  341. &omap44xx_dsp__l4_abe,
  342. &omap44xx_l3_main_1__l4_abe,
  343. &omap44xx_mpu__l4_abe,
  344. };
  345. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  346. .name = "l4_abe",
  347. .class = &omap44xx_l4_hwmod_class,
  348. .slaves = omap44xx_l4_abe_slaves,
  349. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  350. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  351. };
  352. /* l4_cfg interface data */
  353. /* l3_main_1 -> l4_cfg */
  354. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  355. .master = &omap44xx_l3_main_1_hwmod,
  356. .slave = &omap44xx_l4_cfg_hwmod,
  357. .clk = "l3_div_ck",
  358. .user = OCP_USER_MPU | OCP_USER_SDMA,
  359. };
  360. /* l4_cfg slave ports */
  361. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  362. &omap44xx_l3_main_1__l4_cfg,
  363. };
  364. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  365. .name = "l4_cfg",
  366. .class = &omap44xx_l4_hwmod_class,
  367. .slaves = omap44xx_l4_cfg_slaves,
  368. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  369. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  370. };
  371. /* l4_per interface data */
  372. /* l3_main_2 -> l4_per */
  373. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  374. .master = &omap44xx_l3_main_2_hwmod,
  375. .slave = &omap44xx_l4_per_hwmod,
  376. .clk = "l3_div_ck",
  377. .user = OCP_USER_MPU | OCP_USER_SDMA,
  378. };
  379. /* l4_per slave ports */
  380. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  381. &omap44xx_l3_main_2__l4_per,
  382. };
  383. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  384. .name = "l4_per",
  385. .class = &omap44xx_l4_hwmod_class,
  386. .slaves = omap44xx_l4_per_slaves,
  387. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  388. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  389. };
  390. /* l4_wkup interface data */
  391. /* l4_cfg -> l4_wkup */
  392. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  393. .master = &omap44xx_l4_cfg_hwmod,
  394. .slave = &omap44xx_l4_wkup_hwmod,
  395. .clk = "l4_div_ck",
  396. .user = OCP_USER_MPU | OCP_USER_SDMA,
  397. };
  398. /* l4_wkup slave ports */
  399. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  400. &omap44xx_l4_cfg__l4_wkup,
  401. };
  402. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  403. .name = "l4_wkup",
  404. .class = &omap44xx_l4_hwmod_class,
  405. .slaves = omap44xx_l4_wkup_slaves,
  406. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  407. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  408. };
  409. /*
  410. * 'mpu_bus' class
  411. * instance(s): mpu_private
  412. */
  413. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  414. .name = "mpu_bus",
  415. };
  416. /* mpu_private interface data */
  417. /* mpu -> mpu_private */
  418. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  419. .master = &omap44xx_mpu_hwmod,
  420. .slave = &omap44xx_mpu_private_hwmod,
  421. .clk = "l3_div_ck",
  422. .user = OCP_USER_MPU | OCP_USER_SDMA,
  423. };
  424. /* mpu_private slave ports */
  425. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  426. &omap44xx_mpu__mpu_private,
  427. };
  428. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  429. .name = "mpu_private",
  430. .class = &omap44xx_mpu_bus_hwmod_class,
  431. .slaves = omap44xx_mpu_private_slaves,
  432. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  433. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  434. };
  435. /*
  436. * Modules omap_hwmod structures
  437. *
  438. * The following IPs are excluded for the moment because:
  439. * - They do not need an explicit SW control using omap_hwmod API.
  440. * - They still need to be validated with the driver
  441. * properly adapted to omap_hwmod / omap_device
  442. *
  443. * aess
  444. * bandgap
  445. * c2c
  446. * c2c_target_fw
  447. * cm_core
  448. * cm_core_aon
  449. * counter_32k
  450. * ctrl_module_core
  451. * ctrl_module_pad_core
  452. * ctrl_module_pad_wkup
  453. * ctrl_module_wkup
  454. * debugss
  455. * dmic
  456. * efuse_ctrl_cust
  457. * efuse_ctrl_std
  458. * elm
  459. * emif1
  460. * emif2
  461. * fdif
  462. * gpmc
  463. * gpu
  464. * hdq1w
  465. * hsi
  466. * ipu
  467. * iss
  468. * kbd
  469. * mailbox
  470. * mcasp
  471. * mcbsp1
  472. * mcbsp2
  473. * mcbsp3
  474. * mcbsp4
  475. * mcpdm
  476. * mmc1
  477. * mmc2
  478. * mmc3
  479. * mmc4
  480. * mmc5
  481. * mpu_c0
  482. * mpu_c1
  483. * ocmc_ram
  484. * ocp2scp_usb_phy
  485. * ocp_wp_noc
  486. * prcm
  487. * prcm_mpu
  488. * prm
  489. * scrm
  490. * sl2if
  491. * slimbus1
  492. * slimbus2
  493. * usb_host_fs
  494. * usb_host_hs
  495. * usb_otg_hs
  496. * usb_phy_cm
  497. * usb_tll_hs
  498. * usim
  499. */
  500. /*
  501. * 'dma' class
  502. * dma controller for data exchange between memory to memory (i.e. internal or
  503. * external memory) and gp peripherals to memory or memory to gp peripherals
  504. */
  505. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  506. .rev_offs = 0x0000,
  507. .sysc_offs = 0x002c,
  508. .syss_offs = 0x0028,
  509. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  510. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  511. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  512. SYSS_HAS_RESET_STATUS),
  513. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  514. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  515. .sysc_fields = &omap_hwmod_sysc_type1,
  516. };
  517. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  518. .name = "dma",
  519. .sysc = &omap44xx_dma_sysc,
  520. };
  521. /* dma dev_attr */
  522. static struct omap_dma_dev_attr dma_dev_attr = {
  523. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  524. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  525. .lch_count = 32,
  526. };
  527. /* dma_system */
  528. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  529. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  530. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  531. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  532. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  533. };
  534. /* dma_system master ports */
  535. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  536. &omap44xx_dma_system__l3_main_2,
  537. };
  538. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  539. {
  540. .pa_start = 0x4a056000,
  541. .pa_end = 0x4a0560ff,
  542. .flags = ADDR_TYPE_RT
  543. },
  544. };
  545. /* l4_cfg -> dma_system */
  546. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  547. .master = &omap44xx_l4_cfg_hwmod,
  548. .slave = &omap44xx_dma_system_hwmod,
  549. .clk = "l4_div_ck",
  550. .addr = omap44xx_dma_system_addrs,
  551. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  552. .user = OCP_USER_MPU | OCP_USER_SDMA,
  553. };
  554. /* dma_system slave ports */
  555. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  556. &omap44xx_l4_cfg__dma_system,
  557. };
  558. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  559. .name = "dma_system",
  560. .class = &omap44xx_dma_hwmod_class,
  561. .mpu_irqs = omap44xx_dma_system_irqs,
  562. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  563. .main_clk = "l3_div_ck",
  564. .prcm = {
  565. .omap4 = {
  566. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  567. },
  568. },
  569. .dev_attr = &dma_dev_attr,
  570. .slaves = omap44xx_dma_system_slaves,
  571. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  572. .masters = omap44xx_dma_system_masters,
  573. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  574. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  575. };
  576. /*
  577. * 'dsp' class
  578. * dsp sub-system
  579. */
  580. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  581. .name = "dsp",
  582. };
  583. /* dsp */
  584. static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
  585. { .irq = 28 + OMAP44XX_IRQ_GIC_START },
  586. };
  587. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  588. { .name = "mmu_cache", .rst_shift = 1 },
  589. };
  590. static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
  591. { .name = "dsp", .rst_shift = 0 },
  592. };
  593. /* dsp -> iva */
  594. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  595. .master = &omap44xx_dsp_hwmod,
  596. .slave = &omap44xx_iva_hwmod,
  597. .clk = "dpll_iva_m5x2_ck",
  598. };
  599. /* dsp master ports */
  600. static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
  601. &omap44xx_dsp__l3_main_1,
  602. &omap44xx_dsp__l4_abe,
  603. &omap44xx_dsp__iva,
  604. };
  605. /* l4_cfg -> dsp */
  606. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  607. .master = &omap44xx_l4_cfg_hwmod,
  608. .slave = &omap44xx_dsp_hwmod,
  609. .clk = "l4_div_ck",
  610. .user = OCP_USER_MPU | OCP_USER_SDMA,
  611. };
  612. /* dsp slave ports */
  613. static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
  614. &omap44xx_l4_cfg__dsp,
  615. };
  616. /* Pseudo hwmod for reset control purpose only */
  617. static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
  618. .name = "dsp_c0",
  619. .class = &omap44xx_dsp_hwmod_class,
  620. .flags = HWMOD_INIT_NO_RESET,
  621. .rst_lines = omap44xx_dsp_c0_resets,
  622. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
  623. .prcm = {
  624. .omap4 = {
  625. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  626. },
  627. },
  628. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  629. };
  630. static struct omap_hwmod omap44xx_dsp_hwmod = {
  631. .name = "dsp",
  632. .class = &omap44xx_dsp_hwmod_class,
  633. .mpu_irqs = omap44xx_dsp_irqs,
  634. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
  635. .rst_lines = omap44xx_dsp_resets,
  636. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  637. .main_clk = "dsp_fck",
  638. .prcm = {
  639. .omap4 = {
  640. .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
  641. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  642. },
  643. },
  644. .slaves = omap44xx_dsp_slaves,
  645. .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
  646. .masters = omap44xx_dsp_masters,
  647. .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
  648. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  649. };
  650. /*
  651. * 'dss' class
  652. * display sub-system
  653. */
  654. static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
  655. .rev_offs = 0x0000,
  656. .syss_offs = 0x0014,
  657. .sysc_flags = SYSS_HAS_RESET_STATUS,
  658. };
  659. static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
  660. .name = "dss",
  661. .sysc = &omap44xx_dss_sysc,
  662. };
  663. /* dss */
  664. /* dss master ports */
  665. static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
  666. &omap44xx_dss__l3_main_1,
  667. };
  668. static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
  669. {
  670. .pa_start = 0x58000000,
  671. .pa_end = 0x5800007f,
  672. .flags = ADDR_TYPE_RT
  673. },
  674. };
  675. /* l3_main_2 -> dss */
  676. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  677. .master = &omap44xx_l3_main_2_hwmod,
  678. .slave = &omap44xx_dss_hwmod,
  679. .clk = "l3_div_ck",
  680. .addr = omap44xx_dss_dma_addrs,
  681. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dma_addrs),
  682. .user = OCP_USER_SDMA,
  683. };
  684. static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
  685. {
  686. .pa_start = 0x48040000,
  687. .pa_end = 0x4804007f,
  688. .flags = ADDR_TYPE_RT
  689. },
  690. };
  691. /* l4_per -> dss */
  692. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  693. .master = &omap44xx_l4_per_hwmod,
  694. .slave = &omap44xx_dss_hwmod,
  695. .clk = "l4_div_ck",
  696. .addr = omap44xx_dss_addrs,
  697. .addr_cnt = ARRAY_SIZE(omap44xx_dss_addrs),
  698. .user = OCP_USER_MPU,
  699. };
  700. /* dss slave ports */
  701. static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
  702. &omap44xx_l3_main_2__dss,
  703. &omap44xx_l4_per__dss,
  704. };
  705. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  706. { .role = "sys_clk", .clk = "dss_sys_clk" },
  707. { .role = "tv_clk", .clk = "dss_tv_clk" },
  708. { .role = "dss_clk", .clk = "dss_dss_clk" },
  709. { .role = "video_clk", .clk = "dss_48mhz_clk" },
  710. };
  711. static struct omap_hwmod omap44xx_dss_hwmod = {
  712. .name = "dss_core",
  713. .class = &omap44xx_dss_hwmod_class,
  714. .main_clk = "dss_fck",
  715. .prcm = {
  716. .omap4 = {
  717. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  718. },
  719. },
  720. .opt_clks = dss_opt_clks,
  721. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  722. .slaves = omap44xx_dss_slaves,
  723. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
  724. .masters = omap44xx_dss_masters,
  725. .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
  726. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  727. };
  728. /*
  729. * 'dispc' class
  730. * display controller
  731. */
  732. static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
  733. .rev_offs = 0x0000,
  734. .sysc_offs = 0x0010,
  735. .syss_offs = 0x0014,
  736. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  737. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  738. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  739. SYSS_HAS_RESET_STATUS),
  740. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  741. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  742. .sysc_fields = &omap_hwmod_sysc_type1,
  743. };
  744. static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
  745. .name = "dispc",
  746. .sysc = &omap44xx_dispc_sysc,
  747. };
  748. /* dss_dispc */
  749. static struct omap_hwmod omap44xx_dss_dispc_hwmod;
  750. static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
  751. { .irq = 25 + OMAP44XX_IRQ_GIC_START },
  752. };
  753. static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
  754. { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
  755. };
  756. static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
  757. {
  758. .pa_start = 0x58001000,
  759. .pa_end = 0x58001fff,
  760. .flags = ADDR_TYPE_RT
  761. },
  762. };
  763. /* l3_main_2 -> dss_dispc */
  764. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  765. .master = &omap44xx_l3_main_2_hwmod,
  766. .slave = &omap44xx_dss_dispc_hwmod,
  767. .clk = "l3_div_ck",
  768. .addr = omap44xx_dss_dispc_dma_addrs,
  769. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_dma_addrs),
  770. .user = OCP_USER_SDMA,
  771. };
  772. static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
  773. {
  774. .pa_start = 0x48041000,
  775. .pa_end = 0x48041fff,
  776. .flags = ADDR_TYPE_RT
  777. },
  778. };
  779. /* l4_per -> dss_dispc */
  780. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  781. .master = &omap44xx_l4_per_hwmod,
  782. .slave = &omap44xx_dss_dispc_hwmod,
  783. .clk = "l4_div_ck",
  784. .addr = omap44xx_dss_dispc_addrs,
  785. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_addrs),
  786. .user = OCP_USER_MPU,
  787. };
  788. /* dss_dispc slave ports */
  789. static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
  790. &omap44xx_l3_main_2__dss_dispc,
  791. &omap44xx_l4_per__dss_dispc,
  792. };
  793. static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
  794. .name = "dss_dispc",
  795. .class = &omap44xx_dispc_hwmod_class,
  796. .mpu_irqs = omap44xx_dss_dispc_irqs,
  797. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_irqs),
  798. .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
  799. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
  800. .main_clk = "dss_fck",
  801. .prcm = {
  802. .omap4 = {
  803. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  804. },
  805. },
  806. .slaves = omap44xx_dss_dispc_slaves,
  807. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
  808. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  809. };
  810. /*
  811. * 'dsi' class
  812. * display serial interface controller
  813. */
  814. static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
  815. .rev_offs = 0x0000,
  816. .sysc_offs = 0x0010,
  817. .syss_offs = 0x0014,
  818. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  819. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  820. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  821. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  822. .sysc_fields = &omap_hwmod_sysc_type1,
  823. };
  824. static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
  825. .name = "dsi",
  826. .sysc = &omap44xx_dsi_sysc,
  827. };
  828. /* dss_dsi1 */
  829. static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
  830. static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
  831. { .irq = 53 + OMAP44XX_IRQ_GIC_START },
  832. };
  833. static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
  834. { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
  835. };
  836. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
  837. {
  838. .pa_start = 0x58004000,
  839. .pa_end = 0x580041ff,
  840. .flags = ADDR_TYPE_RT
  841. },
  842. };
  843. /* l3_main_2 -> dss_dsi1 */
  844. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  845. .master = &omap44xx_l3_main_2_hwmod,
  846. .slave = &omap44xx_dss_dsi1_hwmod,
  847. .clk = "l3_div_ck",
  848. .addr = omap44xx_dss_dsi1_dma_addrs,
  849. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_dma_addrs),
  850. .user = OCP_USER_SDMA,
  851. };
  852. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
  853. {
  854. .pa_start = 0x48044000,
  855. .pa_end = 0x480441ff,
  856. .flags = ADDR_TYPE_RT
  857. },
  858. };
  859. /* l4_per -> dss_dsi1 */
  860. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  861. .master = &omap44xx_l4_per_hwmod,
  862. .slave = &omap44xx_dss_dsi1_hwmod,
  863. .clk = "l4_div_ck",
  864. .addr = omap44xx_dss_dsi1_addrs,
  865. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_addrs),
  866. .user = OCP_USER_MPU,
  867. };
  868. /* dss_dsi1 slave ports */
  869. static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
  870. &omap44xx_l3_main_2__dss_dsi1,
  871. &omap44xx_l4_per__dss_dsi1,
  872. };
  873. static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
  874. .name = "dss_dsi1",
  875. .class = &omap44xx_dsi_hwmod_class,
  876. .mpu_irqs = omap44xx_dss_dsi1_irqs,
  877. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_irqs),
  878. .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
  879. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
  880. .main_clk = "dss_fck",
  881. .prcm = {
  882. .omap4 = {
  883. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  884. },
  885. },
  886. .slaves = omap44xx_dss_dsi1_slaves,
  887. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
  888. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  889. };
  890. /* dss_dsi2 */
  891. static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
  892. static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
  893. { .irq = 84 + OMAP44XX_IRQ_GIC_START },
  894. };
  895. static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
  896. { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
  897. };
  898. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
  899. {
  900. .pa_start = 0x58005000,
  901. .pa_end = 0x580051ff,
  902. .flags = ADDR_TYPE_RT
  903. },
  904. };
  905. /* l3_main_2 -> dss_dsi2 */
  906. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  907. .master = &omap44xx_l3_main_2_hwmod,
  908. .slave = &omap44xx_dss_dsi2_hwmod,
  909. .clk = "l3_div_ck",
  910. .addr = omap44xx_dss_dsi2_dma_addrs,
  911. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_dma_addrs),
  912. .user = OCP_USER_SDMA,
  913. };
  914. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
  915. {
  916. .pa_start = 0x48045000,
  917. .pa_end = 0x480451ff,
  918. .flags = ADDR_TYPE_RT
  919. },
  920. };
  921. /* l4_per -> dss_dsi2 */
  922. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  923. .master = &omap44xx_l4_per_hwmod,
  924. .slave = &omap44xx_dss_dsi2_hwmod,
  925. .clk = "l4_div_ck",
  926. .addr = omap44xx_dss_dsi2_addrs,
  927. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_addrs),
  928. .user = OCP_USER_MPU,
  929. };
  930. /* dss_dsi2 slave ports */
  931. static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
  932. &omap44xx_l3_main_2__dss_dsi2,
  933. &omap44xx_l4_per__dss_dsi2,
  934. };
  935. static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
  936. .name = "dss_dsi2",
  937. .class = &omap44xx_dsi_hwmod_class,
  938. .mpu_irqs = omap44xx_dss_dsi2_irqs,
  939. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_irqs),
  940. .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
  941. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
  942. .main_clk = "dss_fck",
  943. .prcm = {
  944. .omap4 = {
  945. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  946. },
  947. },
  948. .slaves = omap44xx_dss_dsi2_slaves,
  949. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
  950. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  951. };
  952. /*
  953. * 'hdmi' class
  954. * hdmi controller
  955. */
  956. static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
  957. .rev_offs = 0x0000,
  958. .sysc_offs = 0x0010,
  959. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  960. SYSC_HAS_SOFTRESET),
  961. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  962. SIDLE_SMART_WKUP),
  963. .sysc_fields = &omap_hwmod_sysc_type2,
  964. };
  965. static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
  966. .name = "hdmi",
  967. .sysc = &omap44xx_hdmi_sysc,
  968. };
  969. /* dss_hdmi */
  970. static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
  971. static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
  972. { .irq = 101 + OMAP44XX_IRQ_GIC_START },
  973. };
  974. static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
  975. { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
  976. };
  977. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
  978. {
  979. .pa_start = 0x58006000,
  980. .pa_end = 0x58006fff,
  981. .flags = ADDR_TYPE_RT
  982. },
  983. };
  984. /* l3_main_2 -> dss_hdmi */
  985. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  986. .master = &omap44xx_l3_main_2_hwmod,
  987. .slave = &omap44xx_dss_hdmi_hwmod,
  988. .clk = "l3_div_ck",
  989. .addr = omap44xx_dss_hdmi_dma_addrs,
  990. .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_dma_addrs),
  991. .user = OCP_USER_SDMA,
  992. };
  993. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
  994. {
  995. .pa_start = 0x48046000,
  996. .pa_end = 0x48046fff,
  997. .flags = ADDR_TYPE_RT
  998. },
  999. };
  1000. /* l4_per -> dss_hdmi */
  1001. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  1002. .master = &omap44xx_l4_per_hwmod,
  1003. .slave = &omap44xx_dss_hdmi_hwmod,
  1004. .clk = "l4_div_ck",
  1005. .addr = omap44xx_dss_hdmi_addrs,
  1006. .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_addrs),
  1007. .user = OCP_USER_MPU,
  1008. };
  1009. /* dss_hdmi slave ports */
  1010. static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
  1011. &omap44xx_l3_main_2__dss_hdmi,
  1012. &omap44xx_l4_per__dss_hdmi,
  1013. };
  1014. static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
  1015. .name = "dss_hdmi",
  1016. .class = &omap44xx_hdmi_hwmod_class,
  1017. .mpu_irqs = omap44xx_dss_hdmi_irqs,
  1018. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_irqs),
  1019. .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
  1020. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
  1021. .main_clk = "dss_fck",
  1022. .prcm = {
  1023. .omap4 = {
  1024. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1025. },
  1026. },
  1027. .slaves = omap44xx_dss_hdmi_slaves,
  1028. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
  1029. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1030. };
  1031. /*
  1032. * 'rfbi' class
  1033. * remote frame buffer interface
  1034. */
  1035. static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
  1036. .rev_offs = 0x0000,
  1037. .sysc_offs = 0x0010,
  1038. .syss_offs = 0x0014,
  1039. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1040. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1041. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1042. .sysc_fields = &omap_hwmod_sysc_type1,
  1043. };
  1044. static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
  1045. .name = "rfbi",
  1046. .sysc = &omap44xx_rfbi_sysc,
  1047. };
  1048. /* dss_rfbi */
  1049. static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
  1050. static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
  1051. { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
  1052. };
  1053. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
  1054. {
  1055. .pa_start = 0x58002000,
  1056. .pa_end = 0x580020ff,
  1057. .flags = ADDR_TYPE_RT
  1058. },
  1059. };
  1060. /* l3_main_2 -> dss_rfbi */
  1061. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  1062. .master = &omap44xx_l3_main_2_hwmod,
  1063. .slave = &omap44xx_dss_rfbi_hwmod,
  1064. .clk = "l3_div_ck",
  1065. .addr = omap44xx_dss_rfbi_dma_addrs,
  1066. .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_dma_addrs),
  1067. .user = OCP_USER_SDMA,
  1068. };
  1069. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
  1070. {
  1071. .pa_start = 0x48042000,
  1072. .pa_end = 0x480420ff,
  1073. .flags = ADDR_TYPE_RT
  1074. },
  1075. };
  1076. /* l4_per -> dss_rfbi */
  1077. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  1078. .master = &omap44xx_l4_per_hwmod,
  1079. .slave = &omap44xx_dss_rfbi_hwmod,
  1080. .clk = "l4_div_ck",
  1081. .addr = omap44xx_dss_rfbi_addrs,
  1082. .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_addrs),
  1083. .user = OCP_USER_MPU,
  1084. };
  1085. /* dss_rfbi slave ports */
  1086. static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
  1087. &omap44xx_l3_main_2__dss_rfbi,
  1088. &omap44xx_l4_per__dss_rfbi,
  1089. };
  1090. static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
  1091. .name = "dss_rfbi",
  1092. .class = &omap44xx_rfbi_hwmod_class,
  1093. .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
  1094. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
  1095. .main_clk = "dss_fck",
  1096. .prcm = {
  1097. .omap4 = {
  1098. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1099. },
  1100. },
  1101. .slaves = omap44xx_dss_rfbi_slaves,
  1102. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
  1103. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1104. };
  1105. /*
  1106. * 'venc' class
  1107. * video encoder
  1108. */
  1109. static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
  1110. .name = "venc",
  1111. };
  1112. /* dss_venc */
  1113. static struct omap_hwmod omap44xx_dss_venc_hwmod;
  1114. static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
  1115. {
  1116. .pa_start = 0x58003000,
  1117. .pa_end = 0x580030ff,
  1118. .flags = ADDR_TYPE_RT
  1119. },
  1120. };
  1121. /* l3_main_2 -> dss_venc */
  1122. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  1123. .master = &omap44xx_l3_main_2_hwmod,
  1124. .slave = &omap44xx_dss_venc_hwmod,
  1125. .clk = "l3_div_ck",
  1126. .addr = omap44xx_dss_venc_dma_addrs,
  1127. .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_dma_addrs),
  1128. .user = OCP_USER_SDMA,
  1129. };
  1130. static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
  1131. {
  1132. .pa_start = 0x48043000,
  1133. .pa_end = 0x480430ff,
  1134. .flags = ADDR_TYPE_RT
  1135. },
  1136. };
  1137. /* l4_per -> dss_venc */
  1138. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  1139. .master = &omap44xx_l4_per_hwmod,
  1140. .slave = &omap44xx_dss_venc_hwmod,
  1141. .clk = "l4_div_ck",
  1142. .addr = omap44xx_dss_venc_addrs,
  1143. .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_addrs),
  1144. .user = OCP_USER_MPU,
  1145. };
  1146. /* dss_venc slave ports */
  1147. static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
  1148. &omap44xx_l3_main_2__dss_venc,
  1149. &omap44xx_l4_per__dss_venc,
  1150. };
  1151. static struct omap_hwmod omap44xx_dss_venc_hwmod = {
  1152. .name = "dss_venc",
  1153. .class = &omap44xx_venc_hwmod_class,
  1154. .main_clk = "dss_fck",
  1155. .prcm = {
  1156. .omap4 = {
  1157. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1158. },
  1159. },
  1160. .slaves = omap44xx_dss_venc_slaves,
  1161. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
  1162. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1163. };
  1164. /*
  1165. * 'gpio' class
  1166. * general purpose io module
  1167. */
  1168. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  1169. .rev_offs = 0x0000,
  1170. .sysc_offs = 0x0010,
  1171. .syss_offs = 0x0114,
  1172. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1173. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1174. SYSS_HAS_RESET_STATUS),
  1175. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1176. SIDLE_SMART_WKUP),
  1177. .sysc_fields = &omap_hwmod_sysc_type1,
  1178. };
  1179. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  1180. .name = "gpio",
  1181. .sysc = &omap44xx_gpio_sysc,
  1182. .rev = 2,
  1183. };
  1184. /* gpio dev_attr */
  1185. static struct omap_gpio_dev_attr gpio_dev_attr = {
  1186. .bank_width = 32,
  1187. .dbck_flag = true,
  1188. };
  1189. /* gpio1 */
  1190. static struct omap_hwmod omap44xx_gpio1_hwmod;
  1191. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  1192. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  1193. };
  1194. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  1195. {
  1196. .pa_start = 0x4a310000,
  1197. .pa_end = 0x4a3101ff,
  1198. .flags = ADDR_TYPE_RT
  1199. },
  1200. };
  1201. /* l4_wkup -> gpio1 */
  1202. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  1203. .master = &omap44xx_l4_wkup_hwmod,
  1204. .slave = &omap44xx_gpio1_hwmod,
  1205. .clk = "l4_wkup_clk_mux_ck",
  1206. .addr = omap44xx_gpio1_addrs,
  1207. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  1208. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1209. };
  1210. /* gpio1 slave ports */
  1211. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  1212. &omap44xx_l4_wkup__gpio1,
  1213. };
  1214. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  1215. { .role = "dbclk", .clk = "gpio1_dbclk" },
  1216. };
  1217. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  1218. .name = "gpio1",
  1219. .class = &omap44xx_gpio_hwmod_class,
  1220. .mpu_irqs = omap44xx_gpio1_irqs,
  1221. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  1222. .main_clk = "gpio1_ick",
  1223. .prcm = {
  1224. .omap4 = {
  1225. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  1226. },
  1227. },
  1228. .opt_clks = gpio1_opt_clks,
  1229. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  1230. .dev_attr = &gpio_dev_attr,
  1231. .slaves = omap44xx_gpio1_slaves,
  1232. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  1233. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1234. };
  1235. /* gpio2 */
  1236. static struct omap_hwmod omap44xx_gpio2_hwmod;
  1237. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  1238. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  1239. };
  1240. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  1241. {
  1242. .pa_start = 0x48055000,
  1243. .pa_end = 0x480551ff,
  1244. .flags = ADDR_TYPE_RT
  1245. },
  1246. };
  1247. /* l4_per -> gpio2 */
  1248. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  1249. .master = &omap44xx_l4_per_hwmod,
  1250. .slave = &omap44xx_gpio2_hwmod,
  1251. .clk = "l4_div_ck",
  1252. .addr = omap44xx_gpio2_addrs,
  1253. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  1254. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1255. };
  1256. /* gpio2 slave ports */
  1257. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  1258. &omap44xx_l4_per__gpio2,
  1259. };
  1260. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  1261. { .role = "dbclk", .clk = "gpio2_dbclk" },
  1262. };
  1263. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  1264. .name = "gpio2",
  1265. .class = &omap44xx_gpio_hwmod_class,
  1266. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1267. .mpu_irqs = omap44xx_gpio2_irqs,
  1268. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  1269. .main_clk = "gpio2_ick",
  1270. .prcm = {
  1271. .omap4 = {
  1272. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  1273. },
  1274. },
  1275. .opt_clks = gpio2_opt_clks,
  1276. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1277. .dev_attr = &gpio_dev_attr,
  1278. .slaves = omap44xx_gpio2_slaves,
  1279. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  1280. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1281. };
  1282. /* gpio3 */
  1283. static struct omap_hwmod omap44xx_gpio3_hwmod;
  1284. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  1285. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  1286. };
  1287. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  1288. {
  1289. .pa_start = 0x48057000,
  1290. .pa_end = 0x480571ff,
  1291. .flags = ADDR_TYPE_RT
  1292. },
  1293. };
  1294. /* l4_per -> gpio3 */
  1295. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  1296. .master = &omap44xx_l4_per_hwmod,
  1297. .slave = &omap44xx_gpio3_hwmod,
  1298. .clk = "l4_div_ck",
  1299. .addr = omap44xx_gpio3_addrs,
  1300. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  1301. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1302. };
  1303. /* gpio3 slave ports */
  1304. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  1305. &omap44xx_l4_per__gpio3,
  1306. };
  1307. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1308. { .role = "dbclk", .clk = "gpio3_dbclk" },
  1309. };
  1310. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1311. .name = "gpio3",
  1312. .class = &omap44xx_gpio_hwmod_class,
  1313. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1314. .mpu_irqs = omap44xx_gpio3_irqs,
  1315. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  1316. .main_clk = "gpio3_ick",
  1317. .prcm = {
  1318. .omap4 = {
  1319. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  1320. },
  1321. },
  1322. .opt_clks = gpio3_opt_clks,
  1323. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1324. .dev_attr = &gpio_dev_attr,
  1325. .slaves = omap44xx_gpio3_slaves,
  1326. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  1327. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1328. };
  1329. /* gpio4 */
  1330. static struct omap_hwmod omap44xx_gpio4_hwmod;
  1331. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  1332. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  1333. };
  1334. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  1335. {
  1336. .pa_start = 0x48059000,
  1337. .pa_end = 0x480591ff,
  1338. .flags = ADDR_TYPE_RT
  1339. },
  1340. };
  1341. /* l4_per -> gpio4 */
  1342. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  1343. .master = &omap44xx_l4_per_hwmod,
  1344. .slave = &omap44xx_gpio4_hwmod,
  1345. .clk = "l4_div_ck",
  1346. .addr = omap44xx_gpio4_addrs,
  1347. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  1348. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1349. };
  1350. /* gpio4 slave ports */
  1351. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  1352. &omap44xx_l4_per__gpio4,
  1353. };
  1354. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1355. { .role = "dbclk", .clk = "gpio4_dbclk" },
  1356. };
  1357. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1358. .name = "gpio4",
  1359. .class = &omap44xx_gpio_hwmod_class,
  1360. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1361. .mpu_irqs = omap44xx_gpio4_irqs,
  1362. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  1363. .main_clk = "gpio4_ick",
  1364. .prcm = {
  1365. .omap4 = {
  1366. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  1367. },
  1368. },
  1369. .opt_clks = gpio4_opt_clks,
  1370. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1371. .dev_attr = &gpio_dev_attr,
  1372. .slaves = omap44xx_gpio4_slaves,
  1373. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  1374. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1375. };
  1376. /* gpio5 */
  1377. static struct omap_hwmod omap44xx_gpio5_hwmod;
  1378. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  1379. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  1380. };
  1381. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  1382. {
  1383. .pa_start = 0x4805b000,
  1384. .pa_end = 0x4805b1ff,
  1385. .flags = ADDR_TYPE_RT
  1386. },
  1387. };
  1388. /* l4_per -> gpio5 */
  1389. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  1390. .master = &omap44xx_l4_per_hwmod,
  1391. .slave = &omap44xx_gpio5_hwmod,
  1392. .clk = "l4_div_ck",
  1393. .addr = omap44xx_gpio5_addrs,
  1394. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  1395. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1396. };
  1397. /* gpio5 slave ports */
  1398. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  1399. &omap44xx_l4_per__gpio5,
  1400. };
  1401. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1402. { .role = "dbclk", .clk = "gpio5_dbclk" },
  1403. };
  1404. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1405. .name = "gpio5",
  1406. .class = &omap44xx_gpio_hwmod_class,
  1407. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1408. .mpu_irqs = omap44xx_gpio5_irqs,
  1409. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  1410. .main_clk = "gpio5_ick",
  1411. .prcm = {
  1412. .omap4 = {
  1413. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  1414. },
  1415. },
  1416. .opt_clks = gpio5_opt_clks,
  1417. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1418. .dev_attr = &gpio_dev_attr,
  1419. .slaves = omap44xx_gpio5_slaves,
  1420. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  1421. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1422. };
  1423. /* gpio6 */
  1424. static struct omap_hwmod omap44xx_gpio6_hwmod;
  1425. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  1426. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  1427. };
  1428. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  1429. {
  1430. .pa_start = 0x4805d000,
  1431. .pa_end = 0x4805d1ff,
  1432. .flags = ADDR_TYPE_RT
  1433. },
  1434. };
  1435. /* l4_per -> gpio6 */
  1436. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  1437. .master = &omap44xx_l4_per_hwmod,
  1438. .slave = &omap44xx_gpio6_hwmod,
  1439. .clk = "l4_div_ck",
  1440. .addr = omap44xx_gpio6_addrs,
  1441. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  1442. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1443. };
  1444. /* gpio6 slave ports */
  1445. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  1446. &omap44xx_l4_per__gpio6,
  1447. };
  1448. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1449. { .role = "dbclk", .clk = "gpio6_dbclk" },
  1450. };
  1451. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1452. .name = "gpio6",
  1453. .class = &omap44xx_gpio_hwmod_class,
  1454. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1455. .mpu_irqs = omap44xx_gpio6_irqs,
  1456. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  1457. .main_clk = "gpio6_ick",
  1458. .prcm = {
  1459. .omap4 = {
  1460. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  1461. },
  1462. },
  1463. .opt_clks = gpio6_opt_clks,
  1464. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1465. .dev_attr = &gpio_dev_attr,
  1466. .slaves = omap44xx_gpio6_slaves,
  1467. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  1468. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1469. };
  1470. /*
  1471. * 'i2c' class
  1472. * multimaster high-speed i2c controller
  1473. */
  1474. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  1475. .sysc_offs = 0x0010,
  1476. .syss_offs = 0x0090,
  1477. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1478. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1479. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1480. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1481. SIDLE_SMART_WKUP),
  1482. .sysc_fields = &omap_hwmod_sysc_type1,
  1483. };
  1484. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  1485. .name = "i2c",
  1486. .sysc = &omap44xx_i2c_sysc,
  1487. };
  1488. /* i2c1 */
  1489. static struct omap_hwmod omap44xx_i2c1_hwmod;
  1490. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  1491. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  1492. };
  1493. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  1494. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  1495. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  1496. };
  1497. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  1498. {
  1499. .pa_start = 0x48070000,
  1500. .pa_end = 0x480700ff,
  1501. .flags = ADDR_TYPE_RT
  1502. },
  1503. };
  1504. /* l4_per -> i2c1 */
  1505. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  1506. .master = &omap44xx_l4_per_hwmod,
  1507. .slave = &omap44xx_i2c1_hwmod,
  1508. .clk = "l4_div_ck",
  1509. .addr = omap44xx_i2c1_addrs,
  1510. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  1511. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1512. };
  1513. /* i2c1 slave ports */
  1514. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  1515. &omap44xx_l4_per__i2c1,
  1516. };
  1517. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1518. .name = "i2c1",
  1519. .class = &omap44xx_i2c_hwmod_class,
  1520. .flags = HWMOD_INIT_NO_RESET,
  1521. .mpu_irqs = omap44xx_i2c1_irqs,
  1522. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  1523. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  1524. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  1525. .main_clk = "i2c1_fck",
  1526. .prcm = {
  1527. .omap4 = {
  1528. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  1529. },
  1530. },
  1531. .slaves = omap44xx_i2c1_slaves,
  1532. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  1533. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1534. };
  1535. /* i2c2 */
  1536. static struct omap_hwmod omap44xx_i2c2_hwmod;
  1537. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  1538. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  1539. };
  1540. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  1541. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  1542. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  1543. };
  1544. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  1545. {
  1546. .pa_start = 0x48072000,
  1547. .pa_end = 0x480720ff,
  1548. .flags = ADDR_TYPE_RT
  1549. },
  1550. };
  1551. /* l4_per -> i2c2 */
  1552. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  1553. .master = &omap44xx_l4_per_hwmod,
  1554. .slave = &omap44xx_i2c2_hwmod,
  1555. .clk = "l4_div_ck",
  1556. .addr = omap44xx_i2c2_addrs,
  1557. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  1558. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1559. };
  1560. /* i2c2 slave ports */
  1561. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  1562. &omap44xx_l4_per__i2c2,
  1563. };
  1564. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1565. .name = "i2c2",
  1566. .class = &omap44xx_i2c_hwmod_class,
  1567. .flags = HWMOD_INIT_NO_RESET,
  1568. .mpu_irqs = omap44xx_i2c2_irqs,
  1569. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  1570. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  1571. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  1572. .main_clk = "i2c2_fck",
  1573. .prcm = {
  1574. .omap4 = {
  1575. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  1576. },
  1577. },
  1578. .slaves = omap44xx_i2c2_slaves,
  1579. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  1580. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1581. };
  1582. /* i2c3 */
  1583. static struct omap_hwmod omap44xx_i2c3_hwmod;
  1584. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  1585. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  1586. };
  1587. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  1588. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  1589. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  1590. };
  1591. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  1592. {
  1593. .pa_start = 0x48060000,
  1594. .pa_end = 0x480600ff,
  1595. .flags = ADDR_TYPE_RT
  1596. },
  1597. };
  1598. /* l4_per -> i2c3 */
  1599. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  1600. .master = &omap44xx_l4_per_hwmod,
  1601. .slave = &omap44xx_i2c3_hwmod,
  1602. .clk = "l4_div_ck",
  1603. .addr = omap44xx_i2c3_addrs,
  1604. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  1605. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1606. };
  1607. /* i2c3 slave ports */
  1608. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  1609. &omap44xx_l4_per__i2c3,
  1610. };
  1611. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1612. .name = "i2c3",
  1613. .class = &omap44xx_i2c_hwmod_class,
  1614. .flags = HWMOD_INIT_NO_RESET,
  1615. .mpu_irqs = omap44xx_i2c3_irqs,
  1616. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  1617. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  1618. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  1619. .main_clk = "i2c3_fck",
  1620. .prcm = {
  1621. .omap4 = {
  1622. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  1623. },
  1624. },
  1625. .slaves = omap44xx_i2c3_slaves,
  1626. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  1627. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1628. };
  1629. /* i2c4 */
  1630. static struct omap_hwmod omap44xx_i2c4_hwmod;
  1631. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  1632. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  1633. };
  1634. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  1635. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  1636. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  1637. };
  1638. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  1639. {
  1640. .pa_start = 0x48350000,
  1641. .pa_end = 0x483500ff,
  1642. .flags = ADDR_TYPE_RT
  1643. },
  1644. };
  1645. /* l4_per -> i2c4 */
  1646. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  1647. .master = &omap44xx_l4_per_hwmod,
  1648. .slave = &omap44xx_i2c4_hwmod,
  1649. .clk = "l4_div_ck",
  1650. .addr = omap44xx_i2c4_addrs,
  1651. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  1652. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1653. };
  1654. /* i2c4 slave ports */
  1655. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  1656. &omap44xx_l4_per__i2c4,
  1657. };
  1658. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1659. .name = "i2c4",
  1660. .class = &omap44xx_i2c_hwmod_class,
  1661. .flags = HWMOD_INIT_NO_RESET,
  1662. .mpu_irqs = omap44xx_i2c4_irqs,
  1663. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  1664. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  1665. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  1666. .main_clk = "i2c4_fck",
  1667. .prcm = {
  1668. .omap4 = {
  1669. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  1670. },
  1671. },
  1672. .slaves = omap44xx_i2c4_slaves,
  1673. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  1674. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1675. };
  1676. /*
  1677. * 'iva' class
  1678. * multi-standard video encoder/decoder hardware accelerator
  1679. */
  1680. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1681. .name = "iva",
  1682. };
  1683. /* iva */
  1684. static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
  1685. { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
  1686. { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
  1687. { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
  1688. };
  1689. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1690. { .name = "logic", .rst_shift = 2 },
  1691. };
  1692. static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
  1693. { .name = "seq0", .rst_shift = 0 },
  1694. };
  1695. static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
  1696. { .name = "seq1", .rst_shift = 1 },
  1697. };
  1698. /* iva master ports */
  1699. static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
  1700. &omap44xx_iva__l3_main_2,
  1701. &omap44xx_iva__l3_instr,
  1702. };
  1703. static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
  1704. {
  1705. .pa_start = 0x5a000000,
  1706. .pa_end = 0x5a07ffff,
  1707. .flags = ADDR_TYPE_RT
  1708. },
  1709. };
  1710. /* l3_main_2 -> iva */
  1711. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  1712. .master = &omap44xx_l3_main_2_hwmod,
  1713. .slave = &omap44xx_iva_hwmod,
  1714. .clk = "l3_div_ck",
  1715. .addr = omap44xx_iva_addrs,
  1716. .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
  1717. .user = OCP_USER_MPU,
  1718. };
  1719. /* iva slave ports */
  1720. static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
  1721. &omap44xx_dsp__iva,
  1722. &omap44xx_l3_main_2__iva,
  1723. };
  1724. /* Pseudo hwmod for reset control purpose only */
  1725. static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
  1726. .name = "iva_seq0",
  1727. .class = &omap44xx_iva_hwmod_class,
  1728. .flags = HWMOD_INIT_NO_RESET,
  1729. .rst_lines = omap44xx_iva_seq0_resets,
  1730. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
  1731. .prcm = {
  1732. .omap4 = {
  1733. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1734. },
  1735. },
  1736. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1737. };
  1738. /* Pseudo hwmod for reset control purpose only */
  1739. static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
  1740. .name = "iva_seq1",
  1741. .class = &omap44xx_iva_hwmod_class,
  1742. .flags = HWMOD_INIT_NO_RESET,
  1743. .rst_lines = omap44xx_iva_seq1_resets,
  1744. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
  1745. .prcm = {
  1746. .omap4 = {
  1747. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1748. },
  1749. },
  1750. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1751. };
  1752. static struct omap_hwmod omap44xx_iva_hwmod = {
  1753. .name = "iva",
  1754. .class = &omap44xx_iva_hwmod_class,
  1755. .mpu_irqs = omap44xx_iva_irqs,
  1756. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
  1757. .rst_lines = omap44xx_iva_resets,
  1758. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1759. .main_clk = "iva_fck",
  1760. .prcm = {
  1761. .omap4 = {
  1762. .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
  1763. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1764. },
  1765. },
  1766. .slaves = omap44xx_iva_slaves,
  1767. .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
  1768. .masters = omap44xx_iva_masters,
  1769. .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
  1770. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1771. };
  1772. /*
  1773. * 'mcspi' class
  1774. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  1775. * bus
  1776. */
  1777. static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
  1778. .rev_offs = 0x0000,
  1779. .sysc_offs = 0x0010,
  1780. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1781. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1782. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1783. SIDLE_SMART_WKUP),
  1784. .sysc_fields = &omap_hwmod_sysc_type2,
  1785. };
  1786. static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
  1787. .name = "mcspi",
  1788. .sysc = &omap44xx_mcspi_sysc,
  1789. };
  1790. /* mcspi1 */
  1791. static struct omap_hwmod omap44xx_mcspi1_hwmod;
  1792. static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
  1793. { .irq = 65 + OMAP44XX_IRQ_GIC_START },
  1794. };
  1795. static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
  1796. { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
  1797. { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
  1798. { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
  1799. { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
  1800. { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
  1801. { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
  1802. { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
  1803. { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
  1804. };
  1805. static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
  1806. {
  1807. .pa_start = 0x48098000,
  1808. .pa_end = 0x480981ff,
  1809. .flags = ADDR_TYPE_RT
  1810. },
  1811. };
  1812. /* l4_per -> mcspi1 */
  1813. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  1814. .master = &omap44xx_l4_per_hwmod,
  1815. .slave = &omap44xx_mcspi1_hwmod,
  1816. .clk = "l4_div_ck",
  1817. .addr = omap44xx_mcspi1_addrs,
  1818. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
  1819. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1820. };
  1821. /* mcspi1 slave ports */
  1822. static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
  1823. &omap44xx_l4_per__mcspi1,
  1824. };
  1825. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  1826. .name = "mcspi1",
  1827. .class = &omap44xx_mcspi_hwmod_class,
  1828. .mpu_irqs = omap44xx_mcspi1_irqs,
  1829. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
  1830. .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
  1831. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
  1832. .main_clk = "mcspi1_fck",
  1833. .prcm = {
  1834. .omap4 = {
  1835. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
  1836. },
  1837. },
  1838. .slaves = omap44xx_mcspi1_slaves,
  1839. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
  1840. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1841. };
  1842. /* mcspi2 */
  1843. static struct omap_hwmod omap44xx_mcspi2_hwmod;
  1844. static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
  1845. { .irq = 66 + OMAP44XX_IRQ_GIC_START },
  1846. };
  1847. static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
  1848. { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
  1849. { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
  1850. { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
  1851. { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
  1852. };
  1853. static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
  1854. {
  1855. .pa_start = 0x4809a000,
  1856. .pa_end = 0x4809a1ff,
  1857. .flags = ADDR_TYPE_RT
  1858. },
  1859. };
  1860. /* l4_per -> mcspi2 */
  1861. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  1862. .master = &omap44xx_l4_per_hwmod,
  1863. .slave = &omap44xx_mcspi2_hwmod,
  1864. .clk = "l4_div_ck",
  1865. .addr = omap44xx_mcspi2_addrs,
  1866. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
  1867. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1868. };
  1869. /* mcspi2 slave ports */
  1870. static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
  1871. &omap44xx_l4_per__mcspi2,
  1872. };
  1873. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  1874. .name = "mcspi2",
  1875. .class = &omap44xx_mcspi_hwmod_class,
  1876. .mpu_irqs = omap44xx_mcspi2_irqs,
  1877. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
  1878. .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
  1879. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
  1880. .main_clk = "mcspi2_fck",
  1881. .prcm = {
  1882. .omap4 = {
  1883. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
  1884. },
  1885. },
  1886. .slaves = omap44xx_mcspi2_slaves,
  1887. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
  1888. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1889. };
  1890. /* mcspi3 */
  1891. static struct omap_hwmod omap44xx_mcspi3_hwmod;
  1892. static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
  1893. { .irq = 91 + OMAP44XX_IRQ_GIC_START },
  1894. };
  1895. static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
  1896. { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
  1897. { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
  1898. { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
  1899. { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
  1900. };
  1901. static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
  1902. {
  1903. .pa_start = 0x480b8000,
  1904. .pa_end = 0x480b81ff,
  1905. .flags = ADDR_TYPE_RT
  1906. },
  1907. };
  1908. /* l4_per -> mcspi3 */
  1909. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  1910. .master = &omap44xx_l4_per_hwmod,
  1911. .slave = &omap44xx_mcspi3_hwmod,
  1912. .clk = "l4_div_ck",
  1913. .addr = omap44xx_mcspi3_addrs,
  1914. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
  1915. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1916. };
  1917. /* mcspi3 slave ports */
  1918. static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
  1919. &omap44xx_l4_per__mcspi3,
  1920. };
  1921. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  1922. .name = "mcspi3",
  1923. .class = &omap44xx_mcspi_hwmod_class,
  1924. .mpu_irqs = omap44xx_mcspi3_irqs,
  1925. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
  1926. .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
  1927. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
  1928. .main_clk = "mcspi3_fck",
  1929. .prcm = {
  1930. .omap4 = {
  1931. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
  1932. },
  1933. },
  1934. .slaves = omap44xx_mcspi3_slaves,
  1935. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
  1936. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1937. };
  1938. /* mcspi4 */
  1939. static struct omap_hwmod omap44xx_mcspi4_hwmod;
  1940. static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
  1941. { .irq = 48 + OMAP44XX_IRQ_GIC_START },
  1942. };
  1943. static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
  1944. { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
  1945. { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
  1946. };
  1947. static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
  1948. {
  1949. .pa_start = 0x480ba000,
  1950. .pa_end = 0x480ba1ff,
  1951. .flags = ADDR_TYPE_RT
  1952. },
  1953. };
  1954. /* l4_per -> mcspi4 */
  1955. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  1956. .master = &omap44xx_l4_per_hwmod,
  1957. .slave = &omap44xx_mcspi4_hwmod,
  1958. .clk = "l4_div_ck",
  1959. .addr = omap44xx_mcspi4_addrs,
  1960. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
  1961. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1962. };
  1963. /* mcspi4 slave ports */
  1964. static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
  1965. &omap44xx_l4_per__mcspi4,
  1966. };
  1967. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  1968. .name = "mcspi4",
  1969. .class = &omap44xx_mcspi_hwmod_class,
  1970. .mpu_irqs = omap44xx_mcspi4_irqs,
  1971. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
  1972. .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
  1973. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
  1974. .main_clk = "mcspi4_fck",
  1975. .prcm = {
  1976. .omap4 = {
  1977. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
  1978. },
  1979. },
  1980. .slaves = omap44xx_mcspi4_slaves,
  1981. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
  1982. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1983. };
  1984. /*
  1985. * 'mpu' class
  1986. * mpu sub-system
  1987. */
  1988. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1989. .name = "mpu",
  1990. };
  1991. /* mpu */
  1992. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  1993. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  1994. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  1995. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  1996. };
  1997. /* mpu master ports */
  1998. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  1999. &omap44xx_mpu__l3_main_1,
  2000. &omap44xx_mpu__l4_abe,
  2001. &omap44xx_mpu__dmm,
  2002. };
  2003. static struct omap_hwmod omap44xx_mpu_hwmod = {
  2004. .name = "mpu",
  2005. .class = &omap44xx_mpu_hwmod_class,
  2006. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  2007. .mpu_irqs = omap44xx_mpu_irqs,
  2008. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  2009. .main_clk = "dpll_mpu_m2_ck",
  2010. .prcm = {
  2011. .omap4 = {
  2012. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  2013. },
  2014. },
  2015. .masters = omap44xx_mpu_masters,
  2016. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  2017. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2018. };
  2019. /*
  2020. * 'smartreflex' class
  2021. * smartreflex module (monitor silicon performance and outputs a measure of
  2022. * performance error)
  2023. */
  2024. /* The IP is not compliant to type1 / type2 scheme */
  2025. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  2026. .sidle_shift = 24,
  2027. .enwkup_shift = 26,
  2028. };
  2029. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  2030. .sysc_offs = 0x0038,
  2031. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  2032. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2033. SIDLE_SMART_WKUP),
  2034. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  2035. };
  2036. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  2037. .name = "smartreflex",
  2038. .sysc = &omap44xx_smartreflex_sysc,
  2039. .rev = 2,
  2040. };
  2041. /* smartreflex_core */
  2042. static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
  2043. static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
  2044. { .irq = 19 + OMAP44XX_IRQ_GIC_START },
  2045. };
  2046. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  2047. {
  2048. .pa_start = 0x4a0dd000,
  2049. .pa_end = 0x4a0dd03f,
  2050. .flags = ADDR_TYPE_RT
  2051. },
  2052. };
  2053. /* l4_cfg -> smartreflex_core */
  2054. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  2055. .master = &omap44xx_l4_cfg_hwmod,
  2056. .slave = &omap44xx_smartreflex_core_hwmod,
  2057. .clk = "l4_div_ck",
  2058. .addr = omap44xx_smartreflex_core_addrs,
  2059. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
  2060. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2061. };
  2062. /* smartreflex_core slave ports */
  2063. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
  2064. &omap44xx_l4_cfg__smartreflex_core,
  2065. };
  2066. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  2067. .name = "smartreflex_core",
  2068. .class = &omap44xx_smartreflex_hwmod_class,
  2069. .mpu_irqs = omap44xx_smartreflex_core_irqs,
  2070. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
  2071. .main_clk = "smartreflex_core_fck",
  2072. .vdd_name = "core",
  2073. .prcm = {
  2074. .omap4 = {
  2075. .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
  2076. },
  2077. },
  2078. .slaves = omap44xx_smartreflex_core_slaves,
  2079. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
  2080. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2081. };
  2082. /* smartreflex_iva */
  2083. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
  2084. static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
  2085. { .irq = 102 + OMAP44XX_IRQ_GIC_START },
  2086. };
  2087. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  2088. {
  2089. .pa_start = 0x4a0db000,
  2090. .pa_end = 0x4a0db03f,
  2091. .flags = ADDR_TYPE_RT
  2092. },
  2093. };
  2094. /* l4_cfg -> smartreflex_iva */
  2095. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  2096. .master = &omap44xx_l4_cfg_hwmod,
  2097. .slave = &omap44xx_smartreflex_iva_hwmod,
  2098. .clk = "l4_div_ck",
  2099. .addr = omap44xx_smartreflex_iva_addrs,
  2100. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
  2101. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2102. };
  2103. /* smartreflex_iva slave ports */
  2104. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
  2105. &omap44xx_l4_cfg__smartreflex_iva,
  2106. };
  2107. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  2108. .name = "smartreflex_iva",
  2109. .class = &omap44xx_smartreflex_hwmod_class,
  2110. .mpu_irqs = omap44xx_smartreflex_iva_irqs,
  2111. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
  2112. .main_clk = "smartreflex_iva_fck",
  2113. .vdd_name = "iva",
  2114. .prcm = {
  2115. .omap4 = {
  2116. .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
  2117. },
  2118. },
  2119. .slaves = omap44xx_smartreflex_iva_slaves,
  2120. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
  2121. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2122. };
  2123. /* smartreflex_mpu */
  2124. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
  2125. static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
  2126. { .irq = 18 + OMAP44XX_IRQ_GIC_START },
  2127. };
  2128. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  2129. {
  2130. .pa_start = 0x4a0d9000,
  2131. .pa_end = 0x4a0d903f,
  2132. .flags = ADDR_TYPE_RT
  2133. },
  2134. };
  2135. /* l4_cfg -> smartreflex_mpu */
  2136. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  2137. .master = &omap44xx_l4_cfg_hwmod,
  2138. .slave = &omap44xx_smartreflex_mpu_hwmod,
  2139. .clk = "l4_div_ck",
  2140. .addr = omap44xx_smartreflex_mpu_addrs,
  2141. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
  2142. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2143. };
  2144. /* smartreflex_mpu slave ports */
  2145. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
  2146. &omap44xx_l4_cfg__smartreflex_mpu,
  2147. };
  2148. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  2149. .name = "smartreflex_mpu",
  2150. .class = &omap44xx_smartreflex_hwmod_class,
  2151. .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
  2152. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
  2153. .main_clk = "smartreflex_mpu_fck",
  2154. .vdd_name = "mpu",
  2155. .prcm = {
  2156. .omap4 = {
  2157. .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
  2158. },
  2159. },
  2160. .slaves = omap44xx_smartreflex_mpu_slaves,
  2161. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
  2162. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2163. };
  2164. /*
  2165. * 'spinlock' class
  2166. * spinlock provides hardware assistance for synchronizing the processes
  2167. * running on multiple processors
  2168. */
  2169. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  2170. .rev_offs = 0x0000,
  2171. .sysc_offs = 0x0010,
  2172. .syss_offs = 0x0014,
  2173. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2174. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  2175. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2176. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2177. SIDLE_SMART_WKUP),
  2178. .sysc_fields = &omap_hwmod_sysc_type1,
  2179. };
  2180. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  2181. .name = "spinlock",
  2182. .sysc = &omap44xx_spinlock_sysc,
  2183. };
  2184. /* spinlock */
  2185. static struct omap_hwmod omap44xx_spinlock_hwmod;
  2186. static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
  2187. {
  2188. .pa_start = 0x4a0f6000,
  2189. .pa_end = 0x4a0f6fff,
  2190. .flags = ADDR_TYPE_RT
  2191. },
  2192. };
  2193. /* l4_cfg -> spinlock */
  2194. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  2195. .master = &omap44xx_l4_cfg_hwmod,
  2196. .slave = &omap44xx_spinlock_hwmod,
  2197. .clk = "l4_div_ck",
  2198. .addr = omap44xx_spinlock_addrs,
  2199. .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
  2200. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2201. };
  2202. /* spinlock slave ports */
  2203. static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
  2204. &omap44xx_l4_cfg__spinlock,
  2205. };
  2206. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  2207. .name = "spinlock",
  2208. .class = &omap44xx_spinlock_hwmod_class,
  2209. .prcm = {
  2210. .omap4 = {
  2211. .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
  2212. },
  2213. },
  2214. .slaves = omap44xx_spinlock_slaves,
  2215. .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
  2216. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2217. };
  2218. /*
  2219. * 'timer' class
  2220. * general purpose timer module with accurate 1ms tick
  2221. * This class contains several variants: ['timer_1ms', 'timer']
  2222. */
  2223. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  2224. .rev_offs = 0x0000,
  2225. .sysc_offs = 0x0010,
  2226. .syss_offs = 0x0014,
  2227. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2228. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  2229. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2230. SYSS_HAS_RESET_STATUS),
  2231. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2232. .sysc_fields = &omap_hwmod_sysc_type1,
  2233. };
  2234. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  2235. .name = "timer",
  2236. .sysc = &omap44xx_timer_1ms_sysc,
  2237. };
  2238. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  2239. .rev_offs = 0x0000,
  2240. .sysc_offs = 0x0010,
  2241. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2242. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2243. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2244. SIDLE_SMART_WKUP),
  2245. .sysc_fields = &omap_hwmod_sysc_type2,
  2246. };
  2247. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  2248. .name = "timer",
  2249. .sysc = &omap44xx_timer_sysc,
  2250. };
  2251. /* timer1 */
  2252. static struct omap_hwmod omap44xx_timer1_hwmod;
  2253. static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
  2254. { .irq = 37 + OMAP44XX_IRQ_GIC_START },
  2255. };
  2256. static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
  2257. {
  2258. .pa_start = 0x4a318000,
  2259. .pa_end = 0x4a31807f,
  2260. .flags = ADDR_TYPE_RT
  2261. },
  2262. };
  2263. /* l4_wkup -> timer1 */
  2264. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  2265. .master = &omap44xx_l4_wkup_hwmod,
  2266. .slave = &omap44xx_timer1_hwmod,
  2267. .clk = "l4_wkup_clk_mux_ck",
  2268. .addr = omap44xx_timer1_addrs,
  2269. .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
  2270. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2271. };
  2272. /* timer1 slave ports */
  2273. static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
  2274. &omap44xx_l4_wkup__timer1,
  2275. };
  2276. static struct omap_hwmod omap44xx_timer1_hwmod = {
  2277. .name = "timer1",
  2278. .class = &omap44xx_timer_1ms_hwmod_class,
  2279. .mpu_irqs = omap44xx_timer1_irqs,
  2280. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
  2281. .main_clk = "timer1_fck",
  2282. .prcm = {
  2283. .omap4 = {
  2284. .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
  2285. },
  2286. },
  2287. .slaves = omap44xx_timer1_slaves,
  2288. .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
  2289. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2290. };
  2291. /* timer2 */
  2292. static struct omap_hwmod omap44xx_timer2_hwmod;
  2293. static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
  2294. { .irq = 38 + OMAP44XX_IRQ_GIC_START },
  2295. };
  2296. static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
  2297. {
  2298. .pa_start = 0x48032000,
  2299. .pa_end = 0x4803207f,
  2300. .flags = ADDR_TYPE_RT
  2301. },
  2302. };
  2303. /* l4_per -> timer2 */
  2304. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  2305. .master = &omap44xx_l4_per_hwmod,
  2306. .slave = &omap44xx_timer2_hwmod,
  2307. .clk = "l4_div_ck",
  2308. .addr = omap44xx_timer2_addrs,
  2309. .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
  2310. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2311. };
  2312. /* timer2 slave ports */
  2313. static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
  2314. &omap44xx_l4_per__timer2,
  2315. };
  2316. static struct omap_hwmod omap44xx_timer2_hwmod = {
  2317. .name = "timer2",
  2318. .class = &omap44xx_timer_1ms_hwmod_class,
  2319. .mpu_irqs = omap44xx_timer2_irqs,
  2320. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
  2321. .main_clk = "timer2_fck",
  2322. .prcm = {
  2323. .omap4 = {
  2324. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
  2325. },
  2326. },
  2327. .slaves = omap44xx_timer2_slaves,
  2328. .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
  2329. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2330. };
  2331. /* timer3 */
  2332. static struct omap_hwmod omap44xx_timer3_hwmod;
  2333. static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
  2334. { .irq = 39 + OMAP44XX_IRQ_GIC_START },
  2335. };
  2336. static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
  2337. {
  2338. .pa_start = 0x48034000,
  2339. .pa_end = 0x4803407f,
  2340. .flags = ADDR_TYPE_RT
  2341. },
  2342. };
  2343. /* l4_per -> timer3 */
  2344. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  2345. .master = &omap44xx_l4_per_hwmod,
  2346. .slave = &omap44xx_timer3_hwmod,
  2347. .clk = "l4_div_ck",
  2348. .addr = omap44xx_timer3_addrs,
  2349. .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
  2350. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2351. };
  2352. /* timer3 slave ports */
  2353. static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
  2354. &omap44xx_l4_per__timer3,
  2355. };
  2356. static struct omap_hwmod omap44xx_timer3_hwmod = {
  2357. .name = "timer3",
  2358. .class = &omap44xx_timer_hwmod_class,
  2359. .mpu_irqs = omap44xx_timer3_irqs,
  2360. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
  2361. .main_clk = "timer3_fck",
  2362. .prcm = {
  2363. .omap4 = {
  2364. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
  2365. },
  2366. },
  2367. .slaves = omap44xx_timer3_slaves,
  2368. .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
  2369. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2370. };
  2371. /* timer4 */
  2372. static struct omap_hwmod omap44xx_timer4_hwmod;
  2373. static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
  2374. { .irq = 40 + OMAP44XX_IRQ_GIC_START },
  2375. };
  2376. static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
  2377. {
  2378. .pa_start = 0x48036000,
  2379. .pa_end = 0x4803607f,
  2380. .flags = ADDR_TYPE_RT
  2381. },
  2382. };
  2383. /* l4_per -> timer4 */
  2384. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  2385. .master = &omap44xx_l4_per_hwmod,
  2386. .slave = &omap44xx_timer4_hwmod,
  2387. .clk = "l4_div_ck",
  2388. .addr = omap44xx_timer4_addrs,
  2389. .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
  2390. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2391. };
  2392. /* timer4 slave ports */
  2393. static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
  2394. &omap44xx_l4_per__timer4,
  2395. };
  2396. static struct omap_hwmod omap44xx_timer4_hwmod = {
  2397. .name = "timer4",
  2398. .class = &omap44xx_timer_hwmod_class,
  2399. .mpu_irqs = omap44xx_timer4_irqs,
  2400. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
  2401. .main_clk = "timer4_fck",
  2402. .prcm = {
  2403. .omap4 = {
  2404. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
  2405. },
  2406. },
  2407. .slaves = omap44xx_timer4_slaves,
  2408. .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
  2409. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2410. };
  2411. /* timer5 */
  2412. static struct omap_hwmod omap44xx_timer5_hwmod;
  2413. static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
  2414. { .irq = 41 + OMAP44XX_IRQ_GIC_START },
  2415. };
  2416. static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
  2417. {
  2418. .pa_start = 0x40138000,
  2419. .pa_end = 0x4013807f,
  2420. .flags = ADDR_TYPE_RT
  2421. },
  2422. };
  2423. /* l4_abe -> timer5 */
  2424. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  2425. .master = &omap44xx_l4_abe_hwmod,
  2426. .slave = &omap44xx_timer5_hwmod,
  2427. .clk = "ocp_abe_iclk",
  2428. .addr = omap44xx_timer5_addrs,
  2429. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
  2430. .user = OCP_USER_MPU,
  2431. };
  2432. static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
  2433. {
  2434. .pa_start = 0x49038000,
  2435. .pa_end = 0x4903807f,
  2436. .flags = ADDR_TYPE_RT
  2437. },
  2438. };
  2439. /* l4_abe -> timer5 (dma) */
  2440. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
  2441. .master = &omap44xx_l4_abe_hwmod,
  2442. .slave = &omap44xx_timer5_hwmod,
  2443. .clk = "ocp_abe_iclk",
  2444. .addr = omap44xx_timer5_dma_addrs,
  2445. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
  2446. .user = OCP_USER_SDMA,
  2447. };
  2448. /* timer5 slave ports */
  2449. static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
  2450. &omap44xx_l4_abe__timer5,
  2451. &omap44xx_l4_abe__timer5_dma,
  2452. };
  2453. static struct omap_hwmod omap44xx_timer5_hwmod = {
  2454. .name = "timer5",
  2455. .class = &omap44xx_timer_hwmod_class,
  2456. .mpu_irqs = omap44xx_timer5_irqs,
  2457. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
  2458. .main_clk = "timer5_fck",
  2459. .prcm = {
  2460. .omap4 = {
  2461. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
  2462. },
  2463. },
  2464. .slaves = omap44xx_timer5_slaves,
  2465. .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
  2466. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2467. };
  2468. /* timer6 */
  2469. static struct omap_hwmod omap44xx_timer6_hwmod;
  2470. static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
  2471. { .irq = 42 + OMAP44XX_IRQ_GIC_START },
  2472. };
  2473. static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
  2474. {
  2475. .pa_start = 0x4013a000,
  2476. .pa_end = 0x4013a07f,
  2477. .flags = ADDR_TYPE_RT
  2478. },
  2479. };
  2480. /* l4_abe -> timer6 */
  2481. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  2482. .master = &omap44xx_l4_abe_hwmod,
  2483. .slave = &omap44xx_timer6_hwmod,
  2484. .clk = "ocp_abe_iclk",
  2485. .addr = omap44xx_timer6_addrs,
  2486. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
  2487. .user = OCP_USER_MPU,
  2488. };
  2489. static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
  2490. {
  2491. .pa_start = 0x4903a000,
  2492. .pa_end = 0x4903a07f,
  2493. .flags = ADDR_TYPE_RT
  2494. },
  2495. };
  2496. /* l4_abe -> timer6 (dma) */
  2497. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
  2498. .master = &omap44xx_l4_abe_hwmod,
  2499. .slave = &omap44xx_timer6_hwmod,
  2500. .clk = "ocp_abe_iclk",
  2501. .addr = omap44xx_timer6_dma_addrs,
  2502. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
  2503. .user = OCP_USER_SDMA,
  2504. };
  2505. /* timer6 slave ports */
  2506. static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
  2507. &omap44xx_l4_abe__timer6,
  2508. &omap44xx_l4_abe__timer6_dma,
  2509. };
  2510. static struct omap_hwmod omap44xx_timer6_hwmod = {
  2511. .name = "timer6",
  2512. .class = &omap44xx_timer_hwmod_class,
  2513. .mpu_irqs = omap44xx_timer6_irqs,
  2514. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
  2515. .main_clk = "timer6_fck",
  2516. .prcm = {
  2517. .omap4 = {
  2518. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
  2519. },
  2520. },
  2521. .slaves = omap44xx_timer6_slaves,
  2522. .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
  2523. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2524. };
  2525. /* timer7 */
  2526. static struct omap_hwmod omap44xx_timer7_hwmod;
  2527. static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
  2528. { .irq = 43 + OMAP44XX_IRQ_GIC_START },
  2529. };
  2530. static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
  2531. {
  2532. .pa_start = 0x4013c000,
  2533. .pa_end = 0x4013c07f,
  2534. .flags = ADDR_TYPE_RT
  2535. },
  2536. };
  2537. /* l4_abe -> timer7 */
  2538. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  2539. .master = &omap44xx_l4_abe_hwmod,
  2540. .slave = &omap44xx_timer7_hwmod,
  2541. .clk = "ocp_abe_iclk",
  2542. .addr = omap44xx_timer7_addrs,
  2543. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
  2544. .user = OCP_USER_MPU,
  2545. };
  2546. static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
  2547. {
  2548. .pa_start = 0x4903c000,
  2549. .pa_end = 0x4903c07f,
  2550. .flags = ADDR_TYPE_RT
  2551. },
  2552. };
  2553. /* l4_abe -> timer7 (dma) */
  2554. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
  2555. .master = &omap44xx_l4_abe_hwmod,
  2556. .slave = &omap44xx_timer7_hwmod,
  2557. .clk = "ocp_abe_iclk",
  2558. .addr = omap44xx_timer7_dma_addrs,
  2559. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
  2560. .user = OCP_USER_SDMA,
  2561. };
  2562. /* timer7 slave ports */
  2563. static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
  2564. &omap44xx_l4_abe__timer7,
  2565. &omap44xx_l4_abe__timer7_dma,
  2566. };
  2567. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2568. .name = "timer7",
  2569. .class = &omap44xx_timer_hwmod_class,
  2570. .mpu_irqs = omap44xx_timer7_irqs,
  2571. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
  2572. .main_clk = "timer7_fck",
  2573. .prcm = {
  2574. .omap4 = {
  2575. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
  2576. },
  2577. },
  2578. .slaves = omap44xx_timer7_slaves,
  2579. .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
  2580. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2581. };
  2582. /* timer8 */
  2583. static struct omap_hwmod omap44xx_timer8_hwmod;
  2584. static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
  2585. { .irq = 44 + OMAP44XX_IRQ_GIC_START },
  2586. };
  2587. static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
  2588. {
  2589. .pa_start = 0x4013e000,
  2590. .pa_end = 0x4013e07f,
  2591. .flags = ADDR_TYPE_RT
  2592. },
  2593. };
  2594. /* l4_abe -> timer8 */
  2595. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  2596. .master = &omap44xx_l4_abe_hwmod,
  2597. .slave = &omap44xx_timer8_hwmod,
  2598. .clk = "ocp_abe_iclk",
  2599. .addr = omap44xx_timer8_addrs,
  2600. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
  2601. .user = OCP_USER_MPU,
  2602. };
  2603. static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
  2604. {
  2605. .pa_start = 0x4903e000,
  2606. .pa_end = 0x4903e07f,
  2607. .flags = ADDR_TYPE_RT
  2608. },
  2609. };
  2610. /* l4_abe -> timer8 (dma) */
  2611. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
  2612. .master = &omap44xx_l4_abe_hwmod,
  2613. .slave = &omap44xx_timer8_hwmod,
  2614. .clk = "ocp_abe_iclk",
  2615. .addr = omap44xx_timer8_dma_addrs,
  2616. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
  2617. .user = OCP_USER_SDMA,
  2618. };
  2619. /* timer8 slave ports */
  2620. static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
  2621. &omap44xx_l4_abe__timer8,
  2622. &omap44xx_l4_abe__timer8_dma,
  2623. };
  2624. static struct omap_hwmod omap44xx_timer8_hwmod = {
  2625. .name = "timer8",
  2626. .class = &omap44xx_timer_hwmod_class,
  2627. .mpu_irqs = omap44xx_timer8_irqs,
  2628. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
  2629. .main_clk = "timer8_fck",
  2630. .prcm = {
  2631. .omap4 = {
  2632. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
  2633. },
  2634. },
  2635. .slaves = omap44xx_timer8_slaves,
  2636. .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
  2637. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2638. };
  2639. /* timer9 */
  2640. static struct omap_hwmod omap44xx_timer9_hwmod;
  2641. static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
  2642. { .irq = 45 + OMAP44XX_IRQ_GIC_START },
  2643. };
  2644. static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
  2645. {
  2646. .pa_start = 0x4803e000,
  2647. .pa_end = 0x4803e07f,
  2648. .flags = ADDR_TYPE_RT
  2649. },
  2650. };
  2651. /* l4_per -> timer9 */
  2652. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  2653. .master = &omap44xx_l4_per_hwmod,
  2654. .slave = &omap44xx_timer9_hwmod,
  2655. .clk = "l4_div_ck",
  2656. .addr = omap44xx_timer9_addrs,
  2657. .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
  2658. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2659. };
  2660. /* timer9 slave ports */
  2661. static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
  2662. &omap44xx_l4_per__timer9,
  2663. };
  2664. static struct omap_hwmod omap44xx_timer9_hwmod = {
  2665. .name = "timer9",
  2666. .class = &omap44xx_timer_hwmod_class,
  2667. .mpu_irqs = omap44xx_timer9_irqs,
  2668. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
  2669. .main_clk = "timer9_fck",
  2670. .prcm = {
  2671. .omap4 = {
  2672. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
  2673. },
  2674. },
  2675. .slaves = omap44xx_timer9_slaves,
  2676. .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
  2677. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2678. };
  2679. /* timer10 */
  2680. static struct omap_hwmod omap44xx_timer10_hwmod;
  2681. static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
  2682. { .irq = 46 + OMAP44XX_IRQ_GIC_START },
  2683. };
  2684. static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
  2685. {
  2686. .pa_start = 0x48086000,
  2687. .pa_end = 0x4808607f,
  2688. .flags = ADDR_TYPE_RT
  2689. },
  2690. };
  2691. /* l4_per -> timer10 */
  2692. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  2693. .master = &omap44xx_l4_per_hwmod,
  2694. .slave = &omap44xx_timer10_hwmod,
  2695. .clk = "l4_div_ck",
  2696. .addr = omap44xx_timer10_addrs,
  2697. .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
  2698. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2699. };
  2700. /* timer10 slave ports */
  2701. static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
  2702. &omap44xx_l4_per__timer10,
  2703. };
  2704. static struct omap_hwmod omap44xx_timer10_hwmod = {
  2705. .name = "timer10",
  2706. .class = &omap44xx_timer_1ms_hwmod_class,
  2707. .mpu_irqs = omap44xx_timer10_irqs,
  2708. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
  2709. .main_clk = "timer10_fck",
  2710. .prcm = {
  2711. .omap4 = {
  2712. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
  2713. },
  2714. },
  2715. .slaves = omap44xx_timer10_slaves,
  2716. .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
  2717. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2718. };
  2719. /* timer11 */
  2720. static struct omap_hwmod omap44xx_timer11_hwmod;
  2721. static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
  2722. { .irq = 47 + OMAP44XX_IRQ_GIC_START },
  2723. };
  2724. static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
  2725. {
  2726. .pa_start = 0x48088000,
  2727. .pa_end = 0x4808807f,
  2728. .flags = ADDR_TYPE_RT
  2729. },
  2730. };
  2731. /* l4_per -> timer11 */
  2732. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  2733. .master = &omap44xx_l4_per_hwmod,
  2734. .slave = &omap44xx_timer11_hwmod,
  2735. .clk = "l4_div_ck",
  2736. .addr = omap44xx_timer11_addrs,
  2737. .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
  2738. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2739. };
  2740. /* timer11 slave ports */
  2741. static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
  2742. &omap44xx_l4_per__timer11,
  2743. };
  2744. static struct omap_hwmod omap44xx_timer11_hwmod = {
  2745. .name = "timer11",
  2746. .class = &omap44xx_timer_hwmod_class,
  2747. .mpu_irqs = omap44xx_timer11_irqs,
  2748. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
  2749. .main_clk = "timer11_fck",
  2750. .prcm = {
  2751. .omap4 = {
  2752. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
  2753. },
  2754. },
  2755. .slaves = omap44xx_timer11_slaves,
  2756. .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
  2757. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2758. };
  2759. /*
  2760. * 'uart' class
  2761. * universal asynchronous receiver/transmitter (uart)
  2762. */
  2763. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  2764. .rev_offs = 0x0050,
  2765. .sysc_offs = 0x0054,
  2766. .syss_offs = 0x0058,
  2767. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2768. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2769. SYSS_HAS_RESET_STATUS),
  2770. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2771. SIDLE_SMART_WKUP),
  2772. .sysc_fields = &omap_hwmod_sysc_type1,
  2773. };
  2774. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  2775. .name = "uart",
  2776. .sysc = &omap44xx_uart_sysc,
  2777. };
  2778. /* uart1 */
  2779. static struct omap_hwmod omap44xx_uart1_hwmod;
  2780. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  2781. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  2782. };
  2783. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  2784. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  2785. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  2786. };
  2787. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  2788. {
  2789. .pa_start = 0x4806a000,
  2790. .pa_end = 0x4806a0ff,
  2791. .flags = ADDR_TYPE_RT
  2792. },
  2793. };
  2794. /* l4_per -> uart1 */
  2795. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  2796. .master = &omap44xx_l4_per_hwmod,
  2797. .slave = &omap44xx_uart1_hwmod,
  2798. .clk = "l4_div_ck",
  2799. .addr = omap44xx_uart1_addrs,
  2800. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  2801. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2802. };
  2803. /* uart1 slave ports */
  2804. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  2805. &omap44xx_l4_per__uart1,
  2806. };
  2807. static struct omap_hwmod omap44xx_uart1_hwmod = {
  2808. .name = "uart1",
  2809. .class = &omap44xx_uart_hwmod_class,
  2810. .mpu_irqs = omap44xx_uart1_irqs,
  2811. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  2812. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  2813. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  2814. .main_clk = "uart1_fck",
  2815. .prcm = {
  2816. .omap4 = {
  2817. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  2818. },
  2819. },
  2820. .slaves = omap44xx_uart1_slaves,
  2821. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  2822. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2823. };
  2824. /* uart2 */
  2825. static struct omap_hwmod omap44xx_uart2_hwmod;
  2826. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  2827. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  2828. };
  2829. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  2830. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  2831. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  2832. };
  2833. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  2834. {
  2835. .pa_start = 0x4806c000,
  2836. .pa_end = 0x4806c0ff,
  2837. .flags = ADDR_TYPE_RT
  2838. },
  2839. };
  2840. /* l4_per -> uart2 */
  2841. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  2842. .master = &omap44xx_l4_per_hwmod,
  2843. .slave = &omap44xx_uart2_hwmod,
  2844. .clk = "l4_div_ck",
  2845. .addr = omap44xx_uart2_addrs,
  2846. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  2847. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2848. };
  2849. /* uart2 slave ports */
  2850. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  2851. &omap44xx_l4_per__uart2,
  2852. };
  2853. static struct omap_hwmod omap44xx_uart2_hwmod = {
  2854. .name = "uart2",
  2855. .class = &omap44xx_uart_hwmod_class,
  2856. .mpu_irqs = omap44xx_uart2_irqs,
  2857. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  2858. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  2859. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  2860. .main_clk = "uart2_fck",
  2861. .prcm = {
  2862. .omap4 = {
  2863. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  2864. },
  2865. },
  2866. .slaves = omap44xx_uart2_slaves,
  2867. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  2868. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2869. };
  2870. /* uart3 */
  2871. static struct omap_hwmod omap44xx_uart3_hwmod;
  2872. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  2873. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  2874. };
  2875. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  2876. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  2877. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  2878. };
  2879. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  2880. {
  2881. .pa_start = 0x48020000,
  2882. .pa_end = 0x480200ff,
  2883. .flags = ADDR_TYPE_RT
  2884. },
  2885. };
  2886. /* l4_per -> uart3 */
  2887. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  2888. .master = &omap44xx_l4_per_hwmod,
  2889. .slave = &omap44xx_uart3_hwmod,
  2890. .clk = "l4_div_ck",
  2891. .addr = omap44xx_uart3_addrs,
  2892. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  2893. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2894. };
  2895. /* uart3 slave ports */
  2896. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  2897. &omap44xx_l4_per__uart3,
  2898. };
  2899. static struct omap_hwmod omap44xx_uart3_hwmod = {
  2900. .name = "uart3",
  2901. .class = &omap44xx_uart_hwmod_class,
  2902. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  2903. .mpu_irqs = omap44xx_uart3_irqs,
  2904. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  2905. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  2906. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  2907. .main_clk = "uart3_fck",
  2908. .prcm = {
  2909. .omap4 = {
  2910. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  2911. },
  2912. },
  2913. .slaves = omap44xx_uart3_slaves,
  2914. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  2915. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2916. };
  2917. /* uart4 */
  2918. static struct omap_hwmod omap44xx_uart4_hwmod;
  2919. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  2920. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  2921. };
  2922. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  2923. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  2924. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  2925. };
  2926. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  2927. {
  2928. .pa_start = 0x4806e000,
  2929. .pa_end = 0x4806e0ff,
  2930. .flags = ADDR_TYPE_RT
  2931. },
  2932. };
  2933. /* l4_per -> uart4 */
  2934. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  2935. .master = &omap44xx_l4_per_hwmod,
  2936. .slave = &omap44xx_uart4_hwmod,
  2937. .clk = "l4_div_ck",
  2938. .addr = omap44xx_uart4_addrs,
  2939. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  2940. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2941. };
  2942. /* uart4 slave ports */
  2943. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  2944. &omap44xx_l4_per__uart4,
  2945. };
  2946. static struct omap_hwmod omap44xx_uart4_hwmod = {
  2947. .name = "uart4",
  2948. .class = &omap44xx_uart_hwmod_class,
  2949. .mpu_irqs = omap44xx_uart4_irqs,
  2950. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  2951. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  2952. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  2953. .main_clk = "uart4_fck",
  2954. .prcm = {
  2955. .omap4 = {
  2956. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  2957. },
  2958. },
  2959. .slaves = omap44xx_uart4_slaves,
  2960. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  2961. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2962. };
  2963. /*
  2964. * 'wd_timer' class
  2965. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  2966. * overflow condition
  2967. */
  2968. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  2969. .rev_offs = 0x0000,
  2970. .sysc_offs = 0x0010,
  2971. .syss_offs = 0x0014,
  2972. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2973. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2974. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2975. SIDLE_SMART_WKUP),
  2976. .sysc_fields = &omap_hwmod_sysc_type1,
  2977. };
  2978. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  2979. .name = "wd_timer",
  2980. .sysc = &omap44xx_wd_timer_sysc,
  2981. .pre_shutdown = &omap2_wd_timer_disable,
  2982. };
  2983. /* wd_timer2 */
  2984. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  2985. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  2986. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  2987. };
  2988. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  2989. {
  2990. .pa_start = 0x4a314000,
  2991. .pa_end = 0x4a31407f,
  2992. .flags = ADDR_TYPE_RT
  2993. },
  2994. };
  2995. /* l4_wkup -> wd_timer2 */
  2996. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  2997. .master = &omap44xx_l4_wkup_hwmod,
  2998. .slave = &omap44xx_wd_timer2_hwmod,
  2999. .clk = "l4_wkup_clk_mux_ck",
  3000. .addr = omap44xx_wd_timer2_addrs,
  3001. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  3002. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3003. };
  3004. /* wd_timer2 slave ports */
  3005. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  3006. &omap44xx_l4_wkup__wd_timer2,
  3007. };
  3008. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  3009. .name = "wd_timer2",
  3010. .class = &omap44xx_wd_timer_hwmod_class,
  3011. .mpu_irqs = omap44xx_wd_timer2_irqs,
  3012. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  3013. .main_clk = "wd_timer2_fck",
  3014. .prcm = {
  3015. .omap4 = {
  3016. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  3017. },
  3018. },
  3019. .slaves = omap44xx_wd_timer2_slaves,
  3020. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  3021. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3022. };
  3023. /* wd_timer3 */
  3024. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  3025. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  3026. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  3027. };
  3028. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  3029. {
  3030. .pa_start = 0x40130000,
  3031. .pa_end = 0x4013007f,
  3032. .flags = ADDR_TYPE_RT
  3033. },
  3034. };
  3035. /* l4_abe -> wd_timer3 */
  3036. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  3037. .master = &omap44xx_l4_abe_hwmod,
  3038. .slave = &omap44xx_wd_timer3_hwmod,
  3039. .clk = "ocp_abe_iclk",
  3040. .addr = omap44xx_wd_timer3_addrs,
  3041. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  3042. .user = OCP_USER_MPU,
  3043. };
  3044. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  3045. {
  3046. .pa_start = 0x49030000,
  3047. .pa_end = 0x4903007f,
  3048. .flags = ADDR_TYPE_RT
  3049. },
  3050. };
  3051. /* l4_abe -> wd_timer3 (dma) */
  3052. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  3053. .master = &omap44xx_l4_abe_hwmod,
  3054. .slave = &omap44xx_wd_timer3_hwmod,
  3055. .clk = "ocp_abe_iclk",
  3056. .addr = omap44xx_wd_timer3_dma_addrs,
  3057. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  3058. .user = OCP_USER_SDMA,
  3059. };
  3060. /* wd_timer3 slave ports */
  3061. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  3062. &omap44xx_l4_abe__wd_timer3,
  3063. &omap44xx_l4_abe__wd_timer3_dma,
  3064. };
  3065. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  3066. .name = "wd_timer3",
  3067. .class = &omap44xx_wd_timer_hwmod_class,
  3068. .mpu_irqs = omap44xx_wd_timer3_irqs,
  3069. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  3070. .main_clk = "wd_timer3_fck",
  3071. .prcm = {
  3072. .omap4 = {
  3073. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  3074. },
  3075. },
  3076. .slaves = omap44xx_wd_timer3_slaves,
  3077. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  3078. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3079. };
  3080. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  3081. /* dmm class */
  3082. &omap44xx_dmm_hwmod,
  3083. /* emif_fw class */
  3084. &omap44xx_emif_fw_hwmod,
  3085. /* l3 class */
  3086. &omap44xx_l3_instr_hwmod,
  3087. &omap44xx_l3_main_1_hwmod,
  3088. &omap44xx_l3_main_2_hwmod,
  3089. &omap44xx_l3_main_3_hwmod,
  3090. /* l4 class */
  3091. &omap44xx_l4_abe_hwmod,
  3092. &omap44xx_l4_cfg_hwmod,
  3093. &omap44xx_l4_per_hwmod,
  3094. &omap44xx_l4_wkup_hwmod,
  3095. /* mpu_bus class */
  3096. &omap44xx_mpu_private_hwmod,
  3097. /* dma class */
  3098. &omap44xx_dma_system_hwmod,
  3099. /* dsp class */
  3100. &omap44xx_dsp_hwmod,
  3101. &omap44xx_dsp_c0_hwmod,
  3102. /* dss class */
  3103. &omap44xx_dss_hwmod,
  3104. &omap44xx_dss_dispc_hwmod,
  3105. &omap44xx_dss_dsi1_hwmod,
  3106. &omap44xx_dss_dsi2_hwmod,
  3107. &omap44xx_dss_hdmi_hwmod,
  3108. &omap44xx_dss_rfbi_hwmod,
  3109. &omap44xx_dss_venc_hwmod,
  3110. /* gpio class */
  3111. &omap44xx_gpio1_hwmod,
  3112. &omap44xx_gpio2_hwmod,
  3113. &omap44xx_gpio3_hwmod,
  3114. &omap44xx_gpio4_hwmod,
  3115. &omap44xx_gpio5_hwmod,
  3116. &omap44xx_gpio6_hwmod,
  3117. /* i2c class */
  3118. &omap44xx_i2c1_hwmod,
  3119. &omap44xx_i2c2_hwmod,
  3120. &omap44xx_i2c3_hwmod,
  3121. &omap44xx_i2c4_hwmod,
  3122. /* iva class */
  3123. &omap44xx_iva_hwmod,
  3124. &omap44xx_iva_seq0_hwmod,
  3125. &omap44xx_iva_seq1_hwmod,
  3126. /* mcspi class */
  3127. &omap44xx_mcspi1_hwmod,
  3128. &omap44xx_mcspi2_hwmod,
  3129. &omap44xx_mcspi3_hwmod,
  3130. &omap44xx_mcspi4_hwmod,
  3131. /* mpu class */
  3132. &omap44xx_mpu_hwmod,
  3133. /* smartreflex class */
  3134. &omap44xx_smartreflex_core_hwmod,
  3135. &omap44xx_smartreflex_iva_hwmod,
  3136. &omap44xx_smartreflex_mpu_hwmod,
  3137. /* spinlock class */
  3138. &omap44xx_spinlock_hwmod,
  3139. /* timer class */
  3140. &omap44xx_timer1_hwmod,
  3141. &omap44xx_timer2_hwmod,
  3142. &omap44xx_timer3_hwmod,
  3143. &omap44xx_timer4_hwmod,
  3144. &omap44xx_timer5_hwmod,
  3145. &omap44xx_timer6_hwmod,
  3146. &omap44xx_timer7_hwmod,
  3147. &omap44xx_timer8_hwmod,
  3148. &omap44xx_timer9_hwmod,
  3149. &omap44xx_timer10_hwmod,
  3150. &omap44xx_timer11_hwmod,
  3151. /* uart class */
  3152. &omap44xx_uart1_hwmod,
  3153. &omap44xx_uart2_hwmod,
  3154. &omap44xx_uart3_hwmod,
  3155. &omap44xx_uart4_hwmod,
  3156. /* wd_timer class */
  3157. &omap44xx_wd_timer2_hwmod,
  3158. &omap44xx_wd_timer3_hwmod,
  3159. NULL,
  3160. };
  3161. int __init omap44xx_hwmod_init(void)
  3162. {
  3163. return omap_hwmod_init(omap44xx_hwmods);
  3164. }