omap_hwmod_7xx_data.c 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723
  1. /*
  2. * Hardware modules present on the DRA7xx 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_7xx.h"
  30. #include "cm2_7xx.h"
  31. #include "prm7xx.h"
  32. #include "i2c.h"
  33. #include "mmc.h"
  34. #include "wd_timer.h"
  35. /* Base offset for all DRA7XX interrupts external to MPUSS */
  36. #define DRA7XX_IRQ_GIC_START 32
  37. /* Base offset for all DRA7XX dma requests */
  38. #define DRA7XX_DMA_REQ_START 1
  39. /*
  40. * IP blocks
  41. */
  42. /*
  43. * 'l3' class
  44. * instance(s): l3_instr, l3_main_1, l3_main_2
  45. */
  46. static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
  47. .name = "l3",
  48. };
  49. /* l3_instr */
  50. static struct omap_hwmod dra7xx_l3_instr_hwmod = {
  51. .name = "l3_instr",
  52. .class = &dra7xx_l3_hwmod_class,
  53. .clkdm_name = "l3instr_clkdm",
  54. .prcm = {
  55. .omap4 = {
  56. .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  57. .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  58. .modulemode = MODULEMODE_HWCTRL,
  59. },
  60. },
  61. };
  62. /* l3_main_1 */
  63. static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
  64. .name = "l3_main_1",
  65. .class = &dra7xx_l3_hwmod_class,
  66. .clkdm_name = "l3main1_clkdm",
  67. .prcm = {
  68. .omap4 = {
  69. .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
  70. .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
  71. },
  72. },
  73. };
  74. /* l3_main_2 */
  75. static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
  76. .name = "l3_main_2",
  77. .class = &dra7xx_l3_hwmod_class,
  78. .clkdm_name = "l3instr_clkdm",
  79. .prcm = {
  80. .omap4 = {
  81. .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
  82. .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
  83. .modulemode = MODULEMODE_HWCTRL,
  84. },
  85. },
  86. };
  87. /*
  88. * 'l4' class
  89. * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
  90. */
  91. static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
  92. .name = "l4",
  93. };
  94. /* l4_cfg */
  95. static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
  96. .name = "l4_cfg",
  97. .class = &dra7xx_l4_hwmod_class,
  98. .clkdm_name = "l4cfg_clkdm",
  99. .prcm = {
  100. .omap4 = {
  101. .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  102. .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  103. },
  104. },
  105. };
  106. /* l4_per1 */
  107. static struct omap_hwmod dra7xx_l4_per1_hwmod = {
  108. .name = "l4_per1",
  109. .class = &dra7xx_l4_hwmod_class,
  110. .clkdm_name = "l4per_clkdm",
  111. .prcm = {
  112. .omap4 = {
  113. .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
  114. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  115. },
  116. },
  117. };
  118. /* l4_per2 */
  119. static struct omap_hwmod dra7xx_l4_per2_hwmod = {
  120. .name = "l4_per2",
  121. .class = &dra7xx_l4_hwmod_class,
  122. .clkdm_name = "l4per2_clkdm",
  123. .prcm = {
  124. .omap4 = {
  125. .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
  126. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  127. },
  128. },
  129. };
  130. /* l4_per3 */
  131. static struct omap_hwmod dra7xx_l4_per3_hwmod = {
  132. .name = "l4_per3",
  133. .class = &dra7xx_l4_hwmod_class,
  134. .clkdm_name = "l4per3_clkdm",
  135. .prcm = {
  136. .omap4 = {
  137. .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
  138. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  139. },
  140. },
  141. };
  142. /* l4_wkup */
  143. static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
  144. .name = "l4_wkup",
  145. .class = &dra7xx_l4_hwmod_class,
  146. .clkdm_name = "wkupaon_clkdm",
  147. .prcm = {
  148. .omap4 = {
  149. .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
  150. .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
  151. },
  152. },
  153. };
  154. /*
  155. * 'atl' class
  156. *
  157. */
  158. static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
  159. .name = "atl",
  160. };
  161. /* atl */
  162. static struct omap_hwmod dra7xx_atl_hwmod = {
  163. .name = "atl",
  164. .class = &dra7xx_atl_hwmod_class,
  165. .clkdm_name = "atl_clkdm",
  166. .main_clk = "atl_gfclk_mux",
  167. .prcm = {
  168. .omap4 = {
  169. .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
  170. .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
  171. .modulemode = MODULEMODE_SWCTRL,
  172. },
  173. },
  174. };
  175. /*
  176. * 'bb2d' class
  177. *
  178. */
  179. static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
  180. .name = "bb2d",
  181. };
  182. /* bb2d */
  183. static struct omap_hwmod dra7xx_bb2d_hwmod = {
  184. .name = "bb2d",
  185. .class = &dra7xx_bb2d_hwmod_class,
  186. .clkdm_name = "dss_clkdm",
  187. .main_clk = "dpll_core_h24x2_ck",
  188. .prcm = {
  189. .omap4 = {
  190. .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
  191. .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
  192. .modulemode = MODULEMODE_SWCTRL,
  193. },
  194. },
  195. };
  196. /*
  197. * 'counter' class
  198. *
  199. */
  200. static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
  201. .rev_offs = 0x0000,
  202. .sysc_offs = 0x0010,
  203. .sysc_flags = SYSC_HAS_SIDLEMODE,
  204. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  205. SIDLE_SMART_WKUP),
  206. .sysc_fields = &omap_hwmod_sysc_type1,
  207. };
  208. static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
  209. .name = "counter",
  210. .sysc = &dra7xx_counter_sysc,
  211. };
  212. /* counter_32k */
  213. static struct omap_hwmod dra7xx_counter_32k_hwmod = {
  214. .name = "counter_32k",
  215. .class = &dra7xx_counter_hwmod_class,
  216. .clkdm_name = "wkupaon_clkdm",
  217. .flags = HWMOD_SWSUP_SIDLE,
  218. .main_clk = "wkupaon_iclk_mux",
  219. .prcm = {
  220. .omap4 = {
  221. .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
  222. .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
  223. },
  224. },
  225. };
  226. /*
  227. * 'ctrl_module' class
  228. *
  229. */
  230. static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
  231. .name = "ctrl_module",
  232. };
  233. /* ctrl_module_wkup */
  234. static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
  235. .name = "ctrl_module_wkup",
  236. .class = &dra7xx_ctrl_module_hwmod_class,
  237. .clkdm_name = "wkupaon_clkdm",
  238. .prcm = {
  239. .omap4 = {
  240. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  241. },
  242. },
  243. };
  244. /*
  245. * 'dcan' class
  246. *
  247. */
  248. static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
  249. .name = "dcan",
  250. };
  251. /* dcan1 */
  252. static struct omap_hwmod dra7xx_dcan1_hwmod = {
  253. .name = "dcan1",
  254. .class = &dra7xx_dcan_hwmod_class,
  255. .clkdm_name = "wkupaon_clkdm",
  256. .main_clk = "dcan1_sys_clk_mux",
  257. .prcm = {
  258. .omap4 = {
  259. .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
  260. .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
  261. .modulemode = MODULEMODE_SWCTRL,
  262. },
  263. },
  264. };
  265. /* dcan2 */
  266. static struct omap_hwmod dra7xx_dcan2_hwmod = {
  267. .name = "dcan2",
  268. .class = &dra7xx_dcan_hwmod_class,
  269. .clkdm_name = "l4per2_clkdm",
  270. .main_clk = "sys_clkin1",
  271. .prcm = {
  272. .omap4 = {
  273. .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
  274. .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
  275. .modulemode = MODULEMODE_SWCTRL,
  276. },
  277. },
  278. };
  279. /*
  280. * 'dma' class
  281. *
  282. */
  283. static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
  284. .rev_offs = 0x0000,
  285. .sysc_offs = 0x002c,
  286. .syss_offs = 0x0028,
  287. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  288. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  289. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  290. SYSS_HAS_RESET_STATUS),
  291. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  292. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  293. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  294. .sysc_fields = &omap_hwmod_sysc_type1,
  295. };
  296. static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
  297. .name = "dma",
  298. .sysc = &dra7xx_dma_sysc,
  299. };
  300. /* dma dev_attr */
  301. static struct omap_dma_dev_attr dma_dev_attr = {
  302. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  303. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  304. .lch_count = 32,
  305. };
  306. /* dma_system */
  307. static struct omap_hwmod_irq_info dra7xx_dma_system_irqs[] = {
  308. { .name = "0", .irq = 12 + DRA7XX_IRQ_GIC_START },
  309. { .name = "1", .irq = 13 + DRA7XX_IRQ_GIC_START },
  310. { .name = "2", .irq = 14 + DRA7XX_IRQ_GIC_START },
  311. { .name = "3", .irq = 15 + DRA7XX_IRQ_GIC_START },
  312. { .irq = -1 }
  313. };
  314. static struct omap_hwmod dra7xx_dma_system_hwmod = {
  315. .name = "dma_system",
  316. .class = &dra7xx_dma_hwmod_class,
  317. .clkdm_name = "dma_clkdm",
  318. .mpu_irqs = dra7xx_dma_system_irqs,
  319. .main_clk = "l3_iclk_div",
  320. .prcm = {
  321. .omap4 = {
  322. .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  323. .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  324. },
  325. },
  326. .dev_attr = &dma_dev_attr,
  327. };
  328. /*
  329. * 'dss' class
  330. *
  331. */
  332. static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
  333. .rev_offs = 0x0000,
  334. .syss_offs = 0x0014,
  335. .sysc_flags = SYSS_HAS_RESET_STATUS,
  336. };
  337. static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
  338. .name = "dss",
  339. .sysc = &dra7xx_dss_sysc,
  340. .reset = omap_dss_reset,
  341. };
  342. /* dss */
  343. static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
  344. { .dma_req = 75 + DRA7XX_DMA_REQ_START },
  345. { .dma_req = -1 }
  346. };
  347. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  348. { .role = "dss_clk", .clk = "dss_dss_clk" },
  349. { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
  350. { .role = "32khz_clk", .clk = "dss_32khz_clk" },
  351. { .role = "video2_clk", .clk = "dss_video2_clk" },
  352. { .role = "video1_clk", .clk = "dss_video1_clk" },
  353. { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
  354. };
  355. static struct omap_hwmod dra7xx_dss_hwmod = {
  356. .name = "dss_core",
  357. .class = &dra7xx_dss_hwmod_class,
  358. .clkdm_name = "dss_clkdm",
  359. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  360. .sdma_reqs = dra7xx_dss_sdma_reqs,
  361. .main_clk = "dss_dss_clk",
  362. .prcm = {
  363. .omap4 = {
  364. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  365. .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
  366. .modulemode = MODULEMODE_SWCTRL,
  367. },
  368. },
  369. .opt_clks = dss_opt_clks,
  370. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  371. };
  372. /*
  373. * 'dispc' class
  374. * display controller
  375. */
  376. static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
  377. .rev_offs = 0x0000,
  378. .sysc_offs = 0x0010,
  379. .syss_offs = 0x0014,
  380. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  381. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  382. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  383. SYSS_HAS_RESET_STATUS),
  384. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  385. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  386. .sysc_fields = &omap_hwmod_sysc_type1,
  387. };
  388. static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
  389. .name = "dispc",
  390. .sysc = &dra7xx_dispc_sysc,
  391. };
  392. /* dss_dispc */
  393. /* dss_dispc dev_attr */
  394. static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  395. .has_framedonetv_irq = 1,
  396. .manager_count = 4,
  397. };
  398. static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
  399. .name = "dss_dispc",
  400. .class = &dra7xx_dispc_hwmod_class,
  401. .clkdm_name = "dss_clkdm",
  402. .main_clk = "dss_dss_clk",
  403. .prcm = {
  404. .omap4 = {
  405. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  406. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  407. },
  408. },
  409. .dev_attr = &dss_dispc_dev_attr,
  410. };
  411. /*
  412. * 'hdmi' class
  413. * hdmi controller
  414. */
  415. static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
  416. .rev_offs = 0x0000,
  417. .sysc_offs = 0x0010,
  418. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  419. SYSC_HAS_SOFTRESET),
  420. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  421. SIDLE_SMART_WKUP),
  422. .sysc_fields = &omap_hwmod_sysc_type2,
  423. };
  424. static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
  425. .name = "hdmi",
  426. .sysc = &dra7xx_hdmi_sysc,
  427. };
  428. /* dss_hdmi */
  429. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  430. { .role = "sys_clk", .clk = "dss_hdmi_clk" },
  431. };
  432. static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
  433. .name = "dss_hdmi",
  434. .class = &dra7xx_hdmi_hwmod_class,
  435. .clkdm_name = "dss_clkdm",
  436. .main_clk = "dss_48mhz_clk",
  437. .prcm = {
  438. .omap4 = {
  439. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  440. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  441. },
  442. },
  443. .opt_clks = dss_hdmi_opt_clks,
  444. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  445. };
  446. /*
  447. * 'elm' class
  448. *
  449. */
  450. static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
  451. .rev_offs = 0x0000,
  452. .sysc_offs = 0x0010,
  453. .syss_offs = 0x0014,
  454. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  455. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  456. SYSS_HAS_RESET_STATUS),
  457. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  458. SIDLE_SMART_WKUP),
  459. .sysc_fields = &omap_hwmod_sysc_type1,
  460. };
  461. static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
  462. .name = "elm",
  463. .sysc = &dra7xx_elm_sysc,
  464. };
  465. /* elm */
  466. static struct omap_hwmod dra7xx_elm_hwmod = {
  467. .name = "elm",
  468. .class = &dra7xx_elm_hwmod_class,
  469. .clkdm_name = "l4per_clkdm",
  470. .main_clk = "l3_iclk_div",
  471. .prcm = {
  472. .omap4 = {
  473. .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
  474. .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
  475. },
  476. },
  477. };
  478. /*
  479. * 'gpio' class
  480. *
  481. */
  482. static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
  483. .rev_offs = 0x0000,
  484. .sysc_offs = 0x0010,
  485. .syss_offs = 0x0114,
  486. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  487. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  488. SYSS_HAS_RESET_STATUS),
  489. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  490. SIDLE_SMART_WKUP),
  491. .sysc_fields = &omap_hwmod_sysc_type1,
  492. };
  493. static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
  494. .name = "gpio",
  495. .sysc = &dra7xx_gpio_sysc,
  496. .rev = 2,
  497. };
  498. /* gpio dev_attr */
  499. static struct omap_gpio_dev_attr gpio_dev_attr = {
  500. .bank_width = 32,
  501. .dbck_flag = true,
  502. };
  503. /* gpio1 */
  504. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  505. { .role = "dbclk", .clk = "gpio1_dbclk" },
  506. };
  507. static struct omap_hwmod dra7xx_gpio1_hwmod = {
  508. .name = "gpio1",
  509. .class = &dra7xx_gpio_hwmod_class,
  510. .clkdm_name = "wkupaon_clkdm",
  511. .main_clk = "wkupaon_iclk_mux",
  512. .prcm = {
  513. .omap4 = {
  514. .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  515. .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  516. .modulemode = MODULEMODE_HWCTRL,
  517. },
  518. },
  519. .opt_clks = gpio1_opt_clks,
  520. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  521. .dev_attr = &gpio_dev_attr,
  522. };
  523. /* gpio2 */
  524. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  525. { .role = "dbclk", .clk = "gpio2_dbclk" },
  526. };
  527. static struct omap_hwmod dra7xx_gpio2_hwmod = {
  528. .name = "gpio2",
  529. .class = &dra7xx_gpio_hwmod_class,
  530. .clkdm_name = "l4per_clkdm",
  531. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  532. .main_clk = "l3_iclk_div",
  533. .prcm = {
  534. .omap4 = {
  535. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  536. .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  537. .modulemode = MODULEMODE_HWCTRL,
  538. },
  539. },
  540. .opt_clks = gpio2_opt_clks,
  541. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  542. .dev_attr = &gpio_dev_attr,
  543. };
  544. /* gpio3 */
  545. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  546. { .role = "dbclk", .clk = "gpio3_dbclk" },
  547. };
  548. static struct omap_hwmod dra7xx_gpio3_hwmod = {
  549. .name = "gpio3",
  550. .class = &dra7xx_gpio_hwmod_class,
  551. .clkdm_name = "l4per_clkdm",
  552. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  553. .main_clk = "l3_iclk_div",
  554. .prcm = {
  555. .omap4 = {
  556. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  557. .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  558. .modulemode = MODULEMODE_HWCTRL,
  559. },
  560. },
  561. .opt_clks = gpio3_opt_clks,
  562. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  563. .dev_attr = &gpio_dev_attr,
  564. };
  565. /* gpio4 */
  566. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  567. { .role = "dbclk", .clk = "gpio4_dbclk" },
  568. };
  569. static struct omap_hwmod dra7xx_gpio4_hwmod = {
  570. .name = "gpio4",
  571. .class = &dra7xx_gpio_hwmod_class,
  572. .clkdm_name = "l4per_clkdm",
  573. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  574. .main_clk = "l3_iclk_div",
  575. .prcm = {
  576. .omap4 = {
  577. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  578. .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  579. .modulemode = MODULEMODE_HWCTRL,
  580. },
  581. },
  582. .opt_clks = gpio4_opt_clks,
  583. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  584. .dev_attr = &gpio_dev_attr,
  585. };
  586. /* gpio5 */
  587. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  588. { .role = "dbclk", .clk = "gpio5_dbclk" },
  589. };
  590. static struct omap_hwmod dra7xx_gpio5_hwmod = {
  591. .name = "gpio5",
  592. .class = &dra7xx_gpio_hwmod_class,
  593. .clkdm_name = "l4per_clkdm",
  594. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  595. .main_clk = "l3_iclk_div",
  596. .prcm = {
  597. .omap4 = {
  598. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  599. .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  600. .modulemode = MODULEMODE_HWCTRL,
  601. },
  602. },
  603. .opt_clks = gpio5_opt_clks,
  604. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  605. .dev_attr = &gpio_dev_attr,
  606. };
  607. /* gpio6 */
  608. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  609. { .role = "dbclk", .clk = "gpio6_dbclk" },
  610. };
  611. static struct omap_hwmod dra7xx_gpio6_hwmod = {
  612. .name = "gpio6",
  613. .class = &dra7xx_gpio_hwmod_class,
  614. .clkdm_name = "l4per_clkdm",
  615. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  616. .main_clk = "l3_iclk_div",
  617. .prcm = {
  618. .omap4 = {
  619. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  620. .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  621. .modulemode = MODULEMODE_HWCTRL,
  622. },
  623. },
  624. .opt_clks = gpio6_opt_clks,
  625. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  626. .dev_attr = &gpio_dev_attr,
  627. };
  628. /* gpio7 */
  629. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  630. { .role = "dbclk", .clk = "gpio7_dbclk" },
  631. };
  632. static struct omap_hwmod dra7xx_gpio7_hwmod = {
  633. .name = "gpio7",
  634. .class = &dra7xx_gpio_hwmod_class,
  635. .clkdm_name = "l4per_clkdm",
  636. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  637. .main_clk = "l3_iclk_div",
  638. .prcm = {
  639. .omap4 = {
  640. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  641. .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  642. .modulemode = MODULEMODE_HWCTRL,
  643. },
  644. },
  645. .opt_clks = gpio7_opt_clks,
  646. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  647. .dev_attr = &gpio_dev_attr,
  648. };
  649. /* gpio8 */
  650. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  651. { .role = "dbclk", .clk = "gpio8_dbclk" },
  652. };
  653. static struct omap_hwmod dra7xx_gpio8_hwmod = {
  654. .name = "gpio8",
  655. .class = &dra7xx_gpio_hwmod_class,
  656. .clkdm_name = "l4per_clkdm",
  657. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  658. .main_clk = "l3_iclk_div",
  659. .prcm = {
  660. .omap4 = {
  661. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  662. .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  663. .modulemode = MODULEMODE_HWCTRL,
  664. },
  665. },
  666. .opt_clks = gpio8_opt_clks,
  667. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  668. .dev_attr = &gpio_dev_attr,
  669. };
  670. /*
  671. * 'gpmc' class
  672. *
  673. */
  674. static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
  675. .rev_offs = 0x0000,
  676. .sysc_offs = 0x0010,
  677. .syss_offs = 0x0014,
  678. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  679. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  680. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  681. SIDLE_SMART_WKUP),
  682. .sysc_fields = &omap_hwmod_sysc_type1,
  683. };
  684. static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
  685. .name = "gpmc",
  686. .sysc = &dra7xx_gpmc_sysc,
  687. };
  688. /* gpmc */
  689. static struct omap_hwmod dra7xx_gpmc_hwmod = {
  690. .name = "gpmc",
  691. .class = &dra7xx_gpmc_hwmod_class,
  692. .clkdm_name = "l3main1_clkdm",
  693. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  694. .main_clk = "l3_iclk_div",
  695. .prcm = {
  696. .omap4 = {
  697. .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
  698. .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
  699. .modulemode = MODULEMODE_HWCTRL,
  700. },
  701. },
  702. };
  703. /*
  704. * 'hdq1w' class
  705. *
  706. */
  707. static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
  708. .rev_offs = 0x0000,
  709. .sysc_offs = 0x0014,
  710. .syss_offs = 0x0018,
  711. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  712. SYSS_HAS_RESET_STATUS),
  713. .sysc_fields = &omap_hwmod_sysc_type1,
  714. };
  715. static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
  716. .name = "hdq1w",
  717. .sysc = &dra7xx_hdq1w_sysc,
  718. };
  719. /* hdq1w */
  720. static struct omap_hwmod dra7xx_hdq1w_hwmod = {
  721. .name = "hdq1w",
  722. .class = &dra7xx_hdq1w_hwmod_class,
  723. .clkdm_name = "l4per_clkdm",
  724. .flags = HWMOD_INIT_NO_RESET,
  725. .main_clk = "func_12m_fclk",
  726. .prcm = {
  727. .omap4 = {
  728. .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  729. .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  730. .modulemode = MODULEMODE_SWCTRL,
  731. },
  732. },
  733. };
  734. /*
  735. * 'i2c' class
  736. *
  737. */
  738. static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
  739. .sysc_offs = 0x0010,
  740. .syss_offs = 0x0090,
  741. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  742. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  743. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  744. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  745. SIDLE_SMART_WKUP),
  746. .clockact = CLOCKACT_TEST_ICLK,
  747. .sysc_fields = &omap_hwmod_sysc_type1,
  748. };
  749. static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
  750. .name = "i2c",
  751. .sysc = &dra7xx_i2c_sysc,
  752. .reset = &omap_i2c_reset,
  753. .rev = OMAP_I2C_IP_VERSION_2,
  754. };
  755. /* i2c dev_attr */
  756. static struct omap_i2c_dev_attr i2c_dev_attr = {
  757. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  758. };
  759. /* i2c1 */
  760. static struct omap_hwmod dra7xx_i2c1_hwmod = {
  761. .name = "i2c1",
  762. .class = &dra7xx_i2c_hwmod_class,
  763. .clkdm_name = "l4per_clkdm",
  764. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  765. .main_clk = "func_96m_fclk",
  766. .prcm = {
  767. .omap4 = {
  768. .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  769. .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  770. .modulemode = MODULEMODE_SWCTRL,
  771. },
  772. },
  773. .dev_attr = &i2c_dev_attr,
  774. };
  775. /* i2c2 */
  776. static struct omap_hwmod dra7xx_i2c2_hwmod = {
  777. .name = "i2c2",
  778. .class = &dra7xx_i2c_hwmod_class,
  779. .clkdm_name = "l4per_clkdm",
  780. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  781. .main_clk = "func_96m_fclk",
  782. .prcm = {
  783. .omap4 = {
  784. .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  785. .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  786. .modulemode = MODULEMODE_SWCTRL,
  787. },
  788. },
  789. .dev_attr = &i2c_dev_attr,
  790. };
  791. /* i2c3 */
  792. static struct omap_hwmod dra7xx_i2c3_hwmod = {
  793. .name = "i2c3",
  794. .class = &dra7xx_i2c_hwmod_class,
  795. .clkdm_name = "l4per_clkdm",
  796. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  797. .main_clk = "func_96m_fclk",
  798. .prcm = {
  799. .omap4 = {
  800. .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  801. .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  802. .modulemode = MODULEMODE_SWCTRL,
  803. },
  804. },
  805. .dev_attr = &i2c_dev_attr,
  806. };
  807. /* i2c4 */
  808. static struct omap_hwmod dra7xx_i2c4_hwmod = {
  809. .name = "i2c4",
  810. .class = &dra7xx_i2c_hwmod_class,
  811. .clkdm_name = "l4per_clkdm",
  812. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  813. .main_clk = "func_96m_fclk",
  814. .prcm = {
  815. .omap4 = {
  816. .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  817. .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  818. .modulemode = MODULEMODE_SWCTRL,
  819. },
  820. },
  821. .dev_attr = &i2c_dev_attr,
  822. };
  823. /* i2c5 */
  824. static struct omap_hwmod dra7xx_i2c5_hwmod = {
  825. .name = "i2c5",
  826. .class = &dra7xx_i2c_hwmod_class,
  827. .clkdm_name = "ipu_clkdm",
  828. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  829. .main_clk = "func_96m_fclk",
  830. .prcm = {
  831. .omap4 = {
  832. .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
  833. .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
  834. .modulemode = MODULEMODE_SWCTRL,
  835. },
  836. },
  837. .dev_attr = &i2c_dev_attr,
  838. };
  839. /*
  840. * 'mcspi' class
  841. *
  842. */
  843. static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
  844. .rev_offs = 0x0000,
  845. .sysc_offs = 0x0010,
  846. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  847. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  848. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  849. SIDLE_SMART_WKUP),
  850. .sysc_fields = &omap_hwmod_sysc_type2,
  851. };
  852. static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
  853. .name = "mcspi",
  854. .sysc = &dra7xx_mcspi_sysc,
  855. .rev = OMAP4_MCSPI_REV,
  856. };
  857. /* mcspi1 */
  858. /* mcspi1 dev_attr */
  859. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  860. .num_chipselect = 4,
  861. };
  862. static struct omap_hwmod dra7xx_mcspi1_hwmod = {
  863. .name = "mcspi1",
  864. .class = &dra7xx_mcspi_hwmod_class,
  865. .clkdm_name = "l4per_clkdm",
  866. .main_clk = "func_48m_fclk",
  867. .prcm = {
  868. .omap4 = {
  869. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  870. .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  871. .modulemode = MODULEMODE_SWCTRL,
  872. },
  873. },
  874. .dev_attr = &mcspi1_dev_attr,
  875. };
  876. /* mcspi2 */
  877. /* mcspi2 dev_attr */
  878. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  879. .num_chipselect = 2,
  880. };
  881. static struct omap_hwmod dra7xx_mcspi2_hwmod = {
  882. .name = "mcspi2",
  883. .class = &dra7xx_mcspi_hwmod_class,
  884. .clkdm_name = "l4per_clkdm",
  885. .main_clk = "func_48m_fclk",
  886. .prcm = {
  887. .omap4 = {
  888. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  889. .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  890. .modulemode = MODULEMODE_SWCTRL,
  891. },
  892. },
  893. .dev_attr = &mcspi2_dev_attr,
  894. };
  895. /* mcspi3 */
  896. /* mcspi3 dev_attr */
  897. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  898. .num_chipselect = 2,
  899. };
  900. static struct omap_hwmod dra7xx_mcspi3_hwmod = {
  901. .name = "mcspi3",
  902. .class = &dra7xx_mcspi_hwmod_class,
  903. .clkdm_name = "l4per_clkdm",
  904. .main_clk = "func_48m_fclk",
  905. .prcm = {
  906. .omap4 = {
  907. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  908. .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  909. .modulemode = MODULEMODE_SWCTRL,
  910. },
  911. },
  912. .dev_attr = &mcspi3_dev_attr,
  913. };
  914. /* mcspi4 */
  915. /* mcspi4 dev_attr */
  916. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  917. .num_chipselect = 1,
  918. };
  919. static struct omap_hwmod dra7xx_mcspi4_hwmod = {
  920. .name = "mcspi4",
  921. .class = &dra7xx_mcspi_hwmod_class,
  922. .clkdm_name = "l4per_clkdm",
  923. .main_clk = "func_48m_fclk",
  924. .prcm = {
  925. .omap4 = {
  926. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  927. .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  928. .modulemode = MODULEMODE_SWCTRL,
  929. },
  930. },
  931. .dev_attr = &mcspi4_dev_attr,
  932. };
  933. /*
  934. * 'mmc' class
  935. *
  936. */
  937. static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
  938. .rev_offs = 0x0000,
  939. .sysc_offs = 0x0010,
  940. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  941. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  942. SYSC_HAS_SOFTRESET),
  943. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  944. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  945. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  946. .sysc_fields = &omap_hwmod_sysc_type2,
  947. };
  948. static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
  949. .name = "mmc",
  950. .sysc = &dra7xx_mmc_sysc,
  951. };
  952. /* mmc1 */
  953. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  954. { .role = "clk32k", .clk = "mmc1_clk32k" },
  955. };
  956. /* mmc1 dev_attr */
  957. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  958. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  959. };
  960. static struct omap_hwmod dra7xx_mmc1_hwmod = {
  961. .name = "mmc1",
  962. .class = &dra7xx_mmc_hwmod_class,
  963. .clkdm_name = "l3init_clkdm",
  964. .main_clk = "mmc1_fclk_div",
  965. .prcm = {
  966. .omap4 = {
  967. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  968. .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  969. .modulemode = MODULEMODE_SWCTRL,
  970. },
  971. },
  972. .opt_clks = mmc1_opt_clks,
  973. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  974. .dev_attr = &mmc1_dev_attr,
  975. };
  976. /* mmc2 */
  977. static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
  978. { .role = "clk32k", .clk = "mmc2_clk32k" },
  979. };
  980. static struct omap_hwmod dra7xx_mmc2_hwmod = {
  981. .name = "mmc2",
  982. .class = &dra7xx_mmc_hwmod_class,
  983. .clkdm_name = "l3init_clkdm",
  984. .main_clk = "mmc2_fclk_div",
  985. .prcm = {
  986. .omap4 = {
  987. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  988. .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  989. .modulemode = MODULEMODE_SWCTRL,
  990. },
  991. },
  992. .opt_clks = mmc2_opt_clks,
  993. .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
  994. };
  995. /* mmc3 */
  996. static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
  997. { .role = "clk32k", .clk = "mmc3_clk32k" },
  998. };
  999. static struct omap_hwmod dra7xx_mmc3_hwmod = {
  1000. .name = "mmc3",
  1001. .class = &dra7xx_mmc_hwmod_class,
  1002. .clkdm_name = "l4per_clkdm",
  1003. .main_clk = "mmc3_gfclk_div",
  1004. .prcm = {
  1005. .omap4 = {
  1006. .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  1007. .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  1008. .modulemode = MODULEMODE_SWCTRL,
  1009. },
  1010. },
  1011. .opt_clks = mmc3_opt_clks,
  1012. .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
  1013. };
  1014. /* mmc4 */
  1015. static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
  1016. { .role = "clk32k", .clk = "mmc4_clk32k" },
  1017. };
  1018. static struct omap_hwmod dra7xx_mmc4_hwmod = {
  1019. .name = "mmc4",
  1020. .class = &dra7xx_mmc_hwmod_class,
  1021. .clkdm_name = "l4per_clkdm",
  1022. .main_clk = "mmc4_gfclk_div",
  1023. .prcm = {
  1024. .omap4 = {
  1025. .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  1026. .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  1027. .modulemode = MODULEMODE_SWCTRL,
  1028. },
  1029. },
  1030. .opt_clks = mmc4_opt_clks,
  1031. .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
  1032. };
  1033. /*
  1034. * 'mpu' class
  1035. *
  1036. */
  1037. static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
  1038. .name = "mpu",
  1039. };
  1040. /* mpu */
  1041. static struct omap_hwmod dra7xx_mpu_hwmod = {
  1042. .name = "mpu",
  1043. .class = &dra7xx_mpu_hwmod_class,
  1044. .clkdm_name = "mpu_clkdm",
  1045. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  1046. .main_clk = "dpll_mpu_m2_ck",
  1047. .prcm = {
  1048. .omap4 = {
  1049. .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1050. .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1051. },
  1052. },
  1053. };
  1054. /*
  1055. * 'ocp2scp' class
  1056. *
  1057. */
  1058. static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
  1059. .rev_offs = 0x0000,
  1060. .sysc_offs = 0x0010,
  1061. .syss_offs = 0x0014,
  1062. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1063. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1064. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1065. SIDLE_SMART_WKUP),
  1066. .sysc_fields = &omap_hwmod_sysc_type1,
  1067. };
  1068. static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
  1069. .name = "ocp2scp",
  1070. .sysc = &dra7xx_ocp2scp_sysc,
  1071. };
  1072. /* ocp2scp1 */
  1073. static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
  1074. .name = "ocp2scp1",
  1075. .class = &dra7xx_ocp2scp_hwmod_class,
  1076. .clkdm_name = "l3init_clkdm",
  1077. .main_clk = "l4_root_clk_div",
  1078. .prcm = {
  1079. .omap4 = {
  1080. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1081. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1082. .modulemode = MODULEMODE_HWCTRL,
  1083. },
  1084. },
  1085. };
  1086. /*
  1087. * 'qspi' class
  1088. *
  1089. */
  1090. static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
  1091. .sysc_offs = 0x0010,
  1092. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1093. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1094. SIDLE_SMART_WKUP),
  1095. .sysc_fields = &omap_hwmod_sysc_type2,
  1096. };
  1097. static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
  1098. .name = "qspi",
  1099. .sysc = &dra7xx_qspi_sysc,
  1100. };
  1101. /* qspi */
  1102. static struct omap_hwmod dra7xx_qspi_hwmod = {
  1103. .name = "qspi",
  1104. .class = &dra7xx_qspi_hwmod_class,
  1105. .clkdm_name = "l4per2_clkdm",
  1106. .main_clk = "qspi_gfclk_div",
  1107. .prcm = {
  1108. .omap4 = {
  1109. .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
  1110. .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
  1111. .modulemode = MODULEMODE_SWCTRL,
  1112. },
  1113. },
  1114. };
  1115. /*
  1116. * 'sata' class
  1117. *
  1118. */
  1119. static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
  1120. .sysc_offs = 0x0000,
  1121. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1122. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1123. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1124. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1125. .sysc_fields = &omap_hwmod_sysc_type2,
  1126. };
  1127. static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
  1128. .name = "sata",
  1129. .sysc = &dra7xx_sata_sysc,
  1130. };
  1131. /* sata */
  1132. static struct omap_hwmod_opt_clk sata_opt_clks[] = {
  1133. { .role = "ref_clk", .clk = "sata_ref_clk" },
  1134. };
  1135. static struct omap_hwmod dra7xx_sata_hwmod = {
  1136. .name = "sata",
  1137. .class = &dra7xx_sata_hwmod_class,
  1138. .clkdm_name = "l3init_clkdm",
  1139. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1140. .main_clk = "func_48m_fclk",
  1141. .prcm = {
  1142. .omap4 = {
  1143. .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  1144. .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  1145. .modulemode = MODULEMODE_SWCTRL,
  1146. },
  1147. },
  1148. .opt_clks = sata_opt_clks,
  1149. .opt_clks_cnt = ARRAY_SIZE(sata_opt_clks),
  1150. };
  1151. /*
  1152. * 'smartreflex' class
  1153. *
  1154. */
  1155. /* The IP is not compliant to type1 / type2 scheme */
  1156. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1157. .sidle_shift = 24,
  1158. .enwkup_shift = 26,
  1159. };
  1160. static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
  1161. .sysc_offs = 0x0038,
  1162. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1163. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1164. SIDLE_SMART_WKUP),
  1165. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1166. };
  1167. static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
  1168. .name = "smartreflex",
  1169. .sysc = &dra7xx_smartreflex_sysc,
  1170. .rev = 2,
  1171. };
  1172. /* smartreflex_core */
  1173. /* smartreflex_core dev_attr */
  1174. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  1175. .sensor_voltdm_name = "core",
  1176. };
  1177. static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
  1178. .name = "smartreflex_core",
  1179. .class = &dra7xx_smartreflex_hwmod_class,
  1180. .clkdm_name = "coreaon_clkdm",
  1181. .main_clk = "wkupaon_iclk_mux",
  1182. .prcm = {
  1183. .omap4 = {
  1184. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
  1185. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
  1186. .modulemode = MODULEMODE_SWCTRL,
  1187. },
  1188. },
  1189. .dev_attr = &smartreflex_core_dev_attr,
  1190. };
  1191. /* smartreflex_mpu */
  1192. /* smartreflex_mpu dev_attr */
  1193. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  1194. .sensor_voltdm_name = "mpu",
  1195. };
  1196. static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
  1197. .name = "smartreflex_mpu",
  1198. .class = &dra7xx_smartreflex_hwmod_class,
  1199. .clkdm_name = "coreaon_clkdm",
  1200. .main_clk = "wkupaon_iclk_mux",
  1201. .prcm = {
  1202. .omap4 = {
  1203. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
  1204. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
  1205. .modulemode = MODULEMODE_SWCTRL,
  1206. },
  1207. },
  1208. .dev_attr = &smartreflex_mpu_dev_attr,
  1209. };
  1210. /*
  1211. * 'spinlock' class
  1212. *
  1213. */
  1214. static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
  1215. .rev_offs = 0x0000,
  1216. .sysc_offs = 0x0010,
  1217. .syss_offs = 0x0014,
  1218. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1219. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1220. SYSS_HAS_RESET_STATUS),
  1221. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1222. .sysc_fields = &omap_hwmod_sysc_type1,
  1223. };
  1224. static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
  1225. .name = "spinlock",
  1226. .sysc = &dra7xx_spinlock_sysc,
  1227. };
  1228. /* spinlock */
  1229. static struct omap_hwmod dra7xx_spinlock_hwmod = {
  1230. .name = "spinlock",
  1231. .class = &dra7xx_spinlock_hwmod_class,
  1232. .clkdm_name = "l4cfg_clkdm",
  1233. .main_clk = "l3_iclk_div",
  1234. .prcm = {
  1235. .omap4 = {
  1236. .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1237. .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1238. },
  1239. },
  1240. };
  1241. /*
  1242. * 'timer' class
  1243. *
  1244. * This class contains several variants: ['timer_1ms', 'timer_secure',
  1245. * 'timer']
  1246. */
  1247. static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
  1248. .rev_offs = 0x0000,
  1249. .sysc_offs = 0x0010,
  1250. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1251. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1252. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1253. SIDLE_SMART_WKUP),
  1254. .sysc_fields = &omap_hwmod_sysc_type2,
  1255. };
  1256. static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
  1257. .name = "timer",
  1258. .sysc = &dra7xx_timer_1ms_sysc,
  1259. };
  1260. static struct omap_hwmod_class_sysconfig dra7xx_timer_secure_sysc = {
  1261. .rev_offs = 0x0000,
  1262. .sysc_offs = 0x0010,
  1263. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1264. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1265. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1266. SIDLE_SMART_WKUP),
  1267. .sysc_fields = &omap_hwmod_sysc_type2,
  1268. };
  1269. static struct omap_hwmod_class dra7xx_timer_secure_hwmod_class = {
  1270. .name = "timer",
  1271. .sysc = &dra7xx_timer_secure_sysc,
  1272. };
  1273. static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
  1274. .rev_offs = 0x0000,
  1275. .sysc_offs = 0x0010,
  1276. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1277. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1278. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1279. SIDLE_SMART_WKUP),
  1280. .sysc_fields = &omap_hwmod_sysc_type2,
  1281. };
  1282. static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
  1283. .name = "timer",
  1284. .sysc = &dra7xx_timer_sysc,
  1285. };
  1286. /* timer1 */
  1287. static struct omap_hwmod dra7xx_timer1_hwmod = {
  1288. .name = "timer1",
  1289. .class = &dra7xx_timer_1ms_hwmod_class,
  1290. .clkdm_name = "wkupaon_clkdm",
  1291. .main_clk = "timer1_gfclk_mux",
  1292. .prcm = {
  1293. .omap4 = {
  1294. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1295. .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1296. .modulemode = MODULEMODE_SWCTRL,
  1297. },
  1298. },
  1299. };
  1300. /* timer2 */
  1301. static struct omap_hwmod dra7xx_timer2_hwmod = {
  1302. .name = "timer2",
  1303. .class = &dra7xx_timer_1ms_hwmod_class,
  1304. .clkdm_name = "l4per_clkdm",
  1305. .main_clk = "timer2_gfclk_mux",
  1306. .prcm = {
  1307. .omap4 = {
  1308. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1309. .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1310. .modulemode = MODULEMODE_SWCTRL,
  1311. },
  1312. },
  1313. };
  1314. /* timer3 */
  1315. static struct omap_hwmod dra7xx_timer3_hwmod = {
  1316. .name = "timer3",
  1317. .class = &dra7xx_timer_hwmod_class,
  1318. .clkdm_name = "l4per_clkdm",
  1319. .main_clk = "timer3_gfclk_mux",
  1320. .prcm = {
  1321. .omap4 = {
  1322. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1323. .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1324. .modulemode = MODULEMODE_SWCTRL,
  1325. },
  1326. },
  1327. };
  1328. /* timer4 */
  1329. static struct omap_hwmod dra7xx_timer4_hwmod = {
  1330. .name = "timer4",
  1331. .class = &dra7xx_timer_secure_hwmod_class,
  1332. .clkdm_name = "l4per_clkdm",
  1333. .main_clk = "timer4_gfclk_mux",
  1334. .prcm = {
  1335. .omap4 = {
  1336. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1337. .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1338. .modulemode = MODULEMODE_SWCTRL,
  1339. },
  1340. },
  1341. };
  1342. /* timer5 */
  1343. static struct omap_hwmod dra7xx_timer5_hwmod = {
  1344. .name = "timer5",
  1345. .class = &dra7xx_timer_hwmod_class,
  1346. .clkdm_name = "ipu_clkdm",
  1347. .main_clk = "timer5_gfclk_mux",
  1348. .prcm = {
  1349. .omap4 = {
  1350. .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
  1351. .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
  1352. .modulemode = MODULEMODE_SWCTRL,
  1353. },
  1354. },
  1355. };
  1356. /* timer6 */
  1357. static struct omap_hwmod dra7xx_timer6_hwmod = {
  1358. .name = "timer6",
  1359. .class = &dra7xx_timer_hwmod_class,
  1360. .clkdm_name = "ipu_clkdm",
  1361. .main_clk = "timer6_gfclk_mux",
  1362. .prcm = {
  1363. .omap4 = {
  1364. .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
  1365. .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
  1366. .modulemode = MODULEMODE_SWCTRL,
  1367. },
  1368. },
  1369. };
  1370. /* timer7 */
  1371. static struct omap_hwmod dra7xx_timer7_hwmod = {
  1372. .name = "timer7",
  1373. .class = &dra7xx_timer_hwmod_class,
  1374. .clkdm_name = "ipu_clkdm",
  1375. .main_clk = "timer7_gfclk_mux",
  1376. .prcm = {
  1377. .omap4 = {
  1378. .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
  1379. .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
  1380. .modulemode = MODULEMODE_SWCTRL,
  1381. },
  1382. },
  1383. };
  1384. /* timer8 */
  1385. static struct omap_hwmod dra7xx_timer8_hwmod = {
  1386. .name = "timer8",
  1387. .class = &dra7xx_timer_hwmod_class,
  1388. .clkdm_name = "ipu_clkdm",
  1389. .main_clk = "timer8_gfclk_mux",
  1390. .prcm = {
  1391. .omap4 = {
  1392. .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
  1393. .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
  1394. .modulemode = MODULEMODE_SWCTRL,
  1395. },
  1396. },
  1397. };
  1398. /* timer9 */
  1399. static struct omap_hwmod dra7xx_timer9_hwmod = {
  1400. .name = "timer9",
  1401. .class = &dra7xx_timer_hwmod_class,
  1402. .clkdm_name = "l4per_clkdm",
  1403. .main_clk = "timer9_gfclk_mux",
  1404. .prcm = {
  1405. .omap4 = {
  1406. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  1407. .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  1408. .modulemode = MODULEMODE_SWCTRL,
  1409. },
  1410. },
  1411. };
  1412. /* timer10 */
  1413. static struct omap_hwmod dra7xx_timer10_hwmod = {
  1414. .name = "timer10",
  1415. .class = &dra7xx_timer_1ms_hwmod_class,
  1416. .clkdm_name = "l4per_clkdm",
  1417. .main_clk = "timer10_gfclk_mux",
  1418. .prcm = {
  1419. .omap4 = {
  1420. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  1421. .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  1422. .modulemode = MODULEMODE_SWCTRL,
  1423. },
  1424. },
  1425. };
  1426. /* timer11 */
  1427. static struct omap_hwmod dra7xx_timer11_hwmod = {
  1428. .name = "timer11",
  1429. .class = &dra7xx_timer_hwmod_class,
  1430. .clkdm_name = "l4per_clkdm",
  1431. .main_clk = "timer11_gfclk_mux",
  1432. .prcm = {
  1433. .omap4 = {
  1434. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  1435. .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  1436. .modulemode = MODULEMODE_SWCTRL,
  1437. },
  1438. },
  1439. };
  1440. /*
  1441. * 'uart' class
  1442. *
  1443. */
  1444. static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
  1445. .rev_offs = 0x0050,
  1446. .sysc_offs = 0x0054,
  1447. .syss_offs = 0x0058,
  1448. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1449. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1450. SYSS_HAS_RESET_STATUS),
  1451. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1452. SIDLE_SMART_WKUP),
  1453. .sysc_fields = &omap_hwmod_sysc_type1,
  1454. };
  1455. static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
  1456. .name = "uart",
  1457. .sysc = &dra7xx_uart_sysc,
  1458. };
  1459. /* uart1 */
  1460. static struct omap_hwmod dra7xx_uart1_hwmod = {
  1461. .name = "uart1",
  1462. .class = &dra7xx_uart_hwmod_class,
  1463. .clkdm_name = "l4per_clkdm",
  1464. .main_clk = "uart1_gfclk_mux",
  1465. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
  1466. .prcm = {
  1467. .omap4 = {
  1468. .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  1469. .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  1470. .modulemode = MODULEMODE_SWCTRL,
  1471. },
  1472. },
  1473. };
  1474. /* uart2 */
  1475. static struct omap_hwmod dra7xx_uart2_hwmod = {
  1476. .name = "uart2",
  1477. .class = &dra7xx_uart_hwmod_class,
  1478. .clkdm_name = "l4per_clkdm",
  1479. .main_clk = "uart2_gfclk_mux",
  1480. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1481. .prcm = {
  1482. .omap4 = {
  1483. .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  1484. .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  1485. .modulemode = MODULEMODE_SWCTRL,
  1486. },
  1487. },
  1488. };
  1489. /* uart3 */
  1490. static struct omap_hwmod dra7xx_uart3_hwmod = {
  1491. .name = "uart3",
  1492. .class = &dra7xx_uart_hwmod_class,
  1493. .clkdm_name = "l4per_clkdm",
  1494. .main_clk = "uart3_gfclk_mux",
  1495. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1496. .prcm = {
  1497. .omap4 = {
  1498. .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  1499. .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  1500. .modulemode = MODULEMODE_SWCTRL,
  1501. },
  1502. },
  1503. };
  1504. /* uart4 */
  1505. static struct omap_hwmod dra7xx_uart4_hwmod = {
  1506. .name = "uart4",
  1507. .class = &dra7xx_uart_hwmod_class,
  1508. .clkdm_name = "l4per_clkdm",
  1509. .main_clk = "uart4_gfclk_mux",
  1510. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1511. .prcm = {
  1512. .omap4 = {
  1513. .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  1514. .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  1515. .modulemode = MODULEMODE_SWCTRL,
  1516. },
  1517. },
  1518. };
  1519. /* uart5 */
  1520. static struct omap_hwmod dra7xx_uart5_hwmod = {
  1521. .name = "uart5",
  1522. .class = &dra7xx_uart_hwmod_class,
  1523. .clkdm_name = "l4per_clkdm",
  1524. .main_clk = "uart5_gfclk_mux",
  1525. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1526. .prcm = {
  1527. .omap4 = {
  1528. .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  1529. .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  1530. .modulemode = MODULEMODE_SWCTRL,
  1531. },
  1532. },
  1533. };
  1534. /* uart6 */
  1535. static struct omap_hwmod dra7xx_uart6_hwmod = {
  1536. .name = "uart6",
  1537. .class = &dra7xx_uart_hwmod_class,
  1538. .clkdm_name = "ipu_clkdm",
  1539. .main_clk = "uart6_gfclk_mux",
  1540. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1541. .prcm = {
  1542. .omap4 = {
  1543. .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
  1544. .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
  1545. .modulemode = MODULEMODE_SWCTRL,
  1546. },
  1547. },
  1548. };
  1549. /*
  1550. * 'usb_otg_ss' class
  1551. *
  1552. */
  1553. static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
  1554. .name = "usb_otg_ss",
  1555. };
  1556. /* usb_otg_ss1 */
  1557. static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
  1558. { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
  1559. };
  1560. static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
  1561. .name = "usb_otg_ss1",
  1562. .class = &dra7xx_usb_otg_ss_hwmod_class,
  1563. .clkdm_name = "l3init_clkdm",
  1564. .main_clk = "dpll_core_h13x2_ck",
  1565. .prcm = {
  1566. .omap4 = {
  1567. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
  1568. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
  1569. .modulemode = MODULEMODE_HWCTRL,
  1570. },
  1571. },
  1572. .opt_clks = usb_otg_ss1_opt_clks,
  1573. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
  1574. };
  1575. /* usb_otg_ss2 */
  1576. static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
  1577. { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
  1578. };
  1579. static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
  1580. .name = "usb_otg_ss2",
  1581. .class = &dra7xx_usb_otg_ss_hwmod_class,
  1582. .clkdm_name = "l3init_clkdm",
  1583. .main_clk = "dpll_core_h13x2_ck",
  1584. .prcm = {
  1585. .omap4 = {
  1586. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
  1587. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
  1588. .modulemode = MODULEMODE_HWCTRL,
  1589. },
  1590. },
  1591. .opt_clks = usb_otg_ss2_opt_clks,
  1592. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
  1593. };
  1594. /* usb_otg_ss3 */
  1595. static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
  1596. .name = "usb_otg_ss3",
  1597. .class = &dra7xx_usb_otg_ss_hwmod_class,
  1598. .clkdm_name = "l3init_clkdm",
  1599. .main_clk = "dpll_core_h13x2_ck",
  1600. .prcm = {
  1601. .omap4 = {
  1602. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
  1603. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
  1604. .modulemode = MODULEMODE_HWCTRL,
  1605. },
  1606. },
  1607. };
  1608. /* usb_otg_ss4 */
  1609. static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
  1610. .name = "usb_otg_ss4",
  1611. .class = &dra7xx_usb_otg_ss_hwmod_class,
  1612. .clkdm_name = "l3init_clkdm",
  1613. .main_clk = "dpll_core_h13x2_ck",
  1614. .prcm = {
  1615. .omap4 = {
  1616. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
  1617. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
  1618. .modulemode = MODULEMODE_HWCTRL,
  1619. },
  1620. },
  1621. };
  1622. /*
  1623. * 'vcp' class
  1624. *
  1625. */
  1626. static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
  1627. .name = "vcp",
  1628. };
  1629. /* vcp1 */
  1630. static struct omap_hwmod dra7xx_vcp1_hwmod = {
  1631. .name = "vcp1",
  1632. .class = &dra7xx_vcp_hwmod_class,
  1633. .clkdm_name = "l3main1_clkdm",
  1634. .main_clk = "l3_iclk_div",
  1635. .prcm = {
  1636. .omap4 = {
  1637. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
  1638. .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
  1639. },
  1640. },
  1641. };
  1642. /* vcp2 */
  1643. static struct omap_hwmod dra7xx_vcp2_hwmod = {
  1644. .name = "vcp2",
  1645. .class = &dra7xx_vcp_hwmod_class,
  1646. .clkdm_name = "l3main1_clkdm",
  1647. .main_clk = "l3_iclk_div",
  1648. .prcm = {
  1649. .omap4 = {
  1650. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
  1651. .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
  1652. },
  1653. },
  1654. };
  1655. /*
  1656. * 'wd_timer' class
  1657. *
  1658. */
  1659. static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
  1660. .rev_offs = 0x0000,
  1661. .sysc_offs = 0x0010,
  1662. .syss_offs = 0x0014,
  1663. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1664. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1665. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1666. SIDLE_SMART_WKUP),
  1667. .sysc_fields = &omap_hwmod_sysc_type1,
  1668. };
  1669. static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
  1670. .name = "wd_timer",
  1671. .sysc = &dra7xx_wd_timer_sysc,
  1672. .pre_shutdown = &omap2_wd_timer_disable,
  1673. .reset = &omap2_wd_timer_reset,
  1674. };
  1675. /* wd_timer2 */
  1676. static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
  1677. .name = "wd_timer2",
  1678. .class = &dra7xx_wd_timer_hwmod_class,
  1679. .clkdm_name = "wkupaon_clkdm",
  1680. .main_clk = "sys_32k_ck",
  1681. .prcm = {
  1682. .omap4 = {
  1683. .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  1684. .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  1685. .modulemode = MODULEMODE_SWCTRL,
  1686. },
  1687. },
  1688. };
  1689. /*
  1690. * Interfaces
  1691. */
  1692. /* l3_main_2 -> l3_instr */
  1693. static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
  1694. .master = &dra7xx_l3_main_2_hwmod,
  1695. .slave = &dra7xx_l3_instr_hwmod,
  1696. .clk = "l3_iclk_div",
  1697. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1698. };
  1699. /* l4_cfg -> l3_main_1 */
  1700. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
  1701. .master = &dra7xx_l4_cfg_hwmod,
  1702. .slave = &dra7xx_l3_main_1_hwmod,
  1703. .clk = "l3_iclk_div",
  1704. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1705. };
  1706. /* mpu -> l3_main_1 */
  1707. static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
  1708. .master = &dra7xx_mpu_hwmod,
  1709. .slave = &dra7xx_l3_main_1_hwmod,
  1710. .clk = "l3_iclk_div",
  1711. .user = OCP_USER_MPU,
  1712. };
  1713. /* l3_main_1 -> l3_main_2 */
  1714. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
  1715. .master = &dra7xx_l3_main_1_hwmod,
  1716. .slave = &dra7xx_l3_main_2_hwmod,
  1717. .clk = "l3_iclk_div",
  1718. .user = OCP_USER_MPU,
  1719. };
  1720. /* l4_cfg -> l3_main_2 */
  1721. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
  1722. .master = &dra7xx_l4_cfg_hwmod,
  1723. .slave = &dra7xx_l3_main_2_hwmod,
  1724. .clk = "l3_iclk_div",
  1725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1726. };
  1727. /* l3_main_1 -> l4_cfg */
  1728. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
  1729. .master = &dra7xx_l3_main_1_hwmod,
  1730. .slave = &dra7xx_l4_cfg_hwmod,
  1731. .clk = "l3_iclk_div",
  1732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1733. };
  1734. /* l3_main_1 -> l4_per1 */
  1735. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
  1736. .master = &dra7xx_l3_main_1_hwmod,
  1737. .slave = &dra7xx_l4_per1_hwmod,
  1738. .clk = "l3_iclk_div",
  1739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1740. };
  1741. /* l3_main_1 -> l4_per2 */
  1742. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
  1743. .master = &dra7xx_l3_main_1_hwmod,
  1744. .slave = &dra7xx_l4_per2_hwmod,
  1745. .clk = "l3_iclk_div",
  1746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1747. };
  1748. /* l3_main_1 -> l4_per3 */
  1749. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
  1750. .master = &dra7xx_l3_main_1_hwmod,
  1751. .slave = &dra7xx_l4_per3_hwmod,
  1752. .clk = "l3_iclk_div",
  1753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1754. };
  1755. /* l3_main_1 -> l4_wkup */
  1756. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
  1757. .master = &dra7xx_l3_main_1_hwmod,
  1758. .slave = &dra7xx_l4_wkup_hwmod,
  1759. .clk = "wkupaon_iclk_mux",
  1760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1761. };
  1762. /* l4_per2 -> atl */
  1763. static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
  1764. .master = &dra7xx_l4_per2_hwmod,
  1765. .slave = &dra7xx_atl_hwmod,
  1766. .clk = "l3_iclk_div",
  1767. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1768. };
  1769. /* l3_main_1 -> bb2d */
  1770. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
  1771. .master = &dra7xx_l3_main_1_hwmod,
  1772. .slave = &dra7xx_bb2d_hwmod,
  1773. .clk = "l3_iclk_div",
  1774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1775. };
  1776. /* l4_wkup -> counter_32k */
  1777. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
  1778. .master = &dra7xx_l4_wkup_hwmod,
  1779. .slave = &dra7xx_counter_32k_hwmod,
  1780. .clk = "wkupaon_iclk_mux",
  1781. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1782. };
  1783. /* l4_wkup -> ctrl_module_wkup */
  1784. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
  1785. .master = &dra7xx_l4_wkup_hwmod,
  1786. .slave = &dra7xx_ctrl_module_wkup_hwmod,
  1787. .clk = "wkupaon_iclk_mux",
  1788. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1789. };
  1790. /* l4_wkup -> dcan1 */
  1791. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
  1792. .master = &dra7xx_l4_wkup_hwmod,
  1793. .slave = &dra7xx_dcan1_hwmod,
  1794. .clk = "wkupaon_iclk_mux",
  1795. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1796. };
  1797. /* l4_per2 -> dcan2 */
  1798. static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
  1799. .master = &dra7xx_l4_per2_hwmod,
  1800. .slave = &dra7xx_dcan2_hwmod,
  1801. .clk = "l3_iclk_div",
  1802. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1803. };
  1804. static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
  1805. {
  1806. .pa_start = 0x4a056000,
  1807. .pa_end = 0x4a056fff,
  1808. .flags = ADDR_TYPE_RT
  1809. },
  1810. { }
  1811. };
  1812. /* l4_cfg -> dma_system */
  1813. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
  1814. .master = &dra7xx_l4_cfg_hwmod,
  1815. .slave = &dra7xx_dma_system_hwmod,
  1816. .clk = "l3_iclk_div",
  1817. .addr = dra7xx_dma_system_addrs,
  1818. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1819. };
  1820. static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
  1821. {
  1822. .name = "family",
  1823. .pa_start = 0x58000000,
  1824. .pa_end = 0x5800007f,
  1825. .flags = ADDR_TYPE_RT
  1826. },
  1827. };
  1828. /* l3_main_1 -> dss */
  1829. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
  1830. .master = &dra7xx_l3_main_1_hwmod,
  1831. .slave = &dra7xx_dss_hwmod,
  1832. .clk = "l3_iclk_div",
  1833. .addr = dra7xx_dss_addrs,
  1834. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1835. };
  1836. static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
  1837. {
  1838. .name = "dispc",
  1839. .pa_start = 0x58001000,
  1840. .pa_end = 0x58001fff,
  1841. .flags = ADDR_TYPE_RT
  1842. },
  1843. };
  1844. /* l3_main_1 -> dispc */
  1845. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
  1846. .master = &dra7xx_l3_main_1_hwmod,
  1847. .slave = &dra7xx_dss_dispc_hwmod,
  1848. .clk = "l3_iclk_div",
  1849. .addr = dra7xx_dss_dispc_addrs,
  1850. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1851. };
  1852. static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
  1853. {
  1854. .name = "hdmi_wp",
  1855. .pa_start = 0x58040000,
  1856. .pa_end = 0x580400ff,
  1857. .flags = ADDR_TYPE_RT
  1858. },
  1859. { }
  1860. };
  1861. /* l3_main_1 -> dispc */
  1862. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
  1863. .master = &dra7xx_l3_main_1_hwmod,
  1864. .slave = &dra7xx_dss_hdmi_hwmod,
  1865. .clk = "l3_iclk_div",
  1866. .addr = dra7xx_dss_hdmi_addrs,
  1867. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1868. };
  1869. static struct omap_hwmod_addr_space dra7xx_elm_addrs[] = {
  1870. {
  1871. .pa_start = 0x48078000,
  1872. .pa_end = 0x48078fff,
  1873. .flags = ADDR_TYPE_RT
  1874. },
  1875. { }
  1876. };
  1877. /* l4_per1 -> elm */
  1878. static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
  1879. .master = &dra7xx_l4_per1_hwmod,
  1880. .slave = &dra7xx_elm_hwmod,
  1881. .clk = "l3_iclk_div",
  1882. .addr = dra7xx_elm_addrs,
  1883. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1884. };
  1885. /* l4_wkup -> gpio1 */
  1886. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
  1887. .master = &dra7xx_l4_wkup_hwmod,
  1888. .slave = &dra7xx_gpio1_hwmod,
  1889. .clk = "wkupaon_iclk_mux",
  1890. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1891. };
  1892. /* l4_per1 -> gpio2 */
  1893. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
  1894. .master = &dra7xx_l4_per1_hwmod,
  1895. .slave = &dra7xx_gpio2_hwmod,
  1896. .clk = "l3_iclk_div",
  1897. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1898. };
  1899. /* l4_per1 -> gpio3 */
  1900. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
  1901. .master = &dra7xx_l4_per1_hwmod,
  1902. .slave = &dra7xx_gpio3_hwmod,
  1903. .clk = "l3_iclk_div",
  1904. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1905. };
  1906. /* l4_per1 -> gpio4 */
  1907. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
  1908. .master = &dra7xx_l4_per1_hwmod,
  1909. .slave = &dra7xx_gpio4_hwmod,
  1910. .clk = "l3_iclk_div",
  1911. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1912. };
  1913. /* l4_per1 -> gpio5 */
  1914. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
  1915. .master = &dra7xx_l4_per1_hwmod,
  1916. .slave = &dra7xx_gpio5_hwmod,
  1917. .clk = "l3_iclk_div",
  1918. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1919. };
  1920. /* l4_per1 -> gpio6 */
  1921. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
  1922. .master = &dra7xx_l4_per1_hwmod,
  1923. .slave = &dra7xx_gpio6_hwmod,
  1924. .clk = "l3_iclk_div",
  1925. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1926. };
  1927. /* l4_per1 -> gpio7 */
  1928. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
  1929. .master = &dra7xx_l4_per1_hwmod,
  1930. .slave = &dra7xx_gpio7_hwmod,
  1931. .clk = "l3_iclk_div",
  1932. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1933. };
  1934. /* l4_per1 -> gpio8 */
  1935. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
  1936. .master = &dra7xx_l4_per1_hwmod,
  1937. .slave = &dra7xx_gpio8_hwmod,
  1938. .clk = "l3_iclk_div",
  1939. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1940. };
  1941. static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = {
  1942. {
  1943. .pa_start = 0x50000000,
  1944. .pa_end = 0x500003ff,
  1945. .flags = ADDR_TYPE_RT
  1946. },
  1947. { }
  1948. };
  1949. /* l3_main_1 -> gpmc */
  1950. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
  1951. .master = &dra7xx_l3_main_1_hwmod,
  1952. .slave = &dra7xx_gpmc_hwmod,
  1953. .clk = "l3_iclk_div",
  1954. .addr = dra7xx_gpmc_addrs,
  1955. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1956. };
  1957. static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
  1958. {
  1959. .pa_start = 0x480b2000,
  1960. .pa_end = 0x480b201f,
  1961. .flags = ADDR_TYPE_RT
  1962. },
  1963. { }
  1964. };
  1965. /* l4_per1 -> hdq1w */
  1966. static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
  1967. .master = &dra7xx_l4_per1_hwmod,
  1968. .slave = &dra7xx_hdq1w_hwmod,
  1969. .clk = "l3_iclk_div",
  1970. .addr = dra7xx_hdq1w_addrs,
  1971. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1972. };
  1973. /* l4_per1 -> i2c1 */
  1974. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
  1975. .master = &dra7xx_l4_per1_hwmod,
  1976. .slave = &dra7xx_i2c1_hwmod,
  1977. .clk = "l3_iclk_div",
  1978. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1979. };
  1980. /* l4_per1 -> i2c2 */
  1981. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
  1982. .master = &dra7xx_l4_per1_hwmod,
  1983. .slave = &dra7xx_i2c2_hwmod,
  1984. .clk = "l3_iclk_div",
  1985. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1986. };
  1987. /* l4_per1 -> i2c3 */
  1988. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
  1989. .master = &dra7xx_l4_per1_hwmod,
  1990. .slave = &dra7xx_i2c3_hwmod,
  1991. .clk = "l3_iclk_div",
  1992. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1993. };
  1994. /* l4_per1 -> i2c4 */
  1995. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
  1996. .master = &dra7xx_l4_per1_hwmod,
  1997. .slave = &dra7xx_i2c4_hwmod,
  1998. .clk = "l3_iclk_div",
  1999. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2000. };
  2001. /* l4_per1 -> i2c5 */
  2002. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
  2003. .master = &dra7xx_l4_per1_hwmod,
  2004. .slave = &dra7xx_i2c5_hwmod,
  2005. .clk = "l3_iclk_div",
  2006. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2007. };
  2008. /* l4_per1 -> mcspi1 */
  2009. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
  2010. .master = &dra7xx_l4_per1_hwmod,
  2011. .slave = &dra7xx_mcspi1_hwmod,
  2012. .clk = "l3_iclk_div",
  2013. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2014. };
  2015. /* l4_per1 -> mcspi2 */
  2016. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
  2017. .master = &dra7xx_l4_per1_hwmod,
  2018. .slave = &dra7xx_mcspi2_hwmod,
  2019. .clk = "l3_iclk_div",
  2020. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2021. };
  2022. /* l4_per1 -> mcspi3 */
  2023. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
  2024. .master = &dra7xx_l4_per1_hwmod,
  2025. .slave = &dra7xx_mcspi3_hwmod,
  2026. .clk = "l3_iclk_div",
  2027. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2028. };
  2029. /* l4_per1 -> mcspi4 */
  2030. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
  2031. .master = &dra7xx_l4_per1_hwmod,
  2032. .slave = &dra7xx_mcspi4_hwmod,
  2033. .clk = "l3_iclk_div",
  2034. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2035. };
  2036. /* l4_per1 -> mmc1 */
  2037. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
  2038. .master = &dra7xx_l4_per1_hwmod,
  2039. .slave = &dra7xx_mmc1_hwmod,
  2040. .clk = "l3_iclk_div",
  2041. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2042. };
  2043. /* l4_per1 -> mmc2 */
  2044. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
  2045. .master = &dra7xx_l4_per1_hwmod,
  2046. .slave = &dra7xx_mmc2_hwmod,
  2047. .clk = "l3_iclk_div",
  2048. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2049. };
  2050. /* l4_per1 -> mmc3 */
  2051. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
  2052. .master = &dra7xx_l4_per1_hwmod,
  2053. .slave = &dra7xx_mmc3_hwmod,
  2054. .clk = "l3_iclk_div",
  2055. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2056. };
  2057. /* l4_per1 -> mmc4 */
  2058. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
  2059. .master = &dra7xx_l4_per1_hwmod,
  2060. .slave = &dra7xx_mmc4_hwmod,
  2061. .clk = "l3_iclk_div",
  2062. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2063. };
  2064. /* l4_cfg -> mpu */
  2065. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
  2066. .master = &dra7xx_l4_cfg_hwmod,
  2067. .slave = &dra7xx_mpu_hwmod,
  2068. .clk = "l3_iclk_div",
  2069. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2070. };
  2071. static struct omap_hwmod_addr_space dra7xx_ocp2scp1_addrs[] = {
  2072. {
  2073. .pa_start = 0x4a080000,
  2074. .pa_end = 0x4a08001f,
  2075. .flags = ADDR_TYPE_RT
  2076. },
  2077. { }
  2078. };
  2079. /* l4_cfg -> ocp2scp1 */
  2080. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
  2081. .master = &dra7xx_l4_cfg_hwmod,
  2082. .slave = &dra7xx_ocp2scp1_hwmod,
  2083. .clk = "l4_root_clk_div",
  2084. .addr = dra7xx_ocp2scp1_addrs,
  2085. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2086. };
  2087. static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
  2088. {
  2089. .pa_start = 0x4b300000,
  2090. .pa_end = 0x4b30007f,
  2091. .flags = ADDR_TYPE_RT
  2092. },
  2093. { }
  2094. };
  2095. /* l3_main_1 -> qspi */
  2096. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
  2097. .master = &dra7xx_l3_main_1_hwmod,
  2098. .slave = &dra7xx_qspi_hwmod,
  2099. .clk = "l3_iclk_div",
  2100. .addr = dra7xx_qspi_addrs,
  2101. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2102. };
  2103. static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
  2104. {
  2105. .name = "sysc",
  2106. .pa_start = 0x4a141100,
  2107. .pa_end = 0x4a141107,
  2108. .flags = ADDR_TYPE_RT
  2109. },
  2110. { }
  2111. };
  2112. /* l4_cfg -> sata */
  2113. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
  2114. .master = &dra7xx_l4_cfg_hwmod,
  2115. .slave = &dra7xx_sata_hwmod,
  2116. .clk = "l3_iclk_div",
  2117. .addr = dra7xx_sata_addrs,
  2118. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2119. };
  2120. static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
  2121. {
  2122. .pa_start = 0x4a0dd000,
  2123. .pa_end = 0x4a0dd07f,
  2124. .flags = ADDR_TYPE_RT
  2125. },
  2126. { }
  2127. };
  2128. /* l4_cfg -> smartreflex_core */
  2129. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
  2130. .master = &dra7xx_l4_cfg_hwmod,
  2131. .slave = &dra7xx_smartreflex_core_hwmod,
  2132. .clk = "l4_root_clk_div",
  2133. .addr = dra7xx_smartreflex_core_addrs,
  2134. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2135. };
  2136. static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
  2137. {
  2138. .pa_start = 0x4a0d9000,
  2139. .pa_end = 0x4a0d907f,
  2140. .flags = ADDR_TYPE_RT
  2141. },
  2142. { }
  2143. };
  2144. /* l4_cfg -> smartreflex_mpu */
  2145. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
  2146. .master = &dra7xx_l4_cfg_hwmod,
  2147. .slave = &dra7xx_smartreflex_mpu_hwmod,
  2148. .clk = "l4_root_clk_div",
  2149. .addr = dra7xx_smartreflex_mpu_addrs,
  2150. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2151. };
  2152. static struct omap_hwmod_addr_space dra7xx_spinlock_addrs[] = {
  2153. {
  2154. .pa_start = 0x4a0f6000,
  2155. .pa_end = 0x4a0f6fff,
  2156. .flags = ADDR_TYPE_RT
  2157. },
  2158. { }
  2159. };
  2160. /* l4_cfg -> spinlock */
  2161. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
  2162. .master = &dra7xx_l4_cfg_hwmod,
  2163. .slave = &dra7xx_spinlock_hwmod,
  2164. .clk = "l3_iclk_div",
  2165. .addr = dra7xx_spinlock_addrs,
  2166. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2167. };
  2168. /* l4_wkup -> timer1 */
  2169. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
  2170. .master = &dra7xx_l4_wkup_hwmod,
  2171. .slave = &dra7xx_timer1_hwmod,
  2172. .clk = "wkupaon_iclk_mux",
  2173. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2174. };
  2175. /* l4_per1 -> timer2 */
  2176. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
  2177. .master = &dra7xx_l4_per1_hwmod,
  2178. .slave = &dra7xx_timer2_hwmod,
  2179. .clk = "l3_iclk_div",
  2180. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2181. };
  2182. /* l4_per1 -> timer3 */
  2183. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
  2184. .master = &dra7xx_l4_per1_hwmod,
  2185. .slave = &dra7xx_timer3_hwmod,
  2186. .clk = "l3_iclk_div",
  2187. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2188. };
  2189. /* l4_per1 -> timer4 */
  2190. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
  2191. .master = &dra7xx_l4_per1_hwmod,
  2192. .slave = &dra7xx_timer4_hwmod,
  2193. .clk = "l3_iclk_div",
  2194. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2195. };
  2196. /* l4_per3 -> timer5 */
  2197. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
  2198. .master = &dra7xx_l4_per3_hwmod,
  2199. .slave = &dra7xx_timer5_hwmod,
  2200. .clk = "l3_iclk_div",
  2201. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2202. };
  2203. /* l4_per3 -> timer6 */
  2204. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
  2205. .master = &dra7xx_l4_per3_hwmod,
  2206. .slave = &dra7xx_timer6_hwmod,
  2207. .clk = "l3_iclk_div",
  2208. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2209. };
  2210. /* l4_per3 -> timer7 */
  2211. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
  2212. .master = &dra7xx_l4_per3_hwmod,
  2213. .slave = &dra7xx_timer7_hwmod,
  2214. .clk = "l3_iclk_div",
  2215. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2216. };
  2217. /* l4_per3 -> timer8 */
  2218. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
  2219. .master = &dra7xx_l4_per3_hwmod,
  2220. .slave = &dra7xx_timer8_hwmod,
  2221. .clk = "l3_iclk_div",
  2222. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2223. };
  2224. /* l4_per1 -> timer9 */
  2225. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
  2226. .master = &dra7xx_l4_per1_hwmod,
  2227. .slave = &dra7xx_timer9_hwmod,
  2228. .clk = "l3_iclk_div",
  2229. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2230. };
  2231. /* l4_per1 -> timer10 */
  2232. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
  2233. .master = &dra7xx_l4_per1_hwmod,
  2234. .slave = &dra7xx_timer10_hwmod,
  2235. .clk = "l3_iclk_div",
  2236. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2237. };
  2238. /* l4_per1 -> timer11 */
  2239. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
  2240. .master = &dra7xx_l4_per1_hwmod,
  2241. .slave = &dra7xx_timer11_hwmod,
  2242. .clk = "l3_iclk_div",
  2243. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2244. };
  2245. /* l4_per1 -> uart1 */
  2246. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
  2247. .master = &dra7xx_l4_per1_hwmod,
  2248. .slave = &dra7xx_uart1_hwmod,
  2249. .clk = "l3_iclk_div",
  2250. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2251. };
  2252. /* l4_per1 -> uart2 */
  2253. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
  2254. .master = &dra7xx_l4_per1_hwmod,
  2255. .slave = &dra7xx_uart2_hwmod,
  2256. .clk = "l3_iclk_div",
  2257. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2258. };
  2259. /* l4_per1 -> uart3 */
  2260. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
  2261. .master = &dra7xx_l4_per1_hwmod,
  2262. .slave = &dra7xx_uart3_hwmod,
  2263. .clk = "l3_iclk_div",
  2264. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2265. };
  2266. /* l4_per1 -> uart4 */
  2267. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
  2268. .master = &dra7xx_l4_per1_hwmod,
  2269. .slave = &dra7xx_uart4_hwmod,
  2270. .clk = "l3_iclk_div",
  2271. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2272. };
  2273. /* l4_per1 -> uart5 */
  2274. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
  2275. .master = &dra7xx_l4_per1_hwmod,
  2276. .slave = &dra7xx_uart5_hwmod,
  2277. .clk = "l3_iclk_div",
  2278. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2279. };
  2280. /* l4_per1 -> uart6 */
  2281. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
  2282. .master = &dra7xx_l4_per1_hwmod,
  2283. .slave = &dra7xx_uart6_hwmod,
  2284. .clk = "l3_iclk_div",
  2285. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2286. };
  2287. /* l4_per3 -> usb_otg_ss1 */
  2288. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
  2289. .master = &dra7xx_l4_per3_hwmod,
  2290. .slave = &dra7xx_usb_otg_ss1_hwmod,
  2291. .clk = "dpll_core_h13x2_ck",
  2292. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2293. };
  2294. /* l4_per3 -> usb_otg_ss2 */
  2295. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
  2296. .master = &dra7xx_l4_per3_hwmod,
  2297. .slave = &dra7xx_usb_otg_ss2_hwmod,
  2298. .clk = "dpll_core_h13x2_ck",
  2299. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2300. };
  2301. /* l4_per3 -> usb_otg_ss3 */
  2302. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
  2303. .master = &dra7xx_l4_per3_hwmod,
  2304. .slave = &dra7xx_usb_otg_ss3_hwmod,
  2305. .clk = "dpll_core_h13x2_ck",
  2306. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2307. };
  2308. /* l4_per3 -> usb_otg_ss4 */
  2309. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
  2310. .master = &dra7xx_l4_per3_hwmod,
  2311. .slave = &dra7xx_usb_otg_ss4_hwmod,
  2312. .clk = "dpll_core_h13x2_ck",
  2313. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2314. };
  2315. /* l3_main_1 -> vcp1 */
  2316. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
  2317. .master = &dra7xx_l3_main_1_hwmod,
  2318. .slave = &dra7xx_vcp1_hwmod,
  2319. .clk = "l3_iclk_div",
  2320. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2321. };
  2322. /* l4_per2 -> vcp1 */
  2323. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
  2324. .master = &dra7xx_l4_per2_hwmod,
  2325. .slave = &dra7xx_vcp1_hwmod,
  2326. .clk = "l3_iclk_div",
  2327. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2328. };
  2329. /* l3_main_1 -> vcp2 */
  2330. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
  2331. .master = &dra7xx_l3_main_1_hwmod,
  2332. .slave = &dra7xx_vcp2_hwmod,
  2333. .clk = "l3_iclk_div",
  2334. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2335. };
  2336. /* l4_per2 -> vcp2 */
  2337. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
  2338. .master = &dra7xx_l4_per2_hwmod,
  2339. .slave = &dra7xx_vcp2_hwmod,
  2340. .clk = "l3_iclk_div",
  2341. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2342. };
  2343. /* l4_wkup -> wd_timer2 */
  2344. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
  2345. .master = &dra7xx_l4_wkup_hwmod,
  2346. .slave = &dra7xx_wd_timer2_hwmod,
  2347. .clk = "wkupaon_iclk_mux",
  2348. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2349. };
  2350. static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
  2351. &dra7xx_l3_main_2__l3_instr,
  2352. &dra7xx_l4_cfg__l3_main_1,
  2353. &dra7xx_mpu__l3_main_1,
  2354. &dra7xx_l3_main_1__l3_main_2,
  2355. &dra7xx_l4_cfg__l3_main_2,
  2356. &dra7xx_l3_main_1__l4_cfg,
  2357. &dra7xx_l3_main_1__l4_per1,
  2358. &dra7xx_l3_main_1__l4_per2,
  2359. &dra7xx_l3_main_1__l4_per3,
  2360. &dra7xx_l3_main_1__l4_wkup,
  2361. &dra7xx_l4_per2__atl,
  2362. &dra7xx_l3_main_1__bb2d,
  2363. &dra7xx_l4_wkup__counter_32k,
  2364. &dra7xx_l4_wkup__ctrl_module_wkup,
  2365. &dra7xx_l4_wkup__dcan1,
  2366. &dra7xx_l4_per2__dcan2,
  2367. &dra7xx_l4_cfg__dma_system,
  2368. &dra7xx_l3_main_1__dss,
  2369. &dra7xx_l3_main_1__dispc,
  2370. &dra7xx_l3_main_1__hdmi,
  2371. &dra7xx_l4_per1__elm,
  2372. &dra7xx_l4_wkup__gpio1,
  2373. &dra7xx_l4_per1__gpio2,
  2374. &dra7xx_l4_per1__gpio3,
  2375. &dra7xx_l4_per1__gpio4,
  2376. &dra7xx_l4_per1__gpio5,
  2377. &dra7xx_l4_per1__gpio6,
  2378. &dra7xx_l4_per1__gpio7,
  2379. &dra7xx_l4_per1__gpio8,
  2380. &dra7xx_l3_main_1__gpmc,
  2381. &dra7xx_l4_per1__hdq1w,
  2382. &dra7xx_l4_per1__i2c1,
  2383. &dra7xx_l4_per1__i2c2,
  2384. &dra7xx_l4_per1__i2c3,
  2385. &dra7xx_l4_per1__i2c4,
  2386. &dra7xx_l4_per1__i2c5,
  2387. &dra7xx_l4_per1__mcspi1,
  2388. &dra7xx_l4_per1__mcspi2,
  2389. &dra7xx_l4_per1__mcspi3,
  2390. &dra7xx_l4_per1__mcspi4,
  2391. &dra7xx_l4_per1__mmc1,
  2392. &dra7xx_l4_per1__mmc2,
  2393. &dra7xx_l4_per1__mmc3,
  2394. &dra7xx_l4_per1__mmc4,
  2395. &dra7xx_l4_cfg__mpu,
  2396. &dra7xx_l4_cfg__ocp2scp1,
  2397. &dra7xx_l3_main_1__qspi,
  2398. &dra7xx_l4_cfg__sata,
  2399. &dra7xx_l4_cfg__smartreflex_core,
  2400. &dra7xx_l4_cfg__smartreflex_mpu,
  2401. &dra7xx_l4_cfg__spinlock,
  2402. &dra7xx_l4_wkup__timer1,
  2403. &dra7xx_l4_per1__timer2,
  2404. &dra7xx_l4_per1__timer3,
  2405. &dra7xx_l4_per1__timer4,
  2406. &dra7xx_l4_per3__timer5,
  2407. &dra7xx_l4_per3__timer6,
  2408. &dra7xx_l4_per3__timer7,
  2409. &dra7xx_l4_per3__timer8,
  2410. &dra7xx_l4_per1__timer9,
  2411. &dra7xx_l4_per1__timer10,
  2412. &dra7xx_l4_per1__timer11,
  2413. &dra7xx_l4_per1__uart1,
  2414. &dra7xx_l4_per1__uart2,
  2415. &dra7xx_l4_per1__uart3,
  2416. &dra7xx_l4_per1__uart4,
  2417. &dra7xx_l4_per1__uart5,
  2418. &dra7xx_l4_per1__uart6,
  2419. &dra7xx_l4_per3__usb_otg_ss1,
  2420. &dra7xx_l4_per3__usb_otg_ss2,
  2421. &dra7xx_l4_per3__usb_otg_ss3,
  2422. &dra7xx_l4_per3__usb_otg_ss4,
  2423. &dra7xx_l3_main_1__vcp1,
  2424. &dra7xx_l4_per2__vcp1,
  2425. &dra7xx_l3_main_1__vcp2,
  2426. &dra7xx_l4_per2__vcp2,
  2427. &dra7xx_l4_wkup__wd_timer2,
  2428. NULL,
  2429. };
  2430. int __init dra7xx_hwmod_init(void)
  2431. {
  2432. omap_hwmod_init();
  2433. return omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
  2434. }