omap_hwmod_54xx_data.c 75 KB

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