2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2012 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
15 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
24 #include <linux/platform_data/gpio-omap.h>
25 #include <linux/platform_data/hsmmc-omap.h>
26 #include <linux/power/smartreflex.h>
27 #include <linux/i2c-omap.h>
29 #include <linux/omap-dma.h>
31 #include <linux/platform_data/spi-omap2-mcspi.h>
32 #include <linux/platform_data/asoc-ti-mcbsp.h>
33 #include <plat/dmtimer.h>
35 #include "omap_hwmod.h"
36 #include "omap_hwmod_common_data.h"
40 #include "prm-regbits-44xx.h"
44 /* Base offset for all OMAP4 interrupts external to MPUSS */
45 #define OMAP44XX_IRQ_GIC_START 32
47 /* Base offset for all OMAP4 dma requests */
48 #define OMAP44XX_DMA_REQ_START 1
58 static struct omap_hwmod_class omap44xx_dmm_hwmod_class
= {
63 static struct omap_hwmod omap44xx_dmm_hwmod
= {
65 .class = &omap44xx_dmm_hwmod_class
,
66 .clkdm_name
= "l3_emif_clkdm",
69 .clkctrl_offs
= OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET
,
70 .context_offs
= OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET
,
77 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
79 static struct omap_hwmod_class omap44xx_l3_hwmod_class
= {
84 static struct omap_hwmod omap44xx_l3_instr_hwmod
= {
86 .class = &omap44xx_l3_hwmod_class
,
87 .clkdm_name
= "l3_instr_clkdm",
90 .clkctrl_offs
= OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET
,
91 .context_offs
= OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET
,
92 .modulemode
= MODULEMODE_HWCTRL
,
98 static struct omap_hwmod omap44xx_l3_main_1_hwmod
= {
100 .class = &omap44xx_l3_hwmod_class
,
101 .clkdm_name
= "l3_1_clkdm",
104 .clkctrl_offs
= OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET
,
105 .context_offs
= OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET
,
111 static struct omap_hwmod omap44xx_l3_main_2_hwmod
= {
113 .class = &omap44xx_l3_hwmod_class
,
114 .clkdm_name
= "l3_2_clkdm",
117 .clkctrl_offs
= OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET
,
118 .context_offs
= OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET
,
124 static struct omap_hwmod omap44xx_l3_main_3_hwmod
= {
126 .class = &omap44xx_l3_hwmod_class
,
127 .clkdm_name
= "l3_instr_clkdm",
130 .clkctrl_offs
= OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET
,
131 .context_offs
= OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET
,
132 .modulemode
= MODULEMODE_HWCTRL
,
139 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
141 static struct omap_hwmod_class omap44xx_l4_hwmod_class
= {
146 static struct omap_hwmod omap44xx_l4_abe_hwmod
= {
148 .class = &omap44xx_l4_hwmod_class
,
149 .clkdm_name
= "abe_clkdm",
152 .clkctrl_offs
= OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET
,
153 .context_offs
= OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
154 .lostcontext_mask
= OMAP4430_LOSTMEM_AESSMEM_MASK
,
155 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
161 static struct omap_hwmod omap44xx_l4_cfg_hwmod
= {
163 .class = &omap44xx_l4_hwmod_class
,
164 .clkdm_name
= "l4_cfg_clkdm",
167 .clkctrl_offs
= OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET
,
168 .context_offs
= OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET
,
174 static struct omap_hwmod omap44xx_l4_per_hwmod
= {
176 .class = &omap44xx_l4_hwmod_class
,
177 .clkdm_name
= "l4_per_clkdm",
180 .clkctrl_offs
= OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET
,
181 .context_offs
= OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET
,
187 static struct omap_hwmod omap44xx_l4_wkup_hwmod
= {
189 .class = &omap44xx_l4_hwmod_class
,
190 .clkdm_name
= "l4_wkup_clkdm",
193 .clkctrl_offs
= OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET
,
194 .context_offs
= OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET
,
201 * instance(s): mpu_private
203 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class
= {
208 static struct omap_hwmod omap44xx_mpu_private_hwmod
= {
209 .name
= "mpu_private",
210 .class = &omap44xx_mpu_bus_hwmod_class
,
211 .clkdm_name
= "mpuss_clkdm",
214 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
221 * instance(s): ocp_wp_noc
223 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class
= {
224 .name
= "ocp_wp_noc",
228 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod
= {
229 .name
= "ocp_wp_noc",
230 .class = &omap44xx_ocp_wp_noc_hwmod_class
,
231 .clkdm_name
= "l3_instr_clkdm",
234 .clkctrl_offs
= OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET
,
235 .context_offs
= OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET
,
236 .modulemode
= MODULEMODE_HWCTRL
,
242 * Modules omap_hwmod structures
244 * The following IPs are excluded for the moment because:
245 * - They do not need an explicit SW control using omap_hwmod API.
246 * - They still need to be validated with the driver
247 * properly adapted to omap_hwmod / omap_device
254 * audio engine sub system
257 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc
= {
260 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
261 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
262 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
|
263 MSTANDBY_SMART_WKUP
),
264 .sysc_fields
= &omap_hwmod_sysc_type2
,
267 static struct omap_hwmod_class omap44xx_aess_hwmod_class
= {
269 .sysc
= &omap44xx_aess_sysc
,
270 .enable_preprogram
= omap_hwmod_aess_preprogram
,
274 static struct omap_hwmod omap44xx_aess_hwmod
= {
276 .class = &omap44xx_aess_hwmod_class
,
277 .clkdm_name
= "abe_clkdm",
278 .main_clk
= "aess_fclk",
281 .clkctrl_offs
= OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET
,
282 .context_offs
= OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
283 .lostcontext_mask
= OMAP4430_LOSTCONTEXT_DFF_MASK
,
284 .modulemode
= MODULEMODE_SWCTRL
,
291 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
295 static struct omap_hwmod_class omap44xx_c2c_hwmod_class
= {
300 static struct omap_hwmod omap44xx_c2c_hwmod
= {
302 .class = &omap44xx_c2c_hwmod_class
,
303 .clkdm_name
= "d2d_clkdm",
306 .clkctrl_offs
= OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET
,
307 .context_offs
= OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET
,
314 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
317 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc
= {
320 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
321 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
322 .sysc_fields
= &omap_hwmod_sysc_type1
,
325 static struct omap_hwmod_class omap44xx_counter_hwmod_class
= {
327 .sysc
= &omap44xx_counter_sysc
,
331 static struct omap_hwmod omap44xx_counter_32k_hwmod
= {
332 .name
= "counter_32k",
333 .class = &omap44xx_counter_hwmod_class
,
334 .clkdm_name
= "l4_wkup_clkdm",
335 .flags
= HWMOD_SWSUP_SIDLE
,
336 .main_clk
= "sys_32k_ck",
339 .clkctrl_offs
= OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET
,
340 .context_offs
= OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET
,
346 * 'ctrl_module' class
347 * attila core control module + core pad control module + wkup pad control
348 * module + attila wkup control module
351 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc
= {
354 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
355 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
357 .sysc_fields
= &omap_hwmod_sysc_type2
,
360 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class
= {
361 .name
= "ctrl_module",
362 .sysc
= &omap44xx_ctrl_module_sysc
,
365 /* ctrl_module_core */
366 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod
= {
367 .name
= "ctrl_module_core",
368 .class = &omap44xx_ctrl_module_hwmod_class
,
369 .clkdm_name
= "l4_cfg_clkdm",
372 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
377 /* ctrl_module_pad_core */
378 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod
= {
379 .name
= "ctrl_module_pad_core",
380 .class = &omap44xx_ctrl_module_hwmod_class
,
381 .clkdm_name
= "l4_cfg_clkdm",
384 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
389 /* ctrl_module_wkup */
390 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod
= {
391 .name
= "ctrl_module_wkup",
392 .class = &omap44xx_ctrl_module_hwmod_class
,
393 .clkdm_name
= "l4_wkup_clkdm",
396 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
401 /* ctrl_module_pad_wkup */
402 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod
= {
403 .name
= "ctrl_module_pad_wkup",
404 .class = &omap44xx_ctrl_module_hwmod_class
,
405 .clkdm_name
= "l4_wkup_clkdm",
408 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
415 * debug and emulation sub system
418 static struct omap_hwmod_class omap44xx_debugss_hwmod_class
= {
423 static struct omap_hwmod omap44xx_debugss_hwmod
= {
425 .class = &omap44xx_debugss_hwmod_class
,
426 .clkdm_name
= "emu_sys_clkdm",
427 .main_clk
= "trace_clk_div_ck",
430 .clkctrl_offs
= OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET
,
431 .context_offs
= OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET
,
438 * dma controller for data exchange between memory to memory (i.e. internal or
439 * external memory) and gp peripherals to memory or memory to gp peripherals
442 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc
= {
446 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
447 SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
448 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
449 SYSS_HAS_RESET_STATUS
),
450 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
451 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
452 .sysc_fields
= &omap_hwmod_sysc_type1
,
455 static struct omap_hwmod_class omap44xx_dma_hwmod_class
= {
457 .sysc
= &omap44xx_dma_sysc
,
461 static struct omap_dma_dev_attr dma_dev_attr
= {
462 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
463 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
468 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs
[] = {
469 { .name
= "0", .irq
= 12 + OMAP44XX_IRQ_GIC_START
},
470 { .name
= "1", .irq
= 13 + OMAP44XX_IRQ_GIC_START
},
471 { .name
= "2", .irq
= 14 + OMAP44XX_IRQ_GIC_START
},
472 { .name
= "3", .irq
= 15 + OMAP44XX_IRQ_GIC_START
},
476 static struct omap_hwmod omap44xx_dma_system_hwmod
= {
477 .name
= "dma_system",
478 .class = &omap44xx_dma_hwmod_class
,
479 .clkdm_name
= "l3_dma_clkdm",
480 .mpu_irqs
= omap44xx_dma_system_irqs
,
481 .xlate_irq
= omap4_xlate_irq
,
482 .main_clk
= "l3_div_ck",
485 .clkctrl_offs
= OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET
,
486 .context_offs
= OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET
,
489 .dev_attr
= &dma_dev_attr
,
494 * digital microphone controller
497 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc
= {
500 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
501 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
502 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
504 .sysc_fields
= &omap_hwmod_sysc_type2
,
507 static struct omap_hwmod_class omap44xx_dmic_hwmod_class
= {
509 .sysc
= &omap44xx_dmic_sysc
,
513 static struct omap_hwmod omap44xx_dmic_hwmod
= {
515 .class = &omap44xx_dmic_hwmod_class
,
516 .clkdm_name
= "abe_clkdm",
517 .main_clk
= "func_dmic_abe_gfclk",
520 .clkctrl_offs
= OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET
,
521 .context_offs
= OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET
,
522 .modulemode
= MODULEMODE_SWCTRL
,
532 static struct omap_hwmod_class omap44xx_dsp_hwmod_class
= {
537 static struct omap_hwmod_rst_info omap44xx_dsp_resets
[] = {
538 { .name
= "dsp", .rst_shift
= 0 },
541 static struct omap_hwmod omap44xx_dsp_hwmod
= {
543 .class = &omap44xx_dsp_hwmod_class
,
544 .clkdm_name
= "tesla_clkdm",
545 .rst_lines
= omap44xx_dsp_resets
,
546 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_dsp_resets
),
547 .main_clk
= "dpll_iva_m4x2_ck",
550 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
551 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
552 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
553 .modulemode
= MODULEMODE_HWCTRL
,
563 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc
= {
566 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
569 static struct omap_hwmod_class omap44xx_dss_hwmod_class
= {
571 .sysc
= &omap44xx_dss_sysc
,
572 .reset
= omap_dss_reset
,
576 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
577 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
578 { .role
= "tv_clk", .clk
= "dss_tv_clk" },
579 { .role
= "hdmi_clk", .clk
= "dss_48mhz_clk" },
582 static struct omap_hwmod omap44xx_dss_hwmod
= {
584 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
585 .class = &omap44xx_dss_hwmod_class
,
586 .clkdm_name
= "l3_dss_clkdm",
587 .main_clk
= "dss_dss_clk",
590 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
591 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
592 .modulemode
= MODULEMODE_SWCTRL
,
595 .opt_clks
= dss_opt_clks
,
596 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
604 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc
= {
608 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
609 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_MIDLEMODE
|
610 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
611 SYSS_HAS_RESET_STATUS
),
612 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
613 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
614 .sysc_fields
= &omap_hwmod_sysc_type1
,
617 static struct omap_hwmod_class omap44xx_dispc_hwmod_class
= {
619 .sysc
= &omap44xx_dispc_sysc
,
623 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs
[] = {
624 { .irq
= 25 + OMAP44XX_IRQ_GIC_START
},
628 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs
[] = {
629 { .dma_req
= 5 + OMAP44XX_DMA_REQ_START
},
633 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr
= {
635 .has_framedonetv_irq
= 1
638 static struct omap_hwmod omap44xx_dss_dispc_hwmod
= {
640 .class = &omap44xx_dispc_hwmod_class
,
641 .clkdm_name
= "l3_dss_clkdm",
642 .mpu_irqs
= omap44xx_dss_dispc_irqs
,
643 .xlate_irq
= omap4_xlate_irq
,
644 .sdma_reqs
= omap44xx_dss_dispc_sdma_reqs
,
645 .main_clk
= "dss_dss_clk",
648 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
649 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
652 .dev_attr
= &omap44xx_dss_dispc_dev_attr
,
653 .parent_hwmod
= &omap44xx_dss_hwmod
,
658 * display serial interface controller
661 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc
= {
665 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
666 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
667 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
668 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
669 .sysc_fields
= &omap_hwmod_sysc_type1
,
672 static struct omap_hwmod_class omap44xx_dsi_hwmod_class
= {
674 .sysc
= &omap44xx_dsi_sysc
,
678 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs
[] = {
679 { .irq
= 53 + OMAP44XX_IRQ_GIC_START
},
683 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs
[] = {
684 { .dma_req
= 74 + OMAP44XX_DMA_REQ_START
},
688 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
689 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
692 static struct omap_hwmod omap44xx_dss_dsi1_hwmod
= {
694 .class = &omap44xx_dsi_hwmod_class
,
695 .clkdm_name
= "l3_dss_clkdm",
696 .mpu_irqs
= omap44xx_dss_dsi1_irqs
,
697 .xlate_irq
= omap4_xlate_irq
,
698 .sdma_reqs
= omap44xx_dss_dsi1_sdma_reqs
,
699 .main_clk
= "dss_dss_clk",
702 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
703 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
706 .opt_clks
= dss_dsi1_opt_clks
,
707 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
708 .parent_hwmod
= &omap44xx_dss_hwmod
,
712 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs
[] = {
713 { .irq
= 84 + OMAP44XX_IRQ_GIC_START
},
717 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs
[] = {
718 { .dma_req
= 83 + OMAP44XX_DMA_REQ_START
},
722 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks
[] = {
723 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
726 static struct omap_hwmod omap44xx_dss_dsi2_hwmod
= {
728 .class = &omap44xx_dsi_hwmod_class
,
729 .clkdm_name
= "l3_dss_clkdm",
730 .mpu_irqs
= omap44xx_dss_dsi2_irqs
,
731 .xlate_irq
= omap4_xlate_irq
,
732 .sdma_reqs
= omap44xx_dss_dsi2_sdma_reqs
,
733 .main_clk
= "dss_dss_clk",
736 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
737 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
740 .opt_clks
= dss_dsi2_opt_clks
,
741 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi2_opt_clks
),
742 .parent_hwmod
= &omap44xx_dss_hwmod
,
750 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc
= {
753 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
755 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
757 .sysc_fields
= &omap_hwmod_sysc_type2
,
760 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class
= {
762 .sysc
= &omap44xx_hdmi_sysc
,
766 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs
[] = {
767 { .irq
= 101 + OMAP44XX_IRQ_GIC_START
},
771 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs
[] = {
772 { .dma_req
= 75 + OMAP44XX_DMA_REQ_START
},
776 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks
[] = {
777 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
780 static struct omap_hwmod omap44xx_dss_hdmi_hwmod
= {
782 .class = &omap44xx_hdmi_hwmod_class
,
783 .clkdm_name
= "l3_dss_clkdm",
785 * HDMI audio requires to use no-idle mode. Hence,
786 * set idle mode by software.
788 .flags
= HWMOD_SWSUP_SIDLE
,
789 .mpu_irqs
= omap44xx_dss_hdmi_irqs
,
790 .xlate_irq
= omap4_xlate_irq
,
791 .sdma_reqs
= omap44xx_dss_hdmi_sdma_reqs
,
792 .main_clk
= "dss_48mhz_clk",
795 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
796 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
799 .opt_clks
= dss_hdmi_opt_clks
,
800 .opt_clks_cnt
= ARRAY_SIZE(dss_hdmi_opt_clks
),
801 .parent_hwmod
= &omap44xx_dss_hwmod
,
806 * remote frame buffer interface
809 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc
= {
813 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
814 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
815 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
816 .sysc_fields
= &omap_hwmod_sysc_type1
,
819 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class
= {
821 .sysc
= &omap44xx_rfbi_sysc
,
825 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs
[] = {
826 { .dma_req
= 13 + OMAP44XX_DMA_REQ_START
},
830 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
831 { .role
= "ick", .clk
= "l3_div_ck" },
834 static struct omap_hwmod omap44xx_dss_rfbi_hwmod
= {
836 .class = &omap44xx_rfbi_hwmod_class
,
837 .clkdm_name
= "l3_dss_clkdm",
838 .sdma_reqs
= omap44xx_dss_rfbi_sdma_reqs
,
839 .main_clk
= "dss_dss_clk",
842 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
843 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
846 .opt_clks
= dss_rfbi_opt_clks
,
847 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
848 .parent_hwmod
= &omap44xx_dss_hwmod
,
856 static struct omap_hwmod_class omap44xx_venc_hwmod_class
= {
861 static struct omap_hwmod omap44xx_dss_venc_hwmod
= {
863 .class = &omap44xx_venc_hwmod_class
,
864 .clkdm_name
= "l3_dss_clkdm",
865 .main_clk
= "dss_tv_clk",
868 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
869 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
872 .parent_hwmod
= &omap44xx_dss_hwmod
,
877 * bch error location module
880 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc
= {
884 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
885 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
886 SYSS_HAS_RESET_STATUS
),
887 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
888 .sysc_fields
= &omap_hwmod_sysc_type1
,
891 static struct omap_hwmod_class omap44xx_elm_hwmod_class
= {
893 .sysc
= &omap44xx_elm_sysc
,
897 static struct omap_hwmod omap44xx_elm_hwmod
= {
899 .class = &omap44xx_elm_hwmod_class
,
900 .clkdm_name
= "l4_per_clkdm",
903 .clkctrl_offs
= OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET
,
904 .context_offs
= OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET
,
911 * external memory interface no1
914 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc
= {
918 static struct omap_hwmod_class omap44xx_emif_hwmod_class
= {
920 .sysc
= &omap44xx_emif_sysc
,
924 static struct omap_hwmod omap44xx_emif1_hwmod
= {
926 .class = &omap44xx_emif_hwmod_class
,
927 .clkdm_name
= "l3_emif_clkdm",
928 .flags
= HWMOD_INIT_NO_IDLE
,
929 .main_clk
= "ddrphy_ck",
932 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET
,
933 .context_offs
= OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET
,
934 .modulemode
= MODULEMODE_HWCTRL
,
940 static struct omap_hwmod omap44xx_emif2_hwmod
= {
942 .class = &omap44xx_emif_hwmod_class
,
943 .clkdm_name
= "l3_emif_clkdm",
944 .flags
= HWMOD_INIT_NO_IDLE
,
945 .main_clk
= "ddrphy_ck",
948 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET
,
949 .context_offs
= OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET
,
950 .modulemode
= MODULEMODE_HWCTRL
,
957 * face detection hw accelerator module
960 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc
= {
964 * FDIF needs 100 OCP clk cycles delay after a softreset before
965 * accessing sysconfig again.
966 * The lowest frequency at the moment for L3 bus is 100 MHz, so
967 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
969 * TODO: Indicate errata when available.
972 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
973 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
974 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
975 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
976 .sysc_fields
= &omap_hwmod_sysc_type2
,
979 static struct omap_hwmod_class omap44xx_fdif_hwmod_class
= {
981 .sysc
= &omap44xx_fdif_sysc
,
985 static struct omap_hwmod omap44xx_fdif_hwmod
= {
987 .class = &omap44xx_fdif_hwmod_class
,
988 .clkdm_name
= "iss_clkdm",
989 .main_clk
= "fdif_fck",
992 .clkctrl_offs
= OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET
,
993 .context_offs
= OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET
,
994 .modulemode
= MODULEMODE_SWCTRL
,
1001 * general purpose io module
1004 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc
= {
1006 .sysc_offs
= 0x0010,
1007 .syss_offs
= 0x0114,
1008 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
1009 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1010 SYSS_HAS_RESET_STATUS
),
1011 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1013 .sysc_fields
= &omap_hwmod_sysc_type1
,
1016 static struct omap_hwmod_class omap44xx_gpio_hwmod_class
= {
1018 .sysc
= &omap44xx_gpio_sysc
,
1023 static struct omap_gpio_dev_attr gpio_dev_attr
= {
1029 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
1030 { .role
= "dbclk", .clk
= "gpio1_dbclk" },
1033 static struct omap_hwmod omap44xx_gpio1_hwmod
= {
1035 .class = &omap44xx_gpio_hwmod_class
,
1036 .clkdm_name
= "l4_wkup_clkdm",
1037 .main_clk
= "l4_wkup_clk_mux_ck",
1040 .clkctrl_offs
= OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET
,
1041 .context_offs
= OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET
,
1042 .modulemode
= MODULEMODE_HWCTRL
,
1045 .opt_clks
= gpio1_opt_clks
,
1046 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
1047 .dev_attr
= &gpio_dev_attr
,
1051 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
1052 { .role
= "dbclk", .clk
= "gpio2_dbclk" },
1055 static struct omap_hwmod omap44xx_gpio2_hwmod
= {
1057 .class = &omap44xx_gpio_hwmod_class
,
1058 .clkdm_name
= "l4_per_clkdm",
1059 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1060 .main_clk
= "l4_div_ck",
1063 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET
,
1064 .context_offs
= OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET
,
1065 .modulemode
= MODULEMODE_HWCTRL
,
1068 .opt_clks
= gpio2_opt_clks
,
1069 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
1070 .dev_attr
= &gpio_dev_attr
,
1074 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
1075 { .role
= "dbclk", .clk
= "gpio3_dbclk" },
1078 static struct omap_hwmod omap44xx_gpio3_hwmod
= {
1080 .class = &omap44xx_gpio_hwmod_class
,
1081 .clkdm_name
= "l4_per_clkdm",
1082 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1083 .main_clk
= "l4_div_ck",
1086 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET
,
1087 .context_offs
= OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET
,
1088 .modulemode
= MODULEMODE_HWCTRL
,
1091 .opt_clks
= gpio3_opt_clks
,
1092 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
1093 .dev_attr
= &gpio_dev_attr
,
1097 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
1098 { .role
= "dbclk", .clk
= "gpio4_dbclk" },
1101 static struct omap_hwmod omap44xx_gpio4_hwmod
= {
1103 .class = &omap44xx_gpio_hwmod_class
,
1104 .clkdm_name
= "l4_per_clkdm",
1105 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1106 .main_clk
= "l4_div_ck",
1109 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET
,
1110 .context_offs
= OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET
,
1111 .modulemode
= MODULEMODE_HWCTRL
,
1114 .opt_clks
= gpio4_opt_clks
,
1115 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1116 .dev_attr
= &gpio_dev_attr
,
1120 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1121 { .role
= "dbclk", .clk
= "gpio5_dbclk" },
1124 static struct omap_hwmod omap44xx_gpio5_hwmod
= {
1126 .class = &omap44xx_gpio_hwmod_class
,
1127 .clkdm_name
= "l4_per_clkdm",
1128 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1129 .main_clk
= "l4_div_ck",
1132 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET
,
1133 .context_offs
= OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET
,
1134 .modulemode
= MODULEMODE_HWCTRL
,
1137 .opt_clks
= gpio5_opt_clks
,
1138 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1139 .dev_attr
= &gpio_dev_attr
,
1143 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
1144 { .role
= "dbclk", .clk
= "gpio6_dbclk" },
1147 static struct omap_hwmod omap44xx_gpio6_hwmod
= {
1149 .class = &omap44xx_gpio_hwmod_class
,
1150 .clkdm_name
= "l4_per_clkdm",
1151 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1152 .main_clk
= "l4_div_ck",
1155 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET
,
1156 .context_offs
= OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET
,
1157 .modulemode
= MODULEMODE_HWCTRL
,
1160 .opt_clks
= gpio6_opt_clks
,
1161 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1162 .dev_attr
= &gpio_dev_attr
,
1167 * general purpose memory controller
1170 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc
= {
1172 .sysc_offs
= 0x0010,
1173 .syss_offs
= 0x0014,
1174 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1175 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1176 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1177 .sysc_fields
= &omap_hwmod_sysc_type1
,
1180 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class
= {
1182 .sysc
= &omap44xx_gpmc_sysc
,
1186 static struct omap_hwmod omap44xx_gpmc_hwmod
= {
1188 .class = &omap44xx_gpmc_hwmod_class
,
1189 .clkdm_name
= "l3_2_clkdm",
1190 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1191 .flags
= DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
1194 .clkctrl_offs
= OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET
,
1195 .context_offs
= OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET
,
1196 .modulemode
= MODULEMODE_HWCTRL
,
1203 * 2d/3d graphics accelerator
1206 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc
= {
1207 .rev_offs
= 0x1fc00,
1208 .sysc_offs
= 0x1fc10,
1209 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
1210 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1211 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1212 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1213 .sysc_fields
= &omap_hwmod_sysc_type2
,
1216 static struct omap_hwmod_class omap44xx_gpu_hwmod_class
= {
1218 .sysc
= &omap44xx_gpu_sysc
,
1222 static struct omap_hwmod omap44xx_gpu_hwmod
= {
1224 .class = &omap44xx_gpu_hwmod_class
,
1225 .clkdm_name
= "l3_gfx_clkdm",
1226 .main_clk
= "sgx_clk_mux",
1229 .clkctrl_offs
= OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET
,
1230 .context_offs
= OMAP4_RM_GFX_GFX_CONTEXT_OFFSET
,
1231 .modulemode
= MODULEMODE_SWCTRL
,
1238 * hdq / 1-wire serial interface controller
1241 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc
= {
1243 .sysc_offs
= 0x0014,
1244 .syss_offs
= 0x0018,
1245 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SOFTRESET
|
1246 SYSS_HAS_RESET_STATUS
),
1247 .sysc_fields
= &omap_hwmod_sysc_type1
,
1250 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class
= {
1252 .sysc
= &omap44xx_hdq1w_sysc
,
1256 static struct omap_hwmod omap44xx_hdq1w_hwmod
= {
1258 .class = &omap44xx_hdq1w_hwmod_class
,
1259 .clkdm_name
= "l4_per_clkdm",
1260 .flags
= HWMOD_INIT_NO_RESET
, /* XXX temporary */
1261 .main_clk
= "func_12m_fclk",
1264 .clkctrl_offs
= OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET
,
1265 .context_offs
= OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET
,
1266 .modulemode
= MODULEMODE_SWCTRL
,
1273 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1277 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc
= {
1279 .sysc_offs
= 0x0010,
1280 .syss_offs
= 0x0014,
1281 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_EMUFREE
|
1282 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
1283 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1284 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1285 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1286 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1287 .sysc_fields
= &omap_hwmod_sysc_type1
,
1290 static struct omap_hwmod_class omap44xx_hsi_hwmod_class
= {
1292 .sysc
= &omap44xx_hsi_sysc
,
1296 static struct omap_hwmod omap44xx_hsi_hwmod
= {
1298 .class = &omap44xx_hsi_hwmod_class
,
1299 .clkdm_name
= "l3_init_clkdm",
1300 .main_clk
= "hsi_fck",
1303 .clkctrl_offs
= OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET
,
1304 .context_offs
= OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET
,
1305 .modulemode
= MODULEMODE_HWCTRL
,
1312 * multimaster high-speed i2c controller
1315 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc
= {
1316 .sysc_offs
= 0x0010,
1317 .syss_offs
= 0x0090,
1318 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1319 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1320 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1321 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1323 .clockact
= CLOCKACT_TEST_ICLK
,
1324 .sysc_fields
= &omap_hwmod_sysc_type1
,
1327 static struct omap_hwmod_class omap44xx_i2c_hwmod_class
= {
1329 .sysc
= &omap44xx_i2c_sysc
,
1330 .rev
= OMAP_I2C_IP_VERSION_2
,
1331 .reset
= &omap_i2c_reset
,
1334 static struct omap_i2c_dev_attr i2c_dev_attr
= {
1335 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
1339 static struct omap_hwmod omap44xx_i2c1_hwmod
= {
1341 .class = &omap44xx_i2c_hwmod_class
,
1342 .clkdm_name
= "l4_per_clkdm",
1343 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1344 .main_clk
= "func_96m_fclk",
1347 .clkctrl_offs
= OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET
,
1348 .context_offs
= OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET
,
1349 .modulemode
= MODULEMODE_SWCTRL
,
1352 .dev_attr
= &i2c_dev_attr
,
1356 static struct omap_hwmod omap44xx_i2c2_hwmod
= {
1358 .class = &omap44xx_i2c_hwmod_class
,
1359 .clkdm_name
= "l4_per_clkdm",
1360 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1361 .main_clk
= "func_96m_fclk",
1364 .clkctrl_offs
= OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET
,
1365 .context_offs
= OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET
,
1366 .modulemode
= MODULEMODE_SWCTRL
,
1369 .dev_attr
= &i2c_dev_attr
,
1373 static struct omap_hwmod omap44xx_i2c3_hwmod
= {
1375 .class = &omap44xx_i2c_hwmod_class
,
1376 .clkdm_name
= "l4_per_clkdm",
1377 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1378 .main_clk
= "func_96m_fclk",
1381 .clkctrl_offs
= OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET
,
1382 .context_offs
= OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET
,
1383 .modulemode
= MODULEMODE_SWCTRL
,
1386 .dev_attr
= &i2c_dev_attr
,
1390 static struct omap_hwmod omap44xx_i2c4_hwmod
= {
1392 .class = &omap44xx_i2c_hwmod_class
,
1393 .clkdm_name
= "l4_per_clkdm",
1394 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1395 .main_clk
= "func_96m_fclk",
1398 .clkctrl_offs
= OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET
,
1399 .context_offs
= OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET
,
1400 .modulemode
= MODULEMODE_SWCTRL
,
1403 .dev_attr
= &i2c_dev_attr
,
1408 * imaging processor unit
1411 static struct omap_hwmod_class omap44xx_ipu_hwmod_class
= {
1416 static struct omap_hwmod_rst_info omap44xx_ipu_resets
[] = {
1417 { .name
= "cpu0", .rst_shift
= 0 },
1418 { .name
= "cpu1", .rst_shift
= 1 },
1421 static struct omap_hwmod omap44xx_ipu_hwmod
= {
1423 .class = &omap44xx_ipu_hwmod_class
,
1424 .clkdm_name
= "ducati_clkdm",
1425 .rst_lines
= omap44xx_ipu_resets
,
1426 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_ipu_resets
),
1427 .main_clk
= "ducati_clk_mux_ck",
1430 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
1431 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
1432 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
1433 .modulemode
= MODULEMODE_HWCTRL
,
1440 * external images sensor pixel data processor
1443 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc
= {
1445 .sysc_offs
= 0x0010,
1447 * ISS needs 100 OCP clk cycles delay after a softreset before
1448 * accessing sysconfig again.
1449 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1450 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1452 * TODO: Indicate errata when available.
1455 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1456 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1457 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1458 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1459 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1460 .sysc_fields
= &omap_hwmod_sysc_type2
,
1463 static struct omap_hwmod_class omap44xx_iss_hwmod_class
= {
1465 .sysc
= &omap44xx_iss_sysc
,
1469 static struct omap_hwmod_opt_clk iss_opt_clks
[] = {
1470 { .role
= "ctrlclk", .clk
= "iss_ctrlclk" },
1473 static struct omap_hwmod omap44xx_iss_hwmod
= {
1475 .class = &omap44xx_iss_hwmod_class
,
1476 .clkdm_name
= "iss_clkdm",
1477 .main_clk
= "ducati_clk_mux_ck",
1480 .clkctrl_offs
= OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET
,
1481 .context_offs
= OMAP4_RM_CAM_ISS_CONTEXT_OFFSET
,
1482 .modulemode
= MODULEMODE_SWCTRL
,
1485 .opt_clks
= iss_opt_clks
,
1486 .opt_clks_cnt
= ARRAY_SIZE(iss_opt_clks
),
1491 * multi-standard video encoder/decoder hardware accelerator
1494 static struct omap_hwmod_class omap44xx_iva_hwmod_class
= {
1499 static struct omap_hwmod_rst_info omap44xx_iva_resets
[] = {
1500 { .name
= "seq0", .rst_shift
= 0 },
1501 { .name
= "seq1", .rst_shift
= 1 },
1502 { .name
= "logic", .rst_shift
= 2 },
1505 static struct omap_hwmod omap44xx_iva_hwmod
= {
1507 .class = &omap44xx_iva_hwmod_class
,
1508 .clkdm_name
= "ivahd_clkdm",
1509 .rst_lines
= omap44xx_iva_resets
,
1510 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_iva_resets
),
1511 .main_clk
= "dpll_iva_m5x2_ck",
1514 .clkctrl_offs
= OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET
,
1515 .rstctrl_offs
= OMAP4_RM_IVAHD_RSTCTRL_OFFSET
,
1516 .context_offs
= OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET
,
1517 .modulemode
= MODULEMODE_HWCTRL
,
1524 * keyboard controller
1527 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc
= {
1529 .sysc_offs
= 0x0010,
1530 .syss_offs
= 0x0014,
1531 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1532 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
1533 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1534 SYSS_HAS_RESET_STATUS
),
1535 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1536 .sysc_fields
= &omap_hwmod_sysc_type1
,
1539 static struct omap_hwmod_class omap44xx_kbd_hwmod_class
= {
1541 .sysc
= &omap44xx_kbd_sysc
,
1545 static struct omap_hwmod omap44xx_kbd_hwmod
= {
1547 .class = &omap44xx_kbd_hwmod_class
,
1548 .clkdm_name
= "l4_wkup_clkdm",
1549 .main_clk
= "sys_32k_ck",
1552 .clkctrl_offs
= OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET
,
1553 .context_offs
= OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET
,
1554 .modulemode
= MODULEMODE_SWCTRL
,
1561 * mailbox module allowing communication between the on-chip processors using a
1562 * queued mailbox-interrupt mechanism.
1565 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc
= {
1567 .sysc_offs
= 0x0010,
1568 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1569 SYSC_HAS_SOFTRESET
),
1570 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1571 .sysc_fields
= &omap_hwmod_sysc_type2
,
1574 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class
= {
1576 .sysc
= &omap44xx_mailbox_sysc
,
1580 static struct omap_hwmod omap44xx_mailbox_hwmod
= {
1582 .class = &omap44xx_mailbox_hwmod_class
,
1583 .clkdm_name
= "l4_cfg_clkdm",
1586 .clkctrl_offs
= OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET
,
1587 .context_offs
= OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET
,
1594 * multi-channel audio serial port controller
1597 /* The IP is not compliant to type1 / type2 scheme */
1598 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp
= {
1602 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc
= {
1603 .sysc_offs
= 0x0004,
1604 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1605 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1607 .sysc_fields
= &omap_hwmod_sysc_type_mcasp
,
1610 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class
= {
1612 .sysc
= &omap44xx_mcasp_sysc
,
1616 static struct omap_hwmod omap44xx_mcasp_hwmod
= {
1618 .class = &omap44xx_mcasp_hwmod_class
,
1619 .clkdm_name
= "abe_clkdm",
1620 .main_clk
= "func_mcasp_abe_gfclk",
1623 .clkctrl_offs
= OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET
,
1624 .context_offs
= OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET
,
1625 .modulemode
= MODULEMODE_SWCTRL
,
1632 * multi channel buffered serial port controller
1635 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc
= {
1636 .sysc_offs
= 0x008c,
1637 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1638 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1639 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1640 .sysc_fields
= &omap_hwmod_sysc_type1
,
1643 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class
= {
1645 .sysc
= &omap44xx_mcbsp_sysc
,
1646 .rev
= MCBSP_CONFIG_TYPE4
,
1650 static struct omap_hwmod_opt_clk mcbsp1_opt_clks
[] = {
1651 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1652 { .role
= "prcm_fck", .clk
= "mcbsp1_sync_mux_ck" },
1655 static struct omap_hwmod omap44xx_mcbsp1_hwmod
= {
1657 .class = &omap44xx_mcbsp_hwmod_class
,
1658 .clkdm_name
= "abe_clkdm",
1659 .main_clk
= "func_mcbsp1_gfclk",
1662 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET
,
1663 .context_offs
= OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET
,
1664 .modulemode
= MODULEMODE_SWCTRL
,
1667 .opt_clks
= mcbsp1_opt_clks
,
1668 .opt_clks_cnt
= ARRAY_SIZE(mcbsp1_opt_clks
),
1672 static struct omap_hwmod_opt_clk mcbsp2_opt_clks
[] = {
1673 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1674 { .role
= "prcm_fck", .clk
= "mcbsp2_sync_mux_ck" },
1677 static struct omap_hwmod omap44xx_mcbsp2_hwmod
= {
1679 .class = &omap44xx_mcbsp_hwmod_class
,
1680 .clkdm_name
= "abe_clkdm",
1681 .main_clk
= "func_mcbsp2_gfclk",
1684 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET
,
1685 .context_offs
= OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET
,
1686 .modulemode
= MODULEMODE_SWCTRL
,
1689 .opt_clks
= mcbsp2_opt_clks
,
1690 .opt_clks_cnt
= ARRAY_SIZE(mcbsp2_opt_clks
),
1694 static struct omap_hwmod_opt_clk mcbsp3_opt_clks
[] = {
1695 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1696 { .role
= "prcm_fck", .clk
= "mcbsp3_sync_mux_ck" },
1699 static struct omap_hwmod omap44xx_mcbsp3_hwmod
= {
1701 .class = &omap44xx_mcbsp_hwmod_class
,
1702 .clkdm_name
= "abe_clkdm",
1703 .main_clk
= "func_mcbsp3_gfclk",
1706 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET
,
1707 .context_offs
= OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET
,
1708 .modulemode
= MODULEMODE_SWCTRL
,
1711 .opt_clks
= mcbsp3_opt_clks
,
1712 .opt_clks_cnt
= ARRAY_SIZE(mcbsp3_opt_clks
),
1716 static struct omap_hwmod_opt_clk mcbsp4_opt_clks
[] = {
1717 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1718 { .role
= "prcm_fck", .clk
= "mcbsp4_sync_mux_ck" },
1721 static struct omap_hwmod omap44xx_mcbsp4_hwmod
= {
1723 .class = &omap44xx_mcbsp_hwmod_class
,
1724 .clkdm_name
= "l4_per_clkdm",
1725 .main_clk
= "per_mcbsp4_gfclk",
1728 .clkctrl_offs
= OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET
,
1729 .context_offs
= OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET
,
1730 .modulemode
= MODULEMODE_SWCTRL
,
1733 .opt_clks
= mcbsp4_opt_clks
,
1734 .opt_clks_cnt
= ARRAY_SIZE(mcbsp4_opt_clks
),
1739 * multi channel pdm controller (proprietary interface with phoenix power
1743 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc
= {
1745 .sysc_offs
= 0x0010,
1746 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1747 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1748 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1750 .sysc_fields
= &omap_hwmod_sysc_type2
,
1753 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class
= {
1755 .sysc
= &omap44xx_mcpdm_sysc
,
1759 static struct omap_hwmod omap44xx_mcpdm_hwmod
= {
1761 .class = &omap44xx_mcpdm_hwmod_class
,
1762 .clkdm_name
= "abe_clkdm",
1764 * It's suspected that the McPDM requires an off-chip main
1765 * functional clock, controlled via I2C. This IP block is
1766 * currently reset very early during boot, before I2C is
1767 * available, so it doesn't seem that we have any choice in
1768 * the kernel other than to avoid resetting it.
1770 * Also, McPDM needs to be configured to NO_IDLE mode when it
1771 * is in used otherwise vital clocks will be gated which
1772 * results 'slow motion' audio playback.
1774 .flags
= HWMOD_EXT_OPT_MAIN_CLK
| HWMOD_SWSUP_SIDLE
,
1775 .main_clk
= "pad_clks_ck",
1778 .clkctrl_offs
= OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET
,
1779 .context_offs
= OMAP4_RM_ABE_PDM_CONTEXT_OFFSET
,
1780 .modulemode
= MODULEMODE_SWCTRL
,
1787 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1791 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc
= {
1793 .sysc_offs
= 0x0010,
1794 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1795 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1796 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1798 .sysc_fields
= &omap_hwmod_sysc_type2
,
1801 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class
= {
1803 .sysc
= &omap44xx_mcspi_sysc
,
1804 .rev
= OMAP4_MCSPI_REV
,
1808 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs
[] = {
1809 { .name
= "tx0", .dma_req
= 34 + OMAP44XX_DMA_REQ_START
},
1810 { .name
= "rx0", .dma_req
= 35 + OMAP44XX_DMA_REQ_START
},
1811 { .name
= "tx1", .dma_req
= 36 + OMAP44XX_DMA_REQ_START
},
1812 { .name
= "rx1", .dma_req
= 37 + OMAP44XX_DMA_REQ_START
},
1813 { .name
= "tx2", .dma_req
= 38 + OMAP44XX_DMA_REQ_START
},
1814 { .name
= "rx2", .dma_req
= 39 + OMAP44XX_DMA_REQ_START
},
1815 { .name
= "tx3", .dma_req
= 40 + OMAP44XX_DMA_REQ_START
},
1816 { .name
= "rx3", .dma_req
= 41 + OMAP44XX_DMA_REQ_START
},
1820 /* mcspi1 dev_attr */
1821 static struct omap2_mcspi_dev_attr mcspi1_dev_attr
= {
1822 .num_chipselect
= 4,
1825 static struct omap_hwmod omap44xx_mcspi1_hwmod
= {
1827 .class = &omap44xx_mcspi_hwmod_class
,
1828 .clkdm_name
= "l4_per_clkdm",
1829 .sdma_reqs
= omap44xx_mcspi1_sdma_reqs
,
1830 .main_clk
= "func_48m_fclk",
1833 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET
,
1834 .context_offs
= OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET
,
1835 .modulemode
= MODULEMODE_SWCTRL
,
1838 .dev_attr
= &mcspi1_dev_attr
,
1842 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs
[] = {
1843 { .name
= "tx0", .dma_req
= 42 + OMAP44XX_DMA_REQ_START
},
1844 { .name
= "rx0", .dma_req
= 43 + OMAP44XX_DMA_REQ_START
},
1845 { .name
= "tx1", .dma_req
= 44 + OMAP44XX_DMA_REQ_START
},
1846 { .name
= "rx1", .dma_req
= 45 + OMAP44XX_DMA_REQ_START
},
1850 /* mcspi2 dev_attr */
1851 static struct omap2_mcspi_dev_attr mcspi2_dev_attr
= {
1852 .num_chipselect
= 2,
1855 static struct omap_hwmod omap44xx_mcspi2_hwmod
= {
1857 .class = &omap44xx_mcspi_hwmod_class
,
1858 .clkdm_name
= "l4_per_clkdm",
1859 .sdma_reqs
= omap44xx_mcspi2_sdma_reqs
,
1860 .main_clk
= "func_48m_fclk",
1863 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET
,
1864 .context_offs
= OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET
,
1865 .modulemode
= MODULEMODE_SWCTRL
,
1868 .dev_attr
= &mcspi2_dev_attr
,
1872 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs
[] = {
1873 { .name
= "tx0", .dma_req
= 14 + OMAP44XX_DMA_REQ_START
},
1874 { .name
= "rx0", .dma_req
= 15 + OMAP44XX_DMA_REQ_START
},
1875 { .name
= "tx1", .dma_req
= 22 + OMAP44XX_DMA_REQ_START
},
1876 { .name
= "rx1", .dma_req
= 23 + OMAP44XX_DMA_REQ_START
},
1880 /* mcspi3 dev_attr */
1881 static struct omap2_mcspi_dev_attr mcspi3_dev_attr
= {
1882 .num_chipselect
= 2,
1885 static struct omap_hwmod omap44xx_mcspi3_hwmod
= {
1887 .class = &omap44xx_mcspi_hwmod_class
,
1888 .clkdm_name
= "l4_per_clkdm",
1889 .sdma_reqs
= omap44xx_mcspi3_sdma_reqs
,
1890 .main_clk
= "func_48m_fclk",
1893 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET
,
1894 .context_offs
= OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET
,
1895 .modulemode
= MODULEMODE_SWCTRL
,
1898 .dev_attr
= &mcspi3_dev_attr
,
1902 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs
[] = {
1903 { .name
= "tx0", .dma_req
= 69 + OMAP44XX_DMA_REQ_START
},
1904 { .name
= "rx0", .dma_req
= 70 + OMAP44XX_DMA_REQ_START
},
1908 /* mcspi4 dev_attr */
1909 static struct omap2_mcspi_dev_attr mcspi4_dev_attr
= {
1910 .num_chipselect
= 1,
1913 static struct omap_hwmod omap44xx_mcspi4_hwmod
= {
1915 .class = &omap44xx_mcspi_hwmod_class
,
1916 .clkdm_name
= "l4_per_clkdm",
1917 .sdma_reqs
= omap44xx_mcspi4_sdma_reqs
,
1918 .main_clk
= "func_48m_fclk",
1921 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET
,
1922 .context_offs
= OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET
,
1923 .modulemode
= MODULEMODE_SWCTRL
,
1926 .dev_attr
= &mcspi4_dev_attr
,
1931 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1934 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc
= {
1936 .sysc_offs
= 0x0010,
1937 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
1938 SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1939 SYSC_HAS_SOFTRESET
),
1940 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1941 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1942 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1943 .sysc_fields
= &omap_hwmod_sysc_type2
,
1946 static struct omap_hwmod_class omap44xx_mmc_hwmod_class
= {
1948 .sysc
= &omap44xx_mmc_sysc
,
1952 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs
[] = {
1953 { .name
= "tx", .dma_req
= 60 + OMAP44XX_DMA_REQ_START
},
1954 { .name
= "rx", .dma_req
= 61 + OMAP44XX_DMA_REQ_START
},
1959 static struct omap_hsmmc_dev_attr mmc1_dev_attr
= {
1960 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1963 static struct omap_hwmod omap44xx_mmc1_hwmod
= {
1965 .class = &omap44xx_mmc_hwmod_class
,
1966 .clkdm_name
= "l3_init_clkdm",
1967 .sdma_reqs
= omap44xx_mmc1_sdma_reqs
,
1968 .main_clk
= "hsmmc1_fclk",
1971 .clkctrl_offs
= OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET
,
1972 .context_offs
= OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET
,
1973 .modulemode
= MODULEMODE_SWCTRL
,
1976 .dev_attr
= &mmc1_dev_attr
,
1980 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs
[] = {
1981 { .name
= "tx", .dma_req
= 46 + OMAP44XX_DMA_REQ_START
},
1982 { .name
= "rx", .dma_req
= 47 + OMAP44XX_DMA_REQ_START
},
1986 static struct omap_hwmod omap44xx_mmc2_hwmod
= {
1988 .class = &omap44xx_mmc_hwmod_class
,
1989 .clkdm_name
= "l3_init_clkdm",
1990 .sdma_reqs
= omap44xx_mmc2_sdma_reqs
,
1991 .main_clk
= "hsmmc2_fclk",
1994 .clkctrl_offs
= OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET
,
1995 .context_offs
= OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET
,
1996 .modulemode
= MODULEMODE_SWCTRL
,
2002 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs
[] = {
2003 { .name
= "tx", .dma_req
= 76 + OMAP44XX_DMA_REQ_START
},
2004 { .name
= "rx", .dma_req
= 77 + OMAP44XX_DMA_REQ_START
},
2008 static struct omap_hwmod omap44xx_mmc3_hwmod
= {
2010 .class = &omap44xx_mmc_hwmod_class
,
2011 .clkdm_name
= "l4_per_clkdm",
2012 .sdma_reqs
= omap44xx_mmc3_sdma_reqs
,
2013 .main_clk
= "func_48m_fclk",
2016 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET
,
2017 .context_offs
= OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET
,
2018 .modulemode
= MODULEMODE_SWCTRL
,
2024 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs
[] = {
2025 { .name
= "tx", .dma_req
= 56 + OMAP44XX_DMA_REQ_START
},
2026 { .name
= "rx", .dma_req
= 57 + OMAP44XX_DMA_REQ_START
},
2030 static struct omap_hwmod omap44xx_mmc4_hwmod
= {
2032 .class = &omap44xx_mmc_hwmod_class
,
2033 .clkdm_name
= "l4_per_clkdm",
2034 .sdma_reqs
= omap44xx_mmc4_sdma_reqs
,
2035 .main_clk
= "func_48m_fclk",
2038 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET
,
2039 .context_offs
= OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET
,
2040 .modulemode
= MODULEMODE_SWCTRL
,
2046 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs
[] = {
2047 { .name
= "tx", .dma_req
= 58 + OMAP44XX_DMA_REQ_START
},
2048 { .name
= "rx", .dma_req
= 59 + OMAP44XX_DMA_REQ_START
},
2052 static struct omap_hwmod omap44xx_mmc5_hwmod
= {
2054 .class = &omap44xx_mmc_hwmod_class
,
2055 .clkdm_name
= "l4_per_clkdm",
2056 .sdma_reqs
= omap44xx_mmc5_sdma_reqs
,
2057 .main_clk
= "func_48m_fclk",
2060 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET
,
2061 .context_offs
= OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET
,
2062 .modulemode
= MODULEMODE_SWCTRL
,
2069 * The memory management unit performs virtual to physical address translation
2070 * for its requestors.
2073 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
2077 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2078 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2079 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2080 .sysc_fields
= &omap_hwmod_sysc_type1
,
2083 static struct omap_hwmod_class omap44xx_mmu_hwmod_class
= {
2090 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
;
2091 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets
[] = {
2092 { .name
= "mmu_cache", .rst_shift
= 2 },
2095 /* l3_main_2 -> mmu_ipu */
2096 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu
= {
2097 .master
= &omap44xx_l3_main_2_hwmod
,
2098 .slave
= &omap44xx_mmu_ipu_hwmod
,
2100 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2103 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
= {
2105 .class = &omap44xx_mmu_hwmod_class
,
2106 .clkdm_name
= "ducati_clkdm",
2107 .rst_lines
= omap44xx_mmu_ipu_resets
,
2108 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_ipu_resets
),
2109 .main_clk
= "ducati_clk_mux_ck",
2112 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
2113 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
2114 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
2115 .modulemode
= MODULEMODE_HWCTRL
,
2122 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
;
2123 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets
[] = {
2124 { .name
= "mmu_cache", .rst_shift
= 1 },
2128 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp
= {
2129 .master
= &omap44xx_l4_cfg_hwmod
,
2130 .slave
= &omap44xx_mmu_dsp_hwmod
,
2132 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2135 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
= {
2137 .class = &omap44xx_mmu_hwmod_class
,
2138 .clkdm_name
= "tesla_clkdm",
2139 .rst_lines
= omap44xx_mmu_dsp_resets
,
2140 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_dsp_resets
),
2141 .main_clk
= "dpll_iva_m4x2_ck",
2144 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
2145 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
2146 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
2147 .modulemode
= MODULEMODE_HWCTRL
,
2157 static struct omap_hwmod_class omap44xx_mpu_hwmod_class
= {
2162 static struct omap_hwmod omap44xx_mpu_hwmod
= {
2164 .class = &omap44xx_mpu_hwmod_class
,
2165 .clkdm_name
= "mpuss_clkdm",
2166 .flags
= HWMOD_INIT_NO_IDLE
,
2167 .main_clk
= "dpll_mpu_m2_ck",
2170 .clkctrl_offs
= OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET
,
2171 .context_offs
= OMAP4_RM_MPU_MPU_CONTEXT_OFFSET
,
2178 * top-level core on-chip ram
2181 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class
= {
2186 static struct omap_hwmod omap44xx_ocmc_ram_hwmod
= {
2188 .class = &omap44xx_ocmc_ram_hwmod_class
,
2189 .clkdm_name
= "l3_2_clkdm",
2192 .clkctrl_offs
= OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET
,
2193 .context_offs
= OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET
,
2200 * bridge to transform ocp interface protocol to scp (serial control port)
2204 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc
= {
2206 .sysc_offs
= 0x0010,
2207 .syss_offs
= 0x0014,
2208 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
2209 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2210 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2211 .sysc_fields
= &omap_hwmod_sysc_type1
,
2214 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class
= {
2216 .sysc
= &omap44xx_ocp2scp_sysc
,
2219 /* ocp2scp_usb_phy */
2220 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod
= {
2221 .name
= "ocp2scp_usb_phy",
2222 .class = &omap44xx_ocp2scp_hwmod_class
,
2223 .clkdm_name
= "l3_init_clkdm",
2225 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2226 * block as an "optional clock," and normally should never be
2227 * specified as the main_clk for an OMAP IP block. However it
2228 * turns out that this clock is actually the main clock for
2229 * the ocp2scp_usb_phy IP block:
2230 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2231 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2232 * to be the best workaround.
2234 .main_clk
= "ocp2scp_usb_phy_phy_48m",
2237 .clkctrl_offs
= OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET
,
2238 .context_offs
= OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET
,
2239 .modulemode
= MODULEMODE_HWCTRL
,
2246 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2247 * + clock manager 1 (in always on power domain) + local prm in mpu
2250 static struct omap_hwmod_class omap44xx_prcm_hwmod_class
= {
2255 static struct omap_hwmod omap44xx_prcm_mpu_hwmod
= {
2257 .class = &omap44xx_prcm_hwmod_class
,
2258 .clkdm_name
= "l4_wkup_clkdm",
2259 .flags
= HWMOD_NO_IDLEST
,
2262 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2268 static struct omap_hwmod omap44xx_cm_core_aon_hwmod
= {
2269 .name
= "cm_core_aon",
2270 .class = &omap44xx_prcm_hwmod_class
,
2271 .flags
= HWMOD_NO_IDLEST
,
2274 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2280 static struct omap_hwmod omap44xx_cm_core_hwmod
= {
2282 .class = &omap44xx_prcm_hwmod_class
,
2283 .flags
= HWMOD_NO_IDLEST
,
2286 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2292 static struct omap_hwmod_rst_info omap44xx_prm_resets
[] = {
2293 { .name
= "rst_global_warm_sw", .rst_shift
= 0 },
2294 { .name
= "rst_global_cold_sw", .rst_shift
= 1 },
2297 static struct omap_hwmod omap44xx_prm_hwmod
= {
2299 .class = &omap44xx_prcm_hwmod_class
,
2300 .rst_lines
= omap44xx_prm_resets
,
2301 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_prm_resets
),
2306 * system clock and reset manager
2309 static struct omap_hwmod_class omap44xx_scrm_hwmod_class
= {
2314 static struct omap_hwmod omap44xx_scrm_hwmod
= {
2316 .class = &omap44xx_scrm_hwmod_class
,
2317 .clkdm_name
= "l4_wkup_clkdm",
2320 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2327 * shared level 2 memory interface
2330 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class
= {
2335 static struct omap_hwmod omap44xx_sl2if_hwmod
= {
2337 .class = &omap44xx_sl2if_hwmod_class
,
2338 .clkdm_name
= "ivahd_clkdm",
2341 .clkctrl_offs
= OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET
,
2342 .context_offs
= OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET
,
2343 .modulemode
= MODULEMODE_HWCTRL
,
2350 * bidirectional, multi-drop, multi-channel two-line serial interface between
2351 * the device and external components
2354 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc
= {
2356 .sysc_offs
= 0x0010,
2357 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
2358 SYSC_HAS_SOFTRESET
),
2359 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2361 .sysc_fields
= &omap_hwmod_sysc_type2
,
2364 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class
= {
2366 .sysc
= &omap44xx_slimbus_sysc
,
2370 static struct omap_hwmod_opt_clk slimbus1_opt_clks
[] = {
2371 { .role
= "fclk_1", .clk
= "slimbus1_fclk_1" },
2372 { .role
= "fclk_0", .clk
= "slimbus1_fclk_0" },
2373 { .role
= "fclk_2", .clk
= "slimbus1_fclk_2" },
2374 { .role
= "slimbus_clk", .clk
= "slimbus1_slimbus_clk" },
2377 static struct omap_hwmod omap44xx_slimbus1_hwmod
= {
2379 .class = &omap44xx_slimbus_hwmod_class
,
2380 .clkdm_name
= "abe_clkdm",
2383 .clkctrl_offs
= OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET
,
2384 .context_offs
= OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET
,
2385 .modulemode
= MODULEMODE_SWCTRL
,
2388 .opt_clks
= slimbus1_opt_clks
,
2389 .opt_clks_cnt
= ARRAY_SIZE(slimbus1_opt_clks
),
2393 static struct omap_hwmod_opt_clk slimbus2_opt_clks
[] = {
2394 { .role
= "fclk_1", .clk
= "slimbus2_fclk_1" },
2395 { .role
= "fclk_0", .clk
= "slimbus2_fclk_0" },
2396 { .role
= "slimbus_clk", .clk
= "slimbus2_slimbus_clk" },
2399 static struct omap_hwmod omap44xx_slimbus2_hwmod
= {
2401 .class = &omap44xx_slimbus_hwmod_class
,
2402 .clkdm_name
= "l4_per_clkdm",
2405 .clkctrl_offs
= OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET
,
2406 .context_offs
= OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET
,
2407 .modulemode
= MODULEMODE_SWCTRL
,
2410 .opt_clks
= slimbus2_opt_clks
,
2411 .opt_clks_cnt
= ARRAY_SIZE(slimbus2_opt_clks
),
2415 * 'smartreflex' class
2416 * smartreflex module (monitor silicon performance and outputs a measure of
2417 * performance error)
2420 /* The IP is not compliant to type1 / type2 scheme */
2421 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex
= {
2426 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc
= {
2427 .sysc_offs
= 0x0038,
2428 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
),
2429 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2431 .sysc_fields
= &omap_hwmod_sysc_type_smartreflex
,
2434 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class
= {
2435 .name
= "smartreflex",
2436 .sysc
= &omap44xx_smartreflex_sysc
,
2440 /* smartreflex_core */
2441 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr
= {
2442 .sensor_voltdm_name
= "core",
2445 static struct omap_hwmod omap44xx_smartreflex_core_hwmod
= {
2446 .name
= "smartreflex_core",
2447 .class = &omap44xx_smartreflex_hwmod_class
,
2448 .clkdm_name
= "l4_ao_clkdm",
2450 .main_clk
= "smartreflex_core_fck",
2453 .clkctrl_offs
= OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET
,
2454 .context_offs
= OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET
,
2455 .modulemode
= MODULEMODE_SWCTRL
,
2458 .dev_attr
= &smartreflex_core_dev_attr
,
2461 /* smartreflex_iva */
2462 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr
= {
2463 .sensor_voltdm_name
= "iva",
2466 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod
= {
2467 .name
= "smartreflex_iva",
2468 .class = &omap44xx_smartreflex_hwmod_class
,
2469 .clkdm_name
= "l4_ao_clkdm",
2470 .main_clk
= "smartreflex_iva_fck",
2473 .clkctrl_offs
= OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET
,
2474 .context_offs
= OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET
,
2475 .modulemode
= MODULEMODE_SWCTRL
,
2478 .dev_attr
= &smartreflex_iva_dev_attr
,
2481 /* smartreflex_mpu */
2482 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr
= {
2483 .sensor_voltdm_name
= "mpu",
2486 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod
= {
2487 .name
= "smartreflex_mpu",
2488 .class = &omap44xx_smartreflex_hwmod_class
,
2489 .clkdm_name
= "l4_ao_clkdm",
2490 .main_clk
= "smartreflex_mpu_fck",
2493 .clkctrl_offs
= OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET
,
2494 .context_offs
= OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET
,
2495 .modulemode
= MODULEMODE_SWCTRL
,
2498 .dev_attr
= &smartreflex_mpu_dev_attr
,
2503 * spinlock provides hardware assistance for synchronizing the processes
2504 * running on multiple processors
2507 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc
= {
2509 .sysc_offs
= 0x0010,
2510 .syss_offs
= 0x0014,
2511 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
2512 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
2513 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2514 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2515 .sysc_fields
= &omap_hwmod_sysc_type1
,
2518 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class
= {
2520 .sysc
= &omap44xx_spinlock_sysc
,
2524 static struct omap_hwmod omap44xx_spinlock_hwmod
= {
2526 .class = &omap44xx_spinlock_hwmod_class
,
2527 .clkdm_name
= "l4_cfg_clkdm",
2530 .clkctrl_offs
= OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET
,
2531 .context_offs
= OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET
,
2538 * general purpose timer module with accurate 1ms tick
2539 * This class contains several variants: ['timer_1ms', 'timer']
2542 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc
= {
2544 .sysc_offs
= 0x0010,
2545 .syss_offs
= 0x0014,
2546 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
2547 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
2548 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2549 SYSS_HAS_RESET_STATUS
),
2550 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2551 .clockact
= CLOCKACT_TEST_ICLK
,
2552 .sysc_fields
= &omap_hwmod_sysc_type1
,
2555 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class
= {
2557 .sysc
= &omap44xx_timer_1ms_sysc
,
2560 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc
= {
2562 .sysc_offs
= 0x0010,
2563 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
2564 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
2565 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2567 .sysc_fields
= &omap_hwmod_sysc_type2
,
2570 static struct omap_hwmod_class omap44xx_timer_hwmod_class
= {
2572 .sysc
= &omap44xx_timer_sysc
,
2575 /* always-on timers dev attribute */
2576 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
2577 .timer_capability
= OMAP_TIMER_ALWON
,
2580 /* pwm timers dev attribute */
2581 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
2582 .timer_capability
= OMAP_TIMER_HAS_PWM
,
2585 /* timers with DSP interrupt dev attribute */
2586 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr
= {
2587 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
,
2590 /* pwm timers with DSP interrupt dev attribute */
2591 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr
= {
2592 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
| OMAP_TIMER_HAS_PWM
,
2596 static struct omap_hwmod omap44xx_timer1_hwmod
= {
2598 .class = &omap44xx_timer_1ms_hwmod_class
,
2599 .clkdm_name
= "l4_wkup_clkdm",
2600 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2601 .main_clk
= "dmt1_clk_mux",
2604 .clkctrl_offs
= OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET
,
2605 .context_offs
= OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET
,
2606 .modulemode
= MODULEMODE_SWCTRL
,
2609 .dev_attr
= &capability_alwon_dev_attr
,
2613 static struct omap_hwmod omap44xx_timer2_hwmod
= {
2615 .class = &omap44xx_timer_1ms_hwmod_class
,
2616 .clkdm_name
= "l4_per_clkdm",
2617 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2618 .main_clk
= "cm2_dm2_mux",
2621 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET
,
2622 .context_offs
= OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET
,
2623 .modulemode
= MODULEMODE_SWCTRL
,
2629 static struct omap_hwmod omap44xx_timer3_hwmod
= {
2631 .class = &omap44xx_timer_hwmod_class
,
2632 .clkdm_name
= "l4_per_clkdm",
2633 .main_clk
= "cm2_dm3_mux",
2636 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET
,
2637 .context_offs
= OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET
,
2638 .modulemode
= MODULEMODE_SWCTRL
,
2644 static struct omap_hwmod omap44xx_timer4_hwmod
= {
2646 .class = &omap44xx_timer_hwmod_class
,
2647 .clkdm_name
= "l4_per_clkdm",
2648 .main_clk
= "cm2_dm4_mux",
2651 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET
,
2652 .context_offs
= OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET
,
2653 .modulemode
= MODULEMODE_SWCTRL
,
2659 static struct omap_hwmod omap44xx_timer5_hwmod
= {
2661 .class = &omap44xx_timer_hwmod_class
,
2662 .clkdm_name
= "abe_clkdm",
2663 .main_clk
= "timer5_sync_mux",
2666 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET
,
2667 .context_offs
= OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET
,
2668 .modulemode
= MODULEMODE_SWCTRL
,
2671 .dev_attr
= &capability_dsp_dev_attr
,
2675 static struct omap_hwmod omap44xx_timer6_hwmod
= {
2677 .class = &omap44xx_timer_hwmod_class
,
2678 .clkdm_name
= "abe_clkdm",
2679 .main_clk
= "timer6_sync_mux",
2682 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET
,
2683 .context_offs
= OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET
,
2684 .modulemode
= MODULEMODE_SWCTRL
,
2687 .dev_attr
= &capability_dsp_dev_attr
,
2691 static struct omap_hwmod omap44xx_timer7_hwmod
= {
2693 .class = &omap44xx_timer_hwmod_class
,
2694 .clkdm_name
= "abe_clkdm",
2695 .main_clk
= "timer7_sync_mux",
2698 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET
,
2699 .context_offs
= OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET
,
2700 .modulemode
= MODULEMODE_SWCTRL
,
2703 .dev_attr
= &capability_dsp_dev_attr
,
2707 static struct omap_hwmod omap44xx_timer8_hwmod
= {
2709 .class = &omap44xx_timer_hwmod_class
,
2710 .clkdm_name
= "abe_clkdm",
2711 .main_clk
= "timer8_sync_mux",
2714 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET
,
2715 .context_offs
= OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET
,
2716 .modulemode
= MODULEMODE_SWCTRL
,
2719 .dev_attr
= &capability_dsp_pwm_dev_attr
,
2723 static struct omap_hwmod omap44xx_timer9_hwmod
= {
2725 .class = &omap44xx_timer_hwmod_class
,
2726 .clkdm_name
= "l4_per_clkdm",
2727 .main_clk
= "cm2_dm9_mux",
2730 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET
,
2731 .context_offs
= OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET
,
2732 .modulemode
= MODULEMODE_SWCTRL
,
2735 .dev_attr
= &capability_pwm_dev_attr
,
2739 static struct omap_hwmod omap44xx_timer10_hwmod
= {
2741 .class = &omap44xx_timer_1ms_hwmod_class
,
2742 .clkdm_name
= "l4_per_clkdm",
2743 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2744 .main_clk
= "cm2_dm10_mux",
2747 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET
,
2748 .context_offs
= OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET
,
2749 .modulemode
= MODULEMODE_SWCTRL
,
2752 .dev_attr
= &capability_pwm_dev_attr
,
2756 static struct omap_hwmod omap44xx_timer11_hwmod
= {
2758 .class = &omap44xx_timer_hwmod_class
,
2759 .clkdm_name
= "l4_per_clkdm",
2760 .main_clk
= "cm2_dm11_mux",
2763 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET
,
2764 .context_offs
= OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET
,
2765 .modulemode
= MODULEMODE_SWCTRL
,
2768 .dev_attr
= &capability_pwm_dev_attr
,
2773 * universal asynchronous receiver/transmitter (uart)
2776 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc
= {
2778 .sysc_offs
= 0x0054,
2779 .syss_offs
= 0x0058,
2780 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
2781 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2782 SYSS_HAS_RESET_STATUS
),
2783 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2785 .sysc_fields
= &omap_hwmod_sysc_type1
,
2788 static struct omap_hwmod_class omap44xx_uart_hwmod_class
= {
2790 .sysc
= &omap44xx_uart_sysc
,
2794 static struct omap_hwmod omap44xx_uart1_hwmod
= {
2796 .class = &omap44xx_uart_hwmod_class
,
2797 .clkdm_name
= "l4_per_clkdm",
2798 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2799 .main_clk
= "func_48m_fclk",
2802 .clkctrl_offs
= OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET
,
2803 .context_offs
= OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET
,
2804 .modulemode
= MODULEMODE_SWCTRL
,
2810 static struct omap_hwmod omap44xx_uart2_hwmod
= {
2812 .class = &omap44xx_uart_hwmod_class
,
2813 .clkdm_name
= "l4_per_clkdm",
2814 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2815 .main_clk
= "func_48m_fclk",
2818 .clkctrl_offs
= OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET
,
2819 .context_offs
= OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET
,
2820 .modulemode
= MODULEMODE_SWCTRL
,
2826 static struct omap_hwmod omap44xx_uart3_hwmod
= {
2828 .class = &omap44xx_uart_hwmod_class
,
2829 .clkdm_name
= "l4_per_clkdm",
2830 .flags
= DEBUG_OMAP4UART3_FLAGS
| HWMOD_SWSUP_SIDLE_ACT
,
2831 .main_clk
= "func_48m_fclk",
2834 .clkctrl_offs
= OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET
,
2835 .context_offs
= OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET
,
2836 .modulemode
= MODULEMODE_SWCTRL
,
2842 static struct omap_hwmod omap44xx_uart4_hwmod
= {
2844 .class = &omap44xx_uart_hwmod_class
,
2845 .clkdm_name
= "l4_per_clkdm",
2846 .flags
= DEBUG_OMAP4UART4_FLAGS
| HWMOD_SWSUP_SIDLE_ACT
,
2847 .main_clk
= "func_48m_fclk",
2850 .clkctrl_offs
= OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET
,
2851 .context_offs
= OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET
,
2852 .modulemode
= MODULEMODE_SWCTRL
,
2858 * 'usb_host_fs' class
2859 * full-speed usb host controller
2862 /* The IP is not compliant to type1 / type2 scheme */
2863 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs
= {
2869 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc
= {
2871 .sysc_offs
= 0x0210,
2872 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
2873 SYSC_HAS_SOFTRESET
),
2874 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2876 .sysc_fields
= &omap_hwmod_sysc_type_usb_host_fs
,
2879 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class
= {
2880 .name
= "usb_host_fs",
2881 .sysc
= &omap44xx_usb_host_fs_sysc
,
2885 static struct omap_hwmod omap44xx_usb_host_fs_hwmod
= {
2886 .name
= "usb_host_fs",
2887 .class = &omap44xx_usb_host_fs_hwmod_class
,
2888 .clkdm_name
= "l3_init_clkdm",
2889 .main_clk
= "usb_host_fs_fck",
2892 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET
,
2893 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET
,
2894 .modulemode
= MODULEMODE_SWCTRL
,
2900 * 'usb_host_hs' class
2901 * high-speed multi-port usb host controller
2904 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc
= {
2906 .sysc_offs
= 0x0010,
2907 .syss_offs
= 0x0014,
2908 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
2909 SYSC_HAS_SOFTRESET
| SYSC_HAS_RESET_STATUS
),
2910 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2911 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2912 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2913 .sysc_fields
= &omap_hwmod_sysc_type2
,
2916 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class
= {
2917 .name
= "usb_host_hs",
2918 .sysc
= &omap44xx_usb_host_hs_sysc
,
2922 static struct omap_hwmod omap44xx_usb_host_hs_hwmod
= {
2923 .name
= "usb_host_hs",
2924 .class = &omap44xx_usb_host_hs_hwmod_class
,
2925 .clkdm_name
= "l3_init_clkdm",
2926 .main_clk
= "usb_host_hs_fck",
2929 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET
,
2930 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET
,
2931 .modulemode
= MODULEMODE_SWCTRL
,
2936 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2940 * In the following configuration :
2941 * - USBHOST module is set to smart-idle mode
2942 * - PRCM asserts idle_req to the USBHOST module ( This typically
2943 * happens when the system is going to a low power mode : all ports
2944 * have been suspended, the master part of the USBHOST module has
2945 * entered the standby state, and SW has cut the functional clocks)
2946 * - an USBHOST interrupt occurs before the module is able to answer
2947 * idle_ack, typically a remote wakeup IRQ.
2948 * Then the USB HOST module will enter a deadlock situation where it
2949 * is no more accessible nor functional.
2952 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2956 * Errata: USB host EHCI may stall when entering smart-standby mode
2960 * When the USBHOST module is set to smart-standby mode, and when it is
2961 * ready to enter the standby state (i.e. all ports are suspended and
2962 * all attached devices are in suspend mode), then it can wrongly assert
2963 * the Mstandby signal too early while there are still some residual OCP
2964 * transactions ongoing. If this condition occurs, the internal state
2965 * machine may go to an undefined state and the USB link may be stuck
2966 * upon the next resume.
2969 * Don't use smart standby; use only force standby,
2970 * hence HWMOD_SWSUP_MSTANDBY
2973 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
2977 * 'usb_otg_hs' class
2978 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2981 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc
= {
2983 .sysc_offs
= 0x0404,
2984 .syss_offs
= 0x0408,
2985 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
2986 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
2987 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2988 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2989 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2991 .sysc_fields
= &omap_hwmod_sysc_type1
,
2994 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class
= {
2995 .name
= "usb_otg_hs",
2996 .sysc
= &omap44xx_usb_otg_hs_sysc
,
3000 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks
[] = {
3001 { .role
= "xclk", .clk
= "usb_otg_hs_xclk" },
3004 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod
= {
3005 .name
= "usb_otg_hs",
3006 .class = &omap44xx_usb_otg_hs_hwmod_class
,
3007 .clkdm_name
= "l3_init_clkdm",
3008 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
3009 .main_clk
= "usb_otg_hs_ick",
3012 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET
,
3013 .context_offs
= OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET
,
3014 .modulemode
= MODULEMODE_HWCTRL
,
3017 .opt_clks
= usb_otg_hs_opt_clks
,
3018 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_hs_opt_clks
),
3022 * 'usb_tll_hs' class
3023 * usb_tll_hs module is the adapter on the usb_host_hs ports
3026 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc
= {
3028 .sysc_offs
= 0x0010,
3029 .syss_offs
= 0x0014,
3030 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
3031 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
3033 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3034 .sysc_fields
= &omap_hwmod_sysc_type1
,
3037 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class
= {
3038 .name
= "usb_tll_hs",
3039 .sysc
= &omap44xx_usb_tll_hs_sysc
,
3042 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod
= {
3043 .name
= "usb_tll_hs",
3044 .class = &omap44xx_usb_tll_hs_hwmod_class
,
3045 .clkdm_name
= "l3_init_clkdm",
3046 .main_clk
= "usb_tll_hs_ick",
3049 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET
,
3050 .context_offs
= OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET
,
3051 .modulemode
= MODULEMODE_HWCTRL
,
3058 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3059 * overflow condition
3062 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc
= {
3064 .sysc_offs
= 0x0010,
3065 .syss_offs
= 0x0014,
3066 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
3067 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
3068 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3070 .sysc_fields
= &omap_hwmod_sysc_type1
,
3073 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class
= {
3075 .sysc
= &omap44xx_wd_timer_sysc
,
3076 .pre_shutdown
= &omap2_wd_timer_disable
,
3077 .reset
= &omap2_wd_timer_reset
,
3081 static struct omap_hwmod omap44xx_wd_timer2_hwmod
= {
3082 .name
= "wd_timer2",
3083 .class = &omap44xx_wd_timer_hwmod_class
,
3084 .clkdm_name
= "l4_wkup_clkdm",
3085 .main_clk
= "sys_32k_ck",
3088 .clkctrl_offs
= OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET
,
3089 .context_offs
= OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET
,
3090 .modulemode
= MODULEMODE_SWCTRL
,
3096 static struct omap_hwmod omap44xx_wd_timer3_hwmod
= {
3097 .name
= "wd_timer3",
3098 .class = &omap44xx_wd_timer_hwmod_class
,
3099 .clkdm_name
= "abe_clkdm",
3100 .main_clk
= "sys_32k_ck",
3103 .clkctrl_offs
= OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET
,
3104 .context_offs
= OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET
,
3105 .modulemode
= MODULEMODE_SWCTRL
,
3115 /* l3_main_1 -> dmm */
3116 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm
= {
3117 .master
= &omap44xx_l3_main_1_hwmod
,
3118 .slave
= &omap44xx_dmm_hwmod
,
3120 .user
= OCP_USER_SDMA
,
3124 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm
= {
3125 .master
= &omap44xx_mpu_hwmod
,
3126 .slave
= &omap44xx_dmm_hwmod
,
3128 .user
= OCP_USER_MPU
,
3131 /* iva -> l3_instr */
3132 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr
= {
3133 .master
= &omap44xx_iva_hwmod
,
3134 .slave
= &omap44xx_l3_instr_hwmod
,
3136 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3139 /* l3_main_3 -> l3_instr */
3140 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr
= {
3141 .master
= &omap44xx_l3_main_3_hwmod
,
3142 .slave
= &omap44xx_l3_instr_hwmod
,
3144 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3147 /* ocp_wp_noc -> l3_instr */
3148 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr
= {
3149 .master
= &omap44xx_ocp_wp_noc_hwmod
,
3150 .slave
= &omap44xx_l3_instr_hwmod
,
3152 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3155 /* dsp -> l3_main_1 */
3156 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1
= {
3157 .master
= &omap44xx_dsp_hwmod
,
3158 .slave
= &omap44xx_l3_main_1_hwmod
,
3160 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3163 /* dss -> l3_main_1 */
3164 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1
= {
3165 .master
= &omap44xx_dss_hwmod
,
3166 .slave
= &omap44xx_l3_main_1_hwmod
,
3168 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3171 /* l3_main_2 -> l3_main_1 */
3172 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1
= {
3173 .master
= &omap44xx_l3_main_2_hwmod
,
3174 .slave
= &omap44xx_l3_main_1_hwmod
,
3176 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3179 /* l4_cfg -> l3_main_1 */
3180 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1
= {
3181 .master
= &omap44xx_l4_cfg_hwmod
,
3182 .slave
= &omap44xx_l3_main_1_hwmod
,
3184 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3187 /* mmc1 -> l3_main_1 */
3188 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1
= {
3189 .master
= &omap44xx_mmc1_hwmod
,
3190 .slave
= &omap44xx_l3_main_1_hwmod
,
3192 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3195 /* mmc2 -> l3_main_1 */
3196 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1
= {
3197 .master
= &omap44xx_mmc2_hwmod
,
3198 .slave
= &omap44xx_l3_main_1_hwmod
,
3200 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3203 /* mpu -> l3_main_1 */
3204 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1
= {
3205 .master
= &omap44xx_mpu_hwmod
,
3206 .slave
= &omap44xx_l3_main_1_hwmod
,
3208 .user
= OCP_USER_MPU
,
3211 /* debugss -> l3_main_2 */
3212 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2
= {
3213 .master
= &omap44xx_debugss_hwmod
,
3214 .slave
= &omap44xx_l3_main_2_hwmod
,
3215 .clk
= "dbgclk_mux_ck",
3216 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3219 /* dma_system -> l3_main_2 */
3220 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2
= {
3221 .master
= &omap44xx_dma_system_hwmod
,
3222 .slave
= &omap44xx_l3_main_2_hwmod
,
3224 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3227 /* fdif -> l3_main_2 */
3228 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2
= {
3229 .master
= &omap44xx_fdif_hwmod
,
3230 .slave
= &omap44xx_l3_main_2_hwmod
,
3232 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3235 /* gpu -> l3_main_2 */
3236 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2
= {
3237 .master
= &omap44xx_gpu_hwmod
,
3238 .slave
= &omap44xx_l3_main_2_hwmod
,
3240 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3243 /* hsi -> l3_main_2 */
3244 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2
= {
3245 .master
= &omap44xx_hsi_hwmod
,
3246 .slave
= &omap44xx_l3_main_2_hwmod
,
3248 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3251 /* ipu -> l3_main_2 */
3252 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2
= {
3253 .master
= &omap44xx_ipu_hwmod
,
3254 .slave
= &omap44xx_l3_main_2_hwmod
,
3256 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3259 /* iss -> l3_main_2 */
3260 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2
= {
3261 .master
= &omap44xx_iss_hwmod
,
3262 .slave
= &omap44xx_l3_main_2_hwmod
,
3264 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3267 /* iva -> l3_main_2 */
3268 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2
= {
3269 .master
= &omap44xx_iva_hwmod
,
3270 .slave
= &omap44xx_l3_main_2_hwmod
,
3272 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3275 /* l3_main_1 -> l3_main_2 */
3276 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2
= {
3277 .master
= &omap44xx_l3_main_1_hwmod
,
3278 .slave
= &omap44xx_l3_main_2_hwmod
,
3280 .user
= OCP_USER_MPU
,
3283 /* l4_cfg -> l3_main_2 */
3284 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2
= {
3285 .master
= &omap44xx_l4_cfg_hwmod
,
3286 .slave
= &omap44xx_l3_main_2_hwmod
,
3288 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3291 /* usb_host_fs -> l3_main_2 */
3292 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2
= {
3293 .master
= &omap44xx_usb_host_fs_hwmod
,
3294 .slave
= &omap44xx_l3_main_2_hwmod
,
3296 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3299 /* usb_host_hs -> l3_main_2 */
3300 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2
= {
3301 .master
= &omap44xx_usb_host_hs_hwmod
,
3302 .slave
= &omap44xx_l3_main_2_hwmod
,
3304 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3307 /* usb_otg_hs -> l3_main_2 */
3308 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2
= {
3309 .master
= &omap44xx_usb_otg_hs_hwmod
,
3310 .slave
= &omap44xx_l3_main_2_hwmod
,
3312 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3315 /* l3_main_1 -> l3_main_3 */
3316 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3
= {
3317 .master
= &omap44xx_l3_main_1_hwmod
,
3318 .slave
= &omap44xx_l3_main_3_hwmod
,
3320 .user
= OCP_USER_MPU
,
3323 /* l3_main_2 -> l3_main_3 */
3324 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3
= {
3325 .master
= &omap44xx_l3_main_2_hwmod
,
3326 .slave
= &omap44xx_l3_main_3_hwmod
,
3328 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3331 /* l4_cfg -> l3_main_3 */
3332 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3
= {
3333 .master
= &omap44xx_l4_cfg_hwmod
,
3334 .slave
= &omap44xx_l3_main_3_hwmod
,
3336 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3339 /* aess -> l4_abe */
3340 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe
= {
3341 .master
= &omap44xx_aess_hwmod
,
3342 .slave
= &omap44xx_l4_abe_hwmod
,
3343 .clk
= "ocp_abe_iclk",
3344 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3348 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe
= {
3349 .master
= &omap44xx_dsp_hwmod
,
3350 .slave
= &omap44xx_l4_abe_hwmod
,
3351 .clk
= "ocp_abe_iclk",
3352 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3355 /* l3_main_1 -> l4_abe */
3356 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe
= {
3357 .master
= &omap44xx_l3_main_1_hwmod
,
3358 .slave
= &omap44xx_l4_abe_hwmod
,
3360 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3364 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe
= {
3365 .master
= &omap44xx_mpu_hwmod
,
3366 .slave
= &omap44xx_l4_abe_hwmod
,
3367 .clk
= "ocp_abe_iclk",
3368 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3371 /* l3_main_1 -> l4_cfg */
3372 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg
= {
3373 .master
= &omap44xx_l3_main_1_hwmod
,
3374 .slave
= &omap44xx_l4_cfg_hwmod
,
3376 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3379 /* l3_main_2 -> l4_per */
3380 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per
= {
3381 .master
= &omap44xx_l3_main_2_hwmod
,
3382 .slave
= &omap44xx_l4_per_hwmod
,
3384 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3387 /* l4_cfg -> l4_wkup */
3388 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup
= {
3389 .master
= &omap44xx_l4_cfg_hwmod
,
3390 .slave
= &omap44xx_l4_wkup_hwmod
,
3392 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3395 /* mpu -> mpu_private */
3396 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private
= {
3397 .master
= &omap44xx_mpu_hwmod
,
3398 .slave
= &omap44xx_mpu_private_hwmod
,
3400 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3403 /* l4_cfg -> ocp_wp_noc */
3404 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc
= {
3405 .master
= &omap44xx_l4_cfg_hwmod
,
3406 .slave
= &omap44xx_ocp_wp_noc_hwmod
,
3408 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3411 static struct omap_hwmod_addr_space omap44xx_aess_addrs
[] = {
3414 .pa_start
= 0x40180000,
3415 .pa_end
= 0x4018ffff
3419 .pa_start
= 0x401a0000,
3420 .pa_end
= 0x401a1fff
3424 .pa_start
= 0x401c0000,
3425 .pa_end
= 0x401c5fff
3429 .pa_start
= 0x401e0000,
3430 .pa_end
= 0x401e1fff
3434 .pa_start
= 0x401f1000,
3435 .pa_end
= 0x401f13ff,
3436 .flags
= ADDR_TYPE_RT
3441 /* l4_abe -> aess */
3442 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess
= {
3443 .master
= &omap44xx_l4_abe_hwmod
,
3444 .slave
= &omap44xx_aess_hwmod
,
3445 .clk
= "ocp_abe_iclk",
3446 .addr
= omap44xx_aess_addrs
,
3447 .user
= OCP_USER_MPU
,
3450 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs
[] = {
3453 .pa_start
= 0x49080000,
3454 .pa_end
= 0x4908ffff
3458 .pa_start
= 0x490a0000,
3459 .pa_end
= 0x490a1fff
3463 .pa_start
= 0x490c0000,
3464 .pa_end
= 0x490c5fff
3468 .pa_start
= 0x490e0000,
3469 .pa_end
= 0x490e1fff
3473 .pa_start
= 0x490f1000,
3474 .pa_end
= 0x490f13ff,
3475 .flags
= ADDR_TYPE_RT
3480 /* l4_abe -> aess (dma) */
3481 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma
= {
3482 .master
= &omap44xx_l4_abe_hwmod
,
3483 .slave
= &omap44xx_aess_hwmod
,
3484 .clk
= "ocp_abe_iclk",
3485 .addr
= omap44xx_aess_dma_addrs
,
3486 .user
= OCP_USER_SDMA
,
3489 /* l3_main_2 -> c2c */
3490 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c
= {
3491 .master
= &omap44xx_l3_main_2_hwmod
,
3492 .slave
= &omap44xx_c2c_hwmod
,
3494 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3497 /* l4_wkup -> counter_32k */
3498 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k
= {
3499 .master
= &omap44xx_l4_wkup_hwmod
,
3500 .slave
= &omap44xx_counter_32k_hwmod
,
3501 .clk
= "l4_wkup_clk_mux_ck",
3502 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3505 static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs
[] = {
3507 .pa_start
= 0x4a002000,
3508 .pa_end
= 0x4a0027ff,
3509 .flags
= ADDR_TYPE_RT
3514 /* l4_cfg -> ctrl_module_core */
3515 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core
= {
3516 .master
= &omap44xx_l4_cfg_hwmod
,
3517 .slave
= &omap44xx_ctrl_module_core_hwmod
,
3519 .addr
= omap44xx_ctrl_module_core_addrs
,
3520 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3523 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs
[] = {
3525 .pa_start
= 0x4a100000,
3526 .pa_end
= 0x4a1007ff,
3527 .flags
= ADDR_TYPE_RT
3532 /* l4_cfg -> ctrl_module_pad_core */
3533 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core
= {
3534 .master
= &omap44xx_l4_cfg_hwmod
,
3535 .slave
= &omap44xx_ctrl_module_pad_core_hwmod
,
3537 .addr
= omap44xx_ctrl_module_pad_core_addrs
,
3538 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3541 static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs
[] = {
3543 .pa_start
= 0x4a30c000,
3544 .pa_end
= 0x4a30c7ff,
3545 .flags
= ADDR_TYPE_RT
3550 /* l4_wkup -> ctrl_module_wkup */
3551 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup
= {
3552 .master
= &omap44xx_l4_wkup_hwmod
,
3553 .slave
= &omap44xx_ctrl_module_wkup_hwmod
,
3554 .clk
= "l4_wkup_clk_mux_ck",
3555 .addr
= omap44xx_ctrl_module_wkup_addrs
,
3556 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3559 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs
[] = {
3561 .pa_start
= 0x4a31e000,
3562 .pa_end
= 0x4a31e7ff,
3563 .flags
= ADDR_TYPE_RT
3568 /* l4_wkup -> ctrl_module_pad_wkup */
3569 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup
= {
3570 .master
= &omap44xx_l4_wkup_hwmod
,
3571 .slave
= &omap44xx_ctrl_module_pad_wkup_hwmod
,
3572 .clk
= "l4_wkup_clk_mux_ck",
3573 .addr
= omap44xx_ctrl_module_pad_wkup_addrs
,
3574 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3577 /* l3_instr -> debugss */
3578 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss
= {
3579 .master
= &omap44xx_l3_instr_hwmod
,
3580 .slave
= &omap44xx_debugss_hwmod
,
3582 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3585 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs
[] = {
3587 .pa_start
= 0x4a056000,
3588 .pa_end
= 0x4a056fff,
3589 .flags
= ADDR_TYPE_RT
3594 /* l4_cfg -> dma_system */
3595 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system
= {
3596 .master
= &omap44xx_l4_cfg_hwmod
,
3597 .slave
= &omap44xx_dma_system_hwmod
,
3599 .addr
= omap44xx_dma_system_addrs
,
3600 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3603 /* l4_abe -> dmic */
3604 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic
= {
3605 .master
= &omap44xx_l4_abe_hwmod
,
3606 .slave
= &omap44xx_dmic_hwmod
,
3607 .clk
= "ocp_abe_iclk",
3608 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3612 static struct omap_hwmod_ocp_if omap44xx_dsp__iva
= {
3613 .master
= &omap44xx_dsp_hwmod
,
3614 .slave
= &omap44xx_iva_hwmod
,
3615 .clk
= "dpll_iva_m5x2_ck",
3616 .user
= OCP_USER_DSP
,
3620 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if
= {
3621 .master
= &omap44xx_dsp_hwmod
,
3622 .slave
= &omap44xx_sl2if_hwmod
,
3623 .clk
= "dpll_iva_m5x2_ck",
3624 .user
= OCP_USER_DSP
,
3628 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp
= {
3629 .master
= &omap44xx_l4_cfg_hwmod
,
3630 .slave
= &omap44xx_dsp_hwmod
,
3632 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3635 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs
[] = {
3637 .pa_start
= 0x58000000,
3638 .pa_end
= 0x5800007f,
3639 .flags
= ADDR_TYPE_RT
3644 /* l3_main_2 -> dss */
3645 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss
= {
3646 .master
= &omap44xx_l3_main_2_hwmod
,
3647 .slave
= &omap44xx_dss_hwmod
,
3649 .addr
= omap44xx_dss_dma_addrs
,
3650 .user
= OCP_USER_SDMA
,
3653 static struct omap_hwmod_addr_space omap44xx_dss_addrs
[] = {
3655 .pa_start
= 0x48040000,
3656 .pa_end
= 0x4804007f,
3657 .flags
= ADDR_TYPE_RT
3663 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss
= {
3664 .master
= &omap44xx_l4_per_hwmod
,
3665 .slave
= &omap44xx_dss_hwmod
,
3667 .addr
= omap44xx_dss_addrs
,
3668 .user
= OCP_USER_MPU
,
3671 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs
[] = {
3673 .pa_start
= 0x58001000,
3674 .pa_end
= 0x58001fff,
3675 .flags
= ADDR_TYPE_RT
3680 /* l3_main_2 -> dss_dispc */
3681 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc
= {
3682 .master
= &omap44xx_l3_main_2_hwmod
,
3683 .slave
= &omap44xx_dss_dispc_hwmod
,
3685 .addr
= omap44xx_dss_dispc_dma_addrs
,
3686 .user
= OCP_USER_SDMA
,
3689 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs
[] = {
3691 .pa_start
= 0x48041000,
3692 .pa_end
= 0x48041fff,
3693 .flags
= ADDR_TYPE_RT
3698 /* l4_per -> dss_dispc */
3699 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc
= {
3700 .master
= &omap44xx_l4_per_hwmod
,
3701 .slave
= &omap44xx_dss_dispc_hwmod
,
3703 .addr
= omap44xx_dss_dispc_addrs
,
3704 .user
= OCP_USER_MPU
,
3707 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs
[] = {
3709 .pa_start
= 0x58004000,
3710 .pa_end
= 0x580041ff,
3711 .flags
= ADDR_TYPE_RT
3716 /* l3_main_2 -> dss_dsi1 */
3717 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1
= {
3718 .master
= &omap44xx_l3_main_2_hwmod
,
3719 .slave
= &omap44xx_dss_dsi1_hwmod
,
3721 .addr
= omap44xx_dss_dsi1_dma_addrs
,
3722 .user
= OCP_USER_SDMA
,
3725 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs
[] = {
3727 .pa_start
= 0x48044000,
3728 .pa_end
= 0x480441ff,
3729 .flags
= ADDR_TYPE_RT
3734 /* l4_per -> dss_dsi1 */
3735 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1
= {
3736 .master
= &omap44xx_l4_per_hwmod
,
3737 .slave
= &omap44xx_dss_dsi1_hwmod
,
3739 .addr
= omap44xx_dss_dsi1_addrs
,
3740 .user
= OCP_USER_MPU
,
3743 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs
[] = {
3745 .pa_start
= 0x58005000,
3746 .pa_end
= 0x580051ff,
3747 .flags
= ADDR_TYPE_RT
3752 /* l3_main_2 -> dss_dsi2 */
3753 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2
= {
3754 .master
= &omap44xx_l3_main_2_hwmod
,
3755 .slave
= &omap44xx_dss_dsi2_hwmod
,
3757 .addr
= omap44xx_dss_dsi2_dma_addrs
,
3758 .user
= OCP_USER_SDMA
,
3761 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs
[] = {
3763 .pa_start
= 0x48045000,
3764 .pa_end
= 0x480451ff,
3765 .flags
= ADDR_TYPE_RT
3770 /* l4_per -> dss_dsi2 */
3771 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2
= {
3772 .master
= &omap44xx_l4_per_hwmod
,
3773 .slave
= &omap44xx_dss_dsi2_hwmod
,
3775 .addr
= omap44xx_dss_dsi2_addrs
,
3776 .user
= OCP_USER_MPU
,
3779 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs
[] = {
3781 .pa_start
= 0x58006000,
3782 .pa_end
= 0x58006fff,
3783 .flags
= ADDR_TYPE_RT
3788 /* l3_main_2 -> dss_hdmi */
3789 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi
= {
3790 .master
= &omap44xx_l3_main_2_hwmod
,
3791 .slave
= &omap44xx_dss_hdmi_hwmod
,
3793 .addr
= omap44xx_dss_hdmi_dma_addrs
,
3794 .user
= OCP_USER_SDMA
,
3797 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs
[] = {
3799 .pa_start
= 0x48046000,
3800 .pa_end
= 0x48046fff,
3801 .flags
= ADDR_TYPE_RT
3806 /* l4_per -> dss_hdmi */
3807 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi
= {
3808 .master
= &omap44xx_l4_per_hwmod
,
3809 .slave
= &omap44xx_dss_hdmi_hwmod
,
3811 .addr
= omap44xx_dss_hdmi_addrs
,
3812 .user
= OCP_USER_MPU
,
3815 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs
[] = {
3817 .pa_start
= 0x58002000,
3818 .pa_end
= 0x580020ff,
3819 .flags
= ADDR_TYPE_RT
3824 /* l3_main_2 -> dss_rfbi */
3825 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi
= {
3826 .master
= &omap44xx_l3_main_2_hwmod
,
3827 .slave
= &omap44xx_dss_rfbi_hwmod
,
3829 .addr
= omap44xx_dss_rfbi_dma_addrs
,
3830 .user
= OCP_USER_SDMA
,
3833 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs
[] = {
3835 .pa_start
= 0x48042000,
3836 .pa_end
= 0x480420ff,
3837 .flags
= ADDR_TYPE_RT
3842 /* l4_per -> dss_rfbi */
3843 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi
= {
3844 .master
= &omap44xx_l4_per_hwmod
,
3845 .slave
= &omap44xx_dss_rfbi_hwmod
,
3847 .addr
= omap44xx_dss_rfbi_addrs
,
3848 .user
= OCP_USER_MPU
,
3851 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs
[] = {
3853 .pa_start
= 0x58003000,
3854 .pa_end
= 0x580030ff,
3855 .flags
= ADDR_TYPE_RT
3860 /* l3_main_2 -> dss_venc */
3861 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc
= {
3862 .master
= &omap44xx_l3_main_2_hwmod
,
3863 .slave
= &omap44xx_dss_venc_hwmod
,
3865 .addr
= omap44xx_dss_venc_dma_addrs
,
3866 .user
= OCP_USER_SDMA
,
3869 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs
[] = {
3871 .pa_start
= 0x48043000,
3872 .pa_end
= 0x480430ff,
3873 .flags
= ADDR_TYPE_RT
3878 /* l4_per -> dss_venc */
3879 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc
= {
3880 .master
= &omap44xx_l4_per_hwmod
,
3881 .slave
= &omap44xx_dss_venc_hwmod
,
3883 .addr
= omap44xx_dss_venc_addrs
,
3884 .user
= OCP_USER_MPU
,
3888 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm
= {
3889 .master
= &omap44xx_l4_per_hwmod
,
3890 .slave
= &omap44xx_elm_hwmod
,
3892 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3895 static struct omap_hwmod_addr_space omap44xx_fdif_addrs
[] = {
3897 .pa_start
= 0x4a10a000,
3898 .pa_end
= 0x4a10a1ff,
3899 .flags
= ADDR_TYPE_RT
3904 /* l4_cfg -> fdif */
3905 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif
= {
3906 .master
= &omap44xx_l4_cfg_hwmod
,
3907 .slave
= &omap44xx_fdif_hwmod
,
3909 .addr
= omap44xx_fdif_addrs
,
3910 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3913 /* l4_wkup -> gpio1 */
3914 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1
= {
3915 .master
= &omap44xx_l4_wkup_hwmod
,
3916 .slave
= &omap44xx_gpio1_hwmod
,
3917 .clk
= "l4_wkup_clk_mux_ck",
3918 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3921 /* l4_per -> gpio2 */
3922 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2
= {
3923 .master
= &omap44xx_l4_per_hwmod
,
3924 .slave
= &omap44xx_gpio2_hwmod
,
3926 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3929 /* l4_per -> gpio3 */
3930 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3
= {
3931 .master
= &omap44xx_l4_per_hwmod
,
3932 .slave
= &omap44xx_gpio3_hwmod
,
3934 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3937 /* l4_per -> gpio4 */
3938 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4
= {
3939 .master
= &omap44xx_l4_per_hwmod
,
3940 .slave
= &omap44xx_gpio4_hwmod
,
3942 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3945 /* l4_per -> gpio5 */
3946 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5
= {
3947 .master
= &omap44xx_l4_per_hwmod
,
3948 .slave
= &omap44xx_gpio5_hwmod
,
3950 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3953 /* l4_per -> gpio6 */
3954 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6
= {
3955 .master
= &omap44xx_l4_per_hwmod
,
3956 .slave
= &omap44xx_gpio6_hwmod
,
3958 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3961 /* l3_main_2 -> gpmc */
3962 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc
= {
3963 .master
= &omap44xx_l3_main_2_hwmod
,
3964 .slave
= &omap44xx_gpmc_hwmod
,
3966 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3969 static struct omap_hwmod_addr_space omap44xx_gpu_addrs
[] = {
3971 .pa_start
= 0x56000000,
3972 .pa_end
= 0x5600ffff,
3973 .flags
= ADDR_TYPE_RT
3978 /* l3_main_2 -> gpu */
3979 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu
= {
3980 .master
= &omap44xx_l3_main_2_hwmod
,
3981 .slave
= &omap44xx_gpu_hwmod
,
3983 .addr
= omap44xx_gpu_addrs
,
3984 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3987 static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs
[] = {
3989 .pa_start
= 0x480b2000,
3990 .pa_end
= 0x480b201f,
3991 .flags
= ADDR_TYPE_RT
3996 /* l4_per -> hdq1w */
3997 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w
= {
3998 .master
= &omap44xx_l4_per_hwmod
,
3999 .slave
= &omap44xx_hdq1w_hwmod
,
4001 .addr
= omap44xx_hdq1w_addrs
,
4002 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4005 static struct omap_hwmod_addr_space omap44xx_hsi_addrs
[] = {
4007 .pa_start
= 0x4a058000,
4008 .pa_end
= 0x4a05bfff,
4009 .flags
= ADDR_TYPE_RT
4015 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi
= {
4016 .master
= &omap44xx_l4_cfg_hwmod
,
4017 .slave
= &omap44xx_hsi_hwmod
,
4019 .addr
= omap44xx_hsi_addrs
,
4020 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4023 /* l4_per -> i2c1 */
4024 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1
= {
4025 .master
= &omap44xx_l4_per_hwmod
,
4026 .slave
= &omap44xx_i2c1_hwmod
,
4028 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4031 /* l4_per -> i2c2 */
4032 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2
= {
4033 .master
= &omap44xx_l4_per_hwmod
,
4034 .slave
= &omap44xx_i2c2_hwmod
,
4036 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4039 /* l4_per -> i2c3 */
4040 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3
= {
4041 .master
= &omap44xx_l4_per_hwmod
,
4042 .slave
= &omap44xx_i2c3_hwmod
,
4044 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4047 /* l4_per -> i2c4 */
4048 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4
= {
4049 .master
= &omap44xx_l4_per_hwmod
,
4050 .slave
= &omap44xx_i2c4_hwmod
,
4052 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4055 /* l3_main_2 -> ipu */
4056 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu
= {
4057 .master
= &omap44xx_l3_main_2_hwmod
,
4058 .slave
= &omap44xx_ipu_hwmod
,
4060 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4063 static struct omap_hwmod_addr_space omap44xx_iss_addrs
[] = {
4065 .pa_start
= 0x52000000,
4066 .pa_end
= 0x520000ff,
4067 .flags
= ADDR_TYPE_RT
4072 /* l3_main_2 -> iss */
4073 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss
= {
4074 .master
= &omap44xx_l3_main_2_hwmod
,
4075 .slave
= &omap44xx_iss_hwmod
,
4077 .addr
= omap44xx_iss_addrs
,
4078 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4082 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if
= {
4083 .master
= &omap44xx_iva_hwmod
,
4084 .slave
= &omap44xx_sl2if_hwmod
,
4085 .clk
= "dpll_iva_m5x2_ck",
4086 .user
= OCP_USER_IVA
,
4089 /* l3_main_2 -> iva */
4090 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva
= {
4091 .master
= &omap44xx_l3_main_2_hwmod
,
4092 .slave
= &omap44xx_iva_hwmod
,
4094 .user
= OCP_USER_MPU
,
4097 /* l4_wkup -> kbd */
4098 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd
= {
4099 .master
= &omap44xx_l4_wkup_hwmod
,
4100 .slave
= &omap44xx_kbd_hwmod
,
4101 .clk
= "l4_wkup_clk_mux_ck",
4102 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4105 /* l4_cfg -> mailbox */
4106 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox
= {
4107 .master
= &omap44xx_l4_cfg_hwmod
,
4108 .slave
= &omap44xx_mailbox_hwmod
,
4110 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4113 static struct omap_hwmod_addr_space omap44xx_mcasp_addrs
[] = {
4115 .pa_start
= 0x40128000,
4116 .pa_end
= 0x401283ff,
4117 .flags
= ADDR_TYPE_RT
4122 /* l4_abe -> mcasp */
4123 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp
= {
4124 .master
= &omap44xx_l4_abe_hwmod
,
4125 .slave
= &omap44xx_mcasp_hwmod
,
4126 .clk
= "ocp_abe_iclk",
4127 .addr
= omap44xx_mcasp_addrs
,
4128 .user
= OCP_USER_MPU
,
4131 static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs
[] = {
4133 .pa_start
= 0x49028000,
4134 .pa_end
= 0x490283ff,
4135 .flags
= ADDR_TYPE_RT
4140 /* l4_abe -> mcasp (dma) */
4141 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma
= {
4142 .master
= &omap44xx_l4_abe_hwmod
,
4143 .slave
= &omap44xx_mcasp_hwmod
,
4144 .clk
= "ocp_abe_iclk",
4145 .addr
= omap44xx_mcasp_dma_addrs
,
4146 .user
= OCP_USER_SDMA
,
4149 /* l4_abe -> mcbsp1 */
4150 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1
= {
4151 .master
= &omap44xx_l4_abe_hwmod
,
4152 .slave
= &omap44xx_mcbsp1_hwmod
,
4153 .clk
= "ocp_abe_iclk",
4154 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4157 /* l4_abe -> mcbsp2 */
4158 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2
= {
4159 .master
= &omap44xx_l4_abe_hwmod
,
4160 .slave
= &omap44xx_mcbsp2_hwmod
,
4161 .clk
= "ocp_abe_iclk",
4162 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4165 /* l4_abe -> mcbsp3 */
4166 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3
= {
4167 .master
= &omap44xx_l4_abe_hwmod
,
4168 .slave
= &omap44xx_mcbsp3_hwmod
,
4169 .clk
= "ocp_abe_iclk",
4170 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4173 /* l4_per -> mcbsp4 */
4174 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4
= {
4175 .master
= &omap44xx_l4_per_hwmod
,
4176 .slave
= &omap44xx_mcbsp4_hwmod
,
4178 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4181 /* l4_abe -> mcpdm */
4182 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm
= {
4183 .master
= &omap44xx_l4_abe_hwmod
,
4184 .slave
= &omap44xx_mcpdm_hwmod
,
4185 .clk
= "ocp_abe_iclk",
4186 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4189 /* l4_per -> mcspi1 */
4190 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1
= {
4191 .master
= &omap44xx_l4_per_hwmod
,
4192 .slave
= &omap44xx_mcspi1_hwmod
,
4194 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4197 /* l4_per -> mcspi2 */
4198 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2
= {
4199 .master
= &omap44xx_l4_per_hwmod
,
4200 .slave
= &omap44xx_mcspi2_hwmod
,
4202 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4205 /* l4_per -> mcspi3 */
4206 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3
= {
4207 .master
= &omap44xx_l4_per_hwmod
,
4208 .slave
= &omap44xx_mcspi3_hwmod
,
4210 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4213 /* l4_per -> mcspi4 */
4214 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4
= {
4215 .master
= &omap44xx_l4_per_hwmod
,
4216 .slave
= &omap44xx_mcspi4_hwmod
,
4218 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4221 /* l4_per -> mmc1 */
4222 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1
= {
4223 .master
= &omap44xx_l4_per_hwmod
,
4224 .slave
= &omap44xx_mmc1_hwmod
,
4226 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4229 /* l4_per -> mmc2 */
4230 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2
= {
4231 .master
= &omap44xx_l4_per_hwmod
,
4232 .slave
= &omap44xx_mmc2_hwmod
,
4234 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4237 /* l4_per -> mmc3 */
4238 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3
= {
4239 .master
= &omap44xx_l4_per_hwmod
,
4240 .slave
= &omap44xx_mmc3_hwmod
,
4242 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4245 /* l4_per -> mmc4 */
4246 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4
= {
4247 .master
= &omap44xx_l4_per_hwmod
,
4248 .slave
= &omap44xx_mmc4_hwmod
,
4250 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4253 /* l4_per -> mmc5 */
4254 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5
= {
4255 .master
= &omap44xx_l4_per_hwmod
,
4256 .slave
= &omap44xx_mmc5_hwmod
,
4258 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4261 /* l3_main_2 -> ocmc_ram */
4262 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram
= {
4263 .master
= &omap44xx_l3_main_2_hwmod
,
4264 .slave
= &omap44xx_ocmc_ram_hwmod
,
4266 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4269 /* l4_cfg -> ocp2scp_usb_phy */
4270 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy
= {
4271 .master
= &omap44xx_l4_cfg_hwmod
,
4272 .slave
= &omap44xx_ocp2scp_usb_phy_hwmod
,
4274 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4277 /* mpu_private -> prcm_mpu */
4278 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu
= {
4279 .master
= &omap44xx_mpu_private_hwmod
,
4280 .slave
= &omap44xx_prcm_mpu_hwmod
,
4282 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4285 /* l4_wkup -> cm_core_aon */
4286 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon
= {
4287 .master
= &omap44xx_l4_wkup_hwmod
,
4288 .slave
= &omap44xx_cm_core_aon_hwmod
,
4289 .clk
= "l4_wkup_clk_mux_ck",
4290 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4293 /* l4_cfg -> cm_core */
4294 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core
= {
4295 .master
= &omap44xx_l4_cfg_hwmod
,
4296 .slave
= &omap44xx_cm_core_hwmod
,
4298 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4301 /* l4_wkup -> prm */
4302 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm
= {
4303 .master
= &omap44xx_l4_wkup_hwmod
,
4304 .slave
= &omap44xx_prm_hwmod
,
4305 .clk
= "l4_wkup_clk_mux_ck",
4306 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4309 /* l4_wkup -> scrm */
4310 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm
= {
4311 .master
= &omap44xx_l4_wkup_hwmod
,
4312 .slave
= &omap44xx_scrm_hwmod
,
4313 .clk
= "l4_wkup_clk_mux_ck",
4314 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4317 /* l3_main_2 -> sl2if */
4318 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if
= {
4319 .master
= &omap44xx_l3_main_2_hwmod
,
4320 .slave
= &omap44xx_sl2if_hwmod
,
4322 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4325 static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs
[] = {
4327 .pa_start
= 0x4012c000,
4328 .pa_end
= 0x4012c3ff,
4329 .flags
= ADDR_TYPE_RT
4334 /* l4_abe -> slimbus1 */
4335 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1
= {
4336 .master
= &omap44xx_l4_abe_hwmod
,
4337 .slave
= &omap44xx_slimbus1_hwmod
,
4338 .clk
= "ocp_abe_iclk",
4339 .addr
= omap44xx_slimbus1_addrs
,
4340 .user
= OCP_USER_MPU
,
4343 static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs
[] = {
4345 .pa_start
= 0x4902c000,
4346 .pa_end
= 0x4902c3ff,
4347 .flags
= ADDR_TYPE_RT
4352 /* l4_abe -> slimbus1 (dma) */
4353 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma
= {
4354 .master
= &omap44xx_l4_abe_hwmod
,
4355 .slave
= &omap44xx_slimbus1_hwmod
,
4356 .clk
= "ocp_abe_iclk",
4357 .addr
= omap44xx_slimbus1_dma_addrs
,
4358 .user
= OCP_USER_SDMA
,
4361 static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs
[] = {
4363 .pa_start
= 0x48076000,
4364 .pa_end
= 0x480763ff,
4365 .flags
= ADDR_TYPE_RT
4370 /* l4_per -> slimbus2 */
4371 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2
= {
4372 .master
= &omap44xx_l4_per_hwmod
,
4373 .slave
= &omap44xx_slimbus2_hwmod
,
4375 .addr
= omap44xx_slimbus2_addrs
,
4376 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4379 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs
[] = {
4381 .pa_start
= 0x4a0dd000,
4382 .pa_end
= 0x4a0dd03f,
4383 .flags
= ADDR_TYPE_RT
4388 /* l4_cfg -> smartreflex_core */
4389 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core
= {
4390 .master
= &omap44xx_l4_cfg_hwmod
,
4391 .slave
= &omap44xx_smartreflex_core_hwmod
,
4393 .addr
= omap44xx_smartreflex_core_addrs
,
4394 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4397 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs
[] = {
4399 .pa_start
= 0x4a0db000,
4400 .pa_end
= 0x4a0db03f,
4401 .flags
= ADDR_TYPE_RT
4406 /* l4_cfg -> smartreflex_iva */
4407 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva
= {
4408 .master
= &omap44xx_l4_cfg_hwmod
,
4409 .slave
= &omap44xx_smartreflex_iva_hwmod
,
4411 .addr
= omap44xx_smartreflex_iva_addrs
,
4412 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4415 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs
[] = {
4417 .pa_start
= 0x4a0d9000,
4418 .pa_end
= 0x4a0d903f,
4419 .flags
= ADDR_TYPE_RT
4424 /* l4_cfg -> smartreflex_mpu */
4425 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu
= {
4426 .master
= &omap44xx_l4_cfg_hwmod
,
4427 .slave
= &omap44xx_smartreflex_mpu_hwmod
,
4429 .addr
= omap44xx_smartreflex_mpu_addrs
,
4430 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4433 /* l4_cfg -> spinlock */
4434 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock
= {
4435 .master
= &omap44xx_l4_cfg_hwmod
,
4436 .slave
= &omap44xx_spinlock_hwmod
,
4438 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4441 /* l4_wkup -> timer1 */
4442 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1
= {
4443 .master
= &omap44xx_l4_wkup_hwmod
,
4444 .slave
= &omap44xx_timer1_hwmod
,
4445 .clk
= "l4_wkup_clk_mux_ck",
4446 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4449 /* l4_per -> timer2 */
4450 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2
= {
4451 .master
= &omap44xx_l4_per_hwmod
,
4452 .slave
= &omap44xx_timer2_hwmod
,
4454 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4457 /* l4_per -> timer3 */
4458 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3
= {
4459 .master
= &omap44xx_l4_per_hwmod
,
4460 .slave
= &omap44xx_timer3_hwmod
,
4462 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4465 /* l4_per -> timer4 */
4466 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4
= {
4467 .master
= &omap44xx_l4_per_hwmod
,
4468 .slave
= &omap44xx_timer4_hwmod
,
4470 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4473 /* l4_abe -> timer5 */
4474 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5
= {
4475 .master
= &omap44xx_l4_abe_hwmod
,
4476 .slave
= &omap44xx_timer5_hwmod
,
4477 .clk
= "ocp_abe_iclk",
4478 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4481 /* l4_abe -> timer6 */
4482 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6
= {
4483 .master
= &omap44xx_l4_abe_hwmod
,
4484 .slave
= &omap44xx_timer6_hwmod
,
4485 .clk
= "ocp_abe_iclk",
4486 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4489 /* l4_abe -> timer7 */
4490 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7
= {
4491 .master
= &omap44xx_l4_abe_hwmod
,
4492 .slave
= &omap44xx_timer7_hwmod
,
4493 .clk
= "ocp_abe_iclk",
4494 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4497 /* l4_abe -> timer8 */
4498 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8
= {
4499 .master
= &omap44xx_l4_abe_hwmod
,
4500 .slave
= &omap44xx_timer8_hwmod
,
4501 .clk
= "ocp_abe_iclk",
4502 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4505 /* l4_per -> timer9 */
4506 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9
= {
4507 .master
= &omap44xx_l4_per_hwmod
,
4508 .slave
= &omap44xx_timer9_hwmod
,
4510 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4513 /* l4_per -> timer10 */
4514 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10
= {
4515 .master
= &omap44xx_l4_per_hwmod
,
4516 .slave
= &omap44xx_timer10_hwmod
,
4518 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4521 /* l4_per -> timer11 */
4522 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11
= {
4523 .master
= &omap44xx_l4_per_hwmod
,
4524 .slave
= &omap44xx_timer11_hwmod
,
4526 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4529 /* l4_per -> uart1 */
4530 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1
= {
4531 .master
= &omap44xx_l4_per_hwmod
,
4532 .slave
= &omap44xx_uart1_hwmod
,
4534 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4537 /* l4_per -> uart2 */
4538 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2
= {
4539 .master
= &omap44xx_l4_per_hwmod
,
4540 .slave
= &omap44xx_uart2_hwmod
,
4542 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4545 /* l4_per -> uart3 */
4546 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3
= {
4547 .master
= &omap44xx_l4_per_hwmod
,
4548 .slave
= &omap44xx_uart3_hwmod
,
4550 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4553 /* l4_per -> uart4 */
4554 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4
= {
4555 .master
= &omap44xx_l4_per_hwmod
,
4556 .slave
= &omap44xx_uart4_hwmod
,
4558 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4561 /* l4_cfg -> usb_host_fs */
4562 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs
= {
4563 .master
= &omap44xx_l4_cfg_hwmod
,
4564 .slave
= &omap44xx_usb_host_fs_hwmod
,
4566 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4569 /* l4_cfg -> usb_host_hs */
4570 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs
= {
4571 .master
= &omap44xx_l4_cfg_hwmod
,
4572 .slave
= &omap44xx_usb_host_hs_hwmod
,
4574 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4577 /* l4_cfg -> usb_otg_hs */
4578 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs
= {
4579 .master
= &omap44xx_l4_cfg_hwmod
,
4580 .slave
= &omap44xx_usb_otg_hs_hwmod
,
4582 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4585 /* l4_cfg -> usb_tll_hs */
4586 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs
= {
4587 .master
= &omap44xx_l4_cfg_hwmod
,
4588 .slave
= &omap44xx_usb_tll_hs_hwmod
,
4590 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4593 /* l4_wkup -> wd_timer2 */
4594 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2
= {
4595 .master
= &omap44xx_l4_wkup_hwmod
,
4596 .slave
= &omap44xx_wd_timer2_hwmod
,
4597 .clk
= "l4_wkup_clk_mux_ck",
4598 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4601 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs
[] = {
4603 .pa_start
= 0x40130000,
4604 .pa_end
= 0x4013007f,
4605 .flags
= ADDR_TYPE_RT
4610 /* l4_abe -> wd_timer3 */
4611 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3
= {
4612 .master
= &omap44xx_l4_abe_hwmod
,
4613 .slave
= &omap44xx_wd_timer3_hwmod
,
4614 .clk
= "ocp_abe_iclk",
4615 .addr
= omap44xx_wd_timer3_addrs
,
4616 .user
= OCP_USER_MPU
,
4619 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs
[] = {
4621 .pa_start
= 0x49030000,
4622 .pa_end
= 0x4903007f,
4623 .flags
= ADDR_TYPE_RT
4628 /* l4_abe -> wd_timer3 (dma) */
4629 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma
= {
4630 .master
= &omap44xx_l4_abe_hwmod
,
4631 .slave
= &omap44xx_wd_timer3_hwmod
,
4632 .clk
= "ocp_abe_iclk",
4633 .addr
= omap44xx_wd_timer3_dma_addrs
,
4634 .user
= OCP_USER_SDMA
,
4638 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1
= {
4639 .master
= &omap44xx_mpu_hwmod
,
4640 .slave
= &omap44xx_emif1_hwmod
,
4642 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4646 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2
= {
4647 .master
= &omap44xx_mpu_hwmod
,
4648 .slave
= &omap44xx_emif2_hwmod
,
4650 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4653 static struct omap_hwmod_ocp_if
*omap44xx_hwmod_ocp_ifs
[] __initdata
= {
4654 &omap44xx_l3_main_1__dmm
,
4656 &omap44xx_iva__l3_instr
,
4657 &omap44xx_l3_main_3__l3_instr
,
4658 &omap44xx_ocp_wp_noc__l3_instr
,
4659 &omap44xx_dsp__l3_main_1
,
4660 &omap44xx_dss__l3_main_1
,
4661 &omap44xx_l3_main_2__l3_main_1
,
4662 &omap44xx_l4_cfg__l3_main_1
,
4663 &omap44xx_mmc1__l3_main_1
,
4664 &omap44xx_mmc2__l3_main_1
,
4665 &omap44xx_mpu__l3_main_1
,
4666 &omap44xx_debugss__l3_main_2
,
4667 &omap44xx_dma_system__l3_main_2
,
4668 &omap44xx_fdif__l3_main_2
,
4669 &omap44xx_gpu__l3_main_2
,
4670 &omap44xx_hsi__l3_main_2
,
4671 &omap44xx_ipu__l3_main_2
,
4672 &omap44xx_iss__l3_main_2
,
4673 &omap44xx_iva__l3_main_2
,
4674 &omap44xx_l3_main_1__l3_main_2
,
4675 &omap44xx_l4_cfg__l3_main_2
,
4676 /* &omap44xx_usb_host_fs__l3_main_2, */
4677 &omap44xx_usb_host_hs__l3_main_2
,
4678 &omap44xx_usb_otg_hs__l3_main_2
,
4679 &omap44xx_l3_main_1__l3_main_3
,
4680 &omap44xx_l3_main_2__l3_main_3
,
4681 &omap44xx_l4_cfg__l3_main_3
,
4682 &omap44xx_aess__l4_abe
,
4683 &omap44xx_dsp__l4_abe
,
4684 &omap44xx_l3_main_1__l4_abe
,
4685 &omap44xx_mpu__l4_abe
,
4686 &omap44xx_l3_main_1__l4_cfg
,
4687 &omap44xx_l3_main_2__l4_per
,
4688 &omap44xx_l4_cfg__l4_wkup
,
4689 &omap44xx_mpu__mpu_private
,
4690 &omap44xx_l4_cfg__ocp_wp_noc
,
4691 &omap44xx_l4_abe__aess
,
4692 &omap44xx_l4_abe__aess_dma
,
4693 &omap44xx_l3_main_2__c2c
,
4694 &omap44xx_l4_wkup__counter_32k
,
4695 &omap44xx_l4_cfg__ctrl_module_core
,
4696 &omap44xx_l4_cfg__ctrl_module_pad_core
,
4697 &omap44xx_l4_wkup__ctrl_module_wkup
,
4698 &omap44xx_l4_wkup__ctrl_module_pad_wkup
,
4699 &omap44xx_l3_instr__debugss
,
4700 &omap44xx_l4_cfg__dma_system
,
4701 &omap44xx_l4_abe__dmic
,
4703 /* &omap44xx_dsp__sl2if, */
4704 &omap44xx_l4_cfg__dsp
,
4705 &omap44xx_l3_main_2__dss
,
4706 &omap44xx_l4_per__dss
,
4707 &omap44xx_l3_main_2__dss_dispc
,
4708 &omap44xx_l4_per__dss_dispc
,
4709 &omap44xx_l3_main_2__dss_dsi1
,
4710 &omap44xx_l4_per__dss_dsi1
,
4711 &omap44xx_l3_main_2__dss_dsi2
,
4712 &omap44xx_l4_per__dss_dsi2
,
4713 &omap44xx_l3_main_2__dss_hdmi
,
4714 &omap44xx_l4_per__dss_hdmi
,
4715 &omap44xx_l3_main_2__dss_rfbi
,
4716 &omap44xx_l4_per__dss_rfbi
,
4717 &omap44xx_l3_main_2__dss_venc
,
4718 &omap44xx_l4_per__dss_venc
,
4719 &omap44xx_l4_per__elm
,
4720 &omap44xx_l4_cfg__fdif
,
4721 &omap44xx_l4_wkup__gpio1
,
4722 &omap44xx_l4_per__gpio2
,
4723 &omap44xx_l4_per__gpio3
,
4724 &omap44xx_l4_per__gpio4
,
4725 &omap44xx_l4_per__gpio5
,
4726 &omap44xx_l4_per__gpio6
,
4727 &omap44xx_l3_main_2__gpmc
,
4728 &omap44xx_l3_main_2__gpu
,
4729 &omap44xx_l4_per__hdq1w
,
4730 &omap44xx_l4_cfg__hsi
,
4731 &omap44xx_l4_per__i2c1
,
4732 &omap44xx_l4_per__i2c2
,
4733 &omap44xx_l4_per__i2c3
,
4734 &omap44xx_l4_per__i2c4
,
4735 &omap44xx_l3_main_2__ipu
,
4736 &omap44xx_l3_main_2__iss
,
4737 /* &omap44xx_iva__sl2if, */
4738 &omap44xx_l3_main_2__iva
,
4739 &omap44xx_l4_wkup__kbd
,
4740 &omap44xx_l4_cfg__mailbox
,
4741 &omap44xx_l4_abe__mcasp
,
4742 &omap44xx_l4_abe__mcasp_dma
,
4743 &omap44xx_l4_abe__mcbsp1
,
4744 &omap44xx_l4_abe__mcbsp2
,
4745 &omap44xx_l4_abe__mcbsp3
,
4746 &omap44xx_l4_per__mcbsp4
,
4747 &omap44xx_l4_abe__mcpdm
,
4748 &omap44xx_l4_per__mcspi1
,
4749 &omap44xx_l4_per__mcspi2
,
4750 &omap44xx_l4_per__mcspi3
,
4751 &omap44xx_l4_per__mcspi4
,
4752 &omap44xx_l4_per__mmc1
,
4753 &omap44xx_l4_per__mmc2
,
4754 &omap44xx_l4_per__mmc3
,
4755 &omap44xx_l4_per__mmc4
,
4756 &omap44xx_l4_per__mmc5
,
4757 &omap44xx_l3_main_2__mmu_ipu
,
4758 &omap44xx_l4_cfg__mmu_dsp
,
4759 &omap44xx_l3_main_2__ocmc_ram
,
4760 &omap44xx_l4_cfg__ocp2scp_usb_phy
,
4761 &omap44xx_mpu_private__prcm_mpu
,
4762 &omap44xx_l4_wkup__cm_core_aon
,
4763 &omap44xx_l4_cfg__cm_core
,
4764 &omap44xx_l4_wkup__prm
,
4765 &omap44xx_l4_wkup__scrm
,
4766 /* &omap44xx_l3_main_2__sl2if, */
4767 &omap44xx_l4_abe__slimbus1
,
4768 &omap44xx_l4_abe__slimbus1_dma
,
4769 &omap44xx_l4_per__slimbus2
,
4770 &omap44xx_l4_cfg__smartreflex_core
,
4771 &omap44xx_l4_cfg__smartreflex_iva
,
4772 &omap44xx_l4_cfg__smartreflex_mpu
,
4773 &omap44xx_l4_cfg__spinlock
,
4774 &omap44xx_l4_wkup__timer1
,
4775 &omap44xx_l4_per__timer2
,
4776 &omap44xx_l4_per__timer3
,
4777 &omap44xx_l4_per__timer4
,
4778 &omap44xx_l4_abe__timer5
,
4779 &omap44xx_l4_abe__timer6
,
4780 &omap44xx_l4_abe__timer7
,
4781 &omap44xx_l4_abe__timer8
,
4782 &omap44xx_l4_per__timer9
,
4783 &omap44xx_l4_per__timer10
,
4784 &omap44xx_l4_per__timer11
,
4785 &omap44xx_l4_per__uart1
,
4786 &omap44xx_l4_per__uart2
,
4787 &omap44xx_l4_per__uart3
,
4788 &omap44xx_l4_per__uart4
,
4789 /* &omap44xx_l4_cfg__usb_host_fs, */
4790 &omap44xx_l4_cfg__usb_host_hs
,
4791 &omap44xx_l4_cfg__usb_otg_hs
,
4792 &omap44xx_l4_cfg__usb_tll_hs
,
4793 &omap44xx_l4_wkup__wd_timer2
,
4794 &omap44xx_l4_abe__wd_timer3
,
4795 &omap44xx_l4_abe__wd_timer3_dma
,
4796 &omap44xx_mpu__emif1
,
4797 &omap44xx_mpu__emif2
,
4801 int __init
omap44xx_hwmod_init(void)
4804 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs
);