omap_hwmod_44xx_data.c 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2010 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley
  8. * Benoit Cousson
  9. *
  10. * This file is automatically generated from the OMAP hardware databases.
  11. * We respectfully ask that any modifications to this file be coordinated
  12. * with the public linux-omap@vger.kernel.org mailing list and the
  13. * authors above to ensure that the autogeneration scripts are kept
  14. * up-to-date with the file contents.
  15. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License version 2 as
  18. * published by the Free Software Foundation.
  19. */
  20. #include <linux/io.h>
  21. #include <plat/omap_hwmod.h>
  22. #include <plat/cpu.h>
  23. #include <plat/gpio.h>
  24. #include <plat/dma.h>
  25. #include "omap_hwmod_common_data.h"
  26. #include "cm.h"
  27. #include "prm-regbits-44xx.h"
  28. /* Base offset for all OMAP4 interrupts external to MPUSS */
  29. #define OMAP44XX_IRQ_GIC_START 32
  30. /* Base offset for all OMAP4 dma requests */
  31. #define OMAP44XX_DMA_REQ_START 1
  32. /* Backward references (IPs with Bus Master capability) */
  33. static struct omap_hwmod omap44xx_dma_system_hwmod;
  34. static struct omap_hwmod omap44xx_dmm_hwmod;
  35. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  36. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  37. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  38. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  39. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  40. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  41. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  42. static struct omap_hwmod omap44xx_l4_per_hwmod;
  43. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  44. static struct omap_hwmod omap44xx_mpu_hwmod;
  45. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  46. /*
  47. * Interconnects omap_hwmod structures
  48. * hwmods that compose the global OMAP interconnect
  49. */
  50. /*
  51. * 'dmm' class
  52. * instance(s): dmm
  53. */
  54. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  55. .name = "dmm",
  56. };
  57. /* dmm interface data */
  58. /* l3_main_1 -> dmm */
  59. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  60. .master = &omap44xx_l3_main_1_hwmod,
  61. .slave = &omap44xx_dmm_hwmod,
  62. .clk = "l3_div_ck",
  63. .user = OCP_USER_MPU | OCP_USER_SDMA,
  64. };
  65. /* mpu -> dmm */
  66. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  67. .master = &omap44xx_mpu_hwmod,
  68. .slave = &omap44xx_dmm_hwmod,
  69. .clk = "l3_div_ck",
  70. .user = OCP_USER_MPU | OCP_USER_SDMA,
  71. };
  72. /* dmm slave ports */
  73. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  74. &omap44xx_l3_main_1__dmm,
  75. &omap44xx_mpu__dmm,
  76. };
  77. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  78. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  79. };
  80. static struct omap_hwmod omap44xx_dmm_hwmod = {
  81. .name = "dmm",
  82. .class = &omap44xx_dmm_hwmod_class,
  83. .slaves = omap44xx_dmm_slaves,
  84. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  85. .mpu_irqs = omap44xx_dmm_irqs,
  86. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  87. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  88. };
  89. /*
  90. * 'emif_fw' class
  91. * instance(s): emif_fw
  92. */
  93. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  94. .name = "emif_fw",
  95. };
  96. /* emif_fw interface data */
  97. /* dmm -> emif_fw */
  98. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  99. .master = &omap44xx_dmm_hwmod,
  100. .slave = &omap44xx_emif_fw_hwmod,
  101. .clk = "l3_div_ck",
  102. .user = OCP_USER_MPU | OCP_USER_SDMA,
  103. };
  104. /* l4_cfg -> emif_fw */
  105. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  106. .master = &omap44xx_l4_cfg_hwmod,
  107. .slave = &omap44xx_emif_fw_hwmod,
  108. .clk = "l4_div_ck",
  109. .user = OCP_USER_MPU | OCP_USER_SDMA,
  110. };
  111. /* emif_fw slave ports */
  112. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  113. &omap44xx_dmm__emif_fw,
  114. &omap44xx_l4_cfg__emif_fw,
  115. };
  116. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  117. .name = "emif_fw",
  118. .class = &omap44xx_emif_fw_hwmod_class,
  119. .slaves = omap44xx_emif_fw_slaves,
  120. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  121. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  122. };
  123. /*
  124. * 'l3' class
  125. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  126. */
  127. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  128. .name = "l3",
  129. };
  130. /* l3_instr interface data */
  131. /* l3_main_3 -> l3_instr */
  132. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  133. .master = &omap44xx_l3_main_3_hwmod,
  134. .slave = &omap44xx_l3_instr_hwmod,
  135. .clk = "l3_div_ck",
  136. .user = OCP_USER_MPU | OCP_USER_SDMA,
  137. };
  138. /* l3_instr slave ports */
  139. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  140. &omap44xx_l3_main_3__l3_instr,
  141. };
  142. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  143. .name = "l3_instr",
  144. .class = &omap44xx_l3_hwmod_class,
  145. .slaves = omap44xx_l3_instr_slaves,
  146. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  147. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  148. };
  149. /* l3_main_2 -> l3_main_1 */
  150. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  151. .master = &omap44xx_l3_main_2_hwmod,
  152. .slave = &omap44xx_l3_main_1_hwmod,
  153. .clk = "l3_div_ck",
  154. .user = OCP_USER_MPU | OCP_USER_SDMA,
  155. };
  156. /* l4_cfg -> l3_main_1 */
  157. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  158. .master = &omap44xx_l4_cfg_hwmod,
  159. .slave = &omap44xx_l3_main_1_hwmod,
  160. .clk = "l4_div_ck",
  161. .user = OCP_USER_MPU | OCP_USER_SDMA,
  162. };
  163. /* mpu -> l3_main_1 */
  164. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  165. .master = &omap44xx_mpu_hwmod,
  166. .slave = &omap44xx_l3_main_1_hwmod,
  167. .clk = "l3_div_ck",
  168. .user = OCP_USER_MPU | OCP_USER_SDMA,
  169. };
  170. /* l3_main_1 slave ports */
  171. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  172. &omap44xx_l3_main_2__l3_main_1,
  173. &omap44xx_l4_cfg__l3_main_1,
  174. &omap44xx_mpu__l3_main_1,
  175. };
  176. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  177. .name = "l3_main_1",
  178. .class = &omap44xx_l3_hwmod_class,
  179. .slaves = omap44xx_l3_main_1_slaves,
  180. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  181. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  182. };
  183. /* l3_main_2 interface data */
  184. /* l3_main_1 -> l3_main_2 */
  185. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  186. .master = &omap44xx_l3_main_1_hwmod,
  187. .slave = &omap44xx_l3_main_2_hwmod,
  188. .clk = "l3_div_ck",
  189. .user = OCP_USER_MPU | OCP_USER_SDMA,
  190. };
  191. /* dma_system -> l3_main_2 */
  192. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  193. .master = &omap44xx_dma_system_hwmod,
  194. .slave = &omap44xx_l3_main_2_hwmod,
  195. .clk = "l3_div_ck",
  196. .user = OCP_USER_MPU | OCP_USER_SDMA,
  197. };
  198. /* l4_cfg -> l3_main_2 */
  199. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  200. .master = &omap44xx_l4_cfg_hwmod,
  201. .slave = &omap44xx_l3_main_2_hwmod,
  202. .clk = "l4_div_ck",
  203. .user = OCP_USER_MPU | OCP_USER_SDMA,
  204. };
  205. /* l3_main_2 slave ports */
  206. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  207. &omap44xx_dma_system__l3_main_2,
  208. &omap44xx_l3_main_1__l3_main_2,
  209. &omap44xx_l4_cfg__l3_main_2,
  210. };
  211. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  212. .name = "l3_main_2",
  213. .class = &omap44xx_l3_hwmod_class,
  214. .slaves = omap44xx_l3_main_2_slaves,
  215. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  216. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  217. };
  218. /* l3_main_3 interface data */
  219. /* l3_main_1 -> l3_main_3 */
  220. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  221. .master = &omap44xx_l3_main_1_hwmod,
  222. .slave = &omap44xx_l3_main_3_hwmod,
  223. .clk = "l3_div_ck",
  224. .user = OCP_USER_MPU | OCP_USER_SDMA,
  225. };
  226. /* l3_main_2 -> l3_main_3 */
  227. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  228. .master = &omap44xx_l3_main_2_hwmod,
  229. .slave = &omap44xx_l3_main_3_hwmod,
  230. .clk = "l3_div_ck",
  231. .user = OCP_USER_MPU | OCP_USER_SDMA,
  232. };
  233. /* l4_cfg -> l3_main_3 */
  234. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  235. .master = &omap44xx_l4_cfg_hwmod,
  236. .slave = &omap44xx_l3_main_3_hwmod,
  237. .clk = "l4_div_ck",
  238. .user = OCP_USER_MPU | OCP_USER_SDMA,
  239. };
  240. /* l3_main_3 slave ports */
  241. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  242. &omap44xx_l3_main_1__l3_main_3,
  243. &omap44xx_l3_main_2__l3_main_3,
  244. &omap44xx_l4_cfg__l3_main_3,
  245. };
  246. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  247. .name = "l3_main_3",
  248. .class = &omap44xx_l3_hwmod_class,
  249. .slaves = omap44xx_l3_main_3_slaves,
  250. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  251. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  252. };
  253. /*
  254. * 'l4' class
  255. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  256. */
  257. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  258. .name = "l4",
  259. };
  260. /* l4_abe interface data */
  261. /* l3_main_1 -> l4_abe */
  262. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  263. .master = &omap44xx_l3_main_1_hwmod,
  264. .slave = &omap44xx_l4_abe_hwmod,
  265. .clk = "l3_div_ck",
  266. .user = OCP_USER_MPU | OCP_USER_SDMA,
  267. };
  268. /* mpu -> l4_abe */
  269. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  270. .master = &omap44xx_mpu_hwmod,
  271. .slave = &omap44xx_l4_abe_hwmod,
  272. .clk = "ocp_abe_iclk",
  273. .user = OCP_USER_MPU | OCP_USER_SDMA,
  274. };
  275. /* l4_abe slave ports */
  276. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  277. &omap44xx_l3_main_1__l4_abe,
  278. &omap44xx_mpu__l4_abe,
  279. };
  280. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  281. .name = "l4_abe",
  282. .class = &omap44xx_l4_hwmod_class,
  283. .slaves = omap44xx_l4_abe_slaves,
  284. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  285. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  286. };
  287. /* l4_cfg interface data */
  288. /* l3_main_1 -> l4_cfg */
  289. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  290. .master = &omap44xx_l3_main_1_hwmod,
  291. .slave = &omap44xx_l4_cfg_hwmod,
  292. .clk = "l3_div_ck",
  293. .user = OCP_USER_MPU | OCP_USER_SDMA,
  294. };
  295. /* l4_cfg slave ports */
  296. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  297. &omap44xx_l3_main_1__l4_cfg,
  298. };
  299. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  300. .name = "l4_cfg",
  301. .class = &omap44xx_l4_hwmod_class,
  302. .slaves = omap44xx_l4_cfg_slaves,
  303. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  304. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  305. };
  306. /* l4_per interface data */
  307. /* l3_main_2 -> l4_per */
  308. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  309. .master = &omap44xx_l3_main_2_hwmod,
  310. .slave = &omap44xx_l4_per_hwmod,
  311. .clk = "l3_div_ck",
  312. .user = OCP_USER_MPU | OCP_USER_SDMA,
  313. };
  314. /* l4_per slave ports */
  315. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  316. &omap44xx_l3_main_2__l4_per,
  317. };
  318. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  319. .name = "l4_per",
  320. .class = &omap44xx_l4_hwmod_class,
  321. .slaves = omap44xx_l4_per_slaves,
  322. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  323. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  324. };
  325. /* l4_wkup interface data */
  326. /* l4_cfg -> l4_wkup */
  327. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  328. .master = &omap44xx_l4_cfg_hwmod,
  329. .slave = &omap44xx_l4_wkup_hwmod,
  330. .clk = "l4_div_ck",
  331. .user = OCP_USER_MPU | OCP_USER_SDMA,
  332. };
  333. /* l4_wkup slave ports */
  334. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  335. &omap44xx_l4_cfg__l4_wkup,
  336. };
  337. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  338. .name = "l4_wkup",
  339. .class = &omap44xx_l4_hwmod_class,
  340. .slaves = omap44xx_l4_wkup_slaves,
  341. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  342. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  343. };
  344. /*
  345. * 'i2c' class
  346. * multimaster high-speed i2c controller
  347. */
  348. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  349. .sysc_offs = 0x0010,
  350. .syss_offs = 0x0090,
  351. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  352. SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SOFTRESET |
  353. SYSC_HAS_AUTOIDLE),
  354. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  355. .sysc_fields = &omap_hwmod_sysc_type1,
  356. };
  357. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  358. .name = "i2c",
  359. .sysc = &omap44xx_i2c_sysc,
  360. };
  361. /* i2c1 */
  362. static struct omap_hwmod omap44xx_i2c1_hwmod;
  363. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  364. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  365. };
  366. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  367. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  368. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  369. };
  370. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  371. {
  372. .pa_start = 0x48070000,
  373. .pa_end = 0x480700ff,
  374. .flags = ADDR_TYPE_RT
  375. },
  376. };
  377. /* l4_per -> i2c1 */
  378. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  379. .master = &omap44xx_l4_per_hwmod,
  380. .slave = &omap44xx_i2c1_hwmod,
  381. .clk = "l4_div_ck",
  382. .addr = omap44xx_i2c1_addrs,
  383. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  384. .user = OCP_USER_MPU | OCP_USER_SDMA,
  385. };
  386. /* i2c1 slave ports */
  387. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  388. &omap44xx_l4_per__i2c1,
  389. };
  390. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  391. .name = "i2c1",
  392. .class = &omap44xx_i2c_hwmod_class,
  393. .flags = HWMOD_INIT_NO_RESET,
  394. .mpu_irqs = omap44xx_i2c1_irqs,
  395. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  396. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  397. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  398. .main_clk = "i2c1_fck",
  399. .prcm = {
  400. .omap4 = {
  401. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  402. },
  403. },
  404. .slaves = omap44xx_i2c1_slaves,
  405. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  406. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  407. };
  408. /* i2c2 */
  409. static struct omap_hwmod omap44xx_i2c2_hwmod;
  410. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  411. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  412. };
  413. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  414. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  415. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  416. };
  417. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  418. {
  419. .pa_start = 0x48072000,
  420. .pa_end = 0x480720ff,
  421. .flags = ADDR_TYPE_RT
  422. },
  423. };
  424. /* l4_per -> i2c2 */
  425. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  426. .master = &omap44xx_l4_per_hwmod,
  427. .slave = &omap44xx_i2c2_hwmod,
  428. .clk = "l4_div_ck",
  429. .addr = omap44xx_i2c2_addrs,
  430. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  431. .user = OCP_USER_MPU | OCP_USER_SDMA,
  432. };
  433. /* i2c2 slave ports */
  434. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  435. &omap44xx_l4_per__i2c2,
  436. };
  437. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  438. .name = "i2c2",
  439. .class = &omap44xx_i2c_hwmod_class,
  440. .flags = HWMOD_INIT_NO_RESET,
  441. .mpu_irqs = omap44xx_i2c2_irqs,
  442. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  443. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  444. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  445. .main_clk = "i2c2_fck",
  446. .prcm = {
  447. .omap4 = {
  448. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  449. },
  450. },
  451. .slaves = omap44xx_i2c2_slaves,
  452. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  453. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  454. };
  455. /* i2c3 */
  456. static struct omap_hwmod omap44xx_i2c3_hwmod;
  457. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  458. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  459. };
  460. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  461. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  462. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  463. };
  464. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  465. {
  466. .pa_start = 0x48060000,
  467. .pa_end = 0x480600ff,
  468. .flags = ADDR_TYPE_RT
  469. },
  470. };
  471. /* l4_per -> i2c3 */
  472. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  473. .master = &omap44xx_l4_per_hwmod,
  474. .slave = &omap44xx_i2c3_hwmod,
  475. .clk = "l4_div_ck",
  476. .addr = omap44xx_i2c3_addrs,
  477. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  478. .user = OCP_USER_MPU | OCP_USER_SDMA,
  479. };
  480. /* i2c3 slave ports */
  481. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  482. &omap44xx_l4_per__i2c3,
  483. };
  484. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  485. .name = "i2c3",
  486. .class = &omap44xx_i2c_hwmod_class,
  487. .flags = HWMOD_INIT_NO_RESET,
  488. .mpu_irqs = omap44xx_i2c3_irqs,
  489. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  490. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  491. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  492. .main_clk = "i2c3_fck",
  493. .prcm = {
  494. .omap4 = {
  495. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  496. },
  497. },
  498. .slaves = omap44xx_i2c3_slaves,
  499. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  500. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  501. };
  502. /* i2c4 */
  503. static struct omap_hwmod omap44xx_i2c4_hwmod;
  504. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  505. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  506. };
  507. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  508. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  509. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  510. };
  511. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  512. {
  513. .pa_start = 0x48350000,
  514. .pa_end = 0x483500ff,
  515. .flags = ADDR_TYPE_RT
  516. },
  517. };
  518. /* l4_per -> i2c4 */
  519. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  520. .master = &omap44xx_l4_per_hwmod,
  521. .slave = &omap44xx_i2c4_hwmod,
  522. .clk = "l4_div_ck",
  523. .addr = omap44xx_i2c4_addrs,
  524. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  525. .user = OCP_USER_MPU | OCP_USER_SDMA,
  526. };
  527. /* i2c4 slave ports */
  528. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  529. &omap44xx_l4_per__i2c4,
  530. };
  531. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  532. .name = "i2c4",
  533. .class = &omap44xx_i2c_hwmod_class,
  534. .flags = HWMOD_INIT_NO_RESET,
  535. .mpu_irqs = omap44xx_i2c4_irqs,
  536. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  537. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  538. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  539. .main_clk = "i2c4_fck",
  540. .prcm = {
  541. .omap4 = {
  542. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  543. },
  544. },
  545. .slaves = omap44xx_i2c4_slaves,
  546. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  547. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  548. };
  549. /*
  550. * 'mpu_bus' class
  551. * instance(s): mpu_private
  552. */
  553. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  554. .name = "mpu_bus",
  555. };
  556. /* mpu_private interface data */
  557. /* mpu -> mpu_private */
  558. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  559. .master = &omap44xx_mpu_hwmod,
  560. .slave = &omap44xx_mpu_private_hwmod,
  561. .clk = "l3_div_ck",
  562. .user = OCP_USER_MPU | OCP_USER_SDMA,
  563. };
  564. /* mpu_private slave ports */
  565. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  566. &omap44xx_mpu__mpu_private,
  567. };
  568. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  569. .name = "mpu_private",
  570. .class = &omap44xx_mpu_bus_hwmod_class,
  571. .slaves = omap44xx_mpu_private_slaves,
  572. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  573. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  574. };
  575. /*
  576. * 'mpu' class
  577. * mpu sub-system
  578. */
  579. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  580. .name = "mpu",
  581. };
  582. /* mpu */
  583. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  584. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  585. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  586. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  587. };
  588. /* mpu master ports */
  589. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  590. &omap44xx_mpu__l3_main_1,
  591. &omap44xx_mpu__l4_abe,
  592. &omap44xx_mpu__dmm,
  593. };
  594. static struct omap_hwmod omap44xx_mpu_hwmod = {
  595. .name = "mpu",
  596. .class = &omap44xx_mpu_hwmod_class,
  597. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  598. .mpu_irqs = omap44xx_mpu_irqs,
  599. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  600. .main_clk = "dpll_mpu_m2_ck",
  601. .prcm = {
  602. .omap4 = {
  603. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  604. },
  605. },
  606. .masters = omap44xx_mpu_masters,
  607. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  608. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  609. };
  610. /*
  611. * 'wd_timer' class
  612. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  613. * overflow condition
  614. */
  615. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  616. .rev_offs = 0x0000,
  617. .sysc_offs = 0x0010,
  618. .syss_offs = 0x0014,
  619. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
  620. SYSC_HAS_SOFTRESET),
  621. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  622. .sysc_fields = &omap_hwmod_sysc_type1,
  623. };
  624. /*
  625. * 'uart' class
  626. * universal asynchronous receiver/transmitter (uart)
  627. */
  628. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  629. .rev_offs = 0x0050,
  630. .sysc_offs = 0x0054,
  631. .syss_offs = 0x0058,
  632. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  633. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  634. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  635. .sysc_fields = &omap_hwmod_sysc_type1,
  636. };
  637. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  638. .name = "wd_timer",
  639. .sysc = &omap44xx_wd_timer_sysc,
  640. };
  641. /* wd_timer2 */
  642. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  643. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  644. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  645. };
  646. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  647. {
  648. .pa_start = 0x4a314000,
  649. .pa_end = 0x4a31407f,
  650. .flags = ADDR_TYPE_RT
  651. },
  652. };
  653. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  654. .name = "uart",
  655. .sysc = &omap44xx_uart_sysc,
  656. };
  657. /* uart1 */
  658. static struct omap_hwmod omap44xx_uart1_hwmod;
  659. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  660. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  661. };
  662. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  663. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  664. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  665. };
  666. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  667. {
  668. .pa_start = 0x4806a000,
  669. .pa_end = 0x4806a0ff,
  670. .flags = ADDR_TYPE_RT
  671. },
  672. };
  673. /* l4_per -> uart1 */
  674. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  675. .master = &omap44xx_l4_per_hwmod,
  676. .slave = &omap44xx_uart1_hwmod,
  677. .clk = "l4_div_ck",
  678. .addr = omap44xx_uart1_addrs,
  679. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  680. .user = OCP_USER_MPU | OCP_USER_SDMA,
  681. };
  682. /* uart1 slave ports */
  683. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  684. &omap44xx_l4_per__uart1,
  685. };
  686. static struct omap_hwmod omap44xx_uart1_hwmod = {
  687. .name = "uart1",
  688. .class = &omap44xx_uart_hwmod_class,
  689. .mpu_irqs = omap44xx_uart1_irqs,
  690. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  691. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  692. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  693. .main_clk = "uart1_fck",
  694. .prcm = {
  695. .omap4 = {
  696. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  697. },
  698. },
  699. .slaves = omap44xx_uart1_slaves,
  700. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  701. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  702. };
  703. /* uart2 */
  704. static struct omap_hwmod omap44xx_uart2_hwmod;
  705. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  706. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  707. };
  708. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  709. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  710. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  711. };
  712. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  713. {
  714. .pa_start = 0x4806c000,
  715. .pa_end = 0x4806c0ff,
  716. .flags = ADDR_TYPE_RT
  717. },
  718. };
  719. /* l4_wkup -> wd_timer2 */
  720. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  721. .master = &omap44xx_l4_wkup_hwmod,
  722. .slave = &omap44xx_wd_timer2_hwmod,
  723. .clk = "l4_wkup_clk_mux_ck",
  724. .addr = omap44xx_wd_timer2_addrs,
  725. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  726. .user = OCP_USER_MPU | OCP_USER_SDMA,
  727. };
  728. /* wd_timer2 slave ports */
  729. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  730. &omap44xx_l4_wkup__wd_timer2,
  731. };
  732. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  733. .name = "wd_timer2",
  734. .class = &omap44xx_wd_timer_hwmod_class,
  735. .mpu_irqs = omap44xx_wd_timer2_irqs,
  736. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  737. .main_clk = "wd_timer2_fck",
  738. .prcm = {
  739. .omap4 = {
  740. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  741. },
  742. },
  743. .slaves = omap44xx_wd_timer2_slaves,
  744. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  745. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  746. };
  747. /* wd_timer3 */
  748. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  749. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  750. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  751. };
  752. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  753. {
  754. .pa_start = 0x40130000,
  755. .pa_end = 0x4013007f,
  756. .flags = ADDR_TYPE_RT
  757. },
  758. };
  759. /* l4_per -> uart2 */
  760. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  761. .master = &omap44xx_l4_per_hwmod,
  762. .slave = &omap44xx_uart2_hwmod,
  763. .clk = "l4_div_ck",
  764. .addr = omap44xx_uart2_addrs,
  765. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  766. .user = OCP_USER_MPU | OCP_USER_SDMA,
  767. };
  768. /* uart2 slave ports */
  769. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  770. &omap44xx_l4_per__uart2,
  771. };
  772. static struct omap_hwmod omap44xx_uart2_hwmod = {
  773. .name = "uart2",
  774. .class = &omap44xx_uart_hwmod_class,
  775. .mpu_irqs = omap44xx_uart2_irqs,
  776. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  777. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  778. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  779. .main_clk = "uart2_fck",
  780. .prcm = {
  781. .omap4 = {
  782. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  783. },
  784. },
  785. .slaves = omap44xx_uart2_slaves,
  786. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  787. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  788. };
  789. /* uart3 */
  790. static struct omap_hwmod omap44xx_uart3_hwmod;
  791. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  792. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  793. };
  794. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  795. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  796. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  797. };
  798. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  799. {
  800. .pa_start = 0x48020000,
  801. .pa_end = 0x480200ff,
  802. .flags = ADDR_TYPE_RT
  803. },
  804. };
  805. /* l4_abe -> wd_timer3 */
  806. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  807. .master = &omap44xx_l4_abe_hwmod,
  808. .slave = &omap44xx_wd_timer3_hwmod,
  809. .clk = "ocp_abe_iclk",
  810. .addr = omap44xx_wd_timer3_addrs,
  811. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  812. .user = OCP_USER_MPU,
  813. };
  814. /* l4_abe -> wd_timer3 (dma) */
  815. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  816. {
  817. .pa_start = 0x49030000,
  818. .pa_end = 0x4903007f,
  819. .flags = ADDR_TYPE_RT
  820. },
  821. };
  822. /* l4_per -> uart3 */
  823. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  824. .master = &omap44xx_l4_per_hwmod,
  825. .slave = &omap44xx_uart3_hwmod,
  826. .clk = "l4_div_ck",
  827. .addr = omap44xx_uart3_addrs,
  828. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  829. .user = OCP_USER_MPU | OCP_USER_SDMA,
  830. };
  831. /* uart3 slave ports */
  832. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  833. &omap44xx_l4_per__uart3,
  834. };
  835. static struct omap_hwmod omap44xx_uart3_hwmod = {
  836. .name = "uart3",
  837. .class = &omap44xx_uart_hwmod_class,
  838. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  839. .mpu_irqs = omap44xx_uart3_irqs,
  840. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  841. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  842. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  843. .main_clk = "uart3_fck",
  844. .prcm = {
  845. .omap4 = {
  846. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  847. },
  848. },
  849. .slaves = omap44xx_uart3_slaves,
  850. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  851. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  852. };
  853. /* uart4 */
  854. static struct omap_hwmod omap44xx_uart4_hwmod;
  855. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  856. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  857. };
  858. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  859. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  860. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  861. };
  862. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  863. {
  864. .pa_start = 0x4806e000,
  865. .pa_end = 0x4806e0ff,
  866. .flags = ADDR_TYPE_RT
  867. },
  868. };
  869. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  870. .master = &omap44xx_l4_abe_hwmod,
  871. .slave = &omap44xx_wd_timer3_hwmod,
  872. .clk = "ocp_abe_iclk",
  873. .addr = omap44xx_wd_timer3_dma_addrs,
  874. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  875. .user = OCP_USER_SDMA,
  876. };
  877. /* wd_timer3 slave ports */
  878. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  879. &omap44xx_l4_abe__wd_timer3,
  880. &omap44xx_l4_abe__wd_timer3_dma,
  881. };
  882. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  883. .name = "wd_timer3",
  884. .class = &omap44xx_wd_timer_hwmod_class,
  885. .mpu_irqs = omap44xx_wd_timer3_irqs,
  886. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  887. .main_clk = "wd_timer3_fck",
  888. .prcm = {
  889. .omap4 = {
  890. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  891. },
  892. },
  893. .slaves = omap44xx_wd_timer3_slaves,
  894. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  895. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  896. };
  897. /* l4_per -> uart4 */
  898. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  899. .master = &omap44xx_l4_per_hwmod,
  900. .slave = &omap44xx_uart4_hwmod,
  901. .clk = "l4_div_ck",
  902. .addr = omap44xx_uart4_addrs,
  903. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  904. .user = OCP_USER_MPU | OCP_USER_SDMA,
  905. };
  906. /* uart4 slave ports */
  907. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  908. &omap44xx_l4_per__uart4,
  909. };
  910. static struct omap_hwmod omap44xx_uart4_hwmod = {
  911. .name = "uart4",
  912. .class = &omap44xx_uart_hwmod_class,
  913. .mpu_irqs = omap44xx_uart4_irqs,
  914. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  915. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  916. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  917. .main_clk = "uart4_fck",
  918. .prcm = {
  919. .omap4 = {
  920. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  921. },
  922. },
  923. .slaves = omap44xx_uart4_slaves,
  924. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  925. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  926. };
  927. /*
  928. * 'gpio' class
  929. * general purpose io module
  930. */
  931. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  932. .rev_offs = 0x0000,
  933. .sysc_offs = 0x0010,
  934. .syss_offs = 0x0114,
  935. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  936. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  937. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  938. .sysc_fields = &omap_hwmod_sysc_type1,
  939. };
  940. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  941. .name = "gpio",
  942. .sysc = &omap44xx_gpio_sysc,
  943. .rev = 2,
  944. };
  945. /* gpio dev_attr */
  946. static struct omap_gpio_dev_attr gpio_dev_attr = {
  947. .bank_width = 32,
  948. .dbck_flag = true,
  949. };
  950. /* gpio1 */
  951. static struct omap_hwmod omap44xx_gpio1_hwmod;
  952. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  953. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  954. };
  955. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  956. {
  957. .pa_start = 0x4a310000,
  958. .pa_end = 0x4a3101ff,
  959. .flags = ADDR_TYPE_RT
  960. },
  961. };
  962. /* l4_wkup -> gpio1 */
  963. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  964. .master = &omap44xx_l4_wkup_hwmod,
  965. .slave = &omap44xx_gpio1_hwmod,
  966. .addr = omap44xx_gpio1_addrs,
  967. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  968. .user = OCP_USER_MPU | OCP_USER_SDMA,
  969. };
  970. /* gpio1 slave ports */
  971. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  972. &omap44xx_l4_wkup__gpio1,
  973. };
  974. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  975. { .role = "dbclk", .clk = "sys_32k_ck" },
  976. };
  977. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  978. .name = "gpio1",
  979. .class = &omap44xx_gpio_hwmod_class,
  980. .mpu_irqs = omap44xx_gpio1_irqs,
  981. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  982. .main_clk = "gpio1_ick",
  983. .prcm = {
  984. .omap4 = {
  985. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  986. },
  987. },
  988. .opt_clks = gpio1_opt_clks,
  989. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  990. .dev_attr = &gpio_dev_attr,
  991. .slaves = omap44xx_gpio1_slaves,
  992. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  993. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  994. };
  995. /* gpio2 */
  996. static struct omap_hwmod omap44xx_gpio2_hwmod;
  997. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  998. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  999. };
  1000. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  1001. {
  1002. .pa_start = 0x48055000,
  1003. .pa_end = 0x480551ff,
  1004. .flags = ADDR_TYPE_RT
  1005. },
  1006. };
  1007. /* l4_per -> gpio2 */
  1008. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  1009. .master = &omap44xx_l4_per_hwmod,
  1010. .slave = &omap44xx_gpio2_hwmod,
  1011. .addr = omap44xx_gpio2_addrs,
  1012. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  1013. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1014. };
  1015. /* gpio2 slave ports */
  1016. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  1017. &omap44xx_l4_per__gpio2,
  1018. };
  1019. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  1020. { .role = "dbclk", .clk = "sys_32k_ck" },
  1021. };
  1022. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  1023. .name = "gpio2",
  1024. .class = &omap44xx_gpio_hwmod_class,
  1025. .mpu_irqs = omap44xx_gpio2_irqs,
  1026. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  1027. .main_clk = "gpio2_ick",
  1028. .prcm = {
  1029. .omap4 = {
  1030. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  1031. },
  1032. },
  1033. .opt_clks = gpio2_opt_clks,
  1034. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1035. .dev_attr = &gpio_dev_attr,
  1036. .slaves = omap44xx_gpio2_slaves,
  1037. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  1038. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1039. };
  1040. /* gpio3 */
  1041. static struct omap_hwmod omap44xx_gpio3_hwmod;
  1042. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  1043. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  1044. };
  1045. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  1046. {
  1047. .pa_start = 0x48057000,
  1048. .pa_end = 0x480571ff,
  1049. .flags = ADDR_TYPE_RT
  1050. },
  1051. };
  1052. /* l4_per -> gpio3 */
  1053. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  1054. .master = &omap44xx_l4_per_hwmod,
  1055. .slave = &omap44xx_gpio3_hwmod,
  1056. .addr = omap44xx_gpio3_addrs,
  1057. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  1058. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1059. };
  1060. /* gpio3 slave ports */
  1061. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  1062. &omap44xx_l4_per__gpio3,
  1063. };
  1064. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1065. { .role = "dbclk", .clk = "sys_32k_ck" },
  1066. };
  1067. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1068. .name = "gpio3",
  1069. .class = &omap44xx_gpio_hwmod_class,
  1070. .mpu_irqs = omap44xx_gpio3_irqs,
  1071. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  1072. .main_clk = "gpio3_ick",
  1073. .prcm = {
  1074. .omap4 = {
  1075. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  1076. },
  1077. },
  1078. .opt_clks = gpio3_opt_clks,
  1079. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1080. .dev_attr = &gpio_dev_attr,
  1081. .slaves = omap44xx_gpio3_slaves,
  1082. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  1083. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1084. };
  1085. /* gpio4 */
  1086. static struct omap_hwmod omap44xx_gpio4_hwmod;
  1087. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  1088. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  1089. };
  1090. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  1091. {
  1092. .pa_start = 0x48059000,
  1093. .pa_end = 0x480591ff,
  1094. .flags = ADDR_TYPE_RT
  1095. },
  1096. };
  1097. /* l4_per -> gpio4 */
  1098. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  1099. .master = &omap44xx_l4_per_hwmod,
  1100. .slave = &omap44xx_gpio4_hwmod,
  1101. .addr = omap44xx_gpio4_addrs,
  1102. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  1103. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1104. };
  1105. /* gpio4 slave ports */
  1106. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  1107. &omap44xx_l4_per__gpio4,
  1108. };
  1109. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1110. { .role = "dbclk", .clk = "sys_32k_ck" },
  1111. };
  1112. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1113. .name = "gpio4",
  1114. .class = &omap44xx_gpio_hwmod_class,
  1115. .mpu_irqs = omap44xx_gpio4_irqs,
  1116. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  1117. .main_clk = "gpio4_ick",
  1118. .prcm = {
  1119. .omap4 = {
  1120. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  1121. },
  1122. },
  1123. .opt_clks = gpio4_opt_clks,
  1124. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1125. .dev_attr = &gpio_dev_attr,
  1126. .slaves = omap44xx_gpio4_slaves,
  1127. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  1128. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1129. };
  1130. /* gpio5 */
  1131. static struct omap_hwmod omap44xx_gpio5_hwmod;
  1132. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  1133. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  1134. };
  1135. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  1136. {
  1137. .pa_start = 0x4805b000,
  1138. .pa_end = 0x4805b1ff,
  1139. .flags = ADDR_TYPE_RT
  1140. },
  1141. };
  1142. /* l4_per -> gpio5 */
  1143. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  1144. .master = &omap44xx_l4_per_hwmod,
  1145. .slave = &omap44xx_gpio5_hwmod,
  1146. .addr = omap44xx_gpio5_addrs,
  1147. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  1148. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1149. };
  1150. /* gpio5 slave ports */
  1151. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  1152. &omap44xx_l4_per__gpio5,
  1153. };
  1154. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1155. { .role = "dbclk", .clk = "sys_32k_ck" },
  1156. };
  1157. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1158. .name = "gpio5",
  1159. .class = &omap44xx_gpio_hwmod_class,
  1160. .mpu_irqs = omap44xx_gpio5_irqs,
  1161. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  1162. .main_clk = "gpio5_ick",
  1163. .prcm = {
  1164. .omap4 = {
  1165. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  1166. },
  1167. },
  1168. .opt_clks = gpio5_opt_clks,
  1169. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1170. .dev_attr = &gpio_dev_attr,
  1171. .slaves = omap44xx_gpio5_slaves,
  1172. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  1173. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1174. };
  1175. /* gpio6 */
  1176. static struct omap_hwmod omap44xx_gpio6_hwmod;
  1177. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  1178. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  1179. };
  1180. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  1181. {
  1182. .pa_start = 0x4805d000,
  1183. .pa_end = 0x4805d1ff,
  1184. .flags = ADDR_TYPE_RT
  1185. },
  1186. };
  1187. /* l4_per -> gpio6 */
  1188. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  1189. .master = &omap44xx_l4_per_hwmod,
  1190. .slave = &omap44xx_gpio6_hwmod,
  1191. .addr = omap44xx_gpio6_addrs,
  1192. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  1193. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1194. };
  1195. /* gpio6 slave ports */
  1196. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  1197. &omap44xx_l4_per__gpio6,
  1198. };
  1199. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1200. { .role = "dbclk", .clk = "sys_32k_ck" },
  1201. };
  1202. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1203. .name = "gpio6",
  1204. .class = &omap44xx_gpio_hwmod_class,
  1205. .mpu_irqs = omap44xx_gpio6_irqs,
  1206. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  1207. .main_clk = "gpio6_ick",
  1208. .prcm = {
  1209. .omap4 = {
  1210. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  1211. },
  1212. },
  1213. .opt_clks = gpio6_opt_clks,
  1214. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1215. .dev_attr = &gpio_dev_attr,
  1216. .slaves = omap44xx_gpio6_slaves,
  1217. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  1218. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1219. };
  1220. /*
  1221. * 'dma' class
  1222. * dma controller for data exchange between memory to memory (i.e. internal or
  1223. * external memory) and gp peripherals to memory or memory to gp peripherals
  1224. */
  1225. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  1226. .rev_offs = 0x0000,
  1227. .sysc_offs = 0x002c,
  1228. .syss_offs = 0x0028,
  1229. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1230. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1231. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1232. SYSS_HAS_RESET_STATUS),
  1233. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1234. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1235. .sysc_fields = &omap_hwmod_sysc_type1,
  1236. };
  1237. /* dma attributes */
  1238. static struct omap_dma_dev_attr dma_dev_attr = {
  1239. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1240. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  1241. .lch_count = 32,
  1242. };
  1243. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  1244. .name = "dma",
  1245. .sysc = &omap44xx_dma_sysc,
  1246. };
  1247. /* dma_system */
  1248. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  1249. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  1250. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  1251. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  1252. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  1253. };
  1254. /* dma_system master ports */
  1255. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  1256. &omap44xx_dma_system__l3_main_2,
  1257. };
  1258. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  1259. {
  1260. .pa_start = 0x4a056000,
  1261. .pa_end = 0x4a0560ff,
  1262. .flags = ADDR_TYPE_RT
  1263. },
  1264. };
  1265. /* l4_cfg -> dma_system */
  1266. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  1267. .master = &omap44xx_l4_cfg_hwmod,
  1268. .slave = &omap44xx_dma_system_hwmod,
  1269. .clk = "l4_div_ck",
  1270. .addr = omap44xx_dma_system_addrs,
  1271. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  1272. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1273. };
  1274. /* dma_system slave ports */
  1275. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  1276. &omap44xx_l4_cfg__dma_system,
  1277. };
  1278. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  1279. .name = "dma_system",
  1280. .class = &omap44xx_dma_hwmod_class,
  1281. .mpu_irqs = omap44xx_dma_system_irqs,
  1282. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  1283. .main_clk = "l3_div_ck",
  1284. .prcm = {
  1285. .omap4 = {
  1286. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  1287. },
  1288. },
  1289. .slaves = omap44xx_dma_system_slaves,
  1290. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  1291. .masters = omap44xx_dma_system_masters,
  1292. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  1293. .dev_attr = &dma_dev_attr,
  1294. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1295. };
  1296. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  1297. /* dmm class */
  1298. &omap44xx_dmm_hwmod,
  1299. /* emif_fw class */
  1300. &omap44xx_emif_fw_hwmod,
  1301. /* l3 class */
  1302. &omap44xx_l3_instr_hwmod,
  1303. &omap44xx_l3_main_1_hwmod,
  1304. &omap44xx_l3_main_2_hwmod,
  1305. &omap44xx_l3_main_3_hwmod,
  1306. /* l4 class */
  1307. &omap44xx_l4_abe_hwmod,
  1308. &omap44xx_l4_cfg_hwmod,
  1309. &omap44xx_l4_per_hwmod,
  1310. &omap44xx_l4_wkup_hwmod,
  1311. /* dma class */
  1312. &omap44xx_dma_system_hwmod,
  1313. /* i2c class */
  1314. &omap44xx_i2c1_hwmod,
  1315. &omap44xx_i2c2_hwmod,
  1316. &omap44xx_i2c3_hwmod,
  1317. &omap44xx_i2c4_hwmod,
  1318. /* mpu_bus class */
  1319. &omap44xx_mpu_private_hwmod,
  1320. /* gpio class */
  1321. &omap44xx_gpio1_hwmod,
  1322. &omap44xx_gpio2_hwmod,
  1323. &omap44xx_gpio3_hwmod,
  1324. &omap44xx_gpio4_hwmod,
  1325. &omap44xx_gpio5_hwmod,
  1326. &omap44xx_gpio6_hwmod,
  1327. /* mpu class */
  1328. &omap44xx_mpu_hwmod,
  1329. /* wd_timer class */
  1330. &omap44xx_wd_timer2_hwmod,
  1331. &omap44xx_wd_timer3_hwmod,
  1332. /* uart class */
  1333. &omap44xx_uart1_hwmod,
  1334. &omap44xx_uart2_hwmod,
  1335. &omap44xx_uart3_hwmod,
  1336. &omap44xx_uart4_hwmod,
  1337. NULL,
  1338. };
  1339. int __init omap44xx_hwmod_init(void)
  1340. {
  1341. return omap_hwmod_init(omap44xx_hwmods);
  1342. }