omap_hwmod_54xx_data.c 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848
  1. /*
  2. * Hardware modules present on the OMAP54xx chips
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Paul Walmsley
  7. * Benoit Cousson
  8. *
  9. * This file is automatically generated from the OMAP hardware databases.
  10. * We respectfully ask that any modifications to this file be coordinated
  11. * with the public linux-omap@vger.kernel.org mailing list and the
  12. * authors above to ensure that the autogeneration scripts are kept
  13. * up-to-date with the file contents.
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License version 2 as
  17. * published by the Free Software Foundation.
  18. */
  19. #include <linux/io.h>
  20. #include <linux/platform_data/gpio-omap.h>
  21. #include <linux/power/smartreflex.h>
  22. #include <linux/i2c-omap.h>
  23. #include <linux/omap-dma.h>
  24. #include <linux/platform_data/spi-omap2-mcspi.h>
  25. #include <linux/platform_data/asoc-ti-mcbsp.h>
  26. #include <plat/dmtimer.h>
  27. #include "omap_hwmod.h"
  28. #include "omap_hwmod_common_data.h"
  29. #include "cm1_54xx.h"
  30. #include "cm2_54xx.h"
  31. #include "prm54xx.h"
  32. #include "i2c.h"
  33. #include "mmc.h"
  34. #include "wd_timer.h"
  35. /* Base offset for all OMAP5 interrupts external to MPUSS */
  36. #define OMAP54XX_IRQ_GIC_START 32
  37. /* Base offset for all OMAP5 dma requests */
  38. #define OMAP54XX_DMA_REQ_START 1
  39. /*
  40. * IP blocks
  41. */
  42. /*
  43. * 'dmm' class
  44. * instance(s): dmm
  45. */
  46. static struct omap_hwmod_class omap54xx_dmm_hwmod_class = {
  47. .name = "dmm",
  48. };
  49. /* dmm */
  50. static struct omap_hwmod omap54xx_dmm_hwmod = {
  51. .name = "dmm",
  52. .class = &omap54xx_dmm_hwmod_class,
  53. .clkdm_name = "emif_clkdm",
  54. .prcm = {
  55. .omap4 = {
  56. .clkctrl_offs = OMAP54XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
  57. .context_offs = OMAP54XX_RM_EMIF_DMM_CONTEXT_OFFSET,
  58. },
  59. },
  60. };
  61. /*
  62. * 'l3' class
  63. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  64. */
  65. static struct omap_hwmod_class omap54xx_l3_hwmod_class = {
  66. .name = "l3",
  67. };
  68. /* l3_instr */
  69. static struct omap_hwmod omap54xx_l3_instr_hwmod = {
  70. .name = "l3_instr",
  71. .class = &omap54xx_l3_hwmod_class,
  72. .clkdm_name = "l3instr_clkdm",
  73. .prcm = {
  74. .omap4 = {
  75. .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  76. .context_offs = OMAP54XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  77. .modulemode = MODULEMODE_HWCTRL,
  78. },
  79. },
  80. };
  81. /* l3_main_1 */
  82. static struct omap_hwmod omap54xx_l3_main_1_hwmod = {
  83. .name = "l3_main_1",
  84. .class = &omap54xx_l3_hwmod_class,
  85. .clkdm_name = "l3main1_clkdm",
  86. .prcm = {
  87. .omap4 = {
  88. .clkctrl_offs = OMAP54XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
  89. .context_offs = OMAP54XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
  90. },
  91. },
  92. };
  93. /* l3_main_2 */
  94. static struct omap_hwmod omap54xx_l3_main_2_hwmod = {
  95. .name = "l3_main_2",
  96. .class = &omap54xx_l3_hwmod_class,
  97. .clkdm_name = "l3main2_clkdm",
  98. .prcm = {
  99. .omap4 = {
  100. .clkctrl_offs = OMAP54XX_CM_L3MAIN2_L3_MAIN_2_CLKCTRL_OFFSET,
  101. .context_offs = OMAP54XX_RM_L3MAIN2_L3_MAIN_2_CONTEXT_OFFSET,
  102. },
  103. },
  104. };
  105. /* l3_main_3 */
  106. static struct omap_hwmod omap54xx_l3_main_3_hwmod = {
  107. .name = "l3_main_3",
  108. .class = &omap54xx_l3_hwmod_class,
  109. .clkdm_name = "l3instr_clkdm",
  110. .prcm = {
  111. .omap4 = {
  112. .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_MAIN_3_CLKCTRL_OFFSET,
  113. .context_offs = OMAP54XX_RM_L3INSTR_L3_MAIN_3_CONTEXT_OFFSET,
  114. .modulemode = MODULEMODE_HWCTRL,
  115. },
  116. },
  117. };
  118. /*
  119. * 'l4' class
  120. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  121. */
  122. static struct omap_hwmod_class omap54xx_l4_hwmod_class = {
  123. .name = "l4",
  124. };
  125. /* l4_abe */
  126. static struct omap_hwmod omap54xx_l4_abe_hwmod = {
  127. .name = "l4_abe",
  128. .class = &omap54xx_l4_hwmod_class,
  129. .clkdm_name = "abe_clkdm",
  130. .prcm = {
  131. .omap4 = {
  132. .clkctrl_offs = OMAP54XX_CM_ABE_L4_ABE_CLKCTRL_OFFSET,
  133. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  134. },
  135. },
  136. };
  137. /* l4_cfg */
  138. static struct omap_hwmod omap54xx_l4_cfg_hwmod = {
  139. .name = "l4_cfg",
  140. .class = &omap54xx_l4_hwmod_class,
  141. .clkdm_name = "l4cfg_clkdm",
  142. .prcm = {
  143. .omap4 = {
  144. .clkctrl_offs = OMAP54XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  145. .context_offs = OMAP54XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  146. },
  147. },
  148. };
  149. /* l4_per */
  150. static struct omap_hwmod omap54xx_l4_per_hwmod = {
  151. .name = "l4_per",
  152. .class = &omap54xx_l4_hwmod_class,
  153. .clkdm_name = "l4per_clkdm",
  154. .prcm = {
  155. .omap4 = {
  156. .clkctrl_offs = OMAP54XX_CM_L4PER_L4_PER_CLKCTRL_OFFSET,
  157. .context_offs = OMAP54XX_RM_L4PER_L4_PER_CONTEXT_OFFSET,
  158. },
  159. },
  160. };
  161. /* l4_wkup */
  162. static struct omap_hwmod omap54xx_l4_wkup_hwmod = {
  163. .name = "l4_wkup",
  164. .class = &omap54xx_l4_hwmod_class,
  165. .clkdm_name = "wkupaon_clkdm",
  166. .prcm = {
  167. .omap4 = {
  168. .clkctrl_offs = OMAP54XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
  169. .context_offs = OMAP54XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
  170. },
  171. },
  172. };
  173. /*
  174. * 'mpu_bus' class
  175. * instance(s): mpu_private
  176. */
  177. static struct omap_hwmod_class omap54xx_mpu_bus_hwmod_class = {
  178. .name = "mpu_bus",
  179. };
  180. /* mpu_private */
  181. static struct omap_hwmod omap54xx_mpu_private_hwmod = {
  182. .name = "mpu_private",
  183. .class = &omap54xx_mpu_bus_hwmod_class,
  184. .clkdm_name = "mpu_clkdm",
  185. .prcm = {
  186. .omap4 = {
  187. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  188. },
  189. },
  190. };
  191. /*
  192. * 'counter' class
  193. * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
  194. */
  195. static struct omap_hwmod_class_sysconfig omap54xx_counter_sysc = {
  196. .rev_offs = 0x0000,
  197. .sysc_offs = 0x0010,
  198. .sysc_flags = SYSC_HAS_SIDLEMODE,
  199. .idlemodes = (SIDLE_FORCE | SIDLE_NO),
  200. .sysc_fields = &omap_hwmod_sysc_type1,
  201. };
  202. static struct omap_hwmod_class omap54xx_counter_hwmod_class = {
  203. .name = "counter",
  204. .sysc = &omap54xx_counter_sysc,
  205. };
  206. /* counter_32k */
  207. static struct omap_hwmod omap54xx_counter_32k_hwmod = {
  208. .name = "counter_32k",
  209. .class = &omap54xx_counter_hwmod_class,
  210. .clkdm_name = "wkupaon_clkdm",
  211. .flags = HWMOD_SWSUP_SIDLE,
  212. .main_clk = "wkupaon_iclk_mux",
  213. .prcm = {
  214. .omap4 = {
  215. .clkctrl_offs = OMAP54XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
  216. .context_offs = OMAP54XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
  217. },
  218. },
  219. };
  220. /*
  221. * 'dma' class
  222. * dma controller for data exchange between memory to memory (i.e. internal or
  223. * external memory) and gp peripherals to memory or memory to gp peripherals
  224. */
  225. static struct omap_hwmod_class_sysconfig omap54xx_dma_sysc = {
  226. .rev_offs = 0x0000,
  227. .sysc_offs = 0x002c,
  228. .syss_offs = 0x0028,
  229. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  230. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  231. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  232. SYSS_HAS_RESET_STATUS),
  233. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  234. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  235. .sysc_fields = &omap_hwmod_sysc_type1,
  236. };
  237. static struct omap_hwmod_class omap54xx_dma_hwmod_class = {
  238. .name = "dma",
  239. .sysc = &omap54xx_dma_sysc,
  240. };
  241. /* dma dev_attr */
  242. static struct omap_dma_dev_attr dma_dev_attr = {
  243. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  244. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  245. .lch_count = 32,
  246. };
  247. /* dma_system */
  248. static struct omap_hwmod_irq_info omap54xx_dma_system_irqs[] = {
  249. { .name = "0", .irq = 12 + OMAP54XX_IRQ_GIC_START },
  250. { .name = "1", .irq = 13 + OMAP54XX_IRQ_GIC_START },
  251. { .name = "2", .irq = 14 + OMAP54XX_IRQ_GIC_START },
  252. { .name = "3", .irq = 15 + OMAP54XX_IRQ_GIC_START },
  253. { .irq = -1 }
  254. };
  255. static struct omap_hwmod omap54xx_dma_system_hwmod = {
  256. .name = "dma_system",
  257. .class = &omap54xx_dma_hwmod_class,
  258. .clkdm_name = "dma_clkdm",
  259. .mpu_irqs = omap54xx_dma_system_irqs,
  260. .main_clk = "l3_iclk_div",
  261. .prcm = {
  262. .omap4 = {
  263. .clkctrl_offs = OMAP54XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  264. .context_offs = OMAP54XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  265. },
  266. },
  267. .dev_attr = &dma_dev_attr,
  268. };
  269. /*
  270. * 'dmic' class
  271. * digital microphone controller
  272. */
  273. static struct omap_hwmod_class_sysconfig omap54xx_dmic_sysc = {
  274. .rev_offs = 0x0000,
  275. .sysc_offs = 0x0010,
  276. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  277. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  278. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  279. SIDLE_SMART_WKUP),
  280. .sysc_fields = &omap_hwmod_sysc_type2,
  281. };
  282. static struct omap_hwmod_class omap54xx_dmic_hwmod_class = {
  283. .name = "dmic",
  284. .sysc = &omap54xx_dmic_sysc,
  285. };
  286. /* dmic */
  287. static struct omap_hwmod omap54xx_dmic_hwmod = {
  288. .name = "dmic",
  289. .class = &omap54xx_dmic_hwmod_class,
  290. .clkdm_name = "abe_clkdm",
  291. .main_clk = "dmic_gfclk",
  292. .prcm = {
  293. .omap4 = {
  294. .clkctrl_offs = OMAP54XX_CM_ABE_DMIC_CLKCTRL_OFFSET,
  295. .context_offs = OMAP54XX_RM_ABE_DMIC_CONTEXT_OFFSET,
  296. .modulemode = MODULEMODE_SWCTRL,
  297. },
  298. },
  299. };
  300. /*
  301. * 'dss' class
  302. * display sub-system
  303. */
  304. static struct omap_hwmod_class_sysconfig omap54xx_dss_sysc = {
  305. .rev_offs = 0x0000,
  306. .syss_offs = 0x0014,
  307. .sysc_flags = SYSS_HAS_RESET_STATUS,
  308. };
  309. static struct omap_hwmod_class omap54xx_dss_hwmod_class = {
  310. .name = "dss",
  311. .sysc = &omap54xx_dss_sysc,
  312. .reset = omap_dss_reset,
  313. };
  314. /* dss */
  315. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  316. { .role = "32khz_clk", .clk = "dss_32khz_clk" },
  317. { .role = "sys_clk", .clk = "dss_sys_clk" },
  318. { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
  319. };
  320. static struct omap_hwmod omap54xx_dss_hwmod = {
  321. .name = "dss_core",
  322. .class = &omap54xx_dss_hwmod_class,
  323. .clkdm_name = "dss_clkdm",
  324. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  325. .main_clk = "dss_dss_clk",
  326. .prcm = {
  327. .omap4 = {
  328. .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  329. .context_offs = OMAP54XX_RM_DSS_DSS_CONTEXT_OFFSET,
  330. .modulemode = MODULEMODE_SWCTRL,
  331. },
  332. },
  333. .opt_clks = dss_opt_clks,
  334. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  335. };
  336. /*
  337. * 'dispc' class
  338. * display controller
  339. */
  340. static struct omap_hwmod_class_sysconfig omap54xx_dispc_sysc = {
  341. .rev_offs = 0x0000,
  342. .sysc_offs = 0x0010,
  343. .syss_offs = 0x0014,
  344. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  345. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  346. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  347. SYSS_HAS_RESET_STATUS),
  348. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  349. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  350. .sysc_fields = &omap_hwmod_sysc_type1,
  351. };
  352. static struct omap_hwmod_class omap54xx_dispc_hwmod_class = {
  353. .name = "dispc",
  354. .sysc = &omap54xx_dispc_sysc,
  355. };
  356. /* dss_dispc */
  357. static struct omap_hwmod_opt_clk dss_dispc_opt_clks[] = {
  358. { .role = "sys_clk", .clk = "dss_sys_clk" },
  359. };
  360. /* dss_dispc dev_attr */
  361. static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  362. .has_framedonetv_irq = 1,
  363. .manager_count = 4,
  364. };
  365. static struct omap_hwmod omap54xx_dss_dispc_hwmod = {
  366. .name = "dss_dispc",
  367. .class = &omap54xx_dispc_hwmod_class,
  368. .clkdm_name = "dss_clkdm",
  369. .main_clk = "dss_dss_clk",
  370. .prcm = {
  371. .omap4 = {
  372. .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  373. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  374. },
  375. },
  376. .opt_clks = dss_dispc_opt_clks,
  377. .opt_clks_cnt = ARRAY_SIZE(dss_dispc_opt_clks),
  378. .dev_attr = &dss_dispc_dev_attr,
  379. };
  380. /*
  381. * 'dsi1' class
  382. * display serial interface controller
  383. */
  384. static struct omap_hwmod_class_sysconfig omap54xx_dsi1_sysc = {
  385. .rev_offs = 0x0000,
  386. .sysc_offs = 0x0010,
  387. .syss_offs = 0x0014,
  388. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  389. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  390. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  391. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  392. .sysc_fields = &omap_hwmod_sysc_type1,
  393. };
  394. static struct omap_hwmod_class omap54xx_dsi1_hwmod_class = {
  395. .name = "dsi1",
  396. .sysc = &omap54xx_dsi1_sysc,
  397. };
  398. /* dss_dsi1_a */
  399. static struct omap_hwmod_opt_clk dss_dsi1_a_opt_clks[] = {
  400. { .role = "sys_clk", .clk = "dss_sys_clk" },
  401. };
  402. static struct omap_hwmod omap54xx_dss_dsi1_a_hwmod = {
  403. .name = "dss_dsi1",
  404. .class = &omap54xx_dsi1_hwmod_class,
  405. .clkdm_name = "dss_clkdm",
  406. .main_clk = "dss_dss_clk",
  407. .prcm = {
  408. .omap4 = {
  409. .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  410. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  411. },
  412. },
  413. .opt_clks = dss_dsi1_a_opt_clks,
  414. .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_a_opt_clks),
  415. };
  416. /* dss_dsi1_c */
  417. static struct omap_hwmod_opt_clk dss_dsi1_c_opt_clks[] = {
  418. { .role = "sys_clk", .clk = "dss_sys_clk" },
  419. };
  420. static struct omap_hwmod omap54xx_dss_dsi1_c_hwmod = {
  421. .name = "dss_dsi2",
  422. .class = &omap54xx_dsi1_hwmod_class,
  423. .clkdm_name = "dss_clkdm",
  424. .main_clk = "dss_dss_clk",
  425. .prcm = {
  426. .omap4 = {
  427. .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  428. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  429. },
  430. },
  431. .opt_clks = dss_dsi1_c_opt_clks,
  432. .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_c_opt_clks),
  433. };
  434. /*
  435. * 'hdmi' class
  436. * hdmi controller
  437. */
  438. static struct omap_hwmod_class_sysconfig omap54xx_hdmi_sysc = {
  439. .rev_offs = 0x0000,
  440. .sysc_offs = 0x0010,
  441. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  442. SYSC_HAS_SOFTRESET),
  443. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  444. SIDLE_SMART_WKUP),
  445. .sysc_fields = &omap_hwmod_sysc_type2,
  446. };
  447. static struct omap_hwmod_class omap54xx_hdmi_hwmod_class = {
  448. .name = "hdmi",
  449. .sysc = &omap54xx_hdmi_sysc,
  450. };
  451. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  452. { .role = "sys_clk", .clk = "dss_sys_clk" },
  453. };
  454. static struct omap_hwmod omap54xx_dss_hdmi_hwmod = {
  455. .name = "dss_hdmi",
  456. .class = &omap54xx_hdmi_hwmod_class,
  457. .clkdm_name = "dss_clkdm",
  458. .main_clk = "dss_48mhz_clk",
  459. .prcm = {
  460. .omap4 = {
  461. .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  462. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  463. },
  464. },
  465. .opt_clks = dss_hdmi_opt_clks,
  466. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  467. };
  468. /*
  469. * 'rfbi' class
  470. * remote frame buffer interface
  471. */
  472. static struct omap_hwmod_class_sysconfig omap54xx_rfbi_sysc = {
  473. .rev_offs = 0x0000,
  474. .sysc_offs = 0x0010,
  475. .syss_offs = 0x0014,
  476. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  477. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  478. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  479. .sysc_fields = &omap_hwmod_sysc_type1,
  480. };
  481. static struct omap_hwmod_class omap54xx_rfbi_hwmod_class = {
  482. .name = "rfbi",
  483. .sysc = &omap54xx_rfbi_sysc,
  484. };
  485. /* dss_rfbi */
  486. static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
  487. { .role = "ick", .clk = "l3_iclk_div" },
  488. };
  489. static struct omap_hwmod omap54xx_dss_rfbi_hwmod = {
  490. .name = "dss_rfbi",
  491. .class = &omap54xx_rfbi_hwmod_class,
  492. .clkdm_name = "dss_clkdm",
  493. .prcm = {
  494. .omap4 = {
  495. .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  496. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  497. },
  498. },
  499. .opt_clks = dss_rfbi_opt_clks,
  500. .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
  501. };
  502. /*
  503. * 'emif' class
  504. * external memory interface no1 (wrapper)
  505. */
  506. static struct omap_hwmod_class_sysconfig omap54xx_emif_sysc = {
  507. .rev_offs = 0x0000,
  508. };
  509. static struct omap_hwmod_class omap54xx_emif_hwmod_class = {
  510. .name = "emif",
  511. .sysc = &omap54xx_emif_sysc,
  512. };
  513. /* emif1 */
  514. static struct omap_hwmod omap54xx_emif1_hwmod = {
  515. .name = "emif1",
  516. .class = &omap54xx_emif_hwmod_class,
  517. .clkdm_name = "emif_clkdm",
  518. .flags = HWMOD_INIT_NO_IDLE,
  519. .main_clk = "dpll_core_h11x2_ck",
  520. .prcm = {
  521. .omap4 = {
  522. .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF1_CLKCTRL_OFFSET,
  523. .context_offs = OMAP54XX_RM_EMIF_EMIF1_CONTEXT_OFFSET,
  524. .modulemode = MODULEMODE_HWCTRL,
  525. },
  526. },
  527. };
  528. /* emif2 */
  529. static struct omap_hwmod omap54xx_emif2_hwmod = {
  530. .name = "emif2",
  531. .class = &omap54xx_emif_hwmod_class,
  532. .clkdm_name = "emif_clkdm",
  533. .flags = HWMOD_INIT_NO_IDLE,
  534. .main_clk = "dpll_core_h11x2_ck",
  535. .prcm = {
  536. .omap4 = {
  537. .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF2_CLKCTRL_OFFSET,
  538. .context_offs = OMAP54XX_RM_EMIF_EMIF2_CONTEXT_OFFSET,
  539. .modulemode = MODULEMODE_HWCTRL,
  540. },
  541. },
  542. };
  543. /*
  544. * 'gpio' class
  545. * general purpose io module
  546. */
  547. static struct omap_hwmod_class_sysconfig omap54xx_gpio_sysc = {
  548. .rev_offs = 0x0000,
  549. .sysc_offs = 0x0010,
  550. .syss_offs = 0x0114,
  551. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  552. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  553. SYSS_HAS_RESET_STATUS),
  554. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  555. SIDLE_SMART_WKUP),
  556. .sysc_fields = &omap_hwmod_sysc_type1,
  557. };
  558. static struct omap_hwmod_class omap54xx_gpio_hwmod_class = {
  559. .name = "gpio",
  560. .sysc = &omap54xx_gpio_sysc,
  561. .rev = 2,
  562. };
  563. /* gpio dev_attr */
  564. static struct omap_gpio_dev_attr gpio_dev_attr = {
  565. .bank_width = 32,
  566. .dbck_flag = true,
  567. };
  568. /* gpio1 */
  569. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  570. { .role = "dbclk", .clk = "gpio1_dbclk" },
  571. };
  572. static struct omap_hwmod omap54xx_gpio1_hwmod = {
  573. .name = "gpio1",
  574. .class = &omap54xx_gpio_hwmod_class,
  575. .clkdm_name = "wkupaon_clkdm",
  576. .main_clk = "wkupaon_iclk_mux",
  577. .prcm = {
  578. .omap4 = {
  579. .clkctrl_offs = OMAP54XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  580. .context_offs = OMAP54XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  581. .modulemode = MODULEMODE_HWCTRL,
  582. },
  583. },
  584. .opt_clks = gpio1_opt_clks,
  585. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  586. .dev_attr = &gpio_dev_attr,
  587. };
  588. /* gpio2 */
  589. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  590. { .role = "dbclk", .clk = "gpio2_dbclk" },
  591. };
  592. static struct omap_hwmod omap54xx_gpio2_hwmod = {
  593. .name = "gpio2",
  594. .class = &omap54xx_gpio_hwmod_class,
  595. .clkdm_name = "l4per_clkdm",
  596. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  597. .main_clk = "l4_root_clk_div",
  598. .prcm = {
  599. .omap4 = {
  600. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  601. .context_offs = OMAP54XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  602. .modulemode = MODULEMODE_HWCTRL,
  603. },
  604. },
  605. .opt_clks = gpio2_opt_clks,
  606. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  607. .dev_attr = &gpio_dev_attr,
  608. };
  609. /* gpio3 */
  610. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  611. { .role = "dbclk", .clk = "gpio3_dbclk" },
  612. };
  613. static struct omap_hwmod omap54xx_gpio3_hwmod = {
  614. .name = "gpio3",
  615. .class = &omap54xx_gpio_hwmod_class,
  616. .clkdm_name = "l4per_clkdm",
  617. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  618. .main_clk = "l4_root_clk_div",
  619. .prcm = {
  620. .omap4 = {
  621. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  622. .context_offs = OMAP54XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  623. .modulemode = MODULEMODE_HWCTRL,
  624. },
  625. },
  626. .opt_clks = gpio3_opt_clks,
  627. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  628. .dev_attr = &gpio_dev_attr,
  629. };
  630. /* gpio4 */
  631. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  632. { .role = "dbclk", .clk = "gpio4_dbclk" },
  633. };
  634. static struct omap_hwmod omap54xx_gpio4_hwmod = {
  635. .name = "gpio4",
  636. .class = &omap54xx_gpio_hwmod_class,
  637. .clkdm_name = "l4per_clkdm",
  638. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  639. .main_clk = "l4_root_clk_div",
  640. .prcm = {
  641. .omap4 = {
  642. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  643. .context_offs = OMAP54XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  644. .modulemode = MODULEMODE_HWCTRL,
  645. },
  646. },
  647. .opt_clks = gpio4_opt_clks,
  648. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  649. .dev_attr = &gpio_dev_attr,
  650. };
  651. /* gpio5 */
  652. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  653. { .role = "dbclk", .clk = "gpio5_dbclk" },
  654. };
  655. static struct omap_hwmod omap54xx_gpio5_hwmod = {
  656. .name = "gpio5",
  657. .class = &omap54xx_gpio_hwmod_class,
  658. .clkdm_name = "l4per_clkdm",
  659. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  660. .main_clk = "l4_root_clk_div",
  661. .prcm = {
  662. .omap4 = {
  663. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  664. .context_offs = OMAP54XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  665. .modulemode = MODULEMODE_HWCTRL,
  666. },
  667. },
  668. .opt_clks = gpio5_opt_clks,
  669. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  670. .dev_attr = &gpio_dev_attr,
  671. };
  672. /* gpio6 */
  673. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  674. { .role = "dbclk", .clk = "gpio6_dbclk" },
  675. };
  676. static struct omap_hwmod omap54xx_gpio6_hwmod = {
  677. .name = "gpio6",
  678. .class = &omap54xx_gpio_hwmod_class,
  679. .clkdm_name = "l4per_clkdm",
  680. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  681. .main_clk = "l4_root_clk_div",
  682. .prcm = {
  683. .omap4 = {
  684. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  685. .context_offs = OMAP54XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  686. .modulemode = MODULEMODE_HWCTRL,
  687. },
  688. },
  689. .opt_clks = gpio6_opt_clks,
  690. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  691. .dev_attr = &gpio_dev_attr,
  692. };
  693. /* gpio7 */
  694. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  695. { .role = "dbclk", .clk = "gpio7_dbclk" },
  696. };
  697. static struct omap_hwmod omap54xx_gpio7_hwmod = {
  698. .name = "gpio7",
  699. .class = &omap54xx_gpio_hwmod_class,
  700. .clkdm_name = "l4per_clkdm",
  701. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  702. .main_clk = "l4_root_clk_div",
  703. .prcm = {
  704. .omap4 = {
  705. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  706. .context_offs = OMAP54XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  707. .modulemode = MODULEMODE_HWCTRL,
  708. },
  709. },
  710. .opt_clks = gpio7_opt_clks,
  711. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  712. .dev_attr = &gpio_dev_attr,
  713. };
  714. /* gpio8 */
  715. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  716. { .role = "dbclk", .clk = "gpio8_dbclk" },
  717. };
  718. static struct omap_hwmod omap54xx_gpio8_hwmod = {
  719. .name = "gpio8",
  720. .class = &omap54xx_gpio_hwmod_class,
  721. .clkdm_name = "l4per_clkdm",
  722. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  723. .main_clk = "l4_root_clk_div",
  724. .prcm = {
  725. .omap4 = {
  726. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  727. .context_offs = OMAP54XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  728. .modulemode = MODULEMODE_HWCTRL,
  729. },
  730. },
  731. .opt_clks = gpio8_opt_clks,
  732. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  733. .dev_attr = &gpio_dev_attr,
  734. };
  735. /*
  736. * 'i2c' class
  737. * multimaster high-speed i2c controller
  738. */
  739. static struct omap_hwmod_class_sysconfig omap54xx_i2c_sysc = {
  740. .sysc_offs = 0x0010,
  741. .syss_offs = 0x0090,
  742. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  743. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  744. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  745. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  746. SIDLE_SMART_WKUP),
  747. .clockact = CLOCKACT_TEST_ICLK,
  748. .sysc_fields = &omap_hwmod_sysc_type1,
  749. };
  750. static struct omap_hwmod_class omap54xx_i2c_hwmod_class = {
  751. .name = "i2c",
  752. .sysc = &omap54xx_i2c_sysc,
  753. .reset = &omap_i2c_reset,
  754. .rev = OMAP_I2C_IP_VERSION_2,
  755. };
  756. /* i2c dev_attr */
  757. static struct omap_i2c_dev_attr i2c_dev_attr = {
  758. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  759. };
  760. /* i2c1 */
  761. static struct omap_hwmod omap54xx_i2c1_hwmod = {
  762. .name = "i2c1",
  763. .class = &omap54xx_i2c_hwmod_class,
  764. .clkdm_name = "l4per_clkdm",
  765. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  766. .main_clk = "func_96m_fclk",
  767. .prcm = {
  768. .omap4 = {
  769. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  770. .context_offs = OMAP54XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  771. .modulemode = MODULEMODE_SWCTRL,
  772. },
  773. },
  774. .dev_attr = &i2c_dev_attr,
  775. };
  776. /* i2c2 */
  777. static struct omap_hwmod omap54xx_i2c2_hwmod = {
  778. .name = "i2c2",
  779. .class = &omap54xx_i2c_hwmod_class,
  780. .clkdm_name = "l4per_clkdm",
  781. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  782. .main_clk = "func_96m_fclk",
  783. .prcm = {
  784. .omap4 = {
  785. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  786. .context_offs = OMAP54XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  787. .modulemode = MODULEMODE_SWCTRL,
  788. },
  789. },
  790. .dev_attr = &i2c_dev_attr,
  791. };
  792. /* i2c3 */
  793. static struct omap_hwmod omap54xx_i2c3_hwmod = {
  794. .name = "i2c3",
  795. .class = &omap54xx_i2c_hwmod_class,
  796. .clkdm_name = "l4per_clkdm",
  797. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  798. .main_clk = "func_96m_fclk",
  799. .prcm = {
  800. .omap4 = {
  801. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  802. .context_offs = OMAP54XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  803. .modulemode = MODULEMODE_SWCTRL,
  804. },
  805. },
  806. .dev_attr = &i2c_dev_attr,
  807. };
  808. /* i2c4 */
  809. static struct omap_hwmod omap54xx_i2c4_hwmod = {
  810. .name = "i2c4",
  811. .class = &omap54xx_i2c_hwmod_class,
  812. .clkdm_name = "l4per_clkdm",
  813. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  814. .main_clk = "func_96m_fclk",
  815. .prcm = {
  816. .omap4 = {
  817. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  818. .context_offs = OMAP54XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  819. .modulemode = MODULEMODE_SWCTRL,
  820. },
  821. },
  822. .dev_attr = &i2c_dev_attr,
  823. };
  824. /* i2c5 */
  825. static struct omap_hwmod omap54xx_i2c5_hwmod = {
  826. .name = "i2c5",
  827. .class = &omap54xx_i2c_hwmod_class,
  828. .clkdm_name = "l4per_clkdm",
  829. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  830. .main_clk = "func_96m_fclk",
  831. .prcm = {
  832. .omap4 = {
  833. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C5_CLKCTRL_OFFSET,
  834. .context_offs = OMAP54XX_RM_L4PER_I2C5_CONTEXT_OFFSET,
  835. .modulemode = MODULEMODE_SWCTRL,
  836. },
  837. },
  838. .dev_attr = &i2c_dev_attr,
  839. };
  840. /*
  841. * 'kbd' class
  842. * keyboard controller
  843. */
  844. static struct omap_hwmod_class_sysconfig omap54xx_kbd_sysc = {
  845. .rev_offs = 0x0000,
  846. .sysc_offs = 0x0010,
  847. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  848. SYSC_HAS_SOFTRESET),
  849. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  850. .sysc_fields = &omap_hwmod_sysc_type1,
  851. };
  852. static struct omap_hwmod_class omap54xx_kbd_hwmod_class = {
  853. .name = "kbd",
  854. .sysc = &omap54xx_kbd_sysc,
  855. };
  856. /* kbd */
  857. static struct omap_hwmod omap54xx_kbd_hwmod = {
  858. .name = "kbd",
  859. .class = &omap54xx_kbd_hwmod_class,
  860. .clkdm_name = "wkupaon_clkdm",
  861. .main_clk = "sys_32k_ck",
  862. .prcm = {
  863. .omap4 = {
  864. .clkctrl_offs = OMAP54XX_CM_WKUPAON_KBD_CLKCTRL_OFFSET,
  865. .context_offs = OMAP54XX_RM_WKUPAON_KBD_CONTEXT_OFFSET,
  866. .modulemode = MODULEMODE_SWCTRL,
  867. },
  868. },
  869. };
  870. /*
  871. * 'mailbox' class
  872. * mailbox module allowing communication between the on-chip processors using a
  873. * queued mailbox-interrupt mechanism.
  874. */
  875. static struct omap_hwmod_class_sysconfig omap54xx_mailbox_sysc = {
  876. .rev_offs = 0x0000,
  877. .sysc_offs = 0x0010,
  878. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  879. SYSC_HAS_SOFTRESET),
  880. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  881. .sysc_fields = &omap_hwmod_sysc_type2,
  882. };
  883. static struct omap_hwmod_class omap54xx_mailbox_hwmod_class = {
  884. .name = "mailbox",
  885. .sysc = &omap54xx_mailbox_sysc,
  886. };
  887. /* mailbox */
  888. static struct omap_hwmod omap54xx_mailbox_hwmod = {
  889. .name = "mailbox",
  890. .class = &omap54xx_mailbox_hwmod_class,
  891. .clkdm_name = "l4cfg_clkdm",
  892. .prcm = {
  893. .omap4 = {
  894. .clkctrl_offs = OMAP54XX_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
  895. .context_offs = OMAP54XX_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
  896. },
  897. },
  898. };
  899. /*
  900. * 'mcbsp' class
  901. * multi channel buffered serial port controller
  902. */
  903. static struct omap_hwmod_class_sysconfig omap54xx_mcbsp_sysc = {
  904. .sysc_offs = 0x008c,
  905. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
  906. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  907. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  908. .sysc_fields = &omap_hwmod_sysc_type1,
  909. };
  910. static struct omap_hwmod_class omap54xx_mcbsp_hwmod_class = {
  911. .name = "mcbsp",
  912. .sysc = &omap54xx_mcbsp_sysc,
  913. .rev = MCBSP_CONFIG_TYPE4,
  914. };
  915. /* mcbsp1 */
  916. static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
  917. { .role = "pad_fck", .clk = "pad_clks_ck" },
  918. { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
  919. };
  920. static struct omap_hwmod omap54xx_mcbsp1_hwmod = {
  921. .name = "mcbsp1",
  922. .class = &omap54xx_mcbsp_hwmod_class,
  923. .clkdm_name = "abe_clkdm",
  924. .main_clk = "mcbsp1_gfclk",
  925. .prcm = {
  926. .omap4 = {
  927. .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP1_CLKCTRL_OFFSET,
  928. .context_offs = OMAP54XX_RM_ABE_MCBSP1_CONTEXT_OFFSET,
  929. .modulemode = MODULEMODE_SWCTRL,
  930. },
  931. },
  932. .opt_clks = mcbsp1_opt_clks,
  933. .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
  934. };
  935. /* mcbsp2 */
  936. static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
  937. { .role = "pad_fck", .clk = "pad_clks_ck" },
  938. { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
  939. };
  940. static struct omap_hwmod omap54xx_mcbsp2_hwmod = {
  941. .name = "mcbsp2",
  942. .class = &omap54xx_mcbsp_hwmod_class,
  943. .clkdm_name = "abe_clkdm",
  944. .main_clk = "mcbsp2_gfclk",
  945. .prcm = {
  946. .omap4 = {
  947. .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP2_CLKCTRL_OFFSET,
  948. .context_offs = OMAP54XX_RM_ABE_MCBSP2_CONTEXT_OFFSET,
  949. .modulemode = MODULEMODE_SWCTRL,
  950. },
  951. },
  952. .opt_clks = mcbsp2_opt_clks,
  953. .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
  954. };
  955. /* mcbsp3 */
  956. static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
  957. { .role = "pad_fck", .clk = "pad_clks_ck" },
  958. { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
  959. };
  960. static struct omap_hwmod omap54xx_mcbsp3_hwmod = {
  961. .name = "mcbsp3",
  962. .class = &omap54xx_mcbsp_hwmod_class,
  963. .clkdm_name = "abe_clkdm",
  964. .main_clk = "mcbsp3_gfclk",
  965. .prcm = {
  966. .omap4 = {
  967. .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP3_CLKCTRL_OFFSET,
  968. .context_offs = OMAP54XX_RM_ABE_MCBSP3_CONTEXT_OFFSET,
  969. .modulemode = MODULEMODE_SWCTRL,
  970. },
  971. },
  972. .opt_clks = mcbsp3_opt_clks,
  973. .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
  974. };
  975. /*
  976. * 'mcpdm' class
  977. * multi channel pdm controller (proprietary interface with phoenix power
  978. * ic)
  979. */
  980. static struct omap_hwmod_class_sysconfig omap54xx_mcpdm_sysc = {
  981. .rev_offs = 0x0000,
  982. .sysc_offs = 0x0010,
  983. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  984. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  985. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  986. SIDLE_SMART_WKUP),
  987. .sysc_fields = &omap_hwmod_sysc_type2,
  988. };
  989. static struct omap_hwmod_class omap54xx_mcpdm_hwmod_class = {
  990. .name = "mcpdm",
  991. .sysc = &omap54xx_mcpdm_sysc,
  992. };
  993. /* mcpdm */
  994. static struct omap_hwmod omap54xx_mcpdm_hwmod = {
  995. .name = "mcpdm",
  996. .class = &omap54xx_mcpdm_hwmod_class,
  997. .clkdm_name = "abe_clkdm",
  998. /*
  999. * It's suspected that the McPDM requires an off-chip main
  1000. * functional clock, controlled via I2C. This IP block is
  1001. * currently reset very early during boot, before I2C is
  1002. * available, so it doesn't seem that we have any choice in
  1003. * the kernel other than to avoid resetting it. XXX This is
  1004. * really a hardware issue workaround: every IP block should
  1005. * be able to source its main functional clock from either
  1006. * on-chip or off-chip sources. McPDM seems to be the only
  1007. * current exception.
  1008. */
  1009. .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
  1010. .main_clk = "pad_clks_ck",
  1011. .prcm = {
  1012. .omap4 = {
  1013. .clkctrl_offs = OMAP54XX_CM_ABE_MCPDM_CLKCTRL_OFFSET,
  1014. .context_offs = OMAP54XX_RM_ABE_MCPDM_CONTEXT_OFFSET,
  1015. .modulemode = MODULEMODE_SWCTRL,
  1016. },
  1017. },
  1018. };
  1019. /*
  1020. * 'mcspi' class
  1021. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  1022. * bus
  1023. */
  1024. static struct omap_hwmod_class_sysconfig omap54xx_mcspi_sysc = {
  1025. .rev_offs = 0x0000,
  1026. .sysc_offs = 0x0010,
  1027. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1028. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1029. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1030. SIDLE_SMART_WKUP),
  1031. .sysc_fields = &omap_hwmod_sysc_type2,
  1032. };
  1033. static struct omap_hwmod_class omap54xx_mcspi_hwmod_class = {
  1034. .name = "mcspi",
  1035. .sysc = &omap54xx_mcspi_sysc,
  1036. .rev = OMAP4_MCSPI_REV,
  1037. };
  1038. /* mcspi1 */
  1039. /* mcspi1 dev_attr */
  1040. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1041. .num_chipselect = 4,
  1042. };
  1043. static struct omap_hwmod omap54xx_mcspi1_hwmod = {
  1044. .name = "mcspi1",
  1045. .class = &omap54xx_mcspi_hwmod_class,
  1046. .clkdm_name = "l4per_clkdm",
  1047. .main_clk = "func_48m_fclk",
  1048. .prcm = {
  1049. .omap4 = {
  1050. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1051. .context_offs = OMAP54XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1052. .modulemode = MODULEMODE_SWCTRL,
  1053. },
  1054. },
  1055. .dev_attr = &mcspi1_dev_attr,
  1056. };
  1057. /* mcspi2 */
  1058. /* mcspi2 dev_attr */
  1059. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1060. .num_chipselect = 2,
  1061. };
  1062. static struct omap_hwmod omap54xx_mcspi2_hwmod = {
  1063. .name = "mcspi2",
  1064. .class = &omap54xx_mcspi_hwmod_class,
  1065. .clkdm_name = "l4per_clkdm",
  1066. .main_clk = "func_48m_fclk",
  1067. .prcm = {
  1068. .omap4 = {
  1069. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1070. .context_offs = OMAP54XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1071. .modulemode = MODULEMODE_SWCTRL,
  1072. },
  1073. },
  1074. .dev_attr = &mcspi2_dev_attr,
  1075. };
  1076. /* mcspi3 */
  1077. /* mcspi3 dev_attr */
  1078. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1079. .num_chipselect = 2,
  1080. };
  1081. static struct omap_hwmod omap54xx_mcspi3_hwmod = {
  1082. .name = "mcspi3",
  1083. .class = &omap54xx_mcspi_hwmod_class,
  1084. .clkdm_name = "l4per_clkdm",
  1085. .main_clk = "func_48m_fclk",
  1086. .prcm = {
  1087. .omap4 = {
  1088. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1089. .context_offs = OMAP54XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1090. .modulemode = MODULEMODE_SWCTRL,
  1091. },
  1092. },
  1093. .dev_attr = &mcspi3_dev_attr,
  1094. };
  1095. /* mcspi4 */
  1096. /* mcspi4 dev_attr */
  1097. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1098. .num_chipselect = 1,
  1099. };
  1100. static struct omap_hwmod omap54xx_mcspi4_hwmod = {
  1101. .name = "mcspi4",
  1102. .class = &omap54xx_mcspi_hwmod_class,
  1103. .clkdm_name = "l4per_clkdm",
  1104. .main_clk = "func_48m_fclk",
  1105. .prcm = {
  1106. .omap4 = {
  1107. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1108. .context_offs = OMAP54XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1109. .modulemode = MODULEMODE_SWCTRL,
  1110. },
  1111. },
  1112. .dev_attr = &mcspi4_dev_attr,
  1113. };
  1114. /*
  1115. * 'mmc' class
  1116. * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
  1117. */
  1118. static struct omap_hwmod_class_sysconfig omap54xx_mmc_sysc = {
  1119. .rev_offs = 0x0000,
  1120. .sysc_offs = 0x0010,
  1121. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1122. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1123. SYSC_HAS_SOFTRESET),
  1124. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1125. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1126. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1127. .sysc_fields = &omap_hwmod_sysc_type2,
  1128. };
  1129. static struct omap_hwmod_class omap54xx_mmc_hwmod_class = {
  1130. .name = "mmc",
  1131. .sysc = &omap54xx_mmc_sysc,
  1132. };
  1133. /* mmc1 */
  1134. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  1135. { .role = "32khz_clk", .clk = "mmc1_32khz_clk" },
  1136. };
  1137. /* mmc1 dev_attr */
  1138. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  1139. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1140. };
  1141. static struct omap_hwmod omap54xx_mmc1_hwmod = {
  1142. .name = "mmc1",
  1143. .class = &omap54xx_mmc_hwmod_class,
  1144. .clkdm_name = "l3init_clkdm",
  1145. .main_clk = "mmc1_fclk",
  1146. .prcm = {
  1147. .omap4 = {
  1148. .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1149. .context_offs = OMAP54XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1150. .modulemode = MODULEMODE_SWCTRL,
  1151. },
  1152. },
  1153. .opt_clks = mmc1_opt_clks,
  1154. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  1155. .dev_attr = &mmc1_dev_attr,
  1156. };
  1157. /* mmc2 */
  1158. static struct omap_hwmod omap54xx_mmc2_hwmod = {
  1159. .name = "mmc2",
  1160. .class = &omap54xx_mmc_hwmod_class,
  1161. .clkdm_name = "l3init_clkdm",
  1162. .main_clk = "mmc2_fclk",
  1163. .prcm = {
  1164. .omap4 = {
  1165. .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1166. .context_offs = OMAP54XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1167. .modulemode = MODULEMODE_SWCTRL,
  1168. },
  1169. },
  1170. };
  1171. /* mmc3 */
  1172. static struct omap_hwmod omap54xx_mmc3_hwmod = {
  1173. .name = "mmc3",
  1174. .class = &omap54xx_mmc_hwmod_class,
  1175. .clkdm_name = "l4per_clkdm",
  1176. .main_clk = "func_48m_fclk",
  1177. .prcm = {
  1178. .omap4 = {
  1179. .clkctrl_offs = OMAP54XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  1180. .context_offs = OMAP54XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  1181. .modulemode = MODULEMODE_SWCTRL,
  1182. },
  1183. },
  1184. };
  1185. /* mmc4 */
  1186. static struct omap_hwmod omap54xx_mmc4_hwmod = {
  1187. .name = "mmc4",
  1188. .class = &omap54xx_mmc_hwmod_class,
  1189. .clkdm_name = "l4per_clkdm",
  1190. .main_clk = "func_48m_fclk",
  1191. .prcm = {
  1192. .omap4 = {
  1193. .clkctrl_offs = OMAP54XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  1194. .context_offs = OMAP54XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  1195. .modulemode = MODULEMODE_SWCTRL,
  1196. },
  1197. },
  1198. };
  1199. /* mmc5 */
  1200. static struct omap_hwmod omap54xx_mmc5_hwmod = {
  1201. .name = "mmc5",
  1202. .class = &omap54xx_mmc_hwmod_class,
  1203. .clkdm_name = "l4per_clkdm",
  1204. .main_clk = "func_96m_fclk",
  1205. .prcm = {
  1206. .omap4 = {
  1207. .clkctrl_offs = OMAP54XX_CM_L4PER_MMC5_CLKCTRL_OFFSET,
  1208. .context_offs = OMAP54XX_RM_L4PER_MMC5_CONTEXT_OFFSET,
  1209. .modulemode = MODULEMODE_SWCTRL,
  1210. },
  1211. },
  1212. };
  1213. /*
  1214. * 'mmu' class
  1215. * The memory management unit performs virtual to physical address translation
  1216. * for its requestors.
  1217. */
  1218. static struct omap_hwmod_class_sysconfig omap54xx_mmu_sysc = {
  1219. .rev_offs = 0x0000,
  1220. .sysc_offs = 0x0010,
  1221. .syss_offs = 0x0014,
  1222. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1223. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1224. SYSS_HAS_RESET_STATUS),
  1225. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1226. .sysc_fields = &omap_hwmod_sysc_type1,
  1227. };
  1228. static struct omap_hwmod_class omap54xx_mmu_hwmod_class = {
  1229. .name = "mmu",
  1230. .sysc = &omap54xx_mmu_sysc,
  1231. };
  1232. static struct omap_hwmod_rst_info omap54xx_mmu_dsp_resets[] = {
  1233. { .name = "mmu_cache", .rst_shift = 1 },
  1234. };
  1235. static struct omap_hwmod omap54xx_mmu_dsp_hwmod = {
  1236. .name = "mmu_dsp",
  1237. .class = &omap54xx_mmu_hwmod_class,
  1238. .clkdm_name = "dsp_clkdm",
  1239. .rst_lines = omap54xx_mmu_dsp_resets,
  1240. .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_dsp_resets),
  1241. .main_clk = "dpll_iva_h11x2_ck",
  1242. .prcm = {
  1243. .omap4 = {
  1244. .clkctrl_offs = OMAP54XX_CM_DSP_DSP_CLKCTRL_OFFSET,
  1245. .rstctrl_offs = OMAP54XX_RM_DSP_RSTCTRL_OFFSET,
  1246. .context_offs = OMAP54XX_RM_DSP_DSP_CONTEXT_OFFSET,
  1247. .modulemode = MODULEMODE_HWCTRL,
  1248. },
  1249. },
  1250. };
  1251. /* mmu ipu */
  1252. static struct omap_hwmod_rst_info omap54xx_mmu_ipu_resets[] = {
  1253. { .name = "mmu_cache", .rst_shift = 2 },
  1254. };
  1255. static struct omap_hwmod omap54xx_mmu_ipu_hwmod = {
  1256. .name = "mmu_ipu",
  1257. .class = &omap54xx_mmu_hwmod_class,
  1258. .clkdm_name = "ipu_clkdm",
  1259. .rst_lines = omap54xx_mmu_ipu_resets,
  1260. .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_ipu_resets),
  1261. .main_clk = "dpll_core_h22x2_ck",
  1262. .prcm = {
  1263. .omap4 = {
  1264. .clkctrl_offs = OMAP54XX_CM_IPU_IPU_CLKCTRL_OFFSET,
  1265. .rstctrl_offs = OMAP54XX_RM_IPU_RSTCTRL_OFFSET,
  1266. .context_offs = OMAP54XX_RM_IPU_IPU_CONTEXT_OFFSET,
  1267. .modulemode = MODULEMODE_HWCTRL,
  1268. },
  1269. },
  1270. };
  1271. /*
  1272. * 'mpu' class
  1273. * mpu sub-system
  1274. */
  1275. static struct omap_hwmod_class omap54xx_mpu_hwmod_class = {
  1276. .name = "mpu",
  1277. };
  1278. /* mpu */
  1279. static struct omap_hwmod omap54xx_mpu_hwmod = {
  1280. .name = "mpu",
  1281. .class = &omap54xx_mpu_hwmod_class,
  1282. .clkdm_name = "mpu_clkdm",
  1283. .flags = HWMOD_INIT_NO_IDLE,
  1284. .main_clk = "dpll_mpu_m2_ck",
  1285. .prcm = {
  1286. .omap4 = {
  1287. .clkctrl_offs = OMAP54XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1288. .context_offs = OMAP54XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1289. },
  1290. },
  1291. };
  1292. /*
  1293. * 'spinlock' class
  1294. * spinlock provides hardware assistance for synchronizing the processes
  1295. * running on multiple processors
  1296. */
  1297. static struct omap_hwmod_class_sysconfig omap54xx_spinlock_sysc = {
  1298. .rev_offs = 0x0000,
  1299. .sysc_offs = 0x0010,
  1300. .syss_offs = 0x0014,
  1301. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1302. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1303. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1304. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1305. .sysc_fields = &omap_hwmod_sysc_type1,
  1306. };
  1307. static struct omap_hwmod_class omap54xx_spinlock_hwmod_class = {
  1308. .name = "spinlock",
  1309. .sysc = &omap54xx_spinlock_sysc,
  1310. };
  1311. /* spinlock */
  1312. static struct omap_hwmod omap54xx_spinlock_hwmod = {
  1313. .name = "spinlock",
  1314. .class = &omap54xx_spinlock_hwmod_class,
  1315. .clkdm_name = "l4cfg_clkdm",
  1316. .prcm = {
  1317. .omap4 = {
  1318. .clkctrl_offs = OMAP54XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1319. .context_offs = OMAP54XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1320. },
  1321. },
  1322. };
  1323. /*
  1324. * 'ocp2scp' class
  1325. * bridge to transform ocp interface protocol to scp (serial control port)
  1326. * protocol
  1327. */
  1328. static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc = {
  1329. .rev_offs = 0x0000,
  1330. .sysc_offs = 0x0010,
  1331. .syss_offs = 0x0014,
  1332. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1333. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1334. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1335. .sysc_fields = &omap_hwmod_sysc_type1,
  1336. };
  1337. static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
  1338. .name = "ocp2scp",
  1339. .sysc = &omap54xx_ocp2scp_sysc,
  1340. };
  1341. /* ocp2scp1 */
  1342. static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
  1343. .name = "ocp2scp1",
  1344. .class = &omap54xx_ocp2scp_hwmod_class,
  1345. .clkdm_name = "l3init_clkdm",
  1346. .main_clk = "l4_root_clk_div",
  1347. .prcm = {
  1348. .omap4 = {
  1349. .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1350. .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1351. .modulemode = MODULEMODE_HWCTRL,
  1352. },
  1353. },
  1354. };
  1355. /*
  1356. * 'timer' class
  1357. * general purpose timer module with accurate 1ms tick
  1358. * This class contains several variants: ['timer_1ms', 'timer']
  1359. */
  1360. static struct omap_hwmod_class_sysconfig omap54xx_timer_1ms_sysc = {
  1361. .rev_offs = 0x0000,
  1362. .sysc_offs = 0x0010,
  1363. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1364. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1365. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1366. SIDLE_SMART_WKUP),
  1367. .sysc_fields = &omap_hwmod_sysc_type2,
  1368. .clockact = CLOCKACT_TEST_ICLK,
  1369. };
  1370. static struct omap_hwmod_class omap54xx_timer_1ms_hwmod_class = {
  1371. .name = "timer",
  1372. .sysc = &omap54xx_timer_1ms_sysc,
  1373. };
  1374. static struct omap_hwmod_class_sysconfig omap54xx_timer_sysc = {
  1375. .rev_offs = 0x0000,
  1376. .sysc_offs = 0x0010,
  1377. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1378. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1379. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1380. SIDLE_SMART_WKUP),
  1381. .sysc_fields = &omap_hwmod_sysc_type2,
  1382. };
  1383. static struct omap_hwmod_class omap54xx_timer_hwmod_class = {
  1384. .name = "timer",
  1385. .sysc = &omap54xx_timer_sysc,
  1386. };
  1387. /* timer1 */
  1388. static struct omap_hwmod omap54xx_timer1_hwmod = {
  1389. .name = "timer1",
  1390. .class = &omap54xx_timer_1ms_hwmod_class,
  1391. .clkdm_name = "wkupaon_clkdm",
  1392. .main_clk = "timer1_gfclk_mux",
  1393. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1394. .prcm = {
  1395. .omap4 = {
  1396. .clkctrl_offs = OMAP54XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1397. .context_offs = OMAP54XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1398. .modulemode = MODULEMODE_SWCTRL,
  1399. },
  1400. },
  1401. };
  1402. /* timer2 */
  1403. static struct omap_hwmod omap54xx_timer2_hwmod = {
  1404. .name = "timer2",
  1405. .class = &omap54xx_timer_1ms_hwmod_class,
  1406. .clkdm_name = "l4per_clkdm",
  1407. .main_clk = "timer2_gfclk_mux",
  1408. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1409. .prcm = {
  1410. .omap4 = {
  1411. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1412. .context_offs = OMAP54XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1413. .modulemode = MODULEMODE_SWCTRL,
  1414. },
  1415. },
  1416. };
  1417. /* timer3 */
  1418. static struct omap_hwmod omap54xx_timer3_hwmod = {
  1419. .name = "timer3",
  1420. .class = &omap54xx_timer_hwmod_class,
  1421. .clkdm_name = "l4per_clkdm",
  1422. .main_clk = "timer3_gfclk_mux",
  1423. .prcm = {
  1424. .omap4 = {
  1425. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1426. .context_offs = OMAP54XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1427. .modulemode = MODULEMODE_SWCTRL,
  1428. },
  1429. },
  1430. };
  1431. /* timer4 */
  1432. static struct omap_hwmod omap54xx_timer4_hwmod = {
  1433. .name = "timer4",
  1434. .class = &omap54xx_timer_hwmod_class,
  1435. .clkdm_name = "l4per_clkdm",
  1436. .main_clk = "timer4_gfclk_mux",
  1437. .prcm = {
  1438. .omap4 = {
  1439. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1440. .context_offs = OMAP54XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1441. .modulemode = MODULEMODE_SWCTRL,
  1442. },
  1443. },
  1444. };
  1445. /* timer5 */
  1446. static struct omap_hwmod omap54xx_timer5_hwmod = {
  1447. .name = "timer5",
  1448. .class = &omap54xx_timer_hwmod_class,
  1449. .clkdm_name = "abe_clkdm",
  1450. .main_clk = "timer5_gfclk_mux",
  1451. .prcm = {
  1452. .omap4 = {
  1453. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER5_CLKCTRL_OFFSET,
  1454. .context_offs = OMAP54XX_RM_ABE_TIMER5_CONTEXT_OFFSET,
  1455. .modulemode = MODULEMODE_SWCTRL,
  1456. },
  1457. },
  1458. };
  1459. /* timer6 */
  1460. static struct omap_hwmod omap54xx_timer6_hwmod = {
  1461. .name = "timer6",
  1462. .class = &omap54xx_timer_hwmod_class,
  1463. .clkdm_name = "abe_clkdm",
  1464. .main_clk = "timer6_gfclk_mux",
  1465. .prcm = {
  1466. .omap4 = {
  1467. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER6_CLKCTRL_OFFSET,
  1468. .context_offs = OMAP54XX_RM_ABE_TIMER6_CONTEXT_OFFSET,
  1469. .modulemode = MODULEMODE_SWCTRL,
  1470. },
  1471. },
  1472. };
  1473. /* timer7 */
  1474. static struct omap_hwmod omap54xx_timer7_hwmod = {
  1475. .name = "timer7",
  1476. .class = &omap54xx_timer_hwmod_class,
  1477. .clkdm_name = "abe_clkdm",
  1478. .main_clk = "timer7_gfclk_mux",
  1479. .prcm = {
  1480. .omap4 = {
  1481. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER7_CLKCTRL_OFFSET,
  1482. .context_offs = OMAP54XX_RM_ABE_TIMER7_CONTEXT_OFFSET,
  1483. .modulemode = MODULEMODE_SWCTRL,
  1484. },
  1485. },
  1486. };
  1487. /* timer8 */
  1488. static struct omap_hwmod omap54xx_timer8_hwmod = {
  1489. .name = "timer8",
  1490. .class = &omap54xx_timer_hwmod_class,
  1491. .clkdm_name = "abe_clkdm",
  1492. .main_clk = "timer8_gfclk_mux",
  1493. .prcm = {
  1494. .omap4 = {
  1495. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER8_CLKCTRL_OFFSET,
  1496. .context_offs = OMAP54XX_RM_ABE_TIMER8_CONTEXT_OFFSET,
  1497. .modulemode = MODULEMODE_SWCTRL,
  1498. },
  1499. },
  1500. };
  1501. /* timer9 */
  1502. static struct omap_hwmod omap54xx_timer9_hwmod = {
  1503. .name = "timer9",
  1504. .class = &omap54xx_timer_hwmod_class,
  1505. .clkdm_name = "l4per_clkdm",
  1506. .main_clk = "timer9_gfclk_mux",
  1507. .prcm = {
  1508. .omap4 = {
  1509. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  1510. .context_offs = OMAP54XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  1511. .modulemode = MODULEMODE_SWCTRL,
  1512. },
  1513. },
  1514. };
  1515. /* timer10 */
  1516. static struct omap_hwmod omap54xx_timer10_hwmod = {
  1517. .name = "timer10",
  1518. .class = &omap54xx_timer_1ms_hwmod_class,
  1519. .clkdm_name = "l4per_clkdm",
  1520. .main_clk = "timer10_gfclk_mux",
  1521. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1522. .prcm = {
  1523. .omap4 = {
  1524. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  1525. .context_offs = OMAP54XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  1526. .modulemode = MODULEMODE_SWCTRL,
  1527. },
  1528. },
  1529. };
  1530. /* timer11 */
  1531. static struct omap_hwmod omap54xx_timer11_hwmod = {
  1532. .name = "timer11",
  1533. .class = &omap54xx_timer_hwmod_class,
  1534. .clkdm_name = "l4per_clkdm",
  1535. .main_clk = "timer11_gfclk_mux",
  1536. .prcm = {
  1537. .omap4 = {
  1538. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  1539. .context_offs = OMAP54XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  1540. .modulemode = MODULEMODE_SWCTRL,
  1541. },
  1542. },
  1543. };
  1544. /*
  1545. * 'uart' class
  1546. * universal asynchronous receiver/transmitter (uart)
  1547. */
  1548. static struct omap_hwmod_class_sysconfig omap54xx_uart_sysc = {
  1549. .rev_offs = 0x0050,
  1550. .sysc_offs = 0x0054,
  1551. .syss_offs = 0x0058,
  1552. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1553. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1554. SYSS_HAS_RESET_STATUS),
  1555. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1556. SIDLE_SMART_WKUP),
  1557. .sysc_fields = &omap_hwmod_sysc_type1,
  1558. };
  1559. static struct omap_hwmod_class omap54xx_uart_hwmod_class = {
  1560. .name = "uart",
  1561. .sysc = &omap54xx_uart_sysc,
  1562. };
  1563. /* uart1 */
  1564. static struct omap_hwmod omap54xx_uart1_hwmod = {
  1565. .name = "uart1",
  1566. .class = &omap54xx_uart_hwmod_class,
  1567. .clkdm_name = "l4per_clkdm",
  1568. .main_clk = "func_48m_fclk",
  1569. .prcm = {
  1570. .omap4 = {
  1571. .clkctrl_offs = OMAP54XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  1572. .context_offs = OMAP54XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  1573. .modulemode = MODULEMODE_SWCTRL,
  1574. },
  1575. },
  1576. };
  1577. /* uart2 */
  1578. static struct omap_hwmod omap54xx_uart2_hwmod = {
  1579. .name = "uart2",
  1580. .class = &omap54xx_uart_hwmod_class,
  1581. .clkdm_name = "l4per_clkdm",
  1582. .main_clk = "func_48m_fclk",
  1583. .prcm = {
  1584. .omap4 = {
  1585. .clkctrl_offs = OMAP54XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  1586. .context_offs = OMAP54XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  1587. .modulemode = MODULEMODE_SWCTRL,
  1588. },
  1589. },
  1590. };
  1591. /* uart3 */
  1592. static struct omap_hwmod omap54xx_uart3_hwmod = {
  1593. .name = "uart3",
  1594. .class = &omap54xx_uart_hwmod_class,
  1595. .clkdm_name = "l4per_clkdm",
  1596. .flags = DEBUG_OMAP4UART3_FLAGS,
  1597. .main_clk = "func_48m_fclk",
  1598. .prcm = {
  1599. .omap4 = {
  1600. .clkctrl_offs = OMAP54XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  1601. .context_offs = OMAP54XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  1602. .modulemode = MODULEMODE_SWCTRL,
  1603. },
  1604. },
  1605. };
  1606. /* uart4 */
  1607. static struct omap_hwmod omap54xx_uart4_hwmod = {
  1608. .name = "uart4",
  1609. .class = &omap54xx_uart_hwmod_class,
  1610. .clkdm_name = "l4per_clkdm",
  1611. .flags = DEBUG_OMAP4UART4_FLAGS,
  1612. .main_clk = "func_48m_fclk",
  1613. .prcm = {
  1614. .omap4 = {
  1615. .clkctrl_offs = OMAP54XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  1616. .context_offs = OMAP54XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  1617. .modulemode = MODULEMODE_SWCTRL,
  1618. },
  1619. },
  1620. };
  1621. /* uart5 */
  1622. static struct omap_hwmod omap54xx_uart5_hwmod = {
  1623. .name = "uart5",
  1624. .class = &omap54xx_uart_hwmod_class,
  1625. .clkdm_name = "l4per_clkdm",
  1626. .main_clk = "func_48m_fclk",
  1627. .prcm = {
  1628. .omap4 = {
  1629. .clkctrl_offs = OMAP54XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  1630. .context_offs = OMAP54XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  1631. .modulemode = MODULEMODE_SWCTRL,
  1632. },
  1633. },
  1634. };
  1635. /* uart6 */
  1636. static struct omap_hwmod omap54xx_uart6_hwmod = {
  1637. .name = "uart6",
  1638. .class = &omap54xx_uart_hwmod_class,
  1639. .clkdm_name = "l4per_clkdm",
  1640. .main_clk = "func_48m_fclk",
  1641. .prcm = {
  1642. .omap4 = {
  1643. .clkctrl_offs = OMAP54XX_CM_L4PER_UART6_CLKCTRL_OFFSET,
  1644. .context_offs = OMAP54XX_RM_L4PER_UART6_CONTEXT_OFFSET,
  1645. .modulemode = MODULEMODE_SWCTRL,
  1646. },
  1647. },
  1648. };
  1649. /*
  1650. * 'usb_host_hs' class
  1651. * high-speed multi-port usb host controller
  1652. */
  1653. static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc = {
  1654. .rev_offs = 0x0000,
  1655. .sysc_offs = 0x0010,
  1656. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  1657. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1658. SYSC_HAS_RESET_STATUS),
  1659. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1660. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1661. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1662. .sysc_fields = &omap_hwmod_sysc_type2,
  1663. };
  1664. static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class = {
  1665. .name = "usb_host_hs",
  1666. .sysc = &omap54xx_usb_host_hs_sysc,
  1667. };
  1668. static struct omap_hwmod omap54xx_usb_host_hs_hwmod = {
  1669. .name = "usb_host_hs",
  1670. .class = &omap54xx_usb_host_hs_hwmod_class,
  1671. .clkdm_name = "l3init_clkdm",
  1672. /*
  1673. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  1674. * id: i660
  1675. *
  1676. * Description:
  1677. * In the following configuration :
  1678. * - USBHOST module is set to smart-idle mode
  1679. * - PRCM asserts idle_req to the USBHOST module ( This typically
  1680. * happens when the system is going to a low power mode : all ports
  1681. * have been suspended, the master part of the USBHOST module has
  1682. * entered the standby state, and SW has cut the functional clocks)
  1683. * - an USBHOST interrupt occurs before the module is able to answer
  1684. * idle_ack, typically a remote wakeup IRQ.
  1685. * Then the USB HOST module will enter a deadlock situation where it
  1686. * is no more accessible nor functional.
  1687. *
  1688. * Workaround:
  1689. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  1690. */
  1691. /*
  1692. * Errata: USB host EHCI may stall when entering smart-standby mode
  1693. * Id: i571
  1694. *
  1695. * Description:
  1696. * When the USBHOST module is set to smart-standby mode, and when it is
  1697. * ready to enter the standby state (i.e. all ports are suspended and
  1698. * all attached devices are in suspend mode), then it can wrongly assert
  1699. * the Mstandby signal too early while there are still some residual OCP
  1700. * transactions ongoing. If this condition occurs, the internal state
  1701. * machine may go to an undefined state and the USB link may be stuck
  1702. * upon the next resume.
  1703. *
  1704. * Workaround:
  1705. * Don't use smart standby; use only force standby,
  1706. * hence HWMOD_SWSUP_MSTANDBY
  1707. */
  1708. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1709. .main_clk = "l3init_60m_fclk",
  1710. .prcm = {
  1711. .omap4 = {
  1712. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET,
  1713. .context_offs = OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET,
  1714. .modulemode = MODULEMODE_SWCTRL,
  1715. },
  1716. },
  1717. };
  1718. /*
  1719. * 'usb_tll_hs' class
  1720. * usb_tll_hs module is the adapter on the usb_host_hs ports
  1721. */
  1722. static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc = {
  1723. .rev_offs = 0x0000,
  1724. .sysc_offs = 0x0010,
  1725. .syss_offs = 0x0014,
  1726. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1727. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1728. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1729. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1730. .sysc_fields = &omap_hwmod_sysc_type1,
  1731. };
  1732. static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class = {
  1733. .name = "usb_tll_hs",
  1734. .sysc = &omap54xx_usb_tll_hs_sysc,
  1735. };
  1736. static struct omap_hwmod omap54xx_usb_tll_hs_hwmod = {
  1737. .name = "usb_tll_hs",
  1738. .class = &omap54xx_usb_tll_hs_hwmod_class,
  1739. .clkdm_name = "l3init_clkdm",
  1740. .main_clk = "l4_root_clk_div",
  1741. .prcm = {
  1742. .omap4 = {
  1743. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET,
  1744. .context_offs = OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET,
  1745. .modulemode = MODULEMODE_HWCTRL,
  1746. },
  1747. },
  1748. };
  1749. /*
  1750. * 'usb_otg_ss' class
  1751. * 2.0 super speed (usb_otg_ss) controller
  1752. */
  1753. static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc = {
  1754. .rev_offs = 0x0000,
  1755. .sysc_offs = 0x0010,
  1756. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  1757. SYSC_HAS_SIDLEMODE),
  1758. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1759. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1760. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1761. .sysc_fields = &omap_hwmod_sysc_type2,
  1762. };
  1763. static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class = {
  1764. .name = "usb_otg_ss",
  1765. .sysc = &omap54xx_usb_otg_ss_sysc,
  1766. };
  1767. /* usb_otg_ss */
  1768. static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks[] = {
  1769. { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" },
  1770. };
  1771. static struct omap_hwmod omap54xx_usb_otg_ss_hwmod = {
  1772. .name = "usb_otg_ss",
  1773. .class = &omap54xx_usb_otg_ss_hwmod_class,
  1774. .clkdm_name = "l3init_clkdm",
  1775. .flags = HWMOD_SWSUP_SIDLE,
  1776. .main_clk = "dpll_core_h13x2_ck",
  1777. .prcm = {
  1778. .omap4 = {
  1779. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET,
  1780. .context_offs = OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET,
  1781. .modulemode = MODULEMODE_HWCTRL,
  1782. },
  1783. },
  1784. .opt_clks = usb_otg_ss_opt_clks,
  1785. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss_opt_clks),
  1786. };
  1787. /*
  1788. * 'wd_timer' class
  1789. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  1790. * overflow condition
  1791. */
  1792. static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc = {
  1793. .rev_offs = 0x0000,
  1794. .sysc_offs = 0x0010,
  1795. .syss_offs = 0x0014,
  1796. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1797. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1798. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1799. SIDLE_SMART_WKUP),
  1800. .sysc_fields = &omap_hwmod_sysc_type1,
  1801. };
  1802. static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class = {
  1803. .name = "wd_timer",
  1804. .sysc = &omap54xx_wd_timer_sysc,
  1805. .pre_shutdown = &omap2_wd_timer_disable,
  1806. };
  1807. /* wd_timer2 */
  1808. static struct omap_hwmod omap54xx_wd_timer2_hwmod = {
  1809. .name = "wd_timer2",
  1810. .class = &omap54xx_wd_timer_hwmod_class,
  1811. .clkdm_name = "wkupaon_clkdm",
  1812. .main_clk = "sys_32k_ck",
  1813. .prcm = {
  1814. .omap4 = {
  1815. .clkctrl_offs = OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  1816. .context_offs = OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  1817. .modulemode = MODULEMODE_SWCTRL,
  1818. },
  1819. },
  1820. };
  1821. /*
  1822. * 'ocp2scp' class
  1823. * bridge to transform ocp interface protocol to scp (serial control port)
  1824. * protocol
  1825. */
  1826. /* ocp2scp3 */
  1827. static struct omap_hwmod omap54xx_ocp2scp3_hwmod;
  1828. /* l4_cfg -> ocp2scp3 */
  1829. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp3 = {
  1830. .master = &omap54xx_l4_cfg_hwmod,
  1831. .slave = &omap54xx_ocp2scp3_hwmod,
  1832. .clk = "l4_root_clk_div",
  1833. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1834. };
  1835. static struct omap_hwmod omap54xx_ocp2scp3_hwmod = {
  1836. .name = "ocp2scp3",
  1837. .class = &omap54xx_ocp2scp_hwmod_class,
  1838. .clkdm_name = "l3init_clkdm",
  1839. .prcm = {
  1840. .omap4 = {
  1841. .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
  1842. .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
  1843. .modulemode = MODULEMODE_HWCTRL,
  1844. },
  1845. },
  1846. };
  1847. /*
  1848. * 'sata' class
  1849. * sata: serial ata interface gen2 compliant ( 1 rx/ 1 tx)
  1850. */
  1851. static struct omap_hwmod_class_sysconfig omap54xx_sata_sysc = {
  1852. .sysc_offs = 0x0000,
  1853. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1854. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1855. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1856. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1857. .sysc_fields = &omap_hwmod_sysc_type2,
  1858. };
  1859. static struct omap_hwmod_class omap54xx_sata_hwmod_class = {
  1860. .name = "sata",
  1861. .sysc = &omap54xx_sata_sysc,
  1862. };
  1863. /* sata */
  1864. static struct omap_hwmod omap54xx_sata_hwmod = {
  1865. .name = "sata",
  1866. .class = &omap54xx_sata_hwmod_class,
  1867. .clkdm_name = "l3init_clkdm",
  1868. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1869. .main_clk = "func_48m_fclk",
  1870. .mpu_rt_idx = 1,
  1871. .prcm = {
  1872. .omap4 = {
  1873. .clkctrl_offs = OMAP54XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  1874. .context_offs = OMAP54XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  1875. .modulemode = MODULEMODE_SWCTRL,
  1876. },
  1877. },
  1878. };
  1879. /* l4_cfg -> sata */
  1880. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__sata = {
  1881. .master = &omap54xx_l4_cfg_hwmod,
  1882. .slave = &omap54xx_sata_hwmod,
  1883. .clk = "l3_iclk_div",
  1884. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1885. };
  1886. /*
  1887. * Interfaces
  1888. */
  1889. /* l3_main_1 -> dmm */
  1890. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm = {
  1891. .master = &omap54xx_l3_main_1_hwmod,
  1892. .slave = &omap54xx_dmm_hwmod,
  1893. .clk = "l3_iclk_div",
  1894. .user = OCP_USER_SDMA,
  1895. };
  1896. /* l3_main_3 -> l3_instr */
  1897. static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr = {
  1898. .master = &omap54xx_l3_main_3_hwmod,
  1899. .slave = &omap54xx_l3_instr_hwmod,
  1900. .clk = "l3_iclk_div",
  1901. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1902. };
  1903. /* l3_main_2 -> l3_main_1 */
  1904. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1 = {
  1905. .master = &omap54xx_l3_main_2_hwmod,
  1906. .slave = &omap54xx_l3_main_1_hwmod,
  1907. .clk = "l3_iclk_div",
  1908. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1909. };
  1910. /* l4_cfg -> l3_main_1 */
  1911. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1 = {
  1912. .master = &omap54xx_l4_cfg_hwmod,
  1913. .slave = &omap54xx_l3_main_1_hwmod,
  1914. .clk = "l3_iclk_div",
  1915. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1916. };
  1917. /* l4_cfg -> mmu_dsp */
  1918. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mmu_dsp = {
  1919. .master = &omap54xx_l4_cfg_hwmod,
  1920. .slave = &omap54xx_mmu_dsp_hwmod,
  1921. .clk = "l4_root_clk_div",
  1922. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1923. };
  1924. /* mpu -> l3_main_1 */
  1925. static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1 = {
  1926. .master = &omap54xx_mpu_hwmod,
  1927. .slave = &omap54xx_l3_main_1_hwmod,
  1928. .clk = "l3_iclk_div",
  1929. .user = OCP_USER_MPU,
  1930. };
  1931. /* l3_main_1 -> l3_main_2 */
  1932. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2 = {
  1933. .master = &omap54xx_l3_main_1_hwmod,
  1934. .slave = &omap54xx_l3_main_2_hwmod,
  1935. .clk = "l3_iclk_div",
  1936. .user = OCP_USER_MPU,
  1937. };
  1938. /* l4_cfg -> l3_main_2 */
  1939. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2 = {
  1940. .master = &omap54xx_l4_cfg_hwmod,
  1941. .slave = &omap54xx_l3_main_2_hwmod,
  1942. .clk = "l3_iclk_div",
  1943. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1944. };
  1945. /* l3_main_2 -> mmu_ipu */
  1946. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__mmu_ipu = {
  1947. .master = &omap54xx_l3_main_2_hwmod,
  1948. .slave = &omap54xx_mmu_ipu_hwmod,
  1949. .clk = "l3_iclk_div",
  1950. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1951. };
  1952. /* l3_main_1 -> l3_main_3 */
  1953. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3 = {
  1954. .master = &omap54xx_l3_main_1_hwmod,
  1955. .slave = &omap54xx_l3_main_3_hwmod,
  1956. .clk = "l3_iclk_div",
  1957. .user = OCP_USER_MPU,
  1958. };
  1959. /* l3_main_2 -> l3_main_3 */
  1960. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3 = {
  1961. .master = &omap54xx_l3_main_2_hwmod,
  1962. .slave = &omap54xx_l3_main_3_hwmod,
  1963. .clk = "l3_iclk_div",
  1964. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1965. };
  1966. /* l4_cfg -> l3_main_3 */
  1967. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
  1968. .master = &omap54xx_l4_cfg_hwmod,
  1969. .slave = &omap54xx_l3_main_3_hwmod,
  1970. .clk = "l3_iclk_div",
  1971. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1972. };
  1973. /* l3_main_1 -> l4_abe */
  1974. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe = {
  1975. .master = &omap54xx_l3_main_1_hwmod,
  1976. .slave = &omap54xx_l4_abe_hwmod,
  1977. .clk = "abe_iclk",
  1978. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1979. };
  1980. /* mpu -> l4_abe */
  1981. static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe = {
  1982. .master = &omap54xx_mpu_hwmod,
  1983. .slave = &omap54xx_l4_abe_hwmod,
  1984. .clk = "abe_iclk",
  1985. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1986. };
  1987. /* l3_main_1 -> l4_cfg */
  1988. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg = {
  1989. .master = &omap54xx_l3_main_1_hwmod,
  1990. .slave = &omap54xx_l4_cfg_hwmod,
  1991. .clk = "l4_root_clk_div",
  1992. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1993. };
  1994. /* l3_main_2 -> l4_per */
  1995. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per = {
  1996. .master = &omap54xx_l3_main_2_hwmod,
  1997. .slave = &omap54xx_l4_per_hwmod,
  1998. .clk = "l4_root_clk_div",
  1999. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2000. };
  2001. /* l3_main_1 -> l4_wkup */
  2002. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup = {
  2003. .master = &omap54xx_l3_main_1_hwmod,
  2004. .slave = &omap54xx_l4_wkup_hwmod,
  2005. .clk = "wkupaon_iclk_mux",
  2006. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2007. };
  2008. /* mpu -> mpu_private */
  2009. static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private = {
  2010. .master = &omap54xx_mpu_hwmod,
  2011. .slave = &omap54xx_mpu_private_hwmod,
  2012. .clk = "l3_iclk_div",
  2013. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2014. };
  2015. /* l4_wkup -> counter_32k */
  2016. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k = {
  2017. .master = &omap54xx_l4_wkup_hwmod,
  2018. .slave = &omap54xx_counter_32k_hwmod,
  2019. .clk = "wkupaon_iclk_mux",
  2020. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2021. };
  2022. static struct omap_hwmod_addr_space omap54xx_dma_system_addrs[] = {
  2023. {
  2024. .pa_start = 0x4a056000,
  2025. .pa_end = 0x4a056fff,
  2026. .flags = ADDR_TYPE_RT
  2027. },
  2028. { }
  2029. };
  2030. /* l4_cfg -> dma_system */
  2031. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system = {
  2032. .master = &omap54xx_l4_cfg_hwmod,
  2033. .slave = &omap54xx_dma_system_hwmod,
  2034. .clk = "l4_root_clk_div",
  2035. .addr = omap54xx_dma_system_addrs,
  2036. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2037. };
  2038. /* l4_abe -> dmic */
  2039. static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic = {
  2040. .master = &omap54xx_l4_abe_hwmod,
  2041. .slave = &omap54xx_dmic_hwmod,
  2042. .clk = "abe_iclk",
  2043. .user = OCP_USER_MPU,
  2044. };
  2045. /* l3_main_2 -> dss */
  2046. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss = {
  2047. .master = &omap54xx_l3_main_2_hwmod,
  2048. .slave = &omap54xx_dss_hwmod,
  2049. .clk = "l3_iclk_div",
  2050. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2051. };
  2052. /* l3_main_2 -> dss_dispc */
  2053. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dispc = {
  2054. .master = &omap54xx_l3_main_2_hwmod,
  2055. .slave = &omap54xx_dss_dispc_hwmod,
  2056. .clk = "l3_iclk_div",
  2057. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2058. };
  2059. /* l3_main_2 -> dss_dsi1_a */
  2060. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_a = {
  2061. .master = &omap54xx_l3_main_2_hwmod,
  2062. .slave = &omap54xx_dss_dsi1_a_hwmod,
  2063. .clk = "l3_iclk_div",
  2064. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2065. };
  2066. /* l3_main_2 -> dss_dsi1_c */
  2067. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_c = {
  2068. .master = &omap54xx_l3_main_2_hwmod,
  2069. .slave = &omap54xx_dss_dsi1_c_hwmod,
  2070. .clk = "l3_iclk_div",
  2071. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2072. };
  2073. /* l3_main_2 -> dss_hdmi */
  2074. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_hdmi = {
  2075. .master = &omap54xx_l3_main_2_hwmod,
  2076. .slave = &omap54xx_dss_hdmi_hwmod,
  2077. .clk = "l3_iclk_div",
  2078. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2079. };
  2080. /* l3_main_2 -> dss_rfbi */
  2081. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_rfbi = {
  2082. .master = &omap54xx_l3_main_2_hwmod,
  2083. .slave = &omap54xx_dss_rfbi_hwmod,
  2084. .clk = "l3_iclk_div",
  2085. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2086. };
  2087. /* mpu -> emif1 */
  2088. static struct omap_hwmod_ocp_if omap54xx_mpu__emif1 = {
  2089. .master = &omap54xx_mpu_hwmod,
  2090. .slave = &omap54xx_emif1_hwmod,
  2091. .clk = "dpll_core_h11x2_ck",
  2092. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2093. };
  2094. /* mpu -> emif2 */
  2095. static struct omap_hwmod_ocp_if omap54xx_mpu__emif2 = {
  2096. .master = &omap54xx_mpu_hwmod,
  2097. .slave = &omap54xx_emif2_hwmod,
  2098. .clk = "dpll_core_h11x2_ck",
  2099. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2100. };
  2101. /* l4_wkup -> gpio1 */
  2102. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1 = {
  2103. .master = &omap54xx_l4_wkup_hwmod,
  2104. .slave = &omap54xx_gpio1_hwmod,
  2105. .clk = "wkupaon_iclk_mux",
  2106. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2107. };
  2108. /* l4_per -> gpio2 */
  2109. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2 = {
  2110. .master = &omap54xx_l4_per_hwmod,
  2111. .slave = &omap54xx_gpio2_hwmod,
  2112. .clk = "l4_root_clk_div",
  2113. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2114. };
  2115. /* l4_per -> gpio3 */
  2116. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3 = {
  2117. .master = &omap54xx_l4_per_hwmod,
  2118. .slave = &omap54xx_gpio3_hwmod,
  2119. .clk = "l4_root_clk_div",
  2120. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2121. };
  2122. /* l4_per -> gpio4 */
  2123. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4 = {
  2124. .master = &omap54xx_l4_per_hwmod,
  2125. .slave = &omap54xx_gpio4_hwmod,
  2126. .clk = "l4_root_clk_div",
  2127. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2128. };
  2129. /* l4_per -> gpio5 */
  2130. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5 = {
  2131. .master = &omap54xx_l4_per_hwmod,
  2132. .slave = &omap54xx_gpio5_hwmod,
  2133. .clk = "l4_root_clk_div",
  2134. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2135. };
  2136. /* l4_per -> gpio6 */
  2137. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6 = {
  2138. .master = &omap54xx_l4_per_hwmod,
  2139. .slave = &omap54xx_gpio6_hwmod,
  2140. .clk = "l4_root_clk_div",
  2141. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2142. };
  2143. /* l4_per -> gpio7 */
  2144. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7 = {
  2145. .master = &omap54xx_l4_per_hwmod,
  2146. .slave = &omap54xx_gpio7_hwmod,
  2147. .clk = "l4_root_clk_div",
  2148. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2149. };
  2150. /* l4_per -> gpio8 */
  2151. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8 = {
  2152. .master = &omap54xx_l4_per_hwmod,
  2153. .slave = &omap54xx_gpio8_hwmod,
  2154. .clk = "l4_root_clk_div",
  2155. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2156. };
  2157. /* l4_per -> i2c1 */
  2158. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1 = {
  2159. .master = &omap54xx_l4_per_hwmod,
  2160. .slave = &omap54xx_i2c1_hwmod,
  2161. .clk = "l4_root_clk_div",
  2162. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2163. };
  2164. /* l4_per -> i2c2 */
  2165. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2 = {
  2166. .master = &omap54xx_l4_per_hwmod,
  2167. .slave = &omap54xx_i2c2_hwmod,
  2168. .clk = "l4_root_clk_div",
  2169. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2170. };
  2171. /* l4_per -> i2c3 */
  2172. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3 = {
  2173. .master = &omap54xx_l4_per_hwmod,
  2174. .slave = &omap54xx_i2c3_hwmod,
  2175. .clk = "l4_root_clk_div",
  2176. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2177. };
  2178. /* l4_per -> i2c4 */
  2179. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4 = {
  2180. .master = &omap54xx_l4_per_hwmod,
  2181. .slave = &omap54xx_i2c4_hwmod,
  2182. .clk = "l4_root_clk_div",
  2183. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2184. };
  2185. /* l4_per -> i2c5 */
  2186. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5 = {
  2187. .master = &omap54xx_l4_per_hwmod,
  2188. .slave = &omap54xx_i2c5_hwmod,
  2189. .clk = "l4_root_clk_div",
  2190. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2191. };
  2192. /* l4_wkup -> kbd */
  2193. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd = {
  2194. .master = &omap54xx_l4_wkup_hwmod,
  2195. .slave = &omap54xx_kbd_hwmod,
  2196. .clk = "wkupaon_iclk_mux",
  2197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2198. };
  2199. /* l4_cfg -> mailbox */
  2200. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox = {
  2201. .master = &omap54xx_l4_cfg_hwmod,
  2202. .slave = &omap54xx_mailbox_hwmod,
  2203. .clk = "l4_root_clk_div",
  2204. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2205. };
  2206. /* l4_abe -> mcbsp1 */
  2207. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1 = {
  2208. .master = &omap54xx_l4_abe_hwmod,
  2209. .slave = &omap54xx_mcbsp1_hwmod,
  2210. .clk = "abe_iclk",
  2211. .user = OCP_USER_MPU,
  2212. };
  2213. /* l4_abe -> mcbsp2 */
  2214. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2 = {
  2215. .master = &omap54xx_l4_abe_hwmod,
  2216. .slave = &omap54xx_mcbsp2_hwmod,
  2217. .clk = "abe_iclk",
  2218. .user = OCP_USER_MPU,
  2219. };
  2220. /* l4_abe -> mcbsp3 */
  2221. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3 = {
  2222. .master = &omap54xx_l4_abe_hwmod,
  2223. .slave = &omap54xx_mcbsp3_hwmod,
  2224. .clk = "abe_iclk",
  2225. .user = OCP_USER_MPU,
  2226. };
  2227. /* l4_abe -> mcpdm */
  2228. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm = {
  2229. .master = &omap54xx_l4_abe_hwmod,
  2230. .slave = &omap54xx_mcpdm_hwmod,
  2231. .clk = "abe_iclk",
  2232. .user = OCP_USER_MPU,
  2233. };
  2234. /* l4_per -> mcspi1 */
  2235. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1 = {
  2236. .master = &omap54xx_l4_per_hwmod,
  2237. .slave = &omap54xx_mcspi1_hwmod,
  2238. .clk = "l4_root_clk_div",
  2239. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2240. };
  2241. /* l4_per -> mcspi2 */
  2242. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2 = {
  2243. .master = &omap54xx_l4_per_hwmod,
  2244. .slave = &omap54xx_mcspi2_hwmod,
  2245. .clk = "l4_root_clk_div",
  2246. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2247. };
  2248. /* l4_per -> mcspi3 */
  2249. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3 = {
  2250. .master = &omap54xx_l4_per_hwmod,
  2251. .slave = &omap54xx_mcspi3_hwmod,
  2252. .clk = "l4_root_clk_div",
  2253. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2254. };
  2255. /* l4_per -> mcspi4 */
  2256. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4 = {
  2257. .master = &omap54xx_l4_per_hwmod,
  2258. .slave = &omap54xx_mcspi4_hwmod,
  2259. .clk = "l4_root_clk_div",
  2260. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2261. };
  2262. /* l4_per -> mmc1 */
  2263. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1 = {
  2264. .master = &omap54xx_l4_per_hwmod,
  2265. .slave = &omap54xx_mmc1_hwmod,
  2266. .clk = "l3_iclk_div",
  2267. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2268. };
  2269. /* l4_per -> mmc2 */
  2270. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2 = {
  2271. .master = &omap54xx_l4_per_hwmod,
  2272. .slave = &omap54xx_mmc2_hwmod,
  2273. .clk = "l3_iclk_div",
  2274. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2275. };
  2276. /* l4_per -> mmc3 */
  2277. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3 = {
  2278. .master = &omap54xx_l4_per_hwmod,
  2279. .slave = &omap54xx_mmc3_hwmod,
  2280. .clk = "l4_root_clk_div",
  2281. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2282. };
  2283. /* l4_per -> mmc4 */
  2284. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4 = {
  2285. .master = &omap54xx_l4_per_hwmod,
  2286. .slave = &omap54xx_mmc4_hwmod,
  2287. .clk = "l4_root_clk_div",
  2288. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2289. };
  2290. /* l4_per -> mmc5 */
  2291. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5 = {
  2292. .master = &omap54xx_l4_per_hwmod,
  2293. .slave = &omap54xx_mmc5_hwmod,
  2294. .clk = "l4_root_clk_div",
  2295. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2296. };
  2297. /* l4_cfg -> mpu */
  2298. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = {
  2299. .master = &omap54xx_l4_cfg_hwmod,
  2300. .slave = &omap54xx_mpu_hwmod,
  2301. .clk = "l4_root_clk_div",
  2302. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2303. };
  2304. /* l4_cfg -> spinlock */
  2305. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock = {
  2306. .master = &omap54xx_l4_cfg_hwmod,
  2307. .slave = &omap54xx_spinlock_hwmod,
  2308. .clk = "l4_root_clk_div",
  2309. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2310. };
  2311. /* l4_cfg -> ocp2scp1 */
  2312. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
  2313. .master = &omap54xx_l4_cfg_hwmod,
  2314. .slave = &omap54xx_ocp2scp1_hwmod,
  2315. .clk = "l4_root_clk_div",
  2316. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2317. };
  2318. /* l4_wkup -> timer1 */
  2319. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
  2320. .master = &omap54xx_l4_wkup_hwmod,
  2321. .slave = &omap54xx_timer1_hwmod,
  2322. .clk = "wkupaon_iclk_mux",
  2323. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2324. };
  2325. /* l4_per -> timer2 */
  2326. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2 = {
  2327. .master = &omap54xx_l4_per_hwmod,
  2328. .slave = &omap54xx_timer2_hwmod,
  2329. .clk = "l4_root_clk_div",
  2330. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2331. };
  2332. /* l4_per -> timer3 */
  2333. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3 = {
  2334. .master = &omap54xx_l4_per_hwmod,
  2335. .slave = &omap54xx_timer3_hwmod,
  2336. .clk = "l4_root_clk_div",
  2337. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2338. };
  2339. /* l4_per -> timer4 */
  2340. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4 = {
  2341. .master = &omap54xx_l4_per_hwmod,
  2342. .slave = &omap54xx_timer4_hwmod,
  2343. .clk = "l4_root_clk_div",
  2344. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2345. };
  2346. /* l4_abe -> timer5 */
  2347. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5 = {
  2348. .master = &omap54xx_l4_abe_hwmod,
  2349. .slave = &omap54xx_timer5_hwmod,
  2350. .clk = "abe_iclk",
  2351. .user = OCP_USER_MPU,
  2352. };
  2353. /* l4_abe -> timer6 */
  2354. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6 = {
  2355. .master = &omap54xx_l4_abe_hwmod,
  2356. .slave = &omap54xx_timer6_hwmod,
  2357. .clk = "abe_iclk",
  2358. .user = OCP_USER_MPU,
  2359. };
  2360. /* l4_abe -> timer7 */
  2361. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7 = {
  2362. .master = &omap54xx_l4_abe_hwmod,
  2363. .slave = &omap54xx_timer7_hwmod,
  2364. .clk = "abe_iclk",
  2365. .user = OCP_USER_MPU,
  2366. };
  2367. /* l4_abe -> timer8 */
  2368. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8 = {
  2369. .master = &omap54xx_l4_abe_hwmod,
  2370. .slave = &omap54xx_timer8_hwmod,
  2371. .clk = "abe_iclk",
  2372. .user = OCP_USER_MPU,
  2373. };
  2374. /* l4_per -> timer9 */
  2375. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9 = {
  2376. .master = &omap54xx_l4_per_hwmod,
  2377. .slave = &omap54xx_timer9_hwmod,
  2378. .clk = "l4_root_clk_div",
  2379. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2380. };
  2381. /* l4_per -> timer10 */
  2382. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10 = {
  2383. .master = &omap54xx_l4_per_hwmod,
  2384. .slave = &omap54xx_timer10_hwmod,
  2385. .clk = "l4_root_clk_div",
  2386. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2387. };
  2388. /* l4_per -> timer11 */
  2389. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11 = {
  2390. .master = &omap54xx_l4_per_hwmod,
  2391. .slave = &omap54xx_timer11_hwmod,
  2392. .clk = "l4_root_clk_div",
  2393. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2394. };
  2395. /* l4_per -> uart1 */
  2396. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1 = {
  2397. .master = &omap54xx_l4_per_hwmod,
  2398. .slave = &omap54xx_uart1_hwmod,
  2399. .clk = "l4_root_clk_div",
  2400. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2401. };
  2402. /* l4_per -> uart2 */
  2403. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2 = {
  2404. .master = &omap54xx_l4_per_hwmod,
  2405. .slave = &omap54xx_uart2_hwmod,
  2406. .clk = "l4_root_clk_div",
  2407. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2408. };
  2409. /* l4_per -> uart3 */
  2410. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3 = {
  2411. .master = &omap54xx_l4_per_hwmod,
  2412. .slave = &omap54xx_uart3_hwmod,
  2413. .clk = "l4_root_clk_div",
  2414. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2415. };
  2416. /* l4_per -> uart4 */
  2417. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4 = {
  2418. .master = &omap54xx_l4_per_hwmod,
  2419. .slave = &omap54xx_uart4_hwmod,
  2420. .clk = "l4_root_clk_div",
  2421. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2422. };
  2423. /* l4_per -> uart5 */
  2424. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5 = {
  2425. .master = &omap54xx_l4_per_hwmod,
  2426. .slave = &omap54xx_uart5_hwmod,
  2427. .clk = "l4_root_clk_div",
  2428. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2429. };
  2430. /* l4_per -> uart6 */
  2431. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6 = {
  2432. .master = &omap54xx_l4_per_hwmod,
  2433. .slave = &omap54xx_uart6_hwmod,
  2434. .clk = "l4_root_clk_div",
  2435. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2436. };
  2437. /* l4_cfg -> usb_host_hs */
  2438. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs = {
  2439. .master = &omap54xx_l4_cfg_hwmod,
  2440. .slave = &omap54xx_usb_host_hs_hwmod,
  2441. .clk = "l3_iclk_div",
  2442. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2443. };
  2444. /* l4_cfg -> usb_tll_hs */
  2445. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs = {
  2446. .master = &omap54xx_l4_cfg_hwmod,
  2447. .slave = &omap54xx_usb_tll_hs_hwmod,
  2448. .clk = "l4_root_clk_div",
  2449. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2450. };
  2451. /* l4_cfg -> usb_otg_ss */
  2452. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss = {
  2453. .master = &omap54xx_l4_cfg_hwmod,
  2454. .slave = &omap54xx_usb_otg_ss_hwmod,
  2455. .clk = "dpll_core_h13x2_ck",
  2456. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2457. };
  2458. /* l4_wkup -> wd_timer2 */
  2459. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2 = {
  2460. .master = &omap54xx_l4_wkup_hwmod,
  2461. .slave = &omap54xx_wd_timer2_hwmod,
  2462. .clk = "wkupaon_iclk_mux",
  2463. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2464. };
  2465. static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
  2466. &omap54xx_l3_main_1__dmm,
  2467. &omap54xx_l3_main_3__l3_instr,
  2468. &omap54xx_l3_main_2__l3_main_1,
  2469. &omap54xx_l4_cfg__l3_main_1,
  2470. &omap54xx_mpu__l3_main_1,
  2471. &omap54xx_l3_main_1__l3_main_2,
  2472. &omap54xx_l4_cfg__l3_main_2,
  2473. &omap54xx_l3_main_1__l3_main_3,
  2474. &omap54xx_l3_main_2__l3_main_3,
  2475. &omap54xx_l4_cfg__l3_main_3,
  2476. &omap54xx_l3_main_1__l4_abe,
  2477. &omap54xx_mpu__l4_abe,
  2478. &omap54xx_l3_main_1__l4_cfg,
  2479. &omap54xx_l3_main_2__l4_per,
  2480. &omap54xx_l3_main_1__l4_wkup,
  2481. &omap54xx_mpu__mpu_private,
  2482. &omap54xx_l4_wkup__counter_32k,
  2483. &omap54xx_l4_cfg__dma_system,
  2484. &omap54xx_l4_abe__dmic,
  2485. &omap54xx_l4_cfg__mmu_dsp,
  2486. &omap54xx_l3_main_2__dss,
  2487. &omap54xx_l3_main_2__dss_dispc,
  2488. &omap54xx_l3_main_2__dss_dsi1_a,
  2489. &omap54xx_l3_main_2__dss_dsi1_c,
  2490. &omap54xx_l3_main_2__dss_hdmi,
  2491. &omap54xx_l3_main_2__dss_rfbi,
  2492. &omap54xx_mpu__emif1,
  2493. &omap54xx_mpu__emif2,
  2494. &omap54xx_l4_wkup__gpio1,
  2495. &omap54xx_l4_per__gpio2,
  2496. &omap54xx_l4_per__gpio3,
  2497. &omap54xx_l4_per__gpio4,
  2498. &omap54xx_l4_per__gpio5,
  2499. &omap54xx_l4_per__gpio6,
  2500. &omap54xx_l4_per__gpio7,
  2501. &omap54xx_l4_per__gpio8,
  2502. &omap54xx_l4_per__i2c1,
  2503. &omap54xx_l4_per__i2c2,
  2504. &omap54xx_l4_per__i2c3,
  2505. &omap54xx_l4_per__i2c4,
  2506. &omap54xx_l4_per__i2c5,
  2507. &omap54xx_l3_main_2__mmu_ipu,
  2508. &omap54xx_l4_wkup__kbd,
  2509. &omap54xx_l4_cfg__mailbox,
  2510. &omap54xx_l4_abe__mcbsp1,
  2511. &omap54xx_l4_abe__mcbsp2,
  2512. &omap54xx_l4_abe__mcbsp3,
  2513. &omap54xx_l4_abe__mcpdm,
  2514. &omap54xx_l4_per__mcspi1,
  2515. &omap54xx_l4_per__mcspi2,
  2516. &omap54xx_l4_per__mcspi3,
  2517. &omap54xx_l4_per__mcspi4,
  2518. &omap54xx_l4_per__mmc1,
  2519. &omap54xx_l4_per__mmc2,
  2520. &omap54xx_l4_per__mmc3,
  2521. &omap54xx_l4_per__mmc4,
  2522. &omap54xx_l4_per__mmc5,
  2523. &omap54xx_l4_cfg__mpu,
  2524. &omap54xx_l4_cfg__spinlock,
  2525. &omap54xx_l4_cfg__ocp2scp1,
  2526. &omap54xx_l4_wkup__timer1,
  2527. &omap54xx_l4_per__timer2,
  2528. &omap54xx_l4_per__timer3,
  2529. &omap54xx_l4_per__timer4,
  2530. &omap54xx_l4_abe__timer5,
  2531. &omap54xx_l4_abe__timer6,
  2532. &omap54xx_l4_abe__timer7,
  2533. &omap54xx_l4_abe__timer8,
  2534. &omap54xx_l4_per__timer9,
  2535. &omap54xx_l4_per__timer10,
  2536. &omap54xx_l4_per__timer11,
  2537. &omap54xx_l4_per__uart1,
  2538. &omap54xx_l4_per__uart2,
  2539. &omap54xx_l4_per__uart3,
  2540. &omap54xx_l4_per__uart4,
  2541. &omap54xx_l4_per__uart5,
  2542. &omap54xx_l4_per__uart6,
  2543. &omap54xx_l4_cfg__usb_host_hs,
  2544. &omap54xx_l4_cfg__usb_tll_hs,
  2545. &omap54xx_l4_cfg__usb_otg_ss,
  2546. &omap54xx_l4_wkup__wd_timer2,
  2547. &omap54xx_l4_cfg__ocp2scp3,
  2548. &omap54xx_l4_cfg__sata,
  2549. NULL,
  2550. };
  2551. int __init omap54xx_hwmod_init(void)
  2552. {
  2553. omap_hwmod_init();
  2554. return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs);
  2555. }