omap_hwmod_54xx_data.c 62 KB

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