omap_hwmod_54xx_data.c 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416
  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,
  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,
  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,
  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. * 'ocp2scp' class
  1065. * bridge to transform ocp interface protocol to scp (serial control port)
  1066. * protocol
  1067. */
  1068. static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc = {
  1069. .rev_offs = 0x0000,
  1070. .sysc_offs = 0x0010,
  1071. .syss_offs = 0x0014,
  1072. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1073. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1074. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1075. .sysc_fields = &omap_hwmod_sysc_type1,
  1076. };
  1077. static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
  1078. .name = "ocp2scp",
  1079. .sysc = &omap54xx_ocp2scp_sysc,
  1080. };
  1081. /* ocp2scp1 */
  1082. static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
  1083. .name = "ocp2scp1",
  1084. .class = &omap54xx_ocp2scp_hwmod_class,
  1085. .clkdm_name = "l3init_clkdm",
  1086. .main_clk = "l4_root_clk_div",
  1087. .prcm = {
  1088. .omap4 = {
  1089. .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1090. .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1091. .modulemode = MODULEMODE_HWCTRL,
  1092. },
  1093. },
  1094. };
  1095. /*
  1096. * 'timer' class
  1097. * general purpose timer module with accurate 1ms tick
  1098. * This class contains several variants: ['timer_1ms', 'timer']
  1099. */
  1100. static struct omap_hwmod_class_sysconfig omap54xx_timer_1ms_sysc = {
  1101. .rev_offs = 0x0000,
  1102. .sysc_offs = 0x0010,
  1103. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1104. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1105. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1106. SIDLE_SMART_WKUP),
  1107. .sysc_fields = &omap_hwmod_sysc_type2,
  1108. .clockact = CLOCKACT_TEST_ICLK,
  1109. };
  1110. static struct omap_hwmod_class omap54xx_timer_1ms_hwmod_class = {
  1111. .name = "timer",
  1112. .sysc = &omap54xx_timer_1ms_sysc,
  1113. };
  1114. static struct omap_hwmod_class_sysconfig omap54xx_timer_sysc = {
  1115. .rev_offs = 0x0000,
  1116. .sysc_offs = 0x0010,
  1117. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1118. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1119. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1120. SIDLE_SMART_WKUP),
  1121. .sysc_fields = &omap_hwmod_sysc_type2,
  1122. };
  1123. static struct omap_hwmod_class omap54xx_timer_hwmod_class = {
  1124. .name = "timer",
  1125. .sysc = &omap54xx_timer_sysc,
  1126. };
  1127. /* timer1 */
  1128. static struct omap_hwmod omap54xx_timer1_hwmod = {
  1129. .name = "timer1",
  1130. .class = &omap54xx_timer_1ms_hwmod_class,
  1131. .clkdm_name = "wkupaon_clkdm",
  1132. .main_clk = "timer1_gfclk_mux",
  1133. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1134. .prcm = {
  1135. .omap4 = {
  1136. .clkctrl_offs = OMAP54XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1137. .context_offs = OMAP54XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1138. .modulemode = MODULEMODE_SWCTRL,
  1139. },
  1140. },
  1141. };
  1142. /* timer2 */
  1143. static struct omap_hwmod omap54xx_timer2_hwmod = {
  1144. .name = "timer2",
  1145. .class = &omap54xx_timer_1ms_hwmod_class,
  1146. .clkdm_name = "l4per_clkdm",
  1147. .main_clk = "timer2_gfclk_mux",
  1148. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1149. .prcm = {
  1150. .omap4 = {
  1151. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1152. .context_offs = OMAP54XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1153. .modulemode = MODULEMODE_SWCTRL,
  1154. },
  1155. },
  1156. };
  1157. /* timer3 */
  1158. static struct omap_hwmod omap54xx_timer3_hwmod = {
  1159. .name = "timer3",
  1160. .class = &omap54xx_timer_hwmod_class,
  1161. .clkdm_name = "l4per_clkdm",
  1162. .main_clk = "timer3_gfclk_mux",
  1163. .prcm = {
  1164. .omap4 = {
  1165. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1166. .context_offs = OMAP54XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1167. .modulemode = MODULEMODE_SWCTRL,
  1168. },
  1169. },
  1170. };
  1171. /* timer4 */
  1172. static struct omap_hwmod omap54xx_timer4_hwmod = {
  1173. .name = "timer4",
  1174. .class = &omap54xx_timer_hwmod_class,
  1175. .clkdm_name = "l4per_clkdm",
  1176. .main_clk = "timer4_gfclk_mux",
  1177. .prcm = {
  1178. .omap4 = {
  1179. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1180. .context_offs = OMAP54XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1181. .modulemode = MODULEMODE_SWCTRL,
  1182. },
  1183. },
  1184. };
  1185. /* timer5 */
  1186. static struct omap_hwmod omap54xx_timer5_hwmod = {
  1187. .name = "timer5",
  1188. .class = &omap54xx_timer_hwmod_class,
  1189. .clkdm_name = "abe_clkdm",
  1190. .main_clk = "timer5_gfclk_mux",
  1191. .prcm = {
  1192. .omap4 = {
  1193. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER5_CLKCTRL_OFFSET,
  1194. .context_offs = OMAP54XX_RM_ABE_TIMER5_CONTEXT_OFFSET,
  1195. .modulemode = MODULEMODE_SWCTRL,
  1196. },
  1197. },
  1198. };
  1199. /* timer6 */
  1200. static struct omap_hwmod omap54xx_timer6_hwmod = {
  1201. .name = "timer6",
  1202. .class = &omap54xx_timer_hwmod_class,
  1203. .clkdm_name = "abe_clkdm",
  1204. .main_clk = "timer6_gfclk_mux",
  1205. .prcm = {
  1206. .omap4 = {
  1207. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER6_CLKCTRL_OFFSET,
  1208. .context_offs = OMAP54XX_RM_ABE_TIMER6_CONTEXT_OFFSET,
  1209. .modulemode = MODULEMODE_SWCTRL,
  1210. },
  1211. },
  1212. };
  1213. /* timer7 */
  1214. static struct omap_hwmod omap54xx_timer7_hwmod = {
  1215. .name = "timer7",
  1216. .class = &omap54xx_timer_hwmod_class,
  1217. .clkdm_name = "abe_clkdm",
  1218. .main_clk = "timer7_gfclk_mux",
  1219. .prcm = {
  1220. .omap4 = {
  1221. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER7_CLKCTRL_OFFSET,
  1222. .context_offs = OMAP54XX_RM_ABE_TIMER7_CONTEXT_OFFSET,
  1223. .modulemode = MODULEMODE_SWCTRL,
  1224. },
  1225. },
  1226. };
  1227. /* timer8 */
  1228. static struct omap_hwmod omap54xx_timer8_hwmod = {
  1229. .name = "timer8",
  1230. .class = &omap54xx_timer_hwmod_class,
  1231. .clkdm_name = "abe_clkdm",
  1232. .main_clk = "timer8_gfclk_mux",
  1233. .prcm = {
  1234. .omap4 = {
  1235. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER8_CLKCTRL_OFFSET,
  1236. .context_offs = OMAP54XX_RM_ABE_TIMER8_CONTEXT_OFFSET,
  1237. .modulemode = MODULEMODE_SWCTRL,
  1238. },
  1239. },
  1240. };
  1241. /* timer9 */
  1242. static struct omap_hwmod omap54xx_timer9_hwmod = {
  1243. .name = "timer9",
  1244. .class = &omap54xx_timer_hwmod_class,
  1245. .clkdm_name = "l4per_clkdm",
  1246. .main_clk = "timer9_gfclk_mux",
  1247. .prcm = {
  1248. .omap4 = {
  1249. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  1250. .context_offs = OMAP54XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  1251. .modulemode = MODULEMODE_SWCTRL,
  1252. },
  1253. },
  1254. };
  1255. /* timer10 */
  1256. static struct omap_hwmod omap54xx_timer10_hwmod = {
  1257. .name = "timer10",
  1258. .class = &omap54xx_timer_1ms_hwmod_class,
  1259. .clkdm_name = "l4per_clkdm",
  1260. .main_clk = "timer10_gfclk_mux",
  1261. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1262. .prcm = {
  1263. .omap4 = {
  1264. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  1265. .context_offs = OMAP54XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  1266. .modulemode = MODULEMODE_SWCTRL,
  1267. },
  1268. },
  1269. };
  1270. /* timer11 */
  1271. static struct omap_hwmod omap54xx_timer11_hwmod = {
  1272. .name = "timer11",
  1273. .class = &omap54xx_timer_hwmod_class,
  1274. .clkdm_name = "l4per_clkdm",
  1275. .main_clk = "timer11_gfclk_mux",
  1276. .prcm = {
  1277. .omap4 = {
  1278. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  1279. .context_offs = OMAP54XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  1280. .modulemode = MODULEMODE_SWCTRL,
  1281. },
  1282. },
  1283. };
  1284. /*
  1285. * 'uart' class
  1286. * universal asynchronous receiver/transmitter (uart)
  1287. */
  1288. static struct omap_hwmod_class_sysconfig omap54xx_uart_sysc = {
  1289. .rev_offs = 0x0050,
  1290. .sysc_offs = 0x0054,
  1291. .syss_offs = 0x0058,
  1292. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1293. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1294. SYSS_HAS_RESET_STATUS),
  1295. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1296. SIDLE_SMART_WKUP),
  1297. .sysc_fields = &omap_hwmod_sysc_type1,
  1298. };
  1299. static struct omap_hwmod_class omap54xx_uart_hwmod_class = {
  1300. .name = "uart",
  1301. .sysc = &omap54xx_uart_sysc,
  1302. };
  1303. /* uart1 */
  1304. static struct omap_hwmod omap54xx_uart1_hwmod = {
  1305. .name = "uart1",
  1306. .class = &omap54xx_uart_hwmod_class,
  1307. .clkdm_name = "l4per_clkdm",
  1308. .main_clk = "func_48m_fclk",
  1309. .prcm = {
  1310. .omap4 = {
  1311. .clkctrl_offs = OMAP54XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  1312. .context_offs = OMAP54XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  1313. .modulemode = MODULEMODE_SWCTRL,
  1314. },
  1315. },
  1316. };
  1317. /* uart2 */
  1318. static struct omap_hwmod omap54xx_uart2_hwmod = {
  1319. .name = "uart2",
  1320. .class = &omap54xx_uart_hwmod_class,
  1321. .clkdm_name = "l4per_clkdm",
  1322. .main_clk = "func_48m_fclk",
  1323. .prcm = {
  1324. .omap4 = {
  1325. .clkctrl_offs = OMAP54XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  1326. .context_offs = OMAP54XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  1327. .modulemode = MODULEMODE_SWCTRL,
  1328. },
  1329. },
  1330. };
  1331. /* uart3 */
  1332. static struct omap_hwmod omap54xx_uart3_hwmod = {
  1333. .name = "uart3",
  1334. .class = &omap54xx_uart_hwmod_class,
  1335. .clkdm_name = "l4per_clkdm",
  1336. .flags = DEBUG_OMAP4UART3_FLAGS,
  1337. .main_clk = "func_48m_fclk",
  1338. .prcm = {
  1339. .omap4 = {
  1340. .clkctrl_offs = OMAP54XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  1341. .context_offs = OMAP54XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  1342. .modulemode = MODULEMODE_SWCTRL,
  1343. },
  1344. },
  1345. };
  1346. /* uart4 */
  1347. static struct omap_hwmod omap54xx_uart4_hwmod = {
  1348. .name = "uart4",
  1349. .class = &omap54xx_uart_hwmod_class,
  1350. .clkdm_name = "l4per_clkdm",
  1351. .flags = DEBUG_OMAP4UART4_FLAGS,
  1352. .main_clk = "func_48m_fclk",
  1353. .prcm = {
  1354. .omap4 = {
  1355. .clkctrl_offs = OMAP54XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  1356. .context_offs = OMAP54XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  1357. .modulemode = MODULEMODE_SWCTRL,
  1358. },
  1359. },
  1360. };
  1361. /* uart5 */
  1362. static struct omap_hwmod omap54xx_uart5_hwmod = {
  1363. .name = "uart5",
  1364. .class = &omap54xx_uart_hwmod_class,
  1365. .clkdm_name = "l4per_clkdm",
  1366. .main_clk = "func_48m_fclk",
  1367. .prcm = {
  1368. .omap4 = {
  1369. .clkctrl_offs = OMAP54XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  1370. .context_offs = OMAP54XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  1371. .modulemode = MODULEMODE_SWCTRL,
  1372. },
  1373. },
  1374. };
  1375. /* uart6 */
  1376. static struct omap_hwmod omap54xx_uart6_hwmod = {
  1377. .name = "uart6",
  1378. .class = &omap54xx_uart_hwmod_class,
  1379. .clkdm_name = "l4per_clkdm",
  1380. .main_clk = "func_48m_fclk",
  1381. .prcm = {
  1382. .omap4 = {
  1383. .clkctrl_offs = OMAP54XX_CM_L4PER_UART6_CLKCTRL_OFFSET,
  1384. .context_offs = OMAP54XX_RM_L4PER_UART6_CONTEXT_OFFSET,
  1385. .modulemode = MODULEMODE_SWCTRL,
  1386. },
  1387. },
  1388. };
  1389. /*
  1390. * 'usb_host_hs' class
  1391. * high-speed multi-port usb host controller
  1392. */
  1393. static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc = {
  1394. .rev_offs = 0x0000,
  1395. .sysc_offs = 0x0010,
  1396. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  1397. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1398. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1399. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1400. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1401. .sysc_fields = &omap_hwmod_sysc_type2,
  1402. };
  1403. static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class = {
  1404. .name = "usb_host_hs",
  1405. .sysc = &omap54xx_usb_host_hs_sysc,
  1406. };
  1407. static struct omap_hwmod omap54xx_usb_host_hs_hwmod = {
  1408. .name = "usb_host_hs",
  1409. .class = &omap54xx_usb_host_hs_hwmod_class,
  1410. .clkdm_name = "l3init_clkdm",
  1411. /*
  1412. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  1413. * id: i660
  1414. *
  1415. * Description:
  1416. * In the following configuration :
  1417. * - USBHOST module is set to smart-idle mode
  1418. * - PRCM asserts idle_req to the USBHOST module ( This typically
  1419. * happens when the system is going to a low power mode : all ports
  1420. * have been suspended, the master part of the USBHOST module has
  1421. * entered the standby state, and SW has cut the functional clocks)
  1422. * - an USBHOST interrupt occurs before the module is able to answer
  1423. * idle_ack, typically a remote wakeup IRQ.
  1424. * Then the USB HOST module will enter a deadlock situation where it
  1425. * is no more accessible nor functional.
  1426. *
  1427. * Workaround:
  1428. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  1429. */
  1430. /*
  1431. * Errata: USB host EHCI may stall when entering smart-standby mode
  1432. * Id: i571
  1433. *
  1434. * Description:
  1435. * When the USBHOST module is set to smart-standby mode, and when it is
  1436. * ready to enter the standby state (i.e. all ports are suspended and
  1437. * all attached devices are in suspend mode), then it can wrongly assert
  1438. * the Mstandby signal too early while there are still some residual OCP
  1439. * transactions ongoing. If this condition occurs, the internal state
  1440. * machine may go to an undefined state and the USB link may be stuck
  1441. * upon the next resume.
  1442. *
  1443. * Workaround:
  1444. * Don't use smart standby; use only force standby,
  1445. * hence HWMOD_SWSUP_MSTANDBY
  1446. */
  1447. /*
  1448. * During system boot; If the hwmod framework resets the module
  1449. * the module will have smart idle settings; which can lead to deadlock
  1450. * (above Errata Id:i660); so, dont reset the module during boot;
  1451. * Use HWMOD_INIT_NO_RESET.
  1452. */
  1453. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
  1454. HWMOD_INIT_NO_RESET,
  1455. .main_clk = "l3init_60m_fclk",
  1456. .prcm = {
  1457. .omap4 = {
  1458. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET,
  1459. .context_offs = OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET,
  1460. .modulemode = MODULEMODE_SWCTRL,
  1461. },
  1462. },
  1463. };
  1464. /*
  1465. * 'usb_tll_hs' class
  1466. * usb_tll_hs module is the adapter on the usb_host_hs ports
  1467. */
  1468. static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc = {
  1469. .rev_offs = 0x0000,
  1470. .sysc_offs = 0x0010,
  1471. .syss_offs = 0x0014,
  1472. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1473. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1474. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1475. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1476. .sysc_fields = &omap_hwmod_sysc_type1,
  1477. };
  1478. static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class = {
  1479. .name = "usb_tll_hs",
  1480. .sysc = &omap54xx_usb_tll_hs_sysc,
  1481. };
  1482. static struct omap_hwmod omap54xx_usb_tll_hs_hwmod = {
  1483. .name = "usb_tll_hs",
  1484. .class = &omap54xx_usb_tll_hs_hwmod_class,
  1485. .clkdm_name = "l3init_clkdm",
  1486. .main_clk = "l4_root_clk_div",
  1487. .prcm = {
  1488. .omap4 = {
  1489. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET,
  1490. .context_offs = OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET,
  1491. .modulemode = MODULEMODE_HWCTRL,
  1492. },
  1493. },
  1494. };
  1495. /*
  1496. * 'usb_otg_ss' class
  1497. * 2.0 super speed (usb_otg_ss) controller
  1498. */
  1499. static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc = {
  1500. .rev_offs = 0x0000,
  1501. .sysc_offs = 0x0010,
  1502. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  1503. SYSC_HAS_SIDLEMODE),
  1504. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1505. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1506. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1507. .sysc_fields = &omap_hwmod_sysc_type2,
  1508. };
  1509. static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class = {
  1510. .name = "usb_otg_ss",
  1511. .sysc = &omap54xx_usb_otg_ss_sysc,
  1512. };
  1513. /* usb_otg_ss */
  1514. static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks[] = {
  1515. { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" },
  1516. };
  1517. static struct omap_hwmod omap54xx_usb_otg_ss_hwmod = {
  1518. .name = "usb_otg_ss",
  1519. .class = &omap54xx_usb_otg_ss_hwmod_class,
  1520. .clkdm_name = "l3init_clkdm",
  1521. .flags = HWMOD_SWSUP_SIDLE,
  1522. .main_clk = "dpll_core_h13x2_ck",
  1523. .prcm = {
  1524. .omap4 = {
  1525. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET,
  1526. .context_offs = OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET,
  1527. .modulemode = MODULEMODE_HWCTRL,
  1528. },
  1529. },
  1530. .opt_clks = usb_otg_ss_opt_clks,
  1531. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss_opt_clks),
  1532. };
  1533. /*
  1534. * 'wd_timer' class
  1535. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  1536. * overflow condition
  1537. */
  1538. static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc = {
  1539. .rev_offs = 0x0000,
  1540. .sysc_offs = 0x0010,
  1541. .syss_offs = 0x0014,
  1542. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1543. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1544. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1545. SIDLE_SMART_WKUP),
  1546. .sysc_fields = &omap_hwmod_sysc_type1,
  1547. };
  1548. static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class = {
  1549. .name = "wd_timer",
  1550. .sysc = &omap54xx_wd_timer_sysc,
  1551. .pre_shutdown = &omap2_wd_timer_disable,
  1552. };
  1553. /* wd_timer2 */
  1554. static struct omap_hwmod omap54xx_wd_timer2_hwmod = {
  1555. .name = "wd_timer2",
  1556. .class = &omap54xx_wd_timer_hwmod_class,
  1557. .clkdm_name = "wkupaon_clkdm",
  1558. .main_clk = "sys_32k_ck",
  1559. .prcm = {
  1560. .omap4 = {
  1561. .clkctrl_offs = OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  1562. .context_offs = OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  1563. .modulemode = MODULEMODE_SWCTRL,
  1564. },
  1565. },
  1566. };
  1567. /*
  1568. * Interfaces
  1569. */
  1570. /* l3_main_1 -> dmm */
  1571. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm = {
  1572. .master = &omap54xx_l3_main_1_hwmod,
  1573. .slave = &omap54xx_dmm_hwmod,
  1574. .clk = "l3_iclk_div",
  1575. .user = OCP_USER_SDMA,
  1576. };
  1577. /* l3_main_3 -> l3_instr */
  1578. static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr = {
  1579. .master = &omap54xx_l3_main_3_hwmod,
  1580. .slave = &omap54xx_l3_instr_hwmod,
  1581. .clk = "l3_iclk_div",
  1582. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1583. };
  1584. /* l3_main_2 -> l3_main_1 */
  1585. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1 = {
  1586. .master = &omap54xx_l3_main_2_hwmod,
  1587. .slave = &omap54xx_l3_main_1_hwmod,
  1588. .clk = "l3_iclk_div",
  1589. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1590. };
  1591. /* l4_cfg -> l3_main_1 */
  1592. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1 = {
  1593. .master = &omap54xx_l4_cfg_hwmod,
  1594. .slave = &omap54xx_l3_main_1_hwmod,
  1595. .clk = "l3_iclk_div",
  1596. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1597. };
  1598. /* mpu -> l3_main_1 */
  1599. static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1 = {
  1600. .master = &omap54xx_mpu_hwmod,
  1601. .slave = &omap54xx_l3_main_1_hwmod,
  1602. .clk = "l3_iclk_div",
  1603. .user = OCP_USER_MPU,
  1604. };
  1605. /* l3_main_1 -> l3_main_2 */
  1606. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2 = {
  1607. .master = &omap54xx_l3_main_1_hwmod,
  1608. .slave = &omap54xx_l3_main_2_hwmod,
  1609. .clk = "l3_iclk_div",
  1610. .user = OCP_USER_MPU,
  1611. };
  1612. /* l4_cfg -> l3_main_2 */
  1613. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2 = {
  1614. .master = &omap54xx_l4_cfg_hwmod,
  1615. .slave = &omap54xx_l3_main_2_hwmod,
  1616. .clk = "l3_iclk_div",
  1617. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1618. };
  1619. /* l3_main_1 -> l3_main_3 */
  1620. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3 = {
  1621. .master = &omap54xx_l3_main_1_hwmod,
  1622. .slave = &omap54xx_l3_main_3_hwmod,
  1623. .clk = "l3_iclk_div",
  1624. .user = OCP_USER_MPU,
  1625. };
  1626. /* l3_main_2 -> l3_main_3 */
  1627. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3 = {
  1628. .master = &omap54xx_l3_main_2_hwmod,
  1629. .slave = &omap54xx_l3_main_3_hwmod,
  1630. .clk = "l3_iclk_div",
  1631. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1632. };
  1633. /* l4_cfg -> l3_main_3 */
  1634. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
  1635. .master = &omap54xx_l4_cfg_hwmod,
  1636. .slave = &omap54xx_l3_main_3_hwmod,
  1637. .clk = "l3_iclk_div",
  1638. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1639. };
  1640. /* l3_main_1 -> l4_abe */
  1641. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe = {
  1642. .master = &omap54xx_l3_main_1_hwmod,
  1643. .slave = &omap54xx_l4_abe_hwmod,
  1644. .clk = "abe_iclk",
  1645. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1646. };
  1647. /* mpu -> l4_abe */
  1648. static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe = {
  1649. .master = &omap54xx_mpu_hwmod,
  1650. .slave = &omap54xx_l4_abe_hwmod,
  1651. .clk = "abe_iclk",
  1652. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1653. };
  1654. /* l3_main_1 -> l4_cfg */
  1655. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg = {
  1656. .master = &omap54xx_l3_main_1_hwmod,
  1657. .slave = &omap54xx_l4_cfg_hwmod,
  1658. .clk = "l4_root_clk_div",
  1659. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1660. };
  1661. /* l3_main_2 -> l4_per */
  1662. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per = {
  1663. .master = &omap54xx_l3_main_2_hwmod,
  1664. .slave = &omap54xx_l4_per_hwmod,
  1665. .clk = "l4_root_clk_div",
  1666. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1667. };
  1668. /* l3_main_1 -> l4_wkup */
  1669. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup = {
  1670. .master = &omap54xx_l3_main_1_hwmod,
  1671. .slave = &omap54xx_l4_wkup_hwmod,
  1672. .clk = "wkupaon_iclk_mux",
  1673. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1674. };
  1675. /* mpu -> mpu_private */
  1676. static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private = {
  1677. .master = &omap54xx_mpu_hwmod,
  1678. .slave = &omap54xx_mpu_private_hwmod,
  1679. .clk = "l3_iclk_div",
  1680. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1681. };
  1682. /* l4_wkup -> counter_32k */
  1683. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k = {
  1684. .master = &omap54xx_l4_wkup_hwmod,
  1685. .slave = &omap54xx_counter_32k_hwmod,
  1686. .clk = "wkupaon_iclk_mux",
  1687. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1688. };
  1689. static struct omap_hwmod_addr_space omap54xx_dma_system_addrs[] = {
  1690. {
  1691. .pa_start = 0x4a056000,
  1692. .pa_end = 0x4a056fff,
  1693. .flags = ADDR_TYPE_RT
  1694. },
  1695. { }
  1696. };
  1697. /* l4_cfg -> dma_system */
  1698. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system = {
  1699. .master = &omap54xx_l4_cfg_hwmod,
  1700. .slave = &omap54xx_dma_system_hwmod,
  1701. .clk = "l4_root_clk_div",
  1702. .addr = omap54xx_dma_system_addrs,
  1703. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1704. };
  1705. /* l4_abe -> dmic */
  1706. static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic = {
  1707. .master = &omap54xx_l4_abe_hwmod,
  1708. .slave = &omap54xx_dmic_hwmod,
  1709. .clk = "abe_iclk",
  1710. .user = OCP_USER_MPU,
  1711. };
  1712. /* mpu -> emif1 */
  1713. static struct omap_hwmod_ocp_if omap54xx_mpu__emif1 = {
  1714. .master = &omap54xx_mpu_hwmod,
  1715. .slave = &omap54xx_emif1_hwmod,
  1716. .clk = "dpll_core_h11x2_ck",
  1717. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1718. };
  1719. /* mpu -> emif2 */
  1720. static struct omap_hwmod_ocp_if omap54xx_mpu__emif2 = {
  1721. .master = &omap54xx_mpu_hwmod,
  1722. .slave = &omap54xx_emif2_hwmod,
  1723. .clk = "dpll_core_h11x2_ck",
  1724. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1725. };
  1726. /* l4_wkup -> gpio1 */
  1727. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1 = {
  1728. .master = &omap54xx_l4_wkup_hwmod,
  1729. .slave = &omap54xx_gpio1_hwmod,
  1730. .clk = "wkupaon_iclk_mux",
  1731. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1732. };
  1733. /* l4_per -> gpio2 */
  1734. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2 = {
  1735. .master = &omap54xx_l4_per_hwmod,
  1736. .slave = &omap54xx_gpio2_hwmod,
  1737. .clk = "l4_root_clk_div",
  1738. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1739. };
  1740. /* l4_per -> gpio3 */
  1741. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3 = {
  1742. .master = &omap54xx_l4_per_hwmod,
  1743. .slave = &omap54xx_gpio3_hwmod,
  1744. .clk = "l4_root_clk_div",
  1745. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1746. };
  1747. /* l4_per -> gpio4 */
  1748. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4 = {
  1749. .master = &omap54xx_l4_per_hwmod,
  1750. .slave = &omap54xx_gpio4_hwmod,
  1751. .clk = "l4_root_clk_div",
  1752. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1753. };
  1754. /* l4_per -> gpio5 */
  1755. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5 = {
  1756. .master = &omap54xx_l4_per_hwmod,
  1757. .slave = &omap54xx_gpio5_hwmod,
  1758. .clk = "l4_root_clk_div",
  1759. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1760. };
  1761. /* l4_per -> gpio6 */
  1762. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6 = {
  1763. .master = &omap54xx_l4_per_hwmod,
  1764. .slave = &omap54xx_gpio6_hwmod,
  1765. .clk = "l4_root_clk_div",
  1766. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1767. };
  1768. /* l4_per -> gpio7 */
  1769. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7 = {
  1770. .master = &omap54xx_l4_per_hwmod,
  1771. .slave = &omap54xx_gpio7_hwmod,
  1772. .clk = "l4_root_clk_div",
  1773. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1774. };
  1775. /* l4_per -> gpio8 */
  1776. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8 = {
  1777. .master = &omap54xx_l4_per_hwmod,
  1778. .slave = &omap54xx_gpio8_hwmod,
  1779. .clk = "l4_root_clk_div",
  1780. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1781. };
  1782. /* l4_per -> i2c1 */
  1783. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1 = {
  1784. .master = &omap54xx_l4_per_hwmod,
  1785. .slave = &omap54xx_i2c1_hwmod,
  1786. .clk = "l4_root_clk_div",
  1787. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1788. };
  1789. /* l4_per -> i2c2 */
  1790. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2 = {
  1791. .master = &omap54xx_l4_per_hwmod,
  1792. .slave = &omap54xx_i2c2_hwmod,
  1793. .clk = "l4_root_clk_div",
  1794. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1795. };
  1796. /* l4_per -> i2c3 */
  1797. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3 = {
  1798. .master = &omap54xx_l4_per_hwmod,
  1799. .slave = &omap54xx_i2c3_hwmod,
  1800. .clk = "l4_root_clk_div",
  1801. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1802. };
  1803. /* l4_per -> i2c4 */
  1804. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4 = {
  1805. .master = &omap54xx_l4_per_hwmod,
  1806. .slave = &omap54xx_i2c4_hwmod,
  1807. .clk = "l4_root_clk_div",
  1808. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1809. };
  1810. /* l4_per -> i2c5 */
  1811. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5 = {
  1812. .master = &omap54xx_l4_per_hwmod,
  1813. .slave = &omap54xx_i2c5_hwmod,
  1814. .clk = "l4_root_clk_div",
  1815. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1816. };
  1817. /* l4_wkup -> kbd */
  1818. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd = {
  1819. .master = &omap54xx_l4_wkup_hwmod,
  1820. .slave = &omap54xx_kbd_hwmod,
  1821. .clk = "wkupaon_iclk_mux",
  1822. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1823. };
  1824. /* l4_cfg -> mailbox */
  1825. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox = {
  1826. .master = &omap54xx_l4_cfg_hwmod,
  1827. .slave = &omap54xx_mailbox_hwmod,
  1828. .clk = "l4_root_clk_div",
  1829. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1830. };
  1831. /* l4_abe -> mcbsp1 */
  1832. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1 = {
  1833. .master = &omap54xx_l4_abe_hwmod,
  1834. .slave = &omap54xx_mcbsp1_hwmod,
  1835. .clk = "abe_iclk",
  1836. .user = OCP_USER_MPU,
  1837. };
  1838. /* l4_abe -> mcbsp2 */
  1839. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2 = {
  1840. .master = &omap54xx_l4_abe_hwmod,
  1841. .slave = &omap54xx_mcbsp2_hwmod,
  1842. .clk = "abe_iclk",
  1843. .user = OCP_USER_MPU,
  1844. };
  1845. /* l4_abe -> mcbsp3 */
  1846. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3 = {
  1847. .master = &omap54xx_l4_abe_hwmod,
  1848. .slave = &omap54xx_mcbsp3_hwmod,
  1849. .clk = "abe_iclk",
  1850. .user = OCP_USER_MPU,
  1851. };
  1852. /* l4_abe -> mcpdm */
  1853. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm = {
  1854. .master = &omap54xx_l4_abe_hwmod,
  1855. .slave = &omap54xx_mcpdm_hwmod,
  1856. .clk = "abe_iclk",
  1857. .user = OCP_USER_MPU,
  1858. };
  1859. /* l4_per -> mcspi1 */
  1860. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1 = {
  1861. .master = &omap54xx_l4_per_hwmod,
  1862. .slave = &omap54xx_mcspi1_hwmod,
  1863. .clk = "l4_root_clk_div",
  1864. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1865. };
  1866. /* l4_per -> mcspi2 */
  1867. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2 = {
  1868. .master = &omap54xx_l4_per_hwmod,
  1869. .slave = &omap54xx_mcspi2_hwmod,
  1870. .clk = "l4_root_clk_div",
  1871. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1872. };
  1873. /* l4_per -> mcspi3 */
  1874. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3 = {
  1875. .master = &omap54xx_l4_per_hwmod,
  1876. .slave = &omap54xx_mcspi3_hwmod,
  1877. .clk = "l4_root_clk_div",
  1878. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1879. };
  1880. /* l4_per -> mcspi4 */
  1881. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4 = {
  1882. .master = &omap54xx_l4_per_hwmod,
  1883. .slave = &omap54xx_mcspi4_hwmod,
  1884. .clk = "l4_root_clk_div",
  1885. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1886. };
  1887. /* l4_per -> mmc1 */
  1888. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1 = {
  1889. .master = &omap54xx_l4_per_hwmod,
  1890. .slave = &omap54xx_mmc1_hwmod,
  1891. .clk = "l3_iclk_div",
  1892. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1893. };
  1894. /* l4_per -> mmc2 */
  1895. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2 = {
  1896. .master = &omap54xx_l4_per_hwmod,
  1897. .slave = &omap54xx_mmc2_hwmod,
  1898. .clk = "l3_iclk_div",
  1899. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1900. };
  1901. /* l4_per -> mmc3 */
  1902. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3 = {
  1903. .master = &omap54xx_l4_per_hwmod,
  1904. .slave = &omap54xx_mmc3_hwmod,
  1905. .clk = "l4_root_clk_div",
  1906. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1907. };
  1908. /* l4_per -> mmc4 */
  1909. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4 = {
  1910. .master = &omap54xx_l4_per_hwmod,
  1911. .slave = &omap54xx_mmc4_hwmod,
  1912. .clk = "l4_root_clk_div",
  1913. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1914. };
  1915. /* l4_per -> mmc5 */
  1916. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5 = {
  1917. .master = &omap54xx_l4_per_hwmod,
  1918. .slave = &omap54xx_mmc5_hwmod,
  1919. .clk = "l4_root_clk_div",
  1920. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1921. };
  1922. /* l4_cfg -> mpu */
  1923. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = {
  1924. .master = &omap54xx_l4_cfg_hwmod,
  1925. .slave = &omap54xx_mpu_hwmod,
  1926. .clk = "l4_root_clk_div",
  1927. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1928. };
  1929. /* l4_cfg -> spinlock */
  1930. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock = {
  1931. .master = &omap54xx_l4_cfg_hwmod,
  1932. .slave = &omap54xx_spinlock_hwmod,
  1933. .clk = "l4_root_clk_div",
  1934. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1935. };
  1936. /* l4_cfg -> ocp2scp1 */
  1937. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
  1938. .master = &omap54xx_l4_cfg_hwmod,
  1939. .slave = &omap54xx_ocp2scp1_hwmod,
  1940. .clk = "l4_root_clk_div",
  1941. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1942. };
  1943. /* l4_wkup -> timer1 */
  1944. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
  1945. .master = &omap54xx_l4_wkup_hwmod,
  1946. .slave = &omap54xx_timer1_hwmod,
  1947. .clk = "wkupaon_iclk_mux",
  1948. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1949. };
  1950. /* l4_per -> timer2 */
  1951. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2 = {
  1952. .master = &omap54xx_l4_per_hwmod,
  1953. .slave = &omap54xx_timer2_hwmod,
  1954. .clk = "l4_root_clk_div",
  1955. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1956. };
  1957. /* l4_per -> timer3 */
  1958. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3 = {
  1959. .master = &omap54xx_l4_per_hwmod,
  1960. .slave = &omap54xx_timer3_hwmod,
  1961. .clk = "l4_root_clk_div",
  1962. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1963. };
  1964. /* l4_per -> timer4 */
  1965. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4 = {
  1966. .master = &omap54xx_l4_per_hwmod,
  1967. .slave = &omap54xx_timer4_hwmod,
  1968. .clk = "l4_root_clk_div",
  1969. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1970. };
  1971. /* l4_abe -> timer5 */
  1972. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5 = {
  1973. .master = &omap54xx_l4_abe_hwmod,
  1974. .slave = &omap54xx_timer5_hwmod,
  1975. .clk = "abe_iclk",
  1976. .user = OCP_USER_MPU,
  1977. };
  1978. /* l4_abe -> timer6 */
  1979. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6 = {
  1980. .master = &omap54xx_l4_abe_hwmod,
  1981. .slave = &omap54xx_timer6_hwmod,
  1982. .clk = "abe_iclk",
  1983. .user = OCP_USER_MPU,
  1984. };
  1985. /* l4_abe -> timer7 */
  1986. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7 = {
  1987. .master = &omap54xx_l4_abe_hwmod,
  1988. .slave = &omap54xx_timer7_hwmod,
  1989. .clk = "abe_iclk",
  1990. .user = OCP_USER_MPU,
  1991. };
  1992. /* l4_abe -> timer8 */
  1993. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8 = {
  1994. .master = &omap54xx_l4_abe_hwmod,
  1995. .slave = &omap54xx_timer8_hwmod,
  1996. .clk = "abe_iclk",
  1997. .user = OCP_USER_MPU,
  1998. };
  1999. /* l4_per -> timer9 */
  2000. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9 = {
  2001. .master = &omap54xx_l4_per_hwmod,
  2002. .slave = &omap54xx_timer9_hwmod,
  2003. .clk = "l4_root_clk_div",
  2004. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2005. };
  2006. /* l4_per -> timer10 */
  2007. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10 = {
  2008. .master = &omap54xx_l4_per_hwmod,
  2009. .slave = &omap54xx_timer10_hwmod,
  2010. .clk = "l4_root_clk_div",
  2011. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2012. };
  2013. /* l4_per -> timer11 */
  2014. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11 = {
  2015. .master = &omap54xx_l4_per_hwmod,
  2016. .slave = &omap54xx_timer11_hwmod,
  2017. .clk = "l4_root_clk_div",
  2018. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2019. };
  2020. /* l4_per -> uart1 */
  2021. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1 = {
  2022. .master = &omap54xx_l4_per_hwmod,
  2023. .slave = &omap54xx_uart1_hwmod,
  2024. .clk = "l4_root_clk_div",
  2025. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2026. };
  2027. /* l4_per -> uart2 */
  2028. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2 = {
  2029. .master = &omap54xx_l4_per_hwmod,
  2030. .slave = &omap54xx_uart2_hwmod,
  2031. .clk = "l4_root_clk_div",
  2032. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2033. };
  2034. /* l4_per -> uart3 */
  2035. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3 = {
  2036. .master = &omap54xx_l4_per_hwmod,
  2037. .slave = &omap54xx_uart3_hwmod,
  2038. .clk = "l4_root_clk_div",
  2039. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2040. };
  2041. /* l4_per -> uart4 */
  2042. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4 = {
  2043. .master = &omap54xx_l4_per_hwmod,
  2044. .slave = &omap54xx_uart4_hwmod,
  2045. .clk = "l4_root_clk_div",
  2046. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2047. };
  2048. /* l4_per -> uart5 */
  2049. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5 = {
  2050. .master = &omap54xx_l4_per_hwmod,
  2051. .slave = &omap54xx_uart5_hwmod,
  2052. .clk = "l4_root_clk_div",
  2053. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2054. };
  2055. /* l4_per -> uart6 */
  2056. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6 = {
  2057. .master = &omap54xx_l4_per_hwmod,
  2058. .slave = &omap54xx_uart6_hwmod,
  2059. .clk = "l4_root_clk_div",
  2060. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2061. };
  2062. /* l4_cfg -> usb_host_hs */
  2063. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs = {
  2064. .master = &omap54xx_l4_cfg_hwmod,
  2065. .slave = &omap54xx_usb_host_hs_hwmod,
  2066. .clk = "l3_iclk_div",
  2067. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2068. };
  2069. /* l4_cfg -> usb_tll_hs */
  2070. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs = {
  2071. .master = &omap54xx_l4_cfg_hwmod,
  2072. .slave = &omap54xx_usb_tll_hs_hwmod,
  2073. .clk = "l4_root_clk_div",
  2074. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2075. };
  2076. /* l4_cfg -> usb_otg_ss */
  2077. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss = {
  2078. .master = &omap54xx_l4_cfg_hwmod,
  2079. .slave = &omap54xx_usb_otg_ss_hwmod,
  2080. .clk = "dpll_core_h13x2_ck",
  2081. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2082. };
  2083. /* l4_wkup -> wd_timer2 */
  2084. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2 = {
  2085. .master = &omap54xx_l4_wkup_hwmod,
  2086. .slave = &omap54xx_wd_timer2_hwmod,
  2087. .clk = "wkupaon_iclk_mux",
  2088. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2089. };
  2090. static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
  2091. &omap54xx_l3_main_1__dmm,
  2092. &omap54xx_l3_main_3__l3_instr,
  2093. &omap54xx_l3_main_2__l3_main_1,
  2094. &omap54xx_l4_cfg__l3_main_1,
  2095. &omap54xx_mpu__l3_main_1,
  2096. &omap54xx_l3_main_1__l3_main_2,
  2097. &omap54xx_l4_cfg__l3_main_2,
  2098. &omap54xx_l3_main_1__l3_main_3,
  2099. &omap54xx_l3_main_2__l3_main_3,
  2100. &omap54xx_l4_cfg__l3_main_3,
  2101. &omap54xx_l3_main_1__l4_abe,
  2102. &omap54xx_mpu__l4_abe,
  2103. &omap54xx_l3_main_1__l4_cfg,
  2104. &omap54xx_l3_main_2__l4_per,
  2105. &omap54xx_l3_main_1__l4_wkup,
  2106. &omap54xx_mpu__mpu_private,
  2107. &omap54xx_l4_wkup__counter_32k,
  2108. &omap54xx_l4_cfg__dma_system,
  2109. &omap54xx_l4_abe__dmic,
  2110. &omap54xx_mpu__emif1,
  2111. &omap54xx_mpu__emif2,
  2112. &omap54xx_l4_wkup__gpio1,
  2113. &omap54xx_l4_per__gpio2,
  2114. &omap54xx_l4_per__gpio3,
  2115. &omap54xx_l4_per__gpio4,
  2116. &omap54xx_l4_per__gpio5,
  2117. &omap54xx_l4_per__gpio6,
  2118. &omap54xx_l4_per__gpio7,
  2119. &omap54xx_l4_per__gpio8,
  2120. &omap54xx_l4_per__i2c1,
  2121. &omap54xx_l4_per__i2c2,
  2122. &omap54xx_l4_per__i2c3,
  2123. &omap54xx_l4_per__i2c4,
  2124. &omap54xx_l4_per__i2c5,
  2125. &omap54xx_l4_wkup__kbd,
  2126. &omap54xx_l4_cfg__mailbox,
  2127. &omap54xx_l4_abe__mcbsp1,
  2128. &omap54xx_l4_abe__mcbsp2,
  2129. &omap54xx_l4_abe__mcbsp3,
  2130. &omap54xx_l4_abe__mcpdm,
  2131. &omap54xx_l4_per__mcspi1,
  2132. &omap54xx_l4_per__mcspi2,
  2133. &omap54xx_l4_per__mcspi3,
  2134. &omap54xx_l4_per__mcspi4,
  2135. &omap54xx_l4_per__mmc1,
  2136. &omap54xx_l4_per__mmc2,
  2137. &omap54xx_l4_per__mmc3,
  2138. &omap54xx_l4_per__mmc4,
  2139. &omap54xx_l4_per__mmc5,
  2140. &omap54xx_l4_cfg__mpu,
  2141. &omap54xx_l4_cfg__spinlock,
  2142. &omap54xx_l4_cfg__ocp2scp1,
  2143. &omap54xx_l4_wkup__timer1,
  2144. &omap54xx_l4_per__timer2,
  2145. &omap54xx_l4_per__timer3,
  2146. &omap54xx_l4_per__timer4,
  2147. &omap54xx_l4_abe__timer5,
  2148. &omap54xx_l4_abe__timer6,
  2149. &omap54xx_l4_abe__timer7,
  2150. &omap54xx_l4_abe__timer8,
  2151. &omap54xx_l4_per__timer9,
  2152. &omap54xx_l4_per__timer10,
  2153. &omap54xx_l4_per__timer11,
  2154. &omap54xx_l4_per__uart1,
  2155. &omap54xx_l4_per__uart2,
  2156. &omap54xx_l4_per__uart3,
  2157. &omap54xx_l4_per__uart4,
  2158. &omap54xx_l4_per__uart5,
  2159. &omap54xx_l4_per__uart6,
  2160. &omap54xx_l4_cfg__usb_host_hs,
  2161. &omap54xx_l4_cfg__usb_tll_hs,
  2162. &omap54xx_l4_cfg__usb_otg_ss,
  2163. &omap54xx_l4_wkup__wd_timer2,
  2164. NULL,
  2165. };
  2166. int __init omap54xx_hwmod_init(void)
  2167. {
  2168. omap_hwmod_init();
  2169. return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs);
  2170. }