omap_hwmod_54xx_data.c 74 KB

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