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 <linux/platform_data/iommu-omap.h>
34 #include <plat/dmtimer.h>
36 #include "omap_hwmod.h"
37 #include "omap_hwmod_common_data.h"
41 #include "prm-regbits-44xx.h"
45 /* Base offset for all OMAP4 interrupts external to MPUSS */
46 #define OMAP44XX_IRQ_GIC_START 32
48 /* Base offset for all OMAP4 dma requests */
49 #define OMAP44XX_DMA_REQ_START 1
59 static struct omap_hwmod_class omap44xx_dmm_hwmod_class
= {
64 static struct omap_hwmod omap44xx_dmm_hwmod
= {
66 .class = &omap44xx_dmm_hwmod_class
,
67 .clkdm_name
= "l3_emif_clkdm",
70 .clkctrl_offs
= OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET
,
71 .context_offs
= OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET
,
78 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
80 static struct omap_hwmod_class omap44xx_l3_hwmod_class
= {
85 static struct omap_hwmod omap44xx_l3_instr_hwmod
= {
87 .class = &omap44xx_l3_hwmod_class
,
88 .clkdm_name
= "l3_instr_clkdm",
91 .clkctrl_offs
= OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET
,
92 .context_offs
= OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET
,
93 .modulemode
= MODULEMODE_HWCTRL
,
99 static struct omap_hwmod omap44xx_l3_main_1_hwmod
= {
101 .class = &omap44xx_l3_hwmod_class
,
102 .clkdm_name
= "l3_1_clkdm",
105 .clkctrl_offs
= OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET
,
106 .context_offs
= OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET
,
112 static struct omap_hwmod omap44xx_l3_main_2_hwmod
= {
114 .class = &omap44xx_l3_hwmod_class
,
115 .clkdm_name
= "l3_2_clkdm",
118 .clkctrl_offs
= OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET
,
119 .context_offs
= OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET
,
125 static struct omap_hwmod omap44xx_l3_main_3_hwmod
= {
127 .class = &omap44xx_l3_hwmod_class
,
128 .clkdm_name
= "l3_instr_clkdm",
131 .clkctrl_offs
= OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET
,
132 .context_offs
= OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET
,
133 .modulemode
= MODULEMODE_HWCTRL
,
140 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
142 static struct omap_hwmod_class omap44xx_l4_hwmod_class
= {
147 static struct omap_hwmod omap44xx_l4_abe_hwmod
= {
149 .class = &omap44xx_l4_hwmod_class
,
150 .clkdm_name
= "abe_clkdm",
153 .clkctrl_offs
= OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET
,
154 .context_offs
= OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
155 .lostcontext_mask
= OMAP4430_LOSTMEM_AESSMEM_MASK
,
156 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
162 static struct omap_hwmod omap44xx_l4_cfg_hwmod
= {
164 .class = &omap44xx_l4_hwmod_class
,
165 .clkdm_name
= "l4_cfg_clkdm",
168 .clkctrl_offs
= OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET
,
169 .context_offs
= OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET
,
175 static struct omap_hwmod omap44xx_l4_per_hwmod
= {
177 .class = &omap44xx_l4_hwmod_class
,
178 .clkdm_name
= "l4_per_clkdm",
181 .clkctrl_offs
= OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET
,
182 .context_offs
= OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET
,
188 static struct omap_hwmod omap44xx_l4_wkup_hwmod
= {
190 .class = &omap44xx_l4_hwmod_class
,
191 .clkdm_name
= "l4_wkup_clkdm",
194 .clkctrl_offs
= OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET
,
195 .context_offs
= OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET
,
202 * instance(s): mpu_private
204 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class
= {
209 static struct omap_hwmod omap44xx_mpu_private_hwmod
= {
210 .name
= "mpu_private",
211 .class = &omap44xx_mpu_bus_hwmod_class
,
212 .clkdm_name
= "mpuss_clkdm",
215 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
222 * instance(s): ocp_wp_noc
224 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class
= {
225 .name
= "ocp_wp_noc",
229 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod
= {
230 .name
= "ocp_wp_noc",
231 .class = &omap44xx_ocp_wp_noc_hwmod_class
,
232 .clkdm_name
= "l3_instr_clkdm",
235 .clkctrl_offs
= OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET
,
236 .context_offs
= OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET
,
237 .modulemode
= MODULEMODE_HWCTRL
,
243 * Modules omap_hwmod structures
245 * The following IPs are excluded for the moment because:
246 * - They do not need an explicit SW control using omap_hwmod API.
247 * - They still need to be validated with the driver
248 * properly adapted to omap_hwmod / omap_device
255 * audio engine sub system
258 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc
= {
261 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
262 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
263 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
|
264 MSTANDBY_SMART_WKUP
),
265 .sysc_fields
= &omap_hwmod_sysc_type2
,
268 static struct omap_hwmod_class omap44xx_aess_hwmod_class
= {
270 .sysc
= &omap44xx_aess_sysc
,
271 .enable_preprogram
= omap_hwmod_aess_preprogram
,
275 static struct omap_hwmod omap44xx_aess_hwmod
= {
277 .class = &omap44xx_aess_hwmod_class
,
278 .clkdm_name
= "abe_clkdm",
279 .main_clk
= "aess_fclk",
282 .clkctrl_offs
= OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET
,
283 .context_offs
= OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
284 .lostcontext_mask
= OMAP4430_LOSTCONTEXT_DFF_MASK
,
285 .modulemode
= MODULEMODE_SWCTRL
,
292 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
296 static struct omap_hwmod_class omap44xx_c2c_hwmod_class
= {
301 static struct omap_hwmod omap44xx_c2c_hwmod
= {
303 .class = &omap44xx_c2c_hwmod_class
,
304 .clkdm_name
= "d2d_clkdm",
307 .clkctrl_offs
= OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET
,
308 .context_offs
= OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET
,
315 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
318 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc
= {
321 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
322 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
323 .sysc_fields
= &omap_hwmod_sysc_type1
,
326 static struct omap_hwmod_class omap44xx_counter_hwmod_class
= {
328 .sysc
= &omap44xx_counter_sysc
,
332 static struct omap_hwmod omap44xx_counter_32k_hwmod
= {
333 .name
= "counter_32k",
334 .class = &omap44xx_counter_hwmod_class
,
335 .clkdm_name
= "l4_wkup_clkdm",
336 .flags
= HWMOD_SWSUP_SIDLE
,
337 .main_clk
= "sys_32k_ck",
340 .clkctrl_offs
= OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET
,
341 .context_offs
= OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET
,
347 * 'ctrl_module' class
348 * attila core control module + core pad control module + wkup pad control
349 * module + attila wkup control module
352 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc
= {
355 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
356 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
358 .sysc_fields
= &omap_hwmod_sysc_type2
,
361 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class
= {
362 .name
= "ctrl_module",
363 .sysc
= &omap44xx_ctrl_module_sysc
,
366 /* ctrl_module_core */
367 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod
= {
368 .name
= "ctrl_module_core",
369 .class = &omap44xx_ctrl_module_hwmod_class
,
370 .clkdm_name
= "l4_cfg_clkdm",
373 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
378 /* ctrl_module_pad_core */
379 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod
= {
380 .name
= "ctrl_module_pad_core",
381 .class = &omap44xx_ctrl_module_hwmod_class
,
382 .clkdm_name
= "l4_cfg_clkdm",
385 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
390 /* ctrl_module_wkup */
391 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod
= {
392 .name
= "ctrl_module_wkup",
393 .class = &omap44xx_ctrl_module_hwmod_class
,
394 .clkdm_name
= "l4_wkup_clkdm",
397 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
402 /* ctrl_module_pad_wkup */
403 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod
= {
404 .name
= "ctrl_module_pad_wkup",
405 .class = &omap44xx_ctrl_module_hwmod_class
,
406 .clkdm_name
= "l4_wkup_clkdm",
409 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
416 * debug and emulation sub system
419 static struct omap_hwmod_class omap44xx_debugss_hwmod_class
= {
424 static struct omap_hwmod omap44xx_debugss_hwmod
= {
426 .class = &omap44xx_debugss_hwmod_class
,
427 .clkdm_name
= "emu_sys_clkdm",
428 .main_clk
= "trace_clk_div_ck",
431 .clkctrl_offs
= OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET
,
432 .context_offs
= OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET
,
439 * dma controller for data exchange between memory to memory (i.e. internal or
440 * external memory) and gp peripherals to memory or memory to gp peripherals
443 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc
= {
447 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
448 SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
449 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
450 SYSS_HAS_RESET_STATUS
),
451 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
452 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
453 .sysc_fields
= &omap_hwmod_sysc_type1
,
456 static struct omap_hwmod_class omap44xx_dma_hwmod_class
= {
458 .sysc
= &omap44xx_dma_sysc
,
462 static struct omap_dma_dev_attr dma_dev_attr
= {
463 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
464 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
469 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs
[] = {
470 { .name
= "0", .irq
= 12 + OMAP44XX_IRQ_GIC_START
},
471 { .name
= "1", .irq
= 13 + OMAP44XX_IRQ_GIC_START
},
472 { .name
= "2", .irq
= 14 + OMAP44XX_IRQ_GIC_START
},
473 { .name
= "3", .irq
= 15 + OMAP44XX_IRQ_GIC_START
},
477 static struct omap_hwmod omap44xx_dma_system_hwmod
= {
478 .name
= "dma_system",
479 .class = &omap44xx_dma_hwmod_class
,
480 .clkdm_name
= "l3_dma_clkdm",
481 .mpu_irqs
= omap44xx_dma_system_irqs
,
482 .xlate_irq
= omap4_xlate_irq
,
483 .main_clk
= "l3_div_ck",
486 .clkctrl_offs
= OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET
,
487 .context_offs
= OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET
,
490 .dev_attr
= &dma_dev_attr
,
495 * digital microphone controller
498 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc
= {
501 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
502 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
503 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
505 .sysc_fields
= &omap_hwmod_sysc_type2
,
508 static struct omap_hwmod_class omap44xx_dmic_hwmod_class
= {
510 .sysc
= &omap44xx_dmic_sysc
,
514 static struct omap_hwmod omap44xx_dmic_hwmod
= {
516 .class = &omap44xx_dmic_hwmod_class
,
517 .clkdm_name
= "abe_clkdm",
518 .main_clk
= "func_dmic_abe_gfclk",
521 .clkctrl_offs
= OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET
,
522 .context_offs
= OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET
,
523 .modulemode
= MODULEMODE_SWCTRL
,
533 static struct omap_hwmod_class omap44xx_dsp_hwmod_class
= {
538 static struct omap_hwmod_rst_info omap44xx_dsp_resets
[] = {
539 { .name
= "dsp", .rst_shift
= 0 },
542 static struct omap_hwmod omap44xx_dsp_hwmod
= {
544 .class = &omap44xx_dsp_hwmod_class
,
545 .clkdm_name
= "tesla_clkdm",
546 .rst_lines
= omap44xx_dsp_resets
,
547 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_dsp_resets
),
548 .main_clk
= "dpll_iva_m4x2_ck",
551 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
552 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
553 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
554 .modulemode
= MODULEMODE_HWCTRL
,
564 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc
= {
567 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
570 static struct omap_hwmod_class omap44xx_dss_hwmod_class
= {
572 .sysc
= &omap44xx_dss_sysc
,
573 .reset
= omap_dss_reset
,
577 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
578 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
579 { .role
= "tv_clk", .clk
= "dss_tv_clk" },
580 { .role
= "hdmi_clk", .clk
= "dss_48mhz_clk" },
583 static struct omap_hwmod omap44xx_dss_hwmod
= {
585 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
586 .class = &omap44xx_dss_hwmod_class
,
587 .clkdm_name
= "l3_dss_clkdm",
588 .main_clk
= "dss_dss_clk",
591 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
592 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
593 .modulemode
= MODULEMODE_SWCTRL
,
596 .opt_clks
= dss_opt_clks
,
597 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
605 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc
= {
609 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
610 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_MIDLEMODE
|
611 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
612 SYSS_HAS_RESET_STATUS
),
613 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
614 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
615 .sysc_fields
= &omap_hwmod_sysc_type1
,
618 static struct omap_hwmod_class omap44xx_dispc_hwmod_class
= {
620 .sysc
= &omap44xx_dispc_sysc
,
624 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs
[] = {
625 { .irq
= 25 + OMAP44XX_IRQ_GIC_START
},
629 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs
[] = {
630 { .dma_req
= 5 + OMAP44XX_DMA_REQ_START
},
634 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr
= {
636 .has_framedonetv_irq
= 1
639 static struct omap_hwmod omap44xx_dss_dispc_hwmod
= {
641 .class = &omap44xx_dispc_hwmod_class
,
642 .clkdm_name
= "l3_dss_clkdm",
643 .mpu_irqs
= omap44xx_dss_dispc_irqs
,
644 .xlate_irq
= omap4_xlate_irq
,
645 .sdma_reqs
= omap44xx_dss_dispc_sdma_reqs
,
646 .main_clk
= "dss_dss_clk",
649 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
650 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
653 .dev_attr
= &omap44xx_dss_dispc_dev_attr
,
654 .parent_hwmod
= &omap44xx_dss_hwmod
,
659 * display serial interface controller
662 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc
= {
666 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
667 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
668 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
669 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
670 .sysc_fields
= &omap_hwmod_sysc_type1
,
673 static struct omap_hwmod_class omap44xx_dsi_hwmod_class
= {
675 .sysc
= &omap44xx_dsi_sysc
,
679 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs
[] = {
680 { .irq
= 53 + OMAP44XX_IRQ_GIC_START
},
684 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs
[] = {
685 { .dma_req
= 74 + OMAP44XX_DMA_REQ_START
},
689 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
690 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
693 static struct omap_hwmod omap44xx_dss_dsi1_hwmod
= {
695 .class = &omap44xx_dsi_hwmod_class
,
696 .clkdm_name
= "l3_dss_clkdm",
697 .mpu_irqs
= omap44xx_dss_dsi1_irqs
,
698 .xlate_irq
= omap4_xlate_irq
,
699 .sdma_reqs
= omap44xx_dss_dsi1_sdma_reqs
,
700 .main_clk
= "dss_dss_clk",
703 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
704 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
707 .opt_clks
= dss_dsi1_opt_clks
,
708 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
709 .parent_hwmod
= &omap44xx_dss_hwmod
,
713 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs
[] = {
714 { .irq
= 84 + OMAP44XX_IRQ_GIC_START
},
718 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs
[] = {
719 { .dma_req
= 83 + OMAP44XX_DMA_REQ_START
},
723 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks
[] = {
724 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
727 static struct omap_hwmod omap44xx_dss_dsi2_hwmod
= {
729 .class = &omap44xx_dsi_hwmod_class
,
730 .clkdm_name
= "l3_dss_clkdm",
731 .mpu_irqs
= omap44xx_dss_dsi2_irqs
,
732 .xlate_irq
= omap4_xlate_irq
,
733 .sdma_reqs
= omap44xx_dss_dsi2_sdma_reqs
,
734 .main_clk
= "dss_dss_clk",
737 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
738 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
741 .opt_clks
= dss_dsi2_opt_clks
,
742 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi2_opt_clks
),
743 .parent_hwmod
= &omap44xx_dss_hwmod
,
751 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc
= {
754 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
756 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
758 .sysc_fields
= &omap_hwmod_sysc_type2
,
761 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class
= {
763 .sysc
= &omap44xx_hdmi_sysc
,
767 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs
[] = {
768 { .irq
= 101 + OMAP44XX_IRQ_GIC_START
},
772 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs
[] = {
773 { .dma_req
= 75 + OMAP44XX_DMA_REQ_START
},
777 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks
[] = {
778 { .role
= "sys_clk", .clk
= "dss_sys_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
,
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 omap44xx_dss_venc_hwmod
= {
864 .class = &omap44xx_venc_hwmod_class
,
865 .clkdm_name
= "l3_dss_clkdm",
866 .main_clk
= "dss_tv_clk",
869 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
870 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
873 .parent_hwmod
= &omap44xx_dss_hwmod
,
878 * bch error location module
881 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc
= {
885 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
886 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
887 SYSS_HAS_RESET_STATUS
),
888 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
889 .sysc_fields
= &omap_hwmod_sysc_type1
,
892 static struct omap_hwmod_class omap44xx_elm_hwmod_class
= {
894 .sysc
= &omap44xx_elm_sysc
,
898 static struct omap_hwmod omap44xx_elm_hwmod
= {
900 .class = &omap44xx_elm_hwmod_class
,
901 .clkdm_name
= "l4_per_clkdm",
904 .clkctrl_offs
= OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET
,
905 .context_offs
= OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET
,
912 * external memory interface no1
915 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc
= {
919 static struct omap_hwmod_class omap44xx_emif_hwmod_class
= {
921 .sysc
= &omap44xx_emif_sysc
,
925 static struct omap_hwmod omap44xx_emif1_hwmod
= {
927 .class = &omap44xx_emif_hwmod_class
,
928 .clkdm_name
= "l3_emif_clkdm",
929 .flags
= HWMOD_INIT_NO_IDLE
,
930 .main_clk
= "ddrphy_ck",
933 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET
,
934 .context_offs
= OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET
,
935 .modulemode
= MODULEMODE_HWCTRL
,
941 static struct omap_hwmod omap44xx_emif2_hwmod
= {
943 .class = &omap44xx_emif_hwmod_class
,
944 .clkdm_name
= "l3_emif_clkdm",
945 .flags
= HWMOD_INIT_NO_IDLE
,
946 .main_clk
= "ddrphy_ck",
949 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET
,
950 .context_offs
= OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET
,
951 .modulemode
= MODULEMODE_HWCTRL
,
958 * face detection hw accelerator module
961 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc
= {
965 * FDIF needs 100 OCP clk cycles delay after a softreset before
966 * accessing sysconfig again.
967 * The lowest frequency at the moment for L3 bus is 100 MHz, so
968 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
970 * TODO: Indicate errata when available.
973 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
974 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
975 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
976 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
977 .sysc_fields
= &omap_hwmod_sysc_type2
,
980 static struct omap_hwmod_class omap44xx_fdif_hwmod_class
= {
982 .sysc
= &omap44xx_fdif_sysc
,
986 static struct omap_hwmod omap44xx_fdif_hwmod
= {
988 .class = &omap44xx_fdif_hwmod_class
,
989 .clkdm_name
= "iss_clkdm",
990 .main_clk
= "fdif_fck",
993 .clkctrl_offs
= OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET
,
994 .context_offs
= OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET
,
995 .modulemode
= MODULEMODE_SWCTRL
,
1002 * general purpose io module
1005 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc
= {
1007 .sysc_offs
= 0x0010,
1008 .syss_offs
= 0x0114,
1009 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
1010 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1011 SYSS_HAS_RESET_STATUS
),
1012 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1014 .sysc_fields
= &omap_hwmod_sysc_type1
,
1017 static struct omap_hwmod_class omap44xx_gpio_hwmod_class
= {
1019 .sysc
= &omap44xx_gpio_sysc
,
1024 static struct omap_gpio_dev_attr gpio_dev_attr
= {
1030 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
1031 { .role
= "dbclk", .clk
= "gpio1_dbclk" },
1034 static struct omap_hwmod omap44xx_gpio1_hwmod
= {
1036 .class = &omap44xx_gpio_hwmod_class
,
1037 .clkdm_name
= "l4_wkup_clkdm",
1038 .main_clk
= "l4_wkup_clk_mux_ck",
1041 .clkctrl_offs
= OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET
,
1042 .context_offs
= OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET
,
1043 .modulemode
= MODULEMODE_HWCTRL
,
1046 .opt_clks
= gpio1_opt_clks
,
1047 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
1048 .dev_attr
= &gpio_dev_attr
,
1052 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
1053 { .role
= "dbclk", .clk
= "gpio2_dbclk" },
1056 static struct omap_hwmod omap44xx_gpio2_hwmod
= {
1058 .class = &omap44xx_gpio_hwmod_class
,
1059 .clkdm_name
= "l4_per_clkdm",
1060 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1061 .main_clk
= "l4_div_ck",
1064 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET
,
1065 .context_offs
= OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET
,
1066 .modulemode
= MODULEMODE_HWCTRL
,
1069 .opt_clks
= gpio2_opt_clks
,
1070 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
1071 .dev_attr
= &gpio_dev_attr
,
1075 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
1076 { .role
= "dbclk", .clk
= "gpio3_dbclk" },
1079 static struct omap_hwmod omap44xx_gpio3_hwmod
= {
1081 .class = &omap44xx_gpio_hwmod_class
,
1082 .clkdm_name
= "l4_per_clkdm",
1083 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1084 .main_clk
= "l4_div_ck",
1087 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET
,
1088 .context_offs
= OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET
,
1089 .modulemode
= MODULEMODE_HWCTRL
,
1092 .opt_clks
= gpio3_opt_clks
,
1093 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
1094 .dev_attr
= &gpio_dev_attr
,
1098 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
1099 { .role
= "dbclk", .clk
= "gpio4_dbclk" },
1102 static struct omap_hwmod omap44xx_gpio4_hwmod
= {
1104 .class = &omap44xx_gpio_hwmod_class
,
1105 .clkdm_name
= "l4_per_clkdm",
1106 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1107 .main_clk
= "l4_div_ck",
1110 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET
,
1111 .context_offs
= OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET
,
1112 .modulemode
= MODULEMODE_HWCTRL
,
1115 .opt_clks
= gpio4_opt_clks
,
1116 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1117 .dev_attr
= &gpio_dev_attr
,
1121 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1122 { .role
= "dbclk", .clk
= "gpio5_dbclk" },
1125 static struct omap_hwmod omap44xx_gpio5_hwmod
= {
1127 .class = &omap44xx_gpio_hwmod_class
,
1128 .clkdm_name
= "l4_per_clkdm",
1129 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1130 .main_clk
= "l4_div_ck",
1133 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET
,
1134 .context_offs
= OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET
,
1135 .modulemode
= MODULEMODE_HWCTRL
,
1138 .opt_clks
= gpio5_opt_clks
,
1139 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1140 .dev_attr
= &gpio_dev_attr
,
1144 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
1145 { .role
= "dbclk", .clk
= "gpio6_dbclk" },
1148 static struct omap_hwmod omap44xx_gpio6_hwmod
= {
1150 .class = &omap44xx_gpio_hwmod_class
,
1151 .clkdm_name
= "l4_per_clkdm",
1152 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1153 .main_clk
= "l4_div_ck",
1156 .clkctrl_offs
= OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET
,
1157 .context_offs
= OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET
,
1158 .modulemode
= MODULEMODE_HWCTRL
,
1161 .opt_clks
= gpio6_opt_clks
,
1162 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1163 .dev_attr
= &gpio_dev_attr
,
1168 * general purpose memory controller
1171 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc
= {
1173 .sysc_offs
= 0x0010,
1174 .syss_offs
= 0x0014,
1175 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1176 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1177 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1178 .sysc_fields
= &omap_hwmod_sysc_type1
,
1181 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class
= {
1183 .sysc
= &omap44xx_gpmc_sysc
,
1187 static struct omap_hwmod omap44xx_gpmc_hwmod
= {
1189 .class = &omap44xx_gpmc_hwmod_class
,
1190 .clkdm_name
= "l3_2_clkdm",
1191 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1192 .flags
= DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
1195 .clkctrl_offs
= OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET
,
1196 .context_offs
= OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET
,
1197 .modulemode
= MODULEMODE_HWCTRL
,
1204 * 2d/3d graphics accelerator
1207 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc
= {
1208 .rev_offs
= 0x1fc00,
1209 .sysc_offs
= 0x1fc10,
1210 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
1211 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1212 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1213 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1214 .sysc_fields
= &omap_hwmod_sysc_type2
,
1217 static struct omap_hwmod_class omap44xx_gpu_hwmod_class
= {
1219 .sysc
= &omap44xx_gpu_sysc
,
1223 static struct omap_hwmod omap44xx_gpu_hwmod
= {
1225 .class = &omap44xx_gpu_hwmod_class
,
1226 .clkdm_name
= "l3_gfx_clkdm",
1227 .main_clk
= "sgx_clk_mux",
1230 .clkctrl_offs
= OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET
,
1231 .context_offs
= OMAP4_RM_GFX_GFX_CONTEXT_OFFSET
,
1232 .modulemode
= MODULEMODE_SWCTRL
,
1239 * hdq / 1-wire serial interface controller
1242 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc
= {
1244 .sysc_offs
= 0x0014,
1245 .syss_offs
= 0x0018,
1246 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SOFTRESET
|
1247 SYSS_HAS_RESET_STATUS
),
1248 .sysc_fields
= &omap_hwmod_sysc_type1
,
1251 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class
= {
1253 .sysc
= &omap44xx_hdq1w_sysc
,
1257 static struct omap_hwmod omap44xx_hdq1w_hwmod
= {
1259 .class = &omap44xx_hdq1w_hwmod_class
,
1260 .clkdm_name
= "l4_per_clkdm",
1261 .flags
= HWMOD_INIT_NO_RESET
, /* XXX temporary */
1262 .main_clk
= "func_12m_fclk",
1265 .clkctrl_offs
= OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET
,
1266 .context_offs
= OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET
,
1267 .modulemode
= MODULEMODE_SWCTRL
,
1274 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1278 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc
= {
1280 .sysc_offs
= 0x0010,
1281 .syss_offs
= 0x0014,
1282 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_EMUFREE
|
1283 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
1284 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1285 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1286 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1287 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1288 .sysc_fields
= &omap_hwmod_sysc_type1
,
1291 static struct omap_hwmod_class omap44xx_hsi_hwmod_class
= {
1293 .sysc
= &omap44xx_hsi_sysc
,
1297 static struct omap_hwmod omap44xx_hsi_hwmod
= {
1299 .class = &omap44xx_hsi_hwmod_class
,
1300 .clkdm_name
= "l3_init_clkdm",
1301 .main_clk
= "hsi_fck",
1304 .clkctrl_offs
= OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET
,
1305 .context_offs
= OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET
,
1306 .modulemode
= MODULEMODE_HWCTRL
,
1313 * multimaster high-speed i2c controller
1316 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc
= {
1317 .sysc_offs
= 0x0010,
1318 .syss_offs
= 0x0090,
1319 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1320 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1321 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1322 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1324 .clockact
= CLOCKACT_TEST_ICLK
,
1325 .sysc_fields
= &omap_hwmod_sysc_type1
,
1328 static struct omap_hwmod_class omap44xx_i2c_hwmod_class
= {
1330 .sysc
= &omap44xx_i2c_sysc
,
1331 .rev
= OMAP_I2C_IP_VERSION_2
,
1332 .reset
= &omap_i2c_reset
,
1335 static struct omap_i2c_dev_attr i2c_dev_attr
= {
1336 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
1340 static struct omap_hwmod omap44xx_i2c1_hwmod
= {
1342 .class = &omap44xx_i2c_hwmod_class
,
1343 .clkdm_name
= "l4_per_clkdm",
1344 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1345 .main_clk
= "func_96m_fclk",
1348 .clkctrl_offs
= OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET
,
1349 .context_offs
= OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET
,
1350 .modulemode
= MODULEMODE_SWCTRL
,
1353 .dev_attr
= &i2c_dev_attr
,
1357 static struct omap_hwmod omap44xx_i2c2_hwmod
= {
1359 .class = &omap44xx_i2c_hwmod_class
,
1360 .clkdm_name
= "l4_per_clkdm",
1361 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1362 .main_clk
= "func_96m_fclk",
1365 .clkctrl_offs
= OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET
,
1366 .context_offs
= OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET
,
1367 .modulemode
= MODULEMODE_SWCTRL
,
1370 .dev_attr
= &i2c_dev_attr
,
1374 static struct omap_hwmod omap44xx_i2c3_hwmod
= {
1376 .class = &omap44xx_i2c_hwmod_class
,
1377 .clkdm_name
= "l4_per_clkdm",
1378 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1379 .main_clk
= "func_96m_fclk",
1382 .clkctrl_offs
= OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET
,
1383 .context_offs
= OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET
,
1384 .modulemode
= MODULEMODE_SWCTRL
,
1387 .dev_attr
= &i2c_dev_attr
,
1391 static struct omap_hwmod omap44xx_i2c4_hwmod
= {
1393 .class = &omap44xx_i2c_hwmod_class
,
1394 .clkdm_name
= "l4_per_clkdm",
1395 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1396 .main_clk
= "func_96m_fclk",
1399 .clkctrl_offs
= OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET
,
1400 .context_offs
= OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET
,
1401 .modulemode
= MODULEMODE_SWCTRL
,
1404 .dev_attr
= &i2c_dev_attr
,
1409 * imaging processor unit
1412 static struct omap_hwmod_class omap44xx_ipu_hwmod_class
= {
1417 static struct omap_hwmod_rst_info omap44xx_ipu_resets
[] = {
1418 { .name
= "cpu0", .rst_shift
= 0 },
1419 { .name
= "cpu1", .rst_shift
= 1 },
1422 static struct omap_hwmod omap44xx_ipu_hwmod
= {
1424 .class = &omap44xx_ipu_hwmod_class
,
1425 .clkdm_name
= "ducati_clkdm",
1426 .rst_lines
= omap44xx_ipu_resets
,
1427 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_ipu_resets
),
1428 .main_clk
= "ducati_clk_mux_ck",
1431 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
1432 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
1433 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
1434 .modulemode
= MODULEMODE_HWCTRL
,
1441 * external images sensor pixel data processor
1444 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc
= {
1446 .sysc_offs
= 0x0010,
1448 * ISS needs 100 OCP clk cycles delay after a softreset before
1449 * accessing sysconfig again.
1450 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1451 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1453 * TODO: Indicate errata when available.
1456 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1457 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1458 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1459 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1460 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1461 .sysc_fields
= &omap_hwmod_sysc_type2
,
1464 static struct omap_hwmod_class omap44xx_iss_hwmod_class
= {
1466 .sysc
= &omap44xx_iss_sysc
,
1470 static struct omap_hwmod_opt_clk iss_opt_clks
[] = {
1471 { .role
= "ctrlclk", .clk
= "iss_ctrlclk" },
1474 static struct omap_hwmod omap44xx_iss_hwmod
= {
1476 .class = &omap44xx_iss_hwmod_class
,
1477 .clkdm_name
= "iss_clkdm",
1478 .main_clk
= "ducati_clk_mux_ck",
1481 .clkctrl_offs
= OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET
,
1482 .context_offs
= OMAP4_RM_CAM_ISS_CONTEXT_OFFSET
,
1483 .modulemode
= MODULEMODE_SWCTRL
,
1486 .opt_clks
= iss_opt_clks
,
1487 .opt_clks_cnt
= ARRAY_SIZE(iss_opt_clks
),
1492 * multi-standard video encoder/decoder hardware accelerator
1495 static struct omap_hwmod_class omap44xx_iva_hwmod_class
= {
1500 static struct omap_hwmod_rst_info omap44xx_iva_resets
[] = {
1501 { .name
= "seq0", .rst_shift
= 0 },
1502 { .name
= "seq1", .rst_shift
= 1 },
1503 { .name
= "logic", .rst_shift
= 2 },
1506 static struct omap_hwmod omap44xx_iva_hwmod
= {
1508 .class = &omap44xx_iva_hwmod_class
,
1509 .clkdm_name
= "ivahd_clkdm",
1510 .rst_lines
= omap44xx_iva_resets
,
1511 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_iva_resets
),
1512 .main_clk
= "dpll_iva_m5x2_ck",
1515 .clkctrl_offs
= OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET
,
1516 .rstctrl_offs
= OMAP4_RM_IVAHD_RSTCTRL_OFFSET
,
1517 .context_offs
= OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET
,
1518 .modulemode
= MODULEMODE_HWCTRL
,
1525 * keyboard controller
1528 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc
= {
1530 .sysc_offs
= 0x0010,
1531 .syss_offs
= 0x0014,
1532 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1533 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
1534 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1535 SYSS_HAS_RESET_STATUS
),
1536 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1537 .sysc_fields
= &omap_hwmod_sysc_type1
,
1540 static struct omap_hwmod_class omap44xx_kbd_hwmod_class
= {
1542 .sysc
= &omap44xx_kbd_sysc
,
1546 static struct omap_hwmod omap44xx_kbd_hwmod
= {
1548 .class = &omap44xx_kbd_hwmod_class
,
1549 .clkdm_name
= "l4_wkup_clkdm",
1550 .main_clk
= "sys_32k_ck",
1553 .clkctrl_offs
= OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET
,
1554 .context_offs
= OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET
,
1555 .modulemode
= MODULEMODE_SWCTRL
,
1562 * mailbox module allowing communication between the on-chip processors using a
1563 * queued mailbox-interrupt mechanism.
1566 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc
= {
1568 .sysc_offs
= 0x0010,
1569 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1570 SYSC_HAS_SOFTRESET
),
1571 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1572 .sysc_fields
= &omap_hwmod_sysc_type2
,
1575 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class
= {
1577 .sysc
= &omap44xx_mailbox_sysc
,
1581 static struct omap_hwmod omap44xx_mailbox_hwmod
= {
1583 .class = &omap44xx_mailbox_hwmod_class
,
1584 .clkdm_name
= "l4_cfg_clkdm",
1587 .clkctrl_offs
= OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET
,
1588 .context_offs
= OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET
,
1595 * multi-channel audio serial port controller
1598 /* The IP is not compliant to type1 / type2 scheme */
1599 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp
= {
1603 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc
= {
1604 .sysc_offs
= 0x0004,
1605 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1606 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1608 .sysc_fields
= &omap_hwmod_sysc_type_mcasp
,
1611 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class
= {
1613 .sysc
= &omap44xx_mcasp_sysc
,
1617 static struct omap_hwmod omap44xx_mcasp_hwmod
= {
1619 .class = &omap44xx_mcasp_hwmod_class
,
1620 .clkdm_name
= "abe_clkdm",
1621 .main_clk
= "func_mcasp_abe_gfclk",
1624 .clkctrl_offs
= OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET
,
1625 .context_offs
= OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET
,
1626 .modulemode
= MODULEMODE_SWCTRL
,
1633 * multi channel buffered serial port controller
1636 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc
= {
1637 .sysc_offs
= 0x008c,
1638 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1639 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1640 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1641 .sysc_fields
= &omap_hwmod_sysc_type1
,
1644 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class
= {
1646 .sysc
= &omap44xx_mcbsp_sysc
,
1647 .rev
= MCBSP_CONFIG_TYPE4
,
1651 static struct omap_hwmod_opt_clk mcbsp1_opt_clks
[] = {
1652 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1653 { .role
= "prcm_fck", .clk
= "mcbsp1_sync_mux_ck" },
1656 static struct omap_hwmod omap44xx_mcbsp1_hwmod
= {
1658 .class = &omap44xx_mcbsp_hwmod_class
,
1659 .clkdm_name
= "abe_clkdm",
1660 .main_clk
= "func_mcbsp1_gfclk",
1663 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET
,
1664 .context_offs
= OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET
,
1665 .modulemode
= MODULEMODE_SWCTRL
,
1668 .opt_clks
= mcbsp1_opt_clks
,
1669 .opt_clks_cnt
= ARRAY_SIZE(mcbsp1_opt_clks
),
1673 static struct omap_hwmod_opt_clk mcbsp2_opt_clks
[] = {
1674 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1675 { .role
= "prcm_fck", .clk
= "mcbsp2_sync_mux_ck" },
1678 static struct omap_hwmod omap44xx_mcbsp2_hwmod
= {
1680 .class = &omap44xx_mcbsp_hwmod_class
,
1681 .clkdm_name
= "abe_clkdm",
1682 .main_clk
= "func_mcbsp2_gfclk",
1685 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET
,
1686 .context_offs
= OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET
,
1687 .modulemode
= MODULEMODE_SWCTRL
,
1690 .opt_clks
= mcbsp2_opt_clks
,
1691 .opt_clks_cnt
= ARRAY_SIZE(mcbsp2_opt_clks
),
1695 static struct omap_hwmod_opt_clk mcbsp3_opt_clks
[] = {
1696 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1697 { .role
= "prcm_fck", .clk
= "mcbsp3_sync_mux_ck" },
1700 static struct omap_hwmod omap44xx_mcbsp3_hwmod
= {
1702 .class = &omap44xx_mcbsp_hwmod_class
,
1703 .clkdm_name
= "abe_clkdm",
1704 .main_clk
= "func_mcbsp3_gfclk",
1707 .clkctrl_offs
= OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET
,
1708 .context_offs
= OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET
,
1709 .modulemode
= MODULEMODE_SWCTRL
,
1712 .opt_clks
= mcbsp3_opt_clks
,
1713 .opt_clks_cnt
= ARRAY_SIZE(mcbsp3_opt_clks
),
1717 static struct omap_hwmod_opt_clk mcbsp4_opt_clks
[] = {
1718 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1719 { .role
= "prcm_fck", .clk
= "mcbsp4_sync_mux_ck" },
1722 static struct omap_hwmod omap44xx_mcbsp4_hwmod
= {
1724 .class = &omap44xx_mcbsp_hwmod_class
,
1725 .clkdm_name
= "l4_per_clkdm",
1726 .main_clk
= "per_mcbsp4_gfclk",
1729 .clkctrl_offs
= OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET
,
1730 .context_offs
= OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET
,
1731 .modulemode
= MODULEMODE_SWCTRL
,
1734 .opt_clks
= mcbsp4_opt_clks
,
1735 .opt_clks_cnt
= ARRAY_SIZE(mcbsp4_opt_clks
),
1740 * multi channel pdm controller (proprietary interface with phoenix power
1744 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc
= {
1746 .sysc_offs
= 0x0010,
1747 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1748 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1749 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1751 .sysc_fields
= &omap_hwmod_sysc_type2
,
1754 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class
= {
1756 .sysc
= &omap44xx_mcpdm_sysc
,
1760 static struct omap_hwmod omap44xx_mcpdm_hwmod
= {
1762 .class = &omap44xx_mcpdm_hwmod_class
,
1763 .clkdm_name
= "abe_clkdm",
1765 * It's suspected that the McPDM requires an off-chip main
1766 * functional clock, controlled via I2C. This IP block is
1767 * currently reset very early during boot, before I2C is
1768 * available, so it doesn't seem that we have any choice in
1769 * the kernel other than to avoid resetting it.
1771 * Also, McPDM needs to be configured to NO_IDLE mode when it
1772 * is in used otherwise vital clocks will be gated which
1773 * results 'slow motion' audio playback.
1775 .flags
= HWMOD_EXT_OPT_MAIN_CLK
| HWMOD_SWSUP_SIDLE
,
1776 .main_clk
= "pad_clks_ck",
1779 .clkctrl_offs
= OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET
,
1780 .context_offs
= OMAP4_RM_ABE_PDM_CONTEXT_OFFSET
,
1781 .modulemode
= MODULEMODE_SWCTRL
,
1788 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1792 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc
= {
1794 .sysc_offs
= 0x0010,
1795 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1796 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1797 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1799 .sysc_fields
= &omap_hwmod_sysc_type2
,
1802 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class
= {
1804 .sysc
= &omap44xx_mcspi_sysc
,
1805 .rev
= OMAP4_MCSPI_REV
,
1809 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs
[] = {
1810 { .name
= "tx0", .dma_req
= 34 + OMAP44XX_DMA_REQ_START
},
1811 { .name
= "rx0", .dma_req
= 35 + OMAP44XX_DMA_REQ_START
},
1812 { .name
= "tx1", .dma_req
= 36 + OMAP44XX_DMA_REQ_START
},
1813 { .name
= "rx1", .dma_req
= 37 + OMAP44XX_DMA_REQ_START
},
1814 { .name
= "tx2", .dma_req
= 38 + OMAP44XX_DMA_REQ_START
},
1815 { .name
= "rx2", .dma_req
= 39 + OMAP44XX_DMA_REQ_START
},
1816 { .name
= "tx3", .dma_req
= 40 + OMAP44XX_DMA_REQ_START
},
1817 { .name
= "rx3", .dma_req
= 41 + OMAP44XX_DMA_REQ_START
},
1821 /* mcspi1 dev_attr */
1822 static struct omap2_mcspi_dev_attr mcspi1_dev_attr
= {
1823 .num_chipselect
= 4,
1826 static struct omap_hwmod omap44xx_mcspi1_hwmod
= {
1828 .class = &omap44xx_mcspi_hwmod_class
,
1829 .clkdm_name
= "l4_per_clkdm",
1830 .sdma_reqs
= omap44xx_mcspi1_sdma_reqs
,
1831 .main_clk
= "func_48m_fclk",
1834 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET
,
1835 .context_offs
= OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET
,
1836 .modulemode
= MODULEMODE_SWCTRL
,
1839 .dev_attr
= &mcspi1_dev_attr
,
1843 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs
[] = {
1844 { .name
= "tx0", .dma_req
= 42 + OMAP44XX_DMA_REQ_START
},
1845 { .name
= "rx0", .dma_req
= 43 + OMAP44XX_DMA_REQ_START
},
1846 { .name
= "tx1", .dma_req
= 44 + OMAP44XX_DMA_REQ_START
},
1847 { .name
= "rx1", .dma_req
= 45 + OMAP44XX_DMA_REQ_START
},
1851 /* mcspi2 dev_attr */
1852 static struct omap2_mcspi_dev_attr mcspi2_dev_attr
= {
1853 .num_chipselect
= 2,
1856 static struct omap_hwmod omap44xx_mcspi2_hwmod
= {
1858 .class = &omap44xx_mcspi_hwmod_class
,
1859 .clkdm_name
= "l4_per_clkdm",
1860 .sdma_reqs
= omap44xx_mcspi2_sdma_reqs
,
1861 .main_clk
= "func_48m_fclk",
1864 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET
,
1865 .context_offs
= OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET
,
1866 .modulemode
= MODULEMODE_SWCTRL
,
1869 .dev_attr
= &mcspi2_dev_attr
,
1873 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs
[] = {
1874 { .name
= "tx0", .dma_req
= 14 + OMAP44XX_DMA_REQ_START
},
1875 { .name
= "rx0", .dma_req
= 15 + OMAP44XX_DMA_REQ_START
},
1876 { .name
= "tx1", .dma_req
= 22 + OMAP44XX_DMA_REQ_START
},
1877 { .name
= "rx1", .dma_req
= 23 + OMAP44XX_DMA_REQ_START
},
1881 /* mcspi3 dev_attr */
1882 static struct omap2_mcspi_dev_attr mcspi3_dev_attr
= {
1883 .num_chipselect
= 2,
1886 static struct omap_hwmod omap44xx_mcspi3_hwmod
= {
1888 .class = &omap44xx_mcspi_hwmod_class
,
1889 .clkdm_name
= "l4_per_clkdm",
1890 .sdma_reqs
= omap44xx_mcspi3_sdma_reqs
,
1891 .main_clk
= "func_48m_fclk",
1894 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET
,
1895 .context_offs
= OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET
,
1896 .modulemode
= MODULEMODE_SWCTRL
,
1899 .dev_attr
= &mcspi3_dev_attr
,
1903 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs
[] = {
1904 { .name
= "tx0", .dma_req
= 69 + OMAP44XX_DMA_REQ_START
},
1905 { .name
= "rx0", .dma_req
= 70 + OMAP44XX_DMA_REQ_START
},
1909 /* mcspi4 dev_attr */
1910 static struct omap2_mcspi_dev_attr mcspi4_dev_attr
= {
1911 .num_chipselect
= 1,
1914 static struct omap_hwmod omap44xx_mcspi4_hwmod
= {
1916 .class = &omap44xx_mcspi_hwmod_class
,
1917 .clkdm_name
= "l4_per_clkdm",
1918 .sdma_reqs
= omap44xx_mcspi4_sdma_reqs
,
1919 .main_clk
= "func_48m_fclk",
1922 .clkctrl_offs
= OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET
,
1923 .context_offs
= OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET
,
1924 .modulemode
= MODULEMODE_SWCTRL
,
1927 .dev_attr
= &mcspi4_dev_attr
,
1932 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1935 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc
= {
1937 .sysc_offs
= 0x0010,
1938 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
1939 SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1940 SYSC_HAS_SOFTRESET
),
1941 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1942 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1943 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1944 .sysc_fields
= &omap_hwmod_sysc_type2
,
1947 static struct omap_hwmod_class omap44xx_mmc_hwmod_class
= {
1949 .sysc
= &omap44xx_mmc_sysc
,
1953 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs
[] = {
1954 { .name
= "tx", .dma_req
= 60 + OMAP44XX_DMA_REQ_START
},
1955 { .name
= "rx", .dma_req
= 61 + OMAP44XX_DMA_REQ_START
},
1960 static struct omap_hsmmc_dev_attr mmc1_dev_attr
= {
1961 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1964 static struct omap_hwmod omap44xx_mmc1_hwmod
= {
1966 .class = &omap44xx_mmc_hwmod_class
,
1967 .clkdm_name
= "l3_init_clkdm",
1968 .sdma_reqs
= omap44xx_mmc1_sdma_reqs
,
1969 .main_clk
= "hsmmc1_fclk",
1972 .clkctrl_offs
= OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET
,
1973 .context_offs
= OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET
,
1974 .modulemode
= MODULEMODE_SWCTRL
,
1977 .dev_attr
= &mmc1_dev_attr
,
1981 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs
[] = {
1982 { .name
= "tx", .dma_req
= 46 + OMAP44XX_DMA_REQ_START
},
1983 { .name
= "rx", .dma_req
= 47 + OMAP44XX_DMA_REQ_START
},
1987 static struct omap_hwmod omap44xx_mmc2_hwmod
= {
1989 .class = &omap44xx_mmc_hwmod_class
,
1990 .clkdm_name
= "l3_init_clkdm",
1991 .sdma_reqs
= omap44xx_mmc2_sdma_reqs
,
1992 .main_clk
= "hsmmc2_fclk",
1995 .clkctrl_offs
= OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET
,
1996 .context_offs
= OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET
,
1997 .modulemode
= MODULEMODE_SWCTRL
,
2003 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs
[] = {
2004 { .name
= "tx", .dma_req
= 76 + OMAP44XX_DMA_REQ_START
},
2005 { .name
= "rx", .dma_req
= 77 + OMAP44XX_DMA_REQ_START
},
2009 static struct omap_hwmod omap44xx_mmc3_hwmod
= {
2011 .class = &omap44xx_mmc_hwmod_class
,
2012 .clkdm_name
= "l4_per_clkdm",
2013 .sdma_reqs
= omap44xx_mmc3_sdma_reqs
,
2014 .main_clk
= "func_48m_fclk",
2017 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET
,
2018 .context_offs
= OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET
,
2019 .modulemode
= MODULEMODE_SWCTRL
,
2025 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs
[] = {
2026 { .name
= "tx", .dma_req
= 56 + OMAP44XX_DMA_REQ_START
},
2027 { .name
= "rx", .dma_req
= 57 + OMAP44XX_DMA_REQ_START
},
2031 static struct omap_hwmod omap44xx_mmc4_hwmod
= {
2033 .class = &omap44xx_mmc_hwmod_class
,
2034 .clkdm_name
= "l4_per_clkdm",
2035 .sdma_reqs
= omap44xx_mmc4_sdma_reqs
,
2036 .main_clk
= "func_48m_fclk",
2039 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET
,
2040 .context_offs
= OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET
,
2041 .modulemode
= MODULEMODE_SWCTRL
,
2047 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs
[] = {
2048 { .name
= "tx", .dma_req
= 58 + OMAP44XX_DMA_REQ_START
},
2049 { .name
= "rx", .dma_req
= 59 + OMAP44XX_DMA_REQ_START
},
2053 static struct omap_hwmod omap44xx_mmc5_hwmod
= {
2055 .class = &omap44xx_mmc_hwmod_class
,
2056 .clkdm_name
= "l4_per_clkdm",
2057 .sdma_reqs
= omap44xx_mmc5_sdma_reqs
,
2058 .main_clk
= "func_48m_fclk",
2061 .clkctrl_offs
= OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET
,
2062 .context_offs
= OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET
,
2063 .modulemode
= MODULEMODE_SWCTRL
,
2070 * The memory management unit performs virtual to physical address translation
2071 * for its requestors.
2074 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
2078 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2079 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2080 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2081 .sysc_fields
= &omap_hwmod_sysc_type1
,
2084 static struct omap_hwmod_class omap44xx_mmu_hwmod_class
= {
2091 static struct omap_mmu_dev_attr mmu_ipu_dev_attr
= {
2092 .nr_tlb_entries
= 32,
2095 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
;
2096 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets
[] = {
2097 { .name
= "mmu_cache", .rst_shift
= 2 },
2100 static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs
[] = {
2102 .pa_start
= 0x55082000,
2103 .pa_end
= 0x550820ff,
2104 .flags
= ADDR_TYPE_RT
,
2109 /* l3_main_2 -> mmu_ipu */
2110 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu
= {
2111 .master
= &omap44xx_l3_main_2_hwmod
,
2112 .slave
= &omap44xx_mmu_ipu_hwmod
,
2114 .addr
= omap44xx_mmu_ipu_addrs
,
2115 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2118 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
= {
2120 .class = &omap44xx_mmu_hwmod_class
,
2121 .clkdm_name
= "ducati_clkdm",
2122 .rst_lines
= omap44xx_mmu_ipu_resets
,
2123 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_ipu_resets
),
2124 .main_clk
= "ducati_clk_mux_ck",
2127 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
2128 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
2129 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
2130 .modulemode
= MODULEMODE_HWCTRL
,
2133 .dev_attr
= &mmu_ipu_dev_attr
,
2138 static struct omap_mmu_dev_attr mmu_dsp_dev_attr
= {
2139 .nr_tlb_entries
= 32,
2142 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
;
2143 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets
[] = {
2144 { .name
= "mmu_cache", .rst_shift
= 1 },
2147 static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs
[] = {
2149 .pa_start
= 0x4a066000,
2150 .pa_end
= 0x4a0660ff,
2151 .flags
= ADDR_TYPE_RT
,
2157 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp
= {
2158 .master
= &omap44xx_l4_cfg_hwmod
,
2159 .slave
= &omap44xx_mmu_dsp_hwmod
,
2161 .addr
= omap44xx_mmu_dsp_addrs
,
2162 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2165 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
= {
2167 .class = &omap44xx_mmu_hwmod_class
,
2168 .clkdm_name
= "tesla_clkdm",
2169 .rst_lines
= omap44xx_mmu_dsp_resets
,
2170 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_dsp_resets
),
2171 .main_clk
= "dpll_iva_m4x2_ck",
2174 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
2175 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
2176 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
2177 .modulemode
= MODULEMODE_HWCTRL
,
2180 .dev_attr
= &mmu_dsp_dev_attr
,
2188 static struct omap_hwmod_class omap44xx_mpu_hwmod_class
= {
2193 static struct omap_hwmod omap44xx_mpu_hwmod
= {
2195 .class = &omap44xx_mpu_hwmod_class
,
2196 .clkdm_name
= "mpuss_clkdm",
2197 .flags
= HWMOD_INIT_NO_IDLE
,
2198 .main_clk
= "dpll_mpu_m2_ck",
2201 .clkctrl_offs
= OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET
,
2202 .context_offs
= OMAP4_RM_MPU_MPU_CONTEXT_OFFSET
,
2209 * top-level core on-chip ram
2212 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class
= {
2217 static struct omap_hwmod omap44xx_ocmc_ram_hwmod
= {
2219 .class = &omap44xx_ocmc_ram_hwmod_class
,
2220 .clkdm_name
= "l3_2_clkdm",
2223 .clkctrl_offs
= OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET
,
2224 .context_offs
= OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET
,
2231 * bridge to transform ocp interface protocol to scp (serial control port)
2235 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc
= {
2237 .sysc_offs
= 0x0010,
2238 .syss_offs
= 0x0014,
2239 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
2240 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2241 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2242 .sysc_fields
= &omap_hwmod_sysc_type1
,
2245 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class
= {
2247 .sysc
= &omap44xx_ocp2scp_sysc
,
2250 /* ocp2scp_usb_phy */
2251 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod
= {
2252 .name
= "ocp2scp_usb_phy",
2253 .class = &omap44xx_ocp2scp_hwmod_class
,
2254 .clkdm_name
= "l3_init_clkdm",
2256 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2257 * block as an "optional clock," and normally should never be
2258 * specified as the main_clk for an OMAP IP block. However it
2259 * turns out that this clock is actually the main clock for
2260 * the ocp2scp_usb_phy IP block:
2261 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2262 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2263 * to be the best workaround.
2265 .main_clk
= "ocp2scp_usb_phy_phy_48m",
2268 .clkctrl_offs
= OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET
,
2269 .context_offs
= OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET
,
2270 .modulemode
= MODULEMODE_HWCTRL
,
2277 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2278 * + clock manager 1 (in always on power domain) + local prm in mpu
2281 static struct omap_hwmod_class omap44xx_prcm_hwmod_class
= {
2286 static struct omap_hwmod omap44xx_prcm_mpu_hwmod
= {
2288 .class = &omap44xx_prcm_hwmod_class
,
2289 .clkdm_name
= "l4_wkup_clkdm",
2290 .flags
= HWMOD_NO_IDLEST
,
2293 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2299 static struct omap_hwmod omap44xx_cm_core_aon_hwmod
= {
2300 .name
= "cm_core_aon",
2301 .class = &omap44xx_prcm_hwmod_class
,
2302 .flags
= HWMOD_NO_IDLEST
,
2305 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2311 static struct omap_hwmod omap44xx_cm_core_hwmod
= {
2313 .class = &omap44xx_prcm_hwmod_class
,
2314 .flags
= HWMOD_NO_IDLEST
,
2317 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2323 static struct omap_hwmod_rst_info omap44xx_prm_resets
[] = {
2324 { .name
= "rst_global_warm_sw", .rst_shift
= 0 },
2325 { .name
= "rst_global_cold_sw", .rst_shift
= 1 },
2328 static struct omap_hwmod omap44xx_prm_hwmod
= {
2330 .class = &omap44xx_prcm_hwmod_class
,
2331 .rst_lines
= omap44xx_prm_resets
,
2332 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_prm_resets
),
2337 * system clock and reset manager
2340 static struct omap_hwmod_class omap44xx_scrm_hwmod_class
= {
2345 static struct omap_hwmod omap44xx_scrm_hwmod
= {
2347 .class = &omap44xx_scrm_hwmod_class
,
2348 .clkdm_name
= "l4_wkup_clkdm",
2351 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
2358 * shared level 2 memory interface
2361 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class
= {
2366 static struct omap_hwmod omap44xx_sl2if_hwmod
= {
2368 .class = &omap44xx_sl2if_hwmod_class
,
2369 .clkdm_name
= "ivahd_clkdm",
2372 .clkctrl_offs
= OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET
,
2373 .context_offs
= OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET
,
2374 .modulemode
= MODULEMODE_HWCTRL
,
2381 * bidirectional, multi-drop, multi-channel two-line serial interface between
2382 * the device and external components
2385 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc
= {
2387 .sysc_offs
= 0x0010,
2388 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
2389 SYSC_HAS_SOFTRESET
),
2390 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2392 .sysc_fields
= &omap_hwmod_sysc_type2
,
2395 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class
= {
2397 .sysc
= &omap44xx_slimbus_sysc
,
2401 static struct omap_hwmod_opt_clk slimbus1_opt_clks
[] = {
2402 { .role
= "fclk_1", .clk
= "slimbus1_fclk_1" },
2403 { .role
= "fclk_0", .clk
= "slimbus1_fclk_0" },
2404 { .role
= "fclk_2", .clk
= "slimbus1_fclk_2" },
2405 { .role
= "slimbus_clk", .clk
= "slimbus1_slimbus_clk" },
2408 static struct omap_hwmod omap44xx_slimbus1_hwmod
= {
2410 .class = &omap44xx_slimbus_hwmod_class
,
2411 .clkdm_name
= "abe_clkdm",
2414 .clkctrl_offs
= OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET
,
2415 .context_offs
= OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET
,
2416 .modulemode
= MODULEMODE_SWCTRL
,
2419 .opt_clks
= slimbus1_opt_clks
,
2420 .opt_clks_cnt
= ARRAY_SIZE(slimbus1_opt_clks
),
2424 static struct omap_hwmod_opt_clk slimbus2_opt_clks
[] = {
2425 { .role
= "fclk_1", .clk
= "slimbus2_fclk_1" },
2426 { .role
= "fclk_0", .clk
= "slimbus2_fclk_0" },
2427 { .role
= "slimbus_clk", .clk
= "slimbus2_slimbus_clk" },
2430 static struct omap_hwmod omap44xx_slimbus2_hwmod
= {
2432 .class = &omap44xx_slimbus_hwmod_class
,
2433 .clkdm_name
= "l4_per_clkdm",
2436 .clkctrl_offs
= OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET
,
2437 .context_offs
= OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET
,
2438 .modulemode
= MODULEMODE_SWCTRL
,
2441 .opt_clks
= slimbus2_opt_clks
,
2442 .opt_clks_cnt
= ARRAY_SIZE(slimbus2_opt_clks
),
2446 * 'smartreflex' class
2447 * smartreflex module (monitor silicon performance and outputs a measure of
2448 * performance error)
2451 /* The IP is not compliant to type1 / type2 scheme */
2452 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex
= {
2457 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc
= {
2458 .sysc_offs
= 0x0038,
2459 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
),
2460 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2462 .sysc_fields
= &omap_hwmod_sysc_type_smartreflex
,
2465 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class
= {
2466 .name
= "smartreflex",
2467 .sysc
= &omap44xx_smartreflex_sysc
,
2471 /* smartreflex_core */
2472 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr
= {
2473 .sensor_voltdm_name
= "core",
2476 static struct omap_hwmod omap44xx_smartreflex_core_hwmod
= {
2477 .name
= "smartreflex_core",
2478 .class = &omap44xx_smartreflex_hwmod_class
,
2479 .clkdm_name
= "l4_ao_clkdm",
2481 .main_clk
= "smartreflex_core_fck",
2484 .clkctrl_offs
= OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET
,
2485 .context_offs
= OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET
,
2486 .modulemode
= MODULEMODE_SWCTRL
,
2489 .dev_attr
= &smartreflex_core_dev_attr
,
2492 /* smartreflex_iva */
2493 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr
= {
2494 .sensor_voltdm_name
= "iva",
2497 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod
= {
2498 .name
= "smartreflex_iva",
2499 .class = &omap44xx_smartreflex_hwmod_class
,
2500 .clkdm_name
= "l4_ao_clkdm",
2501 .main_clk
= "smartreflex_iva_fck",
2504 .clkctrl_offs
= OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET
,
2505 .context_offs
= OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET
,
2506 .modulemode
= MODULEMODE_SWCTRL
,
2509 .dev_attr
= &smartreflex_iva_dev_attr
,
2512 /* smartreflex_mpu */
2513 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr
= {
2514 .sensor_voltdm_name
= "mpu",
2517 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod
= {
2518 .name
= "smartreflex_mpu",
2519 .class = &omap44xx_smartreflex_hwmod_class
,
2520 .clkdm_name
= "l4_ao_clkdm",
2521 .main_clk
= "smartreflex_mpu_fck",
2524 .clkctrl_offs
= OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET
,
2525 .context_offs
= OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET
,
2526 .modulemode
= MODULEMODE_SWCTRL
,
2529 .dev_attr
= &smartreflex_mpu_dev_attr
,
2534 * spinlock provides hardware assistance for synchronizing the processes
2535 * running on multiple processors
2538 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc
= {
2540 .sysc_offs
= 0x0010,
2541 .syss_offs
= 0x0014,
2542 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
2543 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
2544 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2545 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2546 .sysc_fields
= &omap_hwmod_sysc_type1
,
2549 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class
= {
2551 .sysc
= &omap44xx_spinlock_sysc
,
2555 static struct omap_hwmod omap44xx_spinlock_hwmod
= {
2557 .class = &omap44xx_spinlock_hwmod_class
,
2558 .clkdm_name
= "l4_cfg_clkdm",
2561 .clkctrl_offs
= OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET
,
2562 .context_offs
= OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET
,
2569 * general purpose timer module with accurate 1ms tick
2570 * This class contains several variants: ['timer_1ms', 'timer']
2573 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc
= {
2575 .sysc_offs
= 0x0010,
2576 .syss_offs
= 0x0014,
2577 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
2578 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
2579 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2580 SYSS_HAS_RESET_STATUS
),
2581 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2582 .clockact
= CLOCKACT_TEST_ICLK
,
2583 .sysc_fields
= &omap_hwmod_sysc_type1
,
2586 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class
= {
2588 .sysc
= &omap44xx_timer_1ms_sysc
,
2591 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc
= {
2593 .sysc_offs
= 0x0010,
2594 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
2595 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
2596 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2598 .sysc_fields
= &omap_hwmod_sysc_type2
,
2601 static struct omap_hwmod_class omap44xx_timer_hwmod_class
= {
2603 .sysc
= &omap44xx_timer_sysc
,
2606 /* always-on timers dev attribute */
2607 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
2608 .timer_capability
= OMAP_TIMER_ALWON
,
2611 /* pwm timers dev attribute */
2612 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
2613 .timer_capability
= OMAP_TIMER_HAS_PWM
,
2616 /* timers with DSP interrupt dev attribute */
2617 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr
= {
2618 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
,
2621 /* pwm timers with DSP interrupt dev attribute */
2622 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr
= {
2623 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
| OMAP_TIMER_HAS_PWM
,
2627 static struct omap_hwmod omap44xx_timer1_hwmod
= {
2629 .class = &omap44xx_timer_1ms_hwmod_class
,
2630 .clkdm_name
= "l4_wkup_clkdm",
2631 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2632 .main_clk
= "dmt1_clk_mux",
2635 .clkctrl_offs
= OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET
,
2636 .context_offs
= OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET
,
2637 .modulemode
= MODULEMODE_SWCTRL
,
2640 .dev_attr
= &capability_alwon_dev_attr
,
2644 static struct omap_hwmod omap44xx_timer2_hwmod
= {
2646 .class = &omap44xx_timer_1ms_hwmod_class
,
2647 .clkdm_name
= "l4_per_clkdm",
2648 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2649 .main_clk
= "cm2_dm2_mux",
2652 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET
,
2653 .context_offs
= OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET
,
2654 .modulemode
= MODULEMODE_SWCTRL
,
2660 static struct omap_hwmod omap44xx_timer3_hwmod
= {
2662 .class = &omap44xx_timer_hwmod_class
,
2663 .clkdm_name
= "l4_per_clkdm",
2664 .main_clk
= "cm2_dm3_mux",
2667 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET
,
2668 .context_offs
= OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET
,
2669 .modulemode
= MODULEMODE_SWCTRL
,
2675 static struct omap_hwmod omap44xx_timer4_hwmod
= {
2677 .class = &omap44xx_timer_hwmod_class
,
2678 .clkdm_name
= "l4_per_clkdm",
2679 .main_clk
= "cm2_dm4_mux",
2682 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET
,
2683 .context_offs
= OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET
,
2684 .modulemode
= MODULEMODE_SWCTRL
,
2690 static struct omap_hwmod omap44xx_timer5_hwmod
= {
2692 .class = &omap44xx_timer_hwmod_class
,
2693 .clkdm_name
= "abe_clkdm",
2694 .main_clk
= "timer5_sync_mux",
2697 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET
,
2698 .context_offs
= OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET
,
2699 .modulemode
= MODULEMODE_SWCTRL
,
2702 .dev_attr
= &capability_dsp_dev_attr
,
2706 static struct omap_hwmod omap44xx_timer6_hwmod
= {
2708 .class = &omap44xx_timer_hwmod_class
,
2709 .clkdm_name
= "abe_clkdm",
2710 .main_clk
= "timer6_sync_mux",
2713 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET
,
2714 .context_offs
= OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET
,
2715 .modulemode
= MODULEMODE_SWCTRL
,
2718 .dev_attr
= &capability_dsp_dev_attr
,
2722 static struct omap_hwmod omap44xx_timer7_hwmod
= {
2724 .class = &omap44xx_timer_hwmod_class
,
2725 .clkdm_name
= "abe_clkdm",
2726 .main_clk
= "timer7_sync_mux",
2729 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET
,
2730 .context_offs
= OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET
,
2731 .modulemode
= MODULEMODE_SWCTRL
,
2734 .dev_attr
= &capability_dsp_dev_attr
,
2738 static struct omap_hwmod omap44xx_timer8_hwmod
= {
2740 .class = &omap44xx_timer_hwmod_class
,
2741 .clkdm_name
= "abe_clkdm",
2742 .main_clk
= "timer8_sync_mux",
2745 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET
,
2746 .context_offs
= OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET
,
2747 .modulemode
= MODULEMODE_SWCTRL
,
2750 .dev_attr
= &capability_dsp_pwm_dev_attr
,
2754 static struct omap_hwmod omap44xx_timer9_hwmod
= {
2756 .class = &omap44xx_timer_hwmod_class
,
2757 .clkdm_name
= "l4_per_clkdm",
2758 .main_clk
= "cm2_dm9_mux",
2761 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET
,
2762 .context_offs
= OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET
,
2763 .modulemode
= MODULEMODE_SWCTRL
,
2766 .dev_attr
= &capability_pwm_dev_attr
,
2770 static struct omap_hwmod omap44xx_timer10_hwmod
= {
2772 .class = &omap44xx_timer_1ms_hwmod_class
,
2773 .clkdm_name
= "l4_per_clkdm",
2774 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2775 .main_clk
= "cm2_dm10_mux",
2778 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET
,
2779 .context_offs
= OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET
,
2780 .modulemode
= MODULEMODE_SWCTRL
,
2783 .dev_attr
= &capability_pwm_dev_attr
,
2787 static struct omap_hwmod omap44xx_timer11_hwmod
= {
2789 .class = &omap44xx_timer_hwmod_class
,
2790 .clkdm_name
= "l4_per_clkdm",
2791 .main_clk
= "cm2_dm11_mux",
2794 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET
,
2795 .context_offs
= OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET
,
2796 .modulemode
= MODULEMODE_SWCTRL
,
2799 .dev_attr
= &capability_pwm_dev_attr
,
2804 * universal asynchronous receiver/transmitter (uart)
2807 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc
= {
2809 .sysc_offs
= 0x0054,
2810 .syss_offs
= 0x0058,
2811 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
2812 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2813 SYSS_HAS_RESET_STATUS
),
2814 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2816 .sysc_fields
= &omap_hwmod_sysc_type1
,
2819 static struct omap_hwmod_class omap44xx_uart_hwmod_class
= {
2821 .sysc
= &omap44xx_uart_sysc
,
2825 static struct omap_hwmod omap44xx_uart1_hwmod
= {
2827 .class = &omap44xx_uart_hwmod_class
,
2828 .clkdm_name
= "l4_per_clkdm",
2829 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2830 .main_clk
= "func_48m_fclk",
2833 .clkctrl_offs
= OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET
,
2834 .context_offs
= OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET
,
2835 .modulemode
= MODULEMODE_SWCTRL
,
2841 static struct omap_hwmod omap44xx_uart2_hwmod
= {
2843 .class = &omap44xx_uart_hwmod_class
,
2844 .clkdm_name
= "l4_per_clkdm",
2845 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2846 .main_clk
= "func_48m_fclk",
2849 .clkctrl_offs
= OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET
,
2850 .context_offs
= OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET
,
2851 .modulemode
= MODULEMODE_SWCTRL
,
2857 static struct omap_hwmod omap44xx_uart3_hwmod
= {
2859 .class = &omap44xx_uart_hwmod_class
,
2860 .clkdm_name
= "l4_per_clkdm",
2861 .flags
= DEBUG_OMAP4UART3_FLAGS
| HWMOD_SWSUP_SIDLE_ACT
,
2862 .main_clk
= "func_48m_fclk",
2865 .clkctrl_offs
= OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET
,
2866 .context_offs
= OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET
,
2867 .modulemode
= MODULEMODE_SWCTRL
,
2873 static struct omap_hwmod omap44xx_uart4_hwmod
= {
2875 .class = &omap44xx_uart_hwmod_class
,
2876 .clkdm_name
= "l4_per_clkdm",
2877 .flags
= DEBUG_OMAP4UART4_FLAGS
| HWMOD_SWSUP_SIDLE_ACT
,
2878 .main_clk
= "func_48m_fclk",
2881 .clkctrl_offs
= OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET
,
2882 .context_offs
= OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET
,
2883 .modulemode
= MODULEMODE_SWCTRL
,
2889 * 'usb_host_fs' class
2890 * full-speed usb host controller
2893 /* The IP is not compliant to type1 / type2 scheme */
2894 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs
= {
2900 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc
= {
2902 .sysc_offs
= 0x0210,
2903 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
2904 SYSC_HAS_SOFTRESET
),
2905 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2907 .sysc_fields
= &omap_hwmod_sysc_type_usb_host_fs
,
2910 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class
= {
2911 .name
= "usb_host_fs",
2912 .sysc
= &omap44xx_usb_host_fs_sysc
,
2916 static struct omap_hwmod omap44xx_usb_host_fs_hwmod
= {
2917 .name
= "usb_host_fs",
2918 .class = &omap44xx_usb_host_fs_hwmod_class
,
2919 .clkdm_name
= "l3_init_clkdm",
2920 .main_clk
= "usb_host_fs_fck",
2923 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET
,
2924 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET
,
2925 .modulemode
= MODULEMODE_SWCTRL
,
2931 * 'usb_host_hs' class
2932 * high-speed multi-port usb host controller
2935 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc
= {
2937 .sysc_offs
= 0x0010,
2938 .syss_offs
= 0x0014,
2939 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
2940 SYSC_HAS_SOFTRESET
| SYSC_HAS_RESET_STATUS
),
2941 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2942 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2943 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2944 .sysc_fields
= &omap_hwmod_sysc_type2
,
2947 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class
= {
2948 .name
= "usb_host_hs",
2949 .sysc
= &omap44xx_usb_host_hs_sysc
,
2953 static struct omap_hwmod omap44xx_usb_host_hs_hwmod
= {
2954 .name
= "usb_host_hs",
2955 .class = &omap44xx_usb_host_hs_hwmod_class
,
2956 .clkdm_name
= "l3_init_clkdm",
2957 .main_clk
= "usb_host_hs_fck",
2960 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET
,
2961 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET
,
2962 .modulemode
= MODULEMODE_SWCTRL
,
2967 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2971 * In the following configuration :
2972 * - USBHOST module is set to smart-idle mode
2973 * - PRCM asserts idle_req to the USBHOST module ( This typically
2974 * happens when the system is going to a low power mode : all ports
2975 * have been suspended, the master part of the USBHOST module has
2976 * entered the standby state, and SW has cut the functional clocks)
2977 * - an USBHOST interrupt occurs before the module is able to answer
2978 * idle_ack, typically a remote wakeup IRQ.
2979 * Then the USB HOST module will enter a deadlock situation where it
2980 * is no more accessible nor functional.
2983 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2987 * Errata: USB host EHCI may stall when entering smart-standby mode
2991 * When the USBHOST module is set to smart-standby mode, and when it is
2992 * ready to enter the standby state (i.e. all ports are suspended and
2993 * all attached devices are in suspend mode), then it can wrongly assert
2994 * the Mstandby signal too early while there are still some residual OCP
2995 * transactions ongoing. If this condition occurs, the internal state
2996 * machine may go to an undefined state and the USB link may be stuck
2997 * upon the next resume.
3000 * Don't use smart standby; use only force standby,
3001 * hence HWMOD_SWSUP_MSTANDBY
3004 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
3008 * 'usb_otg_hs' class
3009 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3012 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc
= {
3014 .sysc_offs
= 0x0404,
3015 .syss_offs
= 0x0408,
3016 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
3017 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
3018 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
3019 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3020 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
3022 .sysc_fields
= &omap_hwmod_sysc_type1
,
3025 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class
= {
3026 .name
= "usb_otg_hs",
3027 .sysc
= &omap44xx_usb_otg_hs_sysc
,
3031 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks
[] = {
3032 { .role
= "xclk", .clk
= "usb_otg_hs_xclk" },
3035 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod
= {
3036 .name
= "usb_otg_hs",
3037 .class = &omap44xx_usb_otg_hs_hwmod_class
,
3038 .clkdm_name
= "l3_init_clkdm",
3039 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
3040 .main_clk
= "usb_otg_hs_ick",
3043 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET
,
3044 .context_offs
= OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET
,
3045 .modulemode
= MODULEMODE_HWCTRL
,
3048 .opt_clks
= usb_otg_hs_opt_clks
,
3049 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_hs_opt_clks
),
3053 * 'usb_tll_hs' class
3054 * usb_tll_hs module is the adapter on the usb_host_hs ports
3057 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc
= {
3059 .sysc_offs
= 0x0010,
3060 .syss_offs
= 0x0014,
3061 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
3062 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
3064 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3065 .sysc_fields
= &omap_hwmod_sysc_type1
,
3068 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class
= {
3069 .name
= "usb_tll_hs",
3070 .sysc
= &omap44xx_usb_tll_hs_sysc
,
3073 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod
= {
3074 .name
= "usb_tll_hs",
3075 .class = &omap44xx_usb_tll_hs_hwmod_class
,
3076 .clkdm_name
= "l3_init_clkdm",
3077 .main_clk
= "usb_tll_hs_ick",
3080 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET
,
3081 .context_offs
= OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET
,
3082 .modulemode
= MODULEMODE_HWCTRL
,
3089 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3090 * overflow condition
3093 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc
= {
3095 .sysc_offs
= 0x0010,
3096 .syss_offs
= 0x0014,
3097 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
3098 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
3099 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
3101 .sysc_fields
= &omap_hwmod_sysc_type1
,
3104 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class
= {
3106 .sysc
= &omap44xx_wd_timer_sysc
,
3107 .pre_shutdown
= &omap2_wd_timer_disable
,
3108 .reset
= &omap2_wd_timer_reset
,
3112 static struct omap_hwmod omap44xx_wd_timer2_hwmod
= {
3113 .name
= "wd_timer2",
3114 .class = &omap44xx_wd_timer_hwmod_class
,
3115 .clkdm_name
= "l4_wkup_clkdm",
3116 .main_clk
= "sys_32k_ck",
3119 .clkctrl_offs
= OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET
,
3120 .context_offs
= OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET
,
3121 .modulemode
= MODULEMODE_SWCTRL
,
3127 static struct omap_hwmod omap44xx_wd_timer3_hwmod
= {
3128 .name
= "wd_timer3",
3129 .class = &omap44xx_wd_timer_hwmod_class
,
3130 .clkdm_name
= "abe_clkdm",
3131 .main_clk
= "sys_32k_ck",
3134 .clkctrl_offs
= OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET
,
3135 .context_offs
= OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET
,
3136 .modulemode
= MODULEMODE_SWCTRL
,
3146 /* l3_main_1 -> dmm */
3147 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm
= {
3148 .master
= &omap44xx_l3_main_1_hwmod
,
3149 .slave
= &omap44xx_dmm_hwmod
,
3151 .user
= OCP_USER_SDMA
,
3155 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm
= {
3156 .master
= &omap44xx_mpu_hwmod
,
3157 .slave
= &omap44xx_dmm_hwmod
,
3159 .user
= OCP_USER_MPU
,
3162 /* iva -> l3_instr */
3163 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr
= {
3164 .master
= &omap44xx_iva_hwmod
,
3165 .slave
= &omap44xx_l3_instr_hwmod
,
3167 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3170 /* l3_main_3 -> l3_instr */
3171 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr
= {
3172 .master
= &omap44xx_l3_main_3_hwmod
,
3173 .slave
= &omap44xx_l3_instr_hwmod
,
3175 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3178 /* ocp_wp_noc -> l3_instr */
3179 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr
= {
3180 .master
= &omap44xx_ocp_wp_noc_hwmod
,
3181 .slave
= &omap44xx_l3_instr_hwmod
,
3183 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3186 /* dsp -> l3_main_1 */
3187 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1
= {
3188 .master
= &omap44xx_dsp_hwmod
,
3189 .slave
= &omap44xx_l3_main_1_hwmod
,
3191 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3194 /* dss -> l3_main_1 */
3195 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1
= {
3196 .master
= &omap44xx_dss_hwmod
,
3197 .slave
= &omap44xx_l3_main_1_hwmod
,
3199 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3202 /* l3_main_2 -> l3_main_1 */
3203 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1
= {
3204 .master
= &omap44xx_l3_main_2_hwmod
,
3205 .slave
= &omap44xx_l3_main_1_hwmod
,
3207 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3210 /* l4_cfg -> l3_main_1 */
3211 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1
= {
3212 .master
= &omap44xx_l4_cfg_hwmod
,
3213 .slave
= &omap44xx_l3_main_1_hwmod
,
3215 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3218 /* mmc1 -> l3_main_1 */
3219 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1
= {
3220 .master
= &omap44xx_mmc1_hwmod
,
3221 .slave
= &omap44xx_l3_main_1_hwmod
,
3223 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3226 /* mmc2 -> l3_main_1 */
3227 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1
= {
3228 .master
= &omap44xx_mmc2_hwmod
,
3229 .slave
= &omap44xx_l3_main_1_hwmod
,
3231 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3234 /* mpu -> l3_main_1 */
3235 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1
= {
3236 .master
= &omap44xx_mpu_hwmod
,
3237 .slave
= &omap44xx_l3_main_1_hwmod
,
3239 .user
= OCP_USER_MPU
,
3242 /* debugss -> l3_main_2 */
3243 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2
= {
3244 .master
= &omap44xx_debugss_hwmod
,
3245 .slave
= &omap44xx_l3_main_2_hwmod
,
3246 .clk
= "dbgclk_mux_ck",
3247 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3250 /* dma_system -> l3_main_2 */
3251 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2
= {
3252 .master
= &omap44xx_dma_system_hwmod
,
3253 .slave
= &omap44xx_l3_main_2_hwmod
,
3255 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3258 /* fdif -> l3_main_2 */
3259 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2
= {
3260 .master
= &omap44xx_fdif_hwmod
,
3261 .slave
= &omap44xx_l3_main_2_hwmod
,
3263 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3266 /* gpu -> l3_main_2 */
3267 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2
= {
3268 .master
= &omap44xx_gpu_hwmod
,
3269 .slave
= &omap44xx_l3_main_2_hwmod
,
3271 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3274 /* hsi -> l3_main_2 */
3275 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2
= {
3276 .master
= &omap44xx_hsi_hwmod
,
3277 .slave
= &omap44xx_l3_main_2_hwmod
,
3279 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3282 /* ipu -> l3_main_2 */
3283 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2
= {
3284 .master
= &omap44xx_ipu_hwmod
,
3285 .slave
= &omap44xx_l3_main_2_hwmod
,
3287 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3290 /* iss -> l3_main_2 */
3291 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2
= {
3292 .master
= &omap44xx_iss_hwmod
,
3293 .slave
= &omap44xx_l3_main_2_hwmod
,
3295 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3298 /* iva -> l3_main_2 */
3299 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2
= {
3300 .master
= &omap44xx_iva_hwmod
,
3301 .slave
= &omap44xx_l3_main_2_hwmod
,
3303 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3306 /* l3_main_1 -> l3_main_2 */
3307 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2
= {
3308 .master
= &omap44xx_l3_main_1_hwmod
,
3309 .slave
= &omap44xx_l3_main_2_hwmod
,
3311 .user
= OCP_USER_MPU
,
3314 /* l4_cfg -> l3_main_2 */
3315 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2
= {
3316 .master
= &omap44xx_l4_cfg_hwmod
,
3317 .slave
= &omap44xx_l3_main_2_hwmod
,
3319 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3322 /* usb_host_fs -> l3_main_2 */
3323 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2
= {
3324 .master
= &omap44xx_usb_host_fs_hwmod
,
3325 .slave
= &omap44xx_l3_main_2_hwmod
,
3327 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3330 /* usb_host_hs -> l3_main_2 */
3331 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2
= {
3332 .master
= &omap44xx_usb_host_hs_hwmod
,
3333 .slave
= &omap44xx_l3_main_2_hwmod
,
3335 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3338 /* usb_otg_hs -> l3_main_2 */
3339 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2
= {
3340 .master
= &omap44xx_usb_otg_hs_hwmod
,
3341 .slave
= &omap44xx_l3_main_2_hwmod
,
3343 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3346 /* l3_main_1 -> l3_main_3 */
3347 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3
= {
3348 .master
= &omap44xx_l3_main_1_hwmod
,
3349 .slave
= &omap44xx_l3_main_3_hwmod
,
3351 .user
= OCP_USER_MPU
,
3354 /* l3_main_2 -> l3_main_3 */
3355 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3
= {
3356 .master
= &omap44xx_l3_main_2_hwmod
,
3357 .slave
= &omap44xx_l3_main_3_hwmod
,
3359 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3362 /* l4_cfg -> l3_main_3 */
3363 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3
= {
3364 .master
= &omap44xx_l4_cfg_hwmod
,
3365 .slave
= &omap44xx_l3_main_3_hwmod
,
3367 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3370 /* aess -> l4_abe */
3371 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe
= {
3372 .master
= &omap44xx_aess_hwmod
,
3373 .slave
= &omap44xx_l4_abe_hwmod
,
3374 .clk
= "ocp_abe_iclk",
3375 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3379 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe
= {
3380 .master
= &omap44xx_dsp_hwmod
,
3381 .slave
= &omap44xx_l4_abe_hwmod
,
3382 .clk
= "ocp_abe_iclk",
3383 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3386 /* l3_main_1 -> l4_abe */
3387 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe
= {
3388 .master
= &omap44xx_l3_main_1_hwmod
,
3389 .slave
= &omap44xx_l4_abe_hwmod
,
3391 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3395 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe
= {
3396 .master
= &omap44xx_mpu_hwmod
,
3397 .slave
= &omap44xx_l4_abe_hwmod
,
3398 .clk
= "ocp_abe_iclk",
3399 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3402 /* l3_main_1 -> l4_cfg */
3403 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg
= {
3404 .master
= &omap44xx_l3_main_1_hwmod
,
3405 .slave
= &omap44xx_l4_cfg_hwmod
,
3407 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3410 /* l3_main_2 -> l4_per */
3411 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per
= {
3412 .master
= &omap44xx_l3_main_2_hwmod
,
3413 .slave
= &omap44xx_l4_per_hwmod
,
3415 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3418 /* l4_cfg -> l4_wkup */
3419 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup
= {
3420 .master
= &omap44xx_l4_cfg_hwmod
,
3421 .slave
= &omap44xx_l4_wkup_hwmod
,
3423 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3426 /* mpu -> mpu_private */
3427 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private
= {
3428 .master
= &omap44xx_mpu_hwmod
,
3429 .slave
= &omap44xx_mpu_private_hwmod
,
3431 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3434 /* l4_cfg -> ocp_wp_noc */
3435 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc
= {
3436 .master
= &omap44xx_l4_cfg_hwmod
,
3437 .slave
= &omap44xx_ocp_wp_noc_hwmod
,
3439 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3442 static struct omap_hwmod_addr_space omap44xx_aess_addrs
[] = {
3445 .pa_start
= 0x40180000,
3446 .pa_end
= 0x4018ffff
3450 .pa_start
= 0x401a0000,
3451 .pa_end
= 0x401a1fff
3455 .pa_start
= 0x401c0000,
3456 .pa_end
= 0x401c5fff
3460 .pa_start
= 0x401e0000,
3461 .pa_end
= 0x401e1fff
3465 .pa_start
= 0x401f1000,
3466 .pa_end
= 0x401f13ff,
3467 .flags
= ADDR_TYPE_RT
3472 /* l4_abe -> aess */
3473 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess
= {
3474 .master
= &omap44xx_l4_abe_hwmod
,
3475 .slave
= &omap44xx_aess_hwmod
,
3476 .clk
= "ocp_abe_iclk",
3477 .addr
= omap44xx_aess_addrs
,
3478 .user
= OCP_USER_MPU
,
3481 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs
[] = {
3484 .pa_start
= 0x49080000,
3485 .pa_end
= 0x4908ffff
3489 .pa_start
= 0x490a0000,
3490 .pa_end
= 0x490a1fff
3494 .pa_start
= 0x490c0000,
3495 .pa_end
= 0x490c5fff
3499 .pa_start
= 0x490e0000,
3500 .pa_end
= 0x490e1fff
3504 .pa_start
= 0x490f1000,
3505 .pa_end
= 0x490f13ff,
3506 .flags
= ADDR_TYPE_RT
3511 /* l4_abe -> aess (dma) */
3512 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma
= {
3513 .master
= &omap44xx_l4_abe_hwmod
,
3514 .slave
= &omap44xx_aess_hwmod
,
3515 .clk
= "ocp_abe_iclk",
3516 .addr
= omap44xx_aess_dma_addrs
,
3517 .user
= OCP_USER_SDMA
,
3520 /* l3_main_2 -> c2c */
3521 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c
= {
3522 .master
= &omap44xx_l3_main_2_hwmod
,
3523 .slave
= &omap44xx_c2c_hwmod
,
3525 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3528 /* l4_wkup -> counter_32k */
3529 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k
= {
3530 .master
= &omap44xx_l4_wkup_hwmod
,
3531 .slave
= &omap44xx_counter_32k_hwmod
,
3532 .clk
= "l4_wkup_clk_mux_ck",
3533 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3536 static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs
[] = {
3538 .pa_start
= 0x4a002000,
3539 .pa_end
= 0x4a0027ff,
3540 .flags
= ADDR_TYPE_RT
3545 /* l4_cfg -> ctrl_module_core */
3546 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core
= {
3547 .master
= &omap44xx_l4_cfg_hwmod
,
3548 .slave
= &omap44xx_ctrl_module_core_hwmod
,
3550 .addr
= omap44xx_ctrl_module_core_addrs
,
3551 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3554 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs
[] = {
3556 .pa_start
= 0x4a100000,
3557 .pa_end
= 0x4a1007ff,
3558 .flags
= ADDR_TYPE_RT
3563 /* l4_cfg -> ctrl_module_pad_core */
3564 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core
= {
3565 .master
= &omap44xx_l4_cfg_hwmod
,
3566 .slave
= &omap44xx_ctrl_module_pad_core_hwmod
,
3568 .addr
= omap44xx_ctrl_module_pad_core_addrs
,
3569 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3572 static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs
[] = {
3574 .pa_start
= 0x4a30c000,
3575 .pa_end
= 0x4a30c7ff,
3576 .flags
= ADDR_TYPE_RT
3581 /* l4_wkup -> ctrl_module_wkup */
3582 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup
= {
3583 .master
= &omap44xx_l4_wkup_hwmod
,
3584 .slave
= &omap44xx_ctrl_module_wkup_hwmod
,
3585 .clk
= "l4_wkup_clk_mux_ck",
3586 .addr
= omap44xx_ctrl_module_wkup_addrs
,
3587 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3590 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs
[] = {
3592 .pa_start
= 0x4a31e000,
3593 .pa_end
= 0x4a31e7ff,
3594 .flags
= ADDR_TYPE_RT
3599 /* l4_wkup -> ctrl_module_pad_wkup */
3600 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup
= {
3601 .master
= &omap44xx_l4_wkup_hwmod
,
3602 .slave
= &omap44xx_ctrl_module_pad_wkup_hwmod
,
3603 .clk
= "l4_wkup_clk_mux_ck",
3604 .addr
= omap44xx_ctrl_module_pad_wkup_addrs
,
3605 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3608 /* l3_instr -> debugss */
3609 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss
= {
3610 .master
= &omap44xx_l3_instr_hwmod
,
3611 .slave
= &omap44xx_debugss_hwmod
,
3613 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3616 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs
[] = {
3618 .pa_start
= 0x4a056000,
3619 .pa_end
= 0x4a056fff,
3620 .flags
= ADDR_TYPE_RT
3625 /* l4_cfg -> dma_system */
3626 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system
= {
3627 .master
= &omap44xx_l4_cfg_hwmod
,
3628 .slave
= &omap44xx_dma_system_hwmod
,
3630 .addr
= omap44xx_dma_system_addrs
,
3631 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3634 /* l4_abe -> dmic */
3635 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic
= {
3636 .master
= &omap44xx_l4_abe_hwmod
,
3637 .slave
= &omap44xx_dmic_hwmod
,
3638 .clk
= "ocp_abe_iclk",
3639 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3643 static struct omap_hwmod_ocp_if omap44xx_dsp__iva
= {
3644 .master
= &omap44xx_dsp_hwmod
,
3645 .slave
= &omap44xx_iva_hwmod
,
3646 .clk
= "dpll_iva_m5x2_ck",
3647 .user
= OCP_USER_DSP
,
3651 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if
= {
3652 .master
= &omap44xx_dsp_hwmod
,
3653 .slave
= &omap44xx_sl2if_hwmod
,
3654 .clk
= "dpll_iva_m5x2_ck",
3655 .user
= OCP_USER_DSP
,
3659 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp
= {
3660 .master
= &omap44xx_l4_cfg_hwmod
,
3661 .slave
= &omap44xx_dsp_hwmod
,
3663 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3666 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs
[] = {
3668 .pa_start
= 0x58000000,
3669 .pa_end
= 0x5800007f,
3670 .flags
= ADDR_TYPE_RT
3675 /* l3_main_2 -> dss */
3676 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss
= {
3677 .master
= &omap44xx_l3_main_2_hwmod
,
3678 .slave
= &omap44xx_dss_hwmod
,
3680 .addr
= omap44xx_dss_dma_addrs
,
3681 .user
= OCP_USER_SDMA
,
3684 static struct omap_hwmod_addr_space omap44xx_dss_addrs
[] = {
3686 .pa_start
= 0x48040000,
3687 .pa_end
= 0x4804007f,
3688 .flags
= ADDR_TYPE_RT
3694 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss
= {
3695 .master
= &omap44xx_l4_per_hwmod
,
3696 .slave
= &omap44xx_dss_hwmod
,
3698 .addr
= omap44xx_dss_addrs
,
3699 .user
= OCP_USER_MPU
,
3702 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs
[] = {
3704 .pa_start
= 0x58001000,
3705 .pa_end
= 0x58001fff,
3706 .flags
= ADDR_TYPE_RT
3711 /* l3_main_2 -> dss_dispc */
3712 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc
= {
3713 .master
= &omap44xx_l3_main_2_hwmod
,
3714 .slave
= &omap44xx_dss_dispc_hwmod
,
3716 .addr
= omap44xx_dss_dispc_dma_addrs
,
3717 .user
= OCP_USER_SDMA
,
3720 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs
[] = {
3722 .pa_start
= 0x48041000,
3723 .pa_end
= 0x48041fff,
3724 .flags
= ADDR_TYPE_RT
3729 /* l4_per -> dss_dispc */
3730 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc
= {
3731 .master
= &omap44xx_l4_per_hwmod
,
3732 .slave
= &omap44xx_dss_dispc_hwmod
,
3734 .addr
= omap44xx_dss_dispc_addrs
,
3735 .user
= OCP_USER_MPU
,
3738 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs
[] = {
3740 .pa_start
= 0x58004000,
3741 .pa_end
= 0x580041ff,
3742 .flags
= ADDR_TYPE_RT
3747 /* l3_main_2 -> dss_dsi1 */
3748 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1
= {
3749 .master
= &omap44xx_l3_main_2_hwmod
,
3750 .slave
= &omap44xx_dss_dsi1_hwmod
,
3752 .addr
= omap44xx_dss_dsi1_dma_addrs
,
3753 .user
= OCP_USER_SDMA
,
3756 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs
[] = {
3758 .pa_start
= 0x48044000,
3759 .pa_end
= 0x480441ff,
3760 .flags
= ADDR_TYPE_RT
3765 /* l4_per -> dss_dsi1 */
3766 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1
= {
3767 .master
= &omap44xx_l4_per_hwmod
,
3768 .slave
= &omap44xx_dss_dsi1_hwmod
,
3770 .addr
= omap44xx_dss_dsi1_addrs
,
3771 .user
= OCP_USER_MPU
,
3774 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs
[] = {
3776 .pa_start
= 0x58005000,
3777 .pa_end
= 0x580051ff,
3778 .flags
= ADDR_TYPE_RT
3783 /* l3_main_2 -> dss_dsi2 */
3784 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2
= {
3785 .master
= &omap44xx_l3_main_2_hwmod
,
3786 .slave
= &omap44xx_dss_dsi2_hwmod
,
3788 .addr
= omap44xx_dss_dsi2_dma_addrs
,
3789 .user
= OCP_USER_SDMA
,
3792 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs
[] = {
3794 .pa_start
= 0x48045000,
3795 .pa_end
= 0x480451ff,
3796 .flags
= ADDR_TYPE_RT
3801 /* l4_per -> dss_dsi2 */
3802 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2
= {
3803 .master
= &omap44xx_l4_per_hwmod
,
3804 .slave
= &omap44xx_dss_dsi2_hwmod
,
3806 .addr
= omap44xx_dss_dsi2_addrs
,
3807 .user
= OCP_USER_MPU
,
3810 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs
[] = {
3812 .pa_start
= 0x58006000,
3813 .pa_end
= 0x58006fff,
3814 .flags
= ADDR_TYPE_RT
3819 /* l3_main_2 -> dss_hdmi */
3820 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi
= {
3821 .master
= &omap44xx_l3_main_2_hwmod
,
3822 .slave
= &omap44xx_dss_hdmi_hwmod
,
3824 .addr
= omap44xx_dss_hdmi_dma_addrs
,
3825 .user
= OCP_USER_SDMA
,
3828 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs
[] = {
3830 .pa_start
= 0x48046000,
3831 .pa_end
= 0x48046fff,
3832 .flags
= ADDR_TYPE_RT
3837 /* l4_per -> dss_hdmi */
3838 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi
= {
3839 .master
= &omap44xx_l4_per_hwmod
,
3840 .slave
= &omap44xx_dss_hdmi_hwmod
,
3842 .addr
= omap44xx_dss_hdmi_addrs
,
3843 .user
= OCP_USER_MPU
,
3846 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs
[] = {
3848 .pa_start
= 0x58002000,
3849 .pa_end
= 0x580020ff,
3850 .flags
= ADDR_TYPE_RT
3855 /* l3_main_2 -> dss_rfbi */
3856 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi
= {
3857 .master
= &omap44xx_l3_main_2_hwmod
,
3858 .slave
= &omap44xx_dss_rfbi_hwmod
,
3860 .addr
= omap44xx_dss_rfbi_dma_addrs
,
3861 .user
= OCP_USER_SDMA
,
3864 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs
[] = {
3866 .pa_start
= 0x48042000,
3867 .pa_end
= 0x480420ff,
3868 .flags
= ADDR_TYPE_RT
3873 /* l4_per -> dss_rfbi */
3874 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi
= {
3875 .master
= &omap44xx_l4_per_hwmod
,
3876 .slave
= &omap44xx_dss_rfbi_hwmod
,
3878 .addr
= omap44xx_dss_rfbi_addrs
,
3879 .user
= OCP_USER_MPU
,
3882 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs
[] = {
3884 .pa_start
= 0x58003000,
3885 .pa_end
= 0x580030ff,
3886 .flags
= ADDR_TYPE_RT
3891 /* l3_main_2 -> dss_venc */
3892 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc
= {
3893 .master
= &omap44xx_l3_main_2_hwmod
,
3894 .slave
= &omap44xx_dss_venc_hwmod
,
3896 .addr
= omap44xx_dss_venc_dma_addrs
,
3897 .user
= OCP_USER_SDMA
,
3900 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs
[] = {
3902 .pa_start
= 0x48043000,
3903 .pa_end
= 0x480430ff,
3904 .flags
= ADDR_TYPE_RT
3909 /* l4_per -> dss_venc */
3910 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc
= {
3911 .master
= &omap44xx_l4_per_hwmod
,
3912 .slave
= &omap44xx_dss_venc_hwmod
,
3914 .addr
= omap44xx_dss_venc_addrs
,
3915 .user
= OCP_USER_MPU
,
3918 static struct omap_hwmod_addr_space omap44xx_elm_addrs
[] = {
3920 .pa_start
= 0x48078000,
3921 .pa_end
= 0x48078fff,
3922 .flags
= ADDR_TYPE_RT
3928 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm
= {
3929 .master
= &omap44xx_l4_per_hwmod
,
3930 .slave
= &omap44xx_elm_hwmod
,
3932 .addr
= omap44xx_elm_addrs
,
3933 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3936 static struct omap_hwmod_addr_space omap44xx_fdif_addrs
[] = {
3938 .pa_start
= 0x4a10a000,
3939 .pa_end
= 0x4a10a1ff,
3940 .flags
= ADDR_TYPE_RT
3945 /* l4_cfg -> fdif */
3946 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif
= {
3947 .master
= &omap44xx_l4_cfg_hwmod
,
3948 .slave
= &omap44xx_fdif_hwmod
,
3950 .addr
= omap44xx_fdif_addrs
,
3951 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3954 /* l4_wkup -> gpio1 */
3955 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1
= {
3956 .master
= &omap44xx_l4_wkup_hwmod
,
3957 .slave
= &omap44xx_gpio1_hwmod
,
3958 .clk
= "l4_wkup_clk_mux_ck",
3959 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3962 /* l4_per -> gpio2 */
3963 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2
= {
3964 .master
= &omap44xx_l4_per_hwmod
,
3965 .slave
= &omap44xx_gpio2_hwmod
,
3967 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3970 /* l4_per -> gpio3 */
3971 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3
= {
3972 .master
= &omap44xx_l4_per_hwmod
,
3973 .slave
= &omap44xx_gpio3_hwmod
,
3975 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3978 /* l4_per -> gpio4 */
3979 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4
= {
3980 .master
= &omap44xx_l4_per_hwmod
,
3981 .slave
= &omap44xx_gpio4_hwmod
,
3983 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3986 /* l4_per -> gpio5 */
3987 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5
= {
3988 .master
= &omap44xx_l4_per_hwmod
,
3989 .slave
= &omap44xx_gpio5_hwmod
,
3991 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3994 /* l4_per -> gpio6 */
3995 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6
= {
3996 .master
= &omap44xx_l4_per_hwmod
,
3997 .slave
= &omap44xx_gpio6_hwmod
,
3999 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4002 /* l3_main_2 -> gpmc */
4003 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc
= {
4004 .master
= &omap44xx_l3_main_2_hwmod
,
4005 .slave
= &omap44xx_gpmc_hwmod
,
4007 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4010 static struct omap_hwmod_addr_space omap44xx_gpu_addrs
[] = {
4012 .pa_start
= 0x56000000,
4013 .pa_end
= 0x5600ffff,
4014 .flags
= ADDR_TYPE_RT
4019 /* l3_main_2 -> gpu */
4020 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu
= {
4021 .master
= &omap44xx_l3_main_2_hwmod
,
4022 .slave
= &omap44xx_gpu_hwmod
,
4024 .addr
= omap44xx_gpu_addrs
,
4025 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4028 static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs
[] = {
4030 .pa_start
= 0x480b2000,
4031 .pa_end
= 0x480b201f,
4032 .flags
= ADDR_TYPE_RT
4037 /* l4_per -> hdq1w */
4038 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w
= {
4039 .master
= &omap44xx_l4_per_hwmod
,
4040 .slave
= &omap44xx_hdq1w_hwmod
,
4042 .addr
= omap44xx_hdq1w_addrs
,
4043 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4046 static struct omap_hwmod_addr_space omap44xx_hsi_addrs
[] = {
4048 .pa_start
= 0x4a058000,
4049 .pa_end
= 0x4a05bfff,
4050 .flags
= ADDR_TYPE_RT
4056 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi
= {
4057 .master
= &omap44xx_l4_cfg_hwmod
,
4058 .slave
= &omap44xx_hsi_hwmod
,
4060 .addr
= omap44xx_hsi_addrs
,
4061 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4064 /* l4_per -> i2c1 */
4065 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1
= {
4066 .master
= &omap44xx_l4_per_hwmod
,
4067 .slave
= &omap44xx_i2c1_hwmod
,
4069 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4072 /* l4_per -> i2c2 */
4073 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2
= {
4074 .master
= &omap44xx_l4_per_hwmod
,
4075 .slave
= &omap44xx_i2c2_hwmod
,
4077 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4080 /* l4_per -> i2c3 */
4081 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3
= {
4082 .master
= &omap44xx_l4_per_hwmod
,
4083 .slave
= &omap44xx_i2c3_hwmod
,
4085 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4088 /* l4_per -> i2c4 */
4089 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4
= {
4090 .master
= &omap44xx_l4_per_hwmod
,
4091 .slave
= &omap44xx_i2c4_hwmod
,
4093 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4096 /* l3_main_2 -> ipu */
4097 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu
= {
4098 .master
= &omap44xx_l3_main_2_hwmod
,
4099 .slave
= &omap44xx_ipu_hwmod
,
4101 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4104 static struct omap_hwmod_addr_space omap44xx_iss_addrs
[] = {
4106 .pa_start
= 0x52000000,
4107 .pa_end
= 0x520000ff,
4108 .flags
= ADDR_TYPE_RT
4113 /* l3_main_2 -> iss */
4114 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss
= {
4115 .master
= &omap44xx_l3_main_2_hwmod
,
4116 .slave
= &omap44xx_iss_hwmod
,
4118 .addr
= omap44xx_iss_addrs
,
4119 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4123 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if
= {
4124 .master
= &omap44xx_iva_hwmod
,
4125 .slave
= &omap44xx_sl2if_hwmod
,
4126 .clk
= "dpll_iva_m5x2_ck",
4127 .user
= OCP_USER_IVA
,
4130 /* l3_main_2 -> iva */
4131 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva
= {
4132 .master
= &omap44xx_l3_main_2_hwmod
,
4133 .slave
= &omap44xx_iva_hwmod
,
4135 .user
= OCP_USER_MPU
,
4138 /* l4_wkup -> kbd */
4139 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd
= {
4140 .master
= &omap44xx_l4_wkup_hwmod
,
4141 .slave
= &omap44xx_kbd_hwmod
,
4142 .clk
= "l4_wkup_clk_mux_ck",
4143 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4146 /* l4_cfg -> mailbox */
4147 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox
= {
4148 .master
= &omap44xx_l4_cfg_hwmod
,
4149 .slave
= &omap44xx_mailbox_hwmod
,
4151 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4154 static struct omap_hwmod_addr_space omap44xx_mcasp_addrs
[] = {
4156 .pa_start
= 0x40128000,
4157 .pa_end
= 0x401283ff,
4158 .flags
= ADDR_TYPE_RT
4163 /* l4_abe -> mcasp */
4164 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp
= {
4165 .master
= &omap44xx_l4_abe_hwmod
,
4166 .slave
= &omap44xx_mcasp_hwmod
,
4167 .clk
= "ocp_abe_iclk",
4168 .addr
= omap44xx_mcasp_addrs
,
4169 .user
= OCP_USER_MPU
,
4172 static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs
[] = {
4174 .pa_start
= 0x49028000,
4175 .pa_end
= 0x490283ff,
4176 .flags
= ADDR_TYPE_RT
4181 /* l4_abe -> mcasp (dma) */
4182 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma
= {
4183 .master
= &omap44xx_l4_abe_hwmod
,
4184 .slave
= &omap44xx_mcasp_hwmod
,
4185 .clk
= "ocp_abe_iclk",
4186 .addr
= omap44xx_mcasp_dma_addrs
,
4187 .user
= OCP_USER_SDMA
,
4190 /* l4_abe -> mcbsp1 */
4191 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1
= {
4192 .master
= &omap44xx_l4_abe_hwmod
,
4193 .slave
= &omap44xx_mcbsp1_hwmod
,
4194 .clk
= "ocp_abe_iclk",
4195 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4198 /* l4_abe -> mcbsp2 */
4199 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2
= {
4200 .master
= &omap44xx_l4_abe_hwmod
,
4201 .slave
= &omap44xx_mcbsp2_hwmod
,
4202 .clk
= "ocp_abe_iclk",
4203 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4206 /* l4_abe -> mcbsp3 */
4207 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3
= {
4208 .master
= &omap44xx_l4_abe_hwmod
,
4209 .slave
= &omap44xx_mcbsp3_hwmod
,
4210 .clk
= "ocp_abe_iclk",
4211 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4214 /* l4_per -> mcbsp4 */
4215 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4
= {
4216 .master
= &omap44xx_l4_per_hwmod
,
4217 .slave
= &omap44xx_mcbsp4_hwmod
,
4219 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4222 /* l4_abe -> mcpdm */
4223 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm
= {
4224 .master
= &omap44xx_l4_abe_hwmod
,
4225 .slave
= &omap44xx_mcpdm_hwmod
,
4226 .clk
= "ocp_abe_iclk",
4227 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4230 /* l4_per -> mcspi1 */
4231 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1
= {
4232 .master
= &omap44xx_l4_per_hwmod
,
4233 .slave
= &omap44xx_mcspi1_hwmod
,
4235 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4238 /* l4_per -> mcspi2 */
4239 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2
= {
4240 .master
= &omap44xx_l4_per_hwmod
,
4241 .slave
= &omap44xx_mcspi2_hwmod
,
4243 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4246 /* l4_per -> mcspi3 */
4247 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3
= {
4248 .master
= &omap44xx_l4_per_hwmod
,
4249 .slave
= &omap44xx_mcspi3_hwmod
,
4251 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4254 /* l4_per -> mcspi4 */
4255 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4
= {
4256 .master
= &omap44xx_l4_per_hwmod
,
4257 .slave
= &omap44xx_mcspi4_hwmod
,
4259 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4262 /* l4_per -> mmc1 */
4263 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1
= {
4264 .master
= &omap44xx_l4_per_hwmod
,
4265 .slave
= &omap44xx_mmc1_hwmod
,
4267 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4270 /* l4_per -> mmc2 */
4271 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2
= {
4272 .master
= &omap44xx_l4_per_hwmod
,
4273 .slave
= &omap44xx_mmc2_hwmod
,
4275 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4278 /* l4_per -> mmc3 */
4279 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3
= {
4280 .master
= &omap44xx_l4_per_hwmod
,
4281 .slave
= &omap44xx_mmc3_hwmod
,
4283 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4286 /* l4_per -> mmc4 */
4287 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4
= {
4288 .master
= &omap44xx_l4_per_hwmod
,
4289 .slave
= &omap44xx_mmc4_hwmod
,
4291 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4294 /* l4_per -> mmc5 */
4295 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5
= {
4296 .master
= &omap44xx_l4_per_hwmod
,
4297 .slave
= &omap44xx_mmc5_hwmod
,
4299 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4302 /* l3_main_2 -> ocmc_ram */
4303 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram
= {
4304 .master
= &omap44xx_l3_main_2_hwmod
,
4305 .slave
= &omap44xx_ocmc_ram_hwmod
,
4307 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4310 /* l4_cfg -> ocp2scp_usb_phy */
4311 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy
= {
4312 .master
= &omap44xx_l4_cfg_hwmod
,
4313 .slave
= &omap44xx_ocp2scp_usb_phy_hwmod
,
4315 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4318 /* mpu_private -> prcm_mpu */
4319 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu
= {
4320 .master
= &omap44xx_mpu_private_hwmod
,
4321 .slave
= &omap44xx_prcm_mpu_hwmod
,
4323 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4326 /* l4_wkup -> cm_core_aon */
4327 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon
= {
4328 .master
= &omap44xx_l4_wkup_hwmod
,
4329 .slave
= &omap44xx_cm_core_aon_hwmod
,
4330 .clk
= "l4_wkup_clk_mux_ck",
4331 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4334 /* l4_cfg -> cm_core */
4335 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core
= {
4336 .master
= &omap44xx_l4_cfg_hwmod
,
4337 .slave
= &omap44xx_cm_core_hwmod
,
4339 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4342 /* l4_wkup -> prm */
4343 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm
= {
4344 .master
= &omap44xx_l4_wkup_hwmod
,
4345 .slave
= &omap44xx_prm_hwmod
,
4346 .clk
= "l4_wkup_clk_mux_ck",
4347 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4350 /* l4_wkup -> scrm */
4351 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm
= {
4352 .master
= &omap44xx_l4_wkup_hwmod
,
4353 .slave
= &omap44xx_scrm_hwmod
,
4354 .clk
= "l4_wkup_clk_mux_ck",
4355 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4358 /* l3_main_2 -> sl2if */
4359 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if
= {
4360 .master
= &omap44xx_l3_main_2_hwmod
,
4361 .slave
= &omap44xx_sl2if_hwmod
,
4363 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4366 static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs
[] = {
4368 .pa_start
= 0x4012c000,
4369 .pa_end
= 0x4012c3ff,
4370 .flags
= ADDR_TYPE_RT
4375 /* l4_abe -> slimbus1 */
4376 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1
= {
4377 .master
= &omap44xx_l4_abe_hwmod
,
4378 .slave
= &omap44xx_slimbus1_hwmod
,
4379 .clk
= "ocp_abe_iclk",
4380 .addr
= omap44xx_slimbus1_addrs
,
4381 .user
= OCP_USER_MPU
,
4384 static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs
[] = {
4386 .pa_start
= 0x4902c000,
4387 .pa_end
= 0x4902c3ff,
4388 .flags
= ADDR_TYPE_RT
4393 /* l4_abe -> slimbus1 (dma) */
4394 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma
= {
4395 .master
= &omap44xx_l4_abe_hwmod
,
4396 .slave
= &omap44xx_slimbus1_hwmod
,
4397 .clk
= "ocp_abe_iclk",
4398 .addr
= omap44xx_slimbus1_dma_addrs
,
4399 .user
= OCP_USER_SDMA
,
4402 static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs
[] = {
4404 .pa_start
= 0x48076000,
4405 .pa_end
= 0x480763ff,
4406 .flags
= ADDR_TYPE_RT
4411 /* l4_per -> slimbus2 */
4412 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2
= {
4413 .master
= &omap44xx_l4_per_hwmod
,
4414 .slave
= &omap44xx_slimbus2_hwmod
,
4416 .addr
= omap44xx_slimbus2_addrs
,
4417 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4420 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs
[] = {
4422 .pa_start
= 0x4a0dd000,
4423 .pa_end
= 0x4a0dd03f,
4424 .flags
= ADDR_TYPE_RT
4429 /* l4_cfg -> smartreflex_core */
4430 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core
= {
4431 .master
= &omap44xx_l4_cfg_hwmod
,
4432 .slave
= &omap44xx_smartreflex_core_hwmod
,
4434 .addr
= omap44xx_smartreflex_core_addrs
,
4435 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4438 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs
[] = {
4440 .pa_start
= 0x4a0db000,
4441 .pa_end
= 0x4a0db03f,
4442 .flags
= ADDR_TYPE_RT
4447 /* l4_cfg -> smartreflex_iva */
4448 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva
= {
4449 .master
= &omap44xx_l4_cfg_hwmod
,
4450 .slave
= &omap44xx_smartreflex_iva_hwmod
,
4452 .addr
= omap44xx_smartreflex_iva_addrs
,
4453 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4456 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs
[] = {
4458 .pa_start
= 0x4a0d9000,
4459 .pa_end
= 0x4a0d903f,
4460 .flags
= ADDR_TYPE_RT
4465 /* l4_cfg -> smartreflex_mpu */
4466 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu
= {
4467 .master
= &omap44xx_l4_cfg_hwmod
,
4468 .slave
= &omap44xx_smartreflex_mpu_hwmod
,
4470 .addr
= omap44xx_smartreflex_mpu_addrs
,
4471 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4474 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs
[] = {
4476 .pa_start
= 0x4a0f6000,
4477 .pa_end
= 0x4a0f6fff,
4478 .flags
= ADDR_TYPE_RT
4483 /* l4_cfg -> spinlock */
4484 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock
= {
4485 .master
= &omap44xx_l4_cfg_hwmod
,
4486 .slave
= &omap44xx_spinlock_hwmod
,
4488 .addr
= omap44xx_spinlock_addrs
,
4489 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4492 /* l4_wkup -> timer1 */
4493 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1
= {
4494 .master
= &omap44xx_l4_wkup_hwmod
,
4495 .slave
= &omap44xx_timer1_hwmod
,
4496 .clk
= "l4_wkup_clk_mux_ck",
4497 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4500 /* l4_per -> timer2 */
4501 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2
= {
4502 .master
= &omap44xx_l4_per_hwmod
,
4503 .slave
= &omap44xx_timer2_hwmod
,
4505 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4508 /* l4_per -> timer3 */
4509 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3
= {
4510 .master
= &omap44xx_l4_per_hwmod
,
4511 .slave
= &omap44xx_timer3_hwmod
,
4513 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4516 /* l4_per -> timer4 */
4517 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4
= {
4518 .master
= &omap44xx_l4_per_hwmod
,
4519 .slave
= &omap44xx_timer4_hwmod
,
4521 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4524 /* l4_abe -> timer5 */
4525 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5
= {
4526 .master
= &omap44xx_l4_abe_hwmod
,
4527 .slave
= &omap44xx_timer5_hwmod
,
4528 .clk
= "ocp_abe_iclk",
4529 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4532 /* l4_abe -> timer6 */
4533 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6
= {
4534 .master
= &omap44xx_l4_abe_hwmod
,
4535 .slave
= &omap44xx_timer6_hwmod
,
4536 .clk
= "ocp_abe_iclk",
4537 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4540 /* l4_abe -> timer7 */
4541 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7
= {
4542 .master
= &omap44xx_l4_abe_hwmod
,
4543 .slave
= &omap44xx_timer7_hwmod
,
4544 .clk
= "ocp_abe_iclk",
4545 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4548 /* l4_abe -> timer8 */
4549 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8
= {
4550 .master
= &omap44xx_l4_abe_hwmod
,
4551 .slave
= &omap44xx_timer8_hwmod
,
4552 .clk
= "ocp_abe_iclk",
4553 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4556 /* l4_per -> timer9 */
4557 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9
= {
4558 .master
= &omap44xx_l4_per_hwmod
,
4559 .slave
= &omap44xx_timer9_hwmod
,
4561 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4564 /* l4_per -> timer10 */
4565 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10
= {
4566 .master
= &omap44xx_l4_per_hwmod
,
4567 .slave
= &omap44xx_timer10_hwmod
,
4569 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4572 /* l4_per -> timer11 */
4573 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11
= {
4574 .master
= &omap44xx_l4_per_hwmod
,
4575 .slave
= &omap44xx_timer11_hwmod
,
4577 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4580 /* l4_per -> uart1 */
4581 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1
= {
4582 .master
= &omap44xx_l4_per_hwmod
,
4583 .slave
= &omap44xx_uart1_hwmod
,
4585 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4588 /* l4_per -> uart2 */
4589 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2
= {
4590 .master
= &omap44xx_l4_per_hwmod
,
4591 .slave
= &omap44xx_uart2_hwmod
,
4593 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4596 /* l4_per -> uart3 */
4597 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3
= {
4598 .master
= &omap44xx_l4_per_hwmod
,
4599 .slave
= &omap44xx_uart3_hwmod
,
4601 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4604 /* l4_per -> uart4 */
4605 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4
= {
4606 .master
= &omap44xx_l4_per_hwmod
,
4607 .slave
= &omap44xx_uart4_hwmod
,
4609 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4612 /* l4_cfg -> usb_host_fs */
4613 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs
= {
4614 .master
= &omap44xx_l4_cfg_hwmod
,
4615 .slave
= &omap44xx_usb_host_fs_hwmod
,
4617 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4620 /* l4_cfg -> usb_host_hs */
4621 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs
= {
4622 .master
= &omap44xx_l4_cfg_hwmod
,
4623 .slave
= &omap44xx_usb_host_hs_hwmod
,
4625 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4628 /* l4_cfg -> usb_otg_hs */
4629 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs
= {
4630 .master
= &omap44xx_l4_cfg_hwmod
,
4631 .slave
= &omap44xx_usb_otg_hs_hwmod
,
4633 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4636 /* l4_cfg -> usb_tll_hs */
4637 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs
= {
4638 .master
= &omap44xx_l4_cfg_hwmod
,
4639 .slave
= &omap44xx_usb_tll_hs_hwmod
,
4641 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4644 /* l4_wkup -> wd_timer2 */
4645 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2
= {
4646 .master
= &omap44xx_l4_wkup_hwmod
,
4647 .slave
= &omap44xx_wd_timer2_hwmod
,
4648 .clk
= "l4_wkup_clk_mux_ck",
4649 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4652 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs
[] = {
4654 .pa_start
= 0x40130000,
4655 .pa_end
= 0x4013007f,
4656 .flags
= ADDR_TYPE_RT
4661 /* l4_abe -> wd_timer3 */
4662 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3
= {
4663 .master
= &omap44xx_l4_abe_hwmod
,
4664 .slave
= &omap44xx_wd_timer3_hwmod
,
4665 .clk
= "ocp_abe_iclk",
4666 .addr
= omap44xx_wd_timer3_addrs
,
4667 .user
= OCP_USER_MPU
,
4670 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs
[] = {
4672 .pa_start
= 0x49030000,
4673 .pa_end
= 0x4903007f,
4674 .flags
= ADDR_TYPE_RT
4679 /* l4_abe -> wd_timer3 (dma) */
4680 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma
= {
4681 .master
= &omap44xx_l4_abe_hwmod
,
4682 .slave
= &omap44xx_wd_timer3_hwmod
,
4683 .clk
= "ocp_abe_iclk",
4684 .addr
= omap44xx_wd_timer3_dma_addrs
,
4685 .user
= OCP_USER_SDMA
,
4689 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1
= {
4690 .master
= &omap44xx_mpu_hwmod
,
4691 .slave
= &omap44xx_emif1_hwmod
,
4693 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4697 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2
= {
4698 .master
= &omap44xx_mpu_hwmod
,
4699 .slave
= &omap44xx_emif2_hwmod
,
4701 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
4704 static struct omap_hwmod_ocp_if
*omap44xx_hwmod_ocp_ifs
[] __initdata
= {
4705 &omap44xx_l3_main_1__dmm
,
4707 &omap44xx_iva__l3_instr
,
4708 &omap44xx_l3_main_3__l3_instr
,
4709 &omap44xx_ocp_wp_noc__l3_instr
,
4710 &omap44xx_dsp__l3_main_1
,
4711 &omap44xx_dss__l3_main_1
,
4712 &omap44xx_l3_main_2__l3_main_1
,
4713 &omap44xx_l4_cfg__l3_main_1
,
4714 &omap44xx_mmc1__l3_main_1
,
4715 &omap44xx_mmc2__l3_main_1
,
4716 &omap44xx_mpu__l3_main_1
,
4717 &omap44xx_debugss__l3_main_2
,
4718 &omap44xx_dma_system__l3_main_2
,
4719 &omap44xx_fdif__l3_main_2
,
4720 &omap44xx_gpu__l3_main_2
,
4721 &omap44xx_hsi__l3_main_2
,
4722 &omap44xx_ipu__l3_main_2
,
4723 &omap44xx_iss__l3_main_2
,
4724 &omap44xx_iva__l3_main_2
,
4725 &omap44xx_l3_main_1__l3_main_2
,
4726 &omap44xx_l4_cfg__l3_main_2
,
4727 /* &omap44xx_usb_host_fs__l3_main_2, */
4728 &omap44xx_usb_host_hs__l3_main_2
,
4729 &omap44xx_usb_otg_hs__l3_main_2
,
4730 &omap44xx_l3_main_1__l3_main_3
,
4731 &omap44xx_l3_main_2__l3_main_3
,
4732 &omap44xx_l4_cfg__l3_main_3
,
4733 &omap44xx_aess__l4_abe
,
4734 &omap44xx_dsp__l4_abe
,
4735 &omap44xx_l3_main_1__l4_abe
,
4736 &omap44xx_mpu__l4_abe
,
4737 &omap44xx_l3_main_1__l4_cfg
,
4738 &omap44xx_l3_main_2__l4_per
,
4739 &omap44xx_l4_cfg__l4_wkup
,
4740 &omap44xx_mpu__mpu_private
,
4741 &omap44xx_l4_cfg__ocp_wp_noc
,
4742 &omap44xx_l4_abe__aess
,
4743 &omap44xx_l4_abe__aess_dma
,
4744 &omap44xx_l3_main_2__c2c
,
4745 &omap44xx_l4_wkup__counter_32k
,
4746 &omap44xx_l4_cfg__ctrl_module_core
,
4747 &omap44xx_l4_cfg__ctrl_module_pad_core
,
4748 &omap44xx_l4_wkup__ctrl_module_wkup
,
4749 &omap44xx_l4_wkup__ctrl_module_pad_wkup
,
4750 &omap44xx_l3_instr__debugss
,
4751 &omap44xx_l4_cfg__dma_system
,
4752 &omap44xx_l4_abe__dmic
,
4754 /* &omap44xx_dsp__sl2if, */
4755 &omap44xx_l4_cfg__dsp
,
4756 &omap44xx_l3_main_2__dss
,
4757 &omap44xx_l4_per__dss
,
4758 &omap44xx_l3_main_2__dss_dispc
,
4759 &omap44xx_l4_per__dss_dispc
,
4760 &omap44xx_l3_main_2__dss_dsi1
,
4761 &omap44xx_l4_per__dss_dsi1
,
4762 &omap44xx_l3_main_2__dss_dsi2
,
4763 &omap44xx_l4_per__dss_dsi2
,
4764 &omap44xx_l3_main_2__dss_hdmi
,
4765 &omap44xx_l4_per__dss_hdmi
,
4766 &omap44xx_l3_main_2__dss_rfbi
,
4767 &omap44xx_l4_per__dss_rfbi
,
4768 &omap44xx_l3_main_2__dss_venc
,
4769 &omap44xx_l4_per__dss_venc
,
4770 &omap44xx_l4_per__elm
,
4771 &omap44xx_l4_cfg__fdif
,
4772 &omap44xx_l4_wkup__gpio1
,
4773 &omap44xx_l4_per__gpio2
,
4774 &omap44xx_l4_per__gpio3
,
4775 &omap44xx_l4_per__gpio4
,
4776 &omap44xx_l4_per__gpio5
,
4777 &omap44xx_l4_per__gpio6
,
4778 &omap44xx_l3_main_2__gpmc
,
4779 &omap44xx_l3_main_2__gpu
,
4780 &omap44xx_l4_per__hdq1w
,
4781 &omap44xx_l4_cfg__hsi
,
4782 &omap44xx_l4_per__i2c1
,
4783 &omap44xx_l4_per__i2c2
,
4784 &omap44xx_l4_per__i2c3
,
4785 &omap44xx_l4_per__i2c4
,
4786 &omap44xx_l3_main_2__ipu
,
4787 &omap44xx_l3_main_2__iss
,
4788 /* &omap44xx_iva__sl2if, */
4789 &omap44xx_l3_main_2__iva
,
4790 &omap44xx_l4_wkup__kbd
,
4791 &omap44xx_l4_cfg__mailbox
,
4792 &omap44xx_l4_abe__mcasp
,
4793 &omap44xx_l4_abe__mcasp_dma
,
4794 &omap44xx_l4_abe__mcbsp1
,
4795 &omap44xx_l4_abe__mcbsp2
,
4796 &omap44xx_l4_abe__mcbsp3
,
4797 &omap44xx_l4_per__mcbsp4
,
4798 &omap44xx_l4_abe__mcpdm
,
4799 &omap44xx_l4_per__mcspi1
,
4800 &omap44xx_l4_per__mcspi2
,
4801 &omap44xx_l4_per__mcspi3
,
4802 &omap44xx_l4_per__mcspi4
,
4803 &omap44xx_l4_per__mmc1
,
4804 &omap44xx_l4_per__mmc2
,
4805 &omap44xx_l4_per__mmc3
,
4806 &omap44xx_l4_per__mmc4
,
4807 &omap44xx_l4_per__mmc5
,
4808 &omap44xx_l3_main_2__mmu_ipu
,
4809 &omap44xx_l4_cfg__mmu_dsp
,
4810 &omap44xx_l3_main_2__ocmc_ram
,
4811 &omap44xx_l4_cfg__ocp2scp_usb_phy
,
4812 &omap44xx_mpu_private__prcm_mpu
,
4813 &omap44xx_l4_wkup__cm_core_aon
,
4814 &omap44xx_l4_cfg__cm_core
,
4815 &omap44xx_l4_wkup__prm
,
4816 &omap44xx_l4_wkup__scrm
,
4817 /* &omap44xx_l3_main_2__sl2if, */
4818 &omap44xx_l4_abe__slimbus1
,
4819 &omap44xx_l4_abe__slimbus1_dma
,
4820 &omap44xx_l4_per__slimbus2
,
4821 &omap44xx_l4_cfg__smartreflex_core
,
4822 &omap44xx_l4_cfg__smartreflex_iva
,
4823 &omap44xx_l4_cfg__smartreflex_mpu
,
4824 &omap44xx_l4_cfg__spinlock
,
4825 &omap44xx_l4_wkup__timer1
,
4826 &omap44xx_l4_per__timer2
,
4827 &omap44xx_l4_per__timer3
,
4828 &omap44xx_l4_per__timer4
,
4829 &omap44xx_l4_abe__timer5
,
4830 &omap44xx_l4_abe__timer6
,
4831 &omap44xx_l4_abe__timer7
,
4832 &omap44xx_l4_abe__timer8
,
4833 &omap44xx_l4_per__timer9
,
4834 &omap44xx_l4_per__timer10
,
4835 &omap44xx_l4_per__timer11
,
4836 &omap44xx_l4_per__uart1
,
4837 &omap44xx_l4_per__uart2
,
4838 &omap44xx_l4_per__uart3
,
4839 &omap44xx_l4_per__uart4
,
4840 /* &omap44xx_l4_cfg__usb_host_fs, */
4841 &omap44xx_l4_cfg__usb_host_hs
,
4842 &omap44xx_l4_cfg__usb_otg_hs
,
4843 &omap44xx_l4_cfg__usb_tll_hs
,
4844 &omap44xx_l4_wkup__wd_timer2
,
4845 &omap44xx_l4_abe__wd_timer3
,
4846 &omap44xx_l4_abe__wd_timer3_dma
,
4847 &omap44xx_mpu__emif1
,
4848 &omap44xx_mpu__emif2
,
4852 int __init
omap44xx_hwmod_init(void)
4855 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs
);