Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux
[linux/fpc-iii.git] / arch / arm / mach-omap2 / omap_hwmod_44xx_data.c
blob272b0178dba6495f087cf63f184eb1c185316a06
1 /*
2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2012 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>
22 #include <linux/platform_data/gpio-omap.h>
23 #include <linux/power/smartreflex.h>
24 #include <linux/platform_data/omap_ocp2scp.h>
25 #include <linux/i2c-omap.h>
27 #include <linux/omap-dma.h>
29 #include <linux/platform_data/omap_ocp2scp.h>
30 #include <linux/platform_data/spi-omap2-mcspi.h>
31 #include <linux/platform_data/asoc-ti-mcbsp.h>
32 #include <linux/platform_data/iommu-omap.h>
33 #include <plat/dmtimer.h>
35 #include "omap_hwmod.h"
36 #include "omap_hwmod_common_data.h"
37 #include "cm1_44xx.h"
38 #include "cm2_44xx.h"
39 #include "prm44xx.h"
40 #include "prm-regbits-44xx.h"
41 #include "i2c.h"
42 #include "mmc.h"
43 #include "wd_timer.h"
45 /* Base offset for all OMAP4 interrupts external to MPUSS */
46 #define OMAP44XX_IRQ_GIC_START 32
48 /* Base offset for all OMAP4 dma requests */
49 #define OMAP44XX_DMA_REQ_START 1
52 * IP blocks
56 * 'c2c_target_fw' class
57 * instance(s): c2c_target_fw
59 static struct omap_hwmod_class omap44xx_c2c_target_fw_hwmod_class = {
60 .name = "c2c_target_fw",
63 /* c2c_target_fw */
64 static struct omap_hwmod omap44xx_c2c_target_fw_hwmod = {
65 .name = "c2c_target_fw",
66 .class = &omap44xx_c2c_target_fw_hwmod_class,
67 .clkdm_name = "d2d_clkdm",
68 .prcm = {
69 .omap4 = {
70 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_FW_CLKCTRL_OFFSET,
71 .context_offs = OMAP4_RM_D2D_SAD2D_FW_CONTEXT_OFFSET,
77 * 'dmm' class
78 * instance(s): dmm
80 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
81 .name = "dmm",
84 /* dmm */
85 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
86 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
87 { .irq = -1 }
90 static struct omap_hwmod omap44xx_dmm_hwmod = {
91 .name = "dmm",
92 .class = &omap44xx_dmm_hwmod_class,
93 .clkdm_name = "l3_emif_clkdm",
94 .mpu_irqs = omap44xx_dmm_irqs,
95 .prcm = {
96 .omap4 = {
97 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
98 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
104 * 'emif_fw' class
105 * instance(s): emif_fw
107 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
108 .name = "emif_fw",
111 /* emif_fw */
112 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
113 .name = "emif_fw",
114 .class = &omap44xx_emif_fw_hwmod_class,
115 .clkdm_name = "l3_emif_clkdm",
116 .prcm = {
117 .omap4 = {
118 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET,
119 .context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET,
125 * 'l3' class
126 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
128 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
129 .name = "l3",
132 /* l3_instr */
133 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
134 .name = "l3_instr",
135 .class = &omap44xx_l3_hwmod_class,
136 .clkdm_name = "l3_instr_clkdm",
137 .prcm = {
138 .omap4 = {
139 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
140 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
141 .modulemode = MODULEMODE_HWCTRL,
146 /* l3_main_1 */
147 static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = {
148 { .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START },
149 { .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START },
150 { .irq = -1 }
153 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
154 .name = "l3_main_1",
155 .class = &omap44xx_l3_hwmod_class,
156 .clkdm_name = "l3_1_clkdm",
157 .mpu_irqs = omap44xx_l3_main_1_irqs,
158 .prcm = {
159 .omap4 = {
160 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
161 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
166 /* l3_main_2 */
167 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
168 .name = "l3_main_2",
169 .class = &omap44xx_l3_hwmod_class,
170 .clkdm_name = "l3_2_clkdm",
171 .prcm = {
172 .omap4 = {
173 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
174 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
179 /* l3_main_3 */
180 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
181 .name = "l3_main_3",
182 .class = &omap44xx_l3_hwmod_class,
183 .clkdm_name = "l3_instr_clkdm",
184 .prcm = {
185 .omap4 = {
186 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
187 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
188 .modulemode = MODULEMODE_HWCTRL,
194 * 'l4' class
195 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
197 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
198 .name = "l4",
201 /* l4_abe */
202 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
203 .name = "l4_abe",
204 .class = &omap44xx_l4_hwmod_class,
205 .clkdm_name = "abe_clkdm",
206 .prcm = {
207 .omap4 = {
208 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
209 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
210 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
211 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
216 /* l4_cfg */
217 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
218 .name = "l4_cfg",
219 .class = &omap44xx_l4_hwmod_class,
220 .clkdm_name = "l4_cfg_clkdm",
221 .prcm = {
222 .omap4 = {
223 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
224 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
229 /* l4_per */
230 static struct omap_hwmod omap44xx_l4_per_hwmod = {
231 .name = "l4_per",
232 .class = &omap44xx_l4_hwmod_class,
233 .clkdm_name = "l4_per_clkdm",
234 .prcm = {
235 .omap4 = {
236 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
237 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
242 /* l4_wkup */
243 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
244 .name = "l4_wkup",
245 .class = &omap44xx_l4_hwmod_class,
246 .clkdm_name = "l4_wkup_clkdm",
247 .prcm = {
248 .omap4 = {
249 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
250 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
256 * 'mpu_bus' class
257 * instance(s): mpu_private
259 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
260 .name = "mpu_bus",
263 /* mpu_private */
264 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
265 .name = "mpu_private",
266 .class = &omap44xx_mpu_bus_hwmod_class,
267 .clkdm_name = "mpuss_clkdm",
268 .prcm = {
269 .omap4 = {
270 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
276 * 'ocp_wp_noc' class
277 * instance(s): ocp_wp_noc
279 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
280 .name = "ocp_wp_noc",
283 /* ocp_wp_noc */
284 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
285 .name = "ocp_wp_noc",
286 .class = &omap44xx_ocp_wp_noc_hwmod_class,
287 .clkdm_name = "l3_instr_clkdm",
288 .prcm = {
289 .omap4 = {
290 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
291 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
292 .modulemode = MODULEMODE_HWCTRL,
298 * Modules omap_hwmod structures
300 * The following IPs are excluded for the moment because:
301 * - They do not need an explicit SW control using omap_hwmod API.
302 * - They still need to be validated with the driver
303 * properly adapted to omap_hwmod / omap_device
305 * usim
309 * 'aess' class
310 * audio engine sub system
313 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
314 .rev_offs = 0x0000,
315 .sysc_offs = 0x0010,
316 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
317 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
318 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
319 MSTANDBY_SMART_WKUP),
320 .sysc_fields = &omap_hwmod_sysc_type2,
323 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
324 .name = "aess",
325 .sysc = &omap44xx_aess_sysc,
328 /* aess */
329 static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
330 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
331 { .irq = -1 }
334 static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
335 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
336 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
337 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
338 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
339 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
340 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
341 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
342 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
343 { .dma_req = -1 }
346 static struct omap_hwmod omap44xx_aess_hwmod = {
347 .name = "aess",
348 .class = &omap44xx_aess_hwmod_class,
349 .clkdm_name = "abe_clkdm",
350 .mpu_irqs = omap44xx_aess_irqs,
351 .sdma_reqs = omap44xx_aess_sdma_reqs,
352 .main_clk = "aess_fck",
353 .prcm = {
354 .omap4 = {
355 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
356 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
357 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
358 .modulemode = MODULEMODE_SWCTRL,
364 * 'c2c' class
365 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
366 * soc
369 static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
370 .name = "c2c",
373 /* c2c */
374 static struct omap_hwmod_irq_info omap44xx_c2c_irqs[] = {
375 { .irq = 88 + OMAP44XX_IRQ_GIC_START },
376 { .irq = -1 }
379 static struct omap_hwmod_dma_info omap44xx_c2c_sdma_reqs[] = {
380 { .dma_req = 68 + OMAP44XX_DMA_REQ_START },
381 { .dma_req = -1 }
384 static struct omap_hwmod omap44xx_c2c_hwmod = {
385 .name = "c2c",
386 .class = &omap44xx_c2c_hwmod_class,
387 .clkdm_name = "d2d_clkdm",
388 .mpu_irqs = omap44xx_c2c_irqs,
389 .sdma_reqs = omap44xx_c2c_sdma_reqs,
390 .prcm = {
391 .omap4 = {
392 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
393 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
399 * 'counter' class
400 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
403 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
404 .rev_offs = 0x0000,
405 .sysc_offs = 0x0004,
406 .sysc_flags = SYSC_HAS_SIDLEMODE,
407 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
408 .sysc_fields = &omap_hwmod_sysc_type1,
411 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
412 .name = "counter",
413 .sysc = &omap44xx_counter_sysc,
416 /* counter_32k */
417 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
418 .name = "counter_32k",
419 .class = &omap44xx_counter_hwmod_class,
420 .clkdm_name = "l4_wkup_clkdm",
421 .flags = HWMOD_SWSUP_SIDLE,
422 .main_clk = "sys_32k_ck",
423 .prcm = {
424 .omap4 = {
425 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
426 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
432 * 'ctrl_module' class
433 * attila core control module + core pad control module + wkup pad control
434 * module + attila wkup control module
437 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
438 .rev_offs = 0x0000,
439 .sysc_offs = 0x0010,
440 .sysc_flags = SYSC_HAS_SIDLEMODE,
441 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
442 SIDLE_SMART_WKUP),
443 .sysc_fields = &omap_hwmod_sysc_type2,
446 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
447 .name = "ctrl_module",
448 .sysc = &omap44xx_ctrl_module_sysc,
451 /* ctrl_module_core */
452 static struct omap_hwmod_irq_info omap44xx_ctrl_module_core_irqs[] = {
453 { .irq = 8 + OMAP44XX_IRQ_GIC_START },
454 { .irq = -1 }
457 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
458 .name = "ctrl_module_core",
459 .class = &omap44xx_ctrl_module_hwmod_class,
460 .clkdm_name = "l4_cfg_clkdm",
461 .mpu_irqs = omap44xx_ctrl_module_core_irqs,
462 .prcm = {
463 .omap4 = {
464 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
469 /* ctrl_module_pad_core */
470 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
471 .name = "ctrl_module_pad_core",
472 .class = &omap44xx_ctrl_module_hwmod_class,
473 .clkdm_name = "l4_cfg_clkdm",
474 .prcm = {
475 .omap4 = {
476 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
481 /* ctrl_module_wkup */
482 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
483 .name = "ctrl_module_wkup",
484 .class = &omap44xx_ctrl_module_hwmod_class,
485 .clkdm_name = "l4_wkup_clkdm",
486 .prcm = {
487 .omap4 = {
488 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
493 /* ctrl_module_pad_wkup */
494 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
495 .name = "ctrl_module_pad_wkup",
496 .class = &omap44xx_ctrl_module_hwmod_class,
497 .clkdm_name = "l4_wkup_clkdm",
498 .prcm = {
499 .omap4 = {
500 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
506 * 'debugss' class
507 * debug and emulation sub system
510 static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
511 .name = "debugss",
514 /* debugss */
515 static struct omap_hwmod omap44xx_debugss_hwmod = {
516 .name = "debugss",
517 .class = &omap44xx_debugss_hwmod_class,
518 .clkdm_name = "emu_sys_clkdm",
519 .main_clk = "trace_clk_div_ck",
520 .prcm = {
521 .omap4 = {
522 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
523 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
529 * 'dma' class
530 * dma controller for data exchange between memory to memory (i.e. internal or
531 * external memory) and gp peripherals to memory or memory to gp peripherals
534 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
535 .rev_offs = 0x0000,
536 .sysc_offs = 0x002c,
537 .syss_offs = 0x0028,
538 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
539 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
540 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
541 SYSS_HAS_RESET_STATUS),
542 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
543 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
544 .sysc_fields = &omap_hwmod_sysc_type1,
547 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
548 .name = "dma",
549 .sysc = &omap44xx_dma_sysc,
552 /* dma dev_attr */
553 static struct omap_dma_dev_attr dma_dev_attr = {
554 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
555 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
556 .lch_count = 32,
559 /* dma_system */
560 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
561 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
562 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
563 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
564 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
565 { .irq = -1 }
568 static struct omap_hwmod omap44xx_dma_system_hwmod = {
569 .name = "dma_system",
570 .class = &omap44xx_dma_hwmod_class,
571 .clkdm_name = "l3_dma_clkdm",
572 .mpu_irqs = omap44xx_dma_system_irqs,
573 .main_clk = "l3_div_ck",
574 .prcm = {
575 .omap4 = {
576 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
577 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
580 .dev_attr = &dma_dev_attr,
584 * 'dmic' class
585 * digital microphone controller
588 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
589 .rev_offs = 0x0000,
590 .sysc_offs = 0x0010,
591 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
592 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
593 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
594 SIDLE_SMART_WKUP),
595 .sysc_fields = &omap_hwmod_sysc_type2,
598 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
599 .name = "dmic",
600 .sysc = &omap44xx_dmic_sysc,
603 /* dmic */
604 static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
605 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
606 { .irq = -1 }
609 static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
610 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
611 { .dma_req = -1 }
614 static struct omap_hwmod omap44xx_dmic_hwmod = {
615 .name = "dmic",
616 .class = &omap44xx_dmic_hwmod_class,
617 .clkdm_name = "abe_clkdm",
618 .mpu_irqs = omap44xx_dmic_irqs,
619 .sdma_reqs = omap44xx_dmic_sdma_reqs,
620 .main_clk = "dmic_fck",
621 .prcm = {
622 .omap4 = {
623 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
624 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
625 .modulemode = MODULEMODE_SWCTRL,
631 * 'dsp' class
632 * dsp sub-system
635 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
636 .name = "dsp",
639 /* dsp */
640 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
641 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
642 { .irq = -1 }
645 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
646 { .name = "dsp", .rst_shift = 0 },
649 static struct omap_hwmod omap44xx_dsp_hwmod = {
650 .name = "dsp",
651 .class = &omap44xx_dsp_hwmod_class,
652 .clkdm_name = "tesla_clkdm",
653 .mpu_irqs = omap44xx_dsp_irqs,
654 .rst_lines = omap44xx_dsp_resets,
655 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
656 .main_clk = "dsp_fck",
657 .prcm = {
658 .omap4 = {
659 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
660 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
661 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
662 .modulemode = MODULEMODE_HWCTRL,
668 * 'dss' class
669 * display sub-system
672 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
673 .rev_offs = 0x0000,
674 .syss_offs = 0x0014,
675 .sysc_flags = SYSS_HAS_RESET_STATUS,
678 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
679 .name = "dss",
680 .sysc = &omap44xx_dss_sysc,
681 .reset = omap_dss_reset,
684 /* dss */
685 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
686 { .role = "sys_clk", .clk = "dss_sys_clk" },
687 { .role = "tv_clk", .clk = "dss_tv_clk" },
688 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
691 static struct omap_hwmod omap44xx_dss_hwmod = {
692 .name = "dss_core",
693 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
694 .class = &omap44xx_dss_hwmod_class,
695 .clkdm_name = "l3_dss_clkdm",
696 .main_clk = "dss_dss_clk",
697 .prcm = {
698 .omap4 = {
699 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
700 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
703 .opt_clks = dss_opt_clks,
704 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
708 * 'dispc' class
709 * display controller
712 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
713 .rev_offs = 0x0000,
714 .sysc_offs = 0x0010,
715 .syss_offs = 0x0014,
716 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
717 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
718 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
719 SYSS_HAS_RESET_STATUS),
720 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
721 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
722 .sysc_fields = &omap_hwmod_sysc_type1,
725 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
726 .name = "dispc",
727 .sysc = &omap44xx_dispc_sysc,
730 /* dss_dispc */
731 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
732 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
733 { .irq = -1 }
736 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
737 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
738 { .dma_req = -1 }
741 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
742 .manager_count = 3,
743 .has_framedonetv_irq = 1
746 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
747 .name = "dss_dispc",
748 .class = &omap44xx_dispc_hwmod_class,
749 .clkdm_name = "l3_dss_clkdm",
750 .mpu_irqs = omap44xx_dss_dispc_irqs,
751 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
752 .main_clk = "dss_dss_clk",
753 .prcm = {
754 .omap4 = {
755 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
756 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
759 .dev_attr = &omap44xx_dss_dispc_dev_attr
763 * 'dsi' class
764 * display serial interface controller
767 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
768 .rev_offs = 0x0000,
769 .sysc_offs = 0x0010,
770 .syss_offs = 0x0014,
771 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
772 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
773 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
774 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
775 .sysc_fields = &omap_hwmod_sysc_type1,
778 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
779 .name = "dsi",
780 .sysc = &omap44xx_dsi_sysc,
783 /* dss_dsi1 */
784 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
785 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
786 { .irq = -1 }
789 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
790 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
791 { .dma_req = -1 }
794 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
795 { .role = "sys_clk", .clk = "dss_sys_clk" },
798 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
799 .name = "dss_dsi1",
800 .class = &omap44xx_dsi_hwmod_class,
801 .clkdm_name = "l3_dss_clkdm",
802 .mpu_irqs = omap44xx_dss_dsi1_irqs,
803 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
804 .main_clk = "dss_dss_clk",
805 .prcm = {
806 .omap4 = {
807 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
808 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
811 .opt_clks = dss_dsi1_opt_clks,
812 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
815 /* dss_dsi2 */
816 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
817 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
818 { .irq = -1 }
821 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
822 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
823 { .dma_req = -1 }
826 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
827 { .role = "sys_clk", .clk = "dss_sys_clk" },
830 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
831 .name = "dss_dsi2",
832 .class = &omap44xx_dsi_hwmod_class,
833 .clkdm_name = "l3_dss_clkdm",
834 .mpu_irqs = omap44xx_dss_dsi2_irqs,
835 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
836 .main_clk = "dss_dss_clk",
837 .prcm = {
838 .omap4 = {
839 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
840 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
843 .opt_clks = dss_dsi2_opt_clks,
844 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
848 * 'hdmi' class
849 * hdmi controller
852 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
853 .rev_offs = 0x0000,
854 .sysc_offs = 0x0010,
855 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
856 SYSC_HAS_SOFTRESET),
857 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
858 SIDLE_SMART_WKUP),
859 .sysc_fields = &omap_hwmod_sysc_type2,
862 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
863 .name = "hdmi",
864 .sysc = &omap44xx_hdmi_sysc,
867 /* dss_hdmi */
868 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
869 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
870 { .irq = -1 }
873 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
874 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
875 { .dma_req = -1 }
878 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
879 { .role = "sys_clk", .clk = "dss_sys_clk" },
882 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
883 .name = "dss_hdmi",
884 .class = &omap44xx_hdmi_hwmod_class,
885 .clkdm_name = "l3_dss_clkdm",
887 * HDMI audio requires to use no-idle mode. Hence,
888 * set idle mode by software.
890 .flags = HWMOD_SWSUP_SIDLE,
891 .mpu_irqs = omap44xx_dss_hdmi_irqs,
892 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
893 .main_clk = "dss_48mhz_clk",
894 .prcm = {
895 .omap4 = {
896 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
897 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
900 .opt_clks = dss_hdmi_opt_clks,
901 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
905 * 'rfbi' class
906 * remote frame buffer interface
909 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
910 .rev_offs = 0x0000,
911 .sysc_offs = 0x0010,
912 .syss_offs = 0x0014,
913 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
914 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
915 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
916 .sysc_fields = &omap_hwmod_sysc_type1,
919 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
920 .name = "rfbi",
921 .sysc = &omap44xx_rfbi_sysc,
924 /* dss_rfbi */
925 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
926 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
927 { .dma_req = -1 }
930 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
931 { .role = "ick", .clk = "dss_fck" },
934 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
935 .name = "dss_rfbi",
936 .class = &omap44xx_rfbi_hwmod_class,
937 .clkdm_name = "l3_dss_clkdm",
938 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
939 .main_clk = "dss_dss_clk",
940 .prcm = {
941 .omap4 = {
942 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
943 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
946 .opt_clks = dss_rfbi_opt_clks,
947 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
951 * 'venc' class
952 * video encoder
955 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
956 .name = "venc",
959 /* dss_venc */
960 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
961 .name = "dss_venc",
962 .class = &omap44xx_venc_hwmod_class,
963 .clkdm_name = "l3_dss_clkdm",
964 .main_clk = "dss_tv_clk",
965 .prcm = {
966 .omap4 = {
967 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
968 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
974 * 'elm' class
975 * bch error location module
978 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
979 .rev_offs = 0x0000,
980 .sysc_offs = 0x0010,
981 .syss_offs = 0x0014,
982 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
983 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
984 SYSS_HAS_RESET_STATUS),
985 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
986 .sysc_fields = &omap_hwmod_sysc_type1,
989 static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
990 .name = "elm",
991 .sysc = &omap44xx_elm_sysc,
994 /* elm */
995 static struct omap_hwmod_irq_info omap44xx_elm_irqs[] = {
996 { .irq = 4 + OMAP44XX_IRQ_GIC_START },
997 { .irq = -1 }
1000 static struct omap_hwmod omap44xx_elm_hwmod = {
1001 .name = "elm",
1002 .class = &omap44xx_elm_hwmod_class,
1003 .clkdm_name = "l4_per_clkdm",
1004 .mpu_irqs = omap44xx_elm_irqs,
1005 .prcm = {
1006 .omap4 = {
1007 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
1008 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
1014 * 'emif' class
1015 * external memory interface no1
1018 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
1019 .rev_offs = 0x0000,
1022 static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
1023 .name = "emif",
1024 .sysc = &omap44xx_emif_sysc,
1027 /* emif1 */
1028 static struct omap_hwmod_irq_info omap44xx_emif1_irqs[] = {
1029 { .irq = 110 + OMAP44XX_IRQ_GIC_START },
1030 { .irq = -1 }
1033 static struct omap_hwmod omap44xx_emif1_hwmod = {
1034 .name = "emif1",
1035 .class = &omap44xx_emif_hwmod_class,
1036 .clkdm_name = "l3_emif_clkdm",
1037 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1038 .mpu_irqs = omap44xx_emif1_irqs,
1039 .main_clk = "ddrphy_ck",
1040 .prcm = {
1041 .omap4 = {
1042 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
1043 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
1044 .modulemode = MODULEMODE_HWCTRL,
1049 /* emif2 */
1050 static struct omap_hwmod_irq_info omap44xx_emif2_irqs[] = {
1051 { .irq = 111 + OMAP44XX_IRQ_GIC_START },
1052 { .irq = -1 }
1055 static struct omap_hwmod omap44xx_emif2_hwmod = {
1056 .name = "emif2",
1057 .class = &omap44xx_emif_hwmod_class,
1058 .clkdm_name = "l3_emif_clkdm",
1059 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1060 .mpu_irqs = omap44xx_emif2_irqs,
1061 .main_clk = "ddrphy_ck",
1062 .prcm = {
1063 .omap4 = {
1064 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
1065 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
1066 .modulemode = MODULEMODE_HWCTRL,
1072 * 'fdif' class
1073 * face detection hw accelerator module
1076 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1077 .rev_offs = 0x0000,
1078 .sysc_offs = 0x0010,
1080 * FDIF needs 100 OCP clk cycles delay after a softreset before
1081 * accessing sysconfig again.
1082 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1083 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1085 * TODO: Indicate errata when available.
1087 .srst_udelay = 2,
1088 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1089 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1090 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1091 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1092 .sysc_fields = &omap_hwmod_sysc_type2,
1095 static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1096 .name = "fdif",
1097 .sysc = &omap44xx_fdif_sysc,
1100 /* fdif */
1101 static struct omap_hwmod_irq_info omap44xx_fdif_irqs[] = {
1102 { .irq = 69 + OMAP44XX_IRQ_GIC_START },
1103 { .irq = -1 }
1106 static struct omap_hwmod omap44xx_fdif_hwmod = {
1107 .name = "fdif",
1108 .class = &omap44xx_fdif_hwmod_class,
1109 .clkdm_name = "iss_clkdm",
1110 .mpu_irqs = omap44xx_fdif_irqs,
1111 .main_clk = "fdif_fck",
1112 .prcm = {
1113 .omap4 = {
1114 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1115 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1116 .modulemode = MODULEMODE_SWCTRL,
1122 * 'gpio' class
1123 * general purpose io module
1126 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1127 .rev_offs = 0x0000,
1128 .sysc_offs = 0x0010,
1129 .syss_offs = 0x0114,
1130 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1131 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1132 SYSS_HAS_RESET_STATUS),
1133 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1134 SIDLE_SMART_WKUP),
1135 .sysc_fields = &omap_hwmod_sysc_type1,
1138 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1139 .name = "gpio",
1140 .sysc = &omap44xx_gpio_sysc,
1141 .rev = 2,
1144 /* gpio dev_attr */
1145 static struct omap_gpio_dev_attr gpio_dev_attr = {
1146 .bank_width = 32,
1147 .dbck_flag = true,
1150 /* gpio1 */
1151 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1152 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
1153 { .irq = -1 }
1156 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1157 { .role = "dbclk", .clk = "gpio1_dbclk" },
1160 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1161 .name = "gpio1",
1162 .class = &omap44xx_gpio_hwmod_class,
1163 .clkdm_name = "l4_wkup_clkdm",
1164 .mpu_irqs = omap44xx_gpio1_irqs,
1165 .main_clk = "gpio1_ick",
1166 .prcm = {
1167 .omap4 = {
1168 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
1169 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
1170 .modulemode = MODULEMODE_HWCTRL,
1173 .opt_clks = gpio1_opt_clks,
1174 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1175 .dev_attr = &gpio_dev_attr,
1178 /* gpio2 */
1179 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1180 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
1181 { .irq = -1 }
1184 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1185 { .role = "dbclk", .clk = "gpio2_dbclk" },
1188 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1189 .name = "gpio2",
1190 .class = &omap44xx_gpio_hwmod_class,
1191 .clkdm_name = "l4_per_clkdm",
1192 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1193 .mpu_irqs = omap44xx_gpio2_irqs,
1194 .main_clk = "gpio2_ick",
1195 .prcm = {
1196 .omap4 = {
1197 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
1198 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
1199 .modulemode = MODULEMODE_HWCTRL,
1202 .opt_clks = gpio2_opt_clks,
1203 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1204 .dev_attr = &gpio_dev_attr,
1207 /* gpio3 */
1208 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1209 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
1210 { .irq = -1 }
1213 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1214 { .role = "dbclk", .clk = "gpio3_dbclk" },
1217 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1218 .name = "gpio3",
1219 .class = &omap44xx_gpio_hwmod_class,
1220 .clkdm_name = "l4_per_clkdm",
1221 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1222 .mpu_irqs = omap44xx_gpio3_irqs,
1223 .main_clk = "gpio3_ick",
1224 .prcm = {
1225 .omap4 = {
1226 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
1227 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
1228 .modulemode = MODULEMODE_HWCTRL,
1231 .opt_clks = gpio3_opt_clks,
1232 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1233 .dev_attr = &gpio_dev_attr,
1236 /* gpio4 */
1237 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1238 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
1239 { .irq = -1 }
1242 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1243 { .role = "dbclk", .clk = "gpio4_dbclk" },
1246 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1247 .name = "gpio4",
1248 .class = &omap44xx_gpio_hwmod_class,
1249 .clkdm_name = "l4_per_clkdm",
1250 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1251 .mpu_irqs = omap44xx_gpio4_irqs,
1252 .main_clk = "gpio4_ick",
1253 .prcm = {
1254 .omap4 = {
1255 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
1256 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
1257 .modulemode = MODULEMODE_HWCTRL,
1260 .opt_clks = gpio4_opt_clks,
1261 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1262 .dev_attr = &gpio_dev_attr,
1265 /* gpio5 */
1266 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1267 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
1268 { .irq = -1 }
1271 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1272 { .role = "dbclk", .clk = "gpio5_dbclk" },
1275 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1276 .name = "gpio5",
1277 .class = &omap44xx_gpio_hwmod_class,
1278 .clkdm_name = "l4_per_clkdm",
1279 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1280 .mpu_irqs = omap44xx_gpio5_irqs,
1281 .main_clk = "gpio5_ick",
1282 .prcm = {
1283 .omap4 = {
1284 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
1285 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
1286 .modulemode = MODULEMODE_HWCTRL,
1289 .opt_clks = gpio5_opt_clks,
1290 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1291 .dev_attr = &gpio_dev_attr,
1294 /* gpio6 */
1295 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1296 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
1297 { .irq = -1 }
1300 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1301 { .role = "dbclk", .clk = "gpio6_dbclk" },
1304 static struct omap_hwmod omap44xx_gpio6_hwmod = {
1305 .name = "gpio6",
1306 .class = &omap44xx_gpio_hwmod_class,
1307 .clkdm_name = "l4_per_clkdm",
1308 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1309 .mpu_irqs = omap44xx_gpio6_irqs,
1310 .main_clk = "gpio6_ick",
1311 .prcm = {
1312 .omap4 = {
1313 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
1314 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
1315 .modulemode = MODULEMODE_HWCTRL,
1318 .opt_clks = gpio6_opt_clks,
1319 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1320 .dev_attr = &gpio_dev_attr,
1324 * 'gpmc' class
1325 * general purpose memory controller
1328 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1329 .rev_offs = 0x0000,
1330 .sysc_offs = 0x0010,
1331 .syss_offs = 0x0014,
1332 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1333 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1334 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1335 .sysc_fields = &omap_hwmod_sysc_type1,
1338 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1339 .name = "gpmc",
1340 .sysc = &omap44xx_gpmc_sysc,
1343 /* gpmc */
1344 static struct omap_hwmod_irq_info omap44xx_gpmc_irqs[] = {
1345 { .irq = 20 + OMAP44XX_IRQ_GIC_START },
1346 { .irq = -1 }
1349 static struct omap_hwmod_dma_info omap44xx_gpmc_sdma_reqs[] = {
1350 { .dma_req = 3 + OMAP44XX_DMA_REQ_START },
1351 { .dma_req = -1 }
1354 static struct omap_hwmod omap44xx_gpmc_hwmod = {
1355 .name = "gpmc",
1356 .class = &omap44xx_gpmc_hwmod_class,
1357 .clkdm_name = "l3_2_clkdm",
1359 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
1360 * block. It is not being added due to any known bugs with
1361 * resetting the GPMC IP block, but rather because any timings
1362 * set by the bootloader are not being correctly programmed by
1363 * the kernel from the board file or DT data.
1364 * HWMOD_INIT_NO_RESET should be removed ASAP.
1366 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1367 .mpu_irqs = omap44xx_gpmc_irqs,
1368 .sdma_reqs = omap44xx_gpmc_sdma_reqs,
1369 .prcm = {
1370 .omap4 = {
1371 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1372 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1373 .modulemode = MODULEMODE_HWCTRL,
1379 * 'gpu' class
1380 * 2d/3d graphics accelerator
1383 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1384 .rev_offs = 0x1fc00,
1385 .sysc_offs = 0x1fc10,
1386 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1387 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1388 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1389 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1390 .sysc_fields = &omap_hwmod_sysc_type2,
1393 static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1394 .name = "gpu",
1395 .sysc = &omap44xx_gpu_sysc,
1398 /* gpu */
1399 static struct omap_hwmod_irq_info omap44xx_gpu_irqs[] = {
1400 { .irq = 21 + OMAP44XX_IRQ_GIC_START },
1401 { .irq = -1 }
1404 static struct omap_hwmod omap44xx_gpu_hwmod = {
1405 .name = "gpu",
1406 .class = &omap44xx_gpu_hwmod_class,
1407 .clkdm_name = "l3_gfx_clkdm",
1408 .mpu_irqs = omap44xx_gpu_irqs,
1409 .main_clk = "gpu_fck",
1410 .prcm = {
1411 .omap4 = {
1412 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1413 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1414 .modulemode = MODULEMODE_SWCTRL,
1420 * 'hdq1w' class
1421 * hdq / 1-wire serial interface controller
1424 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1425 .rev_offs = 0x0000,
1426 .sysc_offs = 0x0014,
1427 .syss_offs = 0x0018,
1428 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1429 SYSS_HAS_RESET_STATUS),
1430 .sysc_fields = &omap_hwmod_sysc_type1,
1433 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1434 .name = "hdq1w",
1435 .sysc = &omap44xx_hdq1w_sysc,
1438 /* hdq1w */
1439 static struct omap_hwmod_irq_info omap44xx_hdq1w_irqs[] = {
1440 { .irq = 58 + OMAP44XX_IRQ_GIC_START },
1441 { .irq = -1 }
1444 static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1445 .name = "hdq1w",
1446 .class = &omap44xx_hdq1w_hwmod_class,
1447 .clkdm_name = "l4_per_clkdm",
1448 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1449 .mpu_irqs = omap44xx_hdq1w_irqs,
1450 .main_clk = "hdq1w_fck",
1451 .prcm = {
1452 .omap4 = {
1453 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1454 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1455 .modulemode = MODULEMODE_SWCTRL,
1461 * 'hsi' class
1462 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1463 * serial if)
1466 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1467 .rev_offs = 0x0000,
1468 .sysc_offs = 0x0010,
1469 .syss_offs = 0x0014,
1470 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1471 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1472 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1473 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1474 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1475 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1476 .sysc_fields = &omap_hwmod_sysc_type1,
1479 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1480 .name = "hsi",
1481 .sysc = &omap44xx_hsi_sysc,
1484 /* hsi */
1485 static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
1486 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
1487 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
1488 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
1489 { .irq = -1 }
1492 static struct omap_hwmod omap44xx_hsi_hwmod = {
1493 .name = "hsi",
1494 .class = &omap44xx_hsi_hwmod_class,
1495 .clkdm_name = "l3_init_clkdm",
1496 .mpu_irqs = omap44xx_hsi_irqs,
1497 .main_clk = "hsi_fck",
1498 .prcm = {
1499 .omap4 = {
1500 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
1501 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
1502 .modulemode = MODULEMODE_HWCTRL,
1508 * 'i2c' class
1509 * multimaster high-speed i2c controller
1512 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1513 .sysc_offs = 0x0010,
1514 .syss_offs = 0x0090,
1515 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1516 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1517 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1518 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1519 SIDLE_SMART_WKUP),
1520 .clockact = CLOCKACT_TEST_ICLK,
1521 .sysc_fields = &omap_hwmod_sysc_type1,
1524 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1525 .name = "i2c",
1526 .sysc = &omap44xx_i2c_sysc,
1527 .rev = OMAP_I2C_IP_VERSION_2,
1528 .reset = &omap_i2c_reset,
1531 static struct omap_i2c_dev_attr i2c_dev_attr = {
1532 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
1535 /* i2c1 */
1536 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1537 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
1538 { .irq = -1 }
1541 static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1542 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1543 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
1544 { .dma_req = -1 }
1547 static struct omap_hwmod omap44xx_i2c1_hwmod = {
1548 .name = "i2c1",
1549 .class = &omap44xx_i2c_hwmod_class,
1550 .clkdm_name = "l4_per_clkdm",
1551 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1552 .mpu_irqs = omap44xx_i2c1_irqs,
1553 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
1554 .main_clk = "i2c1_fck",
1555 .prcm = {
1556 .omap4 = {
1557 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
1558 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
1559 .modulemode = MODULEMODE_SWCTRL,
1562 .dev_attr = &i2c_dev_attr,
1565 /* i2c2 */
1566 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1567 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
1568 { .irq = -1 }
1571 static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1572 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1573 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
1574 { .dma_req = -1 }
1577 static struct omap_hwmod omap44xx_i2c2_hwmod = {
1578 .name = "i2c2",
1579 .class = &omap44xx_i2c_hwmod_class,
1580 .clkdm_name = "l4_per_clkdm",
1581 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1582 .mpu_irqs = omap44xx_i2c2_irqs,
1583 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
1584 .main_clk = "i2c2_fck",
1585 .prcm = {
1586 .omap4 = {
1587 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
1588 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
1589 .modulemode = MODULEMODE_SWCTRL,
1592 .dev_attr = &i2c_dev_attr,
1595 /* i2c3 */
1596 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1597 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
1598 { .irq = -1 }
1601 static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1602 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1603 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
1604 { .dma_req = -1 }
1607 static struct omap_hwmod omap44xx_i2c3_hwmod = {
1608 .name = "i2c3",
1609 .class = &omap44xx_i2c_hwmod_class,
1610 .clkdm_name = "l4_per_clkdm",
1611 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1612 .mpu_irqs = omap44xx_i2c3_irqs,
1613 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
1614 .main_clk = "i2c3_fck",
1615 .prcm = {
1616 .omap4 = {
1617 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
1618 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
1619 .modulemode = MODULEMODE_SWCTRL,
1622 .dev_attr = &i2c_dev_attr,
1625 /* i2c4 */
1626 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1627 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
1628 { .irq = -1 }
1631 static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1632 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1633 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
1634 { .dma_req = -1 }
1637 static struct omap_hwmod omap44xx_i2c4_hwmod = {
1638 .name = "i2c4",
1639 .class = &omap44xx_i2c_hwmod_class,
1640 .clkdm_name = "l4_per_clkdm",
1641 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1642 .mpu_irqs = omap44xx_i2c4_irqs,
1643 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
1644 .main_clk = "i2c4_fck",
1645 .prcm = {
1646 .omap4 = {
1647 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
1648 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
1649 .modulemode = MODULEMODE_SWCTRL,
1652 .dev_attr = &i2c_dev_attr,
1656 * 'ipu' class
1657 * imaging processor unit
1660 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1661 .name = "ipu",
1664 /* ipu */
1665 static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
1666 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
1667 { .irq = -1 }
1670 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
1671 { .name = "cpu0", .rst_shift = 0 },
1672 { .name = "cpu1", .rst_shift = 1 },
1675 static struct omap_hwmod omap44xx_ipu_hwmod = {
1676 .name = "ipu",
1677 .class = &omap44xx_ipu_hwmod_class,
1678 .clkdm_name = "ducati_clkdm",
1679 .mpu_irqs = omap44xx_ipu_irqs,
1680 .rst_lines = omap44xx_ipu_resets,
1681 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
1682 .main_clk = "ipu_fck",
1683 .prcm = {
1684 .omap4 = {
1685 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1686 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1687 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1688 .modulemode = MODULEMODE_HWCTRL,
1694 * 'iss' class
1695 * external images sensor pixel data processor
1698 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1699 .rev_offs = 0x0000,
1700 .sysc_offs = 0x0010,
1702 * ISS needs 100 OCP clk cycles delay after a softreset before
1703 * accessing sysconfig again.
1704 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1705 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1707 * TODO: Indicate errata when available.
1709 .srst_udelay = 2,
1710 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1711 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1712 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1713 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1714 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1715 .sysc_fields = &omap_hwmod_sysc_type2,
1718 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1719 .name = "iss",
1720 .sysc = &omap44xx_iss_sysc,
1723 /* iss */
1724 static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
1725 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
1726 { .irq = -1 }
1729 static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
1730 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
1731 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
1732 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
1733 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
1734 { .dma_req = -1 }
1737 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1738 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1741 static struct omap_hwmod omap44xx_iss_hwmod = {
1742 .name = "iss",
1743 .class = &omap44xx_iss_hwmod_class,
1744 .clkdm_name = "iss_clkdm",
1745 .mpu_irqs = omap44xx_iss_irqs,
1746 .sdma_reqs = omap44xx_iss_sdma_reqs,
1747 .main_clk = "iss_fck",
1748 .prcm = {
1749 .omap4 = {
1750 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
1751 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
1752 .modulemode = MODULEMODE_SWCTRL,
1755 .opt_clks = iss_opt_clks,
1756 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
1760 * 'iva' class
1761 * multi-standard video encoder/decoder hardware accelerator
1764 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1765 .name = "iva",
1768 /* iva */
1769 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1770 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1771 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1772 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
1773 { .irq = -1 }
1776 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1777 { .name = "seq0", .rst_shift = 0 },
1778 { .name = "seq1", .rst_shift = 1 },
1779 { .name = "logic", .rst_shift = 2 },
1782 static struct omap_hwmod omap44xx_iva_hwmod = {
1783 .name = "iva",
1784 .class = &omap44xx_iva_hwmod_class,
1785 .clkdm_name = "ivahd_clkdm",
1786 .mpu_irqs = omap44xx_iva_irqs,
1787 .rst_lines = omap44xx_iva_resets,
1788 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1789 .main_clk = "iva_fck",
1790 .prcm = {
1791 .omap4 = {
1792 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
1793 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
1794 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
1795 .modulemode = MODULEMODE_HWCTRL,
1801 * 'kbd' class
1802 * keyboard controller
1805 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1806 .rev_offs = 0x0000,
1807 .sysc_offs = 0x0010,
1808 .syss_offs = 0x0014,
1809 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1810 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1811 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1812 SYSS_HAS_RESET_STATUS),
1813 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1814 .sysc_fields = &omap_hwmod_sysc_type1,
1817 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1818 .name = "kbd",
1819 .sysc = &omap44xx_kbd_sysc,
1822 /* kbd */
1823 static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
1824 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
1825 { .irq = -1 }
1828 static struct omap_hwmod omap44xx_kbd_hwmod = {
1829 .name = "kbd",
1830 .class = &omap44xx_kbd_hwmod_class,
1831 .clkdm_name = "l4_wkup_clkdm",
1832 .mpu_irqs = omap44xx_kbd_irqs,
1833 .main_clk = "kbd_fck",
1834 .prcm = {
1835 .omap4 = {
1836 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
1837 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
1838 .modulemode = MODULEMODE_SWCTRL,
1844 * 'mailbox' class
1845 * mailbox module allowing communication between the on-chip processors using a
1846 * queued mailbox-interrupt mechanism.
1849 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1850 .rev_offs = 0x0000,
1851 .sysc_offs = 0x0010,
1852 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1853 SYSC_HAS_SOFTRESET),
1854 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1855 .sysc_fields = &omap_hwmod_sysc_type2,
1858 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1859 .name = "mailbox",
1860 .sysc = &omap44xx_mailbox_sysc,
1863 /* mailbox */
1864 static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
1865 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
1866 { .irq = -1 }
1869 static struct omap_hwmod omap44xx_mailbox_hwmod = {
1870 .name = "mailbox",
1871 .class = &omap44xx_mailbox_hwmod_class,
1872 .clkdm_name = "l4_cfg_clkdm",
1873 .mpu_irqs = omap44xx_mailbox_irqs,
1874 .prcm = {
1875 .omap4 = {
1876 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
1877 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
1883 * 'mcasp' class
1884 * multi-channel audio serial port controller
1887 /* The IP is not compliant to type1 / type2 scheme */
1888 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1889 .sidle_shift = 0,
1892 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1893 .sysc_offs = 0x0004,
1894 .sysc_flags = SYSC_HAS_SIDLEMODE,
1895 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1896 SIDLE_SMART_WKUP),
1897 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1900 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1901 .name = "mcasp",
1902 .sysc = &omap44xx_mcasp_sysc,
1905 /* mcasp */
1906 static struct omap_hwmod_irq_info omap44xx_mcasp_irqs[] = {
1907 { .name = "arevt", .irq = 108 + OMAP44XX_IRQ_GIC_START },
1908 { .name = "axevt", .irq = 109 + OMAP44XX_IRQ_GIC_START },
1909 { .irq = -1 }
1912 static struct omap_hwmod_dma_info omap44xx_mcasp_sdma_reqs[] = {
1913 { .name = "axevt", .dma_req = 7 + OMAP44XX_DMA_REQ_START },
1914 { .name = "arevt", .dma_req = 10 + OMAP44XX_DMA_REQ_START },
1915 { .dma_req = -1 }
1918 static struct omap_hwmod omap44xx_mcasp_hwmod = {
1919 .name = "mcasp",
1920 .class = &omap44xx_mcasp_hwmod_class,
1921 .clkdm_name = "abe_clkdm",
1922 .mpu_irqs = omap44xx_mcasp_irqs,
1923 .sdma_reqs = omap44xx_mcasp_sdma_reqs,
1924 .main_clk = "mcasp_fck",
1925 .prcm = {
1926 .omap4 = {
1927 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1928 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1929 .modulemode = MODULEMODE_SWCTRL,
1935 * 'mcbsp' class
1936 * multi channel buffered serial port controller
1939 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1940 .sysc_offs = 0x008c,
1941 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1942 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1943 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1944 .sysc_fields = &omap_hwmod_sysc_type1,
1947 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1948 .name = "mcbsp",
1949 .sysc = &omap44xx_mcbsp_sysc,
1950 .rev = MCBSP_CONFIG_TYPE4,
1953 /* mcbsp1 */
1954 static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
1955 { .name = "common", .irq = 17 + OMAP44XX_IRQ_GIC_START },
1956 { .irq = -1 }
1959 static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
1960 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
1961 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
1962 { .dma_req = -1 }
1965 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1966 { .role = "pad_fck", .clk = "pad_clks_ck" },
1967 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
1970 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1971 .name = "mcbsp1",
1972 .class = &omap44xx_mcbsp_hwmod_class,
1973 .clkdm_name = "abe_clkdm",
1974 .mpu_irqs = omap44xx_mcbsp1_irqs,
1975 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
1976 .main_clk = "mcbsp1_fck",
1977 .prcm = {
1978 .omap4 = {
1979 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
1980 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
1981 .modulemode = MODULEMODE_SWCTRL,
1984 .opt_clks = mcbsp1_opt_clks,
1985 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
1988 /* mcbsp2 */
1989 static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
1990 { .name = "common", .irq = 22 + OMAP44XX_IRQ_GIC_START },
1991 { .irq = -1 }
1994 static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
1995 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
1996 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
1997 { .dma_req = -1 }
2000 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
2001 { .role = "pad_fck", .clk = "pad_clks_ck" },
2002 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
2005 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2006 .name = "mcbsp2",
2007 .class = &omap44xx_mcbsp_hwmod_class,
2008 .clkdm_name = "abe_clkdm",
2009 .mpu_irqs = omap44xx_mcbsp2_irqs,
2010 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
2011 .main_clk = "mcbsp2_fck",
2012 .prcm = {
2013 .omap4 = {
2014 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
2015 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
2016 .modulemode = MODULEMODE_SWCTRL,
2019 .opt_clks = mcbsp2_opt_clks,
2020 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
2023 /* mcbsp3 */
2024 static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
2025 { .name = "common", .irq = 23 + OMAP44XX_IRQ_GIC_START },
2026 { .irq = -1 }
2029 static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2030 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2031 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
2032 { .dma_req = -1 }
2035 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
2036 { .role = "pad_fck", .clk = "pad_clks_ck" },
2037 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
2040 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2041 .name = "mcbsp3",
2042 .class = &omap44xx_mcbsp_hwmod_class,
2043 .clkdm_name = "abe_clkdm",
2044 .mpu_irqs = omap44xx_mcbsp3_irqs,
2045 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
2046 .main_clk = "mcbsp3_fck",
2047 .prcm = {
2048 .omap4 = {
2049 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
2050 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
2051 .modulemode = MODULEMODE_SWCTRL,
2054 .opt_clks = mcbsp3_opt_clks,
2055 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
2058 /* mcbsp4 */
2059 static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
2060 { .name = "common", .irq = 16 + OMAP44XX_IRQ_GIC_START },
2061 { .irq = -1 }
2064 static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
2065 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
2066 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
2067 { .dma_req = -1 }
2070 static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
2071 { .role = "pad_fck", .clk = "pad_clks_ck" },
2072 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
2075 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
2076 .name = "mcbsp4",
2077 .class = &omap44xx_mcbsp_hwmod_class,
2078 .clkdm_name = "l4_per_clkdm",
2079 .mpu_irqs = omap44xx_mcbsp4_irqs,
2080 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
2081 .main_clk = "mcbsp4_fck",
2082 .prcm = {
2083 .omap4 = {
2084 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
2085 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
2086 .modulemode = MODULEMODE_SWCTRL,
2089 .opt_clks = mcbsp4_opt_clks,
2090 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
2094 * 'mcpdm' class
2095 * multi channel pdm controller (proprietary interface with phoenix power
2096 * ic)
2099 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
2100 .rev_offs = 0x0000,
2101 .sysc_offs = 0x0010,
2102 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2103 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2104 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2105 SIDLE_SMART_WKUP),
2106 .sysc_fields = &omap_hwmod_sysc_type2,
2109 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
2110 .name = "mcpdm",
2111 .sysc = &omap44xx_mcpdm_sysc,
2114 /* mcpdm */
2115 static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
2116 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
2117 { .irq = -1 }
2120 static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
2121 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
2122 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
2123 { .dma_req = -1 }
2126 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
2127 .name = "mcpdm",
2128 .class = &omap44xx_mcpdm_hwmod_class,
2129 .clkdm_name = "abe_clkdm",
2131 * It's suspected that the McPDM requires an off-chip main
2132 * functional clock, controlled via I2C. This IP block is
2133 * currently reset very early during boot, before I2C is
2134 * available, so it doesn't seem that we have any choice in
2135 * the kernel other than to avoid resetting it.
2137 .flags = HWMOD_EXT_OPT_MAIN_CLK,
2138 .mpu_irqs = omap44xx_mcpdm_irqs,
2139 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
2140 .main_clk = "mcpdm_fck",
2141 .prcm = {
2142 .omap4 = {
2143 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
2144 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
2145 .modulemode = MODULEMODE_SWCTRL,
2151 * 'mcspi' class
2152 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2153 * bus
2156 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
2157 .rev_offs = 0x0000,
2158 .sysc_offs = 0x0010,
2159 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2160 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2161 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2162 SIDLE_SMART_WKUP),
2163 .sysc_fields = &omap_hwmod_sysc_type2,
2166 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
2167 .name = "mcspi",
2168 .sysc = &omap44xx_mcspi_sysc,
2169 .rev = OMAP4_MCSPI_REV,
2172 /* mcspi1 */
2173 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
2174 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
2175 { .irq = -1 }
2178 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
2179 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
2180 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
2181 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
2182 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
2183 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
2184 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
2185 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
2186 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
2187 { .dma_req = -1 }
2190 /* mcspi1 dev_attr */
2191 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
2192 .num_chipselect = 4,
2195 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
2196 .name = "mcspi1",
2197 .class = &omap44xx_mcspi_hwmod_class,
2198 .clkdm_name = "l4_per_clkdm",
2199 .mpu_irqs = omap44xx_mcspi1_irqs,
2200 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
2201 .main_clk = "mcspi1_fck",
2202 .prcm = {
2203 .omap4 = {
2204 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
2205 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
2206 .modulemode = MODULEMODE_SWCTRL,
2209 .dev_attr = &mcspi1_dev_attr,
2212 /* mcspi2 */
2213 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
2214 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
2215 { .irq = -1 }
2218 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
2219 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
2220 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
2221 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
2222 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
2223 { .dma_req = -1 }
2226 /* mcspi2 dev_attr */
2227 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
2228 .num_chipselect = 2,
2231 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
2232 .name = "mcspi2",
2233 .class = &omap44xx_mcspi_hwmod_class,
2234 .clkdm_name = "l4_per_clkdm",
2235 .mpu_irqs = omap44xx_mcspi2_irqs,
2236 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
2237 .main_clk = "mcspi2_fck",
2238 .prcm = {
2239 .omap4 = {
2240 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
2241 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
2242 .modulemode = MODULEMODE_SWCTRL,
2245 .dev_attr = &mcspi2_dev_attr,
2248 /* mcspi3 */
2249 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
2250 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
2251 { .irq = -1 }
2254 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
2255 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
2256 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
2257 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
2258 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
2259 { .dma_req = -1 }
2262 /* mcspi3 dev_attr */
2263 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
2264 .num_chipselect = 2,
2267 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
2268 .name = "mcspi3",
2269 .class = &omap44xx_mcspi_hwmod_class,
2270 .clkdm_name = "l4_per_clkdm",
2271 .mpu_irqs = omap44xx_mcspi3_irqs,
2272 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
2273 .main_clk = "mcspi3_fck",
2274 .prcm = {
2275 .omap4 = {
2276 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
2277 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
2278 .modulemode = MODULEMODE_SWCTRL,
2281 .dev_attr = &mcspi3_dev_attr,
2284 /* mcspi4 */
2285 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
2286 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
2287 { .irq = -1 }
2290 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
2291 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
2292 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
2293 { .dma_req = -1 }
2296 /* mcspi4 dev_attr */
2297 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
2298 .num_chipselect = 1,
2301 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
2302 .name = "mcspi4",
2303 .class = &omap44xx_mcspi_hwmod_class,
2304 .clkdm_name = "l4_per_clkdm",
2305 .mpu_irqs = omap44xx_mcspi4_irqs,
2306 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
2307 .main_clk = "mcspi4_fck",
2308 .prcm = {
2309 .omap4 = {
2310 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
2311 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
2312 .modulemode = MODULEMODE_SWCTRL,
2315 .dev_attr = &mcspi4_dev_attr,
2319 * 'mmc' class
2320 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
2323 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
2324 .rev_offs = 0x0000,
2325 .sysc_offs = 0x0010,
2326 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
2327 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2328 SYSC_HAS_SOFTRESET),
2329 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2330 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2331 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2332 .sysc_fields = &omap_hwmod_sysc_type2,
2335 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
2336 .name = "mmc",
2337 .sysc = &omap44xx_mmc_sysc,
2340 /* mmc1 */
2341 static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
2342 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
2343 { .irq = -1 }
2346 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
2347 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
2348 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
2349 { .dma_req = -1 }
2352 /* mmc1 dev_attr */
2353 static struct omap_mmc_dev_attr mmc1_dev_attr = {
2354 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2357 static struct omap_hwmod omap44xx_mmc1_hwmod = {
2358 .name = "mmc1",
2359 .class = &omap44xx_mmc_hwmod_class,
2360 .clkdm_name = "l3_init_clkdm",
2361 .mpu_irqs = omap44xx_mmc1_irqs,
2362 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
2363 .main_clk = "mmc1_fck",
2364 .prcm = {
2365 .omap4 = {
2366 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
2367 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
2368 .modulemode = MODULEMODE_SWCTRL,
2371 .dev_attr = &mmc1_dev_attr,
2374 /* mmc2 */
2375 static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
2376 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
2377 { .irq = -1 }
2380 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
2381 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
2382 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
2383 { .dma_req = -1 }
2386 static struct omap_hwmod omap44xx_mmc2_hwmod = {
2387 .name = "mmc2",
2388 .class = &omap44xx_mmc_hwmod_class,
2389 .clkdm_name = "l3_init_clkdm",
2390 .mpu_irqs = omap44xx_mmc2_irqs,
2391 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
2392 .main_clk = "mmc2_fck",
2393 .prcm = {
2394 .omap4 = {
2395 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
2396 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
2397 .modulemode = MODULEMODE_SWCTRL,
2402 /* mmc3 */
2403 static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
2404 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
2405 { .irq = -1 }
2408 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2409 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2410 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
2411 { .dma_req = -1 }
2414 static struct omap_hwmod omap44xx_mmc3_hwmod = {
2415 .name = "mmc3",
2416 .class = &omap44xx_mmc_hwmod_class,
2417 .clkdm_name = "l4_per_clkdm",
2418 .mpu_irqs = omap44xx_mmc3_irqs,
2419 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
2420 .main_clk = "mmc3_fck",
2421 .prcm = {
2422 .omap4 = {
2423 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
2424 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
2425 .modulemode = MODULEMODE_SWCTRL,
2430 /* mmc4 */
2431 static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
2432 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
2433 { .irq = -1 }
2436 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2437 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2438 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
2439 { .dma_req = -1 }
2442 static struct omap_hwmod omap44xx_mmc4_hwmod = {
2443 .name = "mmc4",
2444 .class = &omap44xx_mmc_hwmod_class,
2445 .clkdm_name = "l4_per_clkdm",
2446 .mpu_irqs = omap44xx_mmc4_irqs,
2447 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
2448 .main_clk = "mmc4_fck",
2449 .prcm = {
2450 .omap4 = {
2451 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
2452 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
2453 .modulemode = MODULEMODE_SWCTRL,
2458 /* mmc5 */
2459 static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
2460 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
2461 { .irq = -1 }
2464 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2465 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2466 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
2467 { .dma_req = -1 }
2470 static struct omap_hwmod omap44xx_mmc5_hwmod = {
2471 .name = "mmc5",
2472 .class = &omap44xx_mmc_hwmod_class,
2473 .clkdm_name = "l4_per_clkdm",
2474 .mpu_irqs = omap44xx_mmc5_irqs,
2475 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
2476 .main_clk = "mmc5_fck",
2477 .prcm = {
2478 .omap4 = {
2479 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
2480 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
2481 .modulemode = MODULEMODE_SWCTRL,
2487 * 'mmu' class
2488 * The memory management unit performs virtual to physical address translation
2489 * for its requestors.
2492 static struct omap_hwmod_class_sysconfig mmu_sysc = {
2493 .rev_offs = 0x000,
2494 .sysc_offs = 0x010,
2495 .syss_offs = 0x014,
2496 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2497 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2498 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2499 .sysc_fields = &omap_hwmod_sysc_type1,
2502 static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2503 .name = "mmu",
2504 .sysc = &mmu_sysc,
2507 /* mmu ipu */
2509 static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
2510 .da_start = 0x0,
2511 .da_end = 0xfffff000,
2512 .nr_tlb_entries = 32,
2515 static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
2516 static struct omap_hwmod_irq_info omap44xx_mmu_ipu_irqs[] = {
2517 { .irq = 100 + OMAP44XX_IRQ_GIC_START, },
2518 { .irq = -1 }
2521 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2522 { .name = "mmu_cache", .rst_shift = 2 },
2525 static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2527 .pa_start = 0x55082000,
2528 .pa_end = 0x550820ff,
2529 .flags = ADDR_TYPE_RT,
2534 /* l3_main_2 -> mmu_ipu */
2535 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2536 .master = &omap44xx_l3_main_2_hwmod,
2537 .slave = &omap44xx_mmu_ipu_hwmod,
2538 .clk = "l3_div_ck",
2539 .addr = omap44xx_mmu_ipu_addrs,
2540 .user = OCP_USER_MPU | OCP_USER_SDMA,
2543 static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2544 .name = "mmu_ipu",
2545 .class = &omap44xx_mmu_hwmod_class,
2546 .clkdm_name = "ducati_clkdm",
2547 .mpu_irqs = omap44xx_mmu_ipu_irqs,
2548 .rst_lines = omap44xx_mmu_ipu_resets,
2549 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2550 .main_clk = "ducati_clk_mux_ck",
2551 .prcm = {
2552 .omap4 = {
2553 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2554 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2555 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2556 .modulemode = MODULEMODE_HWCTRL,
2559 .dev_attr = &mmu_ipu_dev_attr,
2562 /* mmu dsp */
2564 static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
2565 .da_start = 0x0,
2566 .da_end = 0xfffff000,
2567 .nr_tlb_entries = 32,
2570 static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
2571 static struct omap_hwmod_irq_info omap44xx_mmu_dsp_irqs[] = {
2572 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
2573 { .irq = -1 }
2576 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2577 { .name = "mmu_cache", .rst_shift = 1 },
2580 static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2582 .pa_start = 0x4a066000,
2583 .pa_end = 0x4a0660ff,
2584 .flags = ADDR_TYPE_RT,
2589 /* l4_cfg -> dsp */
2590 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2591 .master = &omap44xx_l4_cfg_hwmod,
2592 .slave = &omap44xx_mmu_dsp_hwmod,
2593 .clk = "l4_div_ck",
2594 .addr = omap44xx_mmu_dsp_addrs,
2595 .user = OCP_USER_MPU | OCP_USER_SDMA,
2598 static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2599 .name = "mmu_dsp",
2600 .class = &omap44xx_mmu_hwmod_class,
2601 .clkdm_name = "tesla_clkdm",
2602 .mpu_irqs = omap44xx_mmu_dsp_irqs,
2603 .rst_lines = omap44xx_mmu_dsp_resets,
2604 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2605 .main_clk = "dpll_iva_m4x2_ck",
2606 .prcm = {
2607 .omap4 = {
2608 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2609 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2610 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2611 .modulemode = MODULEMODE_HWCTRL,
2614 .dev_attr = &mmu_dsp_dev_attr,
2618 * 'mpu' class
2619 * mpu sub-system
2622 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
2623 .name = "mpu",
2626 /* mpu */
2627 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
2628 { .name = "pmu0", .irq = 54 + OMAP44XX_IRQ_GIC_START },
2629 { .name = "pmu1", .irq = 55 + OMAP44XX_IRQ_GIC_START },
2630 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
2631 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
2632 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
2633 { .irq = -1 }
2636 static struct omap_hwmod omap44xx_mpu_hwmod = {
2637 .name = "mpu",
2638 .class = &omap44xx_mpu_hwmod_class,
2639 .clkdm_name = "mpuss_clkdm",
2640 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
2641 .mpu_irqs = omap44xx_mpu_irqs,
2642 .main_clk = "dpll_mpu_m2_ck",
2643 .prcm = {
2644 .omap4 = {
2645 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
2646 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
2652 * 'ocmc_ram' class
2653 * top-level core on-chip ram
2656 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2657 .name = "ocmc_ram",
2660 /* ocmc_ram */
2661 static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2662 .name = "ocmc_ram",
2663 .class = &omap44xx_ocmc_ram_hwmod_class,
2664 .clkdm_name = "l3_2_clkdm",
2665 .prcm = {
2666 .omap4 = {
2667 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2668 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2674 * 'ocp2scp' class
2675 * bridge to transform ocp interface protocol to scp (serial control port)
2676 * protocol
2679 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2680 .rev_offs = 0x0000,
2681 .sysc_offs = 0x0010,
2682 .syss_offs = 0x0014,
2683 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2684 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2685 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2686 .sysc_fields = &omap_hwmod_sysc_type1,
2689 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2690 .name = "ocp2scp",
2691 .sysc = &omap44xx_ocp2scp_sysc,
2694 /* ocp2scp dev_attr */
2695 static struct resource omap44xx_usb_phy_and_pll_addrs[] = {
2697 .name = "usb_phy",
2698 .start = 0x4a0ad080,
2699 .end = 0x4a0ae000,
2700 .flags = IORESOURCE_MEM,
2703 /* XXX: Remove this once control module driver is in place */
2704 .name = "ctrl_dev",
2705 .start = 0x4a002300,
2706 .end = 0x4a002303,
2707 .flags = IORESOURCE_MEM,
2712 static struct omap_ocp2scp_dev ocp2scp_dev_attr[] = {
2714 .drv_name = "omap-usb2",
2715 .res = omap44xx_usb_phy_and_pll_addrs,
2720 /* ocp2scp_usb_phy */
2721 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2722 .name = "ocp2scp_usb_phy",
2723 .class = &omap44xx_ocp2scp_hwmod_class,
2724 .clkdm_name = "l3_init_clkdm",
2725 .main_clk = "ocp2scp_usb_phy_phy_48m",
2726 .prcm = {
2727 .omap4 = {
2728 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2729 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2730 .modulemode = MODULEMODE_HWCTRL,
2733 .dev_attr = ocp2scp_dev_attr,
2737 * 'prcm' class
2738 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2739 * + clock manager 1 (in always on power domain) + local prm in mpu
2742 static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2743 .name = "prcm",
2746 /* prcm_mpu */
2747 static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2748 .name = "prcm_mpu",
2749 .class = &omap44xx_prcm_hwmod_class,
2750 .clkdm_name = "l4_wkup_clkdm",
2751 .flags = HWMOD_NO_IDLEST,
2752 .prcm = {
2753 .omap4 = {
2754 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2759 /* cm_core_aon */
2760 static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2761 .name = "cm_core_aon",
2762 .class = &omap44xx_prcm_hwmod_class,
2763 .flags = HWMOD_NO_IDLEST,
2764 .prcm = {
2765 .omap4 = {
2766 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2771 /* cm_core */
2772 static struct omap_hwmod omap44xx_cm_core_hwmod = {
2773 .name = "cm_core",
2774 .class = &omap44xx_prcm_hwmod_class,
2775 .flags = HWMOD_NO_IDLEST,
2776 .prcm = {
2777 .omap4 = {
2778 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2783 /* prm */
2784 static struct omap_hwmod_irq_info omap44xx_prm_irqs[] = {
2785 { .irq = 11 + OMAP44XX_IRQ_GIC_START },
2786 { .irq = -1 }
2789 static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2790 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2791 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2794 static struct omap_hwmod omap44xx_prm_hwmod = {
2795 .name = "prm",
2796 .class = &omap44xx_prcm_hwmod_class,
2797 .mpu_irqs = omap44xx_prm_irqs,
2798 .rst_lines = omap44xx_prm_resets,
2799 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2803 * 'scrm' class
2804 * system clock and reset manager
2807 static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2808 .name = "scrm",
2811 /* scrm */
2812 static struct omap_hwmod omap44xx_scrm_hwmod = {
2813 .name = "scrm",
2814 .class = &omap44xx_scrm_hwmod_class,
2815 .clkdm_name = "l4_wkup_clkdm",
2816 .prcm = {
2817 .omap4 = {
2818 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2824 * 'sl2if' class
2825 * shared level 2 memory interface
2828 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2829 .name = "sl2if",
2832 /* sl2if */
2833 static struct omap_hwmod omap44xx_sl2if_hwmod = {
2834 .name = "sl2if",
2835 .class = &omap44xx_sl2if_hwmod_class,
2836 .clkdm_name = "ivahd_clkdm",
2837 .prcm = {
2838 .omap4 = {
2839 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2840 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2841 .modulemode = MODULEMODE_HWCTRL,
2847 * 'slimbus' class
2848 * bidirectional, multi-drop, multi-channel two-line serial interface between
2849 * the device and external components
2852 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2853 .rev_offs = 0x0000,
2854 .sysc_offs = 0x0010,
2855 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2856 SYSC_HAS_SOFTRESET),
2857 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2858 SIDLE_SMART_WKUP),
2859 .sysc_fields = &omap_hwmod_sysc_type2,
2862 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2863 .name = "slimbus",
2864 .sysc = &omap44xx_slimbus_sysc,
2867 /* slimbus1 */
2868 static struct omap_hwmod_irq_info omap44xx_slimbus1_irqs[] = {
2869 { .irq = 97 + OMAP44XX_IRQ_GIC_START },
2870 { .irq = -1 }
2873 static struct omap_hwmod_dma_info omap44xx_slimbus1_sdma_reqs[] = {
2874 { .name = "tx0", .dma_req = 84 + OMAP44XX_DMA_REQ_START },
2875 { .name = "tx1", .dma_req = 85 + OMAP44XX_DMA_REQ_START },
2876 { .name = "tx2", .dma_req = 86 + OMAP44XX_DMA_REQ_START },
2877 { .name = "tx3", .dma_req = 87 + OMAP44XX_DMA_REQ_START },
2878 { .name = "rx0", .dma_req = 88 + OMAP44XX_DMA_REQ_START },
2879 { .name = "rx1", .dma_req = 89 + OMAP44XX_DMA_REQ_START },
2880 { .name = "rx2", .dma_req = 90 + OMAP44XX_DMA_REQ_START },
2881 { .name = "rx3", .dma_req = 91 + OMAP44XX_DMA_REQ_START },
2882 { .dma_req = -1 }
2885 static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2886 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2887 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2888 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2889 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2892 static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2893 .name = "slimbus1",
2894 .class = &omap44xx_slimbus_hwmod_class,
2895 .clkdm_name = "abe_clkdm",
2896 .mpu_irqs = omap44xx_slimbus1_irqs,
2897 .sdma_reqs = omap44xx_slimbus1_sdma_reqs,
2898 .prcm = {
2899 .omap4 = {
2900 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2901 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2902 .modulemode = MODULEMODE_SWCTRL,
2905 .opt_clks = slimbus1_opt_clks,
2906 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2909 /* slimbus2 */
2910 static struct omap_hwmod_irq_info omap44xx_slimbus2_irqs[] = {
2911 { .irq = 98 + OMAP44XX_IRQ_GIC_START },
2912 { .irq = -1 }
2915 static struct omap_hwmod_dma_info omap44xx_slimbus2_sdma_reqs[] = {
2916 { .name = "tx0", .dma_req = 92 + OMAP44XX_DMA_REQ_START },
2917 { .name = "tx1", .dma_req = 93 + OMAP44XX_DMA_REQ_START },
2918 { .name = "tx2", .dma_req = 94 + OMAP44XX_DMA_REQ_START },
2919 { .name = "tx3", .dma_req = 95 + OMAP44XX_DMA_REQ_START },
2920 { .name = "rx0", .dma_req = 96 + OMAP44XX_DMA_REQ_START },
2921 { .name = "rx1", .dma_req = 97 + OMAP44XX_DMA_REQ_START },
2922 { .name = "rx2", .dma_req = 98 + OMAP44XX_DMA_REQ_START },
2923 { .name = "rx3", .dma_req = 99 + OMAP44XX_DMA_REQ_START },
2924 { .dma_req = -1 }
2927 static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2928 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2929 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2930 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2933 static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2934 .name = "slimbus2",
2935 .class = &omap44xx_slimbus_hwmod_class,
2936 .clkdm_name = "l4_per_clkdm",
2937 .mpu_irqs = omap44xx_slimbus2_irqs,
2938 .sdma_reqs = omap44xx_slimbus2_sdma_reqs,
2939 .prcm = {
2940 .omap4 = {
2941 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2942 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2943 .modulemode = MODULEMODE_SWCTRL,
2946 .opt_clks = slimbus2_opt_clks,
2947 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2951 * 'smartreflex' class
2952 * smartreflex module (monitor silicon performance and outputs a measure of
2953 * performance error)
2956 /* The IP is not compliant to type1 / type2 scheme */
2957 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2958 .sidle_shift = 24,
2959 .enwkup_shift = 26,
2962 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2963 .sysc_offs = 0x0038,
2964 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2965 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2966 SIDLE_SMART_WKUP),
2967 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2970 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
2971 .name = "smartreflex",
2972 .sysc = &omap44xx_smartreflex_sysc,
2973 .rev = 2,
2976 /* smartreflex_core */
2977 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2978 .sensor_voltdm_name = "core",
2981 static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
2982 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
2983 { .irq = -1 }
2986 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2987 .name = "smartreflex_core",
2988 .class = &omap44xx_smartreflex_hwmod_class,
2989 .clkdm_name = "l4_ao_clkdm",
2990 .mpu_irqs = omap44xx_smartreflex_core_irqs,
2992 .main_clk = "smartreflex_core_fck",
2993 .prcm = {
2994 .omap4 = {
2995 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
2996 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
2997 .modulemode = MODULEMODE_SWCTRL,
3000 .dev_attr = &smartreflex_core_dev_attr,
3003 /* smartreflex_iva */
3004 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
3005 .sensor_voltdm_name = "iva",
3008 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3009 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
3010 { .irq = -1 }
3013 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3014 .name = "smartreflex_iva",
3015 .class = &omap44xx_smartreflex_hwmod_class,
3016 .clkdm_name = "l4_ao_clkdm",
3017 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
3018 .main_clk = "smartreflex_iva_fck",
3019 .prcm = {
3020 .omap4 = {
3021 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
3022 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
3023 .modulemode = MODULEMODE_SWCTRL,
3026 .dev_attr = &smartreflex_iva_dev_attr,
3029 /* smartreflex_mpu */
3030 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
3031 .sensor_voltdm_name = "mpu",
3034 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3035 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
3036 { .irq = -1 }
3039 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3040 .name = "smartreflex_mpu",
3041 .class = &omap44xx_smartreflex_hwmod_class,
3042 .clkdm_name = "l4_ao_clkdm",
3043 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
3044 .main_clk = "smartreflex_mpu_fck",
3045 .prcm = {
3046 .omap4 = {
3047 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
3048 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
3049 .modulemode = MODULEMODE_SWCTRL,
3052 .dev_attr = &smartreflex_mpu_dev_attr,
3056 * 'spinlock' class
3057 * spinlock provides hardware assistance for synchronizing the processes
3058 * running on multiple processors
3061 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3062 .rev_offs = 0x0000,
3063 .sysc_offs = 0x0010,
3064 .syss_offs = 0x0014,
3065 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3066 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3067 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3068 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3069 SIDLE_SMART_WKUP),
3070 .sysc_fields = &omap_hwmod_sysc_type1,
3073 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3074 .name = "spinlock",
3075 .sysc = &omap44xx_spinlock_sysc,
3078 /* spinlock */
3079 static struct omap_hwmod omap44xx_spinlock_hwmod = {
3080 .name = "spinlock",
3081 .class = &omap44xx_spinlock_hwmod_class,
3082 .clkdm_name = "l4_cfg_clkdm",
3083 .prcm = {
3084 .omap4 = {
3085 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
3086 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
3092 * 'timer' class
3093 * general purpose timer module with accurate 1ms tick
3094 * This class contains several variants: ['timer_1ms', 'timer']
3097 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3098 .rev_offs = 0x0000,
3099 .sysc_offs = 0x0010,
3100 .syss_offs = 0x0014,
3101 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3102 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3103 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3104 SYSS_HAS_RESET_STATUS),
3105 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3106 .clockact = CLOCKACT_TEST_ICLK,
3107 .sysc_fields = &omap_hwmod_sysc_type1,
3110 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3111 .name = "timer",
3112 .sysc = &omap44xx_timer_1ms_sysc,
3115 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
3116 .rev_offs = 0x0000,
3117 .sysc_offs = 0x0010,
3118 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3119 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3120 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3121 SIDLE_SMART_WKUP),
3122 .sysc_fields = &omap_hwmod_sysc_type2,
3125 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
3126 .name = "timer",
3127 .sysc = &omap44xx_timer_sysc,
3130 /* always-on timers dev attribute */
3131 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
3132 .timer_capability = OMAP_TIMER_ALWON,
3135 /* pwm timers dev attribute */
3136 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
3137 .timer_capability = OMAP_TIMER_HAS_PWM,
3140 /* timers with DSP interrupt dev attribute */
3141 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
3142 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
3145 /* pwm timers with DSP interrupt dev attribute */
3146 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
3147 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
3150 /* timer1 */
3151 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
3152 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
3153 { .irq = -1 }
3156 static struct omap_hwmod omap44xx_timer1_hwmod = {
3157 .name = "timer1",
3158 .class = &omap44xx_timer_1ms_hwmod_class,
3159 .clkdm_name = "l4_wkup_clkdm",
3160 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
3161 .mpu_irqs = omap44xx_timer1_irqs,
3162 .main_clk = "timer1_fck",
3163 .prcm = {
3164 .omap4 = {
3165 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
3166 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
3167 .modulemode = MODULEMODE_SWCTRL,
3170 .dev_attr = &capability_alwon_dev_attr,
3173 /* timer2 */
3174 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
3175 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
3176 { .irq = -1 }
3179 static struct omap_hwmod omap44xx_timer2_hwmod = {
3180 .name = "timer2",
3181 .class = &omap44xx_timer_1ms_hwmod_class,
3182 .clkdm_name = "l4_per_clkdm",
3183 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
3184 .mpu_irqs = omap44xx_timer2_irqs,
3185 .main_clk = "timer2_fck",
3186 .prcm = {
3187 .omap4 = {
3188 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
3189 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
3190 .modulemode = MODULEMODE_SWCTRL,
3195 /* timer3 */
3196 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
3197 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
3198 { .irq = -1 }
3201 static struct omap_hwmod omap44xx_timer3_hwmod = {
3202 .name = "timer3",
3203 .class = &omap44xx_timer_hwmod_class,
3204 .clkdm_name = "l4_per_clkdm",
3205 .mpu_irqs = omap44xx_timer3_irqs,
3206 .main_clk = "timer3_fck",
3207 .prcm = {
3208 .omap4 = {
3209 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
3210 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
3211 .modulemode = MODULEMODE_SWCTRL,
3216 /* timer4 */
3217 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
3218 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
3219 { .irq = -1 }
3222 static struct omap_hwmod omap44xx_timer4_hwmod = {
3223 .name = "timer4",
3224 .class = &omap44xx_timer_hwmod_class,
3225 .clkdm_name = "l4_per_clkdm",
3226 .mpu_irqs = omap44xx_timer4_irqs,
3227 .main_clk = "timer4_fck",
3228 .prcm = {
3229 .omap4 = {
3230 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
3231 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
3232 .modulemode = MODULEMODE_SWCTRL,
3237 /* timer5 */
3238 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
3239 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
3240 { .irq = -1 }
3243 static struct omap_hwmod omap44xx_timer5_hwmod = {
3244 .name = "timer5",
3245 .class = &omap44xx_timer_hwmod_class,
3246 .clkdm_name = "abe_clkdm",
3247 .mpu_irqs = omap44xx_timer5_irqs,
3248 .main_clk = "timer5_fck",
3249 .prcm = {
3250 .omap4 = {
3251 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
3252 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
3253 .modulemode = MODULEMODE_SWCTRL,
3256 .dev_attr = &capability_dsp_dev_attr,
3259 /* timer6 */
3260 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
3261 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
3262 { .irq = -1 }
3265 static struct omap_hwmod omap44xx_timer6_hwmod = {
3266 .name = "timer6",
3267 .class = &omap44xx_timer_hwmod_class,
3268 .clkdm_name = "abe_clkdm",
3269 .mpu_irqs = omap44xx_timer6_irqs,
3271 .main_clk = "timer6_fck",
3272 .prcm = {
3273 .omap4 = {
3274 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
3275 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
3276 .modulemode = MODULEMODE_SWCTRL,
3279 .dev_attr = &capability_dsp_dev_attr,
3282 /* timer7 */
3283 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
3284 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
3285 { .irq = -1 }
3288 static struct omap_hwmod omap44xx_timer7_hwmod = {
3289 .name = "timer7",
3290 .class = &omap44xx_timer_hwmod_class,
3291 .clkdm_name = "abe_clkdm",
3292 .mpu_irqs = omap44xx_timer7_irqs,
3293 .main_clk = "timer7_fck",
3294 .prcm = {
3295 .omap4 = {
3296 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
3297 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
3298 .modulemode = MODULEMODE_SWCTRL,
3301 .dev_attr = &capability_dsp_dev_attr,
3304 /* timer8 */
3305 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
3306 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
3307 { .irq = -1 }
3310 static struct omap_hwmod omap44xx_timer8_hwmod = {
3311 .name = "timer8",
3312 .class = &omap44xx_timer_hwmod_class,
3313 .clkdm_name = "abe_clkdm",
3314 .mpu_irqs = omap44xx_timer8_irqs,
3315 .main_clk = "timer8_fck",
3316 .prcm = {
3317 .omap4 = {
3318 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
3319 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
3320 .modulemode = MODULEMODE_SWCTRL,
3323 .dev_attr = &capability_dsp_pwm_dev_attr,
3326 /* timer9 */
3327 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
3328 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
3329 { .irq = -1 }
3332 static struct omap_hwmod omap44xx_timer9_hwmod = {
3333 .name = "timer9",
3334 .class = &omap44xx_timer_hwmod_class,
3335 .clkdm_name = "l4_per_clkdm",
3336 .mpu_irqs = omap44xx_timer9_irqs,
3337 .main_clk = "timer9_fck",
3338 .prcm = {
3339 .omap4 = {
3340 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
3341 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
3342 .modulemode = MODULEMODE_SWCTRL,
3345 .dev_attr = &capability_pwm_dev_attr,
3348 /* timer10 */
3349 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
3350 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
3351 { .irq = -1 }
3354 static struct omap_hwmod omap44xx_timer10_hwmod = {
3355 .name = "timer10",
3356 .class = &omap44xx_timer_1ms_hwmod_class,
3357 .clkdm_name = "l4_per_clkdm",
3358 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
3359 .mpu_irqs = omap44xx_timer10_irqs,
3360 .main_clk = "timer10_fck",
3361 .prcm = {
3362 .omap4 = {
3363 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
3364 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
3365 .modulemode = MODULEMODE_SWCTRL,
3368 .dev_attr = &capability_pwm_dev_attr,
3371 /* timer11 */
3372 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
3373 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
3374 { .irq = -1 }
3377 static struct omap_hwmod omap44xx_timer11_hwmod = {
3378 .name = "timer11",
3379 .class = &omap44xx_timer_hwmod_class,
3380 .clkdm_name = "l4_per_clkdm",
3381 .mpu_irqs = omap44xx_timer11_irqs,
3382 .main_clk = "timer11_fck",
3383 .prcm = {
3384 .omap4 = {
3385 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
3386 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
3387 .modulemode = MODULEMODE_SWCTRL,
3390 .dev_attr = &capability_pwm_dev_attr,
3394 * 'uart' class
3395 * universal asynchronous receiver/transmitter (uart)
3398 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
3399 .rev_offs = 0x0050,
3400 .sysc_offs = 0x0054,
3401 .syss_offs = 0x0058,
3402 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3403 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3404 SYSS_HAS_RESET_STATUS),
3405 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3406 SIDLE_SMART_WKUP),
3407 .sysc_fields = &omap_hwmod_sysc_type1,
3410 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
3411 .name = "uart",
3412 .sysc = &omap44xx_uart_sysc,
3415 /* uart1 */
3416 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
3417 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
3418 { .irq = -1 }
3421 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
3422 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
3423 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
3424 { .dma_req = -1 }
3427 static struct omap_hwmod omap44xx_uart1_hwmod = {
3428 .name = "uart1",
3429 .class = &omap44xx_uart_hwmod_class,
3430 .clkdm_name = "l4_per_clkdm",
3431 .mpu_irqs = omap44xx_uart1_irqs,
3432 .sdma_reqs = omap44xx_uart1_sdma_reqs,
3433 .main_clk = "uart1_fck",
3434 .prcm = {
3435 .omap4 = {
3436 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
3437 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
3438 .modulemode = MODULEMODE_SWCTRL,
3443 /* uart2 */
3444 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
3445 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
3446 { .irq = -1 }
3449 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
3450 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
3451 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
3452 { .dma_req = -1 }
3455 static struct omap_hwmod omap44xx_uart2_hwmod = {
3456 .name = "uart2",
3457 .class = &omap44xx_uart_hwmod_class,
3458 .clkdm_name = "l4_per_clkdm",
3459 .mpu_irqs = omap44xx_uart2_irqs,
3460 .sdma_reqs = omap44xx_uart2_sdma_reqs,
3461 .main_clk = "uart2_fck",
3462 .prcm = {
3463 .omap4 = {
3464 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
3465 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
3466 .modulemode = MODULEMODE_SWCTRL,
3471 /* uart3 */
3472 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
3473 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
3474 { .irq = -1 }
3477 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
3478 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
3479 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
3480 { .dma_req = -1 }
3483 static struct omap_hwmod omap44xx_uart3_hwmod = {
3484 .name = "uart3",
3485 .class = &omap44xx_uart_hwmod_class,
3486 .clkdm_name = "l4_per_clkdm",
3487 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
3488 .mpu_irqs = omap44xx_uart3_irqs,
3489 .sdma_reqs = omap44xx_uart3_sdma_reqs,
3490 .main_clk = "uart3_fck",
3491 .prcm = {
3492 .omap4 = {
3493 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
3494 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
3495 .modulemode = MODULEMODE_SWCTRL,
3500 /* uart4 */
3501 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
3502 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
3503 { .irq = -1 }
3506 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
3507 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
3508 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
3509 { .dma_req = -1 }
3512 static struct omap_hwmod omap44xx_uart4_hwmod = {
3513 .name = "uart4",
3514 .class = &omap44xx_uart_hwmod_class,
3515 .clkdm_name = "l4_per_clkdm",
3516 .mpu_irqs = omap44xx_uart4_irqs,
3517 .sdma_reqs = omap44xx_uart4_sdma_reqs,
3518 .main_clk = "uart4_fck",
3519 .prcm = {
3520 .omap4 = {
3521 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
3522 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
3523 .modulemode = MODULEMODE_SWCTRL,
3529 * 'usb_host_fs' class
3530 * full-speed usb host controller
3533 /* The IP is not compliant to type1 / type2 scheme */
3534 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
3535 .midle_shift = 4,
3536 .sidle_shift = 2,
3537 .srst_shift = 1,
3540 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
3541 .rev_offs = 0x0000,
3542 .sysc_offs = 0x0210,
3543 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3544 SYSC_HAS_SOFTRESET),
3545 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3546 SIDLE_SMART_WKUP),
3547 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
3550 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
3551 .name = "usb_host_fs",
3552 .sysc = &omap44xx_usb_host_fs_sysc,
3555 /* usb_host_fs */
3556 static struct omap_hwmod_irq_info omap44xx_usb_host_fs_irqs[] = {
3557 { .name = "std", .irq = 89 + OMAP44XX_IRQ_GIC_START },
3558 { .name = "smi", .irq = 90 + OMAP44XX_IRQ_GIC_START },
3559 { .irq = -1 }
3562 static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
3563 .name = "usb_host_fs",
3564 .class = &omap44xx_usb_host_fs_hwmod_class,
3565 .clkdm_name = "l3_init_clkdm",
3566 .mpu_irqs = omap44xx_usb_host_fs_irqs,
3567 .main_clk = "usb_host_fs_fck",
3568 .prcm = {
3569 .omap4 = {
3570 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
3571 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
3572 .modulemode = MODULEMODE_SWCTRL,
3578 * 'usb_host_hs' class
3579 * high-speed multi-port usb host controller
3582 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
3583 .rev_offs = 0x0000,
3584 .sysc_offs = 0x0010,
3585 .syss_offs = 0x0014,
3586 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3587 SYSC_HAS_SOFTRESET),
3588 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3589 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3590 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
3591 .sysc_fields = &omap_hwmod_sysc_type2,
3594 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
3595 .name = "usb_host_hs",
3596 .sysc = &omap44xx_usb_host_hs_sysc,
3599 /* usb_host_hs */
3600 static struct omap_hwmod_irq_info omap44xx_usb_host_hs_irqs[] = {
3601 { .name = "ohci-irq", .irq = 76 + OMAP44XX_IRQ_GIC_START },
3602 { .name = "ehci-irq", .irq = 77 + OMAP44XX_IRQ_GIC_START },
3603 { .irq = -1 }
3606 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
3607 .name = "usb_host_hs",
3608 .class = &omap44xx_usb_host_hs_hwmod_class,
3609 .clkdm_name = "l3_init_clkdm",
3610 .main_clk = "usb_host_hs_fck",
3611 .prcm = {
3612 .omap4 = {
3613 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
3614 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
3615 .modulemode = MODULEMODE_SWCTRL,
3618 .mpu_irqs = omap44xx_usb_host_hs_irqs,
3621 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
3622 * id: i660
3624 * Description:
3625 * In the following configuration :
3626 * - USBHOST module is set to smart-idle mode
3627 * - PRCM asserts idle_req to the USBHOST module ( This typically
3628 * happens when the system is going to a low power mode : all ports
3629 * have been suspended, the master part of the USBHOST module has
3630 * entered the standby state, and SW has cut the functional clocks)
3631 * - an USBHOST interrupt occurs before the module is able to answer
3632 * idle_ack, typically a remote wakeup IRQ.
3633 * Then the USB HOST module will enter a deadlock situation where it
3634 * is no more accessible nor functional.
3636 * Workaround:
3637 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
3641 * Errata: USB host EHCI may stall when entering smart-standby mode
3642 * Id: i571
3644 * Description:
3645 * When the USBHOST module is set to smart-standby mode, and when it is
3646 * ready to enter the standby state (i.e. all ports are suspended and
3647 * all attached devices are in suspend mode), then it can wrongly assert
3648 * the Mstandby signal too early while there are still some residual OCP
3649 * transactions ongoing. If this condition occurs, the internal state
3650 * machine may go to an undefined state and the USB link may be stuck
3651 * upon the next resume.
3653 * Workaround:
3654 * Don't use smart standby; use only force standby,
3655 * hence HWMOD_SWSUP_MSTANDBY
3659 * During system boot; If the hwmod framework resets the module
3660 * the module will have smart idle settings; which can lead to deadlock
3661 * (above Errata Id:i660); so, dont reset the module during boot;
3662 * Use HWMOD_INIT_NO_RESET.
3665 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
3666 HWMOD_INIT_NO_RESET,
3670 * 'usb_otg_hs' class
3671 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3674 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3675 .rev_offs = 0x0400,
3676 .sysc_offs = 0x0404,
3677 .syss_offs = 0x0408,
3678 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3679 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3680 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3681 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3682 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3683 MSTANDBY_SMART),
3684 .sysc_fields = &omap_hwmod_sysc_type1,
3687 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3688 .name = "usb_otg_hs",
3689 .sysc = &omap44xx_usb_otg_hs_sysc,
3692 /* usb_otg_hs */
3693 static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
3694 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
3695 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
3696 { .irq = -1 }
3699 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3700 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3703 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3704 .name = "usb_otg_hs",
3705 .class = &omap44xx_usb_otg_hs_hwmod_class,
3706 .clkdm_name = "l3_init_clkdm",
3707 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
3708 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
3709 .main_clk = "usb_otg_hs_ick",
3710 .prcm = {
3711 .omap4 = {
3712 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3713 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3714 .modulemode = MODULEMODE_HWCTRL,
3717 .opt_clks = usb_otg_hs_opt_clks,
3718 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3722 * 'usb_tll_hs' class
3723 * usb_tll_hs module is the adapter on the usb_host_hs ports
3726 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3727 .rev_offs = 0x0000,
3728 .sysc_offs = 0x0010,
3729 .syss_offs = 0x0014,
3730 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3731 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3732 SYSC_HAS_AUTOIDLE),
3733 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3734 .sysc_fields = &omap_hwmod_sysc_type1,
3737 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
3738 .name = "usb_tll_hs",
3739 .sysc = &omap44xx_usb_tll_hs_sysc,
3742 static struct omap_hwmod_irq_info omap44xx_usb_tll_hs_irqs[] = {
3743 { .name = "tll-irq", .irq = 78 + OMAP44XX_IRQ_GIC_START },
3744 { .irq = -1 }
3747 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3748 .name = "usb_tll_hs",
3749 .class = &omap44xx_usb_tll_hs_hwmod_class,
3750 .clkdm_name = "l3_init_clkdm",
3751 .mpu_irqs = omap44xx_usb_tll_hs_irqs,
3752 .main_clk = "usb_tll_hs_ick",
3753 .prcm = {
3754 .omap4 = {
3755 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3756 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3757 .modulemode = MODULEMODE_HWCTRL,
3763 * 'wd_timer' class
3764 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3765 * overflow condition
3768 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3769 .rev_offs = 0x0000,
3770 .sysc_offs = 0x0010,
3771 .syss_offs = 0x0014,
3772 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3773 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3774 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3775 SIDLE_SMART_WKUP),
3776 .sysc_fields = &omap_hwmod_sysc_type1,
3779 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3780 .name = "wd_timer",
3781 .sysc = &omap44xx_wd_timer_sysc,
3782 .pre_shutdown = &omap2_wd_timer_disable,
3783 .reset = &omap2_wd_timer_reset,
3786 /* wd_timer2 */
3787 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
3788 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
3789 { .irq = -1 }
3792 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3793 .name = "wd_timer2",
3794 .class = &omap44xx_wd_timer_hwmod_class,
3795 .clkdm_name = "l4_wkup_clkdm",
3796 .mpu_irqs = omap44xx_wd_timer2_irqs,
3797 .main_clk = "wd_timer2_fck",
3798 .prcm = {
3799 .omap4 = {
3800 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3801 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3802 .modulemode = MODULEMODE_SWCTRL,
3807 /* wd_timer3 */
3808 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
3809 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
3810 { .irq = -1 }
3813 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3814 .name = "wd_timer3",
3815 .class = &omap44xx_wd_timer_hwmod_class,
3816 .clkdm_name = "abe_clkdm",
3817 .mpu_irqs = omap44xx_wd_timer3_irqs,
3818 .main_clk = "wd_timer3_fck",
3819 .prcm = {
3820 .omap4 = {
3821 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3822 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3823 .modulemode = MODULEMODE_SWCTRL,
3830 * interfaces
3833 static struct omap_hwmod_addr_space omap44xx_c2c_target_fw_addrs[] = {
3835 .pa_start = 0x4a204000,
3836 .pa_end = 0x4a2040ff,
3837 .flags = ADDR_TYPE_RT
3842 /* c2c -> c2c_target_fw */
3843 static struct omap_hwmod_ocp_if omap44xx_c2c__c2c_target_fw = {
3844 .master = &omap44xx_c2c_hwmod,
3845 .slave = &omap44xx_c2c_target_fw_hwmod,
3846 .clk = "div_core_ck",
3847 .addr = omap44xx_c2c_target_fw_addrs,
3848 .user = OCP_USER_MPU,
3851 /* l4_cfg -> c2c_target_fw */
3852 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__c2c_target_fw = {
3853 .master = &omap44xx_l4_cfg_hwmod,
3854 .slave = &omap44xx_c2c_target_fw_hwmod,
3855 .clk = "l4_div_ck",
3856 .user = OCP_USER_MPU | OCP_USER_SDMA,
3859 /* l3_main_1 -> dmm */
3860 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3861 .master = &omap44xx_l3_main_1_hwmod,
3862 .slave = &omap44xx_dmm_hwmod,
3863 .clk = "l3_div_ck",
3864 .user = OCP_USER_SDMA,
3867 static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
3869 .pa_start = 0x4e000000,
3870 .pa_end = 0x4e0007ff,
3871 .flags = ADDR_TYPE_RT
3876 /* mpu -> dmm */
3877 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3878 .master = &omap44xx_mpu_hwmod,
3879 .slave = &omap44xx_dmm_hwmod,
3880 .clk = "l3_div_ck",
3881 .addr = omap44xx_dmm_addrs,
3882 .user = OCP_USER_MPU,
3885 /* c2c -> emif_fw */
3886 static struct omap_hwmod_ocp_if omap44xx_c2c__emif_fw = {
3887 .master = &omap44xx_c2c_hwmod,
3888 .slave = &omap44xx_emif_fw_hwmod,
3889 .clk = "div_core_ck",
3890 .user = OCP_USER_MPU | OCP_USER_SDMA,
3893 /* dmm -> emif_fw */
3894 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
3895 .master = &omap44xx_dmm_hwmod,
3896 .slave = &omap44xx_emif_fw_hwmod,
3897 .clk = "l3_div_ck",
3898 .user = OCP_USER_MPU | OCP_USER_SDMA,
3901 static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
3903 .pa_start = 0x4a20c000,
3904 .pa_end = 0x4a20c0ff,
3905 .flags = ADDR_TYPE_RT
3910 /* l4_cfg -> emif_fw */
3911 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
3912 .master = &omap44xx_l4_cfg_hwmod,
3913 .slave = &omap44xx_emif_fw_hwmod,
3914 .clk = "l4_div_ck",
3915 .addr = omap44xx_emif_fw_addrs,
3916 .user = OCP_USER_MPU,
3919 /* iva -> l3_instr */
3920 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3921 .master = &omap44xx_iva_hwmod,
3922 .slave = &omap44xx_l3_instr_hwmod,
3923 .clk = "l3_div_ck",
3924 .user = OCP_USER_MPU | OCP_USER_SDMA,
3927 /* l3_main_3 -> l3_instr */
3928 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3929 .master = &omap44xx_l3_main_3_hwmod,
3930 .slave = &omap44xx_l3_instr_hwmod,
3931 .clk = "l3_div_ck",
3932 .user = OCP_USER_MPU | OCP_USER_SDMA,
3935 /* ocp_wp_noc -> l3_instr */
3936 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3937 .master = &omap44xx_ocp_wp_noc_hwmod,
3938 .slave = &omap44xx_l3_instr_hwmod,
3939 .clk = "l3_div_ck",
3940 .user = OCP_USER_MPU | OCP_USER_SDMA,
3943 /* dsp -> l3_main_1 */
3944 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3945 .master = &omap44xx_dsp_hwmod,
3946 .slave = &omap44xx_l3_main_1_hwmod,
3947 .clk = "l3_div_ck",
3948 .user = OCP_USER_MPU | OCP_USER_SDMA,
3951 /* dss -> l3_main_1 */
3952 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3953 .master = &omap44xx_dss_hwmod,
3954 .slave = &omap44xx_l3_main_1_hwmod,
3955 .clk = "l3_div_ck",
3956 .user = OCP_USER_MPU | OCP_USER_SDMA,
3959 /* l3_main_2 -> l3_main_1 */
3960 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3961 .master = &omap44xx_l3_main_2_hwmod,
3962 .slave = &omap44xx_l3_main_1_hwmod,
3963 .clk = "l3_div_ck",
3964 .user = OCP_USER_MPU | OCP_USER_SDMA,
3967 /* l4_cfg -> l3_main_1 */
3968 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3969 .master = &omap44xx_l4_cfg_hwmod,
3970 .slave = &omap44xx_l3_main_1_hwmod,
3971 .clk = "l4_div_ck",
3972 .user = OCP_USER_MPU | OCP_USER_SDMA,
3975 /* mmc1 -> l3_main_1 */
3976 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3977 .master = &omap44xx_mmc1_hwmod,
3978 .slave = &omap44xx_l3_main_1_hwmod,
3979 .clk = "l3_div_ck",
3980 .user = OCP_USER_MPU | OCP_USER_SDMA,
3983 /* mmc2 -> l3_main_1 */
3984 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3985 .master = &omap44xx_mmc2_hwmod,
3986 .slave = &omap44xx_l3_main_1_hwmod,
3987 .clk = "l3_div_ck",
3988 .user = OCP_USER_MPU | OCP_USER_SDMA,
3991 static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
3993 .pa_start = 0x44000000,
3994 .pa_end = 0x44000fff,
3995 .flags = ADDR_TYPE_RT
4000 /* mpu -> l3_main_1 */
4001 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
4002 .master = &omap44xx_mpu_hwmod,
4003 .slave = &omap44xx_l3_main_1_hwmod,
4004 .clk = "l3_div_ck",
4005 .addr = omap44xx_l3_main_1_addrs,
4006 .user = OCP_USER_MPU,
4009 /* c2c_target_fw -> l3_main_2 */
4010 static struct omap_hwmod_ocp_if omap44xx_c2c_target_fw__l3_main_2 = {
4011 .master = &omap44xx_c2c_target_fw_hwmod,
4012 .slave = &omap44xx_l3_main_2_hwmod,
4013 .clk = "l3_div_ck",
4014 .user = OCP_USER_MPU | OCP_USER_SDMA,
4017 /* debugss -> l3_main_2 */
4018 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
4019 .master = &omap44xx_debugss_hwmod,
4020 .slave = &omap44xx_l3_main_2_hwmod,
4021 .clk = "dbgclk_mux_ck",
4022 .user = OCP_USER_MPU | OCP_USER_SDMA,
4025 /* dma_system -> l3_main_2 */
4026 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
4027 .master = &omap44xx_dma_system_hwmod,
4028 .slave = &omap44xx_l3_main_2_hwmod,
4029 .clk = "l3_div_ck",
4030 .user = OCP_USER_MPU | OCP_USER_SDMA,
4033 /* fdif -> l3_main_2 */
4034 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
4035 .master = &omap44xx_fdif_hwmod,
4036 .slave = &omap44xx_l3_main_2_hwmod,
4037 .clk = "l3_div_ck",
4038 .user = OCP_USER_MPU | OCP_USER_SDMA,
4041 /* gpu -> l3_main_2 */
4042 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
4043 .master = &omap44xx_gpu_hwmod,
4044 .slave = &omap44xx_l3_main_2_hwmod,
4045 .clk = "l3_div_ck",
4046 .user = OCP_USER_MPU | OCP_USER_SDMA,
4049 /* hsi -> l3_main_2 */
4050 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
4051 .master = &omap44xx_hsi_hwmod,
4052 .slave = &omap44xx_l3_main_2_hwmod,
4053 .clk = "l3_div_ck",
4054 .user = OCP_USER_MPU | OCP_USER_SDMA,
4057 /* ipu -> l3_main_2 */
4058 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
4059 .master = &omap44xx_ipu_hwmod,
4060 .slave = &omap44xx_l3_main_2_hwmod,
4061 .clk = "l3_div_ck",
4062 .user = OCP_USER_MPU | OCP_USER_SDMA,
4065 /* iss -> l3_main_2 */
4066 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
4067 .master = &omap44xx_iss_hwmod,
4068 .slave = &omap44xx_l3_main_2_hwmod,
4069 .clk = "l3_div_ck",
4070 .user = OCP_USER_MPU | OCP_USER_SDMA,
4073 /* iva -> l3_main_2 */
4074 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
4075 .master = &omap44xx_iva_hwmod,
4076 .slave = &omap44xx_l3_main_2_hwmod,
4077 .clk = "l3_div_ck",
4078 .user = OCP_USER_MPU | OCP_USER_SDMA,
4081 static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
4083 .pa_start = 0x44800000,
4084 .pa_end = 0x44801fff,
4085 .flags = ADDR_TYPE_RT
4090 /* l3_main_1 -> l3_main_2 */
4091 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
4092 .master = &omap44xx_l3_main_1_hwmod,
4093 .slave = &omap44xx_l3_main_2_hwmod,
4094 .clk = "l3_div_ck",
4095 .addr = omap44xx_l3_main_2_addrs,
4096 .user = OCP_USER_MPU,
4099 /* l4_cfg -> l3_main_2 */
4100 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
4101 .master = &omap44xx_l4_cfg_hwmod,
4102 .slave = &omap44xx_l3_main_2_hwmod,
4103 .clk = "l4_div_ck",
4104 .user = OCP_USER_MPU | OCP_USER_SDMA,
4107 /* usb_host_fs -> l3_main_2 */
4108 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
4109 .master = &omap44xx_usb_host_fs_hwmod,
4110 .slave = &omap44xx_l3_main_2_hwmod,
4111 .clk = "l3_div_ck",
4112 .user = OCP_USER_MPU | OCP_USER_SDMA,
4115 /* usb_host_hs -> l3_main_2 */
4116 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
4117 .master = &omap44xx_usb_host_hs_hwmod,
4118 .slave = &omap44xx_l3_main_2_hwmod,
4119 .clk = "l3_div_ck",
4120 .user = OCP_USER_MPU | OCP_USER_SDMA,
4123 /* usb_otg_hs -> l3_main_2 */
4124 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
4125 .master = &omap44xx_usb_otg_hs_hwmod,
4126 .slave = &omap44xx_l3_main_2_hwmod,
4127 .clk = "l3_div_ck",
4128 .user = OCP_USER_MPU | OCP_USER_SDMA,
4131 static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
4133 .pa_start = 0x45000000,
4134 .pa_end = 0x45000fff,
4135 .flags = ADDR_TYPE_RT
4140 /* l3_main_1 -> l3_main_3 */
4141 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
4142 .master = &omap44xx_l3_main_1_hwmod,
4143 .slave = &omap44xx_l3_main_3_hwmod,
4144 .clk = "l3_div_ck",
4145 .addr = omap44xx_l3_main_3_addrs,
4146 .user = OCP_USER_MPU,
4149 /* l3_main_2 -> l3_main_3 */
4150 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
4151 .master = &omap44xx_l3_main_2_hwmod,
4152 .slave = &omap44xx_l3_main_3_hwmod,
4153 .clk = "l3_div_ck",
4154 .user = OCP_USER_MPU | OCP_USER_SDMA,
4157 /* l4_cfg -> l3_main_3 */
4158 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
4159 .master = &omap44xx_l4_cfg_hwmod,
4160 .slave = &omap44xx_l3_main_3_hwmod,
4161 .clk = "l4_div_ck",
4162 .user = OCP_USER_MPU | OCP_USER_SDMA,
4165 /* aess -> l4_abe */
4166 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
4167 .master = &omap44xx_aess_hwmod,
4168 .slave = &omap44xx_l4_abe_hwmod,
4169 .clk = "ocp_abe_iclk",
4170 .user = OCP_USER_MPU | OCP_USER_SDMA,
4173 /* dsp -> l4_abe */
4174 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
4175 .master = &omap44xx_dsp_hwmod,
4176 .slave = &omap44xx_l4_abe_hwmod,
4177 .clk = "ocp_abe_iclk",
4178 .user = OCP_USER_MPU | OCP_USER_SDMA,
4181 /* l3_main_1 -> l4_abe */
4182 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
4183 .master = &omap44xx_l3_main_1_hwmod,
4184 .slave = &omap44xx_l4_abe_hwmod,
4185 .clk = "l3_div_ck",
4186 .user = OCP_USER_MPU | OCP_USER_SDMA,
4189 /* mpu -> l4_abe */
4190 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
4191 .master = &omap44xx_mpu_hwmod,
4192 .slave = &omap44xx_l4_abe_hwmod,
4193 .clk = "ocp_abe_iclk",
4194 .user = OCP_USER_MPU | OCP_USER_SDMA,
4197 /* l3_main_1 -> l4_cfg */
4198 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
4199 .master = &omap44xx_l3_main_1_hwmod,
4200 .slave = &omap44xx_l4_cfg_hwmod,
4201 .clk = "l3_div_ck",
4202 .user = OCP_USER_MPU | OCP_USER_SDMA,
4205 /* l3_main_2 -> l4_per */
4206 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
4207 .master = &omap44xx_l3_main_2_hwmod,
4208 .slave = &omap44xx_l4_per_hwmod,
4209 .clk = "l3_div_ck",
4210 .user = OCP_USER_MPU | OCP_USER_SDMA,
4213 /* l4_cfg -> l4_wkup */
4214 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
4215 .master = &omap44xx_l4_cfg_hwmod,
4216 .slave = &omap44xx_l4_wkup_hwmod,
4217 .clk = "l4_div_ck",
4218 .user = OCP_USER_MPU | OCP_USER_SDMA,
4221 /* mpu -> mpu_private */
4222 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
4223 .master = &omap44xx_mpu_hwmod,
4224 .slave = &omap44xx_mpu_private_hwmod,
4225 .clk = "l3_div_ck",
4226 .user = OCP_USER_MPU | OCP_USER_SDMA,
4229 static struct omap_hwmod_addr_space omap44xx_ocp_wp_noc_addrs[] = {
4231 .pa_start = 0x4a102000,
4232 .pa_end = 0x4a10207f,
4233 .flags = ADDR_TYPE_RT
4238 /* l4_cfg -> ocp_wp_noc */
4239 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
4240 .master = &omap44xx_l4_cfg_hwmod,
4241 .slave = &omap44xx_ocp_wp_noc_hwmod,
4242 .clk = "l4_div_ck",
4243 .addr = omap44xx_ocp_wp_noc_addrs,
4244 .user = OCP_USER_MPU | OCP_USER_SDMA,
4247 static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
4249 .pa_start = 0x401f1000,
4250 .pa_end = 0x401f13ff,
4251 .flags = ADDR_TYPE_RT
4256 /* l4_abe -> aess */
4257 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
4258 .master = &omap44xx_l4_abe_hwmod,
4259 .slave = &omap44xx_aess_hwmod,
4260 .clk = "ocp_abe_iclk",
4261 .addr = omap44xx_aess_addrs,
4262 .user = OCP_USER_MPU,
4265 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
4267 .pa_start = 0x490f1000,
4268 .pa_end = 0x490f13ff,
4269 .flags = ADDR_TYPE_RT
4274 /* l4_abe -> aess (dma) */
4275 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
4276 .master = &omap44xx_l4_abe_hwmod,
4277 .slave = &omap44xx_aess_hwmod,
4278 .clk = "ocp_abe_iclk",
4279 .addr = omap44xx_aess_dma_addrs,
4280 .user = OCP_USER_SDMA,
4283 /* l3_main_2 -> c2c */
4284 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
4285 .master = &omap44xx_l3_main_2_hwmod,
4286 .slave = &omap44xx_c2c_hwmod,
4287 .clk = "l3_div_ck",
4288 .user = OCP_USER_MPU | OCP_USER_SDMA,
4291 static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
4293 .pa_start = 0x4a304000,
4294 .pa_end = 0x4a30401f,
4295 .flags = ADDR_TYPE_RT
4300 /* l4_wkup -> counter_32k */
4301 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
4302 .master = &omap44xx_l4_wkup_hwmod,
4303 .slave = &omap44xx_counter_32k_hwmod,
4304 .clk = "l4_wkup_clk_mux_ck",
4305 .addr = omap44xx_counter_32k_addrs,
4306 .user = OCP_USER_MPU | OCP_USER_SDMA,
4309 static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
4311 .pa_start = 0x4a002000,
4312 .pa_end = 0x4a0027ff,
4313 .flags = ADDR_TYPE_RT
4318 /* l4_cfg -> ctrl_module_core */
4319 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
4320 .master = &omap44xx_l4_cfg_hwmod,
4321 .slave = &omap44xx_ctrl_module_core_hwmod,
4322 .clk = "l4_div_ck",
4323 .addr = omap44xx_ctrl_module_core_addrs,
4324 .user = OCP_USER_MPU | OCP_USER_SDMA,
4327 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
4329 .pa_start = 0x4a100000,
4330 .pa_end = 0x4a1007ff,
4331 .flags = ADDR_TYPE_RT
4336 /* l4_cfg -> ctrl_module_pad_core */
4337 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
4338 .master = &omap44xx_l4_cfg_hwmod,
4339 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
4340 .clk = "l4_div_ck",
4341 .addr = omap44xx_ctrl_module_pad_core_addrs,
4342 .user = OCP_USER_MPU | OCP_USER_SDMA,
4345 static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
4347 .pa_start = 0x4a30c000,
4348 .pa_end = 0x4a30c7ff,
4349 .flags = ADDR_TYPE_RT
4354 /* l4_wkup -> ctrl_module_wkup */
4355 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
4356 .master = &omap44xx_l4_wkup_hwmod,
4357 .slave = &omap44xx_ctrl_module_wkup_hwmod,
4358 .clk = "l4_wkup_clk_mux_ck",
4359 .addr = omap44xx_ctrl_module_wkup_addrs,
4360 .user = OCP_USER_MPU | OCP_USER_SDMA,
4363 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
4365 .pa_start = 0x4a31e000,
4366 .pa_end = 0x4a31e7ff,
4367 .flags = ADDR_TYPE_RT
4372 /* l4_wkup -> ctrl_module_pad_wkup */
4373 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
4374 .master = &omap44xx_l4_wkup_hwmod,
4375 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
4376 .clk = "l4_wkup_clk_mux_ck",
4377 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
4378 .user = OCP_USER_MPU | OCP_USER_SDMA,
4381 static struct omap_hwmod_addr_space omap44xx_debugss_addrs[] = {
4383 .pa_start = 0x54160000,
4384 .pa_end = 0x54167fff,
4385 .flags = ADDR_TYPE_RT
4390 /* l3_instr -> debugss */
4391 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
4392 .master = &omap44xx_l3_instr_hwmod,
4393 .slave = &omap44xx_debugss_hwmod,
4394 .clk = "l3_div_ck",
4395 .addr = omap44xx_debugss_addrs,
4396 .user = OCP_USER_MPU | OCP_USER_SDMA,
4399 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
4401 .pa_start = 0x4a056000,
4402 .pa_end = 0x4a056fff,
4403 .flags = ADDR_TYPE_RT
4408 /* l4_cfg -> dma_system */
4409 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
4410 .master = &omap44xx_l4_cfg_hwmod,
4411 .slave = &omap44xx_dma_system_hwmod,
4412 .clk = "l4_div_ck",
4413 .addr = omap44xx_dma_system_addrs,
4414 .user = OCP_USER_MPU | OCP_USER_SDMA,
4417 static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
4419 .name = "mpu",
4420 .pa_start = 0x4012e000,
4421 .pa_end = 0x4012e07f,
4422 .flags = ADDR_TYPE_RT
4427 /* l4_abe -> dmic */
4428 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
4429 .master = &omap44xx_l4_abe_hwmod,
4430 .slave = &omap44xx_dmic_hwmod,
4431 .clk = "ocp_abe_iclk",
4432 .addr = omap44xx_dmic_addrs,
4433 .user = OCP_USER_MPU,
4436 static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
4438 .name = "dma",
4439 .pa_start = 0x4902e000,
4440 .pa_end = 0x4902e07f,
4441 .flags = ADDR_TYPE_RT
4446 /* l4_abe -> dmic (dma) */
4447 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
4448 .master = &omap44xx_l4_abe_hwmod,
4449 .slave = &omap44xx_dmic_hwmod,
4450 .clk = "ocp_abe_iclk",
4451 .addr = omap44xx_dmic_dma_addrs,
4452 .user = OCP_USER_SDMA,
4455 /* dsp -> iva */
4456 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
4457 .master = &omap44xx_dsp_hwmod,
4458 .slave = &omap44xx_iva_hwmod,
4459 .clk = "dpll_iva_m5x2_ck",
4460 .user = OCP_USER_DSP,
4463 /* dsp -> sl2if */
4464 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
4465 .master = &omap44xx_dsp_hwmod,
4466 .slave = &omap44xx_sl2if_hwmod,
4467 .clk = "dpll_iva_m5x2_ck",
4468 .user = OCP_USER_DSP,
4471 /* l4_cfg -> dsp */
4472 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
4473 .master = &omap44xx_l4_cfg_hwmod,
4474 .slave = &omap44xx_dsp_hwmod,
4475 .clk = "l4_div_ck",
4476 .user = OCP_USER_MPU | OCP_USER_SDMA,
4479 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
4481 .pa_start = 0x58000000,
4482 .pa_end = 0x5800007f,
4483 .flags = ADDR_TYPE_RT
4488 /* l3_main_2 -> dss */
4489 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
4490 .master = &omap44xx_l3_main_2_hwmod,
4491 .slave = &omap44xx_dss_hwmod,
4492 .clk = "dss_fck",
4493 .addr = omap44xx_dss_dma_addrs,
4494 .user = OCP_USER_SDMA,
4497 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
4499 .pa_start = 0x48040000,
4500 .pa_end = 0x4804007f,
4501 .flags = ADDR_TYPE_RT
4506 /* l4_per -> dss */
4507 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
4508 .master = &omap44xx_l4_per_hwmod,
4509 .slave = &omap44xx_dss_hwmod,
4510 .clk = "l4_div_ck",
4511 .addr = omap44xx_dss_addrs,
4512 .user = OCP_USER_MPU,
4515 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
4517 .pa_start = 0x58001000,
4518 .pa_end = 0x58001fff,
4519 .flags = ADDR_TYPE_RT
4524 /* l3_main_2 -> dss_dispc */
4525 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
4526 .master = &omap44xx_l3_main_2_hwmod,
4527 .slave = &omap44xx_dss_dispc_hwmod,
4528 .clk = "dss_fck",
4529 .addr = omap44xx_dss_dispc_dma_addrs,
4530 .user = OCP_USER_SDMA,
4533 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
4535 .pa_start = 0x48041000,
4536 .pa_end = 0x48041fff,
4537 .flags = ADDR_TYPE_RT
4542 /* l4_per -> dss_dispc */
4543 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
4544 .master = &omap44xx_l4_per_hwmod,
4545 .slave = &omap44xx_dss_dispc_hwmod,
4546 .clk = "l4_div_ck",
4547 .addr = omap44xx_dss_dispc_addrs,
4548 .user = OCP_USER_MPU,
4551 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
4553 .pa_start = 0x58004000,
4554 .pa_end = 0x580041ff,
4555 .flags = ADDR_TYPE_RT
4560 /* l3_main_2 -> dss_dsi1 */
4561 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
4562 .master = &omap44xx_l3_main_2_hwmod,
4563 .slave = &omap44xx_dss_dsi1_hwmod,
4564 .clk = "dss_fck",
4565 .addr = omap44xx_dss_dsi1_dma_addrs,
4566 .user = OCP_USER_SDMA,
4569 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
4571 .pa_start = 0x48044000,
4572 .pa_end = 0x480441ff,
4573 .flags = ADDR_TYPE_RT
4578 /* l4_per -> dss_dsi1 */
4579 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
4580 .master = &omap44xx_l4_per_hwmod,
4581 .slave = &omap44xx_dss_dsi1_hwmod,
4582 .clk = "l4_div_ck",
4583 .addr = omap44xx_dss_dsi1_addrs,
4584 .user = OCP_USER_MPU,
4587 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
4589 .pa_start = 0x58005000,
4590 .pa_end = 0x580051ff,
4591 .flags = ADDR_TYPE_RT
4596 /* l3_main_2 -> dss_dsi2 */
4597 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
4598 .master = &omap44xx_l3_main_2_hwmod,
4599 .slave = &omap44xx_dss_dsi2_hwmod,
4600 .clk = "dss_fck",
4601 .addr = omap44xx_dss_dsi2_dma_addrs,
4602 .user = OCP_USER_SDMA,
4605 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
4607 .pa_start = 0x48045000,
4608 .pa_end = 0x480451ff,
4609 .flags = ADDR_TYPE_RT
4614 /* l4_per -> dss_dsi2 */
4615 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
4616 .master = &omap44xx_l4_per_hwmod,
4617 .slave = &omap44xx_dss_dsi2_hwmod,
4618 .clk = "l4_div_ck",
4619 .addr = omap44xx_dss_dsi2_addrs,
4620 .user = OCP_USER_MPU,
4623 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
4625 .pa_start = 0x58006000,
4626 .pa_end = 0x58006fff,
4627 .flags = ADDR_TYPE_RT
4632 /* l3_main_2 -> dss_hdmi */
4633 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
4634 .master = &omap44xx_l3_main_2_hwmod,
4635 .slave = &omap44xx_dss_hdmi_hwmod,
4636 .clk = "dss_fck",
4637 .addr = omap44xx_dss_hdmi_dma_addrs,
4638 .user = OCP_USER_SDMA,
4641 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
4643 .pa_start = 0x48046000,
4644 .pa_end = 0x48046fff,
4645 .flags = ADDR_TYPE_RT
4650 /* l4_per -> dss_hdmi */
4651 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
4652 .master = &omap44xx_l4_per_hwmod,
4653 .slave = &omap44xx_dss_hdmi_hwmod,
4654 .clk = "l4_div_ck",
4655 .addr = omap44xx_dss_hdmi_addrs,
4656 .user = OCP_USER_MPU,
4659 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
4661 .pa_start = 0x58002000,
4662 .pa_end = 0x580020ff,
4663 .flags = ADDR_TYPE_RT
4668 /* l3_main_2 -> dss_rfbi */
4669 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
4670 .master = &omap44xx_l3_main_2_hwmod,
4671 .slave = &omap44xx_dss_rfbi_hwmod,
4672 .clk = "dss_fck",
4673 .addr = omap44xx_dss_rfbi_dma_addrs,
4674 .user = OCP_USER_SDMA,
4677 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
4679 .pa_start = 0x48042000,
4680 .pa_end = 0x480420ff,
4681 .flags = ADDR_TYPE_RT
4686 /* l4_per -> dss_rfbi */
4687 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
4688 .master = &omap44xx_l4_per_hwmod,
4689 .slave = &omap44xx_dss_rfbi_hwmod,
4690 .clk = "l4_div_ck",
4691 .addr = omap44xx_dss_rfbi_addrs,
4692 .user = OCP_USER_MPU,
4695 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
4697 .pa_start = 0x58003000,
4698 .pa_end = 0x580030ff,
4699 .flags = ADDR_TYPE_RT
4704 /* l3_main_2 -> dss_venc */
4705 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
4706 .master = &omap44xx_l3_main_2_hwmod,
4707 .slave = &omap44xx_dss_venc_hwmod,
4708 .clk = "dss_fck",
4709 .addr = omap44xx_dss_venc_dma_addrs,
4710 .user = OCP_USER_SDMA,
4713 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
4715 .pa_start = 0x48043000,
4716 .pa_end = 0x480430ff,
4717 .flags = ADDR_TYPE_RT
4722 /* l4_per -> dss_venc */
4723 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
4724 .master = &omap44xx_l4_per_hwmod,
4725 .slave = &omap44xx_dss_venc_hwmod,
4726 .clk = "l4_div_ck",
4727 .addr = omap44xx_dss_venc_addrs,
4728 .user = OCP_USER_MPU,
4731 static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
4733 .pa_start = 0x48078000,
4734 .pa_end = 0x48078fff,
4735 .flags = ADDR_TYPE_RT
4740 /* l4_per -> elm */
4741 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
4742 .master = &omap44xx_l4_per_hwmod,
4743 .slave = &omap44xx_elm_hwmod,
4744 .clk = "l4_div_ck",
4745 .addr = omap44xx_elm_addrs,
4746 .user = OCP_USER_MPU | OCP_USER_SDMA,
4749 static struct omap_hwmod_addr_space omap44xx_emif1_addrs[] = {
4751 .pa_start = 0x4c000000,
4752 .pa_end = 0x4c0000ff,
4753 .flags = ADDR_TYPE_RT
4758 /* emif_fw -> emif1 */
4759 static struct omap_hwmod_ocp_if omap44xx_emif_fw__emif1 = {
4760 .master = &omap44xx_emif_fw_hwmod,
4761 .slave = &omap44xx_emif1_hwmod,
4762 .clk = "l3_div_ck",
4763 .addr = omap44xx_emif1_addrs,
4764 .user = OCP_USER_MPU | OCP_USER_SDMA,
4767 static struct omap_hwmod_addr_space omap44xx_emif2_addrs[] = {
4769 .pa_start = 0x4d000000,
4770 .pa_end = 0x4d0000ff,
4771 .flags = ADDR_TYPE_RT
4776 /* emif_fw -> emif2 */
4777 static struct omap_hwmod_ocp_if omap44xx_emif_fw__emif2 = {
4778 .master = &omap44xx_emif_fw_hwmod,
4779 .slave = &omap44xx_emif2_hwmod,
4780 .clk = "l3_div_ck",
4781 .addr = omap44xx_emif2_addrs,
4782 .user = OCP_USER_MPU | OCP_USER_SDMA,
4785 static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
4787 .pa_start = 0x4a10a000,
4788 .pa_end = 0x4a10a1ff,
4789 .flags = ADDR_TYPE_RT
4794 /* l4_cfg -> fdif */
4795 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
4796 .master = &omap44xx_l4_cfg_hwmod,
4797 .slave = &omap44xx_fdif_hwmod,
4798 .clk = "l4_div_ck",
4799 .addr = omap44xx_fdif_addrs,
4800 .user = OCP_USER_MPU | OCP_USER_SDMA,
4803 static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
4805 .pa_start = 0x4a310000,
4806 .pa_end = 0x4a3101ff,
4807 .flags = ADDR_TYPE_RT
4812 /* l4_wkup -> gpio1 */
4813 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
4814 .master = &omap44xx_l4_wkup_hwmod,
4815 .slave = &omap44xx_gpio1_hwmod,
4816 .clk = "l4_wkup_clk_mux_ck",
4817 .addr = omap44xx_gpio1_addrs,
4818 .user = OCP_USER_MPU | OCP_USER_SDMA,
4821 static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
4823 .pa_start = 0x48055000,
4824 .pa_end = 0x480551ff,
4825 .flags = ADDR_TYPE_RT
4830 /* l4_per -> gpio2 */
4831 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
4832 .master = &omap44xx_l4_per_hwmod,
4833 .slave = &omap44xx_gpio2_hwmod,
4834 .clk = "l4_div_ck",
4835 .addr = omap44xx_gpio2_addrs,
4836 .user = OCP_USER_MPU | OCP_USER_SDMA,
4839 static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
4841 .pa_start = 0x48057000,
4842 .pa_end = 0x480571ff,
4843 .flags = ADDR_TYPE_RT
4848 /* l4_per -> gpio3 */
4849 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
4850 .master = &omap44xx_l4_per_hwmod,
4851 .slave = &omap44xx_gpio3_hwmod,
4852 .clk = "l4_div_ck",
4853 .addr = omap44xx_gpio3_addrs,
4854 .user = OCP_USER_MPU | OCP_USER_SDMA,
4857 static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
4859 .pa_start = 0x48059000,
4860 .pa_end = 0x480591ff,
4861 .flags = ADDR_TYPE_RT
4866 /* l4_per -> gpio4 */
4867 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
4868 .master = &omap44xx_l4_per_hwmod,
4869 .slave = &omap44xx_gpio4_hwmod,
4870 .clk = "l4_div_ck",
4871 .addr = omap44xx_gpio4_addrs,
4872 .user = OCP_USER_MPU | OCP_USER_SDMA,
4875 static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
4877 .pa_start = 0x4805b000,
4878 .pa_end = 0x4805b1ff,
4879 .flags = ADDR_TYPE_RT
4884 /* l4_per -> gpio5 */
4885 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
4886 .master = &omap44xx_l4_per_hwmod,
4887 .slave = &omap44xx_gpio5_hwmod,
4888 .clk = "l4_div_ck",
4889 .addr = omap44xx_gpio5_addrs,
4890 .user = OCP_USER_MPU | OCP_USER_SDMA,
4893 static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
4895 .pa_start = 0x4805d000,
4896 .pa_end = 0x4805d1ff,
4897 .flags = ADDR_TYPE_RT
4902 /* l4_per -> gpio6 */
4903 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
4904 .master = &omap44xx_l4_per_hwmod,
4905 .slave = &omap44xx_gpio6_hwmod,
4906 .clk = "l4_div_ck",
4907 .addr = omap44xx_gpio6_addrs,
4908 .user = OCP_USER_MPU | OCP_USER_SDMA,
4911 static struct omap_hwmod_addr_space omap44xx_gpmc_addrs[] = {
4913 .pa_start = 0x50000000,
4914 .pa_end = 0x500003ff,
4915 .flags = ADDR_TYPE_RT
4920 /* l3_main_2 -> gpmc */
4921 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4922 .master = &omap44xx_l3_main_2_hwmod,
4923 .slave = &omap44xx_gpmc_hwmod,
4924 .clk = "l3_div_ck",
4925 .addr = omap44xx_gpmc_addrs,
4926 .user = OCP_USER_MPU | OCP_USER_SDMA,
4929 static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4931 .pa_start = 0x56000000,
4932 .pa_end = 0x5600ffff,
4933 .flags = ADDR_TYPE_RT
4938 /* l3_main_2 -> gpu */
4939 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4940 .master = &omap44xx_l3_main_2_hwmod,
4941 .slave = &omap44xx_gpu_hwmod,
4942 .clk = "l3_div_ck",
4943 .addr = omap44xx_gpu_addrs,
4944 .user = OCP_USER_MPU | OCP_USER_SDMA,
4947 static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4949 .pa_start = 0x480b2000,
4950 .pa_end = 0x480b201f,
4951 .flags = ADDR_TYPE_RT
4956 /* l4_per -> hdq1w */
4957 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4958 .master = &omap44xx_l4_per_hwmod,
4959 .slave = &omap44xx_hdq1w_hwmod,
4960 .clk = "l4_div_ck",
4961 .addr = omap44xx_hdq1w_addrs,
4962 .user = OCP_USER_MPU | OCP_USER_SDMA,
4965 static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4967 .pa_start = 0x4a058000,
4968 .pa_end = 0x4a05bfff,
4969 .flags = ADDR_TYPE_RT
4974 /* l4_cfg -> hsi */
4975 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4976 .master = &omap44xx_l4_cfg_hwmod,
4977 .slave = &omap44xx_hsi_hwmod,
4978 .clk = "l4_div_ck",
4979 .addr = omap44xx_hsi_addrs,
4980 .user = OCP_USER_MPU | OCP_USER_SDMA,
4983 static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
4985 .pa_start = 0x48070000,
4986 .pa_end = 0x480700ff,
4987 .flags = ADDR_TYPE_RT
4992 /* l4_per -> i2c1 */
4993 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4994 .master = &omap44xx_l4_per_hwmod,
4995 .slave = &omap44xx_i2c1_hwmod,
4996 .clk = "l4_div_ck",
4997 .addr = omap44xx_i2c1_addrs,
4998 .user = OCP_USER_MPU | OCP_USER_SDMA,
5001 static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
5003 .pa_start = 0x48072000,
5004 .pa_end = 0x480720ff,
5005 .flags = ADDR_TYPE_RT
5010 /* l4_per -> i2c2 */
5011 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
5012 .master = &omap44xx_l4_per_hwmod,
5013 .slave = &omap44xx_i2c2_hwmod,
5014 .clk = "l4_div_ck",
5015 .addr = omap44xx_i2c2_addrs,
5016 .user = OCP_USER_MPU | OCP_USER_SDMA,
5019 static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
5021 .pa_start = 0x48060000,
5022 .pa_end = 0x480600ff,
5023 .flags = ADDR_TYPE_RT
5028 /* l4_per -> i2c3 */
5029 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
5030 .master = &omap44xx_l4_per_hwmod,
5031 .slave = &omap44xx_i2c3_hwmod,
5032 .clk = "l4_div_ck",
5033 .addr = omap44xx_i2c3_addrs,
5034 .user = OCP_USER_MPU | OCP_USER_SDMA,
5037 static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
5039 .pa_start = 0x48350000,
5040 .pa_end = 0x483500ff,
5041 .flags = ADDR_TYPE_RT
5046 /* l4_per -> i2c4 */
5047 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
5048 .master = &omap44xx_l4_per_hwmod,
5049 .slave = &omap44xx_i2c4_hwmod,
5050 .clk = "l4_div_ck",
5051 .addr = omap44xx_i2c4_addrs,
5052 .user = OCP_USER_MPU | OCP_USER_SDMA,
5055 /* l3_main_2 -> ipu */
5056 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
5057 .master = &omap44xx_l3_main_2_hwmod,
5058 .slave = &omap44xx_ipu_hwmod,
5059 .clk = "l3_div_ck",
5060 .user = OCP_USER_MPU | OCP_USER_SDMA,
5063 static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
5065 .pa_start = 0x52000000,
5066 .pa_end = 0x520000ff,
5067 .flags = ADDR_TYPE_RT
5072 /* l3_main_2 -> iss */
5073 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
5074 .master = &omap44xx_l3_main_2_hwmod,
5075 .slave = &omap44xx_iss_hwmod,
5076 .clk = "l3_div_ck",
5077 .addr = omap44xx_iss_addrs,
5078 .user = OCP_USER_MPU | OCP_USER_SDMA,
5081 /* iva -> sl2if */
5082 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
5083 .master = &omap44xx_iva_hwmod,
5084 .slave = &omap44xx_sl2if_hwmod,
5085 .clk = "dpll_iva_m5x2_ck",
5086 .user = OCP_USER_IVA,
5089 static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
5091 .pa_start = 0x5a000000,
5092 .pa_end = 0x5a07ffff,
5093 .flags = ADDR_TYPE_RT
5098 /* l3_main_2 -> iva */
5099 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
5100 .master = &omap44xx_l3_main_2_hwmod,
5101 .slave = &omap44xx_iva_hwmod,
5102 .clk = "l3_div_ck",
5103 .addr = omap44xx_iva_addrs,
5104 .user = OCP_USER_MPU,
5107 static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
5109 .pa_start = 0x4a31c000,
5110 .pa_end = 0x4a31c07f,
5111 .flags = ADDR_TYPE_RT
5116 /* l4_wkup -> kbd */
5117 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
5118 .master = &omap44xx_l4_wkup_hwmod,
5119 .slave = &omap44xx_kbd_hwmod,
5120 .clk = "l4_wkup_clk_mux_ck",
5121 .addr = omap44xx_kbd_addrs,
5122 .user = OCP_USER_MPU | OCP_USER_SDMA,
5125 static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
5127 .pa_start = 0x4a0f4000,
5128 .pa_end = 0x4a0f41ff,
5129 .flags = ADDR_TYPE_RT
5134 /* l4_cfg -> mailbox */
5135 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
5136 .master = &omap44xx_l4_cfg_hwmod,
5137 .slave = &omap44xx_mailbox_hwmod,
5138 .clk = "l4_div_ck",
5139 .addr = omap44xx_mailbox_addrs,
5140 .user = OCP_USER_MPU | OCP_USER_SDMA,
5143 static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
5145 .pa_start = 0x40128000,
5146 .pa_end = 0x401283ff,
5147 .flags = ADDR_TYPE_RT
5152 /* l4_abe -> mcasp */
5153 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
5154 .master = &omap44xx_l4_abe_hwmod,
5155 .slave = &omap44xx_mcasp_hwmod,
5156 .clk = "ocp_abe_iclk",
5157 .addr = omap44xx_mcasp_addrs,
5158 .user = OCP_USER_MPU,
5161 static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
5163 .pa_start = 0x49028000,
5164 .pa_end = 0x490283ff,
5165 .flags = ADDR_TYPE_RT
5170 /* l4_abe -> mcasp (dma) */
5171 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
5172 .master = &omap44xx_l4_abe_hwmod,
5173 .slave = &omap44xx_mcasp_hwmod,
5174 .clk = "ocp_abe_iclk",
5175 .addr = omap44xx_mcasp_dma_addrs,
5176 .user = OCP_USER_SDMA,
5179 static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
5181 .name = "mpu",
5182 .pa_start = 0x40122000,
5183 .pa_end = 0x401220ff,
5184 .flags = ADDR_TYPE_RT
5189 /* l4_abe -> mcbsp1 */
5190 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
5191 .master = &omap44xx_l4_abe_hwmod,
5192 .slave = &omap44xx_mcbsp1_hwmod,
5193 .clk = "ocp_abe_iclk",
5194 .addr = omap44xx_mcbsp1_addrs,
5195 .user = OCP_USER_MPU,
5198 static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
5200 .name = "dma",
5201 .pa_start = 0x49022000,
5202 .pa_end = 0x490220ff,
5203 .flags = ADDR_TYPE_RT
5208 /* l4_abe -> mcbsp1 (dma) */
5209 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
5210 .master = &omap44xx_l4_abe_hwmod,
5211 .slave = &omap44xx_mcbsp1_hwmod,
5212 .clk = "ocp_abe_iclk",
5213 .addr = omap44xx_mcbsp1_dma_addrs,
5214 .user = OCP_USER_SDMA,
5217 static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
5219 .name = "mpu",
5220 .pa_start = 0x40124000,
5221 .pa_end = 0x401240ff,
5222 .flags = ADDR_TYPE_RT
5227 /* l4_abe -> mcbsp2 */
5228 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
5229 .master = &omap44xx_l4_abe_hwmod,
5230 .slave = &omap44xx_mcbsp2_hwmod,
5231 .clk = "ocp_abe_iclk",
5232 .addr = omap44xx_mcbsp2_addrs,
5233 .user = OCP_USER_MPU,
5236 static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
5238 .name = "dma",
5239 .pa_start = 0x49024000,
5240 .pa_end = 0x490240ff,
5241 .flags = ADDR_TYPE_RT
5246 /* l4_abe -> mcbsp2 (dma) */
5247 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
5248 .master = &omap44xx_l4_abe_hwmod,
5249 .slave = &omap44xx_mcbsp2_hwmod,
5250 .clk = "ocp_abe_iclk",
5251 .addr = omap44xx_mcbsp2_dma_addrs,
5252 .user = OCP_USER_SDMA,
5255 static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
5257 .name = "mpu",
5258 .pa_start = 0x40126000,
5259 .pa_end = 0x401260ff,
5260 .flags = ADDR_TYPE_RT
5265 /* l4_abe -> mcbsp3 */
5266 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
5267 .master = &omap44xx_l4_abe_hwmod,
5268 .slave = &omap44xx_mcbsp3_hwmod,
5269 .clk = "ocp_abe_iclk",
5270 .addr = omap44xx_mcbsp3_addrs,
5271 .user = OCP_USER_MPU,
5274 static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
5276 .name = "dma",
5277 .pa_start = 0x49026000,
5278 .pa_end = 0x490260ff,
5279 .flags = ADDR_TYPE_RT
5284 /* l4_abe -> mcbsp3 (dma) */
5285 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
5286 .master = &omap44xx_l4_abe_hwmod,
5287 .slave = &omap44xx_mcbsp3_hwmod,
5288 .clk = "ocp_abe_iclk",
5289 .addr = omap44xx_mcbsp3_dma_addrs,
5290 .user = OCP_USER_SDMA,
5293 static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
5295 .pa_start = 0x48096000,
5296 .pa_end = 0x480960ff,
5297 .flags = ADDR_TYPE_RT
5302 /* l4_per -> mcbsp4 */
5303 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
5304 .master = &omap44xx_l4_per_hwmod,
5305 .slave = &omap44xx_mcbsp4_hwmod,
5306 .clk = "l4_div_ck",
5307 .addr = omap44xx_mcbsp4_addrs,
5308 .user = OCP_USER_MPU | OCP_USER_SDMA,
5311 static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
5313 .name = "mpu",
5314 .pa_start = 0x40132000,
5315 .pa_end = 0x4013207f,
5316 .flags = ADDR_TYPE_RT
5321 /* l4_abe -> mcpdm */
5322 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
5323 .master = &omap44xx_l4_abe_hwmod,
5324 .slave = &omap44xx_mcpdm_hwmod,
5325 .clk = "ocp_abe_iclk",
5326 .addr = omap44xx_mcpdm_addrs,
5327 .user = OCP_USER_MPU,
5330 static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
5332 .name = "dma",
5333 .pa_start = 0x49032000,
5334 .pa_end = 0x4903207f,
5335 .flags = ADDR_TYPE_RT
5340 /* l4_abe -> mcpdm (dma) */
5341 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
5342 .master = &omap44xx_l4_abe_hwmod,
5343 .slave = &omap44xx_mcpdm_hwmod,
5344 .clk = "ocp_abe_iclk",
5345 .addr = omap44xx_mcpdm_dma_addrs,
5346 .user = OCP_USER_SDMA,
5349 static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
5351 .pa_start = 0x48098000,
5352 .pa_end = 0x480981ff,
5353 .flags = ADDR_TYPE_RT
5358 /* l4_per -> mcspi1 */
5359 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
5360 .master = &omap44xx_l4_per_hwmod,
5361 .slave = &omap44xx_mcspi1_hwmod,
5362 .clk = "l4_div_ck",
5363 .addr = omap44xx_mcspi1_addrs,
5364 .user = OCP_USER_MPU | OCP_USER_SDMA,
5367 static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
5369 .pa_start = 0x4809a000,
5370 .pa_end = 0x4809a1ff,
5371 .flags = ADDR_TYPE_RT
5376 /* l4_per -> mcspi2 */
5377 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
5378 .master = &omap44xx_l4_per_hwmod,
5379 .slave = &omap44xx_mcspi2_hwmod,
5380 .clk = "l4_div_ck",
5381 .addr = omap44xx_mcspi2_addrs,
5382 .user = OCP_USER_MPU | OCP_USER_SDMA,
5385 static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
5387 .pa_start = 0x480b8000,
5388 .pa_end = 0x480b81ff,
5389 .flags = ADDR_TYPE_RT
5394 /* l4_per -> mcspi3 */
5395 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
5396 .master = &omap44xx_l4_per_hwmod,
5397 .slave = &omap44xx_mcspi3_hwmod,
5398 .clk = "l4_div_ck",
5399 .addr = omap44xx_mcspi3_addrs,
5400 .user = OCP_USER_MPU | OCP_USER_SDMA,
5403 static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
5405 .pa_start = 0x480ba000,
5406 .pa_end = 0x480ba1ff,
5407 .flags = ADDR_TYPE_RT
5412 /* l4_per -> mcspi4 */
5413 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
5414 .master = &omap44xx_l4_per_hwmod,
5415 .slave = &omap44xx_mcspi4_hwmod,
5416 .clk = "l4_div_ck",
5417 .addr = omap44xx_mcspi4_addrs,
5418 .user = OCP_USER_MPU | OCP_USER_SDMA,
5421 static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
5423 .pa_start = 0x4809c000,
5424 .pa_end = 0x4809c3ff,
5425 .flags = ADDR_TYPE_RT
5430 /* l4_per -> mmc1 */
5431 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
5432 .master = &omap44xx_l4_per_hwmod,
5433 .slave = &omap44xx_mmc1_hwmod,
5434 .clk = "l4_div_ck",
5435 .addr = omap44xx_mmc1_addrs,
5436 .user = OCP_USER_MPU | OCP_USER_SDMA,
5439 static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
5441 .pa_start = 0x480b4000,
5442 .pa_end = 0x480b43ff,
5443 .flags = ADDR_TYPE_RT
5448 /* l4_per -> mmc2 */
5449 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
5450 .master = &omap44xx_l4_per_hwmod,
5451 .slave = &omap44xx_mmc2_hwmod,
5452 .clk = "l4_div_ck",
5453 .addr = omap44xx_mmc2_addrs,
5454 .user = OCP_USER_MPU | OCP_USER_SDMA,
5457 static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
5459 .pa_start = 0x480ad000,
5460 .pa_end = 0x480ad3ff,
5461 .flags = ADDR_TYPE_RT
5466 /* l4_per -> mmc3 */
5467 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
5468 .master = &omap44xx_l4_per_hwmod,
5469 .slave = &omap44xx_mmc3_hwmod,
5470 .clk = "l4_div_ck",
5471 .addr = omap44xx_mmc3_addrs,
5472 .user = OCP_USER_MPU | OCP_USER_SDMA,
5475 static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
5477 .pa_start = 0x480d1000,
5478 .pa_end = 0x480d13ff,
5479 .flags = ADDR_TYPE_RT
5484 /* l4_per -> mmc4 */
5485 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
5486 .master = &omap44xx_l4_per_hwmod,
5487 .slave = &omap44xx_mmc4_hwmod,
5488 .clk = "l4_div_ck",
5489 .addr = omap44xx_mmc4_addrs,
5490 .user = OCP_USER_MPU | OCP_USER_SDMA,
5493 static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
5495 .pa_start = 0x480d5000,
5496 .pa_end = 0x480d53ff,
5497 .flags = ADDR_TYPE_RT
5502 /* l4_per -> mmc5 */
5503 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
5504 .master = &omap44xx_l4_per_hwmod,
5505 .slave = &omap44xx_mmc5_hwmod,
5506 .clk = "l4_div_ck",
5507 .addr = omap44xx_mmc5_addrs,
5508 .user = OCP_USER_MPU | OCP_USER_SDMA,
5511 /* l3_main_2 -> ocmc_ram */
5512 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
5513 .master = &omap44xx_l3_main_2_hwmod,
5514 .slave = &omap44xx_ocmc_ram_hwmod,
5515 .clk = "l3_div_ck",
5516 .user = OCP_USER_MPU | OCP_USER_SDMA,
5519 static struct omap_hwmod_addr_space omap44xx_ocp2scp_usb_phy_addrs[] = {
5521 .pa_start = 0x4a0ad000,
5522 .pa_end = 0x4a0ad01f,
5523 .flags = ADDR_TYPE_RT
5528 /* l4_cfg -> ocp2scp_usb_phy */
5529 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
5530 .master = &omap44xx_l4_cfg_hwmod,
5531 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
5532 .clk = "l4_div_ck",
5533 .addr = omap44xx_ocp2scp_usb_phy_addrs,
5534 .user = OCP_USER_MPU | OCP_USER_SDMA,
5537 static struct omap_hwmod_addr_space omap44xx_prcm_mpu_addrs[] = {
5539 .pa_start = 0x48243000,
5540 .pa_end = 0x48243fff,
5541 .flags = ADDR_TYPE_RT
5546 /* mpu_private -> prcm_mpu */
5547 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
5548 .master = &omap44xx_mpu_private_hwmod,
5549 .slave = &omap44xx_prcm_mpu_hwmod,
5550 .clk = "l3_div_ck",
5551 .addr = omap44xx_prcm_mpu_addrs,
5552 .user = OCP_USER_MPU | OCP_USER_SDMA,
5555 static struct omap_hwmod_addr_space omap44xx_cm_core_aon_addrs[] = {
5557 .pa_start = 0x4a004000,
5558 .pa_end = 0x4a004fff,
5559 .flags = ADDR_TYPE_RT
5564 /* l4_wkup -> cm_core_aon */
5565 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
5566 .master = &omap44xx_l4_wkup_hwmod,
5567 .slave = &omap44xx_cm_core_aon_hwmod,
5568 .clk = "l4_wkup_clk_mux_ck",
5569 .addr = omap44xx_cm_core_aon_addrs,
5570 .user = OCP_USER_MPU | OCP_USER_SDMA,
5573 static struct omap_hwmod_addr_space omap44xx_cm_core_addrs[] = {
5575 .pa_start = 0x4a008000,
5576 .pa_end = 0x4a009fff,
5577 .flags = ADDR_TYPE_RT
5582 /* l4_cfg -> cm_core */
5583 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
5584 .master = &omap44xx_l4_cfg_hwmod,
5585 .slave = &omap44xx_cm_core_hwmod,
5586 .clk = "l4_div_ck",
5587 .addr = omap44xx_cm_core_addrs,
5588 .user = OCP_USER_MPU | OCP_USER_SDMA,
5591 static struct omap_hwmod_addr_space omap44xx_prm_addrs[] = {
5593 .pa_start = 0x4a306000,
5594 .pa_end = 0x4a307fff,
5595 .flags = ADDR_TYPE_RT
5600 /* l4_wkup -> prm */
5601 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
5602 .master = &omap44xx_l4_wkup_hwmod,
5603 .slave = &omap44xx_prm_hwmod,
5604 .clk = "l4_wkup_clk_mux_ck",
5605 .addr = omap44xx_prm_addrs,
5606 .user = OCP_USER_MPU | OCP_USER_SDMA,
5609 static struct omap_hwmod_addr_space omap44xx_scrm_addrs[] = {
5611 .pa_start = 0x4a30a000,
5612 .pa_end = 0x4a30a7ff,
5613 .flags = ADDR_TYPE_RT
5618 /* l4_wkup -> scrm */
5619 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
5620 .master = &omap44xx_l4_wkup_hwmod,
5621 .slave = &omap44xx_scrm_hwmod,
5622 .clk = "l4_wkup_clk_mux_ck",
5623 .addr = omap44xx_scrm_addrs,
5624 .user = OCP_USER_MPU | OCP_USER_SDMA,
5627 /* l3_main_2 -> sl2if */
5628 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
5629 .master = &omap44xx_l3_main_2_hwmod,
5630 .slave = &omap44xx_sl2if_hwmod,
5631 .clk = "l3_div_ck",
5632 .user = OCP_USER_MPU | OCP_USER_SDMA,
5635 static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
5637 .pa_start = 0x4012c000,
5638 .pa_end = 0x4012c3ff,
5639 .flags = ADDR_TYPE_RT
5644 /* l4_abe -> slimbus1 */
5645 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
5646 .master = &omap44xx_l4_abe_hwmod,
5647 .slave = &omap44xx_slimbus1_hwmod,
5648 .clk = "ocp_abe_iclk",
5649 .addr = omap44xx_slimbus1_addrs,
5650 .user = OCP_USER_MPU,
5653 static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
5655 .pa_start = 0x4902c000,
5656 .pa_end = 0x4902c3ff,
5657 .flags = ADDR_TYPE_RT
5662 /* l4_abe -> slimbus1 (dma) */
5663 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
5664 .master = &omap44xx_l4_abe_hwmod,
5665 .slave = &omap44xx_slimbus1_hwmod,
5666 .clk = "ocp_abe_iclk",
5667 .addr = omap44xx_slimbus1_dma_addrs,
5668 .user = OCP_USER_SDMA,
5671 static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
5673 .pa_start = 0x48076000,
5674 .pa_end = 0x480763ff,
5675 .flags = ADDR_TYPE_RT
5680 /* l4_per -> slimbus2 */
5681 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
5682 .master = &omap44xx_l4_per_hwmod,
5683 .slave = &omap44xx_slimbus2_hwmod,
5684 .clk = "l4_div_ck",
5685 .addr = omap44xx_slimbus2_addrs,
5686 .user = OCP_USER_MPU | OCP_USER_SDMA,
5689 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
5691 .pa_start = 0x4a0dd000,
5692 .pa_end = 0x4a0dd03f,
5693 .flags = ADDR_TYPE_RT
5698 /* l4_cfg -> smartreflex_core */
5699 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
5700 .master = &omap44xx_l4_cfg_hwmod,
5701 .slave = &omap44xx_smartreflex_core_hwmod,
5702 .clk = "l4_div_ck",
5703 .addr = omap44xx_smartreflex_core_addrs,
5704 .user = OCP_USER_MPU | OCP_USER_SDMA,
5707 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
5709 .pa_start = 0x4a0db000,
5710 .pa_end = 0x4a0db03f,
5711 .flags = ADDR_TYPE_RT
5716 /* l4_cfg -> smartreflex_iva */
5717 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
5718 .master = &omap44xx_l4_cfg_hwmod,
5719 .slave = &omap44xx_smartreflex_iva_hwmod,
5720 .clk = "l4_div_ck",
5721 .addr = omap44xx_smartreflex_iva_addrs,
5722 .user = OCP_USER_MPU | OCP_USER_SDMA,
5725 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
5727 .pa_start = 0x4a0d9000,
5728 .pa_end = 0x4a0d903f,
5729 .flags = ADDR_TYPE_RT
5734 /* l4_cfg -> smartreflex_mpu */
5735 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
5736 .master = &omap44xx_l4_cfg_hwmod,
5737 .slave = &omap44xx_smartreflex_mpu_hwmod,
5738 .clk = "l4_div_ck",
5739 .addr = omap44xx_smartreflex_mpu_addrs,
5740 .user = OCP_USER_MPU | OCP_USER_SDMA,
5743 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
5745 .pa_start = 0x4a0f6000,
5746 .pa_end = 0x4a0f6fff,
5747 .flags = ADDR_TYPE_RT
5752 /* l4_cfg -> spinlock */
5753 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
5754 .master = &omap44xx_l4_cfg_hwmod,
5755 .slave = &omap44xx_spinlock_hwmod,
5756 .clk = "l4_div_ck",
5757 .addr = omap44xx_spinlock_addrs,
5758 .user = OCP_USER_MPU | OCP_USER_SDMA,
5761 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
5763 .pa_start = 0x4a318000,
5764 .pa_end = 0x4a31807f,
5765 .flags = ADDR_TYPE_RT
5770 /* l4_wkup -> timer1 */
5771 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
5772 .master = &omap44xx_l4_wkup_hwmod,
5773 .slave = &omap44xx_timer1_hwmod,
5774 .clk = "l4_wkup_clk_mux_ck",
5775 .addr = omap44xx_timer1_addrs,
5776 .user = OCP_USER_MPU | OCP_USER_SDMA,
5779 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
5781 .pa_start = 0x48032000,
5782 .pa_end = 0x4803207f,
5783 .flags = ADDR_TYPE_RT
5788 /* l4_per -> timer2 */
5789 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
5790 .master = &omap44xx_l4_per_hwmod,
5791 .slave = &omap44xx_timer2_hwmod,
5792 .clk = "l4_div_ck",
5793 .addr = omap44xx_timer2_addrs,
5794 .user = OCP_USER_MPU | OCP_USER_SDMA,
5797 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
5799 .pa_start = 0x48034000,
5800 .pa_end = 0x4803407f,
5801 .flags = ADDR_TYPE_RT
5806 /* l4_per -> timer3 */
5807 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
5808 .master = &omap44xx_l4_per_hwmod,
5809 .slave = &omap44xx_timer3_hwmod,
5810 .clk = "l4_div_ck",
5811 .addr = omap44xx_timer3_addrs,
5812 .user = OCP_USER_MPU | OCP_USER_SDMA,
5815 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
5817 .pa_start = 0x48036000,
5818 .pa_end = 0x4803607f,
5819 .flags = ADDR_TYPE_RT
5824 /* l4_per -> timer4 */
5825 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
5826 .master = &omap44xx_l4_per_hwmod,
5827 .slave = &omap44xx_timer4_hwmod,
5828 .clk = "l4_div_ck",
5829 .addr = omap44xx_timer4_addrs,
5830 .user = OCP_USER_MPU | OCP_USER_SDMA,
5833 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
5835 .pa_start = 0x40138000,
5836 .pa_end = 0x4013807f,
5837 .flags = ADDR_TYPE_RT
5842 /* l4_abe -> timer5 */
5843 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
5844 .master = &omap44xx_l4_abe_hwmod,
5845 .slave = &omap44xx_timer5_hwmod,
5846 .clk = "ocp_abe_iclk",
5847 .addr = omap44xx_timer5_addrs,
5848 .user = OCP_USER_MPU,
5851 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
5853 .pa_start = 0x49038000,
5854 .pa_end = 0x4903807f,
5855 .flags = ADDR_TYPE_RT
5860 /* l4_abe -> timer5 (dma) */
5861 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
5862 .master = &omap44xx_l4_abe_hwmod,
5863 .slave = &omap44xx_timer5_hwmod,
5864 .clk = "ocp_abe_iclk",
5865 .addr = omap44xx_timer5_dma_addrs,
5866 .user = OCP_USER_SDMA,
5869 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
5871 .pa_start = 0x4013a000,
5872 .pa_end = 0x4013a07f,
5873 .flags = ADDR_TYPE_RT
5878 /* l4_abe -> timer6 */
5879 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
5880 .master = &omap44xx_l4_abe_hwmod,
5881 .slave = &omap44xx_timer6_hwmod,
5882 .clk = "ocp_abe_iclk",
5883 .addr = omap44xx_timer6_addrs,
5884 .user = OCP_USER_MPU,
5887 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
5889 .pa_start = 0x4903a000,
5890 .pa_end = 0x4903a07f,
5891 .flags = ADDR_TYPE_RT
5896 /* l4_abe -> timer6 (dma) */
5897 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
5898 .master = &omap44xx_l4_abe_hwmod,
5899 .slave = &omap44xx_timer6_hwmod,
5900 .clk = "ocp_abe_iclk",
5901 .addr = omap44xx_timer6_dma_addrs,
5902 .user = OCP_USER_SDMA,
5905 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
5907 .pa_start = 0x4013c000,
5908 .pa_end = 0x4013c07f,
5909 .flags = ADDR_TYPE_RT
5914 /* l4_abe -> timer7 */
5915 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
5916 .master = &omap44xx_l4_abe_hwmod,
5917 .slave = &omap44xx_timer7_hwmod,
5918 .clk = "ocp_abe_iclk",
5919 .addr = omap44xx_timer7_addrs,
5920 .user = OCP_USER_MPU,
5923 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
5925 .pa_start = 0x4903c000,
5926 .pa_end = 0x4903c07f,
5927 .flags = ADDR_TYPE_RT
5932 /* l4_abe -> timer7 (dma) */
5933 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
5934 .master = &omap44xx_l4_abe_hwmod,
5935 .slave = &omap44xx_timer7_hwmod,
5936 .clk = "ocp_abe_iclk",
5937 .addr = omap44xx_timer7_dma_addrs,
5938 .user = OCP_USER_SDMA,
5941 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
5943 .pa_start = 0x4013e000,
5944 .pa_end = 0x4013e07f,
5945 .flags = ADDR_TYPE_RT
5950 /* l4_abe -> timer8 */
5951 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
5952 .master = &omap44xx_l4_abe_hwmod,
5953 .slave = &omap44xx_timer8_hwmod,
5954 .clk = "ocp_abe_iclk",
5955 .addr = omap44xx_timer8_addrs,
5956 .user = OCP_USER_MPU,
5959 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
5961 .pa_start = 0x4903e000,
5962 .pa_end = 0x4903e07f,
5963 .flags = ADDR_TYPE_RT
5968 /* l4_abe -> timer8 (dma) */
5969 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
5970 .master = &omap44xx_l4_abe_hwmod,
5971 .slave = &omap44xx_timer8_hwmod,
5972 .clk = "ocp_abe_iclk",
5973 .addr = omap44xx_timer8_dma_addrs,
5974 .user = OCP_USER_SDMA,
5977 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
5979 .pa_start = 0x4803e000,
5980 .pa_end = 0x4803e07f,
5981 .flags = ADDR_TYPE_RT
5986 /* l4_per -> timer9 */
5987 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
5988 .master = &omap44xx_l4_per_hwmod,
5989 .slave = &omap44xx_timer9_hwmod,
5990 .clk = "l4_div_ck",
5991 .addr = omap44xx_timer9_addrs,
5992 .user = OCP_USER_MPU | OCP_USER_SDMA,
5995 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
5997 .pa_start = 0x48086000,
5998 .pa_end = 0x4808607f,
5999 .flags = ADDR_TYPE_RT
6004 /* l4_per -> timer10 */
6005 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
6006 .master = &omap44xx_l4_per_hwmod,
6007 .slave = &omap44xx_timer10_hwmod,
6008 .clk = "l4_div_ck",
6009 .addr = omap44xx_timer10_addrs,
6010 .user = OCP_USER_MPU | OCP_USER_SDMA,
6013 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
6015 .pa_start = 0x48088000,
6016 .pa_end = 0x4808807f,
6017 .flags = ADDR_TYPE_RT
6022 /* l4_per -> timer11 */
6023 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
6024 .master = &omap44xx_l4_per_hwmod,
6025 .slave = &omap44xx_timer11_hwmod,
6026 .clk = "l4_div_ck",
6027 .addr = omap44xx_timer11_addrs,
6028 .user = OCP_USER_MPU | OCP_USER_SDMA,
6031 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
6033 .pa_start = 0x4806a000,
6034 .pa_end = 0x4806a0ff,
6035 .flags = ADDR_TYPE_RT
6040 /* l4_per -> uart1 */
6041 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
6042 .master = &omap44xx_l4_per_hwmod,
6043 .slave = &omap44xx_uart1_hwmod,
6044 .clk = "l4_div_ck",
6045 .addr = omap44xx_uart1_addrs,
6046 .user = OCP_USER_MPU | OCP_USER_SDMA,
6049 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
6051 .pa_start = 0x4806c000,
6052 .pa_end = 0x4806c0ff,
6053 .flags = ADDR_TYPE_RT
6058 /* l4_per -> uart2 */
6059 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
6060 .master = &omap44xx_l4_per_hwmod,
6061 .slave = &omap44xx_uart2_hwmod,
6062 .clk = "l4_div_ck",
6063 .addr = omap44xx_uart2_addrs,
6064 .user = OCP_USER_MPU | OCP_USER_SDMA,
6067 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
6069 .pa_start = 0x48020000,
6070 .pa_end = 0x480200ff,
6071 .flags = ADDR_TYPE_RT
6076 /* l4_per -> uart3 */
6077 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
6078 .master = &omap44xx_l4_per_hwmod,
6079 .slave = &omap44xx_uart3_hwmod,
6080 .clk = "l4_div_ck",
6081 .addr = omap44xx_uart3_addrs,
6082 .user = OCP_USER_MPU | OCP_USER_SDMA,
6085 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
6087 .pa_start = 0x4806e000,
6088 .pa_end = 0x4806e0ff,
6089 .flags = ADDR_TYPE_RT
6094 /* l4_per -> uart4 */
6095 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
6096 .master = &omap44xx_l4_per_hwmod,
6097 .slave = &omap44xx_uart4_hwmod,
6098 .clk = "l4_div_ck",
6099 .addr = omap44xx_uart4_addrs,
6100 .user = OCP_USER_MPU | OCP_USER_SDMA,
6103 static struct omap_hwmod_addr_space omap44xx_usb_host_fs_addrs[] = {
6105 .pa_start = 0x4a0a9000,
6106 .pa_end = 0x4a0a93ff,
6107 .flags = ADDR_TYPE_RT
6112 /* l4_cfg -> usb_host_fs */
6113 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
6114 .master = &omap44xx_l4_cfg_hwmod,
6115 .slave = &omap44xx_usb_host_fs_hwmod,
6116 .clk = "l4_div_ck",
6117 .addr = omap44xx_usb_host_fs_addrs,
6118 .user = OCP_USER_MPU | OCP_USER_SDMA,
6121 static struct omap_hwmod_addr_space omap44xx_usb_host_hs_addrs[] = {
6123 .name = "uhh",
6124 .pa_start = 0x4a064000,
6125 .pa_end = 0x4a0647ff,
6126 .flags = ADDR_TYPE_RT
6129 .name = "ohci",
6130 .pa_start = 0x4a064800,
6131 .pa_end = 0x4a064bff,
6134 .name = "ehci",
6135 .pa_start = 0x4a064c00,
6136 .pa_end = 0x4a064fff,
6141 /* l4_cfg -> usb_host_hs */
6142 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
6143 .master = &omap44xx_l4_cfg_hwmod,
6144 .slave = &omap44xx_usb_host_hs_hwmod,
6145 .clk = "l4_div_ck",
6146 .addr = omap44xx_usb_host_hs_addrs,
6147 .user = OCP_USER_MPU | OCP_USER_SDMA,
6150 static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
6152 .pa_start = 0x4a0ab000,
6153 .pa_end = 0x4a0ab7ff,
6154 .flags = ADDR_TYPE_RT
6157 /* XXX: Remove this once control module driver is in place */
6158 .pa_start = 0x4a00233c,
6159 .pa_end = 0x4a00233f,
6160 .flags = ADDR_TYPE_RT
6165 /* l4_cfg -> usb_otg_hs */
6166 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
6167 .master = &omap44xx_l4_cfg_hwmod,
6168 .slave = &omap44xx_usb_otg_hs_hwmod,
6169 .clk = "l4_div_ck",
6170 .addr = omap44xx_usb_otg_hs_addrs,
6171 .user = OCP_USER_MPU | OCP_USER_SDMA,
6174 static struct omap_hwmod_addr_space omap44xx_usb_tll_hs_addrs[] = {
6176 .name = "tll",
6177 .pa_start = 0x4a062000,
6178 .pa_end = 0x4a063fff,
6179 .flags = ADDR_TYPE_RT
6184 /* l4_cfg -> usb_tll_hs */
6185 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
6186 .master = &omap44xx_l4_cfg_hwmod,
6187 .slave = &omap44xx_usb_tll_hs_hwmod,
6188 .clk = "l4_div_ck",
6189 .addr = omap44xx_usb_tll_hs_addrs,
6190 .user = OCP_USER_MPU | OCP_USER_SDMA,
6193 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
6195 .pa_start = 0x4a314000,
6196 .pa_end = 0x4a31407f,
6197 .flags = ADDR_TYPE_RT
6202 /* l4_wkup -> wd_timer2 */
6203 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
6204 .master = &omap44xx_l4_wkup_hwmod,
6205 .slave = &omap44xx_wd_timer2_hwmod,
6206 .clk = "l4_wkup_clk_mux_ck",
6207 .addr = omap44xx_wd_timer2_addrs,
6208 .user = OCP_USER_MPU | OCP_USER_SDMA,
6211 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
6213 .pa_start = 0x40130000,
6214 .pa_end = 0x4013007f,
6215 .flags = ADDR_TYPE_RT
6220 /* l4_abe -> wd_timer3 */
6221 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
6222 .master = &omap44xx_l4_abe_hwmod,
6223 .slave = &omap44xx_wd_timer3_hwmod,
6224 .clk = "ocp_abe_iclk",
6225 .addr = omap44xx_wd_timer3_addrs,
6226 .user = OCP_USER_MPU,
6229 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
6231 .pa_start = 0x49030000,
6232 .pa_end = 0x4903007f,
6233 .flags = ADDR_TYPE_RT
6238 /* l4_abe -> wd_timer3 (dma) */
6239 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
6240 .master = &omap44xx_l4_abe_hwmod,
6241 .slave = &omap44xx_wd_timer3_hwmod,
6242 .clk = "ocp_abe_iclk",
6243 .addr = omap44xx_wd_timer3_dma_addrs,
6244 .user = OCP_USER_SDMA,
6247 static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
6248 &omap44xx_c2c__c2c_target_fw,
6249 &omap44xx_l4_cfg__c2c_target_fw,
6250 &omap44xx_l3_main_1__dmm,
6251 &omap44xx_mpu__dmm,
6252 &omap44xx_c2c__emif_fw,
6253 &omap44xx_dmm__emif_fw,
6254 &omap44xx_l4_cfg__emif_fw,
6255 &omap44xx_iva__l3_instr,
6256 &omap44xx_l3_main_3__l3_instr,
6257 &omap44xx_ocp_wp_noc__l3_instr,
6258 &omap44xx_dsp__l3_main_1,
6259 &omap44xx_dss__l3_main_1,
6260 &omap44xx_l3_main_2__l3_main_1,
6261 &omap44xx_l4_cfg__l3_main_1,
6262 &omap44xx_mmc1__l3_main_1,
6263 &omap44xx_mmc2__l3_main_1,
6264 &omap44xx_mpu__l3_main_1,
6265 &omap44xx_c2c_target_fw__l3_main_2,
6266 &omap44xx_debugss__l3_main_2,
6267 &omap44xx_dma_system__l3_main_2,
6268 &omap44xx_fdif__l3_main_2,
6269 &omap44xx_gpu__l3_main_2,
6270 &omap44xx_hsi__l3_main_2,
6271 &omap44xx_ipu__l3_main_2,
6272 &omap44xx_iss__l3_main_2,
6273 &omap44xx_iva__l3_main_2,
6274 &omap44xx_l3_main_1__l3_main_2,
6275 &omap44xx_l4_cfg__l3_main_2,
6276 /* &omap44xx_usb_host_fs__l3_main_2, */
6277 &omap44xx_usb_host_hs__l3_main_2,
6278 &omap44xx_usb_otg_hs__l3_main_2,
6279 &omap44xx_l3_main_1__l3_main_3,
6280 &omap44xx_l3_main_2__l3_main_3,
6281 &omap44xx_l4_cfg__l3_main_3,
6282 /* &omap44xx_aess__l4_abe, */
6283 &omap44xx_dsp__l4_abe,
6284 &omap44xx_l3_main_1__l4_abe,
6285 &omap44xx_mpu__l4_abe,
6286 &omap44xx_l3_main_1__l4_cfg,
6287 &omap44xx_l3_main_2__l4_per,
6288 &omap44xx_l4_cfg__l4_wkup,
6289 &omap44xx_mpu__mpu_private,
6290 &omap44xx_l4_cfg__ocp_wp_noc,
6291 /* &omap44xx_l4_abe__aess, */
6292 /* &omap44xx_l4_abe__aess_dma, */
6293 &omap44xx_l3_main_2__c2c,
6294 &omap44xx_l4_wkup__counter_32k,
6295 &omap44xx_l4_cfg__ctrl_module_core,
6296 &omap44xx_l4_cfg__ctrl_module_pad_core,
6297 &omap44xx_l4_wkup__ctrl_module_wkup,
6298 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
6299 &omap44xx_l3_instr__debugss,
6300 &omap44xx_l4_cfg__dma_system,
6301 &omap44xx_l4_abe__dmic,
6302 &omap44xx_l4_abe__dmic_dma,
6303 &omap44xx_dsp__iva,
6304 /* &omap44xx_dsp__sl2if, */
6305 &omap44xx_l4_cfg__dsp,
6306 &omap44xx_l3_main_2__dss,
6307 &omap44xx_l4_per__dss,
6308 &omap44xx_l3_main_2__dss_dispc,
6309 &omap44xx_l4_per__dss_dispc,
6310 &omap44xx_l3_main_2__dss_dsi1,
6311 &omap44xx_l4_per__dss_dsi1,
6312 &omap44xx_l3_main_2__dss_dsi2,
6313 &omap44xx_l4_per__dss_dsi2,
6314 &omap44xx_l3_main_2__dss_hdmi,
6315 &omap44xx_l4_per__dss_hdmi,
6316 &omap44xx_l3_main_2__dss_rfbi,
6317 &omap44xx_l4_per__dss_rfbi,
6318 &omap44xx_l3_main_2__dss_venc,
6319 &omap44xx_l4_per__dss_venc,
6320 &omap44xx_l4_per__elm,
6321 &omap44xx_emif_fw__emif1,
6322 &omap44xx_emif_fw__emif2,
6323 &omap44xx_l4_cfg__fdif,
6324 &omap44xx_l4_wkup__gpio1,
6325 &omap44xx_l4_per__gpio2,
6326 &omap44xx_l4_per__gpio3,
6327 &omap44xx_l4_per__gpio4,
6328 &omap44xx_l4_per__gpio5,
6329 &omap44xx_l4_per__gpio6,
6330 &omap44xx_l3_main_2__gpmc,
6331 &omap44xx_l3_main_2__gpu,
6332 &omap44xx_l4_per__hdq1w,
6333 &omap44xx_l4_cfg__hsi,
6334 &omap44xx_l4_per__i2c1,
6335 &omap44xx_l4_per__i2c2,
6336 &omap44xx_l4_per__i2c3,
6337 &omap44xx_l4_per__i2c4,
6338 &omap44xx_l3_main_2__ipu,
6339 &omap44xx_l3_main_2__iss,
6340 /* &omap44xx_iva__sl2if, */
6341 &omap44xx_l3_main_2__iva,
6342 &omap44xx_l4_wkup__kbd,
6343 &omap44xx_l4_cfg__mailbox,
6344 &omap44xx_l4_abe__mcasp,
6345 &omap44xx_l4_abe__mcasp_dma,
6346 &omap44xx_l4_abe__mcbsp1,
6347 &omap44xx_l4_abe__mcbsp1_dma,
6348 &omap44xx_l4_abe__mcbsp2,
6349 &omap44xx_l4_abe__mcbsp2_dma,
6350 &omap44xx_l4_abe__mcbsp3,
6351 &omap44xx_l4_abe__mcbsp3_dma,
6352 &omap44xx_l4_per__mcbsp4,
6353 &omap44xx_l4_abe__mcpdm,
6354 &omap44xx_l4_abe__mcpdm_dma,
6355 &omap44xx_l4_per__mcspi1,
6356 &omap44xx_l4_per__mcspi2,
6357 &omap44xx_l4_per__mcspi3,
6358 &omap44xx_l4_per__mcspi4,
6359 &omap44xx_l4_per__mmc1,
6360 &omap44xx_l4_per__mmc2,
6361 &omap44xx_l4_per__mmc3,
6362 &omap44xx_l4_per__mmc4,
6363 &omap44xx_l4_per__mmc5,
6364 &omap44xx_l3_main_2__mmu_ipu,
6365 &omap44xx_l4_cfg__mmu_dsp,
6366 &omap44xx_l3_main_2__ocmc_ram,
6367 &omap44xx_l4_cfg__ocp2scp_usb_phy,
6368 &omap44xx_mpu_private__prcm_mpu,
6369 &omap44xx_l4_wkup__cm_core_aon,
6370 &omap44xx_l4_cfg__cm_core,
6371 &omap44xx_l4_wkup__prm,
6372 &omap44xx_l4_wkup__scrm,
6373 /* &omap44xx_l3_main_2__sl2if, */
6374 &omap44xx_l4_abe__slimbus1,
6375 &omap44xx_l4_abe__slimbus1_dma,
6376 &omap44xx_l4_per__slimbus2,
6377 &omap44xx_l4_cfg__smartreflex_core,
6378 &omap44xx_l4_cfg__smartreflex_iva,
6379 &omap44xx_l4_cfg__smartreflex_mpu,
6380 &omap44xx_l4_cfg__spinlock,
6381 &omap44xx_l4_wkup__timer1,
6382 &omap44xx_l4_per__timer2,
6383 &omap44xx_l4_per__timer3,
6384 &omap44xx_l4_per__timer4,
6385 &omap44xx_l4_abe__timer5,
6386 &omap44xx_l4_abe__timer5_dma,
6387 &omap44xx_l4_abe__timer6,
6388 &omap44xx_l4_abe__timer6_dma,
6389 &omap44xx_l4_abe__timer7,
6390 &omap44xx_l4_abe__timer7_dma,
6391 &omap44xx_l4_abe__timer8,
6392 &omap44xx_l4_abe__timer8_dma,
6393 &omap44xx_l4_per__timer9,
6394 &omap44xx_l4_per__timer10,
6395 &omap44xx_l4_per__timer11,
6396 &omap44xx_l4_per__uart1,
6397 &omap44xx_l4_per__uart2,
6398 &omap44xx_l4_per__uart3,
6399 &omap44xx_l4_per__uart4,
6400 /* &omap44xx_l4_cfg__usb_host_fs, */
6401 &omap44xx_l4_cfg__usb_host_hs,
6402 &omap44xx_l4_cfg__usb_otg_hs,
6403 &omap44xx_l4_cfg__usb_tll_hs,
6404 &omap44xx_l4_wkup__wd_timer2,
6405 &omap44xx_l4_abe__wd_timer3,
6406 &omap44xx_l4_abe__wd_timer3_dma,
6407 NULL,
6410 int __init omap44xx_hwmod_init(void)
6412 omap_hwmod_init();
6413 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);