omap_hwmod_33xx_data.c 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412
  1. /*
  2. * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips
  3. *
  4. * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This file is automatically generated from the AM33XX hardware databases.
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation version 2.
  10. *
  11. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  12. * kind, whether express or implied; without even the implied warranty
  13. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #include <plat/omap_hwmod.h>
  17. #include <plat/cpu.h>
  18. #include <linux/platform_data/gpio-omap.h>
  19. #include <linux/platform_data/spi-omap2-mcspi.h>
  20. #include <plat/dma.h>
  21. #include <plat/mmc.h>
  22. #include <plat/i2c.h>
  23. #include "omap_hwmod_common_data.h"
  24. #include "control.h"
  25. #include "cm33xx.h"
  26. #include "prm33xx.h"
  27. #include "prm-regbits-33xx.h"
  28. /*
  29. * IP blocks
  30. */
  31. /*
  32. * 'emif_fw' class
  33. * instance(s): emif_fw
  34. */
  35. static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = {
  36. .name = "emif_fw",
  37. };
  38. /* emif_fw */
  39. static struct omap_hwmod am33xx_emif_fw_hwmod = {
  40. .name = "emif_fw",
  41. .class = &am33xx_emif_fw_hwmod_class,
  42. .clkdm_name = "l4fw_clkdm",
  43. .main_clk = "l4fw_gclk",
  44. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  45. .prcm = {
  46. .omap4 = {
  47. .clkctrl_offs = AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET,
  48. .modulemode = MODULEMODE_SWCTRL,
  49. },
  50. },
  51. };
  52. /*
  53. * 'emif' class
  54. * instance(s): emif
  55. */
  56. static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {
  57. .rev_offs = 0x0000,
  58. };
  59. static struct omap_hwmod_class am33xx_emif_hwmod_class = {
  60. .name = "emif",
  61. .sysc = &am33xx_emif_sysc,
  62. };
  63. static struct omap_hwmod_irq_info am33xx_emif_irqs[] = {
  64. { .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, },
  65. { .irq = -1 },
  66. };
  67. /* emif */
  68. static struct omap_hwmod am33xx_emif_hwmod = {
  69. .name = "emif",
  70. .class = &am33xx_emif_hwmod_class,
  71. .clkdm_name = "l3_clkdm",
  72. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  73. .mpu_irqs = am33xx_emif_irqs,
  74. .main_clk = "dpll_ddr_m2_div2_ck",
  75. .prcm = {
  76. .omap4 = {
  77. .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,
  78. .modulemode = MODULEMODE_SWCTRL,
  79. },
  80. },
  81. };
  82. /*
  83. * 'l3' class
  84. * instance(s): l3_main, l3_s, l3_instr
  85. */
  86. static struct omap_hwmod_class am33xx_l3_hwmod_class = {
  87. .name = "l3",
  88. };
  89. /* l3_main (l3_fast) */
  90. static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = {
  91. { .name = "l3debug", .irq = 9 + OMAP_INTC_START, },
  92. { .name = "l3appint", .irq = 10 + OMAP_INTC_START, },
  93. { .irq = -1 },
  94. };
  95. static struct omap_hwmod am33xx_l3_main_hwmod = {
  96. .name = "l3_main",
  97. .class = &am33xx_l3_hwmod_class,
  98. .clkdm_name = "l3_clkdm",
  99. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  100. .mpu_irqs = am33xx_l3_main_irqs,
  101. .main_clk = "l3_gclk",
  102. .prcm = {
  103. .omap4 = {
  104. .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET,
  105. .modulemode = MODULEMODE_SWCTRL,
  106. },
  107. },
  108. };
  109. /* l3_s */
  110. static struct omap_hwmod am33xx_l3_s_hwmod = {
  111. .name = "l3_s",
  112. .class = &am33xx_l3_hwmod_class,
  113. .clkdm_name = "l3s_clkdm",
  114. };
  115. /* l3_instr */
  116. static struct omap_hwmod am33xx_l3_instr_hwmod = {
  117. .name = "l3_instr",
  118. .class = &am33xx_l3_hwmod_class,
  119. .clkdm_name = "l3_clkdm",
  120. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  121. .main_clk = "l3_gclk",
  122. .prcm = {
  123. .omap4 = {
  124. .clkctrl_offs = AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET,
  125. .modulemode = MODULEMODE_SWCTRL,
  126. },
  127. },
  128. };
  129. /*
  130. * 'l4' class
  131. * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw
  132. */
  133. static struct omap_hwmod_class am33xx_l4_hwmod_class = {
  134. .name = "l4",
  135. };
  136. /* l4_ls */
  137. static struct omap_hwmod am33xx_l4_ls_hwmod = {
  138. .name = "l4_ls",
  139. .class = &am33xx_l4_hwmod_class,
  140. .clkdm_name = "l4ls_clkdm",
  141. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  142. .main_clk = "l4ls_gclk",
  143. .prcm = {
  144. .omap4 = {
  145. .clkctrl_offs = AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET,
  146. .modulemode = MODULEMODE_SWCTRL,
  147. },
  148. },
  149. };
  150. /* l4_hs */
  151. static struct omap_hwmod am33xx_l4_hs_hwmod = {
  152. .name = "l4_hs",
  153. .class = &am33xx_l4_hwmod_class,
  154. .clkdm_name = "l4hs_clkdm",
  155. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  156. .main_clk = "l4hs_gclk",
  157. .prcm = {
  158. .omap4 = {
  159. .clkctrl_offs = AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET,
  160. .modulemode = MODULEMODE_SWCTRL,
  161. },
  162. },
  163. };
  164. /* l4_wkup */
  165. static struct omap_hwmod am33xx_l4_wkup_hwmod = {
  166. .name = "l4_wkup",
  167. .class = &am33xx_l4_hwmod_class,
  168. .clkdm_name = "l4_wkup_clkdm",
  169. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  170. .prcm = {
  171. .omap4 = {
  172. .clkctrl_offs = AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
  173. .modulemode = MODULEMODE_SWCTRL,
  174. },
  175. },
  176. };
  177. /* l4_fw */
  178. static struct omap_hwmod am33xx_l4_fw_hwmod = {
  179. .name = "l4_fw",
  180. .class = &am33xx_l4_hwmod_class,
  181. .clkdm_name = "l4fw_clkdm",
  182. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  183. .prcm = {
  184. .omap4 = {
  185. .clkctrl_offs = AM33XX_CM_PER_L4FW_CLKCTRL_OFFSET,
  186. .modulemode = MODULEMODE_SWCTRL,
  187. },
  188. },
  189. };
  190. /*
  191. * 'mpu' class
  192. */
  193. static struct omap_hwmod_class am33xx_mpu_hwmod_class = {
  194. .name = "mpu",
  195. };
  196. /* mpu */
  197. static struct omap_hwmod_irq_info am33xx_mpu_irqs[] = {
  198. { .name = "emuint", .irq = 0 + OMAP_INTC_START, },
  199. { .name = "commtx", .irq = 1 + OMAP_INTC_START, },
  200. { .name = "commrx", .irq = 2 + OMAP_INTC_START, },
  201. { .name = "bench", .irq = 3 + OMAP_INTC_START, },
  202. { .irq = -1 },
  203. };
  204. static struct omap_hwmod am33xx_mpu_hwmod = {
  205. .name = "mpu",
  206. .class = &am33xx_mpu_hwmod_class,
  207. .clkdm_name = "mpu_clkdm",
  208. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  209. .mpu_irqs = am33xx_mpu_irqs,
  210. .main_clk = "dpll_mpu_m2_ck",
  211. .prcm = {
  212. .omap4 = {
  213. .clkctrl_offs = AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  214. .modulemode = MODULEMODE_SWCTRL,
  215. },
  216. },
  217. };
  218. /*
  219. * 'wakeup m3' class
  220. * Wakeup controller sub-system under wakeup domain
  221. */
  222. static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {
  223. .name = "wkup_m3",
  224. };
  225. static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
  226. { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
  227. };
  228. static struct omap_hwmod_irq_info am33xx_wkup_m3_irqs[] = {
  229. { .name = "txev", .irq = 78 + OMAP_INTC_START, },
  230. { .irq = -1 },
  231. };
  232. /* wkup_m3 */
  233. static struct omap_hwmod am33xx_wkup_m3_hwmod = {
  234. .name = "wkup_m3",
  235. .class = &am33xx_wkup_m3_hwmod_class,
  236. .clkdm_name = "l4_wkup_aon_clkdm",
  237. .flags = HWMOD_INIT_NO_RESET, /* Keep hardreset asserted */
  238. .mpu_irqs = am33xx_wkup_m3_irqs,
  239. .main_clk = "dpll_core_m4_div2_ck",
  240. .prcm = {
  241. .omap4 = {
  242. .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
  243. .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET,
  244. .modulemode = MODULEMODE_SWCTRL,
  245. },
  246. },
  247. .rst_lines = am33xx_wkup_m3_resets,
  248. .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
  249. };
  250. /*
  251. * 'pru-icss' class
  252. * Programmable Real-Time Unit and Industrial Communication Subsystem
  253. */
  254. static struct omap_hwmod_class am33xx_pruss_hwmod_class = {
  255. .name = "pruss",
  256. };
  257. static struct omap_hwmod_rst_info am33xx_pruss_resets[] = {
  258. { .name = "pruss", .rst_shift = 1 },
  259. };
  260. static struct omap_hwmod_irq_info am33xx_pruss_irqs[] = {
  261. { .name = "evtout0", .irq = 20 + OMAP_INTC_START, },
  262. { .name = "evtout1", .irq = 21 + OMAP_INTC_START, },
  263. { .name = "evtout2", .irq = 22 + OMAP_INTC_START, },
  264. { .name = "evtout3", .irq = 23 + OMAP_INTC_START, },
  265. { .name = "evtout4", .irq = 24 + OMAP_INTC_START, },
  266. { .name = "evtout5", .irq = 25 + OMAP_INTC_START, },
  267. { .name = "evtout6", .irq = 26 + OMAP_INTC_START, },
  268. { .name = "evtout7", .irq = 27 + OMAP_INTC_START, },
  269. { .irq = -1 },
  270. };
  271. /* pru-icss */
  272. /* Pseudo hwmod for reset control purpose only */
  273. static struct omap_hwmod am33xx_pruss_hwmod = {
  274. .name = "pruss",
  275. .class = &am33xx_pruss_hwmod_class,
  276. .clkdm_name = "pruss_ocp_clkdm",
  277. .mpu_irqs = am33xx_pruss_irqs,
  278. .main_clk = "pruss_ocp_gclk",
  279. .prcm = {
  280. .omap4 = {
  281. .clkctrl_offs = AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET,
  282. .rstctrl_offs = AM33XX_RM_PER_RSTCTRL_OFFSET,
  283. .modulemode = MODULEMODE_SWCTRL,
  284. },
  285. },
  286. .rst_lines = am33xx_pruss_resets,
  287. .rst_lines_cnt = ARRAY_SIZE(am33xx_pruss_resets),
  288. };
  289. /* gfx */
  290. /* Pseudo hwmod for reset control purpose only */
  291. static struct omap_hwmod_class am33xx_gfx_hwmod_class = {
  292. .name = "gfx",
  293. };
  294. static struct omap_hwmod_rst_info am33xx_gfx_resets[] = {
  295. { .name = "gfx", .rst_shift = 0 },
  296. };
  297. static struct omap_hwmod_irq_info am33xx_gfx_irqs[] = {
  298. { .name = "gfxint", .irq = 37 + OMAP_INTC_START, },
  299. { .irq = -1 },
  300. };
  301. static struct omap_hwmod am33xx_gfx_hwmod = {
  302. .name = "gfx",
  303. .class = &am33xx_gfx_hwmod_class,
  304. .clkdm_name = "gfx_l3_clkdm",
  305. .mpu_irqs = am33xx_gfx_irqs,
  306. .main_clk = "gfx_fck_div_ck",
  307. .prcm = {
  308. .omap4 = {
  309. .clkctrl_offs = AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET,
  310. .rstctrl_offs = AM33XX_RM_GFX_RSTCTRL_OFFSET,
  311. .modulemode = MODULEMODE_SWCTRL,
  312. },
  313. },
  314. .rst_lines = am33xx_gfx_resets,
  315. .rst_lines_cnt = ARRAY_SIZE(am33xx_gfx_resets),
  316. };
  317. /*
  318. * 'prcm' class
  319. * power and reset manager (whole prcm infrastructure)
  320. */
  321. static struct omap_hwmod_class am33xx_prcm_hwmod_class = {
  322. .name = "prcm",
  323. };
  324. /* prcm */
  325. static struct omap_hwmod am33xx_prcm_hwmod = {
  326. .name = "prcm",
  327. .class = &am33xx_prcm_hwmod_class,
  328. .clkdm_name = "l4_wkup_clkdm",
  329. };
  330. /*
  331. * 'adc/tsc' class
  332. * TouchScreen Controller (Anolog-To-Digital Converter)
  333. */
  334. static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = {
  335. .rev_offs = 0x00,
  336. .sysc_offs = 0x10,
  337. .sysc_flags = SYSC_HAS_SIDLEMODE,
  338. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  339. SIDLE_SMART_WKUP),
  340. .sysc_fields = &omap_hwmod_sysc_type2,
  341. };
  342. static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = {
  343. .name = "adc_tsc",
  344. .sysc = &am33xx_adc_tsc_sysc,
  345. };
  346. static struct omap_hwmod_irq_info am33xx_adc_tsc_irqs[] = {
  347. { .irq = 16 + OMAP_INTC_START, },
  348. { .irq = -1 },
  349. };
  350. static struct omap_hwmod am33xx_adc_tsc_hwmod = {
  351. .name = "adc_tsc",
  352. .class = &am33xx_adc_tsc_hwmod_class,
  353. .clkdm_name = "l4_wkup_clkdm",
  354. .mpu_irqs = am33xx_adc_tsc_irqs,
  355. .main_clk = "adc_tsc_fck",
  356. .prcm = {
  357. .omap4 = {
  358. .clkctrl_offs = AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
  359. .modulemode = MODULEMODE_SWCTRL,
  360. },
  361. },
  362. };
  363. /*
  364. * Modules omap_hwmod structures
  365. *
  366. * The following IPs are excluded for the moment because:
  367. * - They do not need an explicit SW control using omap_hwmod API.
  368. * - They still need to be validated with the driver
  369. * properly adapted to omap_hwmod / omap_device
  370. *
  371. * - cEFUSE (doesn't fall under any ocp_if)
  372. * - clkdiv32k
  373. * - debugss
  374. * - ocmc ram
  375. * - ocp watch point
  376. * - aes0
  377. * - sha0
  378. */
  379. #if 0
  380. /*
  381. * 'cefuse' class
  382. */
  383. static struct omap_hwmod_class am33xx_cefuse_hwmod_class = {
  384. .name = "cefuse",
  385. };
  386. static struct omap_hwmod am33xx_cefuse_hwmod = {
  387. .name = "cefuse",
  388. .class = &am33xx_cefuse_hwmod_class,
  389. .clkdm_name = "l4_cefuse_clkdm",
  390. .main_clk = "cefuse_fck",
  391. .prcm = {
  392. .omap4 = {
  393. .clkctrl_offs = AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET,
  394. .modulemode = MODULEMODE_SWCTRL,
  395. },
  396. },
  397. };
  398. /*
  399. * 'clkdiv32k' class
  400. */
  401. static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = {
  402. .name = "clkdiv32k",
  403. };
  404. static struct omap_hwmod am33xx_clkdiv32k_hwmod = {
  405. .name = "clkdiv32k",
  406. .class = &am33xx_clkdiv32k_hwmod_class,
  407. .clkdm_name = "clk_24mhz_clkdm",
  408. .main_clk = "clkdiv32k_ick",
  409. .prcm = {
  410. .omap4 = {
  411. .clkctrl_offs = AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET,
  412. .modulemode = MODULEMODE_SWCTRL,
  413. },
  414. },
  415. };
  416. /*
  417. * 'debugss' class
  418. * debug sub system
  419. */
  420. static struct omap_hwmod_class am33xx_debugss_hwmod_class = {
  421. .name = "debugss",
  422. };
  423. static struct omap_hwmod am33xx_debugss_hwmod = {
  424. .name = "debugss",
  425. .class = &am33xx_debugss_hwmod_class,
  426. .clkdm_name = "l3_aon_clkdm",
  427. .main_clk = "debugss_ick",
  428. .prcm = {
  429. .omap4 = {
  430. .clkctrl_offs = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET,
  431. .modulemode = MODULEMODE_SWCTRL,
  432. },
  433. },
  434. };
  435. /* ocmcram */
  436. static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
  437. .name = "ocmcram",
  438. };
  439. static struct omap_hwmod am33xx_ocmcram_hwmod = {
  440. .name = "ocmcram",
  441. .class = &am33xx_ocmcram_hwmod_class,
  442. .clkdm_name = "l3_clkdm",
  443. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  444. .main_clk = "l3_gclk",
  445. .prcm = {
  446. .omap4 = {
  447. .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
  448. .modulemode = MODULEMODE_SWCTRL,
  449. },
  450. },
  451. };
  452. /* ocpwp */
  453. static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {
  454. .name = "ocpwp",
  455. };
  456. static struct omap_hwmod am33xx_ocpwp_hwmod = {
  457. .name = "ocpwp",
  458. .class = &am33xx_ocpwp_hwmod_class,
  459. .clkdm_name = "l4ls_clkdm",
  460. .main_clk = "l4ls_gclk",
  461. .prcm = {
  462. .omap4 = {
  463. .clkctrl_offs = AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET,
  464. .modulemode = MODULEMODE_SWCTRL,
  465. },
  466. },
  467. };
  468. /*
  469. * 'aes' class
  470. */
  471. static struct omap_hwmod_class am33xx_aes_hwmod_class = {
  472. .name = "aes",
  473. };
  474. static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = {
  475. { .irq = 102 + OMAP_INTC_START, },
  476. { .irq = -1 },
  477. };
  478. static struct omap_hwmod am33xx_aes0_hwmod = {
  479. .name = "aes0",
  480. .class = &am33xx_aes_hwmod_class,
  481. .clkdm_name = "l3_clkdm",
  482. .mpu_irqs = am33xx_aes0_irqs,
  483. .main_clk = "l3_gclk",
  484. .prcm = {
  485. .omap4 = {
  486. .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,
  487. .modulemode = MODULEMODE_SWCTRL,
  488. },
  489. },
  490. };
  491. /* sha0 */
  492. static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
  493. .name = "sha0",
  494. };
  495. static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = {
  496. { .irq = 108 + OMAP_INTC_START, },
  497. { .irq = -1 },
  498. };
  499. static struct omap_hwmod am33xx_sha0_hwmod = {
  500. .name = "sha0",
  501. .class = &am33xx_sha0_hwmod_class,
  502. .clkdm_name = "l3_clkdm",
  503. .mpu_irqs = am33xx_sha0_irqs,
  504. .main_clk = "l3_gclk",
  505. .prcm = {
  506. .omap4 = {
  507. .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,
  508. .modulemode = MODULEMODE_SWCTRL,
  509. },
  510. },
  511. };
  512. #endif
  513. /* 'smartreflex' class */
  514. static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
  515. .name = "smartreflex",
  516. };
  517. /* smartreflex0 */
  518. static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = {
  519. { .irq = 120 + OMAP_INTC_START, },
  520. { .irq = -1 },
  521. };
  522. static struct omap_hwmod am33xx_smartreflex0_hwmod = {
  523. .name = "smartreflex0",
  524. .class = &am33xx_smartreflex_hwmod_class,
  525. .clkdm_name = "l4_wkup_clkdm",
  526. .mpu_irqs = am33xx_smartreflex0_irqs,
  527. .main_clk = "smartreflex0_fck",
  528. .prcm = {
  529. .omap4 = {
  530. .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
  531. .modulemode = MODULEMODE_SWCTRL,
  532. },
  533. },
  534. };
  535. /* smartreflex1 */
  536. static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = {
  537. { .irq = 121 + OMAP_INTC_START, },
  538. { .irq = -1 },
  539. };
  540. static struct omap_hwmod am33xx_smartreflex1_hwmod = {
  541. .name = "smartreflex1",
  542. .class = &am33xx_smartreflex_hwmod_class,
  543. .clkdm_name = "l4_wkup_clkdm",
  544. .mpu_irqs = am33xx_smartreflex1_irqs,
  545. .main_clk = "smartreflex1_fck",
  546. .prcm = {
  547. .omap4 = {
  548. .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
  549. .modulemode = MODULEMODE_SWCTRL,
  550. },
  551. },
  552. };
  553. /*
  554. * 'control' module class
  555. */
  556. static struct omap_hwmod_class am33xx_control_hwmod_class = {
  557. .name = "control",
  558. };
  559. static struct omap_hwmod_irq_info am33xx_control_irqs[] = {
  560. { .irq = 8 + OMAP_INTC_START, },
  561. { .irq = -1 },
  562. };
  563. static struct omap_hwmod am33xx_control_hwmod = {
  564. .name = "control",
  565. .class = &am33xx_control_hwmod_class,
  566. .clkdm_name = "l4_wkup_clkdm",
  567. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  568. .mpu_irqs = am33xx_control_irqs,
  569. .main_clk = "dpll_core_m4_div2_ck",
  570. .prcm = {
  571. .omap4 = {
  572. .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
  573. .modulemode = MODULEMODE_SWCTRL,
  574. },
  575. },
  576. };
  577. /*
  578. * 'cpgmac' class
  579. * cpsw/cpgmac sub system
  580. */
  581. static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {
  582. .rev_offs = 0x0,
  583. .sysc_offs = 0x8,
  584. .syss_offs = 0x4,
  585. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
  586. SYSS_HAS_RESET_STATUS),
  587. .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
  588. MSTANDBY_NO),
  589. .sysc_fields = &omap_hwmod_sysc_type3,
  590. };
  591. static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {
  592. .name = "cpgmac0",
  593. .sysc = &am33xx_cpgmac_sysc,
  594. };
  595. static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {
  596. { .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, },
  597. { .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, },
  598. { .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, },
  599. { .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, },
  600. { .irq = -1 },
  601. };
  602. static struct omap_hwmod am33xx_cpgmac0_hwmod = {
  603. .name = "cpgmac0",
  604. .class = &am33xx_cpgmac0_hwmod_class,
  605. .clkdm_name = "cpsw_125mhz_clkdm",
  606. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  607. .mpu_irqs = am33xx_cpgmac0_irqs,
  608. .main_clk = "cpsw_125mhz_gclk",
  609. .prcm = {
  610. .omap4 = {
  611. .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,
  612. .modulemode = MODULEMODE_SWCTRL,
  613. },
  614. },
  615. };
  616. /*
  617. * mdio class
  618. */
  619. static struct omap_hwmod_class am33xx_mdio_hwmod_class = {
  620. .name = "davinci_mdio",
  621. };
  622. static struct omap_hwmod am33xx_mdio_hwmod = {
  623. .name = "davinci_mdio",
  624. .class = &am33xx_mdio_hwmod_class,
  625. .clkdm_name = "cpsw_125mhz_clkdm",
  626. .main_clk = "cpsw_125mhz_gclk",
  627. };
  628. /*
  629. * dcan class
  630. */
  631. static struct omap_hwmod_class am33xx_dcan_hwmod_class = {
  632. .name = "d_can",
  633. };
  634. /* dcan0 */
  635. static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = {
  636. { .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, },
  637. { .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, },
  638. { .irq = -1 },
  639. };
  640. static struct omap_hwmod am33xx_dcan0_hwmod = {
  641. .name = "d_can0",
  642. .class = &am33xx_dcan_hwmod_class,
  643. .clkdm_name = "l4ls_clkdm",
  644. .mpu_irqs = am33xx_dcan0_irqs,
  645. .main_clk = "dcan0_fck",
  646. .prcm = {
  647. .omap4 = {
  648. .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,
  649. .modulemode = MODULEMODE_SWCTRL,
  650. },
  651. },
  652. };
  653. /* dcan1 */
  654. static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = {
  655. { .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, },
  656. { .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, },
  657. { .irq = -1 },
  658. };
  659. static struct omap_hwmod am33xx_dcan1_hwmod = {
  660. .name = "d_can1",
  661. .class = &am33xx_dcan_hwmod_class,
  662. .clkdm_name = "l4ls_clkdm",
  663. .mpu_irqs = am33xx_dcan1_irqs,
  664. .main_clk = "dcan1_fck",
  665. .prcm = {
  666. .omap4 = {
  667. .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,
  668. .modulemode = MODULEMODE_SWCTRL,
  669. },
  670. },
  671. };
  672. /* elm */
  673. static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {
  674. .rev_offs = 0x0000,
  675. .sysc_offs = 0x0010,
  676. .syss_offs = 0x0014,
  677. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  678. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  679. SYSS_HAS_RESET_STATUS),
  680. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  681. .sysc_fields = &omap_hwmod_sysc_type1,
  682. };
  683. static struct omap_hwmod_class am33xx_elm_hwmod_class = {
  684. .name = "elm",
  685. .sysc = &am33xx_elm_sysc,
  686. };
  687. static struct omap_hwmod_irq_info am33xx_elm_irqs[] = {
  688. { .irq = 4 + OMAP_INTC_START, },
  689. { .irq = -1 },
  690. };
  691. static struct omap_hwmod am33xx_elm_hwmod = {
  692. .name = "elm",
  693. .class = &am33xx_elm_hwmod_class,
  694. .clkdm_name = "l4ls_clkdm",
  695. .mpu_irqs = am33xx_elm_irqs,
  696. .main_clk = "l4ls_gclk",
  697. .prcm = {
  698. .omap4 = {
  699. .clkctrl_offs = AM33XX_CM_PER_ELM_CLKCTRL_OFFSET,
  700. .modulemode = MODULEMODE_SWCTRL,
  701. },
  702. },
  703. };
  704. /*
  705. * 'epwmss' class: ecap0,1,2, ehrpwm0,1,2
  706. */
  707. static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = {
  708. .rev_offs = 0x0,
  709. .sysc_offs = 0x4,
  710. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  711. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  712. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  713. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  714. .sysc_fields = &omap_hwmod_sysc_type2,
  715. };
  716. static struct omap_hwmod_class am33xx_epwmss_hwmod_class = {
  717. .name = "epwmss",
  718. .sysc = &am33xx_epwmss_sysc,
  719. };
  720. /* ehrpwm0 */
  721. static struct omap_hwmod_irq_info am33xx_ehrpwm0_irqs[] = {
  722. { .name = "int", .irq = 86 + OMAP_INTC_START, },
  723. { .name = "tzint", .irq = 58 + OMAP_INTC_START, },
  724. { .irq = -1 },
  725. };
  726. static struct omap_hwmod am33xx_ehrpwm0_hwmod = {
  727. .name = "ehrpwm0",
  728. .class = &am33xx_epwmss_hwmod_class,
  729. .clkdm_name = "l4ls_clkdm",
  730. .mpu_irqs = am33xx_ehrpwm0_irqs,
  731. .main_clk = "l4ls_gclk",
  732. .prcm = {
  733. .omap4 = {
  734. .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
  735. .modulemode = MODULEMODE_SWCTRL,
  736. },
  737. },
  738. };
  739. /* ehrpwm1 */
  740. static struct omap_hwmod_irq_info am33xx_ehrpwm1_irqs[] = {
  741. { .name = "int", .irq = 87 + OMAP_INTC_START, },
  742. { .name = "tzint", .irq = 59 + OMAP_INTC_START, },
  743. { .irq = -1 },
  744. };
  745. static struct omap_hwmod am33xx_ehrpwm1_hwmod = {
  746. .name = "ehrpwm1",
  747. .class = &am33xx_epwmss_hwmod_class,
  748. .clkdm_name = "l4ls_clkdm",
  749. .mpu_irqs = am33xx_ehrpwm1_irqs,
  750. .main_clk = "l4ls_gclk",
  751. .prcm = {
  752. .omap4 = {
  753. .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
  754. .modulemode = MODULEMODE_SWCTRL,
  755. },
  756. },
  757. };
  758. /* ehrpwm2 */
  759. static struct omap_hwmod_irq_info am33xx_ehrpwm2_irqs[] = {
  760. { .name = "int", .irq = 39 + OMAP_INTC_START, },
  761. { .name = "tzint", .irq = 60 + OMAP_INTC_START, },
  762. { .irq = -1 },
  763. };
  764. static struct omap_hwmod am33xx_ehrpwm2_hwmod = {
  765. .name = "ehrpwm2",
  766. .class = &am33xx_epwmss_hwmod_class,
  767. .clkdm_name = "l4ls_clkdm",
  768. .mpu_irqs = am33xx_ehrpwm2_irqs,
  769. .main_clk = "l4ls_gclk",
  770. .prcm = {
  771. .omap4 = {
  772. .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
  773. .modulemode = MODULEMODE_SWCTRL,
  774. },
  775. },
  776. };
  777. /* ecap0 */
  778. static struct omap_hwmod_irq_info am33xx_ecap0_irqs[] = {
  779. { .irq = 31 + OMAP_INTC_START, },
  780. { .irq = -1 },
  781. };
  782. static struct omap_hwmod am33xx_ecap0_hwmod = {
  783. .name = "ecap0",
  784. .class = &am33xx_epwmss_hwmod_class,
  785. .clkdm_name = "l4ls_clkdm",
  786. .mpu_irqs = am33xx_ecap0_irqs,
  787. .main_clk = "l4ls_gclk",
  788. .prcm = {
  789. .omap4 = {
  790. .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
  791. .modulemode = MODULEMODE_SWCTRL,
  792. },
  793. },
  794. };
  795. /* ecap1 */
  796. static struct omap_hwmod_irq_info am33xx_ecap1_irqs[] = {
  797. { .irq = 47 + OMAP_INTC_START, },
  798. { .irq = -1 },
  799. };
  800. static struct omap_hwmod am33xx_ecap1_hwmod = {
  801. .name = "ecap1",
  802. .class = &am33xx_epwmss_hwmod_class,
  803. .clkdm_name = "l4ls_clkdm",
  804. .mpu_irqs = am33xx_ecap1_irqs,
  805. .main_clk = "l4ls_gclk",
  806. .prcm = {
  807. .omap4 = {
  808. .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
  809. .modulemode = MODULEMODE_SWCTRL,
  810. },
  811. },
  812. };
  813. /* ecap2 */
  814. static struct omap_hwmod_irq_info am33xx_ecap2_irqs[] = {
  815. { .irq = 61 + OMAP_INTC_START, },
  816. { .irq = -1 },
  817. };
  818. static struct omap_hwmod am33xx_ecap2_hwmod = {
  819. .name = "ecap2",
  820. .mpu_irqs = am33xx_ecap2_irqs,
  821. .class = &am33xx_epwmss_hwmod_class,
  822. .clkdm_name = "l4ls_clkdm",
  823. .main_clk = "l4ls_gclk",
  824. .prcm = {
  825. .omap4 = {
  826. .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
  827. .modulemode = MODULEMODE_SWCTRL,
  828. },
  829. },
  830. };
  831. /*
  832. * 'gpio' class: for gpio 0,1,2,3
  833. */
  834. static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = {
  835. .rev_offs = 0x0000,
  836. .sysc_offs = 0x0010,
  837. .syss_offs = 0x0114,
  838. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  839. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  840. SYSS_HAS_RESET_STATUS),
  841. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  842. SIDLE_SMART_WKUP),
  843. .sysc_fields = &omap_hwmod_sysc_type1,
  844. };
  845. static struct omap_hwmod_class am33xx_gpio_hwmod_class = {
  846. .name = "gpio",
  847. .sysc = &am33xx_gpio_sysc,
  848. .rev = 2,
  849. };
  850. static struct omap_gpio_dev_attr gpio_dev_attr = {
  851. .bank_width = 32,
  852. .dbck_flag = true,
  853. };
  854. /* gpio0 */
  855. static struct omap_hwmod_opt_clk gpio0_opt_clks[] = {
  856. { .role = "dbclk", .clk = "gpio0_dbclk" },
  857. };
  858. static struct omap_hwmod_irq_info am33xx_gpio0_irqs[] = {
  859. { .irq = 96 + OMAP_INTC_START, },
  860. { .irq = -1 },
  861. };
  862. static struct omap_hwmod am33xx_gpio0_hwmod = {
  863. .name = "gpio1",
  864. .class = &am33xx_gpio_hwmod_class,
  865. .clkdm_name = "l4_wkup_clkdm",
  866. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  867. .mpu_irqs = am33xx_gpio0_irqs,
  868. .main_clk = "dpll_core_m4_div2_ck",
  869. .prcm = {
  870. .omap4 = {
  871. .clkctrl_offs = AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET,
  872. .modulemode = MODULEMODE_SWCTRL,
  873. },
  874. },
  875. .opt_clks = gpio0_opt_clks,
  876. .opt_clks_cnt = ARRAY_SIZE(gpio0_opt_clks),
  877. .dev_attr = &gpio_dev_attr,
  878. };
  879. /* gpio1 */
  880. static struct omap_hwmod_irq_info am33xx_gpio1_irqs[] = {
  881. { .irq = 98 + OMAP_INTC_START, },
  882. { .irq = -1 },
  883. };
  884. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  885. { .role = "dbclk", .clk = "gpio1_dbclk" },
  886. };
  887. static struct omap_hwmod am33xx_gpio1_hwmod = {
  888. .name = "gpio2",
  889. .class = &am33xx_gpio_hwmod_class,
  890. .clkdm_name = "l4ls_clkdm",
  891. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  892. .mpu_irqs = am33xx_gpio1_irqs,
  893. .main_clk = "l4ls_gclk",
  894. .prcm = {
  895. .omap4 = {
  896. .clkctrl_offs = AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET,
  897. .modulemode = MODULEMODE_SWCTRL,
  898. },
  899. },
  900. .opt_clks = gpio1_opt_clks,
  901. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  902. .dev_attr = &gpio_dev_attr,
  903. };
  904. /* gpio2 */
  905. static struct omap_hwmod_irq_info am33xx_gpio2_irqs[] = {
  906. { .irq = 32 + OMAP_INTC_START, },
  907. { .irq = -1 },
  908. };
  909. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  910. { .role = "dbclk", .clk = "gpio2_dbclk" },
  911. };
  912. static struct omap_hwmod am33xx_gpio2_hwmod = {
  913. .name = "gpio3",
  914. .class = &am33xx_gpio_hwmod_class,
  915. .clkdm_name = "l4ls_clkdm",
  916. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  917. .mpu_irqs = am33xx_gpio2_irqs,
  918. .main_clk = "l4ls_gclk",
  919. .prcm = {
  920. .omap4 = {
  921. .clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,
  922. .modulemode = MODULEMODE_SWCTRL,
  923. },
  924. },
  925. .opt_clks = gpio2_opt_clks,
  926. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  927. .dev_attr = &gpio_dev_attr,
  928. };
  929. /* gpio3 */
  930. static struct omap_hwmod_irq_info am33xx_gpio3_irqs[] = {
  931. { .irq = 62 + OMAP_INTC_START, },
  932. { .irq = -1 },
  933. };
  934. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  935. { .role = "dbclk", .clk = "gpio3_dbclk" },
  936. };
  937. static struct omap_hwmod am33xx_gpio3_hwmod = {
  938. .name = "gpio4",
  939. .class = &am33xx_gpio_hwmod_class,
  940. .clkdm_name = "l4ls_clkdm",
  941. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  942. .mpu_irqs = am33xx_gpio3_irqs,
  943. .main_clk = "l4ls_gclk",
  944. .prcm = {
  945. .omap4 = {
  946. .clkctrl_offs = AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET,
  947. .modulemode = MODULEMODE_SWCTRL,
  948. },
  949. },
  950. .opt_clks = gpio3_opt_clks,
  951. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  952. .dev_attr = &gpio_dev_attr,
  953. };
  954. /* gpmc */
  955. static struct omap_hwmod_class_sysconfig gpmc_sysc = {
  956. .rev_offs = 0x0,
  957. .sysc_offs = 0x10,
  958. .syss_offs = 0x14,
  959. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  960. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  961. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  962. .sysc_fields = &omap_hwmod_sysc_type1,
  963. };
  964. static struct omap_hwmod_class am33xx_gpmc_hwmod_class = {
  965. .name = "gpmc",
  966. .sysc = &gpmc_sysc,
  967. };
  968. static struct omap_hwmod_irq_info am33xx_gpmc_irqs[] = {
  969. { .irq = 100 + OMAP_INTC_START, },
  970. { .irq = -1 },
  971. };
  972. static struct omap_hwmod am33xx_gpmc_hwmod = {
  973. .name = "gpmc",
  974. .class = &am33xx_gpmc_hwmod_class,
  975. .clkdm_name = "l3s_clkdm",
  976. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  977. .mpu_irqs = am33xx_gpmc_irqs,
  978. .main_clk = "l3s_gclk",
  979. .prcm = {
  980. .omap4 = {
  981. .clkctrl_offs = AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET,
  982. .modulemode = MODULEMODE_SWCTRL,
  983. },
  984. },
  985. };
  986. /* 'i2c' class */
  987. static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = {
  988. .sysc_offs = 0x0010,
  989. .syss_offs = 0x0090,
  990. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  991. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  992. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  993. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  994. SIDLE_SMART_WKUP),
  995. .sysc_fields = &omap_hwmod_sysc_type1,
  996. };
  997. static struct omap_hwmod_class i2c_class = {
  998. .name = "i2c",
  999. .sysc = &am33xx_i2c_sysc,
  1000. .rev = OMAP_I2C_IP_VERSION_2,
  1001. .reset = &omap_i2c_reset,
  1002. };
  1003. static struct omap_i2c_dev_attr i2c_dev_attr = {
  1004. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE |
  1005. OMAP_I2C_FLAG_RESET_REGS_POSTIDLE,
  1006. };
  1007. /* i2c1 */
  1008. static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
  1009. { .irq = 70 + OMAP_INTC_START, },
  1010. { .irq = -1 },
  1011. };
  1012. static struct omap_hwmod_dma_info i2c1_edma_reqs[] = {
  1013. { .name = "tx", .dma_req = 0, },
  1014. { .name = "rx", .dma_req = 0, },
  1015. { .dma_req = -1 }
  1016. };
  1017. static struct omap_hwmod am33xx_i2c1_hwmod = {
  1018. .name = "i2c1",
  1019. .class = &i2c_class,
  1020. .clkdm_name = "l4_wkup_clkdm",
  1021. .mpu_irqs = i2c1_mpu_irqs,
  1022. .sdma_reqs = i2c1_edma_reqs,
  1023. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1024. .main_clk = "dpll_per_m2_div4_wkupdm_ck",
  1025. .prcm = {
  1026. .omap4 = {
  1027. .clkctrl_offs = AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET,
  1028. .modulemode = MODULEMODE_SWCTRL,
  1029. },
  1030. },
  1031. .dev_attr = &i2c_dev_attr,
  1032. };
  1033. /* i2c1 */
  1034. static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
  1035. { .irq = 71 + OMAP_INTC_START, },
  1036. { .irq = -1 },
  1037. };
  1038. static struct omap_hwmod_dma_info i2c2_edma_reqs[] = {
  1039. { .name = "tx", .dma_req = 0, },
  1040. { .name = "rx", .dma_req = 0, },
  1041. { .dma_req = -1 }
  1042. };
  1043. static struct omap_hwmod am33xx_i2c2_hwmod = {
  1044. .name = "i2c2",
  1045. .class = &i2c_class,
  1046. .clkdm_name = "l4ls_clkdm",
  1047. .mpu_irqs = i2c2_mpu_irqs,
  1048. .sdma_reqs = i2c2_edma_reqs,
  1049. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1050. .main_clk = "dpll_per_m2_div4_ck",
  1051. .prcm = {
  1052. .omap4 = {
  1053. .clkctrl_offs = AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET,
  1054. .modulemode = MODULEMODE_SWCTRL,
  1055. },
  1056. },
  1057. .dev_attr = &i2c_dev_attr,
  1058. };
  1059. /* i2c3 */
  1060. static struct omap_hwmod_dma_info i2c3_edma_reqs[] = {
  1061. { .name = "tx", .dma_req = 0, },
  1062. { .name = "rx", .dma_req = 0, },
  1063. { .dma_req = -1 }
  1064. };
  1065. static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
  1066. { .irq = 30 + OMAP_INTC_START, },
  1067. { .irq = -1 },
  1068. };
  1069. static struct omap_hwmod am33xx_i2c3_hwmod = {
  1070. .name = "i2c3",
  1071. .class = &i2c_class,
  1072. .clkdm_name = "l4ls_clkdm",
  1073. .mpu_irqs = i2c3_mpu_irqs,
  1074. .sdma_reqs = i2c3_edma_reqs,
  1075. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1076. .main_clk = "dpll_per_m2_div4_ck",
  1077. .prcm = {
  1078. .omap4 = {
  1079. .clkctrl_offs = AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET,
  1080. .modulemode = MODULEMODE_SWCTRL,
  1081. },
  1082. },
  1083. .dev_attr = &i2c_dev_attr,
  1084. };
  1085. /* lcdc */
  1086. static struct omap_hwmod_class_sysconfig lcdc_sysc = {
  1087. .rev_offs = 0x0,
  1088. .sysc_offs = 0x54,
  1089. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  1090. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1091. .sysc_fields = &omap_hwmod_sysc_type2,
  1092. };
  1093. static struct omap_hwmod_class am33xx_lcdc_hwmod_class = {
  1094. .name = "lcdc",
  1095. .sysc = &lcdc_sysc,
  1096. };
  1097. static struct omap_hwmod_irq_info am33xx_lcdc_irqs[] = {
  1098. { .irq = 36 + OMAP_INTC_START, },
  1099. { .irq = -1 },
  1100. };
  1101. static struct omap_hwmod am33xx_lcdc_hwmod = {
  1102. .name = "lcdc",
  1103. .class = &am33xx_lcdc_hwmod_class,
  1104. .clkdm_name = "lcdc_clkdm",
  1105. .mpu_irqs = am33xx_lcdc_irqs,
  1106. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1107. .main_clk = "lcd_gclk",
  1108. .prcm = {
  1109. .omap4 = {
  1110. .clkctrl_offs = AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET,
  1111. .modulemode = MODULEMODE_SWCTRL,
  1112. },
  1113. },
  1114. };
  1115. /*
  1116. * 'mailbox' class
  1117. * mailbox module allowing communication between the on-chip processors using a
  1118. * queued mailbox-interrupt mechanism.
  1119. */
  1120. static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = {
  1121. .rev_offs = 0x0000,
  1122. .sysc_offs = 0x0010,
  1123. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1124. SYSC_HAS_SOFTRESET),
  1125. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1126. .sysc_fields = &omap_hwmod_sysc_type2,
  1127. };
  1128. static struct omap_hwmod_class am33xx_mailbox_hwmod_class = {
  1129. .name = "mailbox",
  1130. .sysc = &am33xx_mailbox_sysc,
  1131. };
  1132. static struct omap_hwmod_irq_info am33xx_mailbox_irqs[] = {
  1133. { .irq = 77 + OMAP_INTC_START, },
  1134. { .irq = -1 },
  1135. };
  1136. static struct omap_hwmod am33xx_mailbox_hwmod = {
  1137. .name = "mailbox",
  1138. .class = &am33xx_mailbox_hwmod_class,
  1139. .clkdm_name = "l4ls_clkdm",
  1140. .mpu_irqs = am33xx_mailbox_irqs,
  1141. .main_clk = "l4ls_gclk",
  1142. .prcm = {
  1143. .omap4 = {
  1144. .clkctrl_offs = AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET,
  1145. .modulemode = MODULEMODE_SWCTRL,
  1146. },
  1147. },
  1148. };
  1149. /*
  1150. * 'mcasp' class
  1151. */
  1152. static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = {
  1153. .rev_offs = 0x0,
  1154. .sysc_offs = 0x4,
  1155. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1156. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1157. .sysc_fields = &omap_hwmod_sysc_type3,
  1158. };
  1159. static struct omap_hwmod_class am33xx_mcasp_hwmod_class = {
  1160. .name = "mcasp",
  1161. .sysc = &am33xx_mcasp_sysc,
  1162. };
  1163. /* mcasp0 */
  1164. static struct omap_hwmod_irq_info am33xx_mcasp0_irqs[] = {
  1165. { .name = "ax", .irq = 80 + OMAP_INTC_START, },
  1166. { .name = "ar", .irq = 81 + OMAP_INTC_START, },
  1167. { .irq = -1 },
  1168. };
  1169. static struct omap_hwmod_dma_info am33xx_mcasp0_edma_reqs[] = {
  1170. { .name = "tx", .dma_req = 8, },
  1171. { .name = "rx", .dma_req = 9, },
  1172. { .dma_req = -1 }
  1173. };
  1174. static struct omap_hwmod am33xx_mcasp0_hwmod = {
  1175. .name = "mcasp0",
  1176. .class = &am33xx_mcasp_hwmod_class,
  1177. .clkdm_name = "l3s_clkdm",
  1178. .mpu_irqs = am33xx_mcasp0_irqs,
  1179. .sdma_reqs = am33xx_mcasp0_edma_reqs,
  1180. .main_clk = "mcasp0_fck",
  1181. .prcm = {
  1182. .omap4 = {
  1183. .clkctrl_offs = AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET,
  1184. .modulemode = MODULEMODE_SWCTRL,
  1185. },
  1186. },
  1187. };
  1188. /* mcasp1 */
  1189. static struct omap_hwmod_irq_info am33xx_mcasp1_irqs[] = {
  1190. { .name = "ax", .irq = 82 + OMAP_INTC_START, },
  1191. { .name = "ar", .irq = 83 + OMAP_INTC_START, },
  1192. { .irq = -1 },
  1193. };
  1194. static struct omap_hwmod_dma_info am33xx_mcasp1_edma_reqs[] = {
  1195. { .name = "tx", .dma_req = 10, },
  1196. { .name = "rx", .dma_req = 11, },
  1197. { .dma_req = -1 }
  1198. };
  1199. static struct omap_hwmod am33xx_mcasp1_hwmod = {
  1200. .name = "mcasp1",
  1201. .class = &am33xx_mcasp_hwmod_class,
  1202. .clkdm_name = "l3s_clkdm",
  1203. .mpu_irqs = am33xx_mcasp1_irqs,
  1204. .sdma_reqs = am33xx_mcasp1_edma_reqs,
  1205. .main_clk = "mcasp1_fck",
  1206. .prcm = {
  1207. .omap4 = {
  1208. .clkctrl_offs = AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET,
  1209. .modulemode = MODULEMODE_SWCTRL,
  1210. },
  1211. },
  1212. };
  1213. /* 'mmc' class */
  1214. static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {
  1215. .rev_offs = 0x1fc,
  1216. .sysc_offs = 0x10,
  1217. .syss_offs = 0x14,
  1218. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1219. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1220. SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
  1221. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1222. .sysc_fields = &omap_hwmod_sysc_type1,
  1223. };
  1224. static struct omap_hwmod_class am33xx_mmc_hwmod_class = {
  1225. .name = "mmc",
  1226. .sysc = &am33xx_mmc_sysc,
  1227. };
  1228. /* mmc0 */
  1229. static struct omap_hwmod_irq_info am33xx_mmc0_irqs[] = {
  1230. { .irq = 64 + OMAP_INTC_START, },
  1231. { .irq = -1 },
  1232. };
  1233. static struct omap_hwmod_dma_info am33xx_mmc0_edma_reqs[] = {
  1234. { .name = "tx", .dma_req = 24, },
  1235. { .name = "rx", .dma_req = 25, },
  1236. { .dma_req = -1 }
  1237. };
  1238. static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = {
  1239. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1240. };
  1241. static struct omap_hwmod am33xx_mmc0_hwmod = {
  1242. .name = "mmc1",
  1243. .class = &am33xx_mmc_hwmod_class,
  1244. .clkdm_name = "l4ls_clkdm",
  1245. .mpu_irqs = am33xx_mmc0_irqs,
  1246. .sdma_reqs = am33xx_mmc0_edma_reqs,
  1247. .main_clk = "mmc_clk",
  1248. .prcm = {
  1249. .omap4 = {
  1250. .clkctrl_offs = AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET,
  1251. .modulemode = MODULEMODE_SWCTRL,
  1252. },
  1253. },
  1254. .dev_attr = &am33xx_mmc0_dev_attr,
  1255. };
  1256. /* mmc1 */
  1257. static struct omap_hwmod_irq_info am33xx_mmc1_irqs[] = {
  1258. { .irq = 28 + OMAP_INTC_START, },
  1259. { .irq = -1 },
  1260. };
  1261. static struct omap_hwmod_dma_info am33xx_mmc1_edma_reqs[] = {
  1262. { .name = "tx", .dma_req = 2, },
  1263. { .name = "rx", .dma_req = 3, },
  1264. { .dma_req = -1 }
  1265. };
  1266. static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = {
  1267. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1268. };
  1269. static struct omap_hwmod am33xx_mmc1_hwmod = {
  1270. .name = "mmc2",
  1271. .class = &am33xx_mmc_hwmod_class,
  1272. .clkdm_name = "l4ls_clkdm",
  1273. .mpu_irqs = am33xx_mmc1_irqs,
  1274. .sdma_reqs = am33xx_mmc1_edma_reqs,
  1275. .main_clk = "mmc_clk",
  1276. .prcm = {
  1277. .omap4 = {
  1278. .clkctrl_offs = AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET,
  1279. .modulemode = MODULEMODE_SWCTRL,
  1280. },
  1281. },
  1282. .dev_attr = &am33xx_mmc1_dev_attr,
  1283. };
  1284. /* mmc2 */
  1285. static struct omap_hwmod_irq_info am33xx_mmc2_irqs[] = {
  1286. { .irq = 29 + OMAP_INTC_START, },
  1287. { .irq = -1 },
  1288. };
  1289. static struct omap_hwmod_dma_info am33xx_mmc2_edma_reqs[] = {
  1290. { .name = "tx", .dma_req = 64, },
  1291. { .name = "rx", .dma_req = 65, },
  1292. { .dma_req = -1 }
  1293. };
  1294. static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = {
  1295. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1296. };
  1297. static struct omap_hwmod am33xx_mmc2_hwmod = {
  1298. .name = "mmc3",
  1299. .class = &am33xx_mmc_hwmod_class,
  1300. .clkdm_name = "l3s_clkdm",
  1301. .mpu_irqs = am33xx_mmc2_irqs,
  1302. .sdma_reqs = am33xx_mmc2_edma_reqs,
  1303. .main_clk = "mmc_clk",
  1304. .prcm = {
  1305. .omap4 = {
  1306. .clkctrl_offs = AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET,
  1307. .modulemode = MODULEMODE_SWCTRL,
  1308. },
  1309. },
  1310. .dev_attr = &am33xx_mmc2_dev_attr,
  1311. };
  1312. /*
  1313. * 'rtc' class
  1314. * rtc subsystem
  1315. */
  1316. static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {
  1317. .rev_offs = 0x0074,
  1318. .sysc_offs = 0x0078,
  1319. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1320. .idlemodes = (SIDLE_FORCE | SIDLE_NO |
  1321. SIDLE_SMART | SIDLE_SMART_WKUP),
  1322. .sysc_fields = &omap_hwmod_sysc_type3,
  1323. };
  1324. static struct omap_hwmod_class am33xx_rtc_hwmod_class = {
  1325. .name = "rtc",
  1326. .sysc = &am33xx_rtc_sysc,
  1327. };
  1328. static struct omap_hwmod_irq_info am33xx_rtc_irqs[] = {
  1329. { .name = "rtcint", .irq = 75 + OMAP_INTC_START, },
  1330. { .name = "rtcalarmint", .irq = 76 + OMAP_INTC_START, },
  1331. { .irq = -1 },
  1332. };
  1333. static struct omap_hwmod am33xx_rtc_hwmod = {
  1334. .name = "rtc",
  1335. .class = &am33xx_rtc_hwmod_class,
  1336. .clkdm_name = "l4_rtc_clkdm",
  1337. .mpu_irqs = am33xx_rtc_irqs,
  1338. .main_clk = "clk_32768_ck",
  1339. .prcm = {
  1340. .omap4 = {
  1341. .clkctrl_offs = AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET,
  1342. .modulemode = MODULEMODE_SWCTRL,
  1343. },
  1344. },
  1345. };
  1346. /* 'spi' class */
  1347. static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = {
  1348. .rev_offs = 0x0000,
  1349. .sysc_offs = 0x0110,
  1350. .syss_offs = 0x0114,
  1351. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1352. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  1353. SYSS_HAS_RESET_STATUS),
  1354. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1355. .sysc_fields = &omap_hwmod_sysc_type1,
  1356. };
  1357. static struct omap_hwmod_class am33xx_spi_hwmod_class = {
  1358. .name = "mcspi",
  1359. .sysc = &am33xx_mcspi_sysc,
  1360. .rev = OMAP4_MCSPI_REV,
  1361. };
  1362. /* spi0 */
  1363. static struct omap_hwmod_irq_info am33xx_spi0_irqs[] = {
  1364. { .irq = 65 + OMAP_INTC_START, },
  1365. { .irq = -1 },
  1366. };
  1367. static struct omap_hwmod_dma_info am33xx_mcspi0_edma_reqs[] = {
  1368. { .name = "rx0", .dma_req = 17 },
  1369. { .name = "tx0", .dma_req = 16 },
  1370. { .name = "rx1", .dma_req = 19 },
  1371. { .name = "tx1", .dma_req = 18 },
  1372. { .dma_req = -1 }
  1373. };
  1374. static struct omap2_mcspi_dev_attr mcspi_attrib = {
  1375. .num_chipselect = 2,
  1376. };
  1377. static struct omap_hwmod am33xx_spi0_hwmod = {
  1378. .name = "spi0",
  1379. .class = &am33xx_spi_hwmod_class,
  1380. .clkdm_name = "l4ls_clkdm",
  1381. .mpu_irqs = am33xx_spi0_irqs,
  1382. .sdma_reqs = am33xx_mcspi0_edma_reqs,
  1383. .main_clk = "dpll_per_m2_div4_ck",
  1384. .prcm = {
  1385. .omap4 = {
  1386. .clkctrl_offs = AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET,
  1387. .modulemode = MODULEMODE_SWCTRL,
  1388. },
  1389. },
  1390. .dev_attr = &mcspi_attrib,
  1391. };
  1392. /* spi1 */
  1393. static struct omap_hwmod_irq_info am33xx_spi1_irqs[] = {
  1394. { .irq = 125 + OMAP_INTC_START, },
  1395. { .irq = -1 },
  1396. };
  1397. static struct omap_hwmod_dma_info am33xx_mcspi1_edma_reqs[] = {
  1398. { .name = "rx0", .dma_req = 43 },
  1399. { .name = "tx0", .dma_req = 42 },
  1400. { .name = "rx1", .dma_req = 45 },
  1401. { .name = "tx1", .dma_req = 44 },
  1402. { .dma_req = -1 }
  1403. };
  1404. static struct omap_hwmod am33xx_spi1_hwmod = {
  1405. .name = "spi1",
  1406. .class = &am33xx_spi_hwmod_class,
  1407. .clkdm_name = "l4ls_clkdm",
  1408. .mpu_irqs = am33xx_spi1_irqs,
  1409. .sdma_reqs = am33xx_mcspi1_edma_reqs,
  1410. .main_clk = "dpll_per_m2_div4_ck",
  1411. .prcm = {
  1412. .omap4 = {
  1413. .clkctrl_offs = AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET,
  1414. .modulemode = MODULEMODE_SWCTRL,
  1415. },
  1416. },
  1417. .dev_attr = &mcspi_attrib,
  1418. };
  1419. /*
  1420. * 'spinlock' class
  1421. * spinlock provides hardware assistance for synchronizing the
  1422. * processes running on multiple processors
  1423. */
  1424. static struct omap_hwmod_class am33xx_spinlock_hwmod_class = {
  1425. .name = "spinlock",
  1426. };
  1427. static struct omap_hwmod am33xx_spinlock_hwmod = {
  1428. .name = "spinlock",
  1429. .class = &am33xx_spinlock_hwmod_class,
  1430. .clkdm_name = "l4ls_clkdm",
  1431. .main_clk = "l4ls_gclk",
  1432. .prcm = {
  1433. .omap4 = {
  1434. .clkctrl_offs = AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET,
  1435. .modulemode = MODULEMODE_SWCTRL,
  1436. },
  1437. },
  1438. };
  1439. /* 'timer 2-7' class */
  1440. static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = {
  1441. .rev_offs = 0x0000,
  1442. .sysc_offs = 0x0010,
  1443. .syss_offs = 0x0014,
  1444. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1445. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1446. SIDLE_SMART_WKUP),
  1447. .sysc_fields = &omap_hwmod_sysc_type2,
  1448. };
  1449. static struct omap_hwmod_class am33xx_timer_hwmod_class = {
  1450. .name = "timer",
  1451. .sysc = &am33xx_timer_sysc,
  1452. };
  1453. /* timer1 1ms */
  1454. static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = {
  1455. .rev_offs = 0x0000,
  1456. .sysc_offs = 0x0010,
  1457. .syss_offs = 0x0014,
  1458. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1459. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  1460. SYSS_HAS_RESET_STATUS),
  1461. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1462. .sysc_fields = &omap_hwmod_sysc_type1,
  1463. };
  1464. static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = {
  1465. .name = "timer",
  1466. .sysc = &am33xx_timer1ms_sysc,
  1467. };
  1468. static struct omap_hwmod_irq_info am33xx_timer1_irqs[] = {
  1469. { .irq = 67 + OMAP_INTC_START, },
  1470. { .irq = -1 },
  1471. };
  1472. static struct omap_hwmod am33xx_timer1_hwmod = {
  1473. .name = "timer1",
  1474. .class = &am33xx_timer1ms_hwmod_class,
  1475. .clkdm_name = "l4_wkup_clkdm",
  1476. .mpu_irqs = am33xx_timer1_irqs,
  1477. .main_clk = "timer1_fck",
  1478. .prcm = {
  1479. .omap4 = {
  1480. .clkctrl_offs = AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  1481. .modulemode = MODULEMODE_SWCTRL,
  1482. },
  1483. },
  1484. };
  1485. static struct omap_hwmod_irq_info am33xx_timer2_irqs[] = {
  1486. { .irq = 68 + OMAP_INTC_START, },
  1487. { .irq = -1 },
  1488. };
  1489. static struct omap_hwmod am33xx_timer2_hwmod = {
  1490. .name = "timer2",
  1491. .class = &am33xx_timer_hwmod_class,
  1492. .clkdm_name = "l4ls_clkdm",
  1493. .mpu_irqs = am33xx_timer2_irqs,
  1494. .main_clk = "timer2_fck",
  1495. .prcm = {
  1496. .omap4 = {
  1497. .clkctrl_offs = AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET,
  1498. .modulemode = MODULEMODE_SWCTRL,
  1499. },
  1500. },
  1501. };
  1502. static struct omap_hwmod_irq_info am33xx_timer3_irqs[] = {
  1503. { .irq = 69 + OMAP_INTC_START, },
  1504. { .irq = -1 },
  1505. };
  1506. static struct omap_hwmod am33xx_timer3_hwmod = {
  1507. .name = "timer3",
  1508. .class = &am33xx_timer_hwmod_class,
  1509. .clkdm_name = "l4ls_clkdm",
  1510. .mpu_irqs = am33xx_timer3_irqs,
  1511. .main_clk = "timer3_fck",
  1512. .prcm = {
  1513. .omap4 = {
  1514. .clkctrl_offs = AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET,
  1515. .modulemode = MODULEMODE_SWCTRL,
  1516. },
  1517. },
  1518. };
  1519. static struct omap_hwmod_irq_info am33xx_timer4_irqs[] = {
  1520. { .irq = 92 + OMAP_INTC_START, },
  1521. { .irq = -1 },
  1522. };
  1523. static struct omap_hwmod am33xx_timer4_hwmod = {
  1524. .name = "timer4",
  1525. .class = &am33xx_timer_hwmod_class,
  1526. .clkdm_name = "l4ls_clkdm",
  1527. .mpu_irqs = am33xx_timer4_irqs,
  1528. .main_clk = "timer4_fck",
  1529. .prcm = {
  1530. .omap4 = {
  1531. .clkctrl_offs = AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET,
  1532. .modulemode = MODULEMODE_SWCTRL,
  1533. },
  1534. },
  1535. };
  1536. static struct omap_hwmod_irq_info am33xx_timer5_irqs[] = {
  1537. { .irq = 93 + OMAP_INTC_START, },
  1538. { .irq = -1 },
  1539. };
  1540. static struct omap_hwmod am33xx_timer5_hwmod = {
  1541. .name = "timer5",
  1542. .class = &am33xx_timer_hwmod_class,
  1543. .clkdm_name = "l4ls_clkdm",
  1544. .mpu_irqs = am33xx_timer5_irqs,
  1545. .main_clk = "timer5_fck",
  1546. .prcm = {
  1547. .omap4 = {
  1548. .clkctrl_offs = AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET,
  1549. .modulemode = MODULEMODE_SWCTRL,
  1550. },
  1551. },
  1552. };
  1553. static struct omap_hwmod_irq_info am33xx_timer6_irqs[] = {
  1554. { .irq = 94 + OMAP_INTC_START, },
  1555. { .irq = -1 },
  1556. };
  1557. static struct omap_hwmod am33xx_timer6_hwmod = {
  1558. .name = "timer6",
  1559. .class = &am33xx_timer_hwmod_class,
  1560. .clkdm_name = "l4ls_clkdm",
  1561. .mpu_irqs = am33xx_timer6_irqs,
  1562. .main_clk = "timer6_fck",
  1563. .prcm = {
  1564. .omap4 = {
  1565. .clkctrl_offs = AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET,
  1566. .modulemode = MODULEMODE_SWCTRL,
  1567. },
  1568. },
  1569. };
  1570. static struct omap_hwmod_irq_info am33xx_timer7_irqs[] = {
  1571. { .irq = 95 + OMAP_INTC_START, },
  1572. { .irq = -1 },
  1573. };
  1574. static struct omap_hwmod am33xx_timer7_hwmod = {
  1575. .name = "timer7",
  1576. .class = &am33xx_timer_hwmod_class,
  1577. .clkdm_name = "l4ls_clkdm",
  1578. .mpu_irqs = am33xx_timer7_irqs,
  1579. .main_clk = "timer7_fck",
  1580. .prcm = {
  1581. .omap4 = {
  1582. .clkctrl_offs = AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET,
  1583. .modulemode = MODULEMODE_SWCTRL,
  1584. },
  1585. },
  1586. };
  1587. /* tpcc */
  1588. static struct omap_hwmod_class am33xx_tpcc_hwmod_class = {
  1589. .name = "tpcc",
  1590. };
  1591. static struct omap_hwmod_irq_info am33xx_tpcc_irqs[] = {
  1592. { .name = "edma0", .irq = 12 + OMAP_INTC_START, },
  1593. { .name = "edma0_mperr", .irq = 13 + OMAP_INTC_START, },
  1594. { .name = "edma0_err", .irq = 14 + OMAP_INTC_START, },
  1595. { .irq = -1 },
  1596. };
  1597. static struct omap_hwmod am33xx_tpcc_hwmod = {
  1598. .name = "tpcc",
  1599. .class = &am33xx_tpcc_hwmod_class,
  1600. .clkdm_name = "l3_clkdm",
  1601. .mpu_irqs = am33xx_tpcc_irqs,
  1602. .main_clk = "l3_gclk",
  1603. .prcm = {
  1604. .omap4 = {
  1605. .clkctrl_offs = AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET,
  1606. .modulemode = MODULEMODE_SWCTRL,
  1607. },
  1608. },
  1609. };
  1610. static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = {
  1611. .rev_offs = 0x0,
  1612. .sysc_offs = 0x10,
  1613. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1614. SYSC_HAS_MIDLEMODE),
  1615. .idlemodes = (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE),
  1616. .sysc_fields = &omap_hwmod_sysc_type2,
  1617. };
  1618. /* 'tptc' class */
  1619. static struct omap_hwmod_class am33xx_tptc_hwmod_class = {
  1620. .name = "tptc",
  1621. .sysc = &am33xx_tptc_sysc,
  1622. };
  1623. /* tptc0 */
  1624. static struct omap_hwmod_irq_info am33xx_tptc0_irqs[] = {
  1625. { .irq = 112 + OMAP_INTC_START, },
  1626. { .irq = -1 },
  1627. };
  1628. static struct omap_hwmod am33xx_tptc0_hwmod = {
  1629. .name = "tptc0",
  1630. .class = &am33xx_tptc_hwmod_class,
  1631. .clkdm_name = "l3_clkdm",
  1632. .mpu_irqs = am33xx_tptc0_irqs,
  1633. .main_clk = "l3_gclk",
  1634. .prcm = {
  1635. .omap4 = {
  1636. .clkctrl_offs = AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET,
  1637. .modulemode = MODULEMODE_SWCTRL,
  1638. },
  1639. },
  1640. };
  1641. /* tptc1 */
  1642. static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = {
  1643. { .irq = 113 + OMAP_INTC_START, },
  1644. { .irq = -1 },
  1645. };
  1646. static struct omap_hwmod am33xx_tptc1_hwmod = {
  1647. .name = "tptc1",
  1648. .class = &am33xx_tptc_hwmod_class,
  1649. .clkdm_name = "l3_clkdm",
  1650. .mpu_irqs = am33xx_tptc1_irqs,
  1651. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  1652. .main_clk = "l3_gclk",
  1653. .prcm = {
  1654. .omap4 = {
  1655. .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,
  1656. .modulemode = MODULEMODE_SWCTRL,
  1657. },
  1658. },
  1659. };
  1660. /* tptc2 */
  1661. static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = {
  1662. { .irq = 114 + OMAP_INTC_START, },
  1663. { .irq = -1 },
  1664. };
  1665. static struct omap_hwmod am33xx_tptc2_hwmod = {
  1666. .name = "tptc2",
  1667. .class = &am33xx_tptc_hwmod_class,
  1668. .clkdm_name = "l3_clkdm",
  1669. .mpu_irqs = am33xx_tptc2_irqs,
  1670. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  1671. .main_clk = "l3_gclk",
  1672. .prcm = {
  1673. .omap4 = {
  1674. .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,
  1675. .modulemode = MODULEMODE_SWCTRL,
  1676. },
  1677. },
  1678. };
  1679. /* 'uart' class */
  1680. static struct omap_hwmod_class_sysconfig uart_sysc = {
  1681. .rev_offs = 0x50,
  1682. .sysc_offs = 0x54,
  1683. .syss_offs = 0x58,
  1684. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
  1685. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  1686. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1687. SIDLE_SMART_WKUP),
  1688. .sysc_fields = &omap_hwmod_sysc_type1,
  1689. };
  1690. static struct omap_hwmod_class uart_class = {
  1691. .name = "uart",
  1692. .sysc = &uart_sysc,
  1693. };
  1694. /* uart1 */
  1695. static struct omap_hwmod_dma_info uart1_edma_reqs[] = {
  1696. { .name = "tx", .dma_req = 26, },
  1697. { .name = "rx", .dma_req = 27, },
  1698. { .dma_req = -1 }
  1699. };
  1700. static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = {
  1701. { .irq = 72 + OMAP_INTC_START, },
  1702. { .irq = -1 },
  1703. };
  1704. static struct omap_hwmod am33xx_uart1_hwmod = {
  1705. .name = "uart1",
  1706. .class = &uart_class,
  1707. .clkdm_name = "l4_wkup_clkdm",
  1708. .mpu_irqs = am33xx_uart1_irqs,
  1709. .sdma_reqs = uart1_edma_reqs,
  1710. .main_clk = "dpll_per_m2_div4_wkupdm_ck",
  1711. .prcm = {
  1712. .omap4 = {
  1713. .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,
  1714. .modulemode = MODULEMODE_SWCTRL,
  1715. },
  1716. },
  1717. };
  1718. static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = {
  1719. { .irq = 73 + OMAP_INTC_START, },
  1720. { .irq = -1 },
  1721. };
  1722. static struct omap_hwmod am33xx_uart2_hwmod = {
  1723. .name = "uart2",
  1724. .class = &uart_class,
  1725. .clkdm_name = "l4ls_clkdm",
  1726. .mpu_irqs = am33xx_uart2_irqs,
  1727. .sdma_reqs = uart1_edma_reqs,
  1728. .main_clk = "dpll_per_m2_div4_ck",
  1729. .prcm = {
  1730. .omap4 = {
  1731. .clkctrl_offs = AM33XX_CM_PER_UART1_CLKCTRL_OFFSET,
  1732. .modulemode = MODULEMODE_SWCTRL,
  1733. },
  1734. },
  1735. };
  1736. /* uart3 */
  1737. static struct omap_hwmod_dma_info uart3_edma_reqs[] = {
  1738. { .name = "tx", .dma_req = 30, },
  1739. { .name = "rx", .dma_req = 31, },
  1740. { .dma_req = -1 }
  1741. };
  1742. static struct omap_hwmod_irq_info am33xx_uart3_irqs[] = {
  1743. { .irq = 74 + OMAP_INTC_START, },
  1744. { .irq = -1 },
  1745. };
  1746. static struct omap_hwmod am33xx_uart3_hwmod = {
  1747. .name = "uart3",
  1748. .class = &uart_class,
  1749. .clkdm_name = "l4ls_clkdm",
  1750. .mpu_irqs = am33xx_uart3_irqs,
  1751. .sdma_reqs = uart3_edma_reqs,
  1752. .main_clk = "dpll_per_m2_div4_ck",
  1753. .prcm = {
  1754. .omap4 = {
  1755. .clkctrl_offs = AM33XX_CM_PER_UART2_CLKCTRL_OFFSET,
  1756. .modulemode = MODULEMODE_SWCTRL,
  1757. },
  1758. },
  1759. };
  1760. static struct omap_hwmod_irq_info am33xx_uart4_irqs[] = {
  1761. { .irq = 44 + OMAP_INTC_START, },
  1762. { .irq = -1 },
  1763. };
  1764. static struct omap_hwmod am33xx_uart4_hwmod = {
  1765. .name = "uart4",
  1766. .class = &uart_class,
  1767. .clkdm_name = "l4ls_clkdm",
  1768. .mpu_irqs = am33xx_uart4_irqs,
  1769. .sdma_reqs = uart1_edma_reqs,
  1770. .main_clk = "dpll_per_m2_div4_ck",
  1771. .prcm = {
  1772. .omap4 = {
  1773. .clkctrl_offs = AM33XX_CM_PER_UART3_CLKCTRL_OFFSET,
  1774. .modulemode = MODULEMODE_SWCTRL,
  1775. },
  1776. },
  1777. };
  1778. static struct omap_hwmod_irq_info am33xx_uart5_irqs[] = {
  1779. { .irq = 45 + OMAP_INTC_START, },
  1780. { .irq = -1 },
  1781. };
  1782. static struct omap_hwmod am33xx_uart5_hwmod = {
  1783. .name = "uart5",
  1784. .class = &uart_class,
  1785. .clkdm_name = "l4ls_clkdm",
  1786. .mpu_irqs = am33xx_uart5_irqs,
  1787. .sdma_reqs = uart1_edma_reqs,
  1788. .main_clk = "dpll_per_m2_div4_ck",
  1789. .prcm = {
  1790. .omap4 = {
  1791. .clkctrl_offs = AM33XX_CM_PER_UART4_CLKCTRL_OFFSET,
  1792. .modulemode = MODULEMODE_SWCTRL,
  1793. },
  1794. },
  1795. };
  1796. static struct omap_hwmod_irq_info am33xx_uart6_irqs[] = {
  1797. { .irq = 46 + OMAP_INTC_START, },
  1798. { .irq = -1 },
  1799. };
  1800. static struct omap_hwmod am33xx_uart6_hwmod = {
  1801. .name = "uart6",
  1802. .class = &uart_class,
  1803. .clkdm_name = "l4ls_clkdm",
  1804. .mpu_irqs = am33xx_uart6_irqs,
  1805. .sdma_reqs = uart1_edma_reqs,
  1806. .main_clk = "dpll_per_m2_div4_ck",
  1807. .prcm = {
  1808. .omap4 = {
  1809. .clkctrl_offs = AM33XX_CM_PER_UART5_CLKCTRL_OFFSET,
  1810. .modulemode = MODULEMODE_SWCTRL,
  1811. },
  1812. },
  1813. };
  1814. /* 'wd_timer' class */
  1815. static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = {
  1816. .name = "wd_timer",
  1817. };
  1818. /*
  1819. * XXX: device.c file uses hardcoded name for watchdog timer
  1820. * driver "wd_timer2, so we are also using same name as of now...
  1821. */
  1822. static struct omap_hwmod am33xx_wd_timer1_hwmod = {
  1823. .name = "wd_timer2",
  1824. .class = &am33xx_wd_timer_hwmod_class,
  1825. .clkdm_name = "l4_wkup_clkdm",
  1826. .main_clk = "wdt1_fck",
  1827. .prcm = {
  1828. .omap4 = {
  1829. .clkctrl_offs = AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET,
  1830. .modulemode = MODULEMODE_SWCTRL,
  1831. },
  1832. },
  1833. };
  1834. /*
  1835. * 'usb_otg' class
  1836. * high-speed on-the-go universal serial bus (usb_otg) controller
  1837. */
  1838. static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = {
  1839. .rev_offs = 0x0,
  1840. .sysc_offs = 0x10,
  1841. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  1842. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1843. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1844. .sysc_fields = &omap_hwmod_sysc_type2,
  1845. };
  1846. static struct omap_hwmod_class am33xx_usbotg_class = {
  1847. .name = "usbotg",
  1848. .sysc = &am33xx_usbhsotg_sysc,
  1849. };
  1850. static struct omap_hwmod_irq_info am33xx_usbss_mpu_irqs[] = {
  1851. { .name = "usbss-irq", .irq = 17 + OMAP_INTC_START, },
  1852. { .name = "musb0-irq", .irq = 18 + OMAP_INTC_START, },
  1853. { .name = "musb1-irq", .irq = 19 + OMAP_INTC_START, },
  1854. { .irq = -1 + OMAP_INTC_START, },
  1855. };
  1856. static struct omap_hwmod am33xx_usbss_hwmod = {
  1857. .name = "usb_otg_hs",
  1858. .class = &am33xx_usbotg_class,
  1859. .clkdm_name = "l3s_clkdm",
  1860. .mpu_irqs = am33xx_usbss_mpu_irqs,
  1861. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1862. .main_clk = "usbotg_fck",
  1863. .prcm = {
  1864. .omap4 = {
  1865. .clkctrl_offs = AM33XX_CM_PER_USB0_CLKCTRL_OFFSET,
  1866. .modulemode = MODULEMODE_SWCTRL,
  1867. },
  1868. },
  1869. };
  1870. /*
  1871. * Interfaces
  1872. */
  1873. /* l4 fw -> emif fw */
  1874. static struct omap_hwmod_ocp_if am33xx_l4_fw__emif_fw = {
  1875. .master = &am33xx_l4_fw_hwmod,
  1876. .slave = &am33xx_emif_fw_hwmod,
  1877. .clk = "l4fw_gclk",
  1878. .user = OCP_USER_MPU,
  1879. };
  1880. static struct omap_hwmod_addr_space am33xx_emif_addrs[] = {
  1881. {
  1882. .pa_start = 0x4c000000,
  1883. .pa_end = 0x4c000fff,
  1884. .flags = ADDR_TYPE_RT
  1885. },
  1886. { }
  1887. };
  1888. /* l3 main -> emif */
  1889. static struct omap_hwmod_ocp_if am33xx_l3_main__emif = {
  1890. .master = &am33xx_l3_main_hwmod,
  1891. .slave = &am33xx_emif_hwmod,
  1892. .clk = "dpll_core_m4_ck",
  1893. .addr = am33xx_emif_addrs,
  1894. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1895. };
  1896. /* mpu -> l3 main */
  1897. static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {
  1898. .master = &am33xx_mpu_hwmod,
  1899. .slave = &am33xx_l3_main_hwmod,
  1900. .clk = "dpll_mpu_m2_ck",
  1901. .user = OCP_USER_MPU,
  1902. };
  1903. /* l3 main -> l4 hs */
  1904. static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = {
  1905. .master = &am33xx_l3_main_hwmod,
  1906. .slave = &am33xx_l4_hs_hwmod,
  1907. .clk = "l3s_gclk",
  1908. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1909. };
  1910. /* l3 main -> l3 s */
  1911. static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {
  1912. .master = &am33xx_l3_main_hwmod,
  1913. .slave = &am33xx_l3_s_hwmod,
  1914. .clk = "l3s_gclk",
  1915. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1916. };
  1917. /* l3 s -> l4 per/ls */
  1918. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {
  1919. .master = &am33xx_l3_s_hwmod,
  1920. .slave = &am33xx_l4_ls_hwmod,
  1921. .clk = "l3s_gclk",
  1922. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1923. };
  1924. /* l3 s -> l4 wkup */
  1925. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {
  1926. .master = &am33xx_l3_s_hwmod,
  1927. .slave = &am33xx_l4_wkup_hwmod,
  1928. .clk = "l3s_gclk",
  1929. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1930. };
  1931. /* l3 s -> l4 fw */
  1932. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_fw = {
  1933. .master = &am33xx_l3_s_hwmod,
  1934. .slave = &am33xx_l4_fw_hwmod,
  1935. .clk = "l3s_gclk",
  1936. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1937. };
  1938. /* l3 main -> l3 instr */
  1939. static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {
  1940. .master = &am33xx_l3_main_hwmod,
  1941. .slave = &am33xx_l3_instr_hwmod,
  1942. .clk = "l3s_gclk",
  1943. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1944. };
  1945. /* mpu -> prcm */
  1946. static struct omap_hwmod_ocp_if am33xx_mpu__prcm = {
  1947. .master = &am33xx_mpu_hwmod,
  1948. .slave = &am33xx_prcm_hwmod,
  1949. .clk = "dpll_mpu_m2_ck",
  1950. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1951. };
  1952. /* l3 s -> l3 main*/
  1953. static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
  1954. .master = &am33xx_l3_s_hwmod,
  1955. .slave = &am33xx_l3_main_hwmod,
  1956. .clk = "l3s_gclk",
  1957. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1958. };
  1959. /* pru-icss -> l3 main */
  1960. static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {
  1961. .master = &am33xx_pruss_hwmod,
  1962. .slave = &am33xx_l3_main_hwmod,
  1963. .clk = "l3_gclk",
  1964. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1965. };
  1966. /* wkup m3 -> l4 wkup */
  1967. static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = {
  1968. .master = &am33xx_wkup_m3_hwmod,
  1969. .slave = &am33xx_l4_wkup_hwmod,
  1970. .clk = "dpll_core_m4_div2_ck",
  1971. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1972. };
  1973. /* gfx -> l3 main */
  1974. static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {
  1975. .master = &am33xx_gfx_hwmod,
  1976. .slave = &am33xx_l3_main_hwmod,
  1977. .clk = "dpll_core_m4_ck",
  1978. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1979. };
  1980. /* l4 wkup -> wkup m3 */
  1981. static struct omap_hwmod_addr_space am33xx_wkup_m3_addrs[] = {
  1982. {
  1983. .name = "umem",
  1984. .pa_start = 0x44d00000,
  1985. .pa_end = 0x44d00000 + SZ_16K - 1,
  1986. .flags = ADDR_TYPE_RT
  1987. },
  1988. {
  1989. .name = "dmem",
  1990. .pa_start = 0x44d80000,
  1991. .pa_end = 0x44d80000 + SZ_8K - 1,
  1992. .flags = ADDR_TYPE_RT
  1993. },
  1994. { }
  1995. };
  1996. static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = {
  1997. .master = &am33xx_l4_wkup_hwmod,
  1998. .slave = &am33xx_wkup_m3_hwmod,
  1999. .clk = "dpll_core_m4_div2_ck",
  2000. .addr = am33xx_wkup_m3_addrs,
  2001. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2002. };
  2003. /* l4 hs -> pru-icss */
  2004. static struct omap_hwmod_addr_space am33xx_pruss_addrs[] = {
  2005. {
  2006. .pa_start = 0x4a300000,
  2007. .pa_end = 0x4a300000 + SZ_512K - 1,
  2008. .flags = ADDR_TYPE_RT
  2009. },
  2010. { }
  2011. };
  2012. static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss = {
  2013. .master = &am33xx_l4_hs_hwmod,
  2014. .slave = &am33xx_pruss_hwmod,
  2015. .clk = "dpll_core_m4_ck",
  2016. .addr = am33xx_pruss_addrs,
  2017. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2018. };
  2019. /* l3 main -> gfx */
  2020. static struct omap_hwmod_addr_space am33xx_gfx_addrs[] = {
  2021. {
  2022. .pa_start = 0x56000000,
  2023. .pa_end = 0x56000000 + SZ_16M - 1,
  2024. .flags = ADDR_TYPE_RT
  2025. },
  2026. { }
  2027. };
  2028. static struct omap_hwmod_ocp_if am33xx_l3_main__gfx = {
  2029. .master = &am33xx_l3_main_hwmod,
  2030. .slave = &am33xx_gfx_hwmod,
  2031. .clk = "dpll_core_m4_ck",
  2032. .addr = am33xx_gfx_addrs,
  2033. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2034. };
  2035. /* l4 wkup -> smartreflex0 */
  2036. static struct omap_hwmod_addr_space am33xx_smartreflex0_addrs[] = {
  2037. {
  2038. .pa_start = 0x44e37000,
  2039. .pa_end = 0x44e37000 + SZ_4K - 1,
  2040. .flags = ADDR_TYPE_RT
  2041. },
  2042. { }
  2043. };
  2044. static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0 = {
  2045. .master = &am33xx_l4_wkup_hwmod,
  2046. .slave = &am33xx_smartreflex0_hwmod,
  2047. .clk = "dpll_core_m4_div2_ck",
  2048. .addr = am33xx_smartreflex0_addrs,
  2049. .user = OCP_USER_MPU,
  2050. };
  2051. /* l4 wkup -> smartreflex1 */
  2052. static struct omap_hwmod_addr_space am33xx_smartreflex1_addrs[] = {
  2053. {
  2054. .pa_start = 0x44e39000,
  2055. .pa_end = 0x44e39000 + SZ_4K - 1,
  2056. .flags = ADDR_TYPE_RT
  2057. },
  2058. { }
  2059. };
  2060. static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1 = {
  2061. .master = &am33xx_l4_wkup_hwmod,
  2062. .slave = &am33xx_smartreflex1_hwmod,
  2063. .clk = "dpll_core_m4_div2_ck",
  2064. .addr = am33xx_smartreflex1_addrs,
  2065. .user = OCP_USER_MPU,
  2066. };
  2067. /* l4 wkup -> control */
  2068. static struct omap_hwmod_addr_space am33xx_control_addrs[] = {
  2069. {
  2070. .pa_start = 0x44e10000,
  2071. .pa_end = 0x44e10000 + SZ_8K - 1,
  2072. .flags = ADDR_TYPE_RT
  2073. },
  2074. { }
  2075. };
  2076. static struct omap_hwmod_ocp_if am33xx_l4_wkup__control = {
  2077. .master = &am33xx_l4_wkup_hwmod,
  2078. .slave = &am33xx_control_hwmod,
  2079. .clk = "dpll_core_m4_div2_ck",
  2080. .addr = am33xx_control_addrs,
  2081. .user = OCP_USER_MPU,
  2082. };
  2083. /* l4 wkup -> rtc */
  2084. static struct omap_hwmod_addr_space am33xx_rtc_addrs[] = {
  2085. {
  2086. .pa_start = 0x44e3e000,
  2087. .pa_end = 0x44e3e000 + SZ_4K - 1,
  2088. .flags = ADDR_TYPE_RT
  2089. },
  2090. { }
  2091. };
  2092. static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = {
  2093. .master = &am33xx_l4_wkup_hwmod,
  2094. .slave = &am33xx_rtc_hwmod,
  2095. .clk = "clkdiv32k_ick",
  2096. .addr = am33xx_rtc_addrs,
  2097. .user = OCP_USER_MPU,
  2098. };
  2099. /* l4 per/ls -> DCAN0 */
  2100. static struct omap_hwmod_addr_space am33xx_dcan0_addrs[] = {
  2101. {
  2102. .pa_start = 0x481CC000,
  2103. .pa_end = 0x481CC000 + SZ_4K - 1,
  2104. .flags = ADDR_TYPE_RT
  2105. },
  2106. { }
  2107. };
  2108. static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = {
  2109. .master = &am33xx_l4_ls_hwmod,
  2110. .slave = &am33xx_dcan0_hwmod,
  2111. .clk = "l4ls_gclk",
  2112. .addr = am33xx_dcan0_addrs,
  2113. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2114. };
  2115. /* l4 per/ls -> DCAN1 */
  2116. static struct omap_hwmod_addr_space am33xx_dcan1_addrs[] = {
  2117. {
  2118. .pa_start = 0x481D0000,
  2119. .pa_end = 0x481D0000 + SZ_4K - 1,
  2120. .flags = ADDR_TYPE_RT
  2121. },
  2122. { }
  2123. };
  2124. static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = {
  2125. .master = &am33xx_l4_ls_hwmod,
  2126. .slave = &am33xx_dcan1_hwmod,
  2127. .clk = "l4ls_gclk",
  2128. .addr = am33xx_dcan1_addrs,
  2129. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2130. };
  2131. /* l4 per/ls -> GPIO2 */
  2132. static struct omap_hwmod_addr_space am33xx_gpio1_addrs[] = {
  2133. {
  2134. .pa_start = 0x4804C000,
  2135. .pa_end = 0x4804C000 + SZ_4K - 1,
  2136. .flags = ADDR_TYPE_RT,
  2137. },
  2138. { }
  2139. };
  2140. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = {
  2141. .master = &am33xx_l4_ls_hwmod,
  2142. .slave = &am33xx_gpio1_hwmod,
  2143. .clk = "l4ls_gclk",
  2144. .addr = am33xx_gpio1_addrs,
  2145. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2146. };
  2147. /* l4 per/ls -> gpio3 */
  2148. static struct omap_hwmod_addr_space am33xx_gpio2_addrs[] = {
  2149. {
  2150. .pa_start = 0x481AC000,
  2151. .pa_end = 0x481AC000 + SZ_4K - 1,
  2152. .flags = ADDR_TYPE_RT,
  2153. },
  2154. { }
  2155. };
  2156. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = {
  2157. .master = &am33xx_l4_ls_hwmod,
  2158. .slave = &am33xx_gpio2_hwmod,
  2159. .clk = "l4ls_gclk",
  2160. .addr = am33xx_gpio2_addrs,
  2161. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2162. };
  2163. /* l4 per/ls -> gpio4 */
  2164. static struct omap_hwmod_addr_space am33xx_gpio3_addrs[] = {
  2165. {
  2166. .pa_start = 0x481AE000,
  2167. .pa_end = 0x481AE000 + SZ_4K - 1,
  2168. .flags = ADDR_TYPE_RT,
  2169. },
  2170. { }
  2171. };
  2172. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = {
  2173. .master = &am33xx_l4_ls_hwmod,
  2174. .slave = &am33xx_gpio3_hwmod,
  2175. .clk = "l4ls_gclk",
  2176. .addr = am33xx_gpio3_addrs,
  2177. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2178. };
  2179. /* L4 WKUP -> I2C1 */
  2180. static struct omap_hwmod_addr_space am33xx_i2c1_addr_space[] = {
  2181. {
  2182. .pa_start = 0x44E0B000,
  2183. .pa_end = 0x44E0B000 + SZ_4K - 1,
  2184. .flags = ADDR_TYPE_RT,
  2185. },
  2186. { }
  2187. };
  2188. static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1 = {
  2189. .master = &am33xx_l4_wkup_hwmod,
  2190. .slave = &am33xx_i2c1_hwmod,
  2191. .clk = "dpll_core_m4_div2_ck",
  2192. .addr = am33xx_i2c1_addr_space,
  2193. .user = OCP_USER_MPU,
  2194. };
  2195. /* L4 WKUP -> GPIO1 */
  2196. static struct omap_hwmod_addr_space am33xx_gpio0_addrs[] = {
  2197. {
  2198. .pa_start = 0x44E07000,
  2199. .pa_end = 0x44E07000 + SZ_4K - 1,
  2200. .flags = ADDR_TYPE_RT,
  2201. },
  2202. { }
  2203. };
  2204. static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0 = {
  2205. .master = &am33xx_l4_wkup_hwmod,
  2206. .slave = &am33xx_gpio0_hwmod,
  2207. .clk = "dpll_core_m4_div2_ck",
  2208. .addr = am33xx_gpio0_addrs,
  2209. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2210. };
  2211. /* L4 WKUP -> ADC_TSC */
  2212. static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs[] = {
  2213. {
  2214. .pa_start = 0x44E0D000,
  2215. .pa_end = 0x44E0D000 + SZ_8K - 1,
  2216. .flags = ADDR_TYPE_RT
  2217. },
  2218. { }
  2219. };
  2220. static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = {
  2221. .master = &am33xx_l4_wkup_hwmod,
  2222. .slave = &am33xx_adc_tsc_hwmod,
  2223. .clk = "dpll_core_m4_div2_ck",
  2224. .addr = am33xx_adc_tsc_addrs,
  2225. .user = OCP_USER_MPU,
  2226. };
  2227. static struct omap_hwmod_addr_space am33xx_cpgmac0_addr_space[] = {
  2228. /* cpsw ss */
  2229. {
  2230. .pa_start = 0x4a100000,
  2231. .pa_end = 0x4a100000 + SZ_2K - 1,
  2232. .flags = ADDR_TYPE_RT,
  2233. },
  2234. /* cpsw wr */
  2235. {
  2236. .pa_start = 0x4a101200,
  2237. .pa_end = 0x4a101200 + SZ_256 - 1,
  2238. .flags = ADDR_TYPE_RT,
  2239. },
  2240. { }
  2241. };
  2242. static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = {
  2243. .master = &am33xx_l4_hs_hwmod,
  2244. .slave = &am33xx_cpgmac0_hwmod,
  2245. .clk = "cpsw_125mhz_gclk",
  2246. .addr = am33xx_cpgmac0_addr_space,
  2247. .user = OCP_USER_MPU,
  2248. };
  2249. struct omap_hwmod_addr_space am33xx_mdio_addr_space[] = {
  2250. {
  2251. .pa_start = 0x4A101000,
  2252. .pa_end = 0x4A101000 + SZ_256 - 1,
  2253. },
  2254. { }
  2255. };
  2256. struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = {
  2257. .master = &am33xx_cpgmac0_hwmod,
  2258. .slave = &am33xx_mdio_hwmod,
  2259. .addr = am33xx_mdio_addr_space,
  2260. .user = OCP_USER_MPU,
  2261. };
  2262. static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = {
  2263. {
  2264. .pa_start = 0x48080000,
  2265. .pa_end = 0x48080000 + SZ_8K - 1,
  2266. .flags = ADDR_TYPE_RT
  2267. },
  2268. { }
  2269. };
  2270. static struct omap_hwmod_ocp_if am33xx_l4_ls__elm = {
  2271. .master = &am33xx_l4_ls_hwmod,
  2272. .slave = &am33xx_elm_hwmod,
  2273. .clk = "l4ls_gclk",
  2274. .addr = am33xx_elm_addr_space,
  2275. .user = OCP_USER_MPU,
  2276. };
  2277. /*
  2278. * Splitting the resources to handle access of PWMSS config space
  2279. * and module specific part independently
  2280. */
  2281. static struct omap_hwmod_addr_space am33xx_ehrpwm0_addr_space[] = {
  2282. {
  2283. .pa_start = 0x48300000,
  2284. .pa_end = 0x48300000 + SZ_16 - 1,
  2285. .flags = ADDR_TYPE_RT
  2286. },
  2287. {
  2288. .pa_start = 0x48300200,
  2289. .pa_end = 0x48300200 + SZ_256 - 1,
  2290. .flags = ADDR_TYPE_RT
  2291. },
  2292. { }
  2293. };
  2294. static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm0 = {
  2295. .master = &am33xx_l4_ls_hwmod,
  2296. .slave = &am33xx_ehrpwm0_hwmod,
  2297. .clk = "l4ls_gclk",
  2298. .addr = am33xx_ehrpwm0_addr_space,
  2299. .user = OCP_USER_MPU,
  2300. };
  2301. /*
  2302. * Splitting the resources to handle access of PWMSS config space
  2303. * and module specific part independently
  2304. */
  2305. static struct omap_hwmod_addr_space am33xx_ehrpwm1_addr_space[] = {
  2306. {
  2307. .pa_start = 0x48302000,
  2308. .pa_end = 0x48302000 + SZ_16 - 1,
  2309. .flags = ADDR_TYPE_RT
  2310. },
  2311. {
  2312. .pa_start = 0x48302200,
  2313. .pa_end = 0x48302200 + SZ_256 - 1,
  2314. .flags = ADDR_TYPE_RT
  2315. },
  2316. { }
  2317. };
  2318. static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm1 = {
  2319. .master = &am33xx_l4_ls_hwmod,
  2320. .slave = &am33xx_ehrpwm1_hwmod,
  2321. .clk = "l4ls_gclk",
  2322. .addr = am33xx_ehrpwm1_addr_space,
  2323. .user = OCP_USER_MPU,
  2324. };
  2325. /*
  2326. * Splitting the resources to handle access of PWMSS config space
  2327. * and module specific part independently
  2328. */
  2329. static struct omap_hwmod_addr_space am33xx_ehrpwm2_addr_space[] = {
  2330. {
  2331. .pa_start = 0x48304000,
  2332. .pa_end = 0x48304000 + SZ_16 - 1,
  2333. .flags = ADDR_TYPE_RT
  2334. },
  2335. {
  2336. .pa_start = 0x48304200,
  2337. .pa_end = 0x48304200 + SZ_256 - 1,
  2338. .flags = ADDR_TYPE_RT
  2339. },
  2340. { }
  2341. };
  2342. static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm2 = {
  2343. .master = &am33xx_l4_ls_hwmod,
  2344. .slave = &am33xx_ehrpwm2_hwmod,
  2345. .clk = "l4ls_gclk",
  2346. .addr = am33xx_ehrpwm2_addr_space,
  2347. .user = OCP_USER_MPU,
  2348. };
  2349. /*
  2350. * Splitting the resources to handle access of PWMSS config space
  2351. * and module specific part independently
  2352. */
  2353. static struct omap_hwmod_addr_space am33xx_ecap0_addr_space[] = {
  2354. {
  2355. .pa_start = 0x48300000,
  2356. .pa_end = 0x48300000 + SZ_16 - 1,
  2357. .flags = ADDR_TYPE_RT
  2358. },
  2359. {
  2360. .pa_start = 0x48300100,
  2361. .pa_end = 0x48300100 + SZ_256 - 1,
  2362. .flags = ADDR_TYPE_RT
  2363. },
  2364. { }
  2365. };
  2366. static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap0 = {
  2367. .master = &am33xx_l4_ls_hwmod,
  2368. .slave = &am33xx_ecap0_hwmod,
  2369. .clk = "l4ls_gclk",
  2370. .addr = am33xx_ecap0_addr_space,
  2371. .user = OCP_USER_MPU,
  2372. };
  2373. /*
  2374. * Splitting the resources to handle access of PWMSS config space
  2375. * and module specific part independently
  2376. */
  2377. static struct omap_hwmod_addr_space am33xx_ecap1_addr_space[] = {
  2378. {
  2379. .pa_start = 0x48302000,
  2380. .pa_end = 0x48302000 + SZ_16 - 1,
  2381. .flags = ADDR_TYPE_RT
  2382. },
  2383. {
  2384. .pa_start = 0x48302100,
  2385. .pa_end = 0x48302100 + SZ_256 - 1,
  2386. .flags = ADDR_TYPE_RT
  2387. },
  2388. { }
  2389. };
  2390. static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap1 = {
  2391. .master = &am33xx_l4_ls_hwmod,
  2392. .slave = &am33xx_ecap1_hwmod,
  2393. .clk = "l4ls_gclk",
  2394. .addr = am33xx_ecap1_addr_space,
  2395. .user = OCP_USER_MPU,
  2396. };
  2397. /*
  2398. * Splitting the resources to handle access of PWMSS config space
  2399. * and module specific part independently
  2400. */
  2401. static struct omap_hwmod_addr_space am33xx_ecap2_addr_space[] = {
  2402. {
  2403. .pa_start = 0x48304000,
  2404. .pa_end = 0x48304000 + SZ_16 - 1,
  2405. .flags = ADDR_TYPE_RT
  2406. },
  2407. {
  2408. .pa_start = 0x48304100,
  2409. .pa_end = 0x48304100 + SZ_256 - 1,
  2410. .flags = ADDR_TYPE_RT
  2411. },
  2412. { }
  2413. };
  2414. static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap2 = {
  2415. .master = &am33xx_l4_ls_hwmod,
  2416. .slave = &am33xx_ecap2_hwmod,
  2417. .clk = "l4ls_gclk",
  2418. .addr = am33xx_ecap2_addr_space,
  2419. .user = OCP_USER_MPU,
  2420. };
  2421. /* l3s cfg -> gpmc */
  2422. static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = {
  2423. {
  2424. .pa_start = 0x50000000,
  2425. .pa_end = 0x50000000 + SZ_8K - 1,
  2426. .flags = ADDR_TYPE_RT,
  2427. },
  2428. { }
  2429. };
  2430. static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
  2431. .master = &am33xx_l3_s_hwmod,
  2432. .slave = &am33xx_gpmc_hwmod,
  2433. .clk = "l3s_gclk",
  2434. .addr = am33xx_gpmc_addr_space,
  2435. .user = OCP_USER_MPU,
  2436. };
  2437. /* i2c2 */
  2438. static struct omap_hwmod_addr_space am33xx_i2c2_addr_space[] = {
  2439. {
  2440. .pa_start = 0x4802A000,
  2441. .pa_end = 0x4802A000 + SZ_4K - 1,
  2442. .flags = ADDR_TYPE_RT,
  2443. },
  2444. { }
  2445. };
  2446. static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
  2447. .master = &am33xx_l4_ls_hwmod,
  2448. .slave = &am33xx_i2c2_hwmod,
  2449. .clk = "l4ls_gclk",
  2450. .addr = am33xx_i2c2_addr_space,
  2451. .user = OCP_USER_MPU,
  2452. };
  2453. static struct omap_hwmod_addr_space am33xx_i2c3_addr_space[] = {
  2454. {
  2455. .pa_start = 0x4819C000,
  2456. .pa_end = 0x4819C000 + SZ_4K - 1,
  2457. .flags = ADDR_TYPE_RT
  2458. },
  2459. { }
  2460. };
  2461. static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
  2462. .master = &am33xx_l4_ls_hwmod,
  2463. .slave = &am33xx_i2c3_hwmod,
  2464. .clk = "l4ls_gclk",
  2465. .addr = am33xx_i2c3_addr_space,
  2466. .user = OCP_USER_MPU,
  2467. };
  2468. static struct omap_hwmod_addr_space am33xx_lcdc_addr_space[] = {
  2469. {
  2470. .pa_start = 0x4830E000,
  2471. .pa_end = 0x4830E000 + SZ_8K - 1,
  2472. .flags = ADDR_TYPE_RT,
  2473. },
  2474. { }
  2475. };
  2476. static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = {
  2477. .master = &am33xx_l3_main_hwmod,
  2478. .slave = &am33xx_lcdc_hwmod,
  2479. .clk = "dpll_core_m4_ck",
  2480. .addr = am33xx_lcdc_addr_space,
  2481. .user = OCP_USER_MPU,
  2482. };
  2483. static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = {
  2484. {
  2485. .pa_start = 0x480C8000,
  2486. .pa_end = 0x480C8000 + (SZ_4K - 1),
  2487. .flags = ADDR_TYPE_RT
  2488. },
  2489. { }
  2490. };
  2491. /* l4 ls -> mailbox */
  2492. static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
  2493. .master = &am33xx_l4_ls_hwmod,
  2494. .slave = &am33xx_mailbox_hwmod,
  2495. .clk = "l4ls_gclk",
  2496. .addr = am33xx_mailbox_addrs,
  2497. .user = OCP_USER_MPU,
  2498. };
  2499. /* l4 ls -> spinlock */
  2500. static struct omap_hwmod_addr_space am33xx_spinlock_addrs[] = {
  2501. {
  2502. .pa_start = 0x480Ca000,
  2503. .pa_end = 0x480Ca000 + SZ_4K - 1,
  2504. .flags = ADDR_TYPE_RT
  2505. },
  2506. { }
  2507. };
  2508. static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
  2509. .master = &am33xx_l4_ls_hwmod,
  2510. .slave = &am33xx_spinlock_hwmod,
  2511. .clk = "l4ls_gclk",
  2512. .addr = am33xx_spinlock_addrs,
  2513. .user = OCP_USER_MPU,
  2514. };
  2515. /* l4 ls -> mcasp0 */
  2516. static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
  2517. {
  2518. .pa_start = 0x48038000,
  2519. .pa_end = 0x48038000 + SZ_8K - 1,
  2520. .flags = ADDR_TYPE_RT
  2521. },
  2522. { }
  2523. };
  2524. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
  2525. .master = &am33xx_l4_ls_hwmod,
  2526. .slave = &am33xx_mcasp0_hwmod,
  2527. .clk = "l4ls_gclk",
  2528. .addr = am33xx_mcasp0_addr_space,
  2529. .user = OCP_USER_MPU,
  2530. };
  2531. /* l3 s -> mcasp0 data */
  2532. static struct omap_hwmod_addr_space am33xx_mcasp0_data_addr_space[] = {
  2533. {
  2534. .pa_start = 0x46000000,
  2535. .pa_end = 0x46000000 + SZ_4M - 1,
  2536. .flags = ADDR_TYPE_RT
  2537. },
  2538. { }
  2539. };
  2540. static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp0_data = {
  2541. .master = &am33xx_l3_s_hwmod,
  2542. .slave = &am33xx_mcasp0_hwmod,
  2543. .clk = "l3s_gclk",
  2544. .addr = am33xx_mcasp0_data_addr_space,
  2545. .user = OCP_USER_SDMA,
  2546. };
  2547. /* l4 ls -> mcasp1 */
  2548. static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
  2549. {
  2550. .pa_start = 0x4803C000,
  2551. .pa_end = 0x4803C000 + SZ_8K - 1,
  2552. .flags = ADDR_TYPE_RT
  2553. },
  2554. { }
  2555. };
  2556. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
  2557. .master = &am33xx_l4_ls_hwmod,
  2558. .slave = &am33xx_mcasp1_hwmod,
  2559. .clk = "l4ls_gclk",
  2560. .addr = am33xx_mcasp1_addr_space,
  2561. .user = OCP_USER_MPU,
  2562. };
  2563. /* l3 s -> mcasp1 data */
  2564. static struct omap_hwmod_addr_space am33xx_mcasp1_data_addr_space[] = {
  2565. {
  2566. .pa_start = 0x46400000,
  2567. .pa_end = 0x46400000 + SZ_4M - 1,
  2568. .flags = ADDR_TYPE_RT
  2569. },
  2570. { }
  2571. };
  2572. static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp1_data = {
  2573. .master = &am33xx_l3_s_hwmod,
  2574. .slave = &am33xx_mcasp1_hwmod,
  2575. .clk = "l3s_gclk",
  2576. .addr = am33xx_mcasp1_data_addr_space,
  2577. .user = OCP_USER_SDMA,
  2578. };
  2579. /* l4 ls -> mmc0 */
  2580. static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
  2581. {
  2582. .pa_start = 0x48060100,
  2583. .pa_end = 0x48060100 + SZ_4K - 1,
  2584. .flags = ADDR_TYPE_RT,
  2585. },
  2586. { }
  2587. };
  2588. static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
  2589. .master = &am33xx_l4_ls_hwmod,
  2590. .slave = &am33xx_mmc0_hwmod,
  2591. .clk = "l4ls_gclk",
  2592. .addr = am33xx_mmc0_addr_space,
  2593. .user = OCP_USER_MPU,
  2594. };
  2595. /* l4 ls -> mmc1 */
  2596. static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
  2597. {
  2598. .pa_start = 0x481d8100,
  2599. .pa_end = 0x481d8100 + SZ_4K - 1,
  2600. .flags = ADDR_TYPE_RT,
  2601. },
  2602. { }
  2603. };
  2604. static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
  2605. .master = &am33xx_l4_ls_hwmod,
  2606. .slave = &am33xx_mmc1_hwmod,
  2607. .clk = "l4ls_gclk",
  2608. .addr = am33xx_mmc1_addr_space,
  2609. .user = OCP_USER_MPU,
  2610. };
  2611. /* l3 s -> mmc2 */
  2612. static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
  2613. {
  2614. .pa_start = 0x47810100,
  2615. .pa_end = 0x47810100 + SZ_64K - 1,
  2616. .flags = ADDR_TYPE_RT,
  2617. },
  2618. { }
  2619. };
  2620. static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
  2621. .master = &am33xx_l3_s_hwmod,
  2622. .slave = &am33xx_mmc2_hwmod,
  2623. .clk = "l3s_gclk",
  2624. .addr = am33xx_mmc2_addr_space,
  2625. .user = OCP_USER_MPU,
  2626. };
  2627. /* l4 ls -> mcspi0 */
  2628. static struct omap_hwmod_addr_space am33xx_mcspi0_addr_space[] = {
  2629. {
  2630. .pa_start = 0x48030000,
  2631. .pa_end = 0x48030000 + SZ_1K - 1,
  2632. .flags = ADDR_TYPE_RT,
  2633. },
  2634. { }
  2635. };
  2636. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
  2637. .master = &am33xx_l4_ls_hwmod,
  2638. .slave = &am33xx_spi0_hwmod,
  2639. .clk = "l4ls_gclk",
  2640. .addr = am33xx_mcspi0_addr_space,
  2641. .user = OCP_USER_MPU,
  2642. };
  2643. /* l4 ls -> mcspi1 */
  2644. static struct omap_hwmod_addr_space am33xx_mcspi1_addr_space[] = {
  2645. {
  2646. .pa_start = 0x481A0000,
  2647. .pa_end = 0x481A0000 + SZ_1K - 1,
  2648. .flags = ADDR_TYPE_RT,
  2649. },
  2650. { }
  2651. };
  2652. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
  2653. .master = &am33xx_l4_ls_hwmod,
  2654. .slave = &am33xx_spi1_hwmod,
  2655. .clk = "l4ls_gclk",
  2656. .addr = am33xx_mcspi1_addr_space,
  2657. .user = OCP_USER_MPU,
  2658. };
  2659. /* l4 wkup -> timer1 */
  2660. static struct omap_hwmod_addr_space am33xx_timer1_addr_space[] = {
  2661. {
  2662. .pa_start = 0x44E31000,
  2663. .pa_end = 0x44E31000 + SZ_1K - 1,
  2664. .flags = ADDR_TYPE_RT
  2665. },
  2666. { }
  2667. };
  2668. static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1 = {
  2669. .master = &am33xx_l4_wkup_hwmod,
  2670. .slave = &am33xx_timer1_hwmod,
  2671. .clk = "dpll_core_m4_div2_ck",
  2672. .addr = am33xx_timer1_addr_space,
  2673. .user = OCP_USER_MPU,
  2674. };
  2675. /* l4 per -> timer2 */
  2676. static struct omap_hwmod_addr_space am33xx_timer2_addr_space[] = {
  2677. {
  2678. .pa_start = 0x48040000,
  2679. .pa_end = 0x48040000 + SZ_1K - 1,
  2680. .flags = ADDR_TYPE_RT
  2681. },
  2682. { }
  2683. };
  2684. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
  2685. .master = &am33xx_l4_ls_hwmod,
  2686. .slave = &am33xx_timer2_hwmod,
  2687. .clk = "l4ls_gclk",
  2688. .addr = am33xx_timer2_addr_space,
  2689. .user = OCP_USER_MPU,
  2690. };
  2691. /* l4 per -> timer3 */
  2692. static struct omap_hwmod_addr_space am33xx_timer3_addr_space[] = {
  2693. {
  2694. .pa_start = 0x48042000,
  2695. .pa_end = 0x48042000 + SZ_1K - 1,
  2696. .flags = ADDR_TYPE_RT
  2697. },
  2698. { }
  2699. };
  2700. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
  2701. .master = &am33xx_l4_ls_hwmod,
  2702. .slave = &am33xx_timer3_hwmod,
  2703. .clk = "l4ls_gclk",
  2704. .addr = am33xx_timer3_addr_space,
  2705. .user = OCP_USER_MPU,
  2706. };
  2707. /* l4 per -> timer4 */
  2708. static struct omap_hwmod_addr_space am33xx_timer4_addr_space[] = {
  2709. {
  2710. .pa_start = 0x48044000,
  2711. .pa_end = 0x48044000 + SZ_1K - 1,
  2712. .flags = ADDR_TYPE_RT
  2713. },
  2714. { }
  2715. };
  2716. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
  2717. .master = &am33xx_l4_ls_hwmod,
  2718. .slave = &am33xx_timer4_hwmod,
  2719. .clk = "l4ls_gclk",
  2720. .addr = am33xx_timer4_addr_space,
  2721. .user = OCP_USER_MPU,
  2722. };
  2723. /* l4 per -> timer5 */
  2724. static struct omap_hwmod_addr_space am33xx_timer5_addr_space[] = {
  2725. {
  2726. .pa_start = 0x48046000,
  2727. .pa_end = 0x48046000 + SZ_1K - 1,
  2728. .flags = ADDR_TYPE_RT
  2729. },
  2730. { }
  2731. };
  2732. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
  2733. .master = &am33xx_l4_ls_hwmod,
  2734. .slave = &am33xx_timer5_hwmod,
  2735. .clk = "l4ls_gclk",
  2736. .addr = am33xx_timer5_addr_space,
  2737. .user = OCP_USER_MPU,
  2738. };
  2739. /* l4 per -> timer6 */
  2740. static struct omap_hwmod_addr_space am33xx_timer6_addr_space[] = {
  2741. {
  2742. .pa_start = 0x48048000,
  2743. .pa_end = 0x48048000 + SZ_1K - 1,
  2744. .flags = ADDR_TYPE_RT
  2745. },
  2746. { }
  2747. };
  2748. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
  2749. .master = &am33xx_l4_ls_hwmod,
  2750. .slave = &am33xx_timer6_hwmod,
  2751. .clk = "l4ls_gclk",
  2752. .addr = am33xx_timer6_addr_space,
  2753. .user = OCP_USER_MPU,
  2754. };
  2755. /* l4 per -> timer7 */
  2756. static struct omap_hwmod_addr_space am33xx_timer7_addr_space[] = {
  2757. {
  2758. .pa_start = 0x4804A000,
  2759. .pa_end = 0x4804A000 + SZ_1K - 1,
  2760. .flags = ADDR_TYPE_RT
  2761. },
  2762. { }
  2763. };
  2764. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
  2765. .master = &am33xx_l4_ls_hwmod,
  2766. .slave = &am33xx_timer7_hwmod,
  2767. .clk = "l4ls_gclk",
  2768. .addr = am33xx_timer7_addr_space,
  2769. .user = OCP_USER_MPU,
  2770. };
  2771. /* l3 main -> tpcc */
  2772. static struct omap_hwmod_addr_space am33xx_tpcc_addr_space[] = {
  2773. {
  2774. .pa_start = 0x49000000,
  2775. .pa_end = 0x49000000 + SZ_32K - 1,
  2776. .flags = ADDR_TYPE_RT
  2777. },
  2778. { }
  2779. };
  2780. static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
  2781. .master = &am33xx_l3_main_hwmod,
  2782. .slave = &am33xx_tpcc_hwmod,
  2783. .clk = "l3_gclk",
  2784. .addr = am33xx_tpcc_addr_space,
  2785. .user = OCP_USER_MPU,
  2786. };
  2787. /* l3 main -> tpcc0 */
  2788. static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
  2789. {
  2790. .pa_start = 0x49800000,
  2791. .pa_end = 0x49800000 + SZ_8K - 1,
  2792. .flags = ADDR_TYPE_RT,
  2793. },
  2794. { }
  2795. };
  2796. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
  2797. .master = &am33xx_l3_main_hwmod,
  2798. .slave = &am33xx_tptc0_hwmod,
  2799. .clk = "l3_gclk",
  2800. .addr = am33xx_tptc0_addr_space,
  2801. .user = OCP_USER_MPU,
  2802. };
  2803. /* l3 main -> tpcc1 */
  2804. static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
  2805. {
  2806. .pa_start = 0x49900000,
  2807. .pa_end = 0x49900000 + SZ_8K - 1,
  2808. .flags = ADDR_TYPE_RT,
  2809. },
  2810. { }
  2811. };
  2812. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
  2813. .master = &am33xx_l3_main_hwmod,
  2814. .slave = &am33xx_tptc1_hwmod,
  2815. .clk = "l3_gclk",
  2816. .addr = am33xx_tptc1_addr_space,
  2817. .user = OCP_USER_MPU,
  2818. };
  2819. /* l3 main -> tpcc2 */
  2820. static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
  2821. {
  2822. .pa_start = 0x49a00000,
  2823. .pa_end = 0x49a00000 + SZ_8K - 1,
  2824. .flags = ADDR_TYPE_RT,
  2825. },
  2826. { }
  2827. };
  2828. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
  2829. .master = &am33xx_l3_main_hwmod,
  2830. .slave = &am33xx_tptc2_hwmod,
  2831. .clk = "l3_gclk",
  2832. .addr = am33xx_tptc2_addr_space,
  2833. .user = OCP_USER_MPU,
  2834. };
  2835. /* l4 wkup -> uart1 */
  2836. static struct omap_hwmod_addr_space am33xx_uart1_addr_space[] = {
  2837. {
  2838. .pa_start = 0x44E09000,
  2839. .pa_end = 0x44E09000 + SZ_8K - 1,
  2840. .flags = ADDR_TYPE_RT,
  2841. },
  2842. { }
  2843. };
  2844. static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1 = {
  2845. .master = &am33xx_l4_wkup_hwmod,
  2846. .slave = &am33xx_uart1_hwmod,
  2847. .clk = "dpll_core_m4_div2_ck",
  2848. .addr = am33xx_uart1_addr_space,
  2849. .user = OCP_USER_MPU,
  2850. };
  2851. /* l4 ls -> uart2 */
  2852. static struct omap_hwmod_addr_space am33xx_uart2_addr_space[] = {
  2853. {
  2854. .pa_start = 0x48022000,
  2855. .pa_end = 0x48022000 + SZ_8K - 1,
  2856. .flags = ADDR_TYPE_RT,
  2857. },
  2858. { }
  2859. };
  2860. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
  2861. .master = &am33xx_l4_ls_hwmod,
  2862. .slave = &am33xx_uart2_hwmod,
  2863. .clk = "l4ls_gclk",
  2864. .addr = am33xx_uart2_addr_space,
  2865. .user = OCP_USER_MPU,
  2866. };
  2867. /* l4 ls -> uart3 */
  2868. static struct omap_hwmod_addr_space am33xx_uart3_addr_space[] = {
  2869. {
  2870. .pa_start = 0x48024000,
  2871. .pa_end = 0x48024000 + SZ_8K - 1,
  2872. .flags = ADDR_TYPE_RT,
  2873. },
  2874. { }
  2875. };
  2876. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
  2877. .master = &am33xx_l4_ls_hwmod,
  2878. .slave = &am33xx_uart3_hwmod,
  2879. .clk = "l4ls_gclk",
  2880. .addr = am33xx_uart3_addr_space,
  2881. .user = OCP_USER_MPU,
  2882. };
  2883. /* l4 ls -> uart4 */
  2884. static struct omap_hwmod_addr_space am33xx_uart4_addr_space[] = {
  2885. {
  2886. .pa_start = 0x481A6000,
  2887. .pa_end = 0x481A6000 + SZ_8K - 1,
  2888. .flags = ADDR_TYPE_RT,
  2889. },
  2890. { }
  2891. };
  2892. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
  2893. .master = &am33xx_l4_ls_hwmod,
  2894. .slave = &am33xx_uart4_hwmod,
  2895. .clk = "l4ls_gclk",
  2896. .addr = am33xx_uart4_addr_space,
  2897. .user = OCP_USER_MPU,
  2898. };
  2899. /* l4 ls -> uart5 */
  2900. static struct omap_hwmod_addr_space am33xx_uart5_addr_space[] = {
  2901. {
  2902. .pa_start = 0x481A8000,
  2903. .pa_end = 0x481A8000 + SZ_8K - 1,
  2904. .flags = ADDR_TYPE_RT,
  2905. },
  2906. { }
  2907. };
  2908. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
  2909. .master = &am33xx_l4_ls_hwmod,
  2910. .slave = &am33xx_uart5_hwmod,
  2911. .clk = "l4ls_gclk",
  2912. .addr = am33xx_uart5_addr_space,
  2913. .user = OCP_USER_MPU,
  2914. };
  2915. /* l4 ls -> uart6 */
  2916. static struct omap_hwmod_addr_space am33xx_uart6_addr_space[] = {
  2917. {
  2918. .pa_start = 0x481aa000,
  2919. .pa_end = 0x481aa000 + SZ_8K - 1,
  2920. .flags = ADDR_TYPE_RT,
  2921. },
  2922. { }
  2923. };
  2924. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
  2925. .master = &am33xx_l4_ls_hwmod,
  2926. .slave = &am33xx_uart6_hwmod,
  2927. .clk = "l4ls_gclk",
  2928. .addr = am33xx_uart6_addr_space,
  2929. .user = OCP_USER_MPU,
  2930. };
  2931. /* l4 wkup -> wd_timer1 */
  2932. static struct omap_hwmod_addr_space am33xx_wd_timer1_addrs[] = {
  2933. {
  2934. .pa_start = 0x44e35000,
  2935. .pa_end = 0x44e35000 + SZ_4K - 1,
  2936. .flags = ADDR_TYPE_RT
  2937. },
  2938. { }
  2939. };
  2940. static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1 = {
  2941. .master = &am33xx_l4_wkup_hwmod,
  2942. .slave = &am33xx_wd_timer1_hwmod,
  2943. .clk = "dpll_core_m4_div2_ck",
  2944. .addr = am33xx_wd_timer1_addrs,
  2945. .user = OCP_USER_MPU,
  2946. };
  2947. /* usbss */
  2948. /* l3 s -> USBSS interface */
  2949. static struct omap_hwmod_addr_space am33xx_usbss_addr_space[] = {
  2950. {
  2951. .name = "usbss",
  2952. .pa_start = 0x47400000,
  2953. .pa_end = 0x47400000 + SZ_4K - 1,
  2954. .flags = ADDR_TYPE_RT
  2955. },
  2956. {
  2957. .name = "musb0",
  2958. .pa_start = 0x47401000,
  2959. .pa_end = 0x47401000 + SZ_2K - 1,
  2960. .flags = ADDR_TYPE_RT
  2961. },
  2962. {
  2963. .name = "musb1",
  2964. .pa_start = 0x47401800,
  2965. .pa_end = 0x47401800 + SZ_2K - 1,
  2966. .flags = ADDR_TYPE_RT
  2967. },
  2968. { }
  2969. };
  2970. static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = {
  2971. .master = &am33xx_l3_s_hwmod,
  2972. .slave = &am33xx_usbss_hwmod,
  2973. .clk = "l3s_gclk",
  2974. .addr = am33xx_usbss_addr_space,
  2975. .user = OCP_USER_MPU,
  2976. .flags = OCPIF_SWSUP_IDLE,
  2977. };
  2978. static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
  2979. &am33xx_l4_fw__emif_fw,
  2980. &am33xx_l3_main__emif,
  2981. &am33xx_mpu__l3_main,
  2982. &am33xx_mpu__prcm,
  2983. &am33xx_l3_s__l4_ls,
  2984. &am33xx_l3_s__l4_wkup,
  2985. &am33xx_l3_s__l4_fw,
  2986. &am33xx_l3_main__l4_hs,
  2987. &am33xx_l3_main__l3_s,
  2988. &am33xx_l3_main__l3_instr,
  2989. &am33xx_l3_main__gfx,
  2990. &am33xx_l3_s__l3_main,
  2991. &am33xx_pruss__l3_main,
  2992. &am33xx_wkup_m3__l4_wkup,
  2993. &am33xx_gfx__l3_main,
  2994. &am33xx_l4_wkup__wkup_m3,
  2995. &am33xx_l4_wkup__control,
  2996. &am33xx_l4_wkup__smartreflex0,
  2997. &am33xx_l4_wkup__smartreflex1,
  2998. &am33xx_l4_wkup__uart1,
  2999. &am33xx_l4_wkup__timer1,
  3000. &am33xx_l4_wkup__rtc,
  3001. &am33xx_l4_wkup__i2c1,
  3002. &am33xx_l4_wkup__gpio0,
  3003. &am33xx_l4_wkup__adc_tsc,
  3004. &am33xx_l4_wkup__wd_timer1,
  3005. &am33xx_l4_hs__pruss,
  3006. &am33xx_l4_per__dcan0,
  3007. &am33xx_l4_per__dcan1,
  3008. &am33xx_l4_per__gpio1,
  3009. &am33xx_l4_per__gpio2,
  3010. &am33xx_l4_per__gpio3,
  3011. &am33xx_l4_per__i2c2,
  3012. &am33xx_l4_per__i2c3,
  3013. &am33xx_l4_per__mailbox,
  3014. &am33xx_l4_ls__mcasp0,
  3015. &am33xx_l3_s__mcasp0_data,
  3016. &am33xx_l4_ls__mcasp1,
  3017. &am33xx_l3_s__mcasp1_data,
  3018. &am33xx_l4_ls__mmc0,
  3019. &am33xx_l4_ls__mmc1,
  3020. &am33xx_l3_s__mmc2,
  3021. &am33xx_l4_ls__timer2,
  3022. &am33xx_l4_ls__timer3,
  3023. &am33xx_l4_ls__timer4,
  3024. &am33xx_l4_ls__timer5,
  3025. &am33xx_l4_ls__timer6,
  3026. &am33xx_l4_ls__timer7,
  3027. &am33xx_l3_main__tpcc,
  3028. &am33xx_l4_ls__uart2,
  3029. &am33xx_l4_ls__uart3,
  3030. &am33xx_l4_ls__uart4,
  3031. &am33xx_l4_ls__uart5,
  3032. &am33xx_l4_ls__uart6,
  3033. &am33xx_l4_ls__spinlock,
  3034. &am33xx_l4_ls__elm,
  3035. &am33xx_l4_ls__ehrpwm0,
  3036. &am33xx_l4_ls__ehrpwm1,
  3037. &am33xx_l4_ls__ehrpwm2,
  3038. &am33xx_l4_ls__ecap0,
  3039. &am33xx_l4_ls__ecap1,
  3040. &am33xx_l4_ls__ecap2,
  3041. &am33xx_l3_s__gpmc,
  3042. &am33xx_l3_main__lcdc,
  3043. &am33xx_l4_ls__mcspi0,
  3044. &am33xx_l4_ls__mcspi1,
  3045. &am33xx_l3_main__tptc0,
  3046. &am33xx_l3_main__tptc1,
  3047. &am33xx_l3_main__tptc2,
  3048. &am33xx_l3_s__usbss,
  3049. &am33xx_l4_hs__cpgmac0,
  3050. &am33xx_cpgmac0__mdio,
  3051. NULL,
  3052. };
  3053. int __init am33xx_hwmod_init(void)
  3054. {
  3055. omap_hwmod_init();
  3056. return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs);
  3057. }