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" },
778 { .role
= "hdmi_clk", .clk
= "dss_48mhz_clk" },
781 static struct omap_hwmod omap44xx_dss_hdmi_hwmod
= {
783 .class = &omap44xx_hdmi_hwmod_class
,
784 .clkdm_name
= "l3_dss_clkdm",
786 * HDMI audio requires to use no-idle mode. Hence,
787 * set idle mode by software.
789 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_OPT_CLKS_NEEDED
,
790 .mpu_irqs
= omap44xx_dss_hdmi_irqs
,
791 .xlate_irq
= omap4_xlate_irq
,
792 .sdma_reqs
= omap44xx_dss_hdmi_sdma_reqs
,
793 .main_clk
= "dss_48mhz_clk",
796 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
797 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
800 .opt_clks
= dss_hdmi_opt_clks
,
801 .opt_clks_cnt
= ARRAY_SIZE(dss_hdmi_opt_clks
),
802 .parent_hwmod
= &omap44xx_dss_hwmod
,
807 * remote frame buffer interface
810 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc
= {
814 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
815 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
816 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
817 .sysc_fields
= &omap_hwmod_sysc_type1
,
820 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class
= {
822 .sysc
= &omap44xx_rfbi_sysc
,
826 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs
[] = {
827 { .dma_req
= 13 + OMAP44XX_DMA_REQ_START
},
831 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
832 { .role
= "ick", .clk
= "l3_div_ck" },
835 static struct omap_hwmod omap44xx_dss_rfbi_hwmod
= {
837 .class = &omap44xx_rfbi_hwmod_class
,
838 .clkdm_name
= "l3_dss_clkdm",
839 .sdma_reqs
= omap44xx_dss_rfbi_sdma_reqs
,
840 .main_clk
= "dss_dss_clk",
843 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
844 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
847 .opt_clks
= dss_rfbi_opt_clks
,
848 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
849 .parent_hwmod
= &omap44xx_dss_hwmod
,
857 static struct omap_hwmod_class omap44xx_venc_hwmod_class
= {
862 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
863 { .role
= "tv_clk", .clk
= "dss_tv_clk" },
866 static struct omap_hwmod omap44xx_dss_venc_hwmod
= {
868 .class = &omap44xx_venc_hwmod_class
,
869 .clkdm_name
= "l3_dss_clkdm",
870 .main_clk
= "dss_tv_clk",
871 .flags
= HWMOD_OPT_CLKS_NEEDED
,
874 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
875 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
878 .parent_hwmod
= &omap44xx_dss_hwmod
,
879 .opt_clks
= dss_venc_opt_clks
,
880 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
883 /* sha0 HIB2 (the 'P' (public) device) */
884 static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc
= {
888 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
891 static struct omap_hwmod_class omap44xx_sha0_hwmod_class
= {
893 .sysc
= &omap44xx_sha0_sysc
,
896 struct omap_hwmod omap44xx_sha0_hwmod
= {
898 .class = &omap44xx_sha0_hwmod_class
,
899 .clkdm_name
= "l4_secure_clkdm",
900 .main_clk
= "l3_div_ck",
903 .clkctrl_offs
= OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET
,
904 .context_offs
= OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET
,
905 .modulemode
= MODULEMODE_SWCTRL
,
912 * bch error location module
915 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc
= {
919 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
920 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
921 SYSS_HAS_RESET_STATUS
),
922 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
923 .sysc_fields
= &omap_hwmod_sysc_type1
,
926 static struct omap_hwmod_class omap44xx_elm_hwmod_class
= {
928 .sysc
= &omap44xx_elm_sysc
,
932 static struct omap_hwmod omap44xx_elm_hwmod
= {
934 .class = &omap44xx_elm_hwmod_class
,
935 .clkdm_name
= "l4_per_clkdm",
938 .clkctrl_offs
= OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET
,
939 .context_offs
= OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET
,
946 * external memory interface no1
949 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc
= {
953 static struct omap_hwmod_class omap44xx_emif_hwmod_class
= {
955 .sysc
= &omap44xx_emif_sysc
,
959 static struct omap_hwmod omap44xx_emif1_hwmod
= {
961 .class = &omap44xx_emif_hwmod_class
,
962 .clkdm_name
= "l3_emif_clkdm",
963 .flags
= HWMOD_INIT_NO_IDLE
,
964 .main_clk
= "ddrphy_ck",
967 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET
,
968 .context_offs
= OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET
,
969 .modulemode
= MODULEMODE_HWCTRL
,
975 static struct omap_hwmod omap44xx_emif2_hwmod
= {
977 .class = &omap44xx_emif_hwmod_class
,
978 .clkdm_name
= "l3_emif_clkdm",
979 .flags
= HWMOD_INIT_NO_IDLE
,
980 .main_clk
= "ddrphy_ck",
983 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET
,
984 .context_offs
= OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET
,
985 .modulemode
= MODULEMODE_HWCTRL
,
991 Crypto modules AES0/1 belong to:
992 PD_L4_PER power domain
993 CD_L4_SEC clock domain
994 On the L3, the AES modules are mapped to
995 L3_CLK2: Peripherals and multimedia sub clock domain
997 static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc
= {
1001 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
1004 static struct omap_hwmod_class omap44xx_aes_hwmod_class
= {
1006 .sysc
= &omap44xx_aes_sysc
,
1009 static struct omap_hwmod omap44xx_aes1_hwmod
= {
1011 .class = &omap44xx_aes_hwmod_class
,
1012 .clkdm_name
= "l4_secure_clkdm",
1013 .main_clk
= "l3_div_ck",
1016 .context_offs
= OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET
,
1017 .clkctrl_offs
= OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET
,
1018 .modulemode
= MODULEMODE_SWCTRL
,
1023 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1
= {
1024 .master
= &omap44xx_l4_per_hwmod
,
1025 .slave
= &omap44xx_aes1_hwmod
,
1027 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1030 static struct omap_hwmod omap44xx_aes2_hwmod
= {
1032 .class = &omap44xx_aes_hwmod_class
,
1033 .clkdm_name
= "l4_secure_clkdm",
1034 .main_clk
= "l3_div_ck",
1037 .context_offs
= OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET
,
1038 .clkctrl_offs
= OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET
,
1039 .modulemode
= MODULEMODE_SWCTRL
,
1044 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2
= {
1045 .master
= &omap44xx_l4_per_hwmod
,
1046 .slave
= &omap44xx_aes2_hwmod
,
1048 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1052 * 'des' class for DES3DES module
1054 static struct omap_hwmod_class_sysconfig omap44xx_des_sysc
= {
1058 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
1061 static struct omap_hwmod_class omap44xx_des_hwmod_class
= {
1063 .sysc
= &omap44xx_des_sysc
,
1066 static struct omap_hwmod omap44xx_des_hwmod
= {
1068 .class = &omap44xx_des_hwmod_class
,
1069 .clkdm_name
= "l4_secure_clkdm",
1070 .main_clk
= "l3_div_ck",
1073 .context_offs
= OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET
,
1074 .clkctrl_offs
= OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET
,
1075 .modulemode
= MODULEMODE_SWCTRL
,
1080 struct omap_hwmod_ocp_if omap44xx_l3_main_2__des
= {
1081 .master
= &omap44xx_l3_main_2_hwmod
,
1082 .slave
= &omap44xx_des_hwmod
,
1084 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1089 * face detection hw accelerator module
1092 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc
= {
1094 .sysc_offs
= 0x0010,
1096 * FDIF needs 100 OCP clk cycles delay after a softreset before
1097 * accessing sysconfig again.
1098 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1099 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1101 * TODO: Indicate errata when available.
1104 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1105 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1106 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1107 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1108 .sysc_fields
= &omap_hwmod_sysc_type2
,
1111 static struct omap_hwmod_class omap44xx_fdif_hwmod_class
= {
1113 .sysc
= &omap44xx_fdif_sysc
,
1117 static struct omap_hwmod omap44xx_fdif_hwmod
= {
1119 .class = &omap44xx_fdif_hwmod_class
,
1120 .clkdm_name
= "iss_clkdm",
1121 .main_clk
= "fdif_fck",
1124 .clkctrl_offs
= OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET
,
1125 .context_offs
= OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET
,
1126 .modulemode
= MODULEMODE_SWCTRL
,
1133 * general purpose io module
1136 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc
= {
1138 .sysc_offs
= 0x0010,
1139 .syss_offs
= 0x0114,
1140 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
1141 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1142 SYSS_HAS_RESET_STATUS
),
1143 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1145 .sysc_fields
= &omap_hwmod_sysc_type1
,
1148 static struct omap_hwmod_class omap44xx_gpio_hwmod_class
= {
1150 .sysc
= &omap44xx_gpio_sysc
,
1155 static struct omap_gpio_dev_attr gpio_dev_attr
= {
1161 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
1162 { .role
= "dbclk", .clk
= "gpio1_dbclk" },
1165 static struct omap_hwmod omap44xx_gpio1_hwmod
= {
1167 .class = &omap44xx_gpio_hwmod_class
,
1168 .clkdm_name
= "l4_wkup_clkdm",
1169 .main_clk
= "l4_wkup_clk_mux_ck",
1172 .clkctrl_offs
= OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET
,
1173 .context_offs
= OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET
,
1174 .modulemode
= MODULEMODE_HWCTRL
,
1177 .opt_clks
= gpio1_opt_clks
,
1178 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
1179 .dev_attr
= &gpio_dev_attr
,
1183 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
1184 { .role
= "dbclk", .clk
= "gpio2_dbclk" },
1187 static struct omap_hwmod omap44xx_gpio2_hwmod
= {
1189 .class = &omap44xx_gpio_hwmod_class
,
1190 .clkdm_name
= "l4_per_clkdm",
1191 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1192 .main_clk
= "l4_div_ck",
1195 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET
,
1196 .context_offs
= OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET
,
1197 .modulemode
= MODULEMODE_HWCTRL
,
1200 .opt_clks
= gpio2_opt_clks
,
1201 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
1202 .dev_attr
= &gpio_dev_attr
,
1206 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
1207 { .role
= "dbclk", .clk
= "gpio3_dbclk" },
1210 static struct omap_hwmod omap44xx_gpio3_hwmod
= {
1212 .class = &omap44xx_gpio_hwmod_class
,
1213 .clkdm_name
= "l4_per_clkdm",
1214 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1215 .main_clk
= "l4_div_ck",
1218 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET
,
1219 .context_offs
= OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET
,
1220 .modulemode
= MODULEMODE_HWCTRL
,
1223 .opt_clks
= gpio3_opt_clks
,
1224 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
1225 .dev_attr
= &gpio_dev_attr
,
1229 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
1230 { .role
= "dbclk", .clk
= "gpio4_dbclk" },
1233 static struct omap_hwmod omap44xx_gpio4_hwmod
= {
1235 .class = &omap44xx_gpio_hwmod_class
,
1236 .clkdm_name
= "l4_per_clkdm",
1237 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1238 .main_clk
= "l4_div_ck",
1241 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET
,
1242 .context_offs
= OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET
,
1243 .modulemode
= MODULEMODE_HWCTRL
,
1246 .opt_clks
= gpio4_opt_clks
,
1247 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1248 .dev_attr
= &gpio_dev_attr
,
1252 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1253 { .role
= "dbclk", .clk
= "gpio5_dbclk" },
1256 static struct omap_hwmod omap44xx_gpio5_hwmod
= {
1258 .class = &omap44xx_gpio_hwmod_class
,
1259 .clkdm_name
= "l4_per_clkdm",
1260 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1261 .main_clk
= "l4_div_ck",
1264 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET
,
1265 .context_offs
= OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET
,
1266 .modulemode
= MODULEMODE_HWCTRL
,
1269 .opt_clks
= gpio5_opt_clks
,
1270 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1271 .dev_attr
= &gpio_dev_attr
,
1275 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
1276 { .role
= "dbclk", .clk
= "gpio6_dbclk" },
1279 static struct omap_hwmod omap44xx_gpio6_hwmod
= {
1281 .class = &omap44xx_gpio_hwmod_class
,
1282 .clkdm_name
= "l4_per_clkdm",
1283 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1284 .main_clk
= "l4_div_ck",
1287 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET
,
1288 .context_offs
= OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET
,
1289 .modulemode
= MODULEMODE_HWCTRL
,
1292 .opt_clks
= gpio6_opt_clks
,
1293 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1294 .dev_attr
= &gpio_dev_attr
,
1299 * general purpose memory controller
1302 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc
= {
1304 .sysc_offs
= 0x0010,
1305 .syss_offs
= 0x0014,
1306 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1307 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1308 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1309 .sysc_fields
= &omap_hwmod_sysc_type1
,
1312 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class
= {
1314 .sysc
= &omap44xx_gpmc_sysc
,
1318 static struct omap_hwmod omap44xx_gpmc_hwmod
= {
1320 .class = &omap44xx_gpmc_hwmod_class
,
1321 .clkdm_name
= "l3_2_clkdm",
1322 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1323 .flags
= DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
1326 .clkctrl_offs
= OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET
,
1327 .context_offs
= OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET
,
1328 .modulemode
= MODULEMODE_HWCTRL
,
1335 * 2d/3d graphics accelerator
1338 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc
= {
1339 .rev_offs
= 0x1fc00,
1340 .sysc_offs
= 0x1fc10,
1341 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
1342 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1343 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1344 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1345 .sysc_fields
= &omap_hwmod_sysc_type2
,
1348 static struct omap_hwmod_class omap44xx_gpu_hwmod_class
= {
1350 .sysc
= &omap44xx_gpu_sysc
,
1354 static struct omap_hwmod omap44xx_gpu_hwmod
= {
1356 .class = &omap44xx_gpu_hwmod_class
,
1357 .clkdm_name
= "l3_gfx_clkdm",
1358 .main_clk
= "sgx_clk_mux",
1361 .clkctrl_offs
= OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET
,
1362 .context_offs
= OMAP4_RM_GFX_GFX_CONTEXT_OFFSET
,
1363 .modulemode
= MODULEMODE_SWCTRL
,
1370 * hdq / 1-wire serial interface controller
1373 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc
= {
1375 .sysc_offs
= 0x0014,
1376 .syss_offs
= 0x0018,
1377 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SOFTRESET
|
1378 SYSS_HAS_RESET_STATUS
),
1379 .sysc_fields
= &omap_hwmod_sysc_type1
,
1382 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class
= {
1384 .sysc
= &omap44xx_hdq1w_sysc
,
1388 static struct omap_hwmod omap44xx_hdq1w_hwmod
= {
1390 .class = &omap44xx_hdq1w_hwmod_class
,
1391 .clkdm_name
= "l4_per_clkdm",
1392 .flags
= HWMOD_INIT_NO_RESET
, /* XXX temporary */
1393 .main_clk
= "func_12m_fclk",
1396 .clkctrl_offs
= OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET
,
1397 .context_offs
= OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET
,
1398 .modulemode
= MODULEMODE_SWCTRL
,
1405 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1409 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc
= {
1411 .sysc_offs
= 0x0010,
1412 .syss_offs
= 0x0014,
1413 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_EMUFREE
|
1414 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
1415 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1416 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1417 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1418 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1419 .sysc_fields
= &omap_hwmod_sysc_type1
,
1422 static struct omap_hwmod_class omap44xx_hsi_hwmod_class
= {
1424 .sysc
= &omap44xx_hsi_sysc
,
1428 static struct omap_hwmod omap44xx_hsi_hwmod
= {
1430 .class = &omap44xx_hsi_hwmod_class
,
1431 .clkdm_name
= "l3_init_clkdm",
1432 .main_clk
= "hsi_fck",
1435 .clkctrl_offs
= OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET
,
1436 .context_offs
= OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET
,
1437 .modulemode
= MODULEMODE_HWCTRL
,
1444 * multimaster high-speed i2c controller
1447 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc
= {
1448 .sysc_offs
= 0x0010,
1449 .syss_offs
= 0x0090,
1450 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1451 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1452 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1453 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1455 .sysc_fields
= &omap_hwmod_sysc_type1
,
1458 static struct omap_hwmod_class omap44xx_i2c_hwmod_class
= {
1460 .sysc
= &omap44xx_i2c_sysc
,
1461 .rev
= OMAP_I2C_IP_VERSION_2
,
1462 .reset
= &omap_i2c_reset
,
1465 static struct omap_i2c_dev_attr i2c_dev_attr
= {
1466 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
1470 static struct omap_hwmod omap44xx_i2c1_hwmod
= {
1472 .class = &omap44xx_i2c_hwmod_class
,
1473 .clkdm_name
= "l4_per_clkdm",
1474 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1475 .main_clk
= "func_96m_fclk",
1478 .clkctrl_offs
= OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET
,
1479 .context_offs
= OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET
,
1480 .modulemode
= MODULEMODE_SWCTRL
,
1483 .dev_attr
= &i2c_dev_attr
,
1487 static struct omap_hwmod omap44xx_i2c2_hwmod
= {
1489 .class = &omap44xx_i2c_hwmod_class
,
1490 .clkdm_name
= "l4_per_clkdm",
1491 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1492 .main_clk
= "func_96m_fclk",
1495 .clkctrl_offs
= OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET
,
1496 .context_offs
= OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET
,
1497 .modulemode
= MODULEMODE_SWCTRL
,
1500 .dev_attr
= &i2c_dev_attr
,
1504 static struct omap_hwmod omap44xx_i2c3_hwmod
= {
1506 .class = &omap44xx_i2c_hwmod_class
,
1507 .clkdm_name
= "l4_per_clkdm",
1508 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1509 .main_clk
= "func_96m_fclk",
1512 .clkctrl_offs
= OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET
,
1513 .context_offs
= OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET
,
1514 .modulemode
= MODULEMODE_SWCTRL
,
1517 .dev_attr
= &i2c_dev_attr
,
1521 static struct omap_hwmod omap44xx_i2c4_hwmod
= {
1523 .class = &omap44xx_i2c_hwmod_class
,
1524 .clkdm_name
= "l4_per_clkdm",
1525 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1526 .main_clk
= "func_96m_fclk",
1529 .clkctrl_offs
= OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET
,
1530 .context_offs
= OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET
,
1531 .modulemode
= MODULEMODE_SWCTRL
,
1534 .dev_attr
= &i2c_dev_attr
,
1539 * imaging processor unit
1542 static struct omap_hwmod_class omap44xx_ipu_hwmod_class
= {
1547 static struct omap_hwmod_rst_info omap44xx_ipu_resets
[] = {
1548 { .name
= "cpu0", .rst_shift
= 0 },
1549 { .name
= "cpu1", .rst_shift
= 1 },
1552 static struct omap_hwmod omap44xx_ipu_hwmod
= {
1554 .class = &omap44xx_ipu_hwmod_class
,
1555 .clkdm_name
= "ducati_clkdm",
1556 .rst_lines
= omap44xx_ipu_resets
,
1557 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_ipu_resets
),
1558 .main_clk
= "ducati_clk_mux_ck",
1561 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
1562 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
1563 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
1564 .modulemode
= MODULEMODE_HWCTRL
,
1571 * external images sensor pixel data processor
1574 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc
= {
1576 .sysc_offs
= 0x0010,
1578 * ISS needs 100 OCP clk cycles delay after a softreset before
1579 * accessing sysconfig again.
1580 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1581 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1583 * TODO: Indicate errata when available.
1586 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1587 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1588 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1589 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1590 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1591 .sysc_fields
= &omap_hwmod_sysc_type2
,
1594 static struct omap_hwmod_class omap44xx_iss_hwmod_class
= {
1596 .sysc
= &omap44xx_iss_sysc
,
1600 static struct omap_hwmod_opt_clk iss_opt_clks
[] = {
1601 { .role
= "ctrlclk", .clk
= "iss_ctrlclk" },
1604 static struct omap_hwmod omap44xx_iss_hwmod
= {
1606 .class = &omap44xx_iss_hwmod_class
,
1607 .clkdm_name
= "iss_clkdm",
1608 .main_clk
= "ducati_clk_mux_ck",
1611 .clkctrl_offs
= OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET
,
1612 .context_offs
= OMAP4_RM_CAM_ISS_CONTEXT_OFFSET
,
1613 .modulemode
= MODULEMODE_SWCTRL
,
1616 .opt_clks
= iss_opt_clks
,
1617 .opt_clks_cnt
= ARRAY_SIZE(iss_opt_clks
),
1622 * multi-standard video encoder/decoder hardware accelerator
1625 static struct omap_hwmod_class omap44xx_iva_hwmod_class
= {
1630 static struct omap_hwmod_rst_info omap44xx_iva_resets
[] = {
1631 { .name
= "seq0", .rst_shift
= 0 },
1632 { .name
= "seq1", .rst_shift
= 1 },
1633 { .name
= "logic", .rst_shift
= 2 },
1636 static struct omap_hwmod omap44xx_iva_hwmod
= {
1638 .class = &omap44xx_iva_hwmod_class
,
1639 .clkdm_name
= "ivahd_clkdm",
1640 .rst_lines
= omap44xx_iva_resets
,
1641 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_iva_resets
),
1642 .main_clk
= "dpll_iva_m5x2_ck",
1645 .clkctrl_offs
= OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET
,
1646 .rstctrl_offs
= OMAP4_RM_IVAHD_RSTCTRL_OFFSET
,
1647 .context_offs
= OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET
,
1648 .modulemode
= MODULEMODE_HWCTRL
,
1655 * keyboard controller
1658 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc
= {
1660 .sysc_offs
= 0x0010,
1661 .syss_offs
= 0x0014,
1662 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1663 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
1664 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1665 SYSS_HAS_RESET_STATUS
),
1666 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1667 .sysc_fields
= &omap_hwmod_sysc_type1
,
1670 static struct omap_hwmod_class omap44xx_kbd_hwmod_class
= {
1672 .sysc
= &omap44xx_kbd_sysc
,
1676 static struct omap_hwmod omap44xx_kbd_hwmod
= {
1678 .class = &omap44xx_kbd_hwmod_class
,
1679 .clkdm_name
= "l4_wkup_clkdm",
1680 .main_clk
= "sys_32k_ck",
1683 .clkctrl_offs
= OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET
,
1684 .context_offs
= OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET
,
1685 .modulemode
= MODULEMODE_SWCTRL
,
1692 * mailbox module allowing communication between the on-chip processors using a
1693 * queued mailbox-interrupt mechanism.
1696 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc
= {
1698 .sysc_offs
= 0x0010,
1699 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1700 SYSC_HAS_SOFTRESET
),
1701 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1702 .sysc_fields
= &omap_hwmod_sysc_type2
,
1705 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class
= {
1707 .sysc
= &omap44xx_mailbox_sysc
,
1711 static struct omap_hwmod omap44xx_mailbox_hwmod
= {
1713 .class = &omap44xx_mailbox_hwmod_class
,
1714 .clkdm_name
= "l4_cfg_clkdm",
1717 .clkctrl_offs
= OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET
,
1718 .context_offs
= OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET
,
1725 * multi-channel audio serial port controller
1728 /* The IP is not compliant to type1 / type2 scheme */
1729 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp
= {
1733 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc
= {
1734 .sysc_offs
= 0x0004,
1735 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1736 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1738 .sysc_fields
= &omap_hwmod_sysc_type_mcasp
,
1741 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class
= {
1743 .sysc
= &omap44xx_mcasp_sysc
,
1747 static struct omap_hwmod omap44xx_mcasp_hwmod
= {
1749 .class = &omap44xx_mcasp_hwmod_class
,
1750 .clkdm_name
= "abe_clkdm",
1751 .main_clk
= "func_mcasp_abe_gfclk",
1754 .clkctrl_offs
= OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET
,
1755 .context_offs
= OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET
,
1756 .modulemode
= MODULEMODE_SWCTRL
,
1763 * multi channel buffered serial port controller
1766 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc
= {
1767 .sysc_offs
= 0x008c,
1768 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1769 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1770 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1771 .sysc_fields
= &omap_hwmod_sysc_type1
,
1774 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class
= {
1776 .sysc
= &omap44xx_mcbsp_sysc
,
1777 .rev
= MCBSP_CONFIG_TYPE4
,
1781 static struct omap_hwmod_opt_clk mcbsp1_opt_clks
[] = {
1782 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1783 { .role
= "prcm_fck", .clk
= "mcbsp1_sync_mux_ck" },
1786 static struct omap_hwmod omap44xx_mcbsp1_hwmod
= {
1788 .class = &omap44xx_mcbsp_hwmod_class
,
1789 .clkdm_name
= "abe_clkdm",
1790 .main_clk
= "func_mcbsp1_gfclk",
1793 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET
,
1794 .context_offs
= OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET
,
1795 .modulemode
= MODULEMODE_SWCTRL
,
1798 .opt_clks
= mcbsp1_opt_clks
,
1799 .opt_clks_cnt
= ARRAY_SIZE(mcbsp1_opt_clks
),
1803 static struct omap_hwmod_opt_clk mcbsp2_opt_clks
[] = {
1804 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1805 { .role
= "prcm_fck", .clk
= "mcbsp2_sync_mux_ck" },
1808 static struct omap_hwmod omap44xx_mcbsp2_hwmod
= {
1810 .class = &omap44xx_mcbsp_hwmod_class
,
1811 .clkdm_name
= "abe_clkdm",
1812 .main_clk
= "func_mcbsp2_gfclk",
1815 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET
,
1816 .context_offs
= OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET
,
1817 .modulemode
= MODULEMODE_SWCTRL
,
1820 .opt_clks
= mcbsp2_opt_clks
,
1821 .opt_clks_cnt
= ARRAY_SIZE(mcbsp2_opt_clks
),
1825 static struct omap_hwmod_opt_clk mcbsp3_opt_clks
[] = {
1826 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1827 { .role
= "prcm_fck", .clk
= "mcbsp3_sync_mux_ck" },
1830 static struct omap_hwmod omap44xx_mcbsp3_hwmod
= {
1832 .class = &omap44xx_mcbsp_hwmod_class
,
1833 .clkdm_name
= "abe_clkdm",
1834 .main_clk
= "func_mcbsp3_gfclk",
1837 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET
,
1838 .context_offs
= OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET
,
1839 .modulemode
= MODULEMODE_SWCTRL
,
1842 .opt_clks
= mcbsp3_opt_clks
,
1843 .opt_clks_cnt
= ARRAY_SIZE(mcbsp3_opt_clks
),
1847 static struct omap_hwmod_opt_clk mcbsp4_opt_clks
[] = {
1848 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1849 { .role
= "prcm_fck", .clk
= "mcbsp4_sync_mux_ck" },
1852 static struct omap_hwmod omap44xx_mcbsp4_hwmod
= {
1854 .class = &omap44xx_mcbsp_hwmod_class
,
1855 .clkdm_name
= "l4_per_clkdm",
1856 .main_clk
= "per_mcbsp4_gfclk",
1859 .clkctrl_offs
= OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET
,
1860 .context_offs
= OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET
,
1861 .modulemode
= MODULEMODE_SWCTRL
,
1864 .opt_clks
= mcbsp4_opt_clks
,
1865 .opt_clks_cnt
= ARRAY_SIZE(mcbsp4_opt_clks
),
1870 * multi channel pdm controller (proprietary interface with phoenix power
1874 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc
= {
1876 .sysc_offs
= 0x0010,
1877 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1878 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1879 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1881 .sysc_fields
= &omap_hwmod_sysc_type2
,
1884 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class
= {
1886 .sysc
= &omap44xx_mcpdm_sysc
,
1890 static struct omap_hwmod omap44xx_mcpdm_hwmod
= {
1892 .class = &omap44xx_mcpdm_hwmod_class
,
1893 .clkdm_name
= "abe_clkdm",
1895 * It's suspected that the McPDM requires an off-chip main
1896 * functional clock, controlled via I2C. This IP block is
1897 * currently reset very early during boot, before I2C is
1898 * available, so it doesn't seem that we have any choice in
1899 * the kernel other than to avoid resetting it.
1901 * Also, McPDM needs to be configured to NO_IDLE mode when it
1902 * is in used otherwise vital clocks will be gated which
1903 * results 'slow motion' audio playback.
1905 .flags
= HWMOD_EXT_OPT_MAIN_CLK
| HWMOD_SWSUP_SIDLE
,
1906 .main_clk
= "pad_clks_ck",
1909 .clkctrl_offs
= OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET
,
1910 .context_offs
= OMAP4_RM_ABE_PDM_CONTEXT_OFFSET
,
1911 .modulemode
= MODULEMODE_SWCTRL
,
1918 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1922 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc
= {
1924 .sysc_offs
= 0x0010,
1925 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1926 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1927 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1929 .sysc_fields
= &omap_hwmod_sysc_type2
,
1932 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class
= {
1934 .sysc
= &omap44xx_mcspi_sysc
,
1935 .rev
= OMAP4_MCSPI_REV
,
1939 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs
[] = {
1940 { .name
= "tx0", .dma_req
= 34 + OMAP44XX_DMA_REQ_START
},
1941 { .name
= "rx0", .dma_req
= 35 + OMAP44XX_DMA_REQ_START
},
1942 { .name
= "tx1", .dma_req
= 36 + OMAP44XX_DMA_REQ_START
},
1943 { .name
= "rx1", .dma_req
= 37 + OMAP44XX_DMA_REQ_START
},
1944 { .name
= "tx2", .dma_req
= 38 + OMAP44XX_DMA_REQ_START
},
1945 { .name
= "rx2", .dma_req
= 39 + OMAP44XX_DMA_REQ_START
},
1946 { .name
= "tx3", .dma_req
= 40 + OMAP44XX_DMA_REQ_START
},
1947 { .name
= "rx3", .dma_req
= 41 + OMAP44XX_DMA_REQ_START
},
1951 /* mcspi1 dev_attr */
1952 static struct omap2_mcspi_dev_attr mcspi1_dev_attr
= {
1953 .num_chipselect
= 4,
1956 static struct omap_hwmod omap44xx_mcspi1_hwmod
= {
1958 .class = &omap44xx_mcspi_hwmod_class
,
1959 .clkdm_name
= "l4_per_clkdm",
1960 .sdma_reqs
= omap44xx_mcspi1_sdma_reqs
,
1961 .main_clk
= "func_48m_fclk",
1964 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET
,
1965 .context_offs
= OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET
,
1966 .modulemode
= MODULEMODE_SWCTRL
,
1969 .dev_attr
= &mcspi1_dev_attr
,
1973 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs
[] = {
1974 { .name
= "tx0", .dma_req
= 42 + OMAP44XX_DMA_REQ_START
},
1975 { .name
= "rx0", .dma_req
= 43 + OMAP44XX_DMA_REQ_START
},
1976 { .name
= "tx1", .dma_req
= 44 + OMAP44XX_DMA_REQ_START
},
1977 { .name
= "rx1", .dma_req
= 45 + OMAP44XX_DMA_REQ_START
},
1981 /* mcspi2 dev_attr */
1982 static struct omap2_mcspi_dev_attr mcspi2_dev_attr
= {
1983 .num_chipselect
= 2,
1986 static struct omap_hwmod omap44xx_mcspi2_hwmod
= {
1988 .class = &omap44xx_mcspi_hwmod_class
,
1989 .clkdm_name
= "l4_per_clkdm",
1990 .sdma_reqs
= omap44xx_mcspi2_sdma_reqs
,
1991 .main_clk
= "func_48m_fclk",
1994 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET
,
1995 .context_offs
= OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET
,
1996 .modulemode
= MODULEMODE_SWCTRL
,
1999 .dev_attr
= &mcspi2_dev_attr
,
2003 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs
[] = {
2004 { .name
= "tx0", .dma_req
= 14 + OMAP44XX_DMA_REQ_START
},
2005 { .name
= "rx0", .dma_req
= 15 + OMAP44XX_DMA_REQ_START
},
2006 { .name
= "tx1", .dma_req
= 22 + OMAP44XX_DMA_REQ_START
},
2007 { .name
= "rx1", .dma_req
= 23 + OMAP44XX_DMA_REQ_START
},
2011 /* mcspi3 dev_attr */
2012 static struct omap2_mcspi_dev_attr mcspi3_dev_attr
= {
2013 .num_chipselect
= 2,
2016 static struct omap_hwmod omap44xx_mcspi3_hwmod
= {
2018 .class = &omap44xx_mcspi_hwmod_class
,
2019 .clkdm_name
= "l4_per_clkdm",
2020 .sdma_reqs
= omap44xx_mcspi3_sdma_reqs
,
2021 .main_clk
= "func_48m_fclk",
2024 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET
,
2025 .context_offs
= OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET
,
2026 .modulemode
= MODULEMODE_SWCTRL
,
2029 .dev_attr
= &mcspi3_dev_attr
,
2033 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs
[] = {
2034 { .name
= "tx0", .dma_req
= 69 + OMAP44XX_DMA_REQ_START
},
2035 { .name
= "rx0", .dma_req
= 70 + OMAP44XX_DMA_REQ_START
},
2039 /* mcspi4 dev_attr */
2040 static struct omap2_mcspi_dev_attr mcspi4_dev_attr
= {
2041 .num_chipselect
= 1,
2044 static struct omap_hwmod omap44xx_mcspi4_hwmod
= {
2046 .class = &omap44xx_mcspi_hwmod_class
,
2047 .clkdm_name
= "l4_per_clkdm",
2048 .sdma_reqs
= omap44xx_mcspi4_sdma_reqs
,
2049 .main_clk
= "func_48m_fclk",
2052 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET
,
2053 .context_offs
= OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET
,
2054 .modulemode
= MODULEMODE_SWCTRL
,
2057 .dev_attr
= &mcspi4_dev_attr
,
2062 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
2065 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc
= {
2067 .sysc_offs
= 0x0010,
2068 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
2069 SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
2070 SYSC_HAS_SOFTRESET
),
2071 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2072 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2073 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2074 .sysc_fields
= &omap_hwmod_sysc_type2
,
2077 static struct omap_hwmod_class omap44xx_mmc_hwmod_class
= {
2079 .sysc
= &omap44xx_mmc_sysc
,
2083 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs
[] = {
2084 { .name
= "tx", .dma_req
= 60 + OMAP44XX_DMA_REQ_START
},
2085 { .name
= "rx", .dma_req
= 61 + OMAP44XX_DMA_REQ_START
},
2090 static struct omap_hsmmc_dev_attr mmc1_dev_attr
= {
2091 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
2094 static struct omap_hwmod omap44xx_mmc1_hwmod
= {
2096 .class = &omap44xx_mmc_hwmod_class
,
2097 .clkdm_name
= "l3_init_clkdm",
2098 .sdma_reqs
= omap44xx_mmc1_sdma_reqs
,
2099 .main_clk
= "hsmmc1_fclk",
2102 .clkctrl_offs
= OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET
,
2103 .context_offs
= OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET
,
2104 .modulemode
= MODULEMODE_SWCTRL
,
2107 .dev_attr
= &mmc1_dev_attr
,
2111 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs
[] = {
2112 { .name
= "tx", .dma_req
= 46 + OMAP44XX_DMA_REQ_START
},
2113 { .name
= "rx", .dma_req
= 47 + OMAP44XX_DMA_REQ_START
},
2117 static struct omap_hwmod omap44xx_mmc2_hwmod
= {
2119 .class = &omap44xx_mmc_hwmod_class
,
2120 .clkdm_name
= "l3_init_clkdm",
2121 .sdma_reqs
= omap44xx_mmc2_sdma_reqs
,
2122 .main_clk
= "hsmmc2_fclk",
2125 .clkctrl_offs
= OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET
,
2126 .context_offs
= OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET
,
2127 .modulemode
= MODULEMODE_SWCTRL
,
2133 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs
[] = {
2134 { .name
= "tx", .dma_req
= 76 + OMAP44XX_DMA_REQ_START
},
2135 { .name
= "rx", .dma_req
= 77 + OMAP44XX_DMA_REQ_START
},
2139 static struct omap_hwmod omap44xx_mmc3_hwmod
= {
2141 .class = &omap44xx_mmc_hwmod_class
,
2142 .clkdm_name
= "l4_per_clkdm",
2143 .sdma_reqs
= omap44xx_mmc3_sdma_reqs
,
2144 .main_clk
= "func_48m_fclk",
2147 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET
,
2148 .context_offs
= OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET
,
2149 .modulemode
= MODULEMODE_SWCTRL
,
2155 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs
[] = {
2156 { .name
= "tx", .dma_req
= 56 + OMAP44XX_DMA_REQ_START
},
2157 { .name
= "rx", .dma_req
= 57 + OMAP44XX_DMA_REQ_START
},
2161 static struct omap_hwmod omap44xx_mmc4_hwmod
= {
2163 .class = &omap44xx_mmc_hwmod_class
,
2164 .clkdm_name
= "l4_per_clkdm",
2165 .sdma_reqs
= omap44xx_mmc4_sdma_reqs
,
2166 .main_clk
= "func_48m_fclk",
2169 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET
,
2170 .context_offs
= OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET
,
2171 .modulemode
= MODULEMODE_SWCTRL
,
2177 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs
[] = {
2178 { .name
= "tx", .dma_req
= 58 + OMAP44XX_DMA_REQ_START
},
2179 { .name
= "rx", .dma_req
= 59 + OMAP44XX_DMA_REQ_START
},
2183 static struct omap_hwmod omap44xx_mmc5_hwmod
= {
2185 .class = &omap44xx_mmc_hwmod_class
,
2186 .clkdm_name
= "l4_per_clkdm",
2187 .sdma_reqs
= omap44xx_mmc5_sdma_reqs
,
2188 .main_clk
= "func_48m_fclk",
2191 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET
,
2192 .context_offs
= OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET
,
2193 .modulemode
= MODULEMODE_SWCTRL
,
2200 * The memory management unit performs virtual to physical address translation
2201 * for its requestors.
2204 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
2208 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2209 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2210 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2211 .sysc_fields
= &omap_hwmod_sysc_type1
,
2214 static struct omap_hwmod_class omap44xx_mmu_hwmod_class
= {
2221 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
;
2222 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets
[] = {
2223 { .name
= "mmu_cache", .rst_shift
= 2 },
2226 /* l3_main_2 -> mmu_ipu */
2227 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu
= {
2228 .master
= &omap44xx_l3_main_2_hwmod
,
2229 .slave
= &omap44xx_mmu_ipu_hwmod
,
2231 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2234 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
= {
2236 .class = &omap44xx_mmu_hwmod_class
,
2237 .clkdm_name
= "ducati_clkdm",
2238 .rst_lines
= omap44xx_mmu_ipu_resets
,
2239 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_ipu_resets
),
2240 .main_clk
= "ducati_clk_mux_ck",
2243 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
2244 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
2245 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
2246 .modulemode
= MODULEMODE_HWCTRL
,
2253 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
;
2254 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets
[] = {
2255 { .name
= "mmu_cache", .rst_shift
= 1 },
2259 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp
= {
2260 .master
= &omap44xx_l4_cfg_hwmod
,
2261 .slave
= &omap44xx_mmu_dsp_hwmod
,
2263 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2266 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
= {
2268 .class = &omap44xx_mmu_hwmod_class
,
2269 .clkdm_name
= "tesla_clkdm",
2270 .rst_lines
= omap44xx_mmu_dsp_resets
,
2271 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_dsp_resets
),
2272 .main_clk
= "dpll_iva_m4x2_ck",
2275 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
2276 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
2277 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
2278 .modulemode
= MODULEMODE_HWCTRL
,
2288 static struct omap_hwmod_class omap44xx_mpu_hwmod_class
= {
2293 static struct omap_hwmod omap44xx_mpu_hwmod
= {
2295 .class = &omap44xx_mpu_hwmod_class
,
2296 .clkdm_name
= "mpuss_clkdm",
2297 .flags
= HWMOD_INIT_NO_IDLE
,
2298 .main_clk
= "dpll_mpu_m2_ck",
2301 .clkctrl_offs
= OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET
,
2302 .context_offs
= OMAP4_RM_MPU_MPU_CONTEXT_OFFSET
,
2309 * top-level core on-chip ram
2312 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class
= {
2317 static struct omap_hwmod omap44xx_ocmc_ram_hwmod
= {
2319 .class = &omap44xx_ocmc_ram_hwmod_class
,
2320 .clkdm_name
= "l3_2_clkdm",
2323 .clkctrl_offs
= OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET
,
2324 .context_offs
= OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET
,
2331 * bridge to transform ocp interface protocol to scp (serial control port)
2335 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc
= {
2337 .sysc_offs
= 0x0010,
2338 .syss_offs
= 0x0014,
2339 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
2340 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2341 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2342 .sysc_fields
= &omap_hwmod_sysc_type1
,
2345 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class
= {
2347 .sysc
= &omap44xx_ocp2scp_sysc
,
2350 /* ocp2scp_usb_phy */
2351 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod
= {
2352 .name
= "ocp2scp_usb_phy",
2353 .class = &omap44xx_ocp2scp_hwmod_class
,
2354 .clkdm_name
= "l3_init_clkdm",
2356 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2357 * block as an "optional clock," and normally should never be
2358 * specified as the main_clk for an OMAP IP block. However it
2359 * turns out that this clock is actually the main clock for
2360 * the ocp2scp_usb_phy IP block:
2361 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2362 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2363 * to be the best workaround.
2365 .main_clk
= "ocp2scp_usb_phy_phy_48m",
2368 .clkctrl_offs
= OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET
,
2369 .context_offs
= OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET
,
2370 .modulemode
= MODULEMODE_HWCTRL
,
2377 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2378 * + clock manager 1 (in always on power domain) + local prm in mpu
2381 static struct omap_hwmod_class omap44xx_prcm_hwmod_class
= {
2386 static struct omap_hwmod omap44xx_prcm_mpu_hwmod
= {
2388 .class = &omap44xx_prcm_hwmod_class
,
2389 .clkdm_name
= "l4_wkup_clkdm",
2390 .flags
= HWMOD_NO_IDLEST
,
2393 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2399 static struct omap_hwmod omap44xx_cm_core_aon_hwmod
= {
2400 .name
= "cm_core_aon",
2401 .class = &omap44xx_prcm_hwmod_class
,
2402 .flags
= HWMOD_NO_IDLEST
,
2405 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2411 static struct omap_hwmod omap44xx_cm_core_hwmod
= {
2413 .class = &omap44xx_prcm_hwmod_class
,
2414 .flags
= HWMOD_NO_IDLEST
,
2417 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2423 static struct omap_hwmod_rst_info omap44xx_prm_resets
[] = {
2424 { .name
= "rst_global_warm_sw", .rst_shift
= 0 },
2425 { .name
= "rst_global_cold_sw", .rst_shift
= 1 },
2428 static struct omap_hwmod omap44xx_prm_hwmod
= {
2430 .class = &omap44xx_prcm_hwmod_class
,
2431 .rst_lines
= omap44xx_prm_resets
,
2432 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_prm_resets
),
2437 * system clock and reset manager
2440 static struct omap_hwmod_class omap44xx_scrm_hwmod_class
= {
2445 static struct omap_hwmod omap44xx_scrm_hwmod
= {
2447 .class = &omap44xx_scrm_hwmod_class
,
2448 .clkdm_name
= "l4_wkup_clkdm",
2451 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2458 * shared level 2 memory interface
2461 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class
= {
2466 static struct omap_hwmod omap44xx_sl2if_hwmod
= {
2468 .class = &omap44xx_sl2if_hwmod_class
,
2469 .clkdm_name
= "ivahd_clkdm",
2472 .clkctrl_offs
= OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET
,
2473 .context_offs
= OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET
,
2474 .modulemode
= MODULEMODE_HWCTRL
,
2481 * bidirectional, multi-drop, multi-channel two-line serial interface between
2482 * the device and external components
2485 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc
= {
2487 .sysc_offs
= 0x0010,
2488 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
2489 SYSC_HAS_SOFTRESET
),
2490 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2492 .sysc_fields
= &omap_hwmod_sysc_type2
,
2495 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class
= {
2497 .sysc
= &omap44xx_slimbus_sysc
,
2501 static struct omap_hwmod_opt_clk slimbus1_opt_clks
[] = {
2502 { .role
= "fclk_1", .clk
= "slimbus1_fclk_1" },
2503 { .role
= "fclk_0", .clk
= "slimbus1_fclk_0" },
2504 { .role
= "fclk_2", .clk
= "slimbus1_fclk_2" },
2505 { .role
= "slimbus_clk", .clk
= "slimbus1_slimbus_clk" },
2508 static struct omap_hwmod omap44xx_slimbus1_hwmod
= {
2510 .class = &omap44xx_slimbus_hwmod_class
,
2511 .clkdm_name
= "abe_clkdm",
2514 .clkctrl_offs
= OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET
,
2515 .context_offs
= OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET
,
2516 .modulemode
= MODULEMODE_SWCTRL
,
2519 .opt_clks
= slimbus1_opt_clks
,
2520 .opt_clks_cnt
= ARRAY_SIZE(slimbus1_opt_clks
),
2524 static struct omap_hwmod_opt_clk slimbus2_opt_clks
[] = {
2525 { .role
= "fclk_1", .clk
= "slimbus2_fclk_1" },
2526 { .role
= "fclk_0", .clk
= "slimbus2_fclk_0" },
2527 { .role
= "slimbus_clk", .clk
= "slimbus2_slimbus_clk" },
2530 static struct omap_hwmod omap44xx_slimbus2_hwmod
= {
2532 .class = &omap44xx_slimbus_hwmod_class
,
2533 .clkdm_name
= "l4_per_clkdm",
2536 .clkctrl_offs
= OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET
,
2537 .context_offs
= OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET
,
2538 .modulemode
= MODULEMODE_SWCTRL
,
2541 .opt_clks
= slimbus2_opt_clks
,
2542 .opt_clks_cnt
= ARRAY_SIZE(slimbus2_opt_clks
),
2546 * 'smartreflex' class
2547 * smartreflex module (monitor silicon performance and outputs a measure of
2548 * performance error)
2551 /* The IP is not compliant to type1 / type2 scheme */
2552 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex
= {
2557 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc
= {
2558 .sysc_offs
= 0x0038,
2559 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
),
2560 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2562 .sysc_fields
= &omap_hwmod_sysc_type_smartreflex
,
2565 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class
= {
2566 .name
= "smartreflex",
2567 .sysc
= &omap44xx_smartreflex_sysc
,
2571 /* smartreflex_core */
2572 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr
= {
2573 .sensor_voltdm_name
= "core",
2576 static struct omap_hwmod omap44xx_smartreflex_core_hwmod
= {
2577 .name
= "smartreflex_core",
2578 .class = &omap44xx_smartreflex_hwmod_class
,
2579 .clkdm_name
= "l4_ao_clkdm",
2581 .main_clk
= "smartreflex_core_fck",
2584 .clkctrl_offs
= OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET
,
2585 .context_offs
= OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET
,
2586 .modulemode
= MODULEMODE_SWCTRL
,
2589 .dev_attr
= &smartreflex_core_dev_attr
,
2592 /* smartreflex_iva */
2593 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr
= {
2594 .sensor_voltdm_name
= "iva",
2597 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod
= {
2598 .name
= "smartreflex_iva",
2599 .class = &omap44xx_smartreflex_hwmod_class
,
2600 .clkdm_name
= "l4_ao_clkdm",
2601 .main_clk
= "smartreflex_iva_fck",
2604 .clkctrl_offs
= OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET
,
2605 .context_offs
= OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET
,
2606 .modulemode
= MODULEMODE_SWCTRL
,
2609 .dev_attr
= &smartreflex_iva_dev_attr
,
2612 /* smartreflex_mpu */
2613 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr
= {
2614 .sensor_voltdm_name
= "mpu",
2617 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod
= {
2618 .name
= "smartreflex_mpu",
2619 .class = &omap44xx_smartreflex_hwmod_class
,
2620 .clkdm_name
= "l4_ao_clkdm",
2621 .main_clk
= "smartreflex_mpu_fck",
2624 .clkctrl_offs
= OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET
,
2625 .context_offs
= OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET
,
2626 .modulemode
= MODULEMODE_SWCTRL
,
2629 .dev_attr
= &smartreflex_mpu_dev_attr
,
2634 * spinlock provides hardware assistance for synchronizing the processes
2635 * running on multiple processors
2638 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc
= {
2640 .sysc_offs
= 0x0010,
2641 .syss_offs
= 0x0014,
2642 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
2643 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
2644 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2645 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2646 .sysc_fields
= &omap_hwmod_sysc_type1
,
2649 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class
= {
2651 .sysc
= &omap44xx_spinlock_sysc
,
2655 static struct omap_hwmod omap44xx_spinlock_hwmod
= {
2657 .class = &omap44xx_spinlock_hwmod_class
,
2658 .clkdm_name
= "l4_cfg_clkdm",
2661 .clkctrl_offs
= OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET
,
2662 .context_offs
= OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET
,
2669 * general purpose timer module with accurate 1ms tick
2670 * This class contains several variants: ['timer_1ms', 'timer']
2673 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc
= {
2675 .sysc_offs
= 0x0010,
2676 .syss_offs
= 0x0014,
2677 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
2678 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
2679 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2680 SYSS_HAS_RESET_STATUS
),
2681 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2682 .sysc_fields
= &omap_hwmod_sysc_type1
,
2685 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class
= {
2687 .sysc
= &omap44xx_timer_1ms_sysc
,
2690 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc
= {
2692 .sysc_offs
= 0x0010,
2693 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
2694 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
2695 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2697 .sysc_fields
= &omap_hwmod_sysc_type2
,
2700 static struct omap_hwmod_class omap44xx_timer_hwmod_class
= {
2702 .sysc
= &omap44xx_timer_sysc
,
2705 /* always-on timers dev attribute */
2706 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
2707 .timer_capability
= OMAP_TIMER_ALWON
,
2710 /* pwm timers dev attribute */
2711 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
2712 .timer_capability
= OMAP_TIMER_HAS_PWM
,
2715 /* timers with DSP interrupt dev attribute */
2716 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr
= {
2717 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
,
2720 /* pwm timers with DSP interrupt dev attribute */
2721 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr
= {
2722 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
| OMAP_TIMER_HAS_PWM
,
2726 static struct omap_hwmod omap44xx_timer1_hwmod
= {
2728 .class = &omap44xx_timer_1ms_hwmod_class
,
2729 .clkdm_name
= "l4_wkup_clkdm",
2730 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2731 .main_clk
= "dmt1_clk_mux",
2734 .clkctrl_offs
= OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET
,
2735 .context_offs
= OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET
,
2736 .modulemode
= MODULEMODE_SWCTRL
,
2739 .dev_attr
= &capability_alwon_dev_attr
,
2743 static struct omap_hwmod omap44xx_timer2_hwmod
= {
2745 .class = &omap44xx_timer_1ms_hwmod_class
,
2746 .clkdm_name
= "l4_per_clkdm",
2747 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2748 .main_clk
= "cm2_dm2_mux",
2751 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET
,
2752 .context_offs
= OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET
,
2753 .modulemode
= MODULEMODE_SWCTRL
,
2759 static struct omap_hwmod omap44xx_timer3_hwmod
= {
2761 .class = &omap44xx_timer_hwmod_class
,
2762 .clkdm_name
= "l4_per_clkdm",
2763 .main_clk
= "cm2_dm3_mux",
2766 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET
,
2767 .context_offs
= OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET
,
2768 .modulemode
= MODULEMODE_SWCTRL
,
2774 static struct omap_hwmod omap44xx_timer4_hwmod
= {
2776 .class = &omap44xx_timer_hwmod_class
,
2777 .clkdm_name
= "l4_per_clkdm",
2778 .main_clk
= "cm2_dm4_mux",
2781 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET
,
2782 .context_offs
= OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET
,
2783 .modulemode
= MODULEMODE_SWCTRL
,
2789 static struct omap_hwmod omap44xx_timer5_hwmod
= {
2791 .class = &omap44xx_timer_hwmod_class
,
2792 .clkdm_name
= "abe_clkdm",
2793 .main_clk
= "timer5_sync_mux",
2796 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET
,
2797 .context_offs
= OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET
,
2798 .modulemode
= MODULEMODE_SWCTRL
,
2801 .dev_attr
= &capability_dsp_dev_attr
,
2805 static struct omap_hwmod omap44xx_timer6_hwmod
= {
2807 .class = &omap44xx_timer_hwmod_class
,
2808 .clkdm_name
= "abe_clkdm",
2809 .main_clk
= "timer6_sync_mux",
2812 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET
,
2813 .context_offs
= OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET
,
2814 .modulemode
= MODULEMODE_SWCTRL
,
2817 .dev_attr
= &capability_dsp_dev_attr
,
2821 static struct omap_hwmod omap44xx_timer7_hwmod
= {
2823 .class = &omap44xx_timer_hwmod_class
,
2824 .clkdm_name
= "abe_clkdm",
2825 .main_clk
= "timer7_sync_mux",
2828 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET
,
2829 .context_offs
= OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET
,
2830 .modulemode
= MODULEMODE_SWCTRL
,
2833 .dev_attr
= &capability_dsp_dev_attr
,
2837 static struct omap_hwmod omap44xx_timer8_hwmod
= {
2839 .class = &omap44xx_timer_hwmod_class
,
2840 .clkdm_name
= "abe_clkdm",
2841 .main_clk
= "timer8_sync_mux",
2844 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET
,
2845 .context_offs
= OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET
,
2846 .modulemode
= MODULEMODE_SWCTRL
,
2849 .dev_attr
= &capability_dsp_pwm_dev_attr
,
2853 static struct omap_hwmod omap44xx_timer9_hwmod
= {
2855 .class = &omap44xx_timer_hwmod_class
,
2856 .clkdm_name
= "l4_per_clkdm",
2857 .main_clk
= "cm2_dm9_mux",
2860 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET
,
2861 .context_offs
= OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET
,
2862 .modulemode
= MODULEMODE_SWCTRL
,
2865 .dev_attr
= &capability_pwm_dev_attr
,
2869 static struct omap_hwmod omap44xx_timer10_hwmod
= {
2871 .class = &omap44xx_timer_1ms_hwmod_class
,
2872 .clkdm_name
= "l4_per_clkdm",
2873 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2874 .main_clk
= "cm2_dm10_mux",
2877 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET
,
2878 .context_offs
= OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET
,
2879 .modulemode
= MODULEMODE_SWCTRL
,
2882 .dev_attr
= &capability_pwm_dev_attr
,
2886 static struct omap_hwmod omap44xx_timer11_hwmod
= {
2888 .class = &omap44xx_timer_hwmod_class
,
2889 .clkdm_name
= "l4_per_clkdm",
2890 .main_clk
= "cm2_dm11_mux",
2893 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET
,
2894 .context_offs
= OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET
,
2895 .modulemode
= MODULEMODE_SWCTRL
,
2898 .dev_attr
= &capability_pwm_dev_attr
,
2903 * universal asynchronous receiver/transmitter (uart)
2906 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc
= {
2908 .sysc_offs
= 0x0054,
2909 .syss_offs
= 0x0058,
2910 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
2911 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2912 SYSS_HAS_RESET_STATUS
),
2913 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2915 .sysc_fields
= &omap_hwmod_sysc_type1
,
2918 static struct omap_hwmod_class omap44xx_uart_hwmod_class
= {
2920 .sysc
= &omap44xx_uart_sysc
,
2924 static struct omap_hwmod omap44xx_uart1_hwmod
= {
2926 .class = &omap44xx_uart_hwmod_class
,
2927 .clkdm_name
= "l4_per_clkdm",
2928 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2929 .main_clk
= "func_48m_fclk",
2932 .clkctrl_offs
= OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET
,
2933 .context_offs
= OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET
,
2934 .modulemode
= MODULEMODE_SWCTRL
,
2940 static struct omap_hwmod omap44xx_uart2_hwmod
= {
2942 .class = &omap44xx_uart_hwmod_class
,
2943 .clkdm_name
= "l4_per_clkdm",
2944 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2945 .main_clk
= "func_48m_fclk",
2948 .clkctrl_offs
= OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET
,
2949 .context_offs
= OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET
,
2950 .modulemode
= MODULEMODE_SWCTRL
,
2956 static struct omap_hwmod omap44xx_uart3_hwmod
= {
2958 .class = &omap44xx_uart_hwmod_class
,
2959 .clkdm_name
= "l4_per_clkdm",
2960 .flags
= DEBUG_OMAP4UART3_FLAGS
| HWMOD_SWSUP_SIDLE_ACT
,
2961 .main_clk
= "func_48m_fclk",
2964 .clkctrl_offs
= OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET
,
2965 .context_offs
= OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET
,
2966 .modulemode
= MODULEMODE_SWCTRL
,
2972 static struct omap_hwmod omap44xx_uart4_hwmod
= {
2974 .class = &omap44xx_uart_hwmod_class
,
2975 .clkdm_name
= "l4_per_clkdm",
2976 .flags
= DEBUG_OMAP4UART4_FLAGS
| HWMOD_SWSUP_SIDLE_ACT
,
2977 .main_clk
= "func_48m_fclk",
2980 .clkctrl_offs
= OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET
,
2981 .context_offs
= OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET
,
2982 .modulemode
= MODULEMODE_SWCTRL
,
2988 * 'usb_host_fs' class
2989 * full-speed usb host controller
2992 /* The IP is not compliant to type1 / type2 scheme */
2993 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs
= {
2999 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc
= {
3001 .sysc_offs
= 0x0210,
3002 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
3003 SYSC_HAS_SOFTRESET
),
3004 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3006 .sysc_fields
= &omap_hwmod_sysc_type_usb_host_fs
,
3009 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class
= {
3010 .name
= "usb_host_fs",
3011 .sysc
= &omap44xx_usb_host_fs_sysc
,
3015 static struct omap_hwmod omap44xx_usb_host_fs_hwmod
= {
3016 .name
= "usb_host_fs",
3017 .class = &omap44xx_usb_host_fs_hwmod_class
,
3018 .clkdm_name
= "l3_init_clkdm",
3019 .main_clk
= "usb_host_fs_fck",
3022 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET
,
3023 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET
,
3024 .modulemode
= MODULEMODE_SWCTRL
,
3030 * 'usb_host_hs' class
3031 * high-speed multi-port usb host controller
3034 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc
= {
3036 .sysc_offs
= 0x0010,
3037 .syss_offs
= 0x0014,
3038 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
3039 SYSC_HAS_SOFTRESET
| SYSC_HAS_RESET_STATUS
),
3040 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3041 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
3042 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
3043 .sysc_fields
= &omap_hwmod_sysc_type2
,
3046 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class
= {
3047 .name
= "usb_host_hs",
3048 .sysc
= &omap44xx_usb_host_hs_sysc
,
3052 static struct omap_hwmod omap44xx_usb_host_hs_hwmod
= {
3053 .name
= "usb_host_hs",
3054 .class = &omap44xx_usb_host_hs_hwmod_class
,
3055 .clkdm_name
= "l3_init_clkdm",
3056 .main_clk
= "usb_host_hs_fck",
3059 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET
,
3060 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET
,
3061 .modulemode
= MODULEMODE_SWCTRL
,
3066 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
3070 * In the following configuration :
3071 * - USBHOST module is set to smart-idle mode
3072 * - PRCM asserts idle_req to the USBHOST module ( This typically
3073 * happens when the system is going to a low power mode : all ports
3074 * have been suspended, the master part of the USBHOST module has
3075 * entered the standby state, and SW has cut the functional clocks)
3076 * - an USBHOST interrupt occurs before the module is able to answer
3077 * idle_ack, typically a remote wakeup IRQ.
3078 * Then the USB HOST module will enter a deadlock situation where it
3079 * is no more accessible nor functional.
3082 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
3086 * Errata: USB host EHCI may stall when entering smart-standby mode
3090 * When the USBHOST module is set to smart-standby mode, and when it is
3091 * ready to enter the standby state (i.e. all ports are suspended and
3092 * all attached devices are in suspend mode), then it can wrongly assert
3093 * the Mstandby signal too early while there are still some residual OCP
3094 * transactions ongoing. If this condition occurs, the internal state
3095 * machine may go to an undefined state and the USB link may be stuck
3096 * upon the next resume.
3099 * Don't use smart standby; use only force standby,
3100 * hence HWMOD_SWSUP_MSTANDBY
3103 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
3107 * 'usb_otg_hs' class
3108 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3111 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc
= {
3113 .sysc_offs
= 0x0404,
3114 .syss_offs
= 0x0408,
3115 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
3116 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
3117 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
3118 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3119 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
3121 .sysc_fields
= &omap_hwmod_sysc_type1
,
3124 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class
= {
3125 .name
= "usb_otg_hs",
3126 .sysc
= &omap44xx_usb_otg_hs_sysc
,
3130 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks
[] = {
3131 { .role
= "xclk", .clk
= "usb_otg_hs_xclk" },
3134 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod
= {
3135 .name
= "usb_otg_hs",
3136 .class = &omap44xx_usb_otg_hs_hwmod_class
,
3137 .clkdm_name
= "l3_init_clkdm",
3138 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
3139 .main_clk
= "usb_otg_hs_ick",
3142 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET
,
3143 .context_offs
= OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET
,
3144 .modulemode
= MODULEMODE_HWCTRL
,
3147 .opt_clks
= usb_otg_hs_opt_clks
,
3148 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_hs_opt_clks
),
3152 * 'usb_tll_hs' class
3153 * usb_tll_hs module is the adapter on the usb_host_hs ports
3156 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc
= {
3158 .sysc_offs
= 0x0010,
3159 .syss_offs
= 0x0014,
3160 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
3161 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
3163 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3164 .sysc_fields
= &omap_hwmod_sysc_type1
,
3167 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class
= {
3168 .name
= "usb_tll_hs",
3169 .sysc
= &omap44xx_usb_tll_hs_sysc
,
3172 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod
= {
3173 .name
= "usb_tll_hs",
3174 .class = &omap44xx_usb_tll_hs_hwmod_class
,
3175 .clkdm_name
= "l3_init_clkdm",
3176 .main_clk
= "usb_tll_hs_ick",
3179 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET
,
3180 .context_offs
= OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET
,
3181 .modulemode
= MODULEMODE_HWCTRL
,
3188 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3189 * overflow condition
3192 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc
= {
3194 .sysc_offs
= 0x0010,
3195 .syss_offs
= 0x0014,
3196 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
3197 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
3198 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3200 .sysc_fields
= &omap_hwmod_sysc_type1
,
3203 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class
= {
3205 .sysc
= &omap44xx_wd_timer_sysc
,
3206 .pre_shutdown
= &omap2_wd_timer_disable
,
3207 .reset
= &omap2_wd_timer_reset
,
3211 static struct omap_hwmod omap44xx_wd_timer2_hwmod
= {
3212 .name
= "wd_timer2",
3213 .class = &omap44xx_wd_timer_hwmod_class
,
3214 .clkdm_name
= "l4_wkup_clkdm",
3215 .main_clk
= "sys_32k_ck",
3218 .clkctrl_offs
= OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET
,
3219 .context_offs
= OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET
,
3220 .modulemode
= MODULEMODE_SWCTRL
,
3226 static struct omap_hwmod omap44xx_wd_timer3_hwmod
= {
3227 .name
= "wd_timer3",
3228 .class = &omap44xx_wd_timer_hwmod_class
,
3229 .clkdm_name
= "abe_clkdm",
3230 .main_clk
= "sys_32k_ck",
3233 .clkctrl_offs
= OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET
,
3234 .context_offs
= OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET
,
3235 .modulemode
= MODULEMODE_SWCTRL
,
3245 /* l3_main_1 -> dmm */
3246 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm
= {
3247 .master
= &omap44xx_l3_main_1_hwmod
,
3248 .slave
= &omap44xx_dmm_hwmod
,
3250 .user
= OCP_USER_SDMA
,
3254 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm
= {
3255 .master
= &omap44xx_mpu_hwmod
,
3256 .slave
= &omap44xx_dmm_hwmod
,
3258 .user
= OCP_USER_MPU
,
3261 /* iva -> l3_instr */
3262 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr
= {
3263 .master
= &omap44xx_iva_hwmod
,
3264 .slave
= &omap44xx_l3_instr_hwmod
,
3266 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3269 /* l3_main_3 -> l3_instr */
3270 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr
= {
3271 .master
= &omap44xx_l3_main_3_hwmod
,
3272 .slave
= &omap44xx_l3_instr_hwmod
,
3274 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3277 /* ocp_wp_noc -> l3_instr */
3278 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr
= {
3279 .master
= &omap44xx_ocp_wp_noc_hwmod
,
3280 .slave
= &omap44xx_l3_instr_hwmod
,
3282 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3285 /* dsp -> l3_main_1 */
3286 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1
= {
3287 .master
= &omap44xx_dsp_hwmod
,
3288 .slave
= &omap44xx_l3_main_1_hwmod
,
3290 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3293 /* dss -> l3_main_1 */
3294 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1
= {
3295 .master
= &omap44xx_dss_hwmod
,
3296 .slave
= &omap44xx_l3_main_1_hwmod
,
3298 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3301 /* l3_main_2 -> l3_main_1 */
3302 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1
= {
3303 .master
= &omap44xx_l3_main_2_hwmod
,
3304 .slave
= &omap44xx_l3_main_1_hwmod
,
3306 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3309 /* l4_cfg -> l3_main_1 */
3310 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1
= {
3311 .master
= &omap44xx_l4_cfg_hwmod
,
3312 .slave
= &omap44xx_l3_main_1_hwmod
,
3314 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3317 /* mmc1 -> l3_main_1 */
3318 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1
= {
3319 .master
= &omap44xx_mmc1_hwmod
,
3320 .slave
= &omap44xx_l3_main_1_hwmod
,
3322 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3325 /* mmc2 -> l3_main_1 */
3326 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1
= {
3327 .master
= &omap44xx_mmc2_hwmod
,
3328 .slave
= &omap44xx_l3_main_1_hwmod
,
3330 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3333 /* mpu -> l3_main_1 */
3334 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1
= {
3335 .master
= &omap44xx_mpu_hwmod
,
3336 .slave
= &omap44xx_l3_main_1_hwmod
,
3338 .user
= OCP_USER_MPU
,
3341 /* debugss -> l3_main_2 */
3342 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2
= {
3343 .master
= &omap44xx_debugss_hwmod
,
3344 .slave
= &omap44xx_l3_main_2_hwmod
,
3345 .clk
= "dbgclk_mux_ck",
3346 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3349 /* dma_system -> l3_main_2 */
3350 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2
= {
3351 .master
= &omap44xx_dma_system_hwmod
,
3352 .slave
= &omap44xx_l3_main_2_hwmod
,
3354 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3357 /* fdif -> l3_main_2 */
3358 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2
= {
3359 .master
= &omap44xx_fdif_hwmod
,
3360 .slave
= &omap44xx_l3_main_2_hwmod
,
3362 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3365 /* gpu -> l3_main_2 */
3366 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2
= {
3367 .master
= &omap44xx_gpu_hwmod
,
3368 .slave
= &omap44xx_l3_main_2_hwmod
,
3370 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3373 /* hsi -> l3_main_2 */
3374 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2
= {
3375 .master
= &omap44xx_hsi_hwmod
,
3376 .slave
= &omap44xx_l3_main_2_hwmod
,
3378 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3381 /* ipu -> l3_main_2 */
3382 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2
= {
3383 .master
= &omap44xx_ipu_hwmod
,
3384 .slave
= &omap44xx_l3_main_2_hwmod
,
3386 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3389 /* iss -> l3_main_2 */
3390 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2
= {
3391 .master
= &omap44xx_iss_hwmod
,
3392 .slave
= &omap44xx_l3_main_2_hwmod
,
3394 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3397 /* iva -> l3_main_2 */
3398 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2
= {
3399 .master
= &omap44xx_iva_hwmod
,
3400 .slave
= &omap44xx_l3_main_2_hwmod
,
3402 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3405 /* l3_main_1 -> l3_main_2 */
3406 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2
= {
3407 .master
= &omap44xx_l3_main_1_hwmod
,
3408 .slave
= &omap44xx_l3_main_2_hwmod
,
3410 .user
= OCP_USER_MPU
,
3413 /* l4_cfg -> l3_main_2 */
3414 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2
= {
3415 .master
= &omap44xx_l4_cfg_hwmod
,
3416 .slave
= &omap44xx_l3_main_2_hwmod
,
3418 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3421 /* usb_host_fs -> l3_main_2 */
3422 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2
= {
3423 .master
= &omap44xx_usb_host_fs_hwmod
,
3424 .slave
= &omap44xx_l3_main_2_hwmod
,
3426 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3429 /* usb_host_hs -> l3_main_2 */
3430 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2
= {
3431 .master
= &omap44xx_usb_host_hs_hwmod
,
3432 .slave
= &omap44xx_l3_main_2_hwmod
,
3434 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3437 /* usb_otg_hs -> l3_main_2 */
3438 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2
= {
3439 .master
= &omap44xx_usb_otg_hs_hwmod
,
3440 .slave
= &omap44xx_l3_main_2_hwmod
,
3442 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3445 /* l3_main_1 -> l3_main_3 */
3446 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3
= {
3447 .master
= &omap44xx_l3_main_1_hwmod
,
3448 .slave
= &omap44xx_l3_main_3_hwmod
,
3450 .user
= OCP_USER_MPU
,
3453 /* l3_main_2 -> l3_main_3 */
3454 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3
= {
3455 .master
= &omap44xx_l3_main_2_hwmod
,
3456 .slave
= &omap44xx_l3_main_3_hwmod
,
3458 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3461 /* l4_cfg -> l3_main_3 */
3462 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3
= {
3463 .master
= &omap44xx_l4_cfg_hwmod
,
3464 .slave
= &omap44xx_l3_main_3_hwmod
,
3466 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3469 /* aess -> l4_abe */
3470 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe
= {
3471 .master
= &omap44xx_aess_hwmod
,
3472 .slave
= &omap44xx_l4_abe_hwmod
,
3473 .clk
= "ocp_abe_iclk",
3474 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3478 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe
= {
3479 .master
= &omap44xx_dsp_hwmod
,
3480 .slave
= &omap44xx_l4_abe_hwmod
,
3481 .clk
= "ocp_abe_iclk",
3482 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3485 /* l3_main_1 -> l4_abe */
3486 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe
= {
3487 .master
= &omap44xx_l3_main_1_hwmod
,
3488 .slave
= &omap44xx_l4_abe_hwmod
,
3490 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3494 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe
= {
3495 .master
= &omap44xx_mpu_hwmod
,
3496 .slave
= &omap44xx_l4_abe_hwmod
,
3497 .clk
= "ocp_abe_iclk",
3498 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3501 /* l3_main_1 -> l4_cfg */
3502 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg
= {
3503 .master
= &omap44xx_l3_main_1_hwmod
,
3504 .slave
= &omap44xx_l4_cfg_hwmod
,
3506 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3509 /* l3_main_2 -> l4_per */
3510 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per
= {
3511 .master
= &omap44xx_l3_main_2_hwmod
,
3512 .slave
= &omap44xx_l4_per_hwmod
,
3514 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3517 /* l4_cfg -> l4_wkup */
3518 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup
= {
3519 .master
= &omap44xx_l4_cfg_hwmod
,
3520 .slave
= &omap44xx_l4_wkup_hwmod
,
3522 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3525 /* mpu -> mpu_private */
3526 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private
= {
3527 .master
= &omap44xx_mpu_hwmod
,
3528 .slave
= &omap44xx_mpu_private_hwmod
,
3530 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3533 /* l4_cfg -> ocp_wp_noc */
3534 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc
= {
3535 .master
= &omap44xx_l4_cfg_hwmod
,
3536 .slave
= &omap44xx_ocp_wp_noc_hwmod
,
3538 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3541 static struct omap_hwmod_addr_space omap44xx_aess_addrs
[] = {
3544 .pa_start
= 0x40180000,
3545 .pa_end
= 0x4018ffff
3549 .pa_start
= 0x401a0000,
3550 .pa_end
= 0x401a1fff
3554 .pa_start
= 0x401c0000,
3555 .pa_end
= 0x401c5fff
3559 .pa_start
= 0x401e0000,
3560 .pa_end
= 0x401e1fff
3564 .pa_start
= 0x401f1000,
3565 .pa_end
= 0x401f13ff,
3566 .flags
= ADDR_TYPE_RT
3571 /* l4_abe -> aess */
3572 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess
= {
3573 .master
= &omap44xx_l4_abe_hwmod
,
3574 .slave
= &omap44xx_aess_hwmod
,
3575 .clk
= "ocp_abe_iclk",
3576 .addr
= omap44xx_aess_addrs
,
3577 .user
= OCP_USER_MPU
,
3580 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs
[] = {
3583 .pa_start
= 0x49080000,
3584 .pa_end
= 0x4908ffff
3588 .pa_start
= 0x490a0000,
3589 .pa_end
= 0x490a1fff
3593 .pa_start
= 0x490c0000,
3594 .pa_end
= 0x490c5fff
3598 .pa_start
= 0x490e0000,
3599 .pa_end
= 0x490e1fff
3603 .pa_start
= 0x490f1000,
3604 .pa_end
= 0x490f13ff,
3605 .flags
= ADDR_TYPE_RT
3610 /* l4_abe -> aess (dma) */
3611 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma
= {
3612 .master
= &omap44xx_l4_abe_hwmod
,
3613 .slave
= &omap44xx_aess_hwmod
,
3614 .clk
= "ocp_abe_iclk",
3615 .addr
= omap44xx_aess_dma_addrs
,
3616 .user
= OCP_USER_SDMA
,
3619 /* l3_main_2 -> c2c */
3620 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c
= {
3621 .master
= &omap44xx_l3_main_2_hwmod
,
3622 .slave
= &omap44xx_c2c_hwmod
,
3624 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3627 /* l4_wkup -> counter_32k */
3628 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k
= {
3629 .master
= &omap44xx_l4_wkup_hwmod
,
3630 .slave
= &omap44xx_counter_32k_hwmod
,
3631 .clk
= "l4_wkup_clk_mux_ck",
3632 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3635 static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs
[] = {
3637 .pa_start
= 0x4a002000,
3638 .pa_end
= 0x4a0027ff,
3639 .flags
= ADDR_TYPE_RT
3644 /* l4_cfg -> ctrl_module_core */
3645 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core
= {
3646 .master
= &omap44xx_l4_cfg_hwmod
,
3647 .slave
= &omap44xx_ctrl_module_core_hwmod
,
3649 .addr
= omap44xx_ctrl_module_core_addrs
,
3650 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3653 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs
[] = {
3655 .pa_start
= 0x4a100000,
3656 .pa_end
= 0x4a1007ff,
3657 .flags
= ADDR_TYPE_RT
3662 /* l4_cfg -> ctrl_module_pad_core */
3663 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core
= {
3664 .master
= &omap44xx_l4_cfg_hwmod
,
3665 .slave
= &omap44xx_ctrl_module_pad_core_hwmod
,
3667 .addr
= omap44xx_ctrl_module_pad_core_addrs
,
3668 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3671 static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs
[] = {
3673 .pa_start
= 0x4a30c000,
3674 .pa_end
= 0x4a30c7ff,
3675 .flags
= ADDR_TYPE_RT
3680 /* l4_wkup -> ctrl_module_wkup */
3681 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup
= {
3682 .master
= &omap44xx_l4_wkup_hwmod
,
3683 .slave
= &omap44xx_ctrl_module_wkup_hwmod
,
3684 .clk
= "l4_wkup_clk_mux_ck",
3685 .addr
= omap44xx_ctrl_module_wkup_addrs
,
3686 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3689 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs
[] = {
3691 .pa_start
= 0x4a31e000,
3692 .pa_end
= 0x4a31e7ff,
3693 .flags
= ADDR_TYPE_RT
3698 /* l4_wkup -> ctrl_module_pad_wkup */
3699 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup
= {
3700 .master
= &omap44xx_l4_wkup_hwmod
,
3701 .slave
= &omap44xx_ctrl_module_pad_wkup_hwmod
,
3702 .clk
= "l4_wkup_clk_mux_ck",
3703 .addr
= omap44xx_ctrl_module_pad_wkup_addrs
,
3704 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3707 /* l3_instr -> debugss */
3708 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss
= {
3709 .master
= &omap44xx_l3_instr_hwmod
,
3710 .slave
= &omap44xx_debugss_hwmod
,
3712 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3715 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs
[] = {
3717 .pa_start
= 0x4a056000,
3718 .pa_end
= 0x4a056fff,
3719 .flags
= ADDR_TYPE_RT
3724 /* l4_cfg -> dma_system */
3725 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system
= {
3726 .master
= &omap44xx_l4_cfg_hwmod
,
3727 .slave
= &omap44xx_dma_system_hwmod
,
3729 .addr
= omap44xx_dma_system_addrs
,
3730 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3733 /* l4_abe -> dmic */
3734 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic
= {
3735 .master
= &omap44xx_l4_abe_hwmod
,
3736 .slave
= &omap44xx_dmic_hwmod
,
3737 .clk
= "ocp_abe_iclk",
3738 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3742 static struct omap_hwmod_ocp_if omap44xx_dsp__iva
= {
3743 .master
= &omap44xx_dsp_hwmod
,
3744 .slave
= &omap44xx_iva_hwmod
,
3745 .clk
= "dpll_iva_m5x2_ck",
3746 .user
= OCP_USER_DSP
,
3750 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if
= {
3751 .master
= &omap44xx_dsp_hwmod
,
3752 .slave
= &omap44xx_sl2if_hwmod
,
3753 .clk
= "dpll_iva_m5x2_ck",
3754 .user
= OCP_USER_DSP
,
3758 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp
= {
3759 .master
= &omap44xx_l4_cfg_hwmod
,
3760 .slave
= &omap44xx_dsp_hwmod
,
3762 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3765 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs
[] = {
3767 .pa_start
= 0x58000000,
3768 .pa_end
= 0x5800007f,
3769 .flags
= ADDR_TYPE_RT
3774 /* l3_main_2 -> dss */
3775 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss
= {
3776 .master
= &omap44xx_l3_main_2_hwmod
,
3777 .slave
= &omap44xx_dss_hwmod
,
3779 .addr
= omap44xx_dss_dma_addrs
,
3780 .user
= OCP_USER_SDMA
,
3783 static struct omap_hwmod_addr_space omap44xx_dss_addrs
[] = {
3785 .pa_start
= 0x48040000,
3786 .pa_end
= 0x4804007f,
3787 .flags
= ADDR_TYPE_RT
3793 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss
= {
3794 .master
= &omap44xx_l4_per_hwmod
,
3795 .slave
= &omap44xx_dss_hwmod
,
3797 .addr
= omap44xx_dss_addrs
,
3798 .user
= OCP_USER_MPU
,
3801 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs
[] = {
3803 .pa_start
= 0x58001000,
3804 .pa_end
= 0x58001fff,
3805 .flags
= ADDR_TYPE_RT
3810 /* l3_main_2 -> dss_dispc */
3811 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc
= {
3812 .master
= &omap44xx_l3_main_2_hwmod
,
3813 .slave
= &omap44xx_dss_dispc_hwmod
,
3815 .addr
= omap44xx_dss_dispc_dma_addrs
,
3816 .user
= OCP_USER_SDMA
,
3819 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs
[] = {
3821 .pa_start
= 0x48041000,
3822 .pa_end
= 0x48041fff,
3823 .flags
= ADDR_TYPE_RT
3828 /* l4_per -> dss_dispc */
3829 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc
= {
3830 .master
= &omap44xx_l4_per_hwmod
,
3831 .slave
= &omap44xx_dss_dispc_hwmod
,
3833 .addr
= omap44xx_dss_dispc_addrs
,
3834 .user
= OCP_USER_MPU
,
3837 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs
[] = {
3839 .pa_start
= 0x58004000,
3840 .pa_end
= 0x580041ff,
3841 .flags
= ADDR_TYPE_RT
3846 /* l3_main_2 -> dss_dsi1 */
3847 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1
= {
3848 .master
= &omap44xx_l3_main_2_hwmod
,
3849 .slave
= &omap44xx_dss_dsi1_hwmod
,
3851 .addr
= omap44xx_dss_dsi1_dma_addrs
,
3852 .user
= OCP_USER_SDMA
,
3855 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs
[] = {
3857 .pa_start
= 0x48044000,
3858 .pa_end
= 0x480441ff,
3859 .flags
= ADDR_TYPE_RT
3864 /* l4_per -> dss_dsi1 */
3865 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1
= {
3866 .master
= &omap44xx_l4_per_hwmod
,
3867 .slave
= &omap44xx_dss_dsi1_hwmod
,
3869 .addr
= omap44xx_dss_dsi1_addrs
,
3870 .user
= OCP_USER_MPU
,
3873 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs
[] = {
3875 .pa_start
= 0x58005000,
3876 .pa_end
= 0x580051ff,
3877 .flags
= ADDR_TYPE_RT
3882 /* l3_main_2 -> dss_dsi2 */
3883 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2
= {
3884 .master
= &omap44xx_l3_main_2_hwmod
,
3885 .slave
= &omap44xx_dss_dsi2_hwmod
,
3887 .addr
= omap44xx_dss_dsi2_dma_addrs
,
3888 .user
= OCP_USER_SDMA
,
3891 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs
[] = {
3893 .pa_start
= 0x48045000,
3894 .pa_end
= 0x480451ff,
3895 .flags
= ADDR_TYPE_RT
3900 /* l4_per -> dss_dsi2 */
3901 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2
= {
3902 .master
= &omap44xx_l4_per_hwmod
,
3903 .slave
= &omap44xx_dss_dsi2_hwmod
,
3905 .addr
= omap44xx_dss_dsi2_addrs
,
3906 .user
= OCP_USER_MPU
,
3909 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs
[] = {
3911 .pa_start
= 0x58006000,
3912 .pa_end
= 0x58006fff,
3913 .flags
= ADDR_TYPE_RT
3918 /* l3_main_2 -> dss_hdmi */
3919 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi
= {
3920 .master
= &omap44xx_l3_main_2_hwmod
,
3921 .slave
= &omap44xx_dss_hdmi_hwmod
,
3923 .addr
= omap44xx_dss_hdmi_dma_addrs
,
3924 .user
= OCP_USER_SDMA
,
3927 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs
[] = {
3929 .pa_start
= 0x48046000,
3930 .pa_end
= 0x48046fff,
3931 .flags
= ADDR_TYPE_RT
3936 /* l4_per -> dss_hdmi */
3937 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi
= {
3938 .master
= &omap44xx_l4_per_hwmod
,
3939 .slave
= &omap44xx_dss_hdmi_hwmod
,
3941 .addr
= omap44xx_dss_hdmi_addrs
,
3942 .user
= OCP_USER_MPU
,
3945 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs
[] = {
3947 .pa_start
= 0x58002000,
3948 .pa_end
= 0x580020ff,
3949 .flags
= ADDR_TYPE_RT
3954 /* l3_main_2 -> dss_rfbi */
3955 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi
= {
3956 .master
= &omap44xx_l3_main_2_hwmod
,
3957 .slave
= &omap44xx_dss_rfbi_hwmod
,
3959 .addr
= omap44xx_dss_rfbi_dma_addrs
,
3960 .user
= OCP_USER_SDMA
,
3963 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs
[] = {
3965 .pa_start
= 0x48042000,
3966 .pa_end
= 0x480420ff,
3967 .flags
= ADDR_TYPE_RT
3972 /* l4_per -> dss_rfbi */
3973 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi
= {
3974 .master
= &omap44xx_l4_per_hwmod
,
3975 .slave
= &omap44xx_dss_rfbi_hwmod
,
3977 .addr
= omap44xx_dss_rfbi_addrs
,
3978 .user
= OCP_USER_MPU
,
3981 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs
[] = {
3983 .pa_start
= 0x58003000,
3984 .pa_end
= 0x580030ff,
3985 .flags
= ADDR_TYPE_RT
3990 /* l3_main_2 -> dss_venc */
3991 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc
= {
3992 .master
= &omap44xx_l3_main_2_hwmod
,
3993 .slave
= &omap44xx_dss_venc_hwmod
,
3995 .addr
= omap44xx_dss_venc_dma_addrs
,
3996 .user
= OCP_USER_SDMA
,
3999 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs
[] = {
4001 .pa_start
= 0x48043000,
4002 .pa_end
= 0x480430ff,
4003 .flags
= ADDR_TYPE_RT
4008 /* l4_per -> dss_venc */
4009 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc
= {
4010 .master
= &omap44xx_l4_per_hwmod
,
4011 .slave
= &omap44xx_dss_venc_hwmod
,
4013 .addr
= omap44xx_dss_venc_addrs
,
4014 .user
= OCP_USER_MPU
,
4017 /* l3_main_2 -> sham */
4018 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0
= {
4019 .master
= &omap44xx_l3_main_2_hwmod
,
4020 .slave
= &omap44xx_sha0_hwmod
,
4022 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4026 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm
= {
4027 .master
= &omap44xx_l4_per_hwmod
,
4028 .slave
= &omap44xx_elm_hwmod
,
4030 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4033 static struct omap_hwmod_addr_space omap44xx_fdif_addrs
[] = {
4035 .pa_start
= 0x4a10a000,
4036 .pa_end
= 0x4a10a1ff,
4037 .flags
= ADDR_TYPE_RT
4042 /* l4_cfg -> fdif */
4043 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif
= {
4044 .master
= &omap44xx_l4_cfg_hwmod
,
4045 .slave
= &omap44xx_fdif_hwmod
,
4047 .addr
= omap44xx_fdif_addrs
,
4048 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4051 /* l4_wkup -> gpio1 */
4052 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1
= {
4053 .master
= &omap44xx_l4_wkup_hwmod
,
4054 .slave
= &omap44xx_gpio1_hwmod
,
4055 .clk
= "l4_wkup_clk_mux_ck",
4056 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4059 /* l4_per -> gpio2 */
4060 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2
= {
4061 .master
= &omap44xx_l4_per_hwmod
,
4062 .slave
= &omap44xx_gpio2_hwmod
,
4064 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4067 /* l4_per -> gpio3 */
4068 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3
= {
4069 .master
= &omap44xx_l4_per_hwmod
,
4070 .slave
= &omap44xx_gpio3_hwmod
,
4072 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4075 /* l4_per -> gpio4 */
4076 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4
= {
4077 .master
= &omap44xx_l4_per_hwmod
,
4078 .slave
= &omap44xx_gpio4_hwmod
,
4080 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4083 /* l4_per -> gpio5 */
4084 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5
= {
4085 .master
= &omap44xx_l4_per_hwmod
,
4086 .slave
= &omap44xx_gpio5_hwmod
,
4088 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4091 /* l4_per -> gpio6 */
4092 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6
= {
4093 .master
= &omap44xx_l4_per_hwmod
,
4094 .slave
= &omap44xx_gpio6_hwmod
,
4096 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4099 /* l3_main_2 -> gpmc */
4100 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc
= {
4101 .master
= &omap44xx_l3_main_2_hwmod
,
4102 .slave
= &omap44xx_gpmc_hwmod
,
4104 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4107 static struct omap_hwmod_addr_space omap44xx_gpu_addrs
[] = {
4109 .pa_start
= 0x56000000,
4110 .pa_end
= 0x5600ffff,
4111 .flags
= ADDR_TYPE_RT
4116 /* l3_main_2 -> gpu */
4117 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu
= {
4118 .master
= &omap44xx_l3_main_2_hwmod
,
4119 .slave
= &omap44xx_gpu_hwmod
,
4121 .addr
= omap44xx_gpu_addrs
,
4122 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4125 static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs
[] = {
4127 .pa_start
= 0x480b2000,
4128 .pa_end
= 0x480b201f,
4129 .flags
= ADDR_TYPE_RT
4134 /* l4_per -> hdq1w */
4135 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w
= {
4136 .master
= &omap44xx_l4_per_hwmod
,
4137 .slave
= &omap44xx_hdq1w_hwmod
,
4139 .addr
= omap44xx_hdq1w_addrs
,
4140 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4143 static struct omap_hwmod_addr_space omap44xx_hsi_addrs
[] = {
4145 .pa_start
= 0x4a058000,
4146 .pa_end
= 0x4a05bfff,
4147 .flags
= ADDR_TYPE_RT
4153 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi
= {
4154 .master
= &omap44xx_l4_cfg_hwmod
,
4155 .slave
= &omap44xx_hsi_hwmod
,
4157 .addr
= omap44xx_hsi_addrs
,
4158 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4161 /* l4_per -> i2c1 */
4162 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1
= {
4163 .master
= &omap44xx_l4_per_hwmod
,
4164 .slave
= &omap44xx_i2c1_hwmod
,
4166 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4169 /* l4_per -> i2c2 */
4170 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2
= {
4171 .master
= &omap44xx_l4_per_hwmod
,
4172 .slave
= &omap44xx_i2c2_hwmod
,
4174 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4177 /* l4_per -> i2c3 */
4178 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3
= {
4179 .master
= &omap44xx_l4_per_hwmod
,
4180 .slave
= &omap44xx_i2c3_hwmod
,
4182 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4185 /* l4_per -> i2c4 */
4186 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4
= {
4187 .master
= &omap44xx_l4_per_hwmod
,
4188 .slave
= &omap44xx_i2c4_hwmod
,
4190 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4193 /* l3_main_2 -> ipu */
4194 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu
= {
4195 .master
= &omap44xx_l3_main_2_hwmod
,
4196 .slave
= &omap44xx_ipu_hwmod
,
4198 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4201 static struct omap_hwmod_addr_space omap44xx_iss_addrs
[] = {
4203 .pa_start
= 0x52000000,
4204 .pa_end
= 0x520000ff,
4205 .flags
= ADDR_TYPE_RT
4210 /* l3_main_2 -> iss */
4211 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss
= {
4212 .master
= &omap44xx_l3_main_2_hwmod
,
4213 .slave
= &omap44xx_iss_hwmod
,
4215 .addr
= omap44xx_iss_addrs
,
4216 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4220 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if
= {
4221 .master
= &omap44xx_iva_hwmod
,
4222 .slave
= &omap44xx_sl2if_hwmod
,
4223 .clk
= "dpll_iva_m5x2_ck",
4224 .user
= OCP_USER_IVA
,
4227 /* l3_main_2 -> iva */
4228 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva
= {
4229 .master
= &omap44xx_l3_main_2_hwmod
,
4230 .slave
= &omap44xx_iva_hwmod
,
4232 .user
= OCP_USER_MPU
,
4235 /* l4_wkup -> kbd */
4236 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd
= {
4237 .master
= &omap44xx_l4_wkup_hwmod
,
4238 .slave
= &omap44xx_kbd_hwmod
,
4239 .clk
= "l4_wkup_clk_mux_ck",
4240 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4243 /* l4_cfg -> mailbox */
4244 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox
= {
4245 .master
= &omap44xx_l4_cfg_hwmod
,
4246 .slave
= &omap44xx_mailbox_hwmod
,
4248 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4251 static struct omap_hwmod_addr_space omap44xx_mcasp_addrs
[] = {
4253 .pa_start
= 0x40128000,
4254 .pa_end
= 0x401283ff,
4255 .flags
= ADDR_TYPE_RT
4260 /* l4_abe -> mcasp */
4261 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp
= {
4262 .master
= &omap44xx_l4_abe_hwmod
,
4263 .slave
= &omap44xx_mcasp_hwmod
,
4264 .clk
= "ocp_abe_iclk",
4265 .addr
= omap44xx_mcasp_addrs
,
4266 .user
= OCP_USER_MPU
,
4269 static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs
[] = {
4271 .pa_start
= 0x49028000,
4272 .pa_end
= 0x490283ff,
4273 .flags
= ADDR_TYPE_RT
4278 /* l4_abe -> mcasp (dma) */
4279 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma
= {
4280 .master
= &omap44xx_l4_abe_hwmod
,
4281 .slave
= &omap44xx_mcasp_hwmod
,
4282 .clk
= "ocp_abe_iclk",
4283 .addr
= omap44xx_mcasp_dma_addrs
,
4284 .user
= OCP_USER_SDMA
,
4287 /* l4_abe -> mcbsp1 */
4288 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1
= {
4289 .master
= &omap44xx_l4_abe_hwmod
,
4290 .slave
= &omap44xx_mcbsp1_hwmod
,
4291 .clk
= "ocp_abe_iclk",
4292 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4295 /* l4_abe -> mcbsp2 */
4296 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2
= {
4297 .master
= &omap44xx_l4_abe_hwmod
,
4298 .slave
= &omap44xx_mcbsp2_hwmod
,
4299 .clk
= "ocp_abe_iclk",
4300 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4303 /* l4_abe -> mcbsp3 */
4304 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3
= {
4305 .master
= &omap44xx_l4_abe_hwmod
,
4306 .slave
= &omap44xx_mcbsp3_hwmod
,
4307 .clk
= "ocp_abe_iclk",
4308 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4311 /* l4_per -> mcbsp4 */
4312 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4
= {
4313 .master
= &omap44xx_l4_per_hwmod
,
4314 .slave
= &omap44xx_mcbsp4_hwmod
,
4316 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4319 /* l4_abe -> mcpdm */
4320 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm
= {
4321 .master
= &omap44xx_l4_abe_hwmod
,
4322 .slave
= &omap44xx_mcpdm_hwmod
,
4323 .clk
= "ocp_abe_iclk",
4324 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4327 /* l4_per -> mcspi1 */
4328 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1
= {
4329 .master
= &omap44xx_l4_per_hwmod
,
4330 .slave
= &omap44xx_mcspi1_hwmod
,
4332 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4335 /* l4_per -> mcspi2 */
4336 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2
= {
4337 .master
= &omap44xx_l4_per_hwmod
,
4338 .slave
= &omap44xx_mcspi2_hwmod
,
4340 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4343 /* l4_per -> mcspi3 */
4344 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3
= {
4345 .master
= &omap44xx_l4_per_hwmod
,
4346 .slave
= &omap44xx_mcspi3_hwmod
,
4348 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4351 /* l4_per -> mcspi4 */
4352 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4
= {
4353 .master
= &omap44xx_l4_per_hwmod
,
4354 .slave
= &omap44xx_mcspi4_hwmod
,
4356 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4359 /* l4_per -> mmc1 */
4360 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1
= {
4361 .master
= &omap44xx_l4_per_hwmod
,
4362 .slave
= &omap44xx_mmc1_hwmod
,
4364 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4367 /* l4_per -> mmc2 */
4368 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2
= {
4369 .master
= &omap44xx_l4_per_hwmod
,
4370 .slave
= &omap44xx_mmc2_hwmod
,
4372 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4375 /* l4_per -> mmc3 */
4376 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3
= {
4377 .master
= &omap44xx_l4_per_hwmod
,
4378 .slave
= &omap44xx_mmc3_hwmod
,
4380 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4383 /* l4_per -> mmc4 */
4384 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4
= {
4385 .master
= &omap44xx_l4_per_hwmod
,
4386 .slave
= &omap44xx_mmc4_hwmod
,
4388 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4391 /* l4_per -> mmc5 */
4392 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5
= {
4393 .master
= &omap44xx_l4_per_hwmod
,
4394 .slave
= &omap44xx_mmc5_hwmod
,
4396 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4399 /* l3_main_2 -> ocmc_ram */
4400 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram
= {
4401 .master
= &omap44xx_l3_main_2_hwmod
,
4402 .slave
= &omap44xx_ocmc_ram_hwmod
,
4404 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4407 /* l4_cfg -> ocp2scp_usb_phy */
4408 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy
= {
4409 .master
= &omap44xx_l4_cfg_hwmod
,
4410 .slave
= &omap44xx_ocp2scp_usb_phy_hwmod
,
4412 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4415 /* mpu_private -> prcm_mpu */
4416 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu
= {
4417 .master
= &omap44xx_mpu_private_hwmod
,
4418 .slave
= &omap44xx_prcm_mpu_hwmod
,
4420 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4423 /* l4_wkup -> cm_core_aon */
4424 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon
= {
4425 .master
= &omap44xx_l4_wkup_hwmod
,
4426 .slave
= &omap44xx_cm_core_aon_hwmod
,
4427 .clk
= "l4_wkup_clk_mux_ck",
4428 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4431 /* l4_cfg -> cm_core */
4432 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core
= {
4433 .master
= &omap44xx_l4_cfg_hwmod
,
4434 .slave
= &omap44xx_cm_core_hwmod
,
4436 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4439 /* l4_wkup -> prm */
4440 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm
= {
4441 .master
= &omap44xx_l4_wkup_hwmod
,
4442 .slave
= &omap44xx_prm_hwmod
,
4443 .clk
= "l4_wkup_clk_mux_ck",
4444 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4447 /* l4_wkup -> scrm */
4448 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm
= {
4449 .master
= &omap44xx_l4_wkup_hwmod
,
4450 .slave
= &omap44xx_scrm_hwmod
,
4451 .clk
= "l4_wkup_clk_mux_ck",
4452 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4455 /* l3_main_2 -> sl2if */
4456 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if
= {
4457 .master
= &omap44xx_l3_main_2_hwmod
,
4458 .slave
= &omap44xx_sl2if_hwmod
,
4460 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4463 static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs
[] = {
4465 .pa_start
= 0x4012c000,
4466 .pa_end
= 0x4012c3ff,
4467 .flags
= ADDR_TYPE_RT
4472 /* l4_abe -> slimbus1 */
4473 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1
= {
4474 .master
= &omap44xx_l4_abe_hwmod
,
4475 .slave
= &omap44xx_slimbus1_hwmod
,
4476 .clk
= "ocp_abe_iclk",
4477 .addr
= omap44xx_slimbus1_addrs
,
4478 .user
= OCP_USER_MPU
,
4481 static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs
[] = {
4483 .pa_start
= 0x4902c000,
4484 .pa_end
= 0x4902c3ff,
4485 .flags
= ADDR_TYPE_RT
4490 /* l4_abe -> slimbus1 (dma) */
4491 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma
= {
4492 .master
= &omap44xx_l4_abe_hwmod
,
4493 .slave
= &omap44xx_slimbus1_hwmod
,
4494 .clk
= "ocp_abe_iclk",
4495 .addr
= omap44xx_slimbus1_dma_addrs
,
4496 .user
= OCP_USER_SDMA
,
4499 static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs
[] = {
4501 .pa_start
= 0x48076000,
4502 .pa_end
= 0x480763ff,
4503 .flags
= ADDR_TYPE_RT
4508 /* l4_per -> slimbus2 */
4509 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2
= {
4510 .master
= &omap44xx_l4_per_hwmod
,
4511 .slave
= &omap44xx_slimbus2_hwmod
,
4513 .addr
= omap44xx_slimbus2_addrs
,
4514 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4517 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs
[] = {
4519 .pa_start
= 0x4a0dd000,
4520 .pa_end
= 0x4a0dd03f,
4521 .flags
= ADDR_TYPE_RT
4526 /* l4_cfg -> smartreflex_core */
4527 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core
= {
4528 .master
= &omap44xx_l4_cfg_hwmod
,
4529 .slave
= &omap44xx_smartreflex_core_hwmod
,
4531 .addr
= omap44xx_smartreflex_core_addrs
,
4532 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4535 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs
[] = {
4537 .pa_start
= 0x4a0db000,
4538 .pa_end
= 0x4a0db03f,
4539 .flags
= ADDR_TYPE_RT
4544 /* l4_cfg -> smartreflex_iva */
4545 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva
= {
4546 .master
= &omap44xx_l4_cfg_hwmod
,
4547 .slave
= &omap44xx_smartreflex_iva_hwmod
,
4549 .addr
= omap44xx_smartreflex_iva_addrs
,
4550 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4553 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs
[] = {
4555 .pa_start
= 0x4a0d9000,
4556 .pa_end
= 0x4a0d903f,
4557 .flags
= ADDR_TYPE_RT
4562 /* l4_cfg -> smartreflex_mpu */
4563 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu
= {
4564 .master
= &omap44xx_l4_cfg_hwmod
,
4565 .slave
= &omap44xx_smartreflex_mpu_hwmod
,
4567 .addr
= omap44xx_smartreflex_mpu_addrs
,
4568 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4571 /* l4_cfg -> spinlock */
4572 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock
= {
4573 .master
= &omap44xx_l4_cfg_hwmod
,
4574 .slave
= &omap44xx_spinlock_hwmod
,
4576 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4579 /* l4_wkup -> timer1 */
4580 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1
= {
4581 .master
= &omap44xx_l4_wkup_hwmod
,
4582 .slave
= &omap44xx_timer1_hwmod
,
4583 .clk
= "l4_wkup_clk_mux_ck",
4584 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4587 /* l4_per -> timer2 */
4588 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2
= {
4589 .master
= &omap44xx_l4_per_hwmod
,
4590 .slave
= &omap44xx_timer2_hwmod
,
4592 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4595 /* l4_per -> timer3 */
4596 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3
= {
4597 .master
= &omap44xx_l4_per_hwmod
,
4598 .slave
= &omap44xx_timer3_hwmod
,
4600 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4603 /* l4_per -> timer4 */
4604 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4
= {
4605 .master
= &omap44xx_l4_per_hwmod
,
4606 .slave
= &omap44xx_timer4_hwmod
,
4608 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4611 /* l4_abe -> timer5 */
4612 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5
= {
4613 .master
= &omap44xx_l4_abe_hwmod
,
4614 .slave
= &omap44xx_timer5_hwmod
,
4615 .clk
= "ocp_abe_iclk",
4616 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4619 /* l4_abe -> timer6 */
4620 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6
= {
4621 .master
= &omap44xx_l4_abe_hwmod
,
4622 .slave
= &omap44xx_timer6_hwmod
,
4623 .clk
= "ocp_abe_iclk",
4624 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4627 /* l4_abe -> timer7 */
4628 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7
= {
4629 .master
= &omap44xx_l4_abe_hwmod
,
4630 .slave
= &omap44xx_timer7_hwmod
,
4631 .clk
= "ocp_abe_iclk",
4632 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4635 /* l4_abe -> timer8 */
4636 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8
= {
4637 .master
= &omap44xx_l4_abe_hwmod
,
4638 .slave
= &omap44xx_timer8_hwmod
,
4639 .clk
= "ocp_abe_iclk",
4640 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4643 /* l4_per -> timer9 */
4644 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9
= {
4645 .master
= &omap44xx_l4_per_hwmod
,
4646 .slave
= &omap44xx_timer9_hwmod
,
4648 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4651 /* l4_per -> timer10 */
4652 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10
= {
4653 .master
= &omap44xx_l4_per_hwmod
,
4654 .slave
= &omap44xx_timer10_hwmod
,
4656 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4659 /* l4_per -> timer11 */
4660 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11
= {
4661 .master
= &omap44xx_l4_per_hwmod
,
4662 .slave
= &omap44xx_timer11_hwmod
,
4664 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4667 /* l4_per -> uart1 */
4668 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1
= {
4669 .master
= &omap44xx_l4_per_hwmod
,
4670 .slave
= &omap44xx_uart1_hwmod
,
4672 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4675 /* l4_per -> uart2 */
4676 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2
= {
4677 .master
= &omap44xx_l4_per_hwmod
,
4678 .slave
= &omap44xx_uart2_hwmod
,
4680 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4683 /* l4_per -> uart3 */
4684 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3
= {
4685 .master
= &omap44xx_l4_per_hwmod
,
4686 .slave
= &omap44xx_uart3_hwmod
,
4688 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4691 /* l4_per -> uart4 */
4692 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4
= {
4693 .master
= &omap44xx_l4_per_hwmod
,
4694 .slave
= &omap44xx_uart4_hwmod
,
4696 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4699 /* l4_cfg -> usb_host_fs */
4700 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs
= {
4701 .master
= &omap44xx_l4_cfg_hwmod
,
4702 .slave
= &omap44xx_usb_host_fs_hwmod
,
4704 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4707 /* l4_cfg -> usb_host_hs */
4708 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs
= {
4709 .master
= &omap44xx_l4_cfg_hwmod
,
4710 .slave
= &omap44xx_usb_host_hs_hwmod
,
4712 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4715 /* l4_cfg -> usb_otg_hs */
4716 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs
= {
4717 .master
= &omap44xx_l4_cfg_hwmod
,
4718 .slave
= &omap44xx_usb_otg_hs_hwmod
,
4720 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4723 /* l4_cfg -> usb_tll_hs */
4724 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs
= {
4725 .master
= &omap44xx_l4_cfg_hwmod
,
4726 .slave
= &omap44xx_usb_tll_hs_hwmod
,
4728 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4731 /* l4_wkup -> wd_timer2 */
4732 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2
= {
4733 .master
= &omap44xx_l4_wkup_hwmod
,
4734 .slave
= &omap44xx_wd_timer2_hwmod
,
4735 .clk
= "l4_wkup_clk_mux_ck",
4736 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4739 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs
[] = {
4741 .pa_start
= 0x40130000,
4742 .pa_end
= 0x4013007f,
4743 .flags
= ADDR_TYPE_RT
4748 /* l4_abe -> wd_timer3 */
4749 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3
= {
4750 .master
= &omap44xx_l4_abe_hwmod
,
4751 .slave
= &omap44xx_wd_timer3_hwmod
,
4752 .clk
= "ocp_abe_iclk",
4753 .addr
= omap44xx_wd_timer3_addrs
,
4754 .user
= OCP_USER_MPU
,
4757 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs
[] = {
4759 .pa_start
= 0x49030000,
4760 .pa_end
= 0x4903007f,
4761 .flags
= ADDR_TYPE_RT
4766 /* l4_abe -> wd_timer3 (dma) */
4767 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma
= {
4768 .master
= &omap44xx_l4_abe_hwmod
,
4769 .slave
= &omap44xx_wd_timer3_hwmod
,
4770 .clk
= "ocp_abe_iclk",
4771 .addr
= omap44xx_wd_timer3_dma_addrs
,
4772 .user
= OCP_USER_SDMA
,
4776 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1
= {
4777 .master
= &omap44xx_mpu_hwmod
,
4778 .slave
= &omap44xx_emif1_hwmod
,
4780 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4784 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2
= {
4785 .master
= &omap44xx_mpu_hwmod
,
4786 .slave
= &omap44xx_emif2_hwmod
,
4788 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4791 static struct omap_hwmod_ocp_if
*omap44xx_hwmod_ocp_ifs
[] __initdata
= {
4792 &omap44xx_l3_main_1__dmm
,
4794 &omap44xx_iva__l3_instr
,
4795 &omap44xx_l3_main_3__l3_instr
,
4796 &omap44xx_ocp_wp_noc__l3_instr
,
4797 &omap44xx_dsp__l3_main_1
,
4798 &omap44xx_dss__l3_main_1
,
4799 &omap44xx_l3_main_2__l3_main_1
,
4800 &omap44xx_l4_cfg__l3_main_1
,
4801 &omap44xx_mmc1__l3_main_1
,
4802 &omap44xx_mmc2__l3_main_1
,
4803 &omap44xx_mpu__l3_main_1
,
4804 &omap44xx_debugss__l3_main_2
,
4805 &omap44xx_dma_system__l3_main_2
,
4806 &omap44xx_fdif__l3_main_2
,
4807 &omap44xx_gpu__l3_main_2
,
4808 &omap44xx_hsi__l3_main_2
,
4809 &omap44xx_ipu__l3_main_2
,
4810 &omap44xx_iss__l3_main_2
,
4811 &omap44xx_iva__l3_main_2
,
4812 &omap44xx_l3_main_1__l3_main_2
,
4813 &omap44xx_l4_cfg__l3_main_2
,
4814 /* &omap44xx_usb_host_fs__l3_main_2, */
4815 &omap44xx_usb_host_hs__l3_main_2
,
4816 &omap44xx_usb_otg_hs__l3_main_2
,
4817 &omap44xx_l3_main_1__l3_main_3
,
4818 &omap44xx_l3_main_2__l3_main_3
,
4819 &omap44xx_l4_cfg__l3_main_3
,
4820 &omap44xx_aess__l4_abe
,
4821 &omap44xx_dsp__l4_abe
,
4822 &omap44xx_l3_main_1__l4_abe
,
4823 &omap44xx_mpu__l4_abe
,
4824 &omap44xx_l3_main_1__l4_cfg
,
4825 &omap44xx_l3_main_2__l4_per
,
4826 &omap44xx_l4_cfg__l4_wkup
,
4827 &omap44xx_mpu__mpu_private
,
4828 &omap44xx_l4_cfg__ocp_wp_noc
,
4829 &omap44xx_l4_abe__aess
,
4830 &omap44xx_l4_abe__aess_dma
,
4831 &omap44xx_l3_main_2__c2c
,
4832 &omap44xx_l4_wkup__counter_32k
,
4833 &omap44xx_l4_cfg__ctrl_module_core
,
4834 &omap44xx_l4_cfg__ctrl_module_pad_core
,
4835 &omap44xx_l4_wkup__ctrl_module_wkup
,
4836 &omap44xx_l4_wkup__ctrl_module_pad_wkup
,
4837 &omap44xx_l3_instr__debugss
,
4838 &omap44xx_l4_cfg__dma_system
,
4839 &omap44xx_l4_abe__dmic
,
4841 /* &omap44xx_dsp__sl2if, */
4842 &omap44xx_l4_cfg__dsp
,
4843 &omap44xx_l3_main_2__dss
,
4844 &omap44xx_l4_per__dss
,
4845 &omap44xx_l3_main_2__dss_dispc
,
4846 &omap44xx_l4_per__dss_dispc
,
4847 &omap44xx_l3_main_2__dss_dsi1
,
4848 &omap44xx_l4_per__dss_dsi1
,
4849 &omap44xx_l3_main_2__dss_dsi2
,
4850 &omap44xx_l4_per__dss_dsi2
,
4851 &omap44xx_l3_main_2__dss_hdmi
,
4852 &omap44xx_l4_per__dss_hdmi
,
4853 &omap44xx_l3_main_2__dss_rfbi
,
4854 &omap44xx_l4_per__dss_rfbi
,
4855 &omap44xx_l3_main_2__dss_venc
,
4856 &omap44xx_l4_per__dss_venc
,
4857 &omap44xx_l4_per__elm
,
4858 &omap44xx_l4_cfg__fdif
,
4859 &omap44xx_l4_wkup__gpio1
,
4860 &omap44xx_l4_per__gpio2
,
4861 &omap44xx_l4_per__gpio3
,
4862 &omap44xx_l4_per__gpio4
,
4863 &omap44xx_l4_per__gpio5
,
4864 &omap44xx_l4_per__gpio6
,
4865 &omap44xx_l3_main_2__gpmc
,
4866 &omap44xx_l3_main_2__gpu
,
4867 &omap44xx_l4_per__hdq1w
,
4868 &omap44xx_l4_cfg__hsi
,
4869 &omap44xx_l4_per__i2c1
,
4870 &omap44xx_l4_per__i2c2
,
4871 &omap44xx_l4_per__i2c3
,
4872 &omap44xx_l4_per__i2c4
,
4873 &omap44xx_l3_main_2__ipu
,
4874 &omap44xx_l3_main_2__iss
,
4875 /* &omap44xx_iva__sl2if, */
4876 &omap44xx_l3_main_2__iva
,
4877 &omap44xx_l4_wkup__kbd
,
4878 &omap44xx_l4_cfg__mailbox
,
4879 &omap44xx_l4_abe__mcasp
,
4880 &omap44xx_l4_abe__mcasp_dma
,
4881 &omap44xx_l4_abe__mcbsp1
,
4882 &omap44xx_l4_abe__mcbsp2
,
4883 &omap44xx_l4_abe__mcbsp3
,
4884 &omap44xx_l4_per__mcbsp4
,
4885 &omap44xx_l4_abe__mcpdm
,
4886 &omap44xx_l4_per__mcspi1
,
4887 &omap44xx_l4_per__mcspi2
,
4888 &omap44xx_l4_per__mcspi3
,
4889 &omap44xx_l4_per__mcspi4
,
4890 &omap44xx_l4_per__mmc1
,
4891 &omap44xx_l4_per__mmc2
,
4892 &omap44xx_l4_per__mmc3
,
4893 &omap44xx_l4_per__mmc4
,
4894 &omap44xx_l4_per__mmc5
,
4895 &omap44xx_l3_main_2__mmu_ipu
,
4896 &omap44xx_l4_cfg__mmu_dsp
,
4897 &omap44xx_l3_main_2__ocmc_ram
,
4898 &omap44xx_l4_cfg__ocp2scp_usb_phy
,
4899 &omap44xx_mpu_private__prcm_mpu
,
4900 &omap44xx_l4_wkup__cm_core_aon
,
4901 &omap44xx_l4_cfg__cm_core
,
4902 &omap44xx_l4_wkup__prm
,
4903 &omap44xx_l4_wkup__scrm
,
4904 /* &omap44xx_l3_main_2__sl2if, */
4905 &omap44xx_l4_abe__slimbus1
,
4906 &omap44xx_l4_abe__slimbus1_dma
,
4907 &omap44xx_l4_per__slimbus2
,
4908 &omap44xx_l4_cfg__smartreflex_core
,
4909 &omap44xx_l4_cfg__smartreflex_iva
,
4910 &omap44xx_l4_cfg__smartreflex_mpu
,
4911 &omap44xx_l4_cfg__spinlock
,
4912 &omap44xx_l4_wkup__timer1
,
4913 &omap44xx_l4_per__timer2
,
4914 &omap44xx_l4_per__timer3
,
4915 &omap44xx_l4_per__timer4
,
4916 &omap44xx_l4_abe__timer5
,
4917 &omap44xx_l4_abe__timer6
,
4918 &omap44xx_l4_abe__timer7
,
4919 &omap44xx_l4_abe__timer8
,
4920 &omap44xx_l4_per__timer9
,
4921 &omap44xx_l4_per__timer10
,
4922 &omap44xx_l4_per__timer11
,
4923 &omap44xx_l4_per__uart1
,
4924 &omap44xx_l4_per__uart2
,
4925 &omap44xx_l4_per__uart3
,
4926 &omap44xx_l4_per__uart4
,
4927 /* &omap44xx_l4_cfg__usb_host_fs, */
4928 &omap44xx_l4_cfg__usb_host_hs
,
4929 &omap44xx_l4_cfg__usb_otg_hs
,
4930 &omap44xx_l4_cfg__usb_tll_hs
,
4931 &omap44xx_l4_wkup__wd_timer2
,
4932 &omap44xx_l4_abe__wd_timer3
,
4933 &omap44xx_l4_abe__wd_timer3_dma
,
4934 &omap44xx_mpu__emif1
,
4935 &omap44xx_mpu__emif2
,
4936 &omap44xx_l3_main_2__aes1
,
4937 &omap44xx_l3_main_2__aes2
,
4938 &omap44xx_l3_main_2__des
,
4939 &omap44xx_l3_main_2__sha0
,
4943 int __init
omap44xx_hwmod_init(void)
4946 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs
);