omap_hwmod_54xx_data.c 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409
  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. SYSC_HAS_RESET_STATUS),
  1399. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1400. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1401. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1402. .sysc_fields = &omap_hwmod_sysc_type2,
  1403. };
  1404. static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class = {
  1405. .name = "usb_host_hs",
  1406. .sysc = &omap54xx_usb_host_hs_sysc,
  1407. };
  1408. static struct omap_hwmod omap54xx_usb_host_hs_hwmod = {
  1409. .name = "usb_host_hs",
  1410. .class = &omap54xx_usb_host_hs_hwmod_class,
  1411. .clkdm_name = "l3init_clkdm",
  1412. /*
  1413. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  1414. * id: i660
  1415. *
  1416. * Description:
  1417. * In the following configuration :
  1418. * - USBHOST module is set to smart-idle mode
  1419. * - PRCM asserts idle_req to the USBHOST module ( This typically
  1420. * happens when the system is going to a low power mode : all ports
  1421. * have been suspended, the master part of the USBHOST module has
  1422. * entered the standby state, and SW has cut the functional clocks)
  1423. * - an USBHOST interrupt occurs before the module is able to answer
  1424. * idle_ack, typically a remote wakeup IRQ.
  1425. * Then the USB HOST module will enter a deadlock situation where it
  1426. * is no more accessible nor functional.
  1427. *
  1428. * Workaround:
  1429. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  1430. */
  1431. /*
  1432. * Errata: USB host EHCI may stall when entering smart-standby mode
  1433. * Id: i571
  1434. *
  1435. * Description:
  1436. * When the USBHOST module is set to smart-standby mode, and when it is
  1437. * ready to enter the standby state (i.e. all ports are suspended and
  1438. * all attached devices are in suspend mode), then it can wrongly assert
  1439. * the Mstandby signal too early while there are still some residual OCP
  1440. * transactions ongoing. If this condition occurs, the internal state
  1441. * machine may go to an undefined state and the USB link may be stuck
  1442. * upon the next resume.
  1443. *
  1444. * Workaround:
  1445. * Don't use smart standby; use only force standby,
  1446. * hence HWMOD_SWSUP_MSTANDBY
  1447. */
  1448. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1449. .main_clk = "l3init_60m_fclk",
  1450. .prcm = {
  1451. .omap4 = {
  1452. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET,
  1453. .context_offs = OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET,
  1454. .modulemode = MODULEMODE_SWCTRL,
  1455. },
  1456. },
  1457. };
  1458. /*
  1459. * 'usb_tll_hs' class
  1460. * usb_tll_hs module is the adapter on the usb_host_hs ports
  1461. */
  1462. static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc = {
  1463. .rev_offs = 0x0000,
  1464. .sysc_offs = 0x0010,
  1465. .syss_offs = 0x0014,
  1466. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1467. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1468. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1469. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1470. .sysc_fields = &omap_hwmod_sysc_type1,
  1471. };
  1472. static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class = {
  1473. .name = "usb_tll_hs",
  1474. .sysc = &omap54xx_usb_tll_hs_sysc,
  1475. };
  1476. static struct omap_hwmod omap54xx_usb_tll_hs_hwmod = {
  1477. .name = "usb_tll_hs",
  1478. .class = &omap54xx_usb_tll_hs_hwmod_class,
  1479. .clkdm_name = "l3init_clkdm",
  1480. .main_clk = "l4_root_clk_div",
  1481. .prcm = {
  1482. .omap4 = {
  1483. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET,
  1484. .context_offs = OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET,
  1485. .modulemode = MODULEMODE_HWCTRL,
  1486. },
  1487. },
  1488. };
  1489. /*
  1490. * 'usb_otg_ss' class
  1491. * 2.0 super speed (usb_otg_ss) controller
  1492. */
  1493. static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc = {
  1494. .rev_offs = 0x0000,
  1495. .sysc_offs = 0x0010,
  1496. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  1497. SYSC_HAS_SIDLEMODE),
  1498. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1499. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1500. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1501. .sysc_fields = &omap_hwmod_sysc_type2,
  1502. };
  1503. static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class = {
  1504. .name = "usb_otg_ss",
  1505. .sysc = &omap54xx_usb_otg_ss_sysc,
  1506. };
  1507. /* usb_otg_ss */
  1508. static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks[] = {
  1509. { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" },
  1510. };
  1511. static struct omap_hwmod omap54xx_usb_otg_ss_hwmod = {
  1512. .name = "usb_otg_ss",
  1513. .class = &omap54xx_usb_otg_ss_hwmod_class,
  1514. .clkdm_name = "l3init_clkdm",
  1515. .flags = HWMOD_SWSUP_SIDLE,
  1516. .main_clk = "dpll_core_h13x2_ck",
  1517. .prcm = {
  1518. .omap4 = {
  1519. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET,
  1520. .context_offs = OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET,
  1521. .modulemode = MODULEMODE_HWCTRL,
  1522. },
  1523. },
  1524. .opt_clks = usb_otg_ss_opt_clks,
  1525. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss_opt_clks),
  1526. };
  1527. /*
  1528. * 'wd_timer' class
  1529. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  1530. * overflow condition
  1531. */
  1532. static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc = {
  1533. .rev_offs = 0x0000,
  1534. .sysc_offs = 0x0010,
  1535. .syss_offs = 0x0014,
  1536. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1537. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1538. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1539. SIDLE_SMART_WKUP),
  1540. .sysc_fields = &omap_hwmod_sysc_type1,
  1541. };
  1542. static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class = {
  1543. .name = "wd_timer",
  1544. .sysc = &omap54xx_wd_timer_sysc,
  1545. .pre_shutdown = &omap2_wd_timer_disable,
  1546. };
  1547. /* wd_timer2 */
  1548. static struct omap_hwmod omap54xx_wd_timer2_hwmod = {
  1549. .name = "wd_timer2",
  1550. .class = &omap54xx_wd_timer_hwmod_class,
  1551. .clkdm_name = "wkupaon_clkdm",
  1552. .main_clk = "sys_32k_ck",
  1553. .prcm = {
  1554. .omap4 = {
  1555. .clkctrl_offs = OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  1556. .context_offs = OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  1557. .modulemode = MODULEMODE_SWCTRL,
  1558. },
  1559. },
  1560. };
  1561. /*
  1562. * Interfaces
  1563. */
  1564. /* l3_main_1 -> dmm */
  1565. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm = {
  1566. .master = &omap54xx_l3_main_1_hwmod,
  1567. .slave = &omap54xx_dmm_hwmod,
  1568. .clk = "l3_iclk_div",
  1569. .user = OCP_USER_SDMA,
  1570. };
  1571. /* l3_main_3 -> l3_instr */
  1572. static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr = {
  1573. .master = &omap54xx_l3_main_3_hwmod,
  1574. .slave = &omap54xx_l3_instr_hwmod,
  1575. .clk = "l3_iclk_div",
  1576. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1577. };
  1578. /* l3_main_2 -> l3_main_1 */
  1579. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1 = {
  1580. .master = &omap54xx_l3_main_2_hwmod,
  1581. .slave = &omap54xx_l3_main_1_hwmod,
  1582. .clk = "l3_iclk_div",
  1583. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1584. };
  1585. /* l4_cfg -> l3_main_1 */
  1586. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1 = {
  1587. .master = &omap54xx_l4_cfg_hwmod,
  1588. .slave = &omap54xx_l3_main_1_hwmod,
  1589. .clk = "l3_iclk_div",
  1590. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1591. };
  1592. /* mpu -> l3_main_1 */
  1593. static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1 = {
  1594. .master = &omap54xx_mpu_hwmod,
  1595. .slave = &omap54xx_l3_main_1_hwmod,
  1596. .clk = "l3_iclk_div",
  1597. .user = OCP_USER_MPU,
  1598. };
  1599. /* l3_main_1 -> l3_main_2 */
  1600. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2 = {
  1601. .master = &omap54xx_l3_main_1_hwmod,
  1602. .slave = &omap54xx_l3_main_2_hwmod,
  1603. .clk = "l3_iclk_div",
  1604. .user = OCP_USER_MPU,
  1605. };
  1606. /* l4_cfg -> l3_main_2 */
  1607. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2 = {
  1608. .master = &omap54xx_l4_cfg_hwmod,
  1609. .slave = &omap54xx_l3_main_2_hwmod,
  1610. .clk = "l3_iclk_div",
  1611. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1612. };
  1613. /* l3_main_1 -> l3_main_3 */
  1614. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3 = {
  1615. .master = &omap54xx_l3_main_1_hwmod,
  1616. .slave = &omap54xx_l3_main_3_hwmod,
  1617. .clk = "l3_iclk_div",
  1618. .user = OCP_USER_MPU,
  1619. };
  1620. /* l3_main_2 -> l3_main_3 */
  1621. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3 = {
  1622. .master = &omap54xx_l3_main_2_hwmod,
  1623. .slave = &omap54xx_l3_main_3_hwmod,
  1624. .clk = "l3_iclk_div",
  1625. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1626. };
  1627. /* l4_cfg -> l3_main_3 */
  1628. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
  1629. .master = &omap54xx_l4_cfg_hwmod,
  1630. .slave = &omap54xx_l3_main_3_hwmod,
  1631. .clk = "l3_iclk_div",
  1632. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1633. };
  1634. /* l3_main_1 -> l4_abe */
  1635. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe = {
  1636. .master = &omap54xx_l3_main_1_hwmod,
  1637. .slave = &omap54xx_l4_abe_hwmod,
  1638. .clk = "abe_iclk",
  1639. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1640. };
  1641. /* mpu -> l4_abe */
  1642. static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe = {
  1643. .master = &omap54xx_mpu_hwmod,
  1644. .slave = &omap54xx_l4_abe_hwmod,
  1645. .clk = "abe_iclk",
  1646. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1647. };
  1648. /* l3_main_1 -> l4_cfg */
  1649. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg = {
  1650. .master = &omap54xx_l3_main_1_hwmod,
  1651. .slave = &omap54xx_l4_cfg_hwmod,
  1652. .clk = "l4_root_clk_div",
  1653. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1654. };
  1655. /* l3_main_2 -> l4_per */
  1656. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per = {
  1657. .master = &omap54xx_l3_main_2_hwmod,
  1658. .slave = &omap54xx_l4_per_hwmod,
  1659. .clk = "l4_root_clk_div",
  1660. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1661. };
  1662. /* l3_main_1 -> l4_wkup */
  1663. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup = {
  1664. .master = &omap54xx_l3_main_1_hwmod,
  1665. .slave = &omap54xx_l4_wkup_hwmod,
  1666. .clk = "wkupaon_iclk_mux",
  1667. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1668. };
  1669. /* mpu -> mpu_private */
  1670. static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private = {
  1671. .master = &omap54xx_mpu_hwmod,
  1672. .slave = &omap54xx_mpu_private_hwmod,
  1673. .clk = "l3_iclk_div",
  1674. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1675. };
  1676. /* l4_wkup -> counter_32k */
  1677. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k = {
  1678. .master = &omap54xx_l4_wkup_hwmod,
  1679. .slave = &omap54xx_counter_32k_hwmod,
  1680. .clk = "wkupaon_iclk_mux",
  1681. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1682. };
  1683. static struct omap_hwmod_addr_space omap54xx_dma_system_addrs[] = {
  1684. {
  1685. .pa_start = 0x4a056000,
  1686. .pa_end = 0x4a056fff,
  1687. .flags = ADDR_TYPE_RT
  1688. },
  1689. { }
  1690. };
  1691. /* l4_cfg -> dma_system */
  1692. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system = {
  1693. .master = &omap54xx_l4_cfg_hwmod,
  1694. .slave = &omap54xx_dma_system_hwmod,
  1695. .clk = "l4_root_clk_div",
  1696. .addr = omap54xx_dma_system_addrs,
  1697. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1698. };
  1699. /* l4_abe -> dmic */
  1700. static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic = {
  1701. .master = &omap54xx_l4_abe_hwmod,
  1702. .slave = &omap54xx_dmic_hwmod,
  1703. .clk = "abe_iclk",
  1704. .user = OCP_USER_MPU,
  1705. };
  1706. /* mpu -> emif1 */
  1707. static struct omap_hwmod_ocp_if omap54xx_mpu__emif1 = {
  1708. .master = &omap54xx_mpu_hwmod,
  1709. .slave = &omap54xx_emif1_hwmod,
  1710. .clk = "dpll_core_h11x2_ck",
  1711. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1712. };
  1713. /* mpu -> emif2 */
  1714. static struct omap_hwmod_ocp_if omap54xx_mpu__emif2 = {
  1715. .master = &omap54xx_mpu_hwmod,
  1716. .slave = &omap54xx_emif2_hwmod,
  1717. .clk = "dpll_core_h11x2_ck",
  1718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1719. };
  1720. /* l4_wkup -> gpio1 */
  1721. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1 = {
  1722. .master = &omap54xx_l4_wkup_hwmod,
  1723. .slave = &omap54xx_gpio1_hwmod,
  1724. .clk = "wkupaon_iclk_mux",
  1725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1726. };
  1727. /* l4_per -> gpio2 */
  1728. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2 = {
  1729. .master = &omap54xx_l4_per_hwmod,
  1730. .slave = &omap54xx_gpio2_hwmod,
  1731. .clk = "l4_root_clk_div",
  1732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1733. };
  1734. /* l4_per -> gpio3 */
  1735. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3 = {
  1736. .master = &omap54xx_l4_per_hwmod,
  1737. .slave = &omap54xx_gpio3_hwmod,
  1738. .clk = "l4_root_clk_div",
  1739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1740. };
  1741. /* l4_per -> gpio4 */
  1742. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4 = {
  1743. .master = &omap54xx_l4_per_hwmod,
  1744. .slave = &omap54xx_gpio4_hwmod,
  1745. .clk = "l4_root_clk_div",
  1746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1747. };
  1748. /* l4_per -> gpio5 */
  1749. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5 = {
  1750. .master = &omap54xx_l4_per_hwmod,
  1751. .slave = &omap54xx_gpio5_hwmod,
  1752. .clk = "l4_root_clk_div",
  1753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1754. };
  1755. /* l4_per -> gpio6 */
  1756. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6 = {
  1757. .master = &omap54xx_l4_per_hwmod,
  1758. .slave = &omap54xx_gpio6_hwmod,
  1759. .clk = "l4_root_clk_div",
  1760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1761. };
  1762. /* l4_per -> gpio7 */
  1763. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7 = {
  1764. .master = &omap54xx_l4_per_hwmod,
  1765. .slave = &omap54xx_gpio7_hwmod,
  1766. .clk = "l4_root_clk_div",
  1767. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1768. };
  1769. /* l4_per -> gpio8 */
  1770. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8 = {
  1771. .master = &omap54xx_l4_per_hwmod,
  1772. .slave = &omap54xx_gpio8_hwmod,
  1773. .clk = "l4_root_clk_div",
  1774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1775. };
  1776. /* l4_per -> i2c1 */
  1777. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1 = {
  1778. .master = &omap54xx_l4_per_hwmod,
  1779. .slave = &omap54xx_i2c1_hwmod,
  1780. .clk = "l4_root_clk_div",
  1781. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1782. };
  1783. /* l4_per -> i2c2 */
  1784. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2 = {
  1785. .master = &omap54xx_l4_per_hwmod,
  1786. .slave = &omap54xx_i2c2_hwmod,
  1787. .clk = "l4_root_clk_div",
  1788. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1789. };
  1790. /* l4_per -> i2c3 */
  1791. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3 = {
  1792. .master = &omap54xx_l4_per_hwmod,
  1793. .slave = &omap54xx_i2c3_hwmod,
  1794. .clk = "l4_root_clk_div",
  1795. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1796. };
  1797. /* l4_per -> i2c4 */
  1798. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4 = {
  1799. .master = &omap54xx_l4_per_hwmod,
  1800. .slave = &omap54xx_i2c4_hwmod,
  1801. .clk = "l4_root_clk_div",
  1802. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1803. };
  1804. /* l4_per -> i2c5 */
  1805. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5 = {
  1806. .master = &omap54xx_l4_per_hwmod,
  1807. .slave = &omap54xx_i2c5_hwmod,
  1808. .clk = "l4_root_clk_div",
  1809. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1810. };
  1811. /* l4_wkup -> kbd */
  1812. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd = {
  1813. .master = &omap54xx_l4_wkup_hwmod,
  1814. .slave = &omap54xx_kbd_hwmod,
  1815. .clk = "wkupaon_iclk_mux",
  1816. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1817. };
  1818. /* l4_cfg -> mailbox */
  1819. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox = {
  1820. .master = &omap54xx_l4_cfg_hwmod,
  1821. .slave = &omap54xx_mailbox_hwmod,
  1822. .clk = "l4_root_clk_div",
  1823. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1824. };
  1825. /* l4_abe -> mcbsp1 */
  1826. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1 = {
  1827. .master = &omap54xx_l4_abe_hwmod,
  1828. .slave = &omap54xx_mcbsp1_hwmod,
  1829. .clk = "abe_iclk",
  1830. .user = OCP_USER_MPU,
  1831. };
  1832. /* l4_abe -> mcbsp2 */
  1833. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2 = {
  1834. .master = &omap54xx_l4_abe_hwmod,
  1835. .slave = &omap54xx_mcbsp2_hwmod,
  1836. .clk = "abe_iclk",
  1837. .user = OCP_USER_MPU,
  1838. };
  1839. /* l4_abe -> mcbsp3 */
  1840. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3 = {
  1841. .master = &omap54xx_l4_abe_hwmod,
  1842. .slave = &omap54xx_mcbsp3_hwmod,
  1843. .clk = "abe_iclk",
  1844. .user = OCP_USER_MPU,
  1845. };
  1846. /* l4_abe -> mcpdm */
  1847. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm = {
  1848. .master = &omap54xx_l4_abe_hwmod,
  1849. .slave = &omap54xx_mcpdm_hwmod,
  1850. .clk = "abe_iclk",
  1851. .user = OCP_USER_MPU,
  1852. };
  1853. /* l4_per -> mcspi1 */
  1854. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1 = {
  1855. .master = &omap54xx_l4_per_hwmod,
  1856. .slave = &omap54xx_mcspi1_hwmod,
  1857. .clk = "l4_root_clk_div",
  1858. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1859. };
  1860. /* l4_per -> mcspi2 */
  1861. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2 = {
  1862. .master = &omap54xx_l4_per_hwmod,
  1863. .slave = &omap54xx_mcspi2_hwmod,
  1864. .clk = "l4_root_clk_div",
  1865. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1866. };
  1867. /* l4_per -> mcspi3 */
  1868. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3 = {
  1869. .master = &omap54xx_l4_per_hwmod,
  1870. .slave = &omap54xx_mcspi3_hwmod,
  1871. .clk = "l4_root_clk_div",
  1872. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1873. };
  1874. /* l4_per -> mcspi4 */
  1875. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4 = {
  1876. .master = &omap54xx_l4_per_hwmod,
  1877. .slave = &omap54xx_mcspi4_hwmod,
  1878. .clk = "l4_root_clk_div",
  1879. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1880. };
  1881. /* l4_per -> mmc1 */
  1882. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1 = {
  1883. .master = &omap54xx_l4_per_hwmod,
  1884. .slave = &omap54xx_mmc1_hwmod,
  1885. .clk = "l3_iclk_div",
  1886. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1887. };
  1888. /* l4_per -> mmc2 */
  1889. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2 = {
  1890. .master = &omap54xx_l4_per_hwmod,
  1891. .slave = &omap54xx_mmc2_hwmod,
  1892. .clk = "l3_iclk_div",
  1893. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1894. };
  1895. /* l4_per -> mmc3 */
  1896. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3 = {
  1897. .master = &omap54xx_l4_per_hwmod,
  1898. .slave = &omap54xx_mmc3_hwmod,
  1899. .clk = "l4_root_clk_div",
  1900. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1901. };
  1902. /* l4_per -> mmc4 */
  1903. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4 = {
  1904. .master = &omap54xx_l4_per_hwmod,
  1905. .slave = &omap54xx_mmc4_hwmod,
  1906. .clk = "l4_root_clk_div",
  1907. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1908. };
  1909. /* l4_per -> mmc5 */
  1910. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5 = {
  1911. .master = &omap54xx_l4_per_hwmod,
  1912. .slave = &omap54xx_mmc5_hwmod,
  1913. .clk = "l4_root_clk_div",
  1914. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1915. };
  1916. /* l4_cfg -> mpu */
  1917. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = {
  1918. .master = &omap54xx_l4_cfg_hwmod,
  1919. .slave = &omap54xx_mpu_hwmod,
  1920. .clk = "l4_root_clk_div",
  1921. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1922. };
  1923. /* l4_cfg -> spinlock */
  1924. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock = {
  1925. .master = &omap54xx_l4_cfg_hwmod,
  1926. .slave = &omap54xx_spinlock_hwmod,
  1927. .clk = "l4_root_clk_div",
  1928. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1929. };
  1930. /* l4_cfg -> ocp2scp1 */
  1931. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
  1932. .master = &omap54xx_l4_cfg_hwmod,
  1933. .slave = &omap54xx_ocp2scp1_hwmod,
  1934. .clk = "l4_root_clk_div",
  1935. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1936. };
  1937. /* l4_wkup -> timer1 */
  1938. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
  1939. .master = &omap54xx_l4_wkup_hwmod,
  1940. .slave = &omap54xx_timer1_hwmod,
  1941. .clk = "wkupaon_iclk_mux",
  1942. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1943. };
  1944. /* l4_per -> timer2 */
  1945. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2 = {
  1946. .master = &omap54xx_l4_per_hwmod,
  1947. .slave = &omap54xx_timer2_hwmod,
  1948. .clk = "l4_root_clk_div",
  1949. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1950. };
  1951. /* l4_per -> timer3 */
  1952. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3 = {
  1953. .master = &omap54xx_l4_per_hwmod,
  1954. .slave = &omap54xx_timer3_hwmod,
  1955. .clk = "l4_root_clk_div",
  1956. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1957. };
  1958. /* l4_per -> timer4 */
  1959. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4 = {
  1960. .master = &omap54xx_l4_per_hwmod,
  1961. .slave = &omap54xx_timer4_hwmod,
  1962. .clk = "l4_root_clk_div",
  1963. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1964. };
  1965. /* l4_abe -> timer5 */
  1966. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5 = {
  1967. .master = &omap54xx_l4_abe_hwmod,
  1968. .slave = &omap54xx_timer5_hwmod,
  1969. .clk = "abe_iclk",
  1970. .user = OCP_USER_MPU,
  1971. };
  1972. /* l4_abe -> timer6 */
  1973. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6 = {
  1974. .master = &omap54xx_l4_abe_hwmod,
  1975. .slave = &omap54xx_timer6_hwmod,
  1976. .clk = "abe_iclk",
  1977. .user = OCP_USER_MPU,
  1978. };
  1979. /* l4_abe -> timer7 */
  1980. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7 = {
  1981. .master = &omap54xx_l4_abe_hwmod,
  1982. .slave = &omap54xx_timer7_hwmod,
  1983. .clk = "abe_iclk",
  1984. .user = OCP_USER_MPU,
  1985. };
  1986. /* l4_abe -> timer8 */
  1987. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8 = {
  1988. .master = &omap54xx_l4_abe_hwmod,
  1989. .slave = &omap54xx_timer8_hwmod,
  1990. .clk = "abe_iclk",
  1991. .user = OCP_USER_MPU,
  1992. };
  1993. /* l4_per -> timer9 */
  1994. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9 = {
  1995. .master = &omap54xx_l4_per_hwmod,
  1996. .slave = &omap54xx_timer9_hwmod,
  1997. .clk = "l4_root_clk_div",
  1998. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1999. };
  2000. /* l4_per -> timer10 */
  2001. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10 = {
  2002. .master = &omap54xx_l4_per_hwmod,
  2003. .slave = &omap54xx_timer10_hwmod,
  2004. .clk = "l4_root_clk_div",
  2005. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2006. };
  2007. /* l4_per -> timer11 */
  2008. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11 = {
  2009. .master = &omap54xx_l4_per_hwmod,
  2010. .slave = &omap54xx_timer11_hwmod,
  2011. .clk = "l4_root_clk_div",
  2012. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2013. };
  2014. /* l4_per -> uart1 */
  2015. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1 = {
  2016. .master = &omap54xx_l4_per_hwmod,
  2017. .slave = &omap54xx_uart1_hwmod,
  2018. .clk = "l4_root_clk_div",
  2019. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2020. };
  2021. /* l4_per -> uart2 */
  2022. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2 = {
  2023. .master = &omap54xx_l4_per_hwmod,
  2024. .slave = &omap54xx_uart2_hwmod,
  2025. .clk = "l4_root_clk_div",
  2026. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2027. };
  2028. /* l4_per -> uart3 */
  2029. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3 = {
  2030. .master = &omap54xx_l4_per_hwmod,
  2031. .slave = &omap54xx_uart3_hwmod,
  2032. .clk = "l4_root_clk_div",
  2033. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2034. };
  2035. /* l4_per -> uart4 */
  2036. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4 = {
  2037. .master = &omap54xx_l4_per_hwmod,
  2038. .slave = &omap54xx_uart4_hwmod,
  2039. .clk = "l4_root_clk_div",
  2040. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2041. };
  2042. /* l4_per -> uart5 */
  2043. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5 = {
  2044. .master = &omap54xx_l4_per_hwmod,
  2045. .slave = &omap54xx_uart5_hwmod,
  2046. .clk = "l4_root_clk_div",
  2047. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2048. };
  2049. /* l4_per -> uart6 */
  2050. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6 = {
  2051. .master = &omap54xx_l4_per_hwmod,
  2052. .slave = &omap54xx_uart6_hwmod,
  2053. .clk = "l4_root_clk_div",
  2054. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2055. };
  2056. /* l4_cfg -> usb_host_hs */
  2057. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs = {
  2058. .master = &omap54xx_l4_cfg_hwmod,
  2059. .slave = &omap54xx_usb_host_hs_hwmod,
  2060. .clk = "l3_iclk_div",
  2061. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2062. };
  2063. /* l4_cfg -> usb_tll_hs */
  2064. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs = {
  2065. .master = &omap54xx_l4_cfg_hwmod,
  2066. .slave = &omap54xx_usb_tll_hs_hwmod,
  2067. .clk = "l4_root_clk_div",
  2068. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2069. };
  2070. /* l4_cfg -> usb_otg_ss */
  2071. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss = {
  2072. .master = &omap54xx_l4_cfg_hwmod,
  2073. .slave = &omap54xx_usb_otg_ss_hwmod,
  2074. .clk = "dpll_core_h13x2_ck",
  2075. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2076. };
  2077. /* l4_wkup -> wd_timer2 */
  2078. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2 = {
  2079. .master = &omap54xx_l4_wkup_hwmod,
  2080. .slave = &omap54xx_wd_timer2_hwmod,
  2081. .clk = "wkupaon_iclk_mux",
  2082. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2083. };
  2084. static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
  2085. &omap54xx_l3_main_1__dmm,
  2086. &omap54xx_l3_main_3__l3_instr,
  2087. &omap54xx_l3_main_2__l3_main_1,
  2088. &omap54xx_l4_cfg__l3_main_1,
  2089. &omap54xx_mpu__l3_main_1,
  2090. &omap54xx_l3_main_1__l3_main_2,
  2091. &omap54xx_l4_cfg__l3_main_2,
  2092. &omap54xx_l3_main_1__l3_main_3,
  2093. &omap54xx_l3_main_2__l3_main_3,
  2094. &omap54xx_l4_cfg__l3_main_3,
  2095. &omap54xx_l3_main_1__l4_abe,
  2096. &omap54xx_mpu__l4_abe,
  2097. &omap54xx_l3_main_1__l4_cfg,
  2098. &omap54xx_l3_main_2__l4_per,
  2099. &omap54xx_l3_main_1__l4_wkup,
  2100. &omap54xx_mpu__mpu_private,
  2101. &omap54xx_l4_wkup__counter_32k,
  2102. &omap54xx_l4_cfg__dma_system,
  2103. &omap54xx_l4_abe__dmic,
  2104. &omap54xx_mpu__emif1,
  2105. &omap54xx_mpu__emif2,
  2106. &omap54xx_l4_wkup__gpio1,
  2107. &omap54xx_l4_per__gpio2,
  2108. &omap54xx_l4_per__gpio3,
  2109. &omap54xx_l4_per__gpio4,
  2110. &omap54xx_l4_per__gpio5,
  2111. &omap54xx_l4_per__gpio6,
  2112. &omap54xx_l4_per__gpio7,
  2113. &omap54xx_l4_per__gpio8,
  2114. &omap54xx_l4_per__i2c1,
  2115. &omap54xx_l4_per__i2c2,
  2116. &omap54xx_l4_per__i2c3,
  2117. &omap54xx_l4_per__i2c4,
  2118. &omap54xx_l4_per__i2c5,
  2119. &omap54xx_l4_wkup__kbd,
  2120. &omap54xx_l4_cfg__mailbox,
  2121. &omap54xx_l4_abe__mcbsp1,
  2122. &omap54xx_l4_abe__mcbsp2,
  2123. &omap54xx_l4_abe__mcbsp3,
  2124. &omap54xx_l4_abe__mcpdm,
  2125. &omap54xx_l4_per__mcspi1,
  2126. &omap54xx_l4_per__mcspi2,
  2127. &omap54xx_l4_per__mcspi3,
  2128. &omap54xx_l4_per__mcspi4,
  2129. &omap54xx_l4_per__mmc1,
  2130. &omap54xx_l4_per__mmc2,
  2131. &omap54xx_l4_per__mmc3,
  2132. &omap54xx_l4_per__mmc4,
  2133. &omap54xx_l4_per__mmc5,
  2134. &omap54xx_l4_cfg__mpu,
  2135. &omap54xx_l4_cfg__spinlock,
  2136. &omap54xx_l4_cfg__ocp2scp1,
  2137. &omap54xx_l4_wkup__timer1,
  2138. &omap54xx_l4_per__timer2,
  2139. &omap54xx_l4_per__timer3,
  2140. &omap54xx_l4_per__timer4,
  2141. &omap54xx_l4_abe__timer5,
  2142. &omap54xx_l4_abe__timer6,
  2143. &omap54xx_l4_abe__timer7,
  2144. &omap54xx_l4_abe__timer8,
  2145. &omap54xx_l4_per__timer9,
  2146. &omap54xx_l4_per__timer10,
  2147. &omap54xx_l4_per__timer11,
  2148. &omap54xx_l4_per__uart1,
  2149. &omap54xx_l4_per__uart2,
  2150. &omap54xx_l4_per__uart3,
  2151. &omap54xx_l4_per__uart4,
  2152. &omap54xx_l4_per__uart5,
  2153. &omap54xx_l4_per__uart6,
  2154. &omap54xx_l4_cfg__usb_host_hs,
  2155. &omap54xx_l4_cfg__usb_tll_hs,
  2156. &omap54xx_l4_cfg__usb_otg_ss,
  2157. &omap54xx_l4_wkup__wd_timer2,
  2158. NULL,
  2159. };
  2160. int __init omap54xx_hwmod_init(void)
  2161. {
  2162. omap_hwmod_init();
  2163. return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs);
  2164. }