ARM: OMAP4: hwmod data: uncomment some "excluded" hwmods
[linux-2.6/cjktty.git] / arch / arm / mach-omap2 / omap_hwmod_44xx_data.c
blobcd2451038a5ed31ae896b2ab89c3799e37b446c1
1 /*
2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2011 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
7 * Paul Walmsley
8 * Benoit Cousson
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.
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.
21 #include <linux/io.h>
23 #include <plat/omap_hwmod.h>
24 #include <plat/cpu.h>
25 #include <plat/i2c.h>
26 #include <plat/gpio.h>
27 #include <plat/dma.h>
28 #include <plat/mcspi.h>
29 #include <plat/mcbsp.h>
30 #include <plat/mmc.h>
31 #include <plat/dmtimer.h>
32 #include <plat/common.h>
34 #include "omap_hwmod_common_data.h"
36 #include "smartreflex.h"
37 #include "cm1_44xx.h"
38 #include "cm2_44xx.h"
39 #include "prm44xx.h"
40 #include "prm-regbits-44xx.h"
41 #include "wd_timer.h"
43 /* Base offset for all OMAP4 interrupts external to MPUSS */
44 #define OMAP44XX_IRQ_GIC_START 32
46 /* Base offset for all OMAP4 dma requests */
47 #define OMAP44XX_DMA_REQ_START 1
49 /* Backward references (IPs with Bus Master capability) */
50 static struct omap_hwmod omap44xx_aess_hwmod;
51 static struct omap_hwmod omap44xx_dma_system_hwmod;
52 static struct omap_hwmod omap44xx_dmm_hwmod;
53 static struct omap_hwmod omap44xx_dsp_hwmod;
54 static struct omap_hwmod omap44xx_dss_hwmod;
55 static struct omap_hwmod omap44xx_emif_fw_hwmod;
56 static struct omap_hwmod omap44xx_hsi_hwmod;
57 static struct omap_hwmod omap44xx_ipu_hwmod;
58 static struct omap_hwmod omap44xx_iss_hwmod;
59 static struct omap_hwmod omap44xx_iva_hwmod;
60 static struct omap_hwmod omap44xx_l3_instr_hwmod;
61 static struct omap_hwmod omap44xx_l3_main_1_hwmod;
62 static struct omap_hwmod omap44xx_l3_main_2_hwmod;
63 static struct omap_hwmod omap44xx_l3_main_3_hwmod;
64 static struct omap_hwmod omap44xx_l4_abe_hwmod;
65 static struct omap_hwmod omap44xx_l4_cfg_hwmod;
66 static struct omap_hwmod omap44xx_l4_per_hwmod;
67 static struct omap_hwmod omap44xx_l4_wkup_hwmod;
68 static struct omap_hwmod omap44xx_mmc1_hwmod;
69 static struct omap_hwmod omap44xx_mmc2_hwmod;
70 static struct omap_hwmod omap44xx_mpu_hwmod;
71 static struct omap_hwmod omap44xx_mpu_private_hwmod;
72 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
73 static struct omap_hwmod omap44xx_usb_host_hs_hwmod;
74 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod;
77 * Interconnects omap_hwmod structures
78 * hwmods that compose the global OMAP interconnect
82 * 'dmm' class
83 * instance(s): dmm
85 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
86 .name = "dmm",
89 /* dmm */
90 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
91 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
92 { .irq = -1 }
95 /* l3_main_1 -> dmm */
96 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
97 .master = &omap44xx_l3_main_1_hwmod,
98 .slave = &omap44xx_dmm_hwmod,
99 .clk = "l3_div_ck",
100 .user = OCP_USER_SDMA,
103 static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
105 .pa_start = 0x4e000000,
106 .pa_end = 0x4e0007ff,
107 .flags = ADDR_TYPE_RT
112 /* mpu -> dmm */
113 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
114 .master = &omap44xx_mpu_hwmod,
115 .slave = &omap44xx_dmm_hwmod,
116 .clk = "l3_div_ck",
117 .addr = omap44xx_dmm_addrs,
118 .user = OCP_USER_MPU,
121 /* dmm slave ports */
122 static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
123 &omap44xx_l3_main_1__dmm,
124 &omap44xx_mpu__dmm,
127 static struct omap_hwmod omap44xx_dmm_hwmod = {
128 .name = "dmm",
129 .class = &omap44xx_dmm_hwmod_class,
130 .clkdm_name = "l3_emif_clkdm",
131 .prcm = {
132 .omap4 = {
133 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
134 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
137 .slaves = omap44xx_dmm_slaves,
138 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
139 .mpu_irqs = omap44xx_dmm_irqs,
143 * 'emif_fw' class
144 * instance(s): emif_fw
146 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
147 .name = "emif_fw",
150 /* emif_fw */
151 /* dmm -> emif_fw */
152 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
153 .master = &omap44xx_dmm_hwmod,
154 .slave = &omap44xx_emif_fw_hwmod,
155 .clk = "l3_div_ck",
156 .user = OCP_USER_MPU | OCP_USER_SDMA,
159 static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
161 .pa_start = 0x4a20c000,
162 .pa_end = 0x4a20c0ff,
163 .flags = ADDR_TYPE_RT
168 /* l4_cfg -> emif_fw */
169 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
170 .master = &omap44xx_l4_cfg_hwmod,
171 .slave = &omap44xx_emif_fw_hwmod,
172 .clk = "l4_div_ck",
173 .addr = omap44xx_emif_fw_addrs,
174 .user = OCP_USER_MPU,
177 /* emif_fw slave ports */
178 static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
179 &omap44xx_dmm__emif_fw,
180 &omap44xx_l4_cfg__emif_fw,
183 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
184 .name = "emif_fw",
185 .class = &omap44xx_emif_fw_hwmod_class,
186 .clkdm_name = "l3_emif_clkdm",
187 .prcm = {
188 .omap4 = {
189 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET,
190 .context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET,
193 .slaves = omap44xx_emif_fw_slaves,
194 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
198 * 'l3' class
199 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
201 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
202 .name = "l3",
205 /* l3_instr */
206 /* iva -> l3_instr */
207 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
208 .master = &omap44xx_iva_hwmod,
209 .slave = &omap44xx_l3_instr_hwmod,
210 .clk = "l3_div_ck",
211 .user = OCP_USER_MPU | OCP_USER_SDMA,
214 /* l3_main_3 -> l3_instr */
215 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
216 .master = &omap44xx_l3_main_3_hwmod,
217 .slave = &omap44xx_l3_instr_hwmod,
218 .clk = "l3_div_ck",
219 .user = OCP_USER_MPU | OCP_USER_SDMA,
222 /* l3_instr slave ports */
223 static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
224 &omap44xx_iva__l3_instr,
225 &omap44xx_l3_main_3__l3_instr,
228 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
229 .name = "l3_instr",
230 .class = &omap44xx_l3_hwmod_class,
231 .clkdm_name = "l3_instr_clkdm",
232 .prcm = {
233 .omap4 = {
234 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
235 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
236 .modulemode = MODULEMODE_HWCTRL,
239 .slaves = omap44xx_l3_instr_slaves,
240 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
243 /* l3_main_1 */
244 static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = {
245 { .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START },
246 { .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START },
247 { .irq = -1 }
250 /* dsp -> l3_main_1 */
251 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
252 .master = &omap44xx_dsp_hwmod,
253 .slave = &omap44xx_l3_main_1_hwmod,
254 .clk = "l3_div_ck",
255 .user = OCP_USER_MPU | OCP_USER_SDMA,
258 /* dss -> l3_main_1 */
259 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
260 .master = &omap44xx_dss_hwmod,
261 .slave = &omap44xx_l3_main_1_hwmod,
262 .clk = "l3_div_ck",
263 .user = OCP_USER_MPU | OCP_USER_SDMA,
266 /* l3_main_2 -> l3_main_1 */
267 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
268 .master = &omap44xx_l3_main_2_hwmod,
269 .slave = &omap44xx_l3_main_1_hwmod,
270 .clk = "l3_div_ck",
271 .user = OCP_USER_MPU | OCP_USER_SDMA,
274 /* l4_cfg -> l3_main_1 */
275 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
276 .master = &omap44xx_l4_cfg_hwmod,
277 .slave = &omap44xx_l3_main_1_hwmod,
278 .clk = "l4_div_ck",
279 .user = OCP_USER_MPU | OCP_USER_SDMA,
282 /* mmc1 -> l3_main_1 */
283 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
284 .master = &omap44xx_mmc1_hwmod,
285 .slave = &omap44xx_l3_main_1_hwmod,
286 .clk = "l3_div_ck",
287 .user = OCP_USER_MPU | OCP_USER_SDMA,
290 /* mmc2 -> l3_main_1 */
291 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
292 .master = &omap44xx_mmc2_hwmod,
293 .slave = &omap44xx_l3_main_1_hwmod,
294 .clk = "l3_div_ck",
295 .user = OCP_USER_MPU | OCP_USER_SDMA,
298 static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
300 .pa_start = 0x44000000,
301 .pa_end = 0x44000fff,
302 .flags = ADDR_TYPE_RT
307 /* mpu -> l3_main_1 */
308 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
309 .master = &omap44xx_mpu_hwmod,
310 .slave = &omap44xx_l3_main_1_hwmod,
311 .clk = "l3_div_ck",
312 .addr = omap44xx_l3_main_1_addrs,
313 .user = OCP_USER_MPU,
316 /* l3_main_1 slave ports */
317 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
318 &omap44xx_dsp__l3_main_1,
319 &omap44xx_dss__l3_main_1,
320 &omap44xx_l3_main_2__l3_main_1,
321 &omap44xx_l4_cfg__l3_main_1,
322 &omap44xx_mmc1__l3_main_1,
323 &omap44xx_mmc2__l3_main_1,
324 &omap44xx_mpu__l3_main_1,
327 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
328 .name = "l3_main_1",
329 .class = &omap44xx_l3_hwmod_class,
330 .clkdm_name = "l3_1_clkdm",
331 .mpu_irqs = omap44xx_l3_main_1_irqs,
332 .prcm = {
333 .omap4 = {
334 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
335 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
338 .slaves = omap44xx_l3_main_1_slaves,
339 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
342 /* l3_main_2 */
343 /* dma_system -> l3_main_2 */
344 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
345 .master = &omap44xx_dma_system_hwmod,
346 .slave = &omap44xx_l3_main_2_hwmod,
347 .clk = "l3_div_ck",
348 .user = OCP_USER_MPU | OCP_USER_SDMA,
351 /* hsi -> l3_main_2 */
352 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
353 .master = &omap44xx_hsi_hwmod,
354 .slave = &omap44xx_l3_main_2_hwmod,
355 .clk = "l3_div_ck",
356 .user = OCP_USER_MPU | OCP_USER_SDMA,
359 /* ipu -> l3_main_2 */
360 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
361 .master = &omap44xx_ipu_hwmod,
362 .slave = &omap44xx_l3_main_2_hwmod,
363 .clk = "l3_div_ck",
364 .user = OCP_USER_MPU | OCP_USER_SDMA,
367 /* iss -> l3_main_2 */
368 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
369 .master = &omap44xx_iss_hwmod,
370 .slave = &omap44xx_l3_main_2_hwmod,
371 .clk = "l3_div_ck",
372 .user = OCP_USER_MPU | OCP_USER_SDMA,
375 /* iva -> l3_main_2 */
376 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
377 .master = &omap44xx_iva_hwmod,
378 .slave = &omap44xx_l3_main_2_hwmod,
379 .clk = "l3_div_ck",
380 .user = OCP_USER_MPU | OCP_USER_SDMA,
383 static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
385 .pa_start = 0x44800000,
386 .pa_end = 0x44801fff,
387 .flags = ADDR_TYPE_RT
392 /* l3_main_1 -> l3_main_2 */
393 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
394 .master = &omap44xx_l3_main_1_hwmod,
395 .slave = &omap44xx_l3_main_2_hwmod,
396 .clk = "l3_div_ck",
397 .addr = omap44xx_l3_main_2_addrs,
398 .user = OCP_USER_MPU,
401 /* l4_cfg -> l3_main_2 */
402 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
403 .master = &omap44xx_l4_cfg_hwmod,
404 .slave = &omap44xx_l3_main_2_hwmod,
405 .clk = "l4_div_ck",
406 .user = OCP_USER_MPU | OCP_USER_SDMA,
409 /* usb_otg_hs -> l3_main_2 */
410 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
411 .master = &omap44xx_usb_otg_hs_hwmod,
412 .slave = &omap44xx_l3_main_2_hwmod,
413 .clk = "l3_div_ck",
414 .user = OCP_USER_MPU | OCP_USER_SDMA,
417 /* l3_main_2 slave ports */
418 static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
419 &omap44xx_dma_system__l3_main_2,
420 &omap44xx_hsi__l3_main_2,
421 &omap44xx_ipu__l3_main_2,
422 &omap44xx_iss__l3_main_2,
423 &omap44xx_iva__l3_main_2,
424 &omap44xx_l3_main_1__l3_main_2,
425 &omap44xx_l4_cfg__l3_main_2,
426 &omap44xx_usb_otg_hs__l3_main_2,
429 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
430 .name = "l3_main_2",
431 .class = &omap44xx_l3_hwmod_class,
432 .clkdm_name = "l3_2_clkdm",
433 .prcm = {
434 .omap4 = {
435 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
436 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
439 .slaves = omap44xx_l3_main_2_slaves,
440 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
443 /* l3_main_3 */
444 static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
446 .pa_start = 0x45000000,
447 .pa_end = 0x45000fff,
448 .flags = ADDR_TYPE_RT
453 /* l3_main_1 -> l3_main_3 */
454 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
455 .master = &omap44xx_l3_main_1_hwmod,
456 .slave = &omap44xx_l3_main_3_hwmod,
457 .clk = "l3_div_ck",
458 .addr = omap44xx_l3_main_3_addrs,
459 .user = OCP_USER_MPU,
462 /* l3_main_2 -> l3_main_3 */
463 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
464 .master = &omap44xx_l3_main_2_hwmod,
465 .slave = &omap44xx_l3_main_3_hwmod,
466 .clk = "l3_div_ck",
467 .user = OCP_USER_MPU | OCP_USER_SDMA,
470 /* l4_cfg -> l3_main_3 */
471 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
472 .master = &omap44xx_l4_cfg_hwmod,
473 .slave = &omap44xx_l3_main_3_hwmod,
474 .clk = "l4_div_ck",
475 .user = OCP_USER_MPU | OCP_USER_SDMA,
478 /* l3_main_3 slave ports */
479 static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
480 &omap44xx_l3_main_1__l3_main_3,
481 &omap44xx_l3_main_2__l3_main_3,
482 &omap44xx_l4_cfg__l3_main_3,
485 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
486 .name = "l3_main_3",
487 .class = &omap44xx_l3_hwmod_class,
488 .clkdm_name = "l3_instr_clkdm",
489 .prcm = {
490 .omap4 = {
491 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
492 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
493 .modulemode = MODULEMODE_HWCTRL,
496 .slaves = omap44xx_l3_main_3_slaves,
497 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
501 * 'l4' class
502 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
504 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
505 .name = "l4",
508 /* l4_abe */
509 /* aess -> l4_abe */
510 static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
511 .master = &omap44xx_aess_hwmod,
512 .slave = &omap44xx_l4_abe_hwmod,
513 .clk = "ocp_abe_iclk",
514 .user = OCP_USER_MPU | OCP_USER_SDMA,
517 /* dsp -> l4_abe */
518 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
519 .master = &omap44xx_dsp_hwmod,
520 .slave = &omap44xx_l4_abe_hwmod,
521 .clk = "ocp_abe_iclk",
522 .user = OCP_USER_MPU | OCP_USER_SDMA,
525 /* l3_main_1 -> l4_abe */
526 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
527 .master = &omap44xx_l3_main_1_hwmod,
528 .slave = &omap44xx_l4_abe_hwmod,
529 .clk = "l3_div_ck",
530 .user = OCP_USER_MPU | OCP_USER_SDMA,
533 /* mpu -> l4_abe */
534 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
535 .master = &omap44xx_mpu_hwmod,
536 .slave = &omap44xx_l4_abe_hwmod,
537 .clk = "ocp_abe_iclk",
538 .user = OCP_USER_MPU | OCP_USER_SDMA,
541 /* l4_abe slave ports */
542 static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
543 &omap44xx_aess__l4_abe,
544 &omap44xx_dsp__l4_abe,
545 &omap44xx_l3_main_1__l4_abe,
546 &omap44xx_mpu__l4_abe,
549 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
550 .name = "l4_abe",
551 .class = &omap44xx_l4_hwmod_class,
552 .clkdm_name = "abe_clkdm",
553 .prcm = {
554 .omap4 = {
555 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
558 .slaves = omap44xx_l4_abe_slaves,
559 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
562 /* l4_cfg */
563 /* l3_main_1 -> l4_cfg */
564 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
565 .master = &omap44xx_l3_main_1_hwmod,
566 .slave = &omap44xx_l4_cfg_hwmod,
567 .clk = "l3_div_ck",
568 .user = OCP_USER_MPU | OCP_USER_SDMA,
571 /* l4_cfg slave ports */
572 static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
573 &omap44xx_l3_main_1__l4_cfg,
576 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
577 .name = "l4_cfg",
578 .class = &omap44xx_l4_hwmod_class,
579 .clkdm_name = "l4_cfg_clkdm",
580 .prcm = {
581 .omap4 = {
582 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
583 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
586 .slaves = omap44xx_l4_cfg_slaves,
587 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
590 /* l4_per */
591 /* l3_main_2 -> l4_per */
592 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
593 .master = &omap44xx_l3_main_2_hwmod,
594 .slave = &omap44xx_l4_per_hwmod,
595 .clk = "l3_div_ck",
596 .user = OCP_USER_MPU | OCP_USER_SDMA,
599 /* l4_per slave ports */
600 static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
601 &omap44xx_l3_main_2__l4_per,
604 static struct omap_hwmod omap44xx_l4_per_hwmod = {
605 .name = "l4_per",
606 .class = &omap44xx_l4_hwmod_class,
607 .clkdm_name = "l4_per_clkdm",
608 .prcm = {
609 .omap4 = {
610 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
611 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
614 .slaves = omap44xx_l4_per_slaves,
615 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
618 /* l4_wkup */
619 /* l4_cfg -> l4_wkup */
620 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
621 .master = &omap44xx_l4_cfg_hwmod,
622 .slave = &omap44xx_l4_wkup_hwmod,
623 .clk = "l4_div_ck",
624 .user = OCP_USER_MPU | OCP_USER_SDMA,
627 /* l4_wkup slave ports */
628 static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
629 &omap44xx_l4_cfg__l4_wkup,
632 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
633 .name = "l4_wkup",
634 .class = &omap44xx_l4_hwmod_class,
635 .clkdm_name = "l4_wkup_clkdm",
636 .prcm = {
637 .omap4 = {
638 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
639 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
642 .slaves = omap44xx_l4_wkup_slaves,
643 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
647 * 'mpu_bus' class
648 * instance(s): mpu_private
650 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
651 .name = "mpu_bus",
654 /* mpu_private */
655 /* mpu -> mpu_private */
656 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
657 .master = &omap44xx_mpu_hwmod,
658 .slave = &omap44xx_mpu_private_hwmod,
659 .clk = "l3_div_ck",
660 .user = OCP_USER_MPU | OCP_USER_SDMA,
663 /* mpu_private slave ports */
664 static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
665 &omap44xx_mpu__mpu_private,
668 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
669 .name = "mpu_private",
670 .class = &omap44xx_mpu_bus_hwmod_class,
671 .clkdm_name = "mpuss_clkdm",
672 .slaves = omap44xx_mpu_private_slaves,
673 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
677 * Modules omap_hwmod structures
679 * The following IPs are excluded for the moment because:
680 * - They do not need an explicit SW control using omap_hwmod API.
681 * - They still need to be validated with the driver
682 * properly adapted to omap_hwmod / omap_device
684 * c2c
685 * c2c_target_fw
686 * cm_core
687 * cm_core_aon
688 * ctrl_module_core
689 * ctrl_module_pad_core
690 * ctrl_module_pad_wkup
691 * ctrl_module_wkup
692 * debugss
693 * efuse_ctrl_cust
694 * efuse_ctrl_std
695 * elm
696 * emif1
697 * emif2
698 * fdif
699 * gpmc
700 * gpu
701 * hdq1w
702 * mcasp
703 * mpu_c0
704 * mpu_c1
705 * ocmc_ram
706 * ocp2scp_usb_phy
707 * ocp_wp_noc
708 * prcm_mpu
709 * prm
710 * scrm
711 * sl2if
712 * slimbus1
713 * slimbus2
714 * usb_host_fs
715 * usb_host_hs
716 * usb_phy_cm
717 * usb_tll_hs
718 * usim
722 * 'aess' class
723 * audio engine sub system
726 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
727 .rev_offs = 0x0000,
728 .sysc_offs = 0x0010,
729 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
730 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
731 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
732 MSTANDBY_SMART_WKUP),
733 .sysc_fields = &omap_hwmod_sysc_type2,
736 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
737 .name = "aess",
738 .sysc = &omap44xx_aess_sysc,
741 /* aess */
742 static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
743 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
744 { .irq = -1 }
747 static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
748 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
749 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
750 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
751 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
752 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
753 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
754 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
755 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
756 { .dma_req = -1 }
759 /* aess master ports */
760 static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
761 &omap44xx_aess__l4_abe,
764 static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
766 .pa_start = 0x401f1000,
767 .pa_end = 0x401f13ff,
768 .flags = ADDR_TYPE_RT
773 /* l4_abe -> aess */
774 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
775 .master = &omap44xx_l4_abe_hwmod,
776 .slave = &omap44xx_aess_hwmod,
777 .clk = "ocp_abe_iclk",
778 .addr = omap44xx_aess_addrs,
779 .user = OCP_USER_MPU,
782 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
784 .pa_start = 0x490f1000,
785 .pa_end = 0x490f13ff,
786 .flags = ADDR_TYPE_RT
791 /* l4_abe -> aess (dma) */
792 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
793 .master = &omap44xx_l4_abe_hwmod,
794 .slave = &omap44xx_aess_hwmod,
795 .clk = "ocp_abe_iclk",
796 .addr = omap44xx_aess_dma_addrs,
797 .user = OCP_USER_SDMA,
800 /* aess slave ports */
801 static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
802 &omap44xx_l4_abe__aess,
803 &omap44xx_l4_abe__aess_dma,
806 static struct omap_hwmod omap44xx_aess_hwmod = {
807 .name = "aess",
808 .class = &omap44xx_aess_hwmod_class,
809 .clkdm_name = "abe_clkdm",
810 .mpu_irqs = omap44xx_aess_irqs,
811 .sdma_reqs = omap44xx_aess_sdma_reqs,
812 .main_clk = "aess_fck",
813 .prcm = {
814 .omap4 = {
815 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
816 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
817 .modulemode = MODULEMODE_SWCTRL,
820 .slaves = omap44xx_aess_slaves,
821 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
822 .masters = omap44xx_aess_masters,
823 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
827 * 'counter' class
828 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
831 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
832 .rev_offs = 0x0000,
833 .sysc_offs = 0x0004,
834 .sysc_flags = SYSC_HAS_SIDLEMODE,
835 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
836 SIDLE_SMART_WKUP),
837 .sysc_fields = &omap_hwmod_sysc_type1,
840 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
841 .name = "counter",
842 .sysc = &omap44xx_counter_sysc,
845 /* counter_32k */
846 static struct omap_hwmod omap44xx_counter_32k_hwmod;
847 static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
849 .pa_start = 0x4a304000,
850 .pa_end = 0x4a30401f,
851 .flags = ADDR_TYPE_RT
856 /* l4_wkup -> counter_32k */
857 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
858 .master = &omap44xx_l4_wkup_hwmod,
859 .slave = &omap44xx_counter_32k_hwmod,
860 .clk = "l4_wkup_clk_mux_ck",
861 .addr = omap44xx_counter_32k_addrs,
862 .user = OCP_USER_MPU | OCP_USER_SDMA,
865 /* counter_32k slave ports */
866 static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
867 &omap44xx_l4_wkup__counter_32k,
870 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
871 .name = "counter_32k",
872 .class = &omap44xx_counter_hwmod_class,
873 .clkdm_name = "l4_wkup_clkdm",
874 .flags = HWMOD_SWSUP_SIDLE,
875 .main_clk = "sys_32k_ck",
876 .prcm = {
877 .omap4 = {
878 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
879 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
882 .slaves = omap44xx_counter_32k_slaves,
883 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
887 * 'dma' class
888 * dma controller for data exchange between memory to memory (i.e. internal or
889 * external memory) and gp peripherals to memory or memory to gp peripherals
892 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
893 .rev_offs = 0x0000,
894 .sysc_offs = 0x002c,
895 .syss_offs = 0x0028,
896 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
897 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
898 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
899 SYSS_HAS_RESET_STATUS),
900 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
901 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
902 .sysc_fields = &omap_hwmod_sysc_type1,
905 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
906 .name = "dma",
907 .sysc = &omap44xx_dma_sysc,
910 /* dma dev_attr */
911 static struct omap_dma_dev_attr dma_dev_attr = {
912 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
913 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
914 .lch_count = 32,
917 /* dma_system */
918 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
919 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
920 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
921 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
922 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
923 { .irq = -1 }
926 /* dma_system master ports */
927 static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
928 &omap44xx_dma_system__l3_main_2,
931 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
933 .pa_start = 0x4a056000,
934 .pa_end = 0x4a056fff,
935 .flags = ADDR_TYPE_RT
940 /* l4_cfg -> dma_system */
941 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
942 .master = &omap44xx_l4_cfg_hwmod,
943 .slave = &omap44xx_dma_system_hwmod,
944 .clk = "l4_div_ck",
945 .addr = omap44xx_dma_system_addrs,
946 .user = OCP_USER_MPU | OCP_USER_SDMA,
949 /* dma_system slave ports */
950 static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
951 &omap44xx_l4_cfg__dma_system,
954 static struct omap_hwmod omap44xx_dma_system_hwmod = {
955 .name = "dma_system",
956 .class = &omap44xx_dma_hwmod_class,
957 .clkdm_name = "l3_dma_clkdm",
958 .mpu_irqs = omap44xx_dma_system_irqs,
959 .main_clk = "l3_div_ck",
960 .prcm = {
961 .omap4 = {
962 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
963 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
966 .dev_attr = &dma_dev_attr,
967 .slaves = omap44xx_dma_system_slaves,
968 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
969 .masters = omap44xx_dma_system_masters,
970 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
974 * 'dmic' class
975 * digital microphone controller
978 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
979 .rev_offs = 0x0000,
980 .sysc_offs = 0x0010,
981 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
982 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
983 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
984 SIDLE_SMART_WKUP),
985 .sysc_fields = &omap_hwmod_sysc_type2,
988 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
989 .name = "dmic",
990 .sysc = &omap44xx_dmic_sysc,
993 /* dmic */
994 static struct omap_hwmod omap44xx_dmic_hwmod;
995 static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
996 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
997 { .irq = -1 }
1000 static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
1001 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
1002 { .dma_req = -1 }
1005 static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
1007 .name = "mpu",
1008 .pa_start = 0x4012e000,
1009 .pa_end = 0x4012e07f,
1010 .flags = ADDR_TYPE_RT
1015 /* l4_abe -> dmic */
1016 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
1017 .master = &omap44xx_l4_abe_hwmod,
1018 .slave = &omap44xx_dmic_hwmod,
1019 .clk = "ocp_abe_iclk",
1020 .addr = omap44xx_dmic_addrs,
1021 .user = OCP_USER_MPU,
1024 static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
1026 .name = "dma",
1027 .pa_start = 0x4902e000,
1028 .pa_end = 0x4902e07f,
1029 .flags = ADDR_TYPE_RT
1034 /* l4_abe -> dmic (dma) */
1035 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
1036 .master = &omap44xx_l4_abe_hwmod,
1037 .slave = &omap44xx_dmic_hwmod,
1038 .clk = "ocp_abe_iclk",
1039 .addr = omap44xx_dmic_dma_addrs,
1040 .user = OCP_USER_SDMA,
1043 /* dmic slave ports */
1044 static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
1045 &omap44xx_l4_abe__dmic,
1046 &omap44xx_l4_abe__dmic_dma,
1049 static struct omap_hwmod omap44xx_dmic_hwmod = {
1050 .name = "dmic",
1051 .class = &omap44xx_dmic_hwmod_class,
1052 .clkdm_name = "abe_clkdm",
1053 .mpu_irqs = omap44xx_dmic_irqs,
1054 .sdma_reqs = omap44xx_dmic_sdma_reqs,
1055 .main_clk = "dmic_fck",
1056 .prcm = {
1057 .omap4 = {
1058 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
1059 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
1060 .modulemode = MODULEMODE_SWCTRL,
1063 .slaves = omap44xx_dmic_slaves,
1064 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
1068 * 'dsp' class
1069 * dsp sub-system
1072 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
1073 .name = "dsp",
1076 /* dsp */
1077 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
1078 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
1079 { .irq = -1 }
1082 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
1083 { .name = "dsp", .rst_shift = 0 },
1084 { .name = "mmu_cache", .rst_shift = 1 },
1087 /* dsp -> iva */
1088 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
1089 .master = &omap44xx_dsp_hwmod,
1090 .slave = &omap44xx_iva_hwmod,
1091 .clk = "dpll_iva_m5x2_ck",
1092 .user = OCP_USER_DSP,
1095 /* dsp master ports */
1096 static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
1097 &omap44xx_dsp__l3_main_1,
1098 &omap44xx_dsp__l4_abe,
1099 &omap44xx_dsp__iva,
1102 /* l4_cfg -> dsp */
1103 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
1104 .master = &omap44xx_l4_cfg_hwmod,
1105 .slave = &omap44xx_dsp_hwmod,
1106 .clk = "l4_div_ck",
1107 .user = OCP_USER_MPU | OCP_USER_SDMA,
1110 /* dsp slave ports */
1111 static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
1112 &omap44xx_l4_cfg__dsp,
1115 static struct omap_hwmod omap44xx_dsp_hwmod = {
1116 .name = "dsp",
1117 .class = &omap44xx_dsp_hwmod_class,
1118 .clkdm_name = "tesla_clkdm",
1119 .mpu_irqs = omap44xx_dsp_irqs,
1120 .rst_lines = omap44xx_dsp_resets,
1121 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1122 .main_clk = "dsp_fck",
1123 .prcm = {
1124 .omap4 = {
1125 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
1126 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
1127 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
1128 .modulemode = MODULEMODE_HWCTRL,
1131 .slaves = omap44xx_dsp_slaves,
1132 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1133 .masters = omap44xx_dsp_masters,
1134 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
1138 * 'dss' class
1139 * display sub-system
1142 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1143 .rev_offs = 0x0000,
1144 .syss_offs = 0x0014,
1145 .sysc_flags = SYSS_HAS_RESET_STATUS,
1148 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1149 .name = "dss",
1150 .sysc = &omap44xx_dss_sysc,
1151 .reset = omap_dss_reset,
1154 /* dss */
1155 /* dss master ports */
1156 static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1157 &omap44xx_dss__l3_main_1,
1160 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1162 .pa_start = 0x58000000,
1163 .pa_end = 0x5800007f,
1164 .flags = ADDR_TYPE_RT
1169 /* l3_main_2 -> dss */
1170 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
1171 .master = &omap44xx_l3_main_2_hwmod,
1172 .slave = &omap44xx_dss_hwmod,
1173 .clk = "dss_fck",
1174 .addr = omap44xx_dss_dma_addrs,
1175 .user = OCP_USER_SDMA,
1178 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1180 .pa_start = 0x48040000,
1181 .pa_end = 0x4804007f,
1182 .flags = ADDR_TYPE_RT
1187 /* l4_per -> dss */
1188 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
1189 .master = &omap44xx_l4_per_hwmod,
1190 .slave = &omap44xx_dss_hwmod,
1191 .clk = "l4_div_ck",
1192 .addr = omap44xx_dss_addrs,
1193 .user = OCP_USER_MPU,
1196 /* dss slave ports */
1197 static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1198 &omap44xx_l3_main_2__dss,
1199 &omap44xx_l4_per__dss,
1202 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1203 { .role = "sys_clk", .clk = "dss_sys_clk" },
1204 { .role = "tv_clk", .clk = "dss_tv_clk" },
1205 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
1208 static struct omap_hwmod omap44xx_dss_hwmod = {
1209 .name = "dss_core",
1210 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1211 .class = &omap44xx_dss_hwmod_class,
1212 .clkdm_name = "l3_dss_clkdm",
1213 .main_clk = "dss_dss_clk",
1214 .prcm = {
1215 .omap4 = {
1216 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1217 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1220 .opt_clks = dss_opt_clks,
1221 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1222 .slaves = omap44xx_dss_slaves,
1223 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1224 .masters = omap44xx_dss_masters,
1225 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
1229 * 'dispc' class
1230 * display controller
1233 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1234 .rev_offs = 0x0000,
1235 .sysc_offs = 0x0010,
1236 .syss_offs = 0x0014,
1237 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1238 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1239 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1240 SYSS_HAS_RESET_STATUS),
1241 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1242 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1243 .sysc_fields = &omap_hwmod_sysc_type1,
1246 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1247 .name = "dispc",
1248 .sysc = &omap44xx_dispc_sysc,
1251 /* dss_dispc */
1252 static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1253 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1254 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
1255 { .irq = -1 }
1258 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
1259 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
1260 { .dma_req = -1 }
1263 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
1265 .pa_start = 0x58001000,
1266 .pa_end = 0x58001fff,
1267 .flags = ADDR_TYPE_RT
1272 /* l3_main_2 -> dss_dispc */
1273 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1274 .master = &omap44xx_l3_main_2_hwmod,
1275 .slave = &omap44xx_dss_dispc_hwmod,
1276 .clk = "dss_fck",
1277 .addr = omap44xx_dss_dispc_dma_addrs,
1278 .user = OCP_USER_SDMA,
1281 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
1283 .pa_start = 0x48041000,
1284 .pa_end = 0x48041fff,
1285 .flags = ADDR_TYPE_RT
1290 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
1291 .manager_count = 3,
1292 .has_framedonetv_irq = 1
1295 /* l4_per -> dss_dispc */
1296 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1297 .master = &omap44xx_l4_per_hwmod,
1298 .slave = &omap44xx_dss_dispc_hwmod,
1299 .clk = "l4_div_ck",
1300 .addr = omap44xx_dss_dispc_addrs,
1301 .user = OCP_USER_MPU,
1304 /* dss_dispc slave ports */
1305 static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
1306 &omap44xx_l3_main_2__dss_dispc,
1307 &omap44xx_l4_per__dss_dispc,
1310 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
1311 .name = "dss_dispc",
1312 .class = &omap44xx_dispc_hwmod_class,
1313 .clkdm_name = "l3_dss_clkdm",
1314 .mpu_irqs = omap44xx_dss_dispc_irqs,
1315 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
1316 .main_clk = "dss_dss_clk",
1317 .prcm = {
1318 .omap4 = {
1319 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1320 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1323 .slaves = omap44xx_dss_dispc_slaves,
1324 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
1325 .dev_attr = &omap44xx_dss_dispc_dev_attr
1329 * 'dsi' class
1330 * display serial interface controller
1333 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1334 .rev_offs = 0x0000,
1335 .sysc_offs = 0x0010,
1336 .syss_offs = 0x0014,
1337 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1338 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1339 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1340 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1341 .sysc_fields = &omap_hwmod_sysc_type1,
1344 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1345 .name = "dsi",
1346 .sysc = &omap44xx_dsi_sysc,
1349 /* dss_dsi1 */
1350 static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1351 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1352 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
1353 { .irq = -1 }
1356 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
1357 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
1358 { .dma_req = -1 }
1361 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
1363 .pa_start = 0x58004000,
1364 .pa_end = 0x580041ff,
1365 .flags = ADDR_TYPE_RT
1370 /* l3_main_2 -> dss_dsi1 */
1371 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1372 .master = &omap44xx_l3_main_2_hwmod,
1373 .slave = &omap44xx_dss_dsi1_hwmod,
1374 .clk = "dss_fck",
1375 .addr = omap44xx_dss_dsi1_dma_addrs,
1376 .user = OCP_USER_SDMA,
1379 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
1381 .pa_start = 0x48044000,
1382 .pa_end = 0x480441ff,
1383 .flags = ADDR_TYPE_RT
1388 /* l4_per -> dss_dsi1 */
1389 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1390 .master = &omap44xx_l4_per_hwmod,
1391 .slave = &omap44xx_dss_dsi1_hwmod,
1392 .clk = "l4_div_ck",
1393 .addr = omap44xx_dss_dsi1_addrs,
1394 .user = OCP_USER_MPU,
1397 /* dss_dsi1 slave ports */
1398 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
1399 &omap44xx_l3_main_2__dss_dsi1,
1400 &omap44xx_l4_per__dss_dsi1,
1403 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
1404 { .role = "sys_clk", .clk = "dss_sys_clk" },
1407 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
1408 .name = "dss_dsi1",
1409 .class = &omap44xx_dsi_hwmod_class,
1410 .clkdm_name = "l3_dss_clkdm",
1411 .mpu_irqs = omap44xx_dss_dsi1_irqs,
1412 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
1413 .main_clk = "dss_dss_clk",
1414 .prcm = {
1415 .omap4 = {
1416 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1417 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1420 .opt_clks = dss_dsi1_opt_clks,
1421 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
1422 .slaves = omap44xx_dss_dsi1_slaves,
1423 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
1426 /* dss_dsi2 */
1427 static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1428 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1429 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
1430 { .irq = -1 }
1433 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
1434 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
1435 { .dma_req = -1 }
1438 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
1440 .pa_start = 0x58005000,
1441 .pa_end = 0x580051ff,
1442 .flags = ADDR_TYPE_RT
1447 /* l3_main_2 -> dss_dsi2 */
1448 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1449 .master = &omap44xx_l3_main_2_hwmod,
1450 .slave = &omap44xx_dss_dsi2_hwmod,
1451 .clk = "dss_fck",
1452 .addr = omap44xx_dss_dsi2_dma_addrs,
1453 .user = OCP_USER_SDMA,
1456 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
1458 .pa_start = 0x48045000,
1459 .pa_end = 0x480451ff,
1460 .flags = ADDR_TYPE_RT
1465 /* l4_per -> dss_dsi2 */
1466 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1467 .master = &omap44xx_l4_per_hwmod,
1468 .slave = &omap44xx_dss_dsi2_hwmod,
1469 .clk = "l4_div_ck",
1470 .addr = omap44xx_dss_dsi2_addrs,
1471 .user = OCP_USER_MPU,
1474 /* dss_dsi2 slave ports */
1475 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
1476 &omap44xx_l3_main_2__dss_dsi2,
1477 &omap44xx_l4_per__dss_dsi2,
1480 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
1481 { .role = "sys_clk", .clk = "dss_sys_clk" },
1484 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
1485 .name = "dss_dsi2",
1486 .class = &omap44xx_dsi_hwmod_class,
1487 .clkdm_name = "l3_dss_clkdm",
1488 .mpu_irqs = omap44xx_dss_dsi2_irqs,
1489 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
1490 .main_clk = "dss_dss_clk",
1491 .prcm = {
1492 .omap4 = {
1493 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1494 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1497 .opt_clks = dss_dsi2_opt_clks,
1498 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
1499 .slaves = omap44xx_dss_dsi2_slaves,
1500 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
1504 * 'hdmi' class
1505 * hdmi controller
1508 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1509 .rev_offs = 0x0000,
1510 .sysc_offs = 0x0010,
1511 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1512 SYSC_HAS_SOFTRESET),
1513 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1514 SIDLE_SMART_WKUP),
1515 .sysc_fields = &omap_hwmod_sysc_type2,
1518 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1519 .name = "hdmi",
1520 .sysc = &omap44xx_hdmi_sysc,
1523 /* dss_hdmi */
1524 static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1525 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1526 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
1527 { .irq = -1 }
1530 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
1531 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
1532 { .dma_req = -1 }
1535 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
1537 .pa_start = 0x58006000,
1538 .pa_end = 0x58006fff,
1539 .flags = ADDR_TYPE_RT
1544 /* l3_main_2 -> dss_hdmi */
1545 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1546 .master = &omap44xx_l3_main_2_hwmod,
1547 .slave = &omap44xx_dss_hdmi_hwmod,
1548 .clk = "dss_fck",
1549 .addr = omap44xx_dss_hdmi_dma_addrs,
1550 .user = OCP_USER_SDMA,
1553 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
1555 .pa_start = 0x48046000,
1556 .pa_end = 0x48046fff,
1557 .flags = ADDR_TYPE_RT
1562 /* l4_per -> dss_hdmi */
1563 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1564 .master = &omap44xx_l4_per_hwmod,
1565 .slave = &omap44xx_dss_hdmi_hwmod,
1566 .clk = "l4_div_ck",
1567 .addr = omap44xx_dss_hdmi_addrs,
1568 .user = OCP_USER_MPU,
1571 /* dss_hdmi slave ports */
1572 static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
1573 &omap44xx_l3_main_2__dss_hdmi,
1574 &omap44xx_l4_per__dss_hdmi,
1577 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
1578 { .role = "sys_clk", .clk = "dss_sys_clk" },
1581 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
1582 .name = "dss_hdmi",
1583 .class = &omap44xx_hdmi_hwmod_class,
1584 .clkdm_name = "l3_dss_clkdm",
1585 .mpu_irqs = omap44xx_dss_hdmi_irqs,
1586 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
1587 .main_clk = "dss_48mhz_clk",
1588 .prcm = {
1589 .omap4 = {
1590 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1591 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1594 .opt_clks = dss_hdmi_opt_clks,
1595 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
1596 .slaves = omap44xx_dss_hdmi_slaves,
1597 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
1601 * 'rfbi' class
1602 * remote frame buffer interface
1605 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1606 .rev_offs = 0x0000,
1607 .sysc_offs = 0x0010,
1608 .syss_offs = 0x0014,
1609 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1610 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1611 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1612 .sysc_fields = &omap_hwmod_sysc_type1,
1615 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1616 .name = "rfbi",
1617 .sysc = &omap44xx_rfbi_sysc,
1620 /* dss_rfbi */
1621 static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1622 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1623 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
1624 { .dma_req = -1 }
1627 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1629 .pa_start = 0x58002000,
1630 .pa_end = 0x580020ff,
1631 .flags = ADDR_TYPE_RT
1636 /* l3_main_2 -> dss_rfbi */
1637 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
1638 .master = &omap44xx_l3_main_2_hwmod,
1639 .slave = &omap44xx_dss_rfbi_hwmod,
1640 .clk = "dss_fck",
1641 .addr = omap44xx_dss_rfbi_dma_addrs,
1642 .user = OCP_USER_SDMA,
1645 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1647 .pa_start = 0x48042000,
1648 .pa_end = 0x480420ff,
1649 .flags = ADDR_TYPE_RT
1654 /* l4_per -> dss_rfbi */
1655 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
1656 .master = &omap44xx_l4_per_hwmod,
1657 .slave = &omap44xx_dss_rfbi_hwmod,
1658 .clk = "l4_div_ck",
1659 .addr = omap44xx_dss_rfbi_addrs,
1660 .user = OCP_USER_MPU,
1663 /* dss_rfbi slave ports */
1664 static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1665 &omap44xx_l3_main_2__dss_rfbi,
1666 &omap44xx_l4_per__dss_rfbi,
1669 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
1670 { .role = "ick", .clk = "dss_fck" },
1673 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1674 .name = "dss_rfbi",
1675 .class = &omap44xx_rfbi_hwmod_class,
1676 .clkdm_name = "l3_dss_clkdm",
1677 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
1678 .main_clk = "dss_dss_clk",
1679 .prcm = {
1680 .omap4 = {
1681 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1682 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1685 .opt_clks = dss_rfbi_opt_clks,
1686 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
1687 .slaves = omap44xx_dss_rfbi_slaves,
1688 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
1692 * 'venc' class
1693 * video encoder
1696 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1697 .name = "venc",
1700 /* dss_venc */
1701 static struct omap_hwmod omap44xx_dss_venc_hwmod;
1702 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1704 .pa_start = 0x58003000,
1705 .pa_end = 0x580030ff,
1706 .flags = ADDR_TYPE_RT
1711 /* l3_main_2 -> dss_venc */
1712 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
1713 .master = &omap44xx_l3_main_2_hwmod,
1714 .slave = &omap44xx_dss_venc_hwmod,
1715 .clk = "dss_fck",
1716 .addr = omap44xx_dss_venc_dma_addrs,
1717 .user = OCP_USER_SDMA,
1720 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1722 .pa_start = 0x48043000,
1723 .pa_end = 0x480430ff,
1724 .flags = ADDR_TYPE_RT
1729 /* l4_per -> dss_venc */
1730 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
1731 .master = &omap44xx_l4_per_hwmod,
1732 .slave = &omap44xx_dss_venc_hwmod,
1733 .clk = "l4_div_ck",
1734 .addr = omap44xx_dss_venc_addrs,
1735 .user = OCP_USER_MPU,
1738 /* dss_venc slave ports */
1739 static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1740 &omap44xx_l3_main_2__dss_venc,
1741 &omap44xx_l4_per__dss_venc,
1744 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1745 .name = "dss_venc",
1746 .class = &omap44xx_venc_hwmod_class,
1747 .clkdm_name = "l3_dss_clkdm",
1748 .main_clk = "dss_tv_clk",
1749 .prcm = {
1750 .omap4 = {
1751 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
1752 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
1755 .slaves = omap44xx_dss_venc_slaves,
1756 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
1760 * 'gpio' class
1761 * general purpose io module
1764 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1765 .rev_offs = 0x0000,
1766 .sysc_offs = 0x0010,
1767 .syss_offs = 0x0114,
1768 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1769 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1770 SYSS_HAS_RESET_STATUS),
1771 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1772 SIDLE_SMART_WKUP),
1773 .sysc_fields = &omap_hwmod_sysc_type1,
1776 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1777 .name = "gpio",
1778 .sysc = &omap44xx_gpio_sysc,
1779 .rev = 2,
1782 /* gpio dev_attr */
1783 static struct omap_gpio_dev_attr gpio_dev_attr = {
1784 .bank_width = 32,
1785 .dbck_flag = true,
1788 /* gpio1 */
1789 static struct omap_hwmod omap44xx_gpio1_hwmod;
1790 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1791 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
1792 { .irq = -1 }
1795 static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
1797 .pa_start = 0x4a310000,
1798 .pa_end = 0x4a3101ff,
1799 .flags = ADDR_TYPE_RT
1804 /* l4_wkup -> gpio1 */
1805 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1806 .master = &omap44xx_l4_wkup_hwmod,
1807 .slave = &omap44xx_gpio1_hwmod,
1808 .clk = "l4_wkup_clk_mux_ck",
1809 .addr = omap44xx_gpio1_addrs,
1810 .user = OCP_USER_MPU | OCP_USER_SDMA,
1813 /* gpio1 slave ports */
1814 static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
1815 &omap44xx_l4_wkup__gpio1,
1818 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1819 { .role = "dbclk", .clk = "gpio1_dbclk" },
1822 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1823 .name = "gpio1",
1824 .class = &omap44xx_gpio_hwmod_class,
1825 .clkdm_name = "l4_wkup_clkdm",
1826 .mpu_irqs = omap44xx_gpio1_irqs,
1827 .main_clk = "gpio1_ick",
1828 .prcm = {
1829 .omap4 = {
1830 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
1831 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
1832 .modulemode = MODULEMODE_HWCTRL,
1835 .opt_clks = gpio1_opt_clks,
1836 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1837 .dev_attr = &gpio_dev_attr,
1838 .slaves = omap44xx_gpio1_slaves,
1839 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
1842 /* gpio2 */
1843 static struct omap_hwmod omap44xx_gpio2_hwmod;
1844 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1845 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
1846 { .irq = -1 }
1849 static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
1851 .pa_start = 0x48055000,
1852 .pa_end = 0x480551ff,
1853 .flags = ADDR_TYPE_RT
1858 /* l4_per -> gpio2 */
1859 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1860 .master = &omap44xx_l4_per_hwmod,
1861 .slave = &omap44xx_gpio2_hwmod,
1862 .clk = "l4_div_ck",
1863 .addr = omap44xx_gpio2_addrs,
1864 .user = OCP_USER_MPU | OCP_USER_SDMA,
1867 /* gpio2 slave ports */
1868 static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
1869 &omap44xx_l4_per__gpio2,
1872 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1873 { .role = "dbclk", .clk = "gpio2_dbclk" },
1876 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1877 .name = "gpio2",
1878 .class = &omap44xx_gpio_hwmod_class,
1879 .clkdm_name = "l4_per_clkdm",
1880 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1881 .mpu_irqs = omap44xx_gpio2_irqs,
1882 .main_clk = "gpio2_ick",
1883 .prcm = {
1884 .omap4 = {
1885 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
1886 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
1887 .modulemode = MODULEMODE_HWCTRL,
1890 .opt_clks = gpio2_opt_clks,
1891 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1892 .dev_attr = &gpio_dev_attr,
1893 .slaves = omap44xx_gpio2_slaves,
1894 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
1897 /* gpio3 */
1898 static struct omap_hwmod omap44xx_gpio3_hwmod;
1899 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1900 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
1901 { .irq = -1 }
1904 static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
1906 .pa_start = 0x48057000,
1907 .pa_end = 0x480571ff,
1908 .flags = ADDR_TYPE_RT
1913 /* l4_per -> gpio3 */
1914 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1915 .master = &omap44xx_l4_per_hwmod,
1916 .slave = &omap44xx_gpio3_hwmod,
1917 .clk = "l4_div_ck",
1918 .addr = omap44xx_gpio3_addrs,
1919 .user = OCP_USER_MPU | OCP_USER_SDMA,
1922 /* gpio3 slave ports */
1923 static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
1924 &omap44xx_l4_per__gpio3,
1927 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1928 { .role = "dbclk", .clk = "gpio3_dbclk" },
1931 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1932 .name = "gpio3",
1933 .class = &omap44xx_gpio_hwmod_class,
1934 .clkdm_name = "l4_per_clkdm",
1935 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1936 .mpu_irqs = omap44xx_gpio3_irqs,
1937 .main_clk = "gpio3_ick",
1938 .prcm = {
1939 .omap4 = {
1940 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
1941 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
1942 .modulemode = MODULEMODE_HWCTRL,
1945 .opt_clks = gpio3_opt_clks,
1946 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1947 .dev_attr = &gpio_dev_attr,
1948 .slaves = omap44xx_gpio3_slaves,
1949 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
1952 /* gpio4 */
1953 static struct omap_hwmod omap44xx_gpio4_hwmod;
1954 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1955 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
1956 { .irq = -1 }
1959 static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
1961 .pa_start = 0x48059000,
1962 .pa_end = 0x480591ff,
1963 .flags = ADDR_TYPE_RT
1968 /* l4_per -> gpio4 */
1969 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
1970 .master = &omap44xx_l4_per_hwmod,
1971 .slave = &omap44xx_gpio4_hwmod,
1972 .clk = "l4_div_ck",
1973 .addr = omap44xx_gpio4_addrs,
1974 .user = OCP_USER_MPU | OCP_USER_SDMA,
1977 /* gpio4 slave ports */
1978 static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
1979 &omap44xx_l4_per__gpio4,
1982 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1983 { .role = "dbclk", .clk = "gpio4_dbclk" },
1986 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1987 .name = "gpio4",
1988 .class = &omap44xx_gpio_hwmod_class,
1989 .clkdm_name = "l4_per_clkdm",
1990 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1991 .mpu_irqs = omap44xx_gpio4_irqs,
1992 .main_clk = "gpio4_ick",
1993 .prcm = {
1994 .omap4 = {
1995 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
1996 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
1997 .modulemode = MODULEMODE_HWCTRL,
2000 .opt_clks = gpio4_opt_clks,
2001 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
2002 .dev_attr = &gpio_dev_attr,
2003 .slaves = omap44xx_gpio4_slaves,
2004 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
2007 /* gpio5 */
2008 static struct omap_hwmod omap44xx_gpio5_hwmod;
2009 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
2010 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
2011 { .irq = -1 }
2014 static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
2016 .pa_start = 0x4805b000,
2017 .pa_end = 0x4805b1ff,
2018 .flags = ADDR_TYPE_RT
2023 /* l4_per -> gpio5 */
2024 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
2025 .master = &omap44xx_l4_per_hwmod,
2026 .slave = &omap44xx_gpio5_hwmod,
2027 .clk = "l4_div_ck",
2028 .addr = omap44xx_gpio5_addrs,
2029 .user = OCP_USER_MPU | OCP_USER_SDMA,
2032 /* gpio5 slave ports */
2033 static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
2034 &omap44xx_l4_per__gpio5,
2037 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
2038 { .role = "dbclk", .clk = "gpio5_dbclk" },
2041 static struct omap_hwmod omap44xx_gpio5_hwmod = {
2042 .name = "gpio5",
2043 .class = &omap44xx_gpio_hwmod_class,
2044 .clkdm_name = "l4_per_clkdm",
2045 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2046 .mpu_irqs = omap44xx_gpio5_irqs,
2047 .main_clk = "gpio5_ick",
2048 .prcm = {
2049 .omap4 = {
2050 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
2051 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
2052 .modulemode = MODULEMODE_HWCTRL,
2055 .opt_clks = gpio5_opt_clks,
2056 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
2057 .dev_attr = &gpio_dev_attr,
2058 .slaves = omap44xx_gpio5_slaves,
2059 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
2062 /* gpio6 */
2063 static struct omap_hwmod omap44xx_gpio6_hwmod;
2064 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
2065 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
2066 { .irq = -1 }
2069 static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
2071 .pa_start = 0x4805d000,
2072 .pa_end = 0x4805d1ff,
2073 .flags = ADDR_TYPE_RT
2078 /* l4_per -> gpio6 */
2079 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
2080 .master = &omap44xx_l4_per_hwmod,
2081 .slave = &omap44xx_gpio6_hwmod,
2082 .clk = "l4_div_ck",
2083 .addr = omap44xx_gpio6_addrs,
2084 .user = OCP_USER_MPU | OCP_USER_SDMA,
2087 /* gpio6 slave ports */
2088 static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
2089 &omap44xx_l4_per__gpio6,
2092 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
2093 { .role = "dbclk", .clk = "gpio6_dbclk" },
2096 static struct omap_hwmod omap44xx_gpio6_hwmod = {
2097 .name = "gpio6",
2098 .class = &omap44xx_gpio_hwmod_class,
2099 .clkdm_name = "l4_per_clkdm",
2100 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2101 .mpu_irqs = omap44xx_gpio6_irqs,
2102 .main_clk = "gpio6_ick",
2103 .prcm = {
2104 .omap4 = {
2105 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
2106 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
2107 .modulemode = MODULEMODE_HWCTRL,
2110 .opt_clks = gpio6_opt_clks,
2111 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2112 .dev_attr = &gpio_dev_attr,
2113 .slaves = omap44xx_gpio6_slaves,
2114 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
2118 * 'hsi' class
2119 * mipi high-speed synchronous serial interface (multichannel and full-duplex
2120 * serial if)
2123 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2124 .rev_offs = 0x0000,
2125 .sysc_offs = 0x0010,
2126 .syss_offs = 0x0014,
2127 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2128 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2129 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2130 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2131 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2132 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2133 .sysc_fields = &omap_hwmod_sysc_type1,
2136 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2137 .name = "hsi",
2138 .sysc = &omap44xx_hsi_sysc,
2141 /* hsi */
2142 static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2143 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2144 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2145 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
2146 { .irq = -1 }
2149 /* hsi master ports */
2150 static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
2151 &omap44xx_hsi__l3_main_2,
2154 static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
2156 .pa_start = 0x4a058000,
2157 .pa_end = 0x4a05bfff,
2158 .flags = ADDR_TYPE_RT
2163 /* l4_cfg -> hsi */
2164 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2165 .master = &omap44xx_l4_cfg_hwmod,
2166 .slave = &omap44xx_hsi_hwmod,
2167 .clk = "l4_div_ck",
2168 .addr = omap44xx_hsi_addrs,
2169 .user = OCP_USER_MPU | OCP_USER_SDMA,
2172 /* hsi slave ports */
2173 static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
2174 &omap44xx_l4_cfg__hsi,
2177 static struct omap_hwmod omap44xx_hsi_hwmod = {
2178 .name = "hsi",
2179 .class = &omap44xx_hsi_hwmod_class,
2180 .clkdm_name = "l3_init_clkdm",
2181 .mpu_irqs = omap44xx_hsi_irqs,
2182 .main_clk = "hsi_fck",
2183 .prcm = {
2184 .omap4 = {
2185 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
2186 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
2187 .modulemode = MODULEMODE_HWCTRL,
2190 .slaves = omap44xx_hsi_slaves,
2191 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2192 .masters = omap44xx_hsi_masters,
2193 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
2197 * 'i2c' class
2198 * multimaster high-speed i2c controller
2201 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2202 .sysc_offs = 0x0010,
2203 .syss_offs = 0x0090,
2204 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2205 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2206 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2207 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2208 SIDLE_SMART_WKUP),
2209 .clockact = CLOCKACT_TEST_ICLK,
2210 .sysc_fields = &omap_hwmod_sysc_type1,
2213 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
2214 .name = "i2c",
2215 .sysc = &omap44xx_i2c_sysc,
2216 .rev = OMAP_I2C_IP_VERSION_2,
2217 .reset = &omap_i2c_reset,
2220 static struct omap_i2c_dev_attr i2c_dev_attr = {
2221 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
2224 /* i2c1 */
2225 static struct omap_hwmod omap44xx_i2c1_hwmod;
2226 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2227 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
2228 { .irq = -1 }
2231 static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
2232 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
2233 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
2234 { .dma_req = -1 }
2237 static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
2239 .pa_start = 0x48070000,
2240 .pa_end = 0x480700ff,
2241 .flags = ADDR_TYPE_RT
2246 /* l4_per -> i2c1 */
2247 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2248 .master = &omap44xx_l4_per_hwmod,
2249 .slave = &omap44xx_i2c1_hwmod,
2250 .clk = "l4_div_ck",
2251 .addr = omap44xx_i2c1_addrs,
2252 .user = OCP_USER_MPU | OCP_USER_SDMA,
2255 /* i2c1 slave ports */
2256 static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
2257 &omap44xx_l4_per__i2c1,
2260 static struct omap_hwmod omap44xx_i2c1_hwmod = {
2261 .name = "i2c1",
2262 .class = &omap44xx_i2c_hwmod_class,
2263 .clkdm_name = "l4_per_clkdm",
2264 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
2265 .mpu_irqs = omap44xx_i2c1_irqs,
2266 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
2267 .main_clk = "i2c1_fck",
2268 .prcm = {
2269 .omap4 = {
2270 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
2271 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
2272 .modulemode = MODULEMODE_SWCTRL,
2275 .slaves = omap44xx_i2c1_slaves,
2276 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2277 .dev_attr = &i2c_dev_attr,
2280 /* i2c2 */
2281 static struct omap_hwmod omap44xx_i2c2_hwmod;
2282 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2283 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
2284 { .irq = -1 }
2287 static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
2288 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
2289 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
2290 { .dma_req = -1 }
2293 static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
2295 .pa_start = 0x48072000,
2296 .pa_end = 0x480720ff,
2297 .flags = ADDR_TYPE_RT
2302 /* l4_per -> i2c2 */
2303 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2304 .master = &omap44xx_l4_per_hwmod,
2305 .slave = &omap44xx_i2c2_hwmod,
2306 .clk = "l4_div_ck",
2307 .addr = omap44xx_i2c2_addrs,
2308 .user = OCP_USER_MPU | OCP_USER_SDMA,
2311 /* i2c2 slave ports */
2312 static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
2313 &omap44xx_l4_per__i2c2,
2316 static struct omap_hwmod omap44xx_i2c2_hwmod = {
2317 .name = "i2c2",
2318 .class = &omap44xx_i2c_hwmod_class,
2319 .clkdm_name = "l4_per_clkdm",
2320 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
2321 .mpu_irqs = omap44xx_i2c2_irqs,
2322 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
2323 .main_clk = "i2c2_fck",
2324 .prcm = {
2325 .omap4 = {
2326 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
2327 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
2328 .modulemode = MODULEMODE_SWCTRL,
2331 .slaves = omap44xx_i2c2_slaves,
2332 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2333 .dev_attr = &i2c_dev_attr,
2336 /* i2c3 */
2337 static struct omap_hwmod omap44xx_i2c3_hwmod;
2338 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2339 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
2340 { .irq = -1 }
2343 static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
2344 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
2345 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
2346 { .dma_req = -1 }
2349 static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
2351 .pa_start = 0x48060000,
2352 .pa_end = 0x480600ff,
2353 .flags = ADDR_TYPE_RT
2358 /* l4_per -> i2c3 */
2359 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2360 .master = &omap44xx_l4_per_hwmod,
2361 .slave = &omap44xx_i2c3_hwmod,
2362 .clk = "l4_div_ck",
2363 .addr = omap44xx_i2c3_addrs,
2364 .user = OCP_USER_MPU | OCP_USER_SDMA,
2367 /* i2c3 slave ports */
2368 static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
2369 &omap44xx_l4_per__i2c3,
2372 static struct omap_hwmod omap44xx_i2c3_hwmod = {
2373 .name = "i2c3",
2374 .class = &omap44xx_i2c_hwmod_class,
2375 .clkdm_name = "l4_per_clkdm",
2376 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
2377 .mpu_irqs = omap44xx_i2c3_irqs,
2378 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
2379 .main_clk = "i2c3_fck",
2380 .prcm = {
2381 .omap4 = {
2382 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
2383 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
2384 .modulemode = MODULEMODE_SWCTRL,
2387 .slaves = omap44xx_i2c3_slaves,
2388 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2389 .dev_attr = &i2c_dev_attr,
2392 /* i2c4 */
2393 static struct omap_hwmod omap44xx_i2c4_hwmod;
2394 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2395 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
2396 { .irq = -1 }
2399 static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
2400 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
2401 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
2402 { .dma_req = -1 }
2405 static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
2407 .pa_start = 0x48350000,
2408 .pa_end = 0x483500ff,
2409 .flags = ADDR_TYPE_RT
2414 /* l4_per -> i2c4 */
2415 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2416 .master = &omap44xx_l4_per_hwmod,
2417 .slave = &omap44xx_i2c4_hwmod,
2418 .clk = "l4_div_ck",
2419 .addr = omap44xx_i2c4_addrs,
2420 .user = OCP_USER_MPU | OCP_USER_SDMA,
2423 /* i2c4 slave ports */
2424 static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
2425 &omap44xx_l4_per__i2c4,
2428 static struct omap_hwmod omap44xx_i2c4_hwmod = {
2429 .name = "i2c4",
2430 .class = &omap44xx_i2c_hwmod_class,
2431 .clkdm_name = "l4_per_clkdm",
2432 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
2433 .mpu_irqs = omap44xx_i2c4_irqs,
2434 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
2435 .main_clk = "i2c4_fck",
2436 .prcm = {
2437 .omap4 = {
2438 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
2439 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
2440 .modulemode = MODULEMODE_SWCTRL,
2443 .slaves = omap44xx_i2c4_slaves,
2444 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2445 .dev_attr = &i2c_dev_attr,
2449 * 'ipu' class
2450 * imaging processor unit
2453 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2454 .name = "ipu",
2457 /* ipu */
2458 static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2459 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
2460 { .irq = -1 }
2463 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
2464 { .name = "cpu0", .rst_shift = 0 },
2465 { .name = "cpu1", .rst_shift = 1 },
2466 { .name = "mmu_cache", .rst_shift = 2 },
2469 /* ipu master ports */
2470 static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
2471 &omap44xx_ipu__l3_main_2,
2474 /* l3_main_2 -> ipu */
2475 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2476 .master = &omap44xx_l3_main_2_hwmod,
2477 .slave = &omap44xx_ipu_hwmod,
2478 .clk = "l3_div_ck",
2479 .user = OCP_USER_MPU | OCP_USER_SDMA,
2482 /* ipu slave ports */
2483 static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
2484 &omap44xx_l3_main_2__ipu,
2487 static struct omap_hwmod omap44xx_ipu_hwmod = {
2488 .name = "ipu",
2489 .class = &omap44xx_ipu_hwmod_class,
2490 .clkdm_name = "ducati_clkdm",
2491 .mpu_irqs = omap44xx_ipu_irqs,
2492 .rst_lines = omap44xx_ipu_resets,
2493 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2494 .main_clk = "ipu_fck",
2495 .prcm = {
2496 .omap4 = {
2497 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2498 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2499 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2500 .modulemode = MODULEMODE_HWCTRL,
2503 .slaves = omap44xx_ipu_slaves,
2504 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2505 .masters = omap44xx_ipu_masters,
2506 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
2510 * 'iss' class
2511 * external images sensor pixel data processor
2514 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2515 .rev_offs = 0x0000,
2516 .sysc_offs = 0x0010,
2518 * ISS needs 100 OCP clk cycles delay after a softreset before
2519 * accessing sysconfig again.
2520 * The lowest frequency at the moment for L3 bus is 100 MHz, so
2521 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
2523 * TODO: Indicate errata when available.
2525 .srst_udelay = 2,
2526 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2527 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2528 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2529 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2530 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2531 .sysc_fields = &omap_hwmod_sysc_type2,
2534 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2535 .name = "iss",
2536 .sysc = &omap44xx_iss_sysc,
2539 /* iss */
2540 static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2541 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
2542 { .irq = -1 }
2545 static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
2546 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
2547 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
2548 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
2549 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
2550 { .dma_req = -1 }
2553 /* iss master ports */
2554 static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
2555 &omap44xx_iss__l3_main_2,
2558 static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
2560 .pa_start = 0x52000000,
2561 .pa_end = 0x520000ff,
2562 .flags = ADDR_TYPE_RT
2567 /* l3_main_2 -> iss */
2568 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2569 .master = &omap44xx_l3_main_2_hwmod,
2570 .slave = &omap44xx_iss_hwmod,
2571 .clk = "l3_div_ck",
2572 .addr = omap44xx_iss_addrs,
2573 .user = OCP_USER_MPU | OCP_USER_SDMA,
2576 /* iss slave ports */
2577 static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
2578 &omap44xx_l3_main_2__iss,
2581 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
2582 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
2585 static struct omap_hwmod omap44xx_iss_hwmod = {
2586 .name = "iss",
2587 .class = &omap44xx_iss_hwmod_class,
2588 .clkdm_name = "iss_clkdm",
2589 .mpu_irqs = omap44xx_iss_irqs,
2590 .sdma_reqs = omap44xx_iss_sdma_reqs,
2591 .main_clk = "iss_fck",
2592 .prcm = {
2593 .omap4 = {
2594 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
2595 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
2596 .modulemode = MODULEMODE_SWCTRL,
2599 .opt_clks = iss_opt_clks,
2600 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2601 .slaves = omap44xx_iss_slaves,
2602 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2603 .masters = omap44xx_iss_masters,
2604 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
2608 * 'iva' class
2609 * multi-standard video encoder/decoder hardware accelerator
2612 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
2613 .name = "iva",
2616 /* iva */
2617 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2618 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2619 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2620 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
2621 { .irq = -1 }
2624 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
2625 { .name = "seq0", .rst_shift = 0 },
2626 { .name = "seq1", .rst_shift = 1 },
2627 { .name = "logic", .rst_shift = 2 },
2630 /* iva master ports */
2631 static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
2632 &omap44xx_iva__l3_main_2,
2633 &omap44xx_iva__l3_instr,
2636 static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
2638 .pa_start = 0x5a000000,
2639 .pa_end = 0x5a07ffff,
2640 .flags = ADDR_TYPE_RT
2645 /* l3_main_2 -> iva */
2646 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2647 .master = &omap44xx_l3_main_2_hwmod,
2648 .slave = &omap44xx_iva_hwmod,
2649 .clk = "l3_div_ck",
2650 .addr = omap44xx_iva_addrs,
2651 .user = OCP_USER_MPU,
2654 /* iva slave ports */
2655 static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
2656 &omap44xx_dsp__iva,
2657 &omap44xx_l3_main_2__iva,
2660 static struct omap_hwmod omap44xx_iva_hwmod = {
2661 .name = "iva",
2662 .class = &omap44xx_iva_hwmod_class,
2663 .clkdm_name = "ivahd_clkdm",
2664 .mpu_irqs = omap44xx_iva_irqs,
2665 .rst_lines = omap44xx_iva_resets,
2666 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2667 .main_clk = "iva_fck",
2668 .prcm = {
2669 .omap4 = {
2670 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
2671 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
2672 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
2673 .modulemode = MODULEMODE_HWCTRL,
2676 .slaves = omap44xx_iva_slaves,
2677 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2678 .masters = omap44xx_iva_masters,
2679 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
2683 * 'kbd' class
2684 * keyboard controller
2687 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2688 .rev_offs = 0x0000,
2689 .sysc_offs = 0x0010,
2690 .syss_offs = 0x0014,
2691 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2692 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2693 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2694 SYSS_HAS_RESET_STATUS),
2695 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2696 .sysc_fields = &omap_hwmod_sysc_type1,
2699 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2700 .name = "kbd",
2701 .sysc = &omap44xx_kbd_sysc,
2704 /* kbd */
2705 static struct omap_hwmod omap44xx_kbd_hwmod;
2706 static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2707 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
2708 { .irq = -1 }
2711 static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
2713 .pa_start = 0x4a31c000,
2714 .pa_end = 0x4a31c07f,
2715 .flags = ADDR_TYPE_RT
2720 /* l4_wkup -> kbd */
2721 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2722 .master = &omap44xx_l4_wkup_hwmod,
2723 .slave = &omap44xx_kbd_hwmod,
2724 .clk = "l4_wkup_clk_mux_ck",
2725 .addr = omap44xx_kbd_addrs,
2726 .user = OCP_USER_MPU | OCP_USER_SDMA,
2729 /* kbd slave ports */
2730 static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
2731 &omap44xx_l4_wkup__kbd,
2734 static struct omap_hwmod omap44xx_kbd_hwmod = {
2735 .name = "kbd",
2736 .class = &omap44xx_kbd_hwmod_class,
2737 .clkdm_name = "l4_wkup_clkdm",
2738 .mpu_irqs = omap44xx_kbd_irqs,
2739 .main_clk = "kbd_fck",
2740 .prcm = {
2741 .omap4 = {
2742 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
2743 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
2744 .modulemode = MODULEMODE_SWCTRL,
2747 .slaves = omap44xx_kbd_slaves,
2748 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
2752 * 'mailbox' class
2753 * mailbox module allowing communication between the on-chip processors using a
2754 * queued mailbox-interrupt mechanism.
2757 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2758 .rev_offs = 0x0000,
2759 .sysc_offs = 0x0010,
2760 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2761 SYSC_HAS_SOFTRESET),
2762 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2763 .sysc_fields = &omap_hwmod_sysc_type2,
2766 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2767 .name = "mailbox",
2768 .sysc = &omap44xx_mailbox_sysc,
2771 /* mailbox */
2772 static struct omap_hwmod omap44xx_mailbox_hwmod;
2773 static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2774 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
2775 { .irq = -1 }
2778 static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
2780 .pa_start = 0x4a0f4000,
2781 .pa_end = 0x4a0f41ff,
2782 .flags = ADDR_TYPE_RT
2787 /* l4_cfg -> mailbox */
2788 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2789 .master = &omap44xx_l4_cfg_hwmod,
2790 .slave = &omap44xx_mailbox_hwmod,
2791 .clk = "l4_div_ck",
2792 .addr = omap44xx_mailbox_addrs,
2793 .user = OCP_USER_MPU | OCP_USER_SDMA,
2796 /* mailbox slave ports */
2797 static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
2798 &omap44xx_l4_cfg__mailbox,
2801 static struct omap_hwmod omap44xx_mailbox_hwmod = {
2802 .name = "mailbox",
2803 .class = &omap44xx_mailbox_hwmod_class,
2804 .clkdm_name = "l4_cfg_clkdm",
2805 .mpu_irqs = omap44xx_mailbox_irqs,
2806 .prcm = {
2807 .omap4 = {
2808 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
2809 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
2812 .slaves = omap44xx_mailbox_slaves,
2813 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
2817 * 'mcbsp' class
2818 * multi channel buffered serial port controller
2821 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2822 .sysc_offs = 0x008c,
2823 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2824 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2825 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2826 .sysc_fields = &omap_hwmod_sysc_type1,
2829 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2830 .name = "mcbsp",
2831 .sysc = &omap44xx_mcbsp_sysc,
2832 .rev = MCBSP_CONFIG_TYPE4,
2835 /* mcbsp1 */
2836 static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2837 static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2838 { .irq = 17 + OMAP44XX_IRQ_GIC_START },
2839 { .irq = -1 }
2842 static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
2843 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
2844 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
2845 { .dma_req = -1 }
2848 static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
2850 .name = "mpu",
2851 .pa_start = 0x40122000,
2852 .pa_end = 0x401220ff,
2853 .flags = ADDR_TYPE_RT
2858 /* l4_abe -> mcbsp1 */
2859 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2860 .master = &omap44xx_l4_abe_hwmod,
2861 .slave = &omap44xx_mcbsp1_hwmod,
2862 .clk = "ocp_abe_iclk",
2863 .addr = omap44xx_mcbsp1_addrs,
2864 .user = OCP_USER_MPU,
2867 static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
2869 .name = "dma",
2870 .pa_start = 0x49022000,
2871 .pa_end = 0x490220ff,
2872 .flags = ADDR_TYPE_RT
2877 /* l4_abe -> mcbsp1 (dma) */
2878 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2879 .master = &omap44xx_l4_abe_hwmod,
2880 .slave = &omap44xx_mcbsp1_hwmod,
2881 .clk = "ocp_abe_iclk",
2882 .addr = omap44xx_mcbsp1_dma_addrs,
2883 .user = OCP_USER_SDMA,
2886 /* mcbsp1 slave ports */
2887 static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
2888 &omap44xx_l4_abe__mcbsp1,
2889 &omap44xx_l4_abe__mcbsp1_dma,
2892 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
2893 { .role = "pad_fck", .clk = "pad_clks_ck" },
2894 { .role = "prcm_clk", .clk = "mcbsp1_sync_mux_ck" },
2897 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
2898 .name = "mcbsp1",
2899 .class = &omap44xx_mcbsp_hwmod_class,
2900 .clkdm_name = "abe_clkdm",
2901 .mpu_irqs = omap44xx_mcbsp1_irqs,
2902 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
2903 .main_clk = "mcbsp1_fck",
2904 .prcm = {
2905 .omap4 = {
2906 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
2907 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
2908 .modulemode = MODULEMODE_SWCTRL,
2911 .slaves = omap44xx_mcbsp1_slaves,
2912 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
2913 .opt_clks = mcbsp1_opt_clks,
2914 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
2917 /* mcbsp2 */
2918 static struct omap_hwmod omap44xx_mcbsp2_hwmod;
2919 static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
2920 { .irq = 22 + OMAP44XX_IRQ_GIC_START },
2921 { .irq = -1 }
2924 static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
2925 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
2926 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
2927 { .dma_req = -1 }
2930 static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
2932 .name = "mpu",
2933 .pa_start = 0x40124000,
2934 .pa_end = 0x401240ff,
2935 .flags = ADDR_TYPE_RT
2940 /* l4_abe -> mcbsp2 */
2941 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2942 .master = &omap44xx_l4_abe_hwmod,
2943 .slave = &omap44xx_mcbsp2_hwmod,
2944 .clk = "ocp_abe_iclk",
2945 .addr = omap44xx_mcbsp2_addrs,
2946 .user = OCP_USER_MPU,
2949 static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
2951 .name = "dma",
2952 .pa_start = 0x49024000,
2953 .pa_end = 0x490240ff,
2954 .flags = ADDR_TYPE_RT
2959 /* l4_abe -> mcbsp2 (dma) */
2960 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
2961 .master = &omap44xx_l4_abe_hwmod,
2962 .slave = &omap44xx_mcbsp2_hwmod,
2963 .clk = "ocp_abe_iclk",
2964 .addr = omap44xx_mcbsp2_dma_addrs,
2965 .user = OCP_USER_SDMA,
2968 /* mcbsp2 slave ports */
2969 static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
2970 &omap44xx_l4_abe__mcbsp2,
2971 &omap44xx_l4_abe__mcbsp2_dma,
2974 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
2975 { .role = "pad_fck", .clk = "pad_clks_ck" },
2976 { .role = "prcm_clk", .clk = "mcbsp2_sync_mux_ck" },
2979 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2980 .name = "mcbsp2",
2981 .class = &omap44xx_mcbsp_hwmod_class,
2982 .clkdm_name = "abe_clkdm",
2983 .mpu_irqs = omap44xx_mcbsp2_irqs,
2984 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
2985 .main_clk = "mcbsp2_fck",
2986 .prcm = {
2987 .omap4 = {
2988 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
2989 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
2990 .modulemode = MODULEMODE_SWCTRL,
2993 .slaves = omap44xx_mcbsp2_slaves,
2994 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
2995 .opt_clks = mcbsp2_opt_clks,
2996 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
2999 /* mcbsp3 */
3000 static struct omap_hwmod omap44xx_mcbsp3_hwmod;
3001 static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
3002 { .irq = 23 + OMAP44XX_IRQ_GIC_START },
3003 { .irq = -1 }
3006 static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
3007 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
3008 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
3009 { .dma_req = -1 }
3012 static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
3014 .name = "mpu",
3015 .pa_start = 0x40126000,
3016 .pa_end = 0x401260ff,
3017 .flags = ADDR_TYPE_RT
3022 /* l4_abe -> mcbsp3 */
3023 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
3024 .master = &omap44xx_l4_abe_hwmod,
3025 .slave = &omap44xx_mcbsp3_hwmod,
3026 .clk = "ocp_abe_iclk",
3027 .addr = omap44xx_mcbsp3_addrs,
3028 .user = OCP_USER_MPU,
3031 static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
3033 .name = "dma",
3034 .pa_start = 0x49026000,
3035 .pa_end = 0x490260ff,
3036 .flags = ADDR_TYPE_RT
3041 /* l4_abe -> mcbsp3 (dma) */
3042 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
3043 .master = &omap44xx_l4_abe_hwmod,
3044 .slave = &omap44xx_mcbsp3_hwmod,
3045 .clk = "ocp_abe_iclk",
3046 .addr = omap44xx_mcbsp3_dma_addrs,
3047 .user = OCP_USER_SDMA,
3050 /* mcbsp3 slave ports */
3051 static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
3052 &omap44xx_l4_abe__mcbsp3,
3053 &omap44xx_l4_abe__mcbsp3_dma,
3056 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
3057 { .role = "pad_fck", .clk = "pad_clks_ck" },
3058 { .role = "prcm_clk", .clk = "mcbsp3_sync_mux_ck" },
3061 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
3062 .name = "mcbsp3",
3063 .class = &omap44xx_mcbsp_hwmod_class,
3064 .clkdm_name = "abe_clkdm",
3065 .mpu_irqs = omap44xx_mcbsp3_irqs,
3066 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
3067 .main_clk = "mcbsp3_fck",
3068 .prcm = {
3069 .omap4 = {
3070 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
3071 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
3072 .modulemode = MODULEMODE_SWCTRL,
3075 .slaves = omap44xx_mcbsp3_slaves,
3076 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
3077 .opt_clks = mcbsp3_opt_clks,
3078 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
3081 /* mcbsp4 */
3082 static struct omap_hwmod omap44xx_mcbsp4_hwmod;
3083 static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
3084 { .irq = 16 + OMAP44XX_IRQ_GIC_START },
3085 { .irq = -1 }
3088 static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
3089 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
3090 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
3091 { .dma_req = -1 }
3094 static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
3096 .pa_start = 0x48096000,
3097 .pa_end = 0x480960ff,
3098 .flags = ADDR_TYPE_RT
3103 /* l4_per -> mcbsp4 */
3104 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3105 .master = &omap44xx_l4_per_hwmod,
3106 .slave = &omap44xx_mcbsp4_hwmod,
3107 .clk = "l4_div_ck",
3108 .addr = omap44xx_mcbsp4_addrs,
3109 .user = OCP_USER_MPU | OCP_USER_SDMA,
3112 /* mcbsp4 slave ports */
3113 static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
3114 &omap44xx_l4_per__mcbsp4,
3117 static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
3118 { .role = "pad_fck", .clk = "pad_clks_ck" },
3119 { .role = "prcm_clk", .clk = "mcbsp4_sync_mux_ck" },
3122 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
3123 .name = "mcbsp4",
3124 .class = &omap44xx_mcbsp_hwmod_class,
3125 .clkdm_name = "l4_per_clkdm",
3126 .mpu_irqs = omap44xx_mcbsp4_irqs,
3127 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
3128 .main_clk = "mcbsp4_fck",
3129 .prcm = {
3130 .omap4 = {
3131 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
3132 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
3133 .modulemode = MODULEMODE_SWCTRL,
3136 .slaves = omap44xx_mcbsp4_slaves,
3137 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
3138 .opt_clks = mcbsp4_opt_clks,
3139 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
3143 * 'mcpdm' class
3144 * multi channel pdm controller (proprietary interface with phoenix power
3145 * ic)
3148 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3149 .rev_offs = 0x0000,
3150 .sysc_offs = 0x0010,
3151 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3152 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3153 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3154 SIDLE_SMART_WKUP),
3155 .sysc_fields = &omap_hwmod_sysc_type2,
3158 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3159 .name = "mcpdm",
3160 .sysc = &omap44xx_mcpdm_sysc,
3163 /* mcpdm */
3164 static struct omap_hwmod omap44xx_mcpdm_hwmod;
3165 static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3166 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
3167 { .irq = -1 }
3170 static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
3171 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
3172 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
3173 { .dma_req = -1 }
3176 static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
3178 .pa_start = 0x40132000,
3179 .pa_end = 0x4013207f,
3180 .flags = ADDR_TYPE_RT
3185 /* l4_abe -> mcpdm */
3186 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3187 .master = &omap44xx_l4_abe_hwmod,
3188 .slave = &omap44xx_mcpdm_hwmod,
3189 .clk = "ocp_abe_iclk",
3190 .addr = omap44xx_mcpdm_addrs,
3191 .user = OCP_USER_MPU,
3194 static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
3196 .pa_start = 0x49032000,
3197 .pa_end = 0x4903207f,
3198 .flags = ADDR_TYPE_RT
3203 /* l4_abe -> mcpdm (dma) */
3204 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3205 .master = &omap44xx_l4_abe_hwmod,
3206 .slave = &omap44xx_mcpdm_hwmod,
3207 .clk = "ocp_abe_iclk",
3208 .addr = omap44xx_mcpdm_dma_addrs,
3209 .user = OCP_USER_SDMA,
3212 /* mcpdm slave ports */
3213 static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
3214 &omap44xx_l4_abe__mcpdm,
3215 &omap44xx_l4_abe__mcpdm_dma,
3218 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
3219 .name = "mcpdm",
3220 .class = &omap44xx_mcpdm_hwmod_class,
3221 .clkdm_name = "abe_clkdm",
3222 .mpu_irqs = omap44xx_mcpdm_irqs,
3223 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
3224 .main_clk = "mcpdm_fck",
3225 .prcm = {
3226 .omap4 = {
3227 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
3228 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
3229 .modulemode = MODULEMODE_SWCTRL,
3232 .slaves = omap44xx_mcpdm_slaves,
3233 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
3237 * 'mcspi' class
3238 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3239 * bus
3242 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3243 .rev_offs = 0x0000,
3244 .sysc_offs = 0x0010,
3245 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3246 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3247 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3248 SIDLE_SMART_WKUP),
3249 .sysc_fields = &omap_hwmod_sysc_type2,
3252 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3253 .name = "mcspi",
3254 .sysc = &omap44xx_mcspi_sysc,
3255 .rev = OMAP4_MCSPI_REV,
3258 /* mcspi1 */
3259 static struct omap_hwmod omap44xx_mcspi1_hwmod;
3260 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3261 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
3262 { .irq = -1 }
3265 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
3266 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
3267 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
3268 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
3269 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
3270 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
3271 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
3272 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
3273 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
3274 { .dma_req = -1 }
3277 static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
3279 .pa_start = 0x48098000,
3280 .pa_end = 0x480981ff,
3281 .flags = ADDR_TYPE_RT
3286 /* l4_per -> mcspi1 */
3287 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3288 .master = &omap44xx_l4_per_hwmod,
3289 .slave = &omap44xx_mcspi1_hwmod,
3290 .clk = "l4_div_ck",
3291 .addr = omap44xx_mcspi1_addrs,
3292 .user = OCP_USER_MPU | OCP_USER_SDMA,
3295 /* mcspi1 slave ports */
3296 static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
3297 &omap44xx_l4_per__mcspi1,
3300 /* mcspi1 dev_attr */
3301 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
3302 .num_chipselect = 4,
3305 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
3306 .name = "mcspi1",
3307 .class = &omap44xx_mcspi_hwmod_class,
3308 .clkdm_name = "l4_per_clkdm",
3309 .mpu_irqs = omap44xx_mcspi1_irqs,
3310 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
3311 .main_clk = "mcspi1_fck",
3312 .prcm = {
3313 .omap4 = {
3314 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
3315 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
3316 .modulemode = MODULEMODE_SWCTRL,
3319 .dev_attr = &mcspi1_dev_attr,
3320 .slaves = omap44xx_mcspi1_slaves,
3321 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
3324 /* mcspi2 */
3325 static struct omap_hwmod omap44xx_mcspi2_hwmod;
3326 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3327 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
3328 { .irq = -1 }
3331 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
3332 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
3333 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
3334 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
3335 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
3336 { .dma_req = -1 }
3339 static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
3341 .pa_start = 0x4809a000,
3342 .pa_end = 0x4809a1ff,
3343 .flags = ADDR_TYPE_RT
3348 /* l4_per -> mcspi2 */
3349 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3350 .master = &omap44xx_l4_per_hwmod,
3351 .slave = &omap44xx_mcspi2_hwmod,
3352 .clk = "l4_div_ck",
3353 .addr = omap44xx_mcspi2_addrs,
3354 .user = OCP_USER_MPU | OCP_USER_SDMA,
3357 /* mcspi2 slave ports */
3358 static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
3359 &omap44xx_l4_per__mcspi2,
3362 /* mcspi2 dev_attr */
3363 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
3364 .num_chipselect = 2,
3367 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
3368 .name = "mcspi2",
3369 .class = &omap44xx_mcspi_hwmod_class,
3370 .clkdm_name = "l4_per_clkdm",
3371 .mpu_irqs = omap44xx_mcspi2_irqs,
3372 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
3373 .main_clk = "mcspi2_fck",
3374 .prcm = {
3375 .omap4 = {
3376 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
3377 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
3378 .modulemode = MODULEMODE_SWCTRL,
3381 .dev_attr = &mcspi2_dev_attr,
3382 .slaves = omap44xx_mcspi2_slaves,
3383 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
3386 /* mcspi3 */
3387 static struct omap_hwmod omap44xx_mcspi3_hwmod;
3388 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3389 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
3390 { .irq = -1 }
3393 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
3394 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
3395 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
3396 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
3397 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
3398 { .dma_req = -1 }
3401 static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
3403 .pa_start = 0x480b8000,
3404 .pa_end = 0x480b81ff,
3405 .flags = ADDR_TYPE_RT
3410 /* l4_per -> mcspi3 */
3411 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3412 .master = &omap44xx_l4_per_hwmod,
3413 .slave = &omap44xx_mcspi3_hwmod,
3414 .clk = "l4_div_ck",
3415 .addr = omap44xx_mcspi3_addrs,
3416 .user = OCP_USER_MPU | OCP_USER_SDMA,
3419 /* mcspi3 slave ports */
3420 static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
3421 &omap44xx_l4_per__mcspi3,
3424 /* mcspi3 dev_attr */
3425 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
3426 .num_chipselect = 2,
3429 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
3430 .name = "mcspi3",
3431 .class = &omap44xx_mcspi_hwmod_class,
3432 .clkdm_name = "l4_per_clkdm",
3433 .mpu_irqs = omap44xx_mcspi3_irqs,
3434 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
3435 .main_clk = "mcspi3_fck",
3436 .prcm = {
3437 .omap4 = {
3438 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
3439 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
3440 .modulemode = MODULEMODE_SWCTRL,
3443 .dev_attr = &mcspi3_dev_attr,
3444 .slaves = omap44xx_mcspi3_slaves,
3445 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
3448 /* mcspi4 */
3449 static struct omap_hwmod omap44xx_mcspi4_hwmod;
3450 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3451 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
3452 { .irq = -1 }
3455 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
3456 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
3457 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
3458 { .dma_req = -1 }
3461 static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
3463 .pa_start = 0x480ba000,
3464 .pa_end = 0x480ba1ff,
3465 .flags = ADDR_TYPE_RT
3470 /* l4_per -> mcspi4 */
3471 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3472 .master = &omap44xx_l4_per_hwmod,
3473 .slave = &omap44xx_mcspi4_hwmod,
3474 .clk = "l4_div_ck",
3475 .addr = omap44xx_mcspi4_addrs,
3476 .user = OCP_USER_MPU | OCP_USER_SDMA,
3479 /* mcspi4 slave ports */
3480 static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
3481 &omap44xx_l4_per__mcspi4,
3484 /* mcspi4 dev_attr */
3485 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
3486 .num_chipselect = 1,
3489 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
3490 .name = "mcspi4",
3491 .class = &omap44xx_mcspi_hwmod_class,
3492 .clkdm_name = "l4_per_clkdm",
3493 .mpu_irqs = omap44xx_mcspi4_irqs,
3494 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
3495 .main_clk = "mcspi4_fck",
3496 .prcm = {
3497 .omap4 = {
3498 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
3499 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
3500 .modulemode = MODULEMODE_SWCTRL,
3503 .dev_attr = &mcspi4_dev_attr,
3504 .slaves = omap44xx_mcspi4_slaves,
3505 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
3509 * 'mmc' class
3510 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3513 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3514 .rev_offs = 0x0000,
3515 .sysc_offs = 0x0010,
3516 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3517 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3518 SYSC_HAS_SOFTRESET),
3519 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3520 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3521 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
3522 .sysc_fields = &omap_hwmod_sysc_type2,
3525 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3526 .name = "mmc",
3527 .sysc = &omap44xx_mmc_sysc,
3530 /* mmc1 */
3531 static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3532 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
3533 { .irq = -1 }
3536 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
3537 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
3538 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
3539 { .dma_req = -1 }
3542 /* mmc1 master ports */
3543 static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
3544 &omap44xx_mmc1__l3_main_1,
3547 static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
3549 .pa_start = 0x4809c000,
3550 .pa_end = 0x4809c3ff,
3551 .flags = ADDR_TYPE_RT
3556 /* l4_per -> mmc1 */
3557 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3558 .master = &omap44xx_l4_per_hwmod,
3559 .slave = &omap44xx_mmc1_hwmod,
3560 .clk = "l4_div_ck",
3561 .addr = omap44xx_mmc1_addrs,
3562 .user = OCP_USER_MPU | OCP_USER_SDMA,
3565 /* mmc1 slave ports */
3566 static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3567 &omap44xx_l4_per__mmc1,
3570 /* mmc1 dev_attr */
3571 static struct omap_mmc_dev_attr mmc1_dev_attr = {
3572 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3575 static struct omap_hwmod omap44xx_mmc1_hwmod = {
3576 .name = "mmc1",
3577 .class = &omap44xx_mmc_hwmod_class,
3578 .clkdm_name = "l3_init_clkdm",
3579 .mpu_irqs = omap44xx_mmc1_irqs,
3580 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
3581 .main_clk = "mmc1_fck",
3582 .prcm = {
3583 .omap4 = {
3584 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
3585 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
3586 .modulemode = MODULEMODE_SWCTRL,
3589 .dev_attr = &mmc1_dev_attr,
3590 .slaves = omap44xx_mmc1_slaves,
3591 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3592 .masters = omap44xx_mmc1_masters,
3593 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
3596 /* mmc2 */
3597 static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3598 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
3599 { .irq = -1 }
3602 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
3603 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
3604 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
3605 { .dma_req = -1 }
3608 /* mmc2 master ports */
3609 static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
3610 &omap44xx_mmc2__l3_main_1,
3613 static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
3615 .pa_start = 0x480b4000,
3616 .pa_end = 0x480b43ff,
3617 .flags = ADDR_TYPE_RT
3622 /* l4_per -> mmc2 */
3623 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3624 .master = &omap44xx_l4_per_hwmod,
3625 .slave = &omap44xx_mmc2_hwmod,
3626 .clk = "l4_div_ck",
3627 .addr = omap44xx_mmc2_addrs,
3628 .user = OCP_USER_MPU | OCP_USER_SDMA,
3631 /* mmc2 slave ports */
3632 static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
3633 &omap44xx_l4_per__mmc2,
3636 static struct omap_hwmod omap44xx_mmc2_hwmod = {
3637 .name = "mmc2",
3638 .class = &omap44xx_mmc_hwmod_class,
3639 .clkdm_name = "l3_init_clkdm",
3640 .mpu_irqs = omap44xx_mmc2_irqs,
3641 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
3642 .main_clk = "mmc2_fck",
3643 .prcm = {
3644 .omap4 = {
3645 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
3646 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
3647 .modulemode = MODULEMODE_SWCTRL,
3650 .slaves = omap44xx_mmc2_slaves,
3651 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3652 .masters = omap44xx_mmc2_masters,
3653 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
3656 /* mmc3 */
3657 static struct omap_hwmod omap44xx_mmc3_hwmod;
3658 static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3659 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
3660 { .irq = -1 }
3663 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
3664 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
3665 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
3666 { .dma_req = -1 }
3669 static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
3671 .pa_start = 0x480ad000,
3672 .pa_end = 0x480ad3ff,
3673 .flags = ADDR_TYPE_RT
3678 /* l4_per -> mmc3 */
3679 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3680 .master = &omap44xx_l4_per_hwmod,
3681 .slave = &omap44xx_mmc3_hwmod,
3682 .clk = "l4_div_ck",
3683 .addr = omap44xx_mmc3_addrs,
3684 .user = OCP_USER_MPU | OCP_USER_SDMA,
3687 /* mmc3 slave ports */
3688 static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
3689 &omap44xx_l4_per__mmc3,
3692 static struct omap_hwmod omap44xx_mmc3_hwmod = {
3693 .name = "mmc3",
3694 .class = &omap44xx_mmc_hwmod_class,
3695 .clkdm_name = "l4_per_clkdm",
3696 .mpu_irqs = omap44xx_mmc3_irqs,
3697 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
3698 .main_clk = "mmc3_fck",
3699 .prcm = {
3700 .omap4 = {
3701 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
3702 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
3703 .modulemode = MODULEMODE_SWCTRL,
3706 .slaves = omap44xx_mmc3_slaves,
3707 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
3710 /* mmc4 */
3711 static struct omap_hwmod omap44xx_mmc4_hwmod;
3712 static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3713 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
3714 { .irq = -1 }
3717 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
3718 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
3719 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
3720 { .dma_req = -1 }
3723 static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
3725 .pa_start = 0x480d1000,
3726 .pa_end = 0x480d13ff,
3727 .flags = ADDR_TYPE_RT
3732 /* l4_per -> mmc4 */
3733 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3734 .master = &omap44xx_l4_per_hwmod,
3735 .slave = &omap44xx_mmc4_hwmod,
3736 .clk = "l4_div_ck",
3737 .addr = omap44xx_mmc4_addrs,
3738 .user = OCP_USER_MPU | OCP_USER_SDMA,
3741 /* mmc4 slave ports */
3742 static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
3743 &omap44xx_l4_per__mmc4,
3746 static struct omap_hwmod omap44xx_mmc4_hwmod = {
3747 .name = "mmc4",
3748 .class = &omap44xx_mmc_hwmod_class,
3749 .clkdm_name = "l4_per_clkdm",
3750 .mpu_irqs = omap44xx_mmc4_irqs,
3752 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
3753 .main_clk = "mmc4_fck",
3754 .prcm = {
3755 .omap4 = {
3756 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
3757 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
3758 .modulemode = MODULEMODE_SWCTRL,
3761 .slaves = omap44xx_mmc4_slaves,
3762 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
3765 /* mmc5 */
3766 static struct omap_hwmod omap44xx_mmc5_hwmod;
3767 static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
3768 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
3769 { .irq = -1 }
3772 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3773 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3774 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
3775 { .dma_req = -1 }
3778 static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3780 .pa_start = 0x480d5000,
3781 .pa_end = 0x480d53ff,
3782 .flags = ADDR_TYPE_RT
3787 /* l4_per -> mmc5 */
3788 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3789 .master = &omap44xx_l4_per_hwmod,
3790 .slave = &omap44xx_mmc5_hwmod,
3791 .clk = "l4_div_ck",
3792 .addr = omap44xx_mmc5_addrs,
3793 .user = OCP_USER_MPU | OCP_USER_SDMA,
3796 /* mmc5 slave ports */
3797 static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3798 &omap44xx_l4_per__mmc5,
3801 static struct omap_hwmod omap44xx_mmc5_hwmod = {
3802 .name = "mmc5",
3803 .class = &omap44xx_mmc_hwmod_class,
3804 .clkdm_name = "l4_per_clkdm",
3805 .mpu_irqs = omap44xx_mmc5_irqs,
3806 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
3807 .main_clk = "mmc5_fck",
3808 .prcm = {
3809 .omap4 = {
3810 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
3811 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
3812 .modulemode = MODULEMODE_SWCTRL,
3815 .slaves = omap44xx_mmc5_slaves,
3816 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
3820 * 'mpu' class
3821 * mpu sub-system
3824 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
3825 .name = "mpu",
3828 /* mpu */
3829 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
3830 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
3831 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
3832 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
3833 { .irq = -1 }
3836 /* mpu master ports */
3837 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3838 &omap44xx_mpu__l3_main_1,
3839 &omap44xx_mpu__l4_abe,
3840 &omap44xx_mpu__dmm,
3843 static struct omap_hwmod omap44xx_mpu_hwmod = {
3844 .name = "mpu",
3845 .class = &omap44xx_mpu_hwmod_class,
3846 .clkdm_name = "mpuss_clkdm",
3847 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
3848 .mpu_irqs = omap44xx_mpu_irqs,
3849 .main_clk = "dpll_mpu_m2_ck",
3850 .prcm = {
3851 .omap4 = {
3852 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
3853 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
3856 .masters = omap44xx_mpu_masters,
3857 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
3861 * 'smartreflex' class
3862 * smartreflex module (monitor silicon performance and outputs a measure of
3863 * performance error)
3866 /* The IP is not compliant to type1 / type2 scheme */
3867 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
3868 .sidle_shift = 24,
3869 .enwkup_shift = 26,
3872 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
3873 .sysc_offs = 0x0038,
3874 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
3875 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3876 SIDLE_SMART_WKUP),
3877 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
3880 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
3881 .name = "smartreflex",
3882 .sysc = &omap44xx_smartreflex_sysc,
3883 .rev = 2,
3886 /* smartreflex_core */
3887 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
3888 .sensor_voltdm_name = "core",
3891 static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
3892 static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
3893 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
3894 { .irq = -1 }
3897 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3899 .pa_start = 0x4a0dd000,
3900 .pa_end = 0x4a0dd03f,
3901 .flags = ADDR_TYPE_RT
3906 /* l4_cfg -> smartreflex_core */
3907 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3908 .master = &omap44xx_l4_cfg_hwmod,
3909 .slave = &omap44xx_smartreflex_core_hwmod,
3910 .clk = "l4_div_ck",
3911 .addr = omap44xx_smartreflex_core_addrs,
3912 .user = OCP_USER_MPU | OCP_USER_SDMA,
3915 /* smartreflex_core slave ports */
3916 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3917 &omap44xx_l4_cfg__smartreflex_core,
3920 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3921 .name = "smartreflex_core",
3922 .class = &omap44xx_smartreflex_hwmod_class,
3923 .clkdm_name = "l4_ao_clkdm",
3924 .mpu_irqs = omap44xx_smartreflex_core_irqs,
3926 .main_clk = "smartreflex_core_fck",
3927 .prcm = {
3928 .omap4 = {
3929 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
3930 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
3931 .modulemode = MODULEMODE_SWCTRL,
3934 .slaves = omap44xx_smartreflex_core_slaves,
3935 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
3936 .dev_attr = &smartreflex_core_dev_attr,
3939 /* smartreflex_iva */
3940 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
3941 .sensor_voltdm_name = "iva",
3944 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
3945 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3946 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
3947 { .irq = -1 }
3950 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
3952 .pa_start = 0x4a0db000,
3953 .pa_end = 0x4a0db03f,
3954 .flags = ADDR_TYPE_RT
3959 /* l4_cfg -> smartreflex_iva */
3960 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3961 .master = &omap44xx_l4_cfg_hwmod,
3962 .slave = &omap44xx_smartreflex_iva_hwmod,
3963 .clk = "l4_div_ck",
3964 .addr = omap44xx_smartreflex_iva_addrs,
3965 .user = OCP_USER_MPU | OCP_USER_SDMA,
3968 /* smartreflex_iva slave ports */
3969 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
3970 &omap44xx_l4_cfg__smartreflex_iva,
3973 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3974 .name = "smartreflex_iva",
3975 .class = &omap44xx_smartreflex_hwmod_class,
3976 .clkdm_name = "l4_ao_clkdm",
3977 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
3978 .main_clk = "smartreflex_iva_fck",
3979 .prcm = {
3980 .omap4 = {
3981 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
3982 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
3983 .modulemode = MODULEMODE_SWCTRL,
3986 .slaves = omap44xx_smartreflex_iva_slaves,
3987 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
3988 .dev_attr = &smartreflex_iva_dev_attr,
3991 /* smartreflex_mpu */
3992 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
3993 .sensor_voltdm_name = "mpu",
3996 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
3997 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3998 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
3999 { .irq = -1 }
4002 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4004 .pa_start = 0x4a0d9000,
4005 .pa_end = 0x4a0d903f,
4006 .flags = ADDR_TYPE_RT
4011 /* l4_cfg -> smartreflex_mpu */
4012 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4013 .master = &omap44xx_l4_cfg_hwmod,
4014 .slave = &omap44xx_smartreflex_mpu_hwmod,
4015 .clk = "l4_div_ck",
4016 .addr = omap44xx_smartreflex_mpu_addrs,
4017 .user = OCP_USER_MPU | OCP_USER_SDMA,
4020 /* smartreflex_mpu slave ports */
4021 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
4022 &omap44xx_l4_cfg__smartreflex_mpu,
4025 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
4026 .name = "smartreflex_mpu",
4027 .class = &omap44xx_smartreflex_hwmod_class,
4028 .clkdm_name = "l4_ao_clkdm",
4029 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
4030 .main_clk = "smartreflex_mpu_fck",
4031 .prcm = {
4032 .omap4 = {
4033 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
4034 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
4035 .modulemode = MODULEMODE_SWCTRL,
4038 .slaves = omap44xx_smartreflex_mpu_slaves,
4039 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
4040 .dev_attr = &smartreflex_mpu_dev_attr,
4044 * 'spinlock' class
4045 * spinlock provides hardware assistance for synchronizing the processes
4046 * running on multiple processors
4049 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
4050 .rev_offs = 0x0000,
4051 .sysc_offs = 0x0010,
4052 .syss_offs = 0x0014,
4053 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
4054 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
4055 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4056 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4057 SIDLE_SMART_WKUP),
4058 .sysc_fields = &omap_hwmod_sysc_type1,
4061 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
4062 .name = "spinlock",
4063 .sysc = &omap44xx_spinlock_sysc,
4066 /* spinlock */
4067 static struct omap_hwmod omap44xx_spinlock_hwmod;
4068 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4070 .pa_start = 0x4a0f6000,
4071 .pa_end = 0x4a0f6fff,
4072 .flags = ADDR_TYPE_RT
4077 /* l4_cfg -> spinlock */
4078 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4079 .master = &omap44xx_l4_cfg_hwmod,
4080 .slave = &omap44xx_spinlock_hwmod,
4081 .clk = "l4_div_ck",
4082 .addr = omap44xx_spinlock_addrs,
4083 .user = OCP_USER_MPU | OCP_USER_SDMA,
4086 /* spinlock slave ports */
4087 static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
4088 &omap44xx_l4_cfg__spinlock,
4091 static struct omap_hwmod omap44xx_spinlock_hwmod = {
4092 .name = "spinlock",
4093 .class = &omap44xx_spinlock_hwmod_class,
4094 .clkdm_name = "l4_cfg_clkdm",
4095 .prcm = {
4096 .omap4 = {
4097 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
4098 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
4101 .slaves = omap44xx_spinlock_slaves,
4102 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
4106 * 'timer' class
4107 * general purpose timer module with accurate 1ms tick
4108 * This class contains several variants: ['timer_1ms', 'timer']
4111 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
4112 .rev_offs = 0x0000,
4113 .sysc_offs = 0x0010,
4114 .syss_offs = 0x0014,
4115 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
4116 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
4117 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4118 SYSS_HAS_RESET_STATUS),
4119 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
4120 .sysc_fields = &omap_hwmod_sysc_type1,
4123 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
4124 .name = "timer",
4125 .sysc = &omap44xx_timer_1ms_sysc,
4128 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
4129 .rev_offs = 0x0000,
4130 .sysc_offs = 0x0010,
4131 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
4132 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
4133 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4134 SIDLE_SMART_WKUP),
4135 .sysc_fields = &omap_hwmod_sysc_type2,
4138 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
4139 .name = "timer",
4140 .sysc = &omap44xx_timer_sysc,
4143 /* always-on timers dev attribute */
4144 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
4145 .timer_capability = OMAP_TIMER_ALWON,
4148 /* pwm timers dev attribute */
4149 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
4150 .timer_capability = OMAP_TIMER_HAS_PWM,
4153 /* timer1 */
4154 static struct omap_hwmod omap44xx_timer1_hwmod;
4155 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
4156 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
4157 { .irq = -1 }
4160 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
4162 .pa_start = 0x4a318000,
4163 .pa_end = 0x4a31807f,
4164 .flags = ADDR_TYPE_RT
4169 /* l4_wkup -> timer1 */
4170 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4171 .master = &omap44xx_l4_wkup_hwmod,
4172 .slave = &omap44xx_timer1_hwmod,
4173 .clk = "l4_wkup_clk_mux_ck",
4174 .addr = omap44xx_timer1_addrs,
4175 .user = OCP_USER_MPU | OCP_USER_SDMA,
4178 /* timer1 slave ports */
4179 static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
4180 &omap44xx_l4_wkup__timer1,
4183 static struct omap_hwmod omap44xx_timer1_hwmod = {
4184 .name = "timer1",
4185 .class = &omap44xx_timer_1ms_hwmod_class,
4186 .clkdm_name = "l4_wkup_clkdm",
4187 .mpu_irqs = omap44xx_timer1_irqs,
4188 .main_clk = "timer1_fck",
4189 .prcm = {
4190 .omap4 = {
4191 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
4192 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
4193 .modulemode = MODULEMODE_SWCTRL,
4196 .dev_attr = &capability_alwon_dev_attr,
4197 .slaves = omap44xx_timer1_slaves,
4198 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
4201 /* timer2 */
4202 static struct omap_hwmod omap44xx_timer2_hwmod;
4203 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4204 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
4205 { .irq = -1 }
4208 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4210 .pa_start = 0x48032000,
4211 .pa_end = 0x4803207f,
4212 .flags = ADDR_TYPE_RT
4217 /* l4_per -> timer2 */
4218 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4219 .master = &omap44xx_l4_per_hwmod,
4220 .slave = &omap44xx_timer2_hwmod,
4221 .clk = "l4_div_ck",
4222 .addr = omap44xx_timer2_addrs,
4223 .user = OCP_USER_MPU | OCP_USER_SDMA,
4226 /* timer2 slave ports */
4227 static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4228 &omap44xx_l4_per__timer2,
4231 static struct omap_hwmod omap44xx_timer2_hwmod = {
4232 .name = "timer2",
4233 .class = &omap44xx_timer_1ms_hwmod_class,
4234 .clkdm_name = "l4_per_clkdm",
4235 .mpu_irqs = omap44xx_timer2_irqs,
4236 .main_clk = "timer2_fck",
4237 .prcm = {
4238 .omap4 = {
4239 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
4240 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
4241 .modulemode = MODULEMODE_SWCTRL,
4244 .dev_attr = &capability_alwon_dev_attr,
4245 .slaves = omap44xx_timer2_slaves,
4246 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
4249 /* timer3 */
4250 static struct omap_hwmod omap44xx_timer3_hwmod;
4251 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4252 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
4253 { .irq = -1 }
4256 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4258 .pa_start = 0x48034000,
4259 .pa_end = 0x4803407f,
4260 .flags = ADDR_TYPE_RT
4265 /* l4_per -> timer3 */
4266 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4267 .master = &omap44xx_l4_per_hwmod,
4268 .slave = &omap44xx_timer3_hwmod,
4269 .clk = "l4_div_ck",
4270 .addr = omap44xx_timer3_addrs,
4271 .user = OCP_USER_MPU | OCP_USER_SDMA,
4274 /* timer3 slave ports */
4275 static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4276 &omap44xx_l4_per__timer3,
4279 static struct omap_hwmod omap44xx_timer3_hwmod = {
4280 .name = "timer3",
4281 .class = &omap44xx_timer_hwmod_class,
4282 .clkdm_name = "l4_per_clkdm",
4283 .mpu_irqs = omap44xx_timer3_irqs,
4284 .main_clk = "timer3_fck",
4285 .prcm = {
4286 .omap4 = {
4287 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
4288 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
4289 .modulemode = MODULEMODE_SWCTRL,
4292 .dev_attr = &capability_alwon_dev_attr,
4293 .slaves = omap44xx_timer3_slaves,
4294 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
4297 /* timer4 */
4298 static struct omap_hwmod omap44xx_timer4_hwmod;
4299 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4300 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
4301 { .irq = -1 }
4304 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4306 .pa_start = 0x48036000,
4307 .pa_end = 0x4803607f,
4308 .flags = ADDR_TYPE_RT
4313 /* l4_per -> timer4 */
4314 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4315 .master = &omap44xx_l4_per_hwmod,
4316 .slave = &omap44xx_timer4_hwmod,
4317 .clk = "l4_div_ck",
4318 .addr = omap44xx_timer4_addrs,
4319 .user = OCP_USER_MPU | OCP_USER_SDMA,
4322 /* timer4 slave ports */
4323 static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4324 &omap44xx_l4_per__timer4,
4327 static struct omap_hwmod omap44xx_timer4_hwmod = {
4328 .name = "timer4",
4329 .class = &omap44xx_timer_hwmod_class,
4330 .clkdm_name = "l4_per_clkdm",
4331 .mpu_irqs = omap44xx_timer4_irqs,
4332 .main_clk = "timer4_fck",
4333 .prcm = {
4334 .omap4 = {
4335 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
4336 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
4337 .modulemode = MODULEMODE_SWCTRL,
4340 .dev_attr = &capability_alwon_dev_attr,
4341 .slaves = omap44xx_timer4_slaves,
4342 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
4345 /* timer5 */
4346 static struct omap_hwmod omap44xx_timer5_hwmod;
4347 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4348 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
4349 { .irq = -1 }
4352 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4354 .pa_start = 0x40138000,
4355 .pa_end = 0x4013807f,
4356 .flags = ADDR_TYPE_RT
4361 /* l4_abe -> timer5 */
4362 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4363 .master = &omap44xx_l4_abe_hwmod,
4364 .slave = &omap44xx_timer5_hwmod,
4365 .clk = "ocp_abe_iclk",
4366 .addr = omap44xx_timer5_addrs,
4367 .user = OCP_USER_MPU,
4370 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4372 .pa_start = 0x49038000,
4373 .pa_end = 0x4903807f,
4374 .flags = ADDR_TYPE_RT
4379 /* l4_abe -> timer5 (dma) */
4380 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4381 .master = &omap44xx_l4_abe_hwmod,
4382 .slave = &omap44xx_timer5_hwmod,
4383 .clk = "ocp_abe_iclk",
4384 .addr = omap44xx_timer5_dma_addrs,
4385 .user = OCP_USER_SDMA,
4388 /* timer5 slave ports */
4389 static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4390 &omap44xx_l4_abe__timer5,
4391 &omap44xx_l4_abe__timer5_dma,
4394 static struct omap_hwmod omap44xx_timer5_hwmod = {
4395 .name = "timer5",
4396 .class = &omap44xx_timer_hwmod_class,
4397 .clkdm_name = "abe_clkdm",
4398 .mpu_irqs = omap44xx_timer5_irqs,
4399 .main_clk = "timer5_fck",
4400 .prcm = {
4401 .omap4 = {
4402 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
4403 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
4404 .modulemode = MODULEMODE_SWCTRL,
4407 .dev_attr = &capability_alwon_dev_attr,
4408 .slaves = omap44xx_timer5_slaves,
4409 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
4412 /* timer6 */
4413 static struct omap_hwmod omap44xx_timer6_hwmod;
4414 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4415 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
4416 { .irq = -1 }
4419 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4421 .pa_start = 0x4013a000,
4422 .pa_end = 0x4013a07f,
4423 .flags = ADDR_TYPE_RT
4428 /* l4_abe -> timer6 */
4429 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4430 .master = &omap44xx_l4_abe_hwmod,
4431 .slave = &omap44xx_timer6_hwmod,
4432 .clk = "ocp_abe_iclk",
4433 .addr = omap44xx_timer6_addrs,
4434 .user = OCP_USER_MPU,
4437 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4439 .pa_start = 0x4903a000,
4440 .pa_end = 0x4903a07f,
4441 .flags = ADDR_TYPE_RT
4446 /* l4_abe -> timer6 (dma) */
4447 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4448 .master = &omap44xx_l4_abe_hwmod,
4449 .slave = &omap44xx_timer6_hwmod,
4450 .clk = "ocp_abe_iclk",
4451 .addr = omap44xx_timer6_dma_addrs,
4452 .user = OCP_USER_SDMA,
4455 /* timer6 slave ports */
4456 static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4457 &omap44xx_l4_abe__timer6,
4458 &omap44xx_l4_abe__timer6_dma,
4461 static struct omap_hwmod omap44xx_timer6_hwmod = {
4462 .name = "timer6",
4463 .class = &omap44xx_timer_hwmod_class,
4464 .clkdm_name = "abe_clkdm",
4465 .mpu_irqs = omap44xx_timer6_irqs,
4467 .main_clk = "timer6_fck",
4468 .prcm = {
4469 .omap4 = {
4470 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
4471 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
4472 .modulemode = MODULEMODE_SWCTRL,
4475 .dev_attr = &capability_alwon_dev_attr,
4476 .slaves = omap44xx_timer6_slaves,
4477 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
4480 /* timer7 */
4481 static struct omap_hwmod omap44xx_timer7_hwmod;
4482 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4483 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
4484 { .irq = -1 }
4487 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4489 .pa_start = 0x4013c000,
4490 .pa_end = 0x4013c07f,
4491 .flags = ADDR_TYPE_RT
4496 /* l4_abe -> timer7 */
4497 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4498 .master = &omap44xx_l4_abe_hwmod,
4499 .slave = &omap44xx_timer7_hwmod,
4500 .clk = "ocp_abe_iclk",
4501 .addr = omap44xx_timer7_addrs,
4502 .user = OCP_USER_MPU,
4505 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4507 .pa_start = 0x4903c000,
4508 .pa_end = 0x4903c07f,
4509 .flags = ADDR_TYPE_RT
4514 /* l4_abe -> timer7 (dma) */
4515 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4516 .master = &omap44xx_l4_abe_hwmod,
4517 .slave = &omap44xx_timer7_hwmod,
4518 .clk = "ocp_abe_iclk",
4519 .addr = omap44xx_timer7_dma_addrs,
4520 .user = OCP_USER_SDMA,
4523 /* timer7 slave ports */
4524 static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4525 &omap44xx_l4_abe__timer7,
4526 &omap44xx_l4_abe__timer7_dma,
4529 static struct omap_hwmod omap44xx_timer7_hwmod = {
4530 .name = "timer7",
4531 .class = &omap44xx_timer_hwmod_class,
4532 .clkdm_name = "abe_clkdm",
4533 .mpu_irqs = omap44xx_timer7_irqs,
4534 .main_clk = "timer7_fck",
4535 .prcm = {
4536 .omap4 = {
4537 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
4538 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
4539 .modulemode = MODULEMODE_SWCTRL,
4542 .dev_attr = &capability_alwon_dev_attr,
4543 .slaves = omap44xx_timer7_slaves,
4544 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
4547 /* timer8 */
4548 static struct omap_hwmod omap44xx_timer8_hwmod;
4549 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4550 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
4551 { .irq = -1 }
4554 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4556 .pa_start = 0x4013e000,
4557 .pa_end = 0x4013e07f,
4558 .flags = ADDR_TYPE_RT
4563 /* l4_abe -> timer8 */
4564 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4565 .master = &omap44xx_l4_abe_hwmod,
4566 .slave = &omap44xx_timer8_hwmod,
4567 .clk = "ocp_abe_iclk",
4568 .addr = omap44xx_timer8_addrs,
4569 .user = OCP_USER_MPU,
4572 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4574 .pa_start = 0x4903e000,
4575 .pa_end = 0x4903e07f,
4576 .flags = ADDR_TYPE_RT
4581 /* l4_abe -> timer8 (dma) */
4582 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4583 .master = &omap44xx_l4_abe_hwmod,
4584 .slave = &omap44xx_timer8_hwmod,
4585 .clk = "ocp_abe_iclk",
4586 .addr = omap44xx_timer8_dma_addrs,
4587 .user = OCP_USER_SDMA,
4590 /* timer8 slave ports */
4591 static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4592 &omap44xx_l4_abe__timer8,
4593 &omap44xx_l4_abe__timer8_dma,
4596 static struct omap_hwmod omap44xx_timer8_hwmod = {
4597 .name = "timer8",
4598 .class = &omap44xx_timer_hwmod_class,
4599 .clkdm_name = "abe_clkdm",
4600 .mpu_irqs = omap44xx_timer8_irqs,
4601 .main_clk = "timer8_fck",
4602 .prcm = {
4603 .omap4 = {
4604 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
4605 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
4606 .modulemode = MODULEMODE_SWCTRL,
4609 .dev_attr = &capability_pwm_dev_attr,
4610 .slaves = omap44xx_timer8_slaves,
4611 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
4614 /* timer9 */
4615 static struct omap_hwmod omap44xx_timer9_hwmod;
4616 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4617 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
4618 { .irq = -1 }
4621 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4623 .pa_start = 0x4803e000,
4624 .pa_end = 0x4803e07f,
4625 .flags = ADDR_TYPE_RT
4630 /* l4_per -> timer9 */
4631 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4632 .master = &omap44xx_l4_per_hwmod,
4633 .slave = &omap44xx_timer9_hwmod,
4634 .clk = "l4_div_ck",
4635 .addr = omap44xx_timer9_addrs,
4636 .user = OCP_USER_MPU | OCP_USER_SDMA,
4639 /* timer9 slave ports */
4640 static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4641 &omap44xx_l4_per__timer9,
4644 static struct omap_hwmod omap44xx_timer9_hwmod = {
4645 .name = "timer9",
4646 .class = &omap44xx_timer_hwmod_class,
4647 .clkdm_name = "l4_per_clkdm",
4648 .mpu_irqs = omap44xx_timer9_irqs,
4649 .main_clk = "timer9_fck",
4650 .prcm = {
4651 .omap4 = {
4652 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
4653 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
4654 .modulemode = MODULEMODE_SWCTRL,
4657 .dev_attr = &capability_pwm_dev_attr,
4658 .slaves = omap44xx_timer9_slaves,
4659 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
4662 /* timer10 */
4663 static struct omap_hwmod omap44xx_timer10_hwmod;
4664 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4665 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
4666 { .irq = -1 }
4669 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4671 .pa_start = 0x48086000,
4672 .pa_end = 0x4808607f,
4673 .flags = ADDR_TYPE_RT
4678 /* l4_per -> timer10 */
4679 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4680 .master = &omap44xx_l4_per_hwmod,
4681 .slave = &omap44xx_timer10_hwmod,
4682 .clk = "l4_div_ck",
4683 .addr = omap44xx_timer10_addrs,
4684 .user = OCP_USER_MPU | OCP_USER_SDMA,
4687 /* timer10 slave ports */
4688 static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4689 &omap44xx_l4_per__timer10,
4692 static struct omap_hwmod omap44xx_timer10_hwmod = {
4693 .name = "timer10",
4694 .class = &omap44xx_timer_1ms_hwmod_class,
4695 .clkdm_name = "l4_per_clkdm",
4696 .mpu_irqs = omap44xx_timer10_irqs,
4697 .main_clk = "timer10_fck",
4698 .prcm = {
4699 .omap4 = {
4700 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
4701 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
4702 .modulemode = MODULEMODE_SWCTRL,
4705 .dev_attr = &capability_pwm_dev_attr,
4706 .slaves = omap44xx_timer10_slaves,
4707 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
4710 /* timer11 */
4711 static struct omap_hwmod omap44xx_timer11_hwmod;
4712 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4713 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
4714 { .irq = -1 }
4717 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4719 .pa_start = 0x48088000,
4720 .pa_end = 0x4808807f,
4721 .flags = ADDR_TYPE_RT
4726 /* l4_per -> timer11 */
4727 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4728 .master = &omap44xx_l4_per_hwmod,
4729 .slave = &omap44xx_timer11_hwmod,
4730 .clk = "l4_div_ck",
4731 .addr = omap44xx_timer11_addrs,
4732 .user = OCP_USER_MPU | OCP_USER_SDMA,
4735 /* timer11 slave ports */
4736 static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4737 &omap44xx_l4_per__timer11,
4740 static struct omap_hwmod omap44xx_timer11_hwmod = {
4741 .name = "timer11",
4742 .class = &omap44xx_timer_hwmod_class,
4743 .clkdm_name = "l4_per_clkdm",
4744 .mpu_irqs = omap44xx_timer11_irqs,
4745 .main_clk = "timer11_fck",
4746 .prcm = {
4747 .omap4 = {
4748 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
4749 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
4750 .modulemode = MODULEMODE_SWCTRL,
4753 .dev_attr = &capability_pwm_dev_attr,
4754 .slaves = omap44xx_timer11_slaves,
4755 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
4759 * 'uart' class
4760 * universal asynchronous receiver/transmitter (uart)
4763 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4764 .rev_offs = 0x0050,
4765 .sysc_offs = 0x0054,
4766 .syss_offs = 0x0058,
4767 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4768 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4769 SYSS_HAS_RESET_STATUS),
4770 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4771 SIDLE_SMART_WKUP),
4772 .sysc_fields = &omap_hwmod_sysc_type1,
4775 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
4776 .name = "uart",
4777 .sysc = &omap44xx_uart_sysc,
4780 /* uart1 */
4781 static struct omap_hwmod omap44xx_uart1_hwmod;
4782 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4783 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
4784 { .irq = -1 }
4787 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4788 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4789 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
4790 { .dma_req = -1 }
4793 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4795 .pa_start = 0x4806a000,
4796 .pa_end = 0x4806a0ff,
4797 .flags = ADDR_TYPE_RT
4802 /* l4_per -> uart1 */
4803 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4804 .master = &omap44xx_l4_per_hwmod,
4805 .slave = &omap44xx_uart1_hwmod,
4806 .clk = "l4_div_ck",
4807 .addr = omap44xx_uart1_addrs,
4808 .user = OCP_USER_MPU | OCP_USER_SDMA,
4811 /* uart1 slave ports */
4812 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4813 &omap44xx_l4_per__uart1,
4816 static struct omap_hwmod omap44xx_uart1_hwmod = {
4817 .name = "uart1",
4818 .class = &omap44xx_uart_hwmod_class,
4819 .clkdm_name = "l4_per_clkdm",
4820 .mpu_irqs = omap44xx_uart1_irqs,
4821 .sdma_reqs = omap44xx_uart1_sdma_reqs,
4822 .main_clk = "uart1_fck",
4823 .prcm = {
4824 .omap4 = {
4825 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
4826 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
4827 .modulemode = MODULEMODE_SWCTRL,
4830 .slaves = omap44xx_uart1_slaves,
4831 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
4834 /* uart2 */
4835 static struct omap_hwmod omap44xx_uart2_hwmod;
4836 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4837 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
4838 { .irq = -1 }
4841 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4842 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4843 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
4844 { .dma_req = -1 }
4847 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4849 .pa_start = 0x4806c000,
4850 .pa_end = 0x4806c0ff,
4851 .flags = ADDR_TYPE_RT
4856 /* l4_per -> uart2 */
4857 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4858 .master = &omap44xx_l4_per_hwmod,
4859 .slave = &omap44xx_uart2_hwmod,
4860 .clk = "l4_div_ck",
4861 .addr = omap44xx_uart2_addrs,
4862 .user = OCP_USER_MPU | OCP_USER_SDMA,
4865 /* uart2 slave ports */
4866 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4867 &omap44xx_l4_per__uart2,
4870 static struct omap_hwmod omap44xx_uart2_hwmod = {
4871 .name = "uart2",
4872 .class = &omap44xx_uart_hwmod_class,
4873 .clkdm_name = "l4_per_clkdm",
4874 .mpu_irqs = omap44xx_uart2_irqs,
4875 .sdma_reqs = omap44xx_uart2_sdma_reqs,
4876 .main_clk = "uart2_fck",
4877 .prcm = {
4878 .omap4 = {
4879 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
4880 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
4881 .modulemode = MODULEMODE_SWCTRL,
4884 .slaves = omap44xx_uart2_slaves,
4885 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
4888 /* uart3 */
4889 static struct omap_hwmod omap44xx_uart3_hwmod;
4890 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4891 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
4892 { .irq = -1 }
4895 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4896 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4897 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
4898 { .dma_req = -1 }
4901 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4903 .pa_start = 0x48020000,
4904 .pa_end = 0x480200ff,
4905 .flags = ADDR_TYPE_RT
4910 /* l4_per -> uart3 */
4911 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4912 .master = &omap44xx_l4_per_hwmod,
4913 .slave = &omap44xx_uart3_hwmod,
4914 .clk = "l4_div_ck",
4915 .addr = omap44xx_uart3_addrs,
4916 .user = OCP_USER_MPU | OCP_USER_SDMA,
4919 /* uart3 slave ports */
4920 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4921 &omap44xx_l4_per__uart3,
4924 static struct omap_hwmod omap44xx_uart3_hwmod = {
4925 .name = "uart3",
4926 .class = &omap44xx_uart_hwmod_class,
4927 .clkdm_name = "l4_per_clkdm",
4928 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
4929 .mpu_irqs = omap44xx_uart3_irqs,
4930 .sdma_reqs = omap44xx_uart3_sdma_reqs,
4931 .main_clk = "uart3_fck",
4932 .prcm = {
4933 .omap4 = {
4934 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
4935 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
4936 .modulemode = MODULEMODE_SWCTRL,
4939 .slaves = omap44xx_uart3_slaves,
4940 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
4943 /* uart4 */
4944 static struct omap_hwmod omap44xx_uart4_hwmod;
4945 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
4946 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
4947 { .irq = -1 }
4950 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
4951 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
4952 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
4953 { .dma_req = -1 }
4956 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
4958 .pa_start = 0x4806e000,
4959 .pa_end = 0x4806e0ff,
4960 .flags = ADDR_TYPE_RT
4965 /* l4_per -> uart4 */
4966 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4967 .master = &omap44xx_l4_per_hwmod,
4968 .slave = &omap44xx_uart4_hwmod,
4969 .clk = "l4_div_ck",
4970 .addr = omap44xx_uart4_addrs,
4971 .user = OCP_USER_MPU | OCP_USER_SDMA,
4974 /* uart4 slave ports */
4975 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
4976 &omap44xx_l4_per__uart4,
4979 static struct omap_hwmod omap44xx_uart4_hwmod = {
4980 .name = "uart4",
4981 .class = &omap44xx_uart_hwmod_class,
4982 .clkdm_name = "l4_per_clkdm",
4983 .mpu_irqs = omap44xx_uart4_irqs,
4984 .sdma_reqs = omap44xx_uart4_sdma_reqs,
4985 .main_clk = "uart4_fck",
4986 .prcm = {
4987 .omap4 = {
4988 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
4989 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
4990 .modulemode = MODULEMODE_SWCTRL,
4993 .slaves = omap44xx_uart4_slaves,
4994 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
4998 * 'usb_otg_hs' class
4999 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
5002 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
5003 .rev_offs = 0x0400,
5004 .sysc_offs = 0x0404,
5005 .syss_offs = 0x0408,
5006 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
5007 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
5008 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
5009 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5010 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
5011 MSTANDBY_SMART),
5012 .sysc_fields = &omap_hwmod_sysc_type1,
5015 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
5016 .name = "usb_otg_hs",
5017 .sysc = &omap44xx_usb_otg_hs_sysc,
5020 /* usb_otg_hs */
5021 static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
5022 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
5023 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
5024 { .irq = -1 }
5027 /* usb_otg_hs master ports */
5028 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
5029 &omap44xx_usb_otg_hs__l3_main_2,
5032 static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
5034 .pa_start = 0x4a0ab000,
5035 .pa_end = 0x4a0ab003,
5036 .flags = ADDR_TYPE_RT
5041 /* l4_cfg -> usb_otg_hs */
5042 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
5043 .master = &omap44xx_l4_cfg_hwmod,
5044 .slave = &omap44xx_usb_otg_hs_hwmod,
5045 .clk = "l4_div_ck",
5046 .addr = omap44xx_usb_otg_hs_addrs,
5047 .user = OCP_USER_MPU | OCP_USER_SDMA,
5050 /* usb_otg_hs slave ports */
5051 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
5052 &omap44xx_l4_cfg__usb_otg_hs,
5055 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
5056 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
5059 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
5060 .name = "usb_otg_hs",
5061 .class = &omap44xx_usb_otg_hs_hwmod_class,
5062 .clkdm_name = "l3_init_clkdm",
5063 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
5064 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
5065 .main_clk = "usb_otg_hs_ick",
5066 .prcm = {
5067 .omap4 = {
5068 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
5069 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
5070 .modulemode = MODULEMODE_HWCTRL,
5073 .opt_clks = usb_otg_hs_opt_clks,
5074 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
5075 .slaves = omap44xx_usb_otg_hs_slaves,
5076 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
5077 .masters = omap44xx_usb_otg_hs_masters,
5078 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
5082 * 'wd_timer' class
5083 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
5084 * overflow condition
5087 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
5088 .rev_offs = 0x0000,
5089 .sysc_offs = 0x0010,
5090 .syss_offs = 0x0014,
5091 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
5092 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
5093 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5094 SIDLE_SMART_WKUP),
5095 .sysc_fields = &omap_hwmod_sysc_type1,
5098 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
5099 .name = "wd_timer",
5100 .sysc = &omap44xx_wd_timer_sysc,
5101 .pre_shutdown = &omap2_wd_timer_disable,
5104 /* wd_timer2 */
5105 static struct omap_hwmod omap44xx_wd_timer2_hwmod;
5106 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
5107 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
5108 { .irq = -1 }
5111 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
5113 .pa_start = 0x4a314000,
5114 .pa_end = 0x4a31407f,
5115 .flags = ADDR_TYPE_RT
5120 /* l4_wkup -> wd_timer2 */
5121 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
5122 .master = &omap44xx_l4_wkup_hwmod,
5123 .slave = &omap44xx_wd_timer2_hwmod,
5124 .clk = "l4_wkup_clk_mux_ck",
5125 .addr = omap44xx_wd_timer2_addrs,
5126 .user = OCP_USER_MPU | OCP_USER_SDMA,
5129 /* wd_timer2 slave ports */
5130 static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
5131 &omap44xx_l4_wkup__wd_timer2,
5134 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
5135 .name = "wd_timer2",
5136 .class = &omap44xx_wd_timer_hwmod_class,
5137 .clkdm_name = "l4_wkup_clkdm",
5138 .mpu_irqs = omap44xx_wd_timer2_irqs,
5139 .main_clk = "wd_timer2_fck",
5140 .prcm = {
5141 .omap4 = {
5142 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
5143 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
5144 .modulemode = MODULEMODE_SWCTRL,
5147 .slaves = omap44xx_wd_timer2_slaves,
5148 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
5151 /* wd_timer3 */
5152 static struct omap_hwmod omap44xx_wd_timer3_hwmod;
5153 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
5154 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
5155 { .irq = -1 }
5158 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
5160 .pa_start = 0x40130000,
5161 .pa_end = 0x4013007f,
5162 .flags = ADDR_TYPE_RT
5167 /* l4_abe -> wd_timer3 */
5168 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
5169 .master = &omap44xx_l4_abe_hwmod,
5170 .slave = &omap44xx_wd_timer3_hwmod,
5171 .clk = "ocp_abe_iclk",
5172 .addr = omap44xx_wd_timer3_addrs,
5173 .user = OCP_USER_MPU,
5176 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
5178 .pa_start = 0x49030000,
5179 .pa_end = 0x4903007f,
5180 .flags = ADDR_TYPE_RT
5185 /* l4_abe -> wd_timer3 (dma) */
5186 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
5187 .master = &omap44xx_l4_abe_hwmod,
5188 .slave = &omap44xx_wd_timer3_hwmod,
5189 .clk = "ocp_abe_iclk",
5190 .addr = omap44xx_wd_timer3_dma_addrs,
5191 .user = OCP_USER_SDMA,
5194 /* wd_timer3 slave ports */
5195 static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
5196 &omap44xx_l4_abe__wd_timer3,
5197 &omap44xx_l4_abe__wd_timer3_dma,
5200 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
5201 .name = "wd_timer3",
5202 .class = &omap44xx_wd_timer_hwmod_class,
5203 .clkdm_name = "abe_clkdm",
5204 .mpu_irqs = omap44xx_wd_timer3_irqs,
5205 .main_clk = "wd_timer3_fck",
5206 .prcm = {
5207 .omap4 = {
5208 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
5209 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
5210 .modulemode = MODULEMODE_SWCTRL,
5213 .slaves = omap44xx_wd_timer3_slaves,
5214 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
5218 * 'usb_host_hs' class
5219 * high-speed multi-port usb host controller
5221 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
5222 .master = &omap44xx_usb_host_hs_hwmod,
5223 .slave = &omap44xx_l3_main_2_hwmod,
5224 .clk = "l3_div_ck",
5225 .user = OCP_USER_MPU | OCP_USER_SDMA,
5228 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
5229 .rev_offs = 0x0000,
5230 .sysc_offs = 0x0010,
5231 .syss_offs = 0x0014,
5232 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
5233 SYSC_HAS_SOFTRESET),
5234 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5235 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
5236 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
5237 .sysc_fields = &omap_hwmod_sysc_type2,
5240 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
5241 .name = "usb_host_hs",
5242 .sysc = &omap44xx_usb_host_hs_sysc,
5245 static struct omap_hwmod_ocp_if *omap44xx_usb_host_hs_masters[] = {
5246 &omap44xx_usb_host_hs__l3_main_2,
5249 static struct omap_hwmod_addr_space omap44xx_usb_host_hs_addrs[] = {
5251 .name = "uhh",
5252 .pa_start = 0x4a064000,
5253 .pa_end = 0x4a0647ff,
5254 .flags = ADDR_TYPE_RT
5257 .name = "ohci",
5258 .pa_start = 0x4a064800,
5259 .pa_end = 0x4a064bff,
5262 .name = "ehci",
5263 .pa_start = 0x4a064c00,
5264 .pa_end = 0x4a064fff,
5269 static struct omap_hwmod_irq_info omap44xx_usb_host_hs_irqs[] = {
5270 { .name = "ohci-irq", .irq = 76 + OMAP44XX_IRQ_GIC_START },
5271 { .name = "ehci-irq", .irq = 77 + OMAP44XX_IRQ_GIC_START },
5272 { .irq = -1 }
5275 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
5276 .master = &omap44xx_l4_cfg_hwmod,
5277 .slave = &omap44xx_usb_host_hs_hwmod,
5278 .clk = "l4_div_ck",
5279 .addr = omap44xx_usb_host_hs_addrs,
5280 .user = OCP_USER_MPU | OCP_USER_SDMA,
5283 static struct omap_hwmod_ocp_if *omap44xx_usb_host_hs_slaves[] = {
5284 &omap44xx_l4_cfg__usb_host_hs,
5287 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
5288 .name = "usb_host_hs",
5289 .class = &omap44xx_usb_host_hs_hwmod_class,
5290 .clkdm_name = "l3_init_clkdm",
5291 .main_clk = "usb_host_hs_fck",
5292 .prcm = {
5293 .omap4 = {
5294 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
5295 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
5296 .modulemode = MODULEMODE_SWCTRL,
5299 .mpu_irqs = omap44xx_usb_host_hs_irqs,
5300 .slaves = omap44xx_usb_host_hs_slaves,
5301 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_host_hs_slaves),
5302 .masters = omap44xx_usb_host_hs_masters,
5303 .masters_cnt = ARRAY_SIZE(omap44xx_usb_host_hs_masters),
5306 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
5307 * id: i660
5309 * Description:
5310 * In the following configuration :
5311 * - USBHOST module is set to smart-idle mode
5312 * - PRCM asserts idle_req to the USBHOST module ( This typically
5313 * happens when the system is going to a low power mode : all ports
5314 * have been suspended, the master part of the USBHOST module has
5315 * entered the standby state, and SW has cut the functional clocks)
5316 * - an USBHOST interrupt occurs before the module is able to answer
5317 * idle_ack, typically a remote wakeup IRQ.
5318 * Then the USB HOST module will enter a deadlock situation where it
5319 * is no more accessible nor functional.
5321 * Workaround:
5322 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
5326 * Errata: USB host EHCI may stall when entering smart-standby mode
5327 * Id: i571
5329 * Description:
5330 * When the USBHOST module is set to smart-standby mode, and when it is
5331 * ready to enter the standby state (i.e. all ports are suspended and
5332 * all attached devices are in suspend mode), then it can wrongly assert
5333 * the Mstandby signal too early while there are still some residual OCP
5334 * transactions ongoing. If this condition occurs, the internal state
5335 * machine may go to an undefined state and the USB link may be stuck
5336 * upon the next resume.
5338 * Workaround:
5339 * Don't use smart standby; use only force standby,
5340 * hence HWMOD_SWSUP_MSTANDBY
5344 * During system boot; If the hwmod framework resets the module
5345 * the module will have smart idle settings; which can lead to deadlock
5346 * (above Errata Id:i660); so, dont reset the module during boot;
5347 * Use HWMOD_INIT_NO_RESET.
5350 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
5351 HWMOD_INIT_NO_RESET,
5355 * 'usb_tll_hs' class
5356 * usb_tll_hs module is the adapter on the usb_host_hs ports
5358 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
5359 .rev_offs = 0x0000,
5360 .sysc_offs = 0x0010,
5361 .syss_offs = 0x0014,
5362 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
5363 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
5364 SYSC_HAS_AUTOIDLE),
5365 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
5366 .sysc_fields = &omap_hwmod_sysc_type1,
5369 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
5370 .name = "usb_tll_hs",
5371 .sysc = &omap44xx_usb_tll_hs_sysc,
5374 static struct omap_hwmod_irq_info omap44xx_usb_tll_hs_irqs[] = {
5375 { .name = "tll-irq", .irq = 78 + OMAP44XX_IRQ_GIC_START },
5376 { .irq = -1 }
5379 static struct omap_hwmod_addr_space omap44xx_usb_tll_hs_addrs[] = {
5381 .name = "tll",
5382 .pa_start = 0x4a062000,
5383 .pa_end = 0x4a063fff,
5384 .flags = ADDR_TYPE_RT
5389 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
5390 .master = &omap44xx_l4_cfg_hwmod,
5391 .slave = &omap44xx_usb_tll_hs_hwmod,
5392 .clk = "l4_div_ck",
5393 .addr = omap44xx_usb_tll_hs_addrs,
5394 .user = OCP_USER_MPU | OCP_USER_SDMA,
5397 static struct omap_hwmod_ocp_if *omap44xx_usb_tll_hs_slaves[] = {
5398 &omap44xx_l4_cfg__usb_tll_hs,
5401 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
5402 .name = "usb_tll_hs",
5403 .class = &omap44xx_usb_tll_hs_hwmod_class,
5404 .clkdm_name = "l3_init_clkdm",
5405 .main_clk = "usb_tll_hs_ick",
5406 .prcm = {
5407 .omap4 = {
5408 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
5409 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
5410 .modulemode = MODULEMODE_HWCTRL,
5413 .mpu_irqs = omap44xx_usb_tll_hs_irqs,
5414 .slaves = omap44xx_usb_tll_hs_slaves,
5415 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_tll_hs_slaves),
5418 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
5420 /* dmm class */
5421 &omap44xx_dmm_hwmod,
5423 /* emif_fw class */
5424 &omap44xx_emif_fw_hwmod,
5426 /* l3 class */
5427 &omap44xx_l3_instr_hwmod,
5428 &omap44xx_l3_main_1_hwmod,
5429 &omap44xx_l3_main_2_hwmod,
5430 &omap44xx_l3_main_3_hwmod,
5432 /* l4 class */
5433 &omap44xx_l4_abe_hwmod,
5434 &omap44xx_l4_cfg_hwmod,
5435 &omap44xx_l4_per_hwmod,
5436 &omap44xx_l4_wkup_hwmod,
5438 /* mpu_bus class */
5439 &omap44xx_mpu_private_hwmod,
5441 /* aess class */
5442 &omap44xx_aess_hwmod,
5444 /* counter class */
5445 &omap44xx_counter_32k_hwmod,
5447 /* dma class */
5448 &omap44xx_dma_system_hwmod,
5450 /* dmic class */
5451 &omap44xx_dmic_hwmod,
5453 /* dsp class */
5454 &omap44xx_dsp_hwmod,
5456 /* dss class */
5457 &omap44xx_dss_hwmod,
5458 &omap44xx_dss_dispc_hwmod,
5459 &omap44xx_dss_dsi1_hwmod,
5460 &omap44xx_dss_dsi2_hwmod,
5461 &omap44xx_dss_hdmi_hwmod,
5462 &omap44xx_dss_rfbi_hwmod,
5463 &omap44xx_dss_venc_hwmod,
5465 /* gpio class */
5466 &omap44xx_gpio1_hwmod,
5467 &omap44xx_gpio2_hwmod,
5468 &omap44xx_gpio3_hwmod,
5469 &omap44xx_gpio4_hwmod,
5470 &omap44xx_gpio5_hwmod,
5471 &omap44xx_gpio6_hwmod,
5473 /* hsi class */
5474 &omap44xx_hsi_hwmod,
5476 /* i2c class */
5477 &omap44xx_i2c1_hwmod,
5478 &omap44xx_i2c2_hwmod,
5479 &omap44xx_i2c3_hwmod,
5480 &omap44xx_i2c4_hwmod,
5482 /* ipu class */
5483 &omap44xx_ipu_hwmod,
5485 /* iss class */
5486 &omap44xx_iss_hwmod,
5488 /* iva class */
5489 &omap44xx_iva_hwmod,
5491 /* kbd class */
5492 &omap44xx_kbd_hwmod,
5494 /* mailbox class */
5495 &omap44xx_mailbox_hwmod,
5497 /* mcbsp class */
5498 &omap44xx_mcbsp1_hwmod,
5499 &omap44xx_mcbsp2_hwmod,
5500 &omap44xx_mcbsp3_hwmod,
5501 &omap44xx_mcbsp4_hwmod,
5503 /* mcpdm class */
5504 &omap44xx_mcpdm_hwmod,
5506 /* mcspi class */
5507 &omap44xx_mcspi1_hwmod,
5508 &omap44xx_mcspi2_hwmod,
5509 &omap44xx_mcspi3_hwmod,
5510 &omap44xx_mcspi4_hwmod,
5512 /* mmc class */
5513 &omap44xx_mmc1_hwmod,
5514 &omap44xx_mmc2_hwmod,
5515 &omap44xx_mmc3_hwmod,
5516 &omap44xx_mmc4_hwmod,
5517 &omap44xx_mmc5_hwmod,
5519 /* mpu class */
5520 &omap44xx_mpu_hwmod,
5522 /* smartreflex class */
5523 &omap44xx_smartreflex_core_hwmod,
5524 &omap44xx_smartreflex_iva_hwmod,
5525 &omap44xx_smartreflex_mpu_hwmod,
5527 /* spinlock class */
5528 &omap44xx_spinlock_hwmod,
5530 /* timer class */
5531 &omap44xx_timer1_hwmod,
5532 &omap44xx_timer2_hwmod,
5533 &omap44xx_timer3_hwmod,
5534 &omap44xx_timer4_hwmod,
5535 &omap44xx_timer5_hwmod,
5536 &omap44xx_timer6_hwmod,
5537 &omap44xx_timer7_hwmod,
5538 &omap44xx_timer8_hwmod,
5539 &omap44xx_timer9_hwmod,
5540 &omap44xx_timer10_hwmod,
5541 &omap44xx_timer11_hwmod,
5543 /* uart class */
5544 &omap44xx_uart1_hwmod,
5545 &omap44xx_uart2_hwmod,
5546 &omap44xx_uart3_hwmod,
5547 &omap44xx_uart4_hwmod,
5549 /* usb host class */
5550 &omap44xx_usb_host_hs_hwmod,
5551 &omap44xx_usb_tll_hs_hwmod,
5553 /* usb_otg_hs class */
5554 &omap44xx_usb_otg_hs_hwmod,
5556 /* wd_timer class */
5557 &omap44xx_wd_timer2_hwmod,
5558 &omap44xx_wd_timer3_hwmod,
5559 NULL,
5562 int __init omap44xx_hwmod_init(void)
5564 return omap_hwmod_register(omap44xx_hwmods);