1 // SPDX-License-Identifier: GPL-2.0-only
3 * Hardware modules present on the OMAP44xx chips
5 * Copyright (C) 2009-2012 Texas Instruments, Inc.
6 * Copyright (C) 2009-2010 Nokia Corporation
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 * Note that this file is currently not in sync with autogeneration scripts.
17 * The above note to be removed, once it is synced up.
21 #include <linux/power/smartreflex.h>
23 #include <linux/omap-dma.h>
25 #include "omap_hwmod.h"
26 #include "omap_hwmod_common_data.h"
30 #include "prm-regbits-44xx.h"
32 /* Base offset for all OMAP4 interrupts external to MPUSS */
33 #define OMAP44XX_IRQ_GIC_START 32
35 /* Base offset for all OMAP4 dma requests */
36 #define OMAP44XX_DMA_REQ_START 1
46 static struct omap_hwmod_class omap44xx_dmm_hwmod_class
= {
51 static struct omap_hwmod omap44xx_dmm_hwmod
= {
53 .class = &omap44xx_dmm_hwmod_class
,
54 .clkdm_name
= "l3_emif_clkdm",
57 .clkctrl_offs
= OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET
,
58 .context_offs
= OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET
,
65 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
67 static struct omap_hwmod_class omap44xx_l3_hwmod_class
= {
72 static struct omap_hwmod omap44xx_l3_instr_hwmod
= {
74 .class = &omap44xx_l3_hwmod_class
,
75 .clkdm_name
= "l3_instr_clkdm",
78 .clkctrl_offs
= OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET
,
79 .context_offs
= OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET
,
80 .modulemode
= MODULEMODE_HWCTRL
,
86 static struct omap_hwmod omap44xx_l3_main_1_hwmod
= {
88 .class = &omap44xx_l3_hwmod_class
,
89 .clkdm_name
= "l3_1_clkdm",
92 .clkctrl_offs
= OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET
,
93 .context_offs
= OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET
,
99 static struct omap_hwmod omap44xx_l3_main_2_hwmod
= {
101 .class = &omap44xx_l3_hwmod_class
,
102 .clkdm_name
= "l3_2_clkdm",
105 .clkctrl_offs
= OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET
,
106 .context_offs
= OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET
,
112 static struct omap_hwmod omap44xx_l3_main_3_hwmod
= {
114 .class = &omap44xx_l3_hwmod_class
,
115 .clkdm_name
= "l3_instr_clkdm",
118 .clkctrl_offs
= OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET
,
119 .context_offs
= OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET
,
120 .modulemode
= MODULEMODE_HWCTRL
,
127 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
129 static struct omap_hwmod_class omap44xx_l4_hwmod_class
= {
134 static struct omap_hwmod omap44xx_l4_abe_hwmod
= {
136 .class = &omap44xx_l4_hwmod_class
,
137 .clkdm_name
= "abe_clkdm",
140 .clkctrl_offs
= OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET
,
141 .context_offs
= OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
142 .lostcontext_mask
= OMAP4430_LOSTMEM_AESSMEM_MASK
,
143 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
149 static struct omap_hwmod omap44xx_l4_cfg_hwmod
= {
151 .class = &omap44xx_l4_hwmod_class
,
152 .clkdm_name
= "l4_cfg_clkdm",
155 .clkctrl_offs
= OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET
,
156 .context_offs
= OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET
,
162 static struct omap_hwmod omap44xx_l4_per_hwmod
= {
164 .class = &omap44xx_l4_hwmod_class
,
165 .clkdm_name
= "l4_per_clkdm",
168 .clkctrl_offs
= OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET
,
169 .context_offs
= OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET
,
175 static struct omap_hwmod omap44xx_l4_wkup_hwmod
= {
177 .class = &omap44xx_l4_hwmod_class
,
178 .clkdm_name
= "l4_wkup_clkdm",
181 .clkctrl_offs
= OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET
,
182 .context_offs
= OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET
,
189 * instance(s): mpu_private
191 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class
= {
196 static struct omap_hwmod omap44xx_mpu_private_hwmod
= {
197 .name
= "mpu_private",
198 .class = &omap44xx_mpu_bus_hwmod_class
,
199 .clkdm_name
= "mpuss_clkdm",
202 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
209 * instance(s): ocp_wp_noc
211 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class
= {
212 .name
= "ocp_wp_noc",
216 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod
= {
217 .name
= "ocp_wp_noc",
218 .class = &omap44xx_ocp_wp_noc_hwmod_class
,
219 .clkdm_name
= "l3_instr_clkdm",
222 .clkctrl_offs
= OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET
,
223 .context_offs
= OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET
,
224 .modulemode
= MODULEMODE_HWCTRL
,
230 * Modules omap_hwmod structures
232 * The following IPs are excluded for the moment because:
233 * - They do not need an explicit SW control using omap_hwmod API.
234 * - They still need to be validated with the driver
235 * properly adapted to omap_hwmod / omap_device
242 * audio engine sub system
245 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc
= {
248 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
249 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
250 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
|
251 MSTANDBY_SMART_WKUP
),
252 .sysc_fields
= &omap_hwmod_sysc_type2
,
255 static struct omap_hwmod_class omap44xx_aess_hwmod_class
= {
257 .sysc
= &omap44xx_aess_sysc
,
258 .enable_preprogram
= omap_hwmod_aess_preprogram
,
262 static struct omap_hwmod omap44xx_aess_hwmod
= {
264 .class = &omap44xx_aess_hwmod_class
,
265 .clkdm_name
= "abe_clkdm",
266 .main_clk
= "aess_fclk",
269 .clkctrl_offs
= OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET
,
270 .context_offs
= OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
271 .lostcontext_mask
= OMAP4430_LOSTCONTEXT_DFF_MASK
,
272 .modulemode
= MODULEMODE_SWCTRL
,
279 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
282 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc
= {
285 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
286 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
287 .sysc_fields
= &omap_hwmod_sysc_type1
,
290 static struct omap_hwmod_class omap44xx_counter_hwmod_class
= {
292 .sysc
= &omap44xx_counter_sysc
,
296 static struct omap_hwmod omap44xx_counter_32k_hwmod
= {
297 .name
= "counter_32k",
298 .class = &omap44xx_counter_hwmod_class
,
299 .clkdm_name
= "l4_wkup_clkdm",
300 .flags
= HWMOD_SWSUP_SIDLE
,
301 .main_clk
= "sys_32k_ck",
304 .clkctrl_offs
= OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET
,
305 .context_offs
= OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET
,
311 * 'ctrl_module' class
312 * attila core control module + core pad control module + wkup pad control
313 * module + attila wkup control module
316 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc
= {
319 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
320 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
322 .sysc_fields
= &omap_hwmod_sysc_type2
,
325 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class
= {
326 .name
= "ctrl_module",
327 .sysc
= &omap44xx_ctrl_module_sysc
,
330 /* ctrl_module_core */
331 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod
= {
332 .name
= "ctrl_module_core",
333 .class = &omap44xx_ctrl_module_hwmod_class
,
334 .clkdm_name
= "l4_cfg_clkdm",
337 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
342 /* ctrl_module_pad_core */
343 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod
= {
344 .name
= "ctrl_module_pad_core",
345 .class = &omap44xx_ctrl_module_hwmod_class
,
346 .clkdm_name
= "l4_cfg_clkdm",
349 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
354 /* ctrl_module_wkup */
355 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod
= {
356 .name
= "ctrl_module_wkup",
357 .class = &omap44xx_ctrl_module_hwmod_class
,
358 .clkdm_name
= "l4_wkup_clkdm",
361 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
366 /* ctrl_module_pad_wkup */
367 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod
= {
368 .name
= "ctrl_module_pad_wkup",
369 .class = &omap44xx_ctrl_module_hwmod_class
,
370 .clkdm_name
= "l4_wkup_clkdm",
373 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
380 * debug and emulation sub system
383 static struct omap_hwmod_class omap44xx_debugss_hwmod_class
= {
388 static struct omap_hwmod omap44xx_debugss_hwmod
= {
390 .class = &omap44xx_debugss_hwmod_class
,
391 .clkdm_name
= "emu_sys_clkdm",
392 .main_clk
= "trace_clk_div_ck",
395 .clkctrl_offs
= OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET
,
396 .context_offs
= OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET
,
403 * dma controller for data exchange between memory to memory (i.e. internal or
404 * external memory) and gp peripherals to memory or memory to gp peripherals
407 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc
= {
411 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
412 SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
413 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
414 SYSS_HAS_RESET_STATUS
),
415 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
416 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
417 .sysc_fields
= &omap_hwmod_sysc_type1
,
420 static struct omap_hwmod_class omap44xx_dma_hwmod_class
= {
422 .sysc
= &omap44xx_dma_sysc
,
426 static struct omap_dma_dev_attr dma_dev_attr
= {
427 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
428 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
433 static struct omap_hwmod omap44xx_dma_system_hwmod
= {
434 .name
= "dma_system",
435 .class = &omap44xx_dma_hwmod_class
,
436 .clkdm_name
= "l3_dma_clkdm",
437 .main_clk
= "l3_div_ck",
440 .clkctrl_offs
= OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET
,
441 .context_offs
= OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET
,
444 .dev_attr
= &dma_dev_attr
,
449 * digital microphone controller
452 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc
= {
455 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
456 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
457 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
459 .sysc_fields
= &omap_hwmod_sysc_type2
,
462 static struct omap_hwmod_class omap44xx_dmic_hwmod_class
= {
464 .sysc
= &omap44xx_dmic_sysc
,
468 static struct omap_hwmod omap44xx_dmic_hwmod
= {
470 .class = &omap44xx_dmic_hwmod_class
,
471 .clkdm_name
= "abe_clkdm",
472 .main_clk
= "func_dmic_abe_gfclk",
475 .clkctrl_offs
= OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET
,
476 .context_offs
= OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET
,
477 .modulemode
= MODULEMODE_SWCTRL
,
487 static struct omap_hwmod_class omap44xx_dsp_hwmod_class
= {
492 static struct omap_hwmod_rst_info omap44xx_dsp_resets
[] = {
493 { .name
= "dsp", .rst_shift
= 0 },
496 static struct omap_hwmod omap44xx_dsp_hwmod
= {
498 .class = &omap44xx_dsp_hwmod_class
,
499 .clkdm_name
= "tesla_clkdm",
500 .rst_lines
= omap44xx_dsp_resets
,
501 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_dsp_resets
),
502 .main_clk
= "dpll_iva_m4x2_ck",
505 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
506 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
507 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
508 .modulemode
= MODULEMODE_HWCTRL
,
518 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc
= {
521 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
524 static struct omap_hwmod_class omap44xx_dss_hwmod_class
= {
526 .sysc
= &omap44xx_dss_sysc
,
527 .reset
= omap_dss_reset
,
531 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
532 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
533 { .role
= "tv_clk", .clk
= "dss_tv_clk" },
534 { .role
= "hdmi_clk", .clk
= "dss_48mhz_clk" },
537 static struct omap_hwmod omap44xx_dss_hwmod
= {
539 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
540 .class = &omap44xx_dss_hwmod_class
,
541 .clkdm_name
= "l3_dss_clkdm",
542 .main_clk
= "dss_dss_clk",
545 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
546 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
547 .modulemode
= MODULEMODE_SWCTRL
,
550 .opt_clks
= dss_opt_clks
,
551 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
559 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc
= {
563 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
564 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_MIDLEMODE
|
565 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
566 SYSS_HAS_RESET_STATUS
),
567 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
568 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
569 .sysc_fields
= &omap_hwmod_sysc_type1
,
572 static struct omap_hwmod_class omap44xx_dispc_hwmod_class
= {
574 .sysc
= &omap44xx_dispc_sysc
,
578 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr
= {
580 .has_framedonetv_irq
= 1
583 static struct omap_hwmod omap44xx_dss_dispc_hwmod
= {
585 .class = &omap44xx_dispc_hwmod_class
,
586 .clkdm_name
= "l3_dss_clkdm",
587 .main_clk
= "dss_dss_clk",
590 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
591 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
594 .dev_attr
= &omap44xx_dss_dispc_dev_attr
,
595 .parent_hwmod
= &omap44xx_dss_hwmod
,
600 * display serial interface controller
603 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc
= {
607 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
608 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
609 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
610 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
611 .sysc_fields
= &omap_hwmod_sysc_type1
,
614 static struct omap_hwmod_class omap44xx_dsi_hwmod_class
= {
616 .sysc
= &omap44xx_dsi_sysc
,
620 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
621 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
624 static struct omap_hwmod omap44xx_dss_dsi1_hwmod
= {
626 .class = &omap44xx_dsi_hwmod_class
,
627 .clkdm_name
= "l3_dss_clkdm",
628 .main_clk
= "dss_dss_clk",
631 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
632 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
635 .opt_clks
= dss_dsi1_opt_clks
,
636 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
637 .parent_hwmod
= &omap44xx_dss_hwmod
,
641 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks
[] = {
642 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
645 static struct omap_hwmod omap44xx_dss_dsi2_hwmod
= {
647 .class = &omap44xx_dsi_hwmod_class
,
648 .clkdm_name
= "l3_dss_clkdm",
649 .main_clk
= "dss_dss_clk",
652 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
653 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
656 .opt_clks
= dss_dsi2_opt_clks
,
657 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi2_opt_clks
),
658 .parent_hwmod
= &omap44xx_dss_hwmod
,
666 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc
= {
669 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
671 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
673 .sysc_fields
= &omap_hwmod_sysc_type2
,
676 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class
= {
678 .sysc
= &omap44xx_hdmi_sysc
,
682 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks
[] = {
683 { .role
= "sys_clk", .clk
= "dss_sys_clk" },
684 { .role
= "hdmi_clk", .clk
= "dss_48mhz_clk" },
687 static struct omap_hwmod omap44xx_dss_hdmi_hwmod
= {
689 .class = &omap44xx_hdmi_hwmod_class
,
690 .clkdm_name
= "l3_dss_clkdm",
692 * HDMI audio requires to use no-idle mode. Hence,
693 * set idle mode by software.
695 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_OPT_CLKS_NEEDED
,
696 .main_clk
= "dss_48mhz_clk",
699 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
700 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
703 .opt_clks
= dss_hdmi_opt_clks
,
704 .opt_clks_cnt
= ARRAY_SIZE(dss_hdmi_opt_clks
),
705 .parent_hwmod
= &omap44xx_dss_hwmod
,
710 * remote frame buffer interface
713 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc
= {
717 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
718 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
719 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
720 .sysc_fields
= &omap_hwmod_sysc_type1
,
723 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class
= {
725 .sysc
= &omap44xx_rfbi_sysc
,
729 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
730 { .role
= "ick", .clk
= "l3_div_ck" },
733 static struct omap_hwmod omap44xx_dss_rfbi_hwmod
= {
735 .class = &omap44xx_rfbi_hwmod_class
,
736 .clkdm_name
= "l3_dss_clkdm",
737 .main_clk
= "dss_dss_clk",
740 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
741 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
744 .opt_clks
= dss_rfbi_opt_clks
,
745 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
746 .parent_hwmod
= &omap44xx_dss_hwmod
,
754 static struct omap_hwmod_class omap44xx_venc_hwmod_class
= {
759 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
760 { .role
= "tv_clk", .clk
= "dss_tv_clk" },
763 static struct omap_hwmod omap44xx_dss_venc_hwmod
= {
765 .class = &omap44xx_venc_hwmod_class
,
766 .clkdm_name
= "l3_dss_clkdm",
767 .main_clk
= "dss_tv_clk",
768 .flags
= HWMOD_OPT_CLKS_NEEDED
,
771 .clkctrl_offs
= OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET
,
772 .context_offs
= OMAP4_RM_DSS_DSS_CONTEXT_OFFSET
,
775 .parent_hwmod
= &omap44xx_dss_hwmod
,
776 .opt_clks
= dss_venc_opt_clks
,
777 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
780 /* sha0 HIB2 (the 'P' (public) device) */
781 static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc
= {
785 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
788 static struct omap_hwmod_class omap44xx_sha0_hwmod_class
= {
790 .sysc
= &omap44xx_sha0_sysc
,
793 static struct omap_hwmod omap44xx_sha0_hwmod
= {
795 .class = &omap44xx_sha0_hwmod_class
,
796 .clkdm_name
= "l4_secure_clkdm",
797 .main_clk
= "l3_div_ck",
800 .clkctrl_offs
= OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET
,
801 .context_offs
= OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET
,
802 .modulemode
= MODULEMODE_SWCTRL
,
809 * bch error location module
812 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc
= {
816 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
817 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
818 SYSS_HAS_RESET_STATUS
),
819 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
820 .sysc_fields
= &omap_hwmod_sysc_type1
,
823 static struct omap_hwmod_class omap44xx_elm_hwmod_class
= {
825 .sysc
= &omap44xx_elm_sysc
,
829 static struct omap_hwmod omap44xx_elm_hwmod
= {
831 .class = &omap44xx_elm_hwmod_class
,
832 .clkdm_name
= "l4_per_clkdm",
835 .clkctrl_offs
= OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET
,
836 .context_offs
= OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET
,
843 * external memory interface no1
846 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc
= {
850 static struct omap_hwmod_class omap44xx_emif_hwmod_class
= {
852 .sysc
= &omap44xx_emif_sysc
,
856 static struct omap_hwmod omap44xx_emif1_hwmod
= {
858 .class = &omap44xx_emif_hwmod_class
,
859 .clkdm_name
= "l3_emif_clkdm",
860 .flags
= HWMOD_INIT_NO_IDLE
,
861 .main_clk
= "ddrphy_ck",
864 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET
,
865 .context_offs
= OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET
,
866 .modulemode
= MODULEMODE_HWCTRL
,
872 static struct omap_hwmod omap44xx_emif2_hwmod
= {
874 .class = &omap44xx_emif_hwmod_class
,
875 .clkdm_name
= "l3_emif_clkdm",
876 .flags
= HWMOD_INIT_NO_IDLE
,
877 .main_clk
= "ddrphy_ck",
880 .clkctrl_offs
= OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET
,
881 .context_offs
= OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET
,
882 .modulemode
= MODULEMODE_HWCTRL
,
888 Crypto modules AES0/1 belong to:
889 PD_L4_PER power domain
890 CD_L4_SEC clock domain
891 On the L3, the AES modules are mapped to
892 L3_CLK2: Peripherals and multimedia sub clock domain
894 static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc
= {
898 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
901 static struct omap_hwmod_class omap44xx_aes_hwmod_class
= {
903 .sysc
= &omap44xx_aes_sysc
,
906 static struct omap_hwmod omap44xx_aes1_hwmod
= {
908 .class = &omap44xx_aes_hwmod_class
,
909 .clkdm_name
= "l4_secure_clkdm",
910 .main_clk
= "l3_div_ck",
913 .context_offs
= OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET
,
914 .clkctrl_offs
= OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET
,
915 .modulemode
= MODULEMODE_SWCTRL
,
920 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1
= {
921 .master
= &omap44xx_l4_per_hwmod
,
922 .slave
= &omap44xx_aes1_hwmod
,
924 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
927 static struct omap_hwmod omap44xx_aes2_hwmod
= {
929 .class = &omap44xx_aes_hwmod_class
,
930 .clkdm_name
= "l4_secure_clkdm",
931 .main_clk
= "l3_div_ck",
934 .context_offs
= OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET
,
935 .clkctrl_offs
= OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET
,
936 .modulemode
= MODULEMODE_SWCTRL
,
941 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2
= {
942 .master
= &omap44xx_l4_per_hwmod
,
943 .slave
= &omap44xx_aes2_hwmod
,
945 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
949 * 'des' class for DES3DES module
951 static struct omap_hwmod_class_sysconfig omap44xx_des_sysc
= {
955 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
958 static struct omap_hwmod_class omap44xx_des_hwmod_class
= {
960 .sysc
= &omap44xx_des_sysc
,
963 static struct omap_hwmod omap44xx_des_hwmod
= {
965 .class = &omap44xx_des_hwmod_class
,
966 .clkdm_name
= "l4_secure_clkdm",
967 .main_clk
= "l3_div_ck",
970 .context_offs
= OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET
,
971 .clkctrl_offs
= OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET
,
972 .modulemode
= MODULEMODE_SWCTRL
,
977 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__des
= {
978 .master
= &omap44xx_l3_main_2_hwmod
,
979 .slave
= &omap44xx_des_hwmod
,
981 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
986 * face detection hw accelerator module
989 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc
= {
993 * FDIF needs 100 OCP clk cycles delay after a softreset before
994 * accessing sysconfig again.
995 * The lowest frequency at the moment for L3 bus is 100 MHz, so
996 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
998 * TODO: Indicate errata when available.
1001 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1002 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1003 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1004 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1005 .sysc_fields
= &omap_hwmod_sysc_type2
,
1008 static struct omap_hwmod_class omap44xx_fdif_hwmod_class
= {
1010 .sysc
= &omap44xx_fdif_sysc
,
1014 static struct omap_hwmod omap44xx_fdif_hwmod
= {
1016 .class = &omap44xx_fdif_hwmod_class
,
1017 .clkdm_name
= "iss_clkdm",
1018 .main_clk
= "fdif_fck",
1021 .clkctrl_offs
= OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET
,
1022 .context_offs
= OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET
,
1023 .modulemode
= MODULEMODE_SWCTRL
,
1030 * general purpose memory controller
1033 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc
= {
1035 .sysc_offs
= 0x0010,
1036 .syss_offs
= 0x0014,
1037 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1038 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1039 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1040 .sysc_fields
= &omap_hwmod_sysc_type1
,
1043 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class
= {
1045 .sysc
= &omap44xx_gpmc_sysc
,
1049 static struct omap_hwmod omap44xx_gpmc_hwmod
= {
1051 .class = &omap44xx_gpmc_hwmod_class
,
1052 .clkdm_name
= "l3_2_clkdm",
1053 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1054 .flags
= DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
1057 .clkctrl_offs
= OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET
,
1058 .context_offs
= OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET
,
1059 .modulemode
= MODULEMODE_HWCTRL
,
1067 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1071 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc
= {
1073 .sysc_offs
= 0x0010,
1074 .syss_offs
= 0x0014,
1075 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_EMUFREE
|
1076 SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
1077 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1078 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1079 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1080 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1081 .sysc_fields
= &omap_hwmod_sysc_type1
,
1084 static struct omap_hwmod_class omap44xx_hsi_hwmod_class
= {
1086 .sysc
= &omap44xx_hsi_sysc
,
1090 static struct omap_hwmod omap44xx_hsi_hwmod
= {
1092 .class = &omap44xx_hsi_hwmod_class
,
1093 .clkdm_name
= "l3_init_clkdm",
1094 .main_clk
= "hsi_fck",
1097 .clkctrl_offs
= OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET
,
1098 .context_offs
= OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET
,
1099 .modulemode
= MODULEMODE_HWCTRL
,
1106 * imaging processor unit
1109 static struct omap_hwmod_class omap44xx_ipu_hwmod_class
= {
1114 static struct omap_hwmod_rst_info omap44xx_ipu_resets
[] = {
1115 { .name
= "cpu0", .rst_shift
= 0 },
1116 { .name
= "cpu1", .rst_shift
= 1 },
1119 static struct omap_hwmod omap44xx_ipu_hwmod
= {
1121 .class = &omap44xx_ipu_hwmod_class
,
1122 .clkdm_name
= "ducati_clkdm",
1123 .rst_lines
= omap44xx_ipu_resets
,
1124 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_ipu_resets
),
1125 .main_clk
= "ducati_clk_mux_ck",
1128 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
1129 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
1130 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
1131 .modulemode
= MODULEMODE_HWCTRL
,
1138 * external images sensor pixel data processor
1141 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc
= {
1143 .sysc_offs
= 0x0010,
1145 * ISS needs 100 OCP clk cycles delay after a softreset before
1146 * accessing sysconfig again.
1147 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1148 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1150 * TODO: Indicate errata when available.
1153 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1154 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1155 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1156 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1157 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1158 .sysc_fields
= &omap_hwmod_sysc_type2
,
1161 static struct omap_hwmod_class omap44xx_iss_hwmod_class
= {
1163 .sysc
= &omap44xx_iss_sysc
,
1167 static struct omap_hwmod_opt_clk iss_opt_clks
[] = {
1168 { .role
= "ctrlclk", .clk
= "iss_ctrlclk" },
1171 static struct omap_hwmod omap44xx_iss_hwmod
= {
1173 .class = &omap44xx_iss_hwmod_class
,
1174 .clkdm_name
= "iss_clkdm",
1175 .main_clk
= "ducati_clk_mux_ck",
1178 .clkctrl_offs
= OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET
,
1179 .context_offs
= OMAP4_RM_CAM_ISS_CONTEXT_OFFSET
,
1180 .modulemode
= MODULEMODE_SWCTRL
,
1183 .opt_clks
= iss_opt_clks
,
1184 .opt_clks_cnt
= ARRAY_SIZE(iss_opt_clks
),
1189 * multi-standard video encoder/decoder hardware accelerator
1192 static struct omap_hwmod_class omap44xx_iva_hwmod_class
= {
1197 static struct omap_hwmod_rst_info omap44xx_iva_resets
[] = {
1198 { .name
= "seq0", .rst_shift
= 0 },
1199 { .name
= "seq1", .rst_shift
= 1 },
1200 { .name
= "logic", .rst_shift
= 2 },
1203 static struct omap_hwmod omap44xx_iva_hwmod
= {
1205 .class = &omap44xx_iva_hwmod_class
,
1206 .clkdm_name
= "ivahd_clkdm",
1207 .rst_lines
= omap44xx_iva_resets
,
1208 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_iva_resets
),
1209 .main_clk
= "dpll_iva_m5x2_ck",
1212 .clkctrl_offs
= OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET
,
1213 .rstctrl_offs
= OMAP4_RM_IVAHD_RSTCTRL_OFFSET
,
1214 .context_offs
= OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET
,
1215 .modulemode
= MODULEMODE_HWCTRL
,
1222 * keyboard controller
1225 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc
= {
1227 .sysc_offs
= 0x0010,
1228 .syss_offs
= 0x0014,
1229 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1230 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
1231 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1232 SYSS_HAS_RESET_STATUS
),
1233 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1234 .sysc_fields
= &omap_hwmod_sysc_type1
,
1237 static struct omap_hwmod_class omap44xx_kbd_hwmod_class
= {
1239 .sysc
= &omap44xx_kbd_sysc
,
1243 static struct omap_hwmod omap44xx_kbd_hwmod
= {
1245 .class = &omap44xx_kbd_hwmod_class
,
1246 .clkdm_name
= "l4_wkup_clkdm",
1247 .main_clk
= "sys_32k_ck",
1250 .clkctrl_offs
= OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET
,
1251 .context_offs
= OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET
,
1252 .modulemode
= MODULEMODE_SWCTRL
,
1260 * multi channel pdm controller (proprietary interface with phoenix power
1264 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc
= {
1266 .sysc_offs
= 0x0010,
1267 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1268 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1269 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1271 .sysc_fields
= &omap_hwmod_sysc_type2
,
1274 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class
= {
1276 .sysc
= &omap44xx_mcpdm_sysc
,
1280 static struct omap_hwmod omap44xx_mcpdm_hwmod
= {
1282 .class = &omap44xx_mcpdm_hwmod_class
,
1283 .clkdm_name
= "abe_clkdm",
1285 * It's suspected that the McPDM requires an off-chip main
1286 * functional clock, controlled via I2C. This IP block is
1287 * currently reset very early during boot, before I2C is
1288 * available, so it doesn't seem that we have any choice in
1289 * the kernel other than to avoid resetting it.
1291 * Also, McPDM needs to be configured to NO_IDLE mode when it
1292 * is in used otherwise vital clocks will be gated which
1293 * results 'slow motion' audio playback.
1295 .flags
= HWMOD_EXT_OPT_MAIN_CLK
| HWMOD_SWSUP_SIDLE
,
1296 .main_clk
= "pad_clks_ck",
1299 .clkctrl_offs
= OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET
,
1300 .context_offs
= OMAP4_RM_ABE_PDM_CONTEXT_OFFSET
,
1301 .modulemode
= MODULEMODE_SWCTRL
,
1308 * The memory management unit performs virtual to physical address translation
1309 * for its requestors.
1312 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
1316 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1317 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1318 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1319 .sysc_fields
= &omap_hwmod_sysc_type1
,
1322 static struct omap_hwmod_class omap44xx_mmu_hwmod_class
= {
1329 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
;
1330 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets
[] = {
1331 { .name
= "mmu_cache", .rst_shift
= 2 },
1334 /* l3_main_2 -> mmu_ipu */
1335 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu
= {
1336 .master
= &omap44xx_l3_main_2_hwmod
,
1337 .slave
= &omap44xx_mmu_ipu_hwmod
,
1339 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1342 static struct omap_hwmod omap44xx_mmu_ipu_hwmod
= {
1344 .class = &omap44xx_mmu_hwmod_class
,
1345 .clkdm_name
= "ducati_clkdm",
1346 .rst_lines
= omap44xx_mmu_ipu_resets
,
1347 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_ipu_resets
),
1348 .main_clk
= "ducati_clk_mux_ck",
1351 .clkctrl_offs
= OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET
,
1352 .rstctrl_offs
= OMAP4_RM_DUCATI_RSTCTRL_OFFSET
,
1353 .context_offs
= OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET
,
1354 .modulemode
= MODULEMODE_HWCTRL
,
1361 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
;
1362 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets
[] = {
1363 { .name
= "mmu_cache", .rst_shift
= 1 },
1367 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp
= {
1368 .master
= &omap44xx_l4_cfg_hwmod
,
1369 .slave
= &omap44xx_mmu_dsp_hwmod
,
1371 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1374 static struct omap_hwmod omap44xx_mmu_dsp_hwmod
= {
1376 .class = &omap44xx_mmu_hwmod_class
,
1377 .clkdm_name
= "tesla_clkdm",
1378 .rst_lines
= omap44xx_mmu_dsp_resets
,
1379 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_mmu_dsp_resets
),
1380 .main_clk
= "dpll_iva_m4x2_ck",
1383 .clkctrl_offs
= OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET
,
1384 .rstctrl_offs
= OMAP4_RM_TESLA_RSTCTRL_OFFSET
,
1385 .context_offs
= OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET
,
1386 .modulemode
= MODULEMODE_HWCTRL
,
1396 static struct omap_hwmod_class omap44xx_mpu_hwmod_class
= {
1401 static struct omap_hwmod omap44xx_mpu_hwmod
= {
1403 .class = &omap44xx_mpu_hwmod_class
,
1404 .clkdm_name
= "mpuss_clkdm",
1405 .flags
= HWMOD_INIT_NO_IDLE
,
1406 .main_clk
= "dpll_mpu_m2_ck",
1409 .clkctrl_offs
= OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET
,
1410 .context_offs
= OMAP4_RM_MPU_MPU_CONTEXT_OFFSET
,
1417 * top-level core on-chip ram
1420 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class
= {
1425 static struct omap_hwmod omap44xx_ocmc_ram_hwmod
= {
1427 .class = &omap44xx_ocmc_ram_hwmod_class
,
1428 .clkdm_name
= "l3_2_clkdm",
1431 .clkctrl_offs
= OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET
,
1432 .context_offs
= OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET
,
1439 * bridge to transform ocp interface protocol to scp (serial control port)
1443 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc
= {
1445 .sysc_offs
= 0x0010,
1446 .syss_offs
= 0x0014,
1447 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1448 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1449 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1450 .sysc_fields
= &omap_hwmod_sysc_type1
,
1453 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class
= {
1455 .sysc
= &omap44xx_ocp2scp_sysc
,
1458 /* ocp2scp_usb_phy */
1459 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod
= {
1460 .name
= "ocp2scp_usb_phy",
1461 .class = &omap44xx_ocp2scp_hwmod_class
,
1462 .clkdm_name
= "l3_init_clkdm",
1464 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
1465 * block as an "optional clock," and normally should never be
1466 * specified as the main_clk for an OMAP IP block. However it
1467 * turns out that this clock is actually the main clock for
1468 * the ocp2scp_usb_phy IP block:
1469 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
1470 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
1471 * to be the best workaround.
1473 .main_clk
= "ocp2scp_usb_phy_phy_48m",
1476 .clkctrl_offs
= OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET
,
1477 .context_offs
= OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET
,
1478 .modulemode
= MODULEMODE_HWCTRL
,
1485 * power and reset manager (part of the prcm infrastructure) + clock manager 2
1486 * + clock manager 1 (in always on power domain) + local prm in mpu
1489 static struct omap_hwmod_class omap44xx_prcm_hwmod_class
= {
1494 static struct omap_hwmod omap44xx_prcm_mpu_hwmod
= {
1496 .class = &omap44xx_prcm_hwmod_class
,
1497 .clkdm_name
= "l4_wkup_clkdm",
1498 .flags
= HWMOD_NO_IDLEST
,
1501 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
1507 static struct omap_hwmod omap44xx_cm_core_aon_hwmod
= {
1508 .name
= "cm_core_aon",
1509 .class = &omap44xx_prcm_hwmod_class
,
1510 .flags
= HWMOD_NO_IDLEST
,
1513 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
1519 static struct omap_hwmod omap44xx_cm_core_hwmod
= {
1521 .class = &omap44xx_prcm_hwmod_class
,
1522 .flags
= HWMOD_NO_IDLEST
,
1525 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
1531 static struct omap_hwmod_rst_info omap44xx_prm_resets
[] = {
1532 { .name
= "rst_global_warm_sw", .rst_shift
= 0 },
1533 { .name
= "rst_global_cold_sw", .rst_shift
= 1 },
1536 static struct omap_hwmod omap44xx_prm_hwmod
= {
1538 .class = &omap44xx_prcm_hwmod_class
,
1539 .rst_lines
= omap44xx_prm_resets
,
1540 .rst_lines_cnt
= ARRAY_SIZE(omap44xx_prm_resets
),
1545 * system clock and reset manager
1548 static struct omap_hwmod_class omap44xx_scrm_hwmod_class
= {
1553 static struct omap_hwmod omap44xx_scrm_hwmod
= {
1555 .class = &omap44xx_scrm_hwmod_class
,
1556 .clkdm_name
= "l4_wkup_clkdm",
1559 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
1566 * shared level 2 memory interface
1569 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class
= {
1574 static struct omap_hwmod omap44xx_sl2if_hwmod
= {
1576 .class = &omap44xx_sl2if_hwmod_class
,
1577 .clkdm_name
= "ivahd_clkdm",
1580 .clkctrl_offs
= OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET
,
1581 .context_offs
= OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET
,
1582 .modulemode
= MODULEMODE_HWCTRL
,
1589 * bidirectional, multi-drop, multi-channel two-line serial interface between
1590 * the device and external components
1593 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc
= {
1595 .sysc_offs
= 0x0010,
1596 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1597 SYSC_HAS_SOFTRESET
),
1598 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1600 .sysc_fields
= &omap_hwmod_sysc_type2
,
1603 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class
= {
1605 .sysc
= &omap44xx_slimbus_sysc
,
1609 static struct omap_hwmod_opt_clk slimbus1_opt_clks
[] = {
1610 { .role
= "fclk_1", .clk
= "slimbus1_fclk_1" },
1611 { .role
= "fclk_0", .clk
= "slimbus1_fclk_0" },
1612 { .role
= "fclk_2", .clk
= "slimbus1_fclk_2" },
1613 { .role
= "slimbus_clk", .clk
= "slimbus1_slimbus_clk" },
1616 static struct omap_hwmod omap44xx_slimbus1_hwmod
= {
1618 .class = &omap44xx_slimbus_hwmod_class
,
1619 .clkdm_name
= "abe_clkdm",
1622 .clkctrl_offs
= OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET
,
1623 .context_offs
= OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET
,
1624 .modulemode
= MODULEMODE_SWCTRL
,
1627 .opt_clks
= slimbus1_opt_clks
,
1628 .opt_clks_cnt
= ARRAY_SIZE(slimbus1_opt_clks
),
1632 static struct omap_hwmod_opt_clk slimbus2_opt_clks
[] = {
1633 { .role
= "fclk_1", .clk
= "slimbus2_fclk_1" },
1634 { .role
= "fclk_0", .clk
= "slimbus2_fclk_0" },
1635 { .role
= "slimbus_clk", .clk
= "slimbus2_slimbus_clk" },
1638 static struct omap_hwmod omap44xx_slimbus2_hwmod
= {
1640 .class = &omap44xx_slimbus_hwmod_class
,
1641 .clkdm_name
= "l4_per_clkdm",
1644 .clkctrl_offs
= OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET
,
1645 .context_offs
= OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET
,
1646 .modulemode
= MODULEMODE_SWCTRL
,
1649 .opt_clks
= slimbus2_opt_clks
,
1650 .opt_clks_cnt
= ARRAY_SIZE(slimbus2_opt_clks
),
1654 * 'smartreflex' class
1655 * smartreflex module (monitor silicon performance and outputs a measure of
1656 * performance error)
1659 /* The IP is not compliant to type1 / type2 scheme */
1660 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc
= {
1661 .rev_offs
= -ENODEV
,
1662 .sysc_offs
= 0x0038,
1663 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
),
1664 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1666 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1669 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class
= {
1670 .name
= "smartreflex",
1671 .sysc
= &omap44xx_smartreflex_sysc
,
1674 /* smartreflex_core */
1675 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr
= {
1676 .sensor_voltdm_name
= "core",
1679 static struct omap_hwmod omap44xx_smartreflex_core_hwmod
= {
1680 .name
= "smartreflex_core",
1681 .class = &omap44xx_smartreflex_hwmod_class
,
1682 .clkdm_name
= "l4_ao_clkdm",
1684 .main_clk
= "smartreflex_core_fck",
1687 .clkctrl_offs
= OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET
,
1688 .context_offs
= OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET
,
1689 .modulemode
= MODULEMODE_SWCTRL
,
1692 .dev_attr
= &smartreflex_core_dev_attr
,
1695 /* smartreflex_iva */
1696 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr
= {
1697 .sensor_voltdm_name
= "iva",
1700 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod
= {
1701 .name
= "smartreflex_iva",
1702 .class = &omap44xx_smartreflex_hwmod_class
,
1703 .clkdm_name
= "l4_ao_clkdm",
1704 .main_clk
= "smartreflex_iva_fck",
1707 .clkctrl_offs
= OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET
,
1708 .context_offs
= OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET
,
1709 .modulemode
= MODULEMODE_SWCTRL
,
1712 .dev_attr
= &smartreflex_iva_dev_attr
,
1715 /* smartreflex_mpu */
1716 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr
= {
1717 .sensor_voltdm_name
= "mpu",
1720 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod
= {
1721 .name
= "smartreflex_mpu",
1722 .class = &omap44xx_smartreflex_hwmod_class
,
1723 .clkdm_name
= "l4_ao_clkdm",
1724 .main_clk
= "smartreflex_mpu_fck",
1727 .clkctrl_offs
= OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET
,
1728 .context_offs
= OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET
,
1729 .modulemode
= MODULEMODE_SWCTRL
,
1732 .dev_attr
= &smartreflex_mpu_dev_attr
,
1737 * spinlock provides hardware assistance for synchronizing the processes
1738 * running on multiple processors
1741 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc
= {
1743 .sysc_offs
= 0x0010,
1744 .syss_offs
= 0x0014,
1745 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1746 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1747 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1748 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1749 .sysc_fields
= &omap_hwmod_sysc_type1
,
1752 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class
= {
1754 .sysc
= &omap44xx_spinlock_sysc
,
1758 static struct omap_hwmod omap44xx_spinlock_hwmod
= {
1760 .class = &omap44xx_spinlock_hwmod_class
,
1761 .clkdm_name
= "l4_cfg_clkdm",
1764 .clkctrl_offs
= OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET
,
1765 .context_offs
= OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET
,
1772 * general purpose timer module with accurate 1ms tick
1773 * This class contains several variants: ['timer_1ms', 'timer']
1776 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc
= {
1778 .sysc_offs
= 0x0010,
1779 .syss_offs
= 0x0014,
1780 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1781 SYSC_HAS_EMUFREE
| SYSC_HAS_ENAWAKEUP
|
1782 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1783 SYSS_HAS_RESET_STATUS
),
1784 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1785 .sysc_fields
= &omap_hwmod_sysc_type1
,
1788 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class
= {
1790 .sysc
= &omap44xx_timer_1ms_sysc
,
1793 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc
= {
1795 .sysc_offs
= 0x0010,
1796 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1797 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1798 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1800 .sysc_fields
= &omap_hwmod_sysc_type2
,
1803 static struct omap_hwmod_class omap44xx_timer_hwmod_class
= {
1805 .sysc
= &omap44xx_timer_sysc
,
1809 static struct omap_hwmod omap44xx_timer1_hwmod
= {
1811 .class = &omap44xx_timer_1ms_hwmod_class
,
1812 .clkdm_name
= "l4_wkup_clkdm",
1813 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1814 .main_clk
= "dmt1_clk_mux",
1817 .clkctrl_offs
= OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET
,
1818 .context_offs
= OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET
,
1819 .modulemode
= MODULEMODE_SWCTRL
,
1825 static struct omap_hwmod omap44xx_timer2_hwmod
= {
1827 .class = &omap44xx_timer_1ms_hwmod_class
,
1828 .clkdm_name
= "l4_per_clkdm",
1829 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1830 .main_clk
= "cm2_dm2_mux",
1833 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET
,
1834 .context_offs
= OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET
,
1835 .modulemode
= MODULEMODE_SWCTRL
,
1841 static struct omap_hwmod omap44xx_timer3_hwmod
= {
1843 .class = &omap44xx_timer_hwmod_class
,
1844 .clkdm_name
= "l4_per_clkdm",
1845 .main_clk
= "cm2_dm3_mux",
1848 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET
,
1849 .context_offs
= OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET
,
1850 .modulemode
= MODULEMODE_SWCTRL
,
1856 static struct omap_hwmod omap44xx_timer4_hwmod
= {
1858 .class = &omap44xx_timer_hwmod_class
,
1859 .clkdm_name
= "l4_per_clkdm",
1860 .main_clk
= "cm2_dm4_mux",
1863 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET
,
1864 .context_offs
= OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET
,
1865 .modulemode
= MODULEMODE_SWCTRL
,
1871 static struct omap_hwmod omap44xx_timer5_hwmod
= {
1873 .class = &omap44xx_timer_hwmod_class
,
1874 .clkdm_name
= "abe_clkdm",
1875 .main_clk
= "timer5_sync_mux",
1878 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET
,
1879 .context_offs
= OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET
,
1880 .modulemode
= MODULEMODE_SWCTRL
,
1886 static struct omap_hwmod omap44xx_timer6_hwmod
= {
1888 .class = &omap44xx_timer_hwmod_class
,
1889 .clkdm_name
= "abe_clkdm",
1890 .main_clk
= "timer6_sync_mux",
1893 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET
,
1894 .context_offs
= OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET
,
1895 .modulemode
= MODULEMODE_SWCTRL
,
1901 static struct omap_hwmod omap44xx_timer7_hwmod
= {
1903 .class = &omap44xx_timer_hwmod_class
,
1904 .clkdm_name
= "abe_clkdm",
1905 .main_clk
= "timer7_sync_mux",
1908 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET
,
1909 .context_offs
= OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET
,
1910 .modulemode
= MODULEMODE_SWCTRL
,
1916 static struct omap_hwmod omap44xx_timer8_hwmod
= {
1918 .class = &omap44xx_timer_hwmod_class
,
1919 .clkdm_name
= "abe_clkdm",
1920 .main_clk
= "timer8_sync_mux",
1923 .clkctrl_offs
= OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET
,
1924 .context_offs
= OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET
,
1925 .modulemode
= MODULEMODE_SWCTRL
,
1931 static struct omap_hwmod omap44xx_timer9_hwmod
= {
1933 .class = &omap44xx_timer_hwmod_class
,
1934 .clkdm_name
= "l4_per_clkdm",
1935 .main_clk
= "cm2_dm9_mux",
1938 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET
,
1939 .context_offs
= OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET
,
1940 .modulemode
= MODULEMODE_SWCTRL
,
1946 static struct omap_hwmod omap44xx_timer10_hwmod
= {
1948 .class = &omap44xx_timer_1ms_hwmod_class
,
1949 .clkdm_name
= "l4_per_clkdm",
1950 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1951 .main_clk
= "cm2_dm10_mux",
1954 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET
,
1955 .context_offs
= OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET
,
1956 .modulemode
= MODULEMODE_SWCTRL
,
1962 static struct omap_hwmod omap44xx_timer11_hwmod
= {
1964 .class = &omap44xx_timer_hwmod_class
,
1965 .clkdm_name
= "l4_per_clkdm",
1966 .main_clk
= "cm2_dm11_mux",
1969 .clkctrl_offs
= OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET
,
1970 .context_offs
= OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET
,
1971 .modulemode
= MODULEMODE_SWCTRL
,
1977 * 'usb_host_fs' class
1978 * full-speed usb host controller
1981 /* The IP is not compliant to type1 / type2 scheme */
1982 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc
= {
1984 .sysc_offs
= 0x0210,
1985 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
1986 SYSC_HAS_SOFTRESET
),
1987 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1989 .sysc_fields
= &omap_hwmod_sysc_type_usb_host_fs
,
1992 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class
= {
1993 .name
= "usb_host_fs",
1994 .sysc
= &omap44xx_usb_host_fs_sysc
,
1998 static struct omap_hwmod omap44xx_usb_host_fs_hwmod
= {
1999 .name
= "usb_host_fs",
2000 .class = &omap44xx_usb_host_fs_hwmod_class
,
2001 .clkdm_name
= "l3_init_clkdm",
2002 .main_clk
= "usb_host_fs_fck",
2005 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET
,
2006 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET
,
2007 .modulemode
= MODULEMODE_SWCTRL
,
2013 * 'usb_host_hs' class
2014 * high-speed multi-port usb host controller
2017 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc
= {
2019 .sysc_offs
= 0x0010,
2020 .syss_offs
= 0x0014,
2021 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
|
2022 SYSC_HAS_SOFTRESET
| SYSC_HAS_RESET_STATUS
),
2023 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2024 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2025 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2026 .sysc_fields
= &omap_hwmod_sysc_type2
,
2029 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class
= {
2030 .name
= "usb_host_hs",
2031 .sysc
= &omap44xx_usb_host_hs_sysc
,
2035 static struct omap_hwmod omap44xx_usb_host_hs_hwmod
= {
2036 .name
= "usb_host_hs",
2037 .class = &omap44xx_usb_host_hs_hwmod_class
,
2038 .clkdm_name
= "l3_init_clkdm",
2039 .main_clk
= "usb_host_hs_fck",
2042 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET
,
2043 .context_offs
= OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET
,
2044 .modulemode
= MODULEMODE_SWCTRL
,
2049 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2053 * In the following configuration :
2054 * - USBHOST module is set to smart-idle mode
2055 * - PRCM asserts idle_req to the USBHOST module ( This typically
2056 * happens when the system is going to a low power mode : all ports
2057 * have been suspended, the master part of the USBHOST module has
2058 * entered the standby state, and SW has cut the functional clocks)
2059 * - an USBHOST interrupt occurs before the module is able to answer
2060 * idle_ack, typically a remote wakeup IRQ.
2061 * Then the USB HOST module will enter a deadlock situation where it
2062 * is no more accessible nor functional.
2065 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2069 * Errata: USB host EHCI may stall when entering smart-standby mode
2073 * When the USBHOST module is set to smart-standby mode, and when it is
2074 * ready to enter the standby state (i.e. all ports are suspended and
2075 * all attached devices are in suspend mode), then it can wrongly assert
2076 * the Mstandby signal too early while there are still some residual OCP
2077 * transactions ongoing. If this condition occurs, the internal state
2078 * machine may go to an undefined state and the USB link may be stuck
2079 * upon the next resume.
2082 * Don't use smart standby; use only force standby,
2083 * hence HWMOD_SWSUP_MSTANDBY
2086 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
2090 * 'usb_tll_hs' class
2091 * usb_tll_hs module is the adapter on the usb_host_hs ports
2094 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc
= {
2096 .sysc_offs
= 0x0010,
2097 .syss_offs
= 0x0014,
2098 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2099 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
2101 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2102 .sysc_fields
= &omap_hwmod_sysc_type1
,
2105 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class
= {
2106 .name
= "usb_tll_hs",
2107 .sysc
= &omap44xx_usb_tll_hs_sysc
,
2110 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod
= {
2111 .name
= "usb_tll_hs",
2112 .class = &omap44xx_usb_tll_hs_hwmod_class
,
2113 .clkdm_name
= "l3_init_clkdm",
2114 .main_clk
= "usb_tll_hs_ick",
2117 .clkctrl_offs
= OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET
,
2118 .context_offs
= OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET
,
2119 .modulemode
= MODULEMODE_HWCTRL
,
2128 /* l3_main_1 -> dmm */
2129 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm
= {
2130 .master
= &omap44xx_l3_main_1_hwmod
,
2131 .slave
= &omap44xx_dmm_hwmod
,
2133 .user
= OCP_USER_SDMA
,
2137 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm
= {
2138 .master
= &omap44xx_mpu_hwmod
,
2139 .slave
= &omap44xx_dmm_hwmod
,
2141 .user
= OCP_USER_MPU
,
2144 /* iva -> l3_instr */
2145 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr
= {
2146 .master
= &omap44xx_iva_hwmod
,
2147 .slave
= &omap44xx_l3_instr_hwmod
,
2149 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2152 /* l3_main_3 -> l3_instr */
2153 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr
= {
2154 .master
= &omap44xx_l3_main_3_hwmod
,
2155 .slave
= &omap44xx_l3_instr_hwmod
,
2157 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2160 /* ocp_wp_noc -> l3_instr */
2161 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr
= {
2162 .master
= &omap44xx_ocp_wp_noc_hwmod
,
2163 .slave
= &omap44xx_l3_instr_hwmod
,
2165 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2168 /* dsp -> l3_main_1 */
2169 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1
= {
2170 .master
= &omap44xx_dsp_hwmod
,
2171 .slave
= &omap44xx_l3_main_1_hwmod
,
2173 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2176 /* dss -> l3_main_1 */
2177 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1
= {
2178 .master
= &omap44xx_dss_hwmod
,
2179 .slave
= &omap44xx_l3_main_1_hwmod
,
2181 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2184 /* l3_main_2 -> l3_main_1 */
2185 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1
= {
2186 .master
= &omap44xx_l3_main_2_hwmod
,
2187 .slave
= &omap44xx_l3_main_1_hwmod
,
2189 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2192 /* l4_cfg -> l3_main_1 */
2193 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1
= {
2194 .master
= &omap44xx_l4_cfg_hwmod
,
2195 .slave
= &omap44xx_l3_main_1_hwmod
,
2197 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2200 /* mpu -> l3_main_1 */
2201 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1
= {
2202 .master
= &omap44xx_mpu_hwmod
,
2203 .slave
= &omap44xx_l3_main_1_hwmod
,
2205 .user
= OCP_USER_MPU
,
2208 /* debugss -> l3_main_2 */
2209 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2
= {
2210 .master
= &omap44xx_debugss_hwmod
,
2211 .slave
= &omap44xx_l3_main_2_hwmod
,
2212 .clk
= "dbgclk_mux_ck",
2213 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2216 /* dma_system -> l3_main_2 */
2217 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2
= {
2218 .master
= &omap44xx_dma_system_hwmod
,
2219 .slave
= &omap44xx_l3_main_2_hwmod
,
2221 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2224 /* fdif -> l3_main_2 */
2225 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2
= {
2226 .master
= &omap44xx_fdif_hwmod
,
2227 .slave
= &omap44xx_l3_main_2_hwmod
,
2229 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2232 /* hsi -> l3_main_2 */
2233 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2
= {
2234 .master
= &omap44xx_hsi_hwmod
,
2235 .slave
= &omap44xx_l3_main_2_hwmod
,
2237 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2240 /* ipu -> l3_main_2 */
2241 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2
= {
2242 .master
= &omap44xx_ipu_hwmod
,
2243 .slave
= &omap44xx_l3_main_2_hwmod
,
2245 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2248 /* iss -> l3_main_2 */
2249 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2
= {
2250 .master
= &omap44xx_iss_hwmod
,
2251 .slave
= &omap44xx_l3_main_2_hwmod
,
2253 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2256 /* iva -> l3_main_2 */
2257 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2
= {
2258 .master
= &omap44xx_iva_hwmod
,
2259 .slave
= &omap44xx_l3_main_2_hwmod
,
2261 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2264 /* l3_main_1 -> l3_main_2 */
2265 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2
= {
2266 .master
= &omap44xx_l3_main_1_hwmod
,
2267 .slave
= &omap44xx_l3_main_2_hwmod
,
2269 .user
= OCP_USER_MPU
,
2272 /* l4_cfg -> l3_main_2 */
2273 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2
= {
2274 .master
= &omap44xx_l4_cfg_hwmod
,
2275 .slave
= &omap44xx_l3_main_2_hwmod
,
2277 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2280 /* usb_host_fs -> l3_main_2 */
2281 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2
= {
2282 .master
= &omap44xx_usb_host_fs_hwmod
,
2283 .slave
= &omap44xx_l3_main_2_hwmod
,
2285 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2288 /* usb_host_hs -> l3_main_2 */
2289 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2
= {
2290 .master
= &omap44xx_usb_host_hs_hwmod
,
2291 .slave
= &omap44xx_l3_main_2_hwmod
,
2293 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2296 /* l3_main_1 -> l3_main_3 */
2297 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3
= {
2298 .master
= &omap44xx_l3_main_1_hwmod
,
2299 .slave
= &omap44xx_l3_main_3_hwmod
,
2301 .user
= OCP_USER_MPU
,
2304 /* l3_main_2 -> l3_main_3 */
2305 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3
= {
2306 .master
= &omap44xx_l3_main_2_hwmod
,
2307 .slave
= &omap44xx_l3_main_3_hwmod
,
2309 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2312 /* l4_cfg -> l3_main_3 */
2313 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3
= {
2314 .master
= &omap44xx_l4_cfg_hwmod
,
2315 .slave
= &omap44xx_l3_main_3_hwmod
,
2317 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2320 /* aess -> l4_abe */
2321 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe
= {
2322 .master
= &omap44xx_aess_hwmod
,
2323 .slave
= &omap44xx_l4_abe_hwmod
,
2324 .clk
= "ocp_abe_iclk",
2325 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2329 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe
= {
2330 .master
= &omap44xx_dsp_hwmod
,
2331 .slave
= &omap44xx_l4_abe_hwmod
,
2332 .clk
= "ocp_abe_iclk",
2333 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2336 /* l3_main_1 -> l4_abe */
2337 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe
= {
2338 .master
= &omap44xx_l3_main_1_hwmod
,
2339 .slave
= &omap44xx_l4_abe_hwmod
,
2341 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2345 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe
= {
2346 .master
= &omap44xx_mpu_hwmod
,
2347 .slave
= &omap44xx_l4_abe_hwmod
,
2348 .clk
= "ocp_abe_iclk",
2349 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2352 /* l3_main_1 -> l4_cfg */
2353 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg
= {
2354 .master
= &omap44xx_l3_main_1_hwmod
,
2355 .slave
= &omap44xx_l4_cfg_hwmod
,
2357 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2360 /* l3_main_2 -> l4_per */
2361 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per
= {
2362 .master
= &omap44xx_l3_main_2_hwmod
,
2363 .slave
= &omap44xx_l4_per_hwmod
,
2365 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2368 /* l4_cfg -> l4_wkup */
2369 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup
= {
2370 .master
= &omap44xx_l4_cfg_hwmod
,
2371 .slave
= &omap44xx_l4_wkup_hwmod
,
2373 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2376 /* mpu -> mpu_private */
2377 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private
= {
2378 .master
= &omap44xx_mpu_hwmod
,
2379 .slave
= &omap44xx_mpu_private_hwmod
,
2381 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2384 /* l4_cfg -> ocp_wp_noc */
2385 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc
= {
2386 .master
= &omap44xx_l4_cfg_hwmod
,
2387 .slave
= &omap44xx_ocp_wp_noc_hwmod
,
2389 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2392 /* l4_abe -> aess */
2393 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess
= {
2394 .master
= &omap44xx_l4_abe_hwmod
,
2395 .slave
= &omap44xx_aess_hwmod
,
2396 .clk
= "ocp_abe_iclk",
2397 .user
= OCP_USER_MPU
,
2400 /* l4_abe -> aess (dma) */
2401 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma
= {
2402 .master
= &omap44xx_l4_abe_hwmod
,
2403 .slave
= &omap44xx_aess_hwmod
,
2404 .clk
= "ocp_abe_iclk",
2405 .user
= OCP_USER_SDMA
,
2408 /* l4_wkup -> counter_32k */
2409 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k
= {
2410 .master
= &omap44xx_l4_wkup_hwmod
,
2411 .slave
= &omap44xx_counter_32k_hwmod
,
2412 .clk
= "l4_wkup_clk_mux_ck",
2413 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2416 /* l4_cfg -> ctrl_module_core */
2417 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core
= {
2418 .master
= &omap44xx_l4_cfg_hwmod
,
2419 .slave
= &omap44xx_ctrl_module_core_hwmod
,
2421 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2424 /* l4_cfg -> ctrl_module_pad_core */
2425 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core
= {
2426 .master
= &omap44xx_l4_cfg_hwmod
,
2427 .slave
= &omap44xx_ctrl_module_pad_core_hwmod
,
2429 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2432 /* l4_wkup -> ctrl_module_wkup */
2433 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup
= {
2434 .master
= &omap44xx_l4_wkup_hwmod
,
2435 .slave
= &omap44xx_ctrl_module_wkup_hwmod
,
2436 .clk
= "l4_wkup_clk_mux_ck",
2437 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2440 /* l4_wkup -> ctrl_module_pad_wkup */
2441 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup
= {
2442 .master
= &omap44xx_l4_wkup_hwmod
,
2443 .slave
= &omap44xx_ctrl_module_pad_wkup_hwmod
,
2444 .clk
= "l4_wkup_clk_mux_ck",
2445 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2448 /* l3_instr -> debugss */
2449 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss
= {
2450 .master
= &omap44xx_l3_instr_hwmod
,
2451 .slave
= &omap44xx_debugss_hwmod
,
2453 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2456 /* l4_cfg -> dma_system */
2457 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system
= {
2458 .master
= &omap44xx_l4_cfg_hwmod
,
2459 .slave
= &omap44xx_dma_system_hwmod
,
2461 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2464 /* l4_abe -> dmic */
2465 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic
= {
2466 .master
= &omap44xx_l4_abe_hwmod
,
2467 .slave
= &omap44xx_dmic_hwmod
,
2468 .clk
= "ocp_abe_iclk",
2469 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2473 static struct omap_hwmod_ocp_if omap44xx_dsp__iva
= {
2474 .master
= &omap44xx_dsp_hwmod
,
2475 .slave
= &omap44xx_iva_hwmod
,
2476 .clk
= "dpll_iva_m5x2_ck",
2477 .user
= OCP_USER_DSP
,
2481 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if
= {
2482 .master
= &omap44xx_dsp_hwmod
,
2483 .slave
= &omap44xx_sl2if_hwmod
,
2484 .clk
= "dpll_iva_m5x2_ck",
2485 .user
= OCP_USER_DSP
,
2489 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp
= {
2490 .master
= &omap44xx_l4_cfg_hwmod
,
2491 .slave
= &omap44xx_dsp_hwmod
,
2493 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2496 /* l3_main_2 -> dss */
2497 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss
= {
2498 .master
= &omap44xx_l3_main_2_hwmod
,
2499 .slave
= &omap44xx_dss_hwmod
,
2501 .user
= OCP_USER_SDMA
,
2505 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss
= {
2506 .master
= &omap44xx_l4_per_hwmod
,
2507 .slave
= &omap44xx_dss_hwmod
,
2509 .user
= OCP_USER_MPU
,
2512 /* l3_main_2 -> dss_dispc */
2513 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc
= {
2514 .master
= &omap44xx_l3_main_2_hwmod
,
2515 .slave
= &omap44xx_dss_dispc_hwmod
,
2517 .user
= OCP_USER_SDMA
,
2520 /* l4_per -> dss_dispc */
2521 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc
= {
2522 .master
= &omap44xx_l4_per_hwmod
,
2523 .slave
= &omap44xx_dss_dispc_hwmod
,
2525 .user
= OCP_USER_MPU
,
2528 /* l3_main_2 -> dss_dsi1 */
2529 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1
= {
2530 .master
= &omap44xx_l3_main_2_hwmod
,
2531 .slave
= &omap44xx_dss_dsi1_hwmod
,
2533 .user
= OCP_USER_SDMA
,
2536 /* l4_per -> dss_dsi1 */
2537 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1
= {
2538 .master
= &omap44xx_l4_per_hwmod
,
2539 .slave
= &omap44xx_dss_dsi1_hwmod
,
2541 .user
= OCP_USER_MPU
,
2544 /* l3_main_2 -> dss_dsi2 */
2545 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2
= {
2546 .master
= &omap44xx_l3_main_2_hwmod
,
2547 .slave
= &omap44xx_dss_dsi2_hwmod
,
2549 .user
= OCP_USER_SDMA
,
2552 /* l4_per -> dss_dsi2 */
2553 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2
= {
2554 .master
= &omap44xx_l4_per_hwmod
,
2555 .slave
= &omap44xx_dss_dsi2_hwmod
,
2557 .user
= OCP_USER_MPU
,
2560 /* l3_main_2 -> dss_hdmi */
2561 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi
= {
2562 .master
= &omap44xx_l3_main_2_hwmod
,
2563 .slave
= &omap44xx_dss_hdmi_hwmod
,
2565 .user
= OCP_USER_SDMA
,
2568 /* l4_per -> dss_hdmi */
2569 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi
= {
2570 .master
= &omap44xx_l4_per_hwmod
,
2571 .slave
= &omap44xx_dss_hdmi_hwmod
,
2573 .user
= OCP_USER_MPU
,
2576 /* l3_main_2 -> dss_rfbi */
2577 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi
= {
2578 .master
= &omap44xx_l3_main_2_hwmod
,
2579 .slave
= &omap44xx_dss_rfbi_hwmod
,
2581 .user
= OCP_USER_SDMA
,
2584 /* l4_per -> dss_rfbi */
2585 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi
= {
2586 .master
= &omap44xx_l4_per_hwmod
,
2587 .slave
= &omap44xx_dss_rfbi_hwmod
,
2589 .user
= OCP_USER_MPU
,
2592 /* l3_main_2 -> dss_venc */
2593 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc
= {
2594 .master
= &omap44xx_l3_main_2_hwmod
,
2595 .slave
= &omap44xx_dss_venc_hwmod
,
2597 .user
= OCP_USER_SDMA
,
2600 /* l4_per -> dss_venc */
2601 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc
= {
2602 .master
= &omap44xx_l4_per_hwmod
,
2603 .slave
= &omap44xx_dss_venc_hwmod
,
2605 .user
= OCP_USER_MPU
,
2608 /* l3_main_2 -> sham */
2609 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0
= {
2610 .master
= &omap44xx_l3_main_2_hwmod
,
2611 .slave
= &omap44xx_sha0_hwmod
,
2613 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2617 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm
= {
2618 .master
= &omap44xx_l4_per_hwmod
,
2619 .slave
= &omap44xx_elm_hwmod
,
2621 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2624 /* l4_cfg -> fdif */
2625 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif
= {
2626 .master
= &omap44xx_l4_cfg_hwmod
,
2627 .slave
= &omap44xx_fdif_hwmod
,
2629 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2632 /* l3_main_2 -> gpmc */
2633 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc
= {
2634 .master
= &omap44xx_l3_main_2_hwmod
,
2635 .slave
= &omap44xx_gpmc_hwmod
,
2637 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2641 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi
= {
2642 .master
= &omap44xx_l4_cfg_hwmod
,
2643 .slave
= &omap44xx_hsi_hwmod
,
2645 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2648 /* l3_main_2 -> ipu */
2649 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu
= {
2650 .master
= &omap44xx_l3_main_2_hwmod
,
2651 .slave
= &omap44xx_ipu_hwmod
,
2653 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2656 /* l3_main_2 -> iss */
2657 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss
= {
2658 .master
= &omap44xx_l3_main_2_hwmod
,
2659 .slave
= &omap44xx_iss_hwmod
,
2661 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2665 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if
= {
2666 .master
= &omap44xx_iva_hwmod
,
2667 .slave
= &omap44xx_sl2if_hwmod
,
2668 .clk
= "dpll_iva_m5x2_ck",
2669 .user
= OCP_USER_IVA
,
2672 /* l3_main_2 -> iva */
2673 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva
= {
2674 .master
= &omap44xx_l3_main_2_hwmod
,
2675 .slave
= &omap44xx_iva_hwmod
,
2677 .user
= OCP_USER_MPU
,
2680 /* l4_wkup -> kbd */
2681 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd
= {
2682 .master
= &omap44xx_l4_wkup_hwmod
,
2683 .slave
= &omap44xx_kbd_hwmod
,
2684 .clk
= "l4_wkup_clk_mux_ck",
2685 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2688 /* l4_abe -> mcpdm */
2689 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm
= {
2690 .master
= &omap44xx_l4_abe_hwmod
,
2691 .slave
= &omap44xx_mcpdm_hwmod
,
2692 .clk
= "ocp_abe_iclk",
2693 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2696 /* l3_main_2 -> ocmc_ram */
2697 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram
= {
2698 .master
= &omap44xx_l3_main_2_hwmod
,
2699 .slave
= &omap44xx_ocmc_ram_hwmod
,
2701 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2704 /* l4_cfg -> ocp2scp_usb_phy */
2705 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy
= {
2706 .master
= &omap44xx_l4_cfg_hwmod
,
2707 .slave
= &omap44xx_ocp2scp_usb_phy_hwmod
,
2709 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2712 /* mpu_private -> prcm_mpu */
2713 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu
= {
2714 .master
= &omap44xx_mpu_private_hwmod
,
2715 .slave
= &omap44xx_prcm_mpu_hwmod
,
2717 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2720 /* l4_wkup -> cm_core_aon */
2721 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon
= {
2722 .master
= &omap44xx_l4_wkup_hwmod
,
2723 .slave
= &omap44xx_cm_core_aon_hwmod
,
2724 .clk
= "l4_wkup_clk_mux_ck",
2725 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2728 /* l4_cfg -> cm_core */
2729 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core
= {
2730 .master
= &omap44xx_l4_cfg_hwmod
,
2731 .slave
= &omap44xx_cm_core_hwmod
,
2733 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2736 /* l4_wkup -> prm */
2737 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm
= {
2738 .master
= &omap44xx_l4_wkup_hwmod
,
2739 .slave
= &omap44xx_prm_hwmod
,
2740 .clk
= "l4_wkup_clk_mux_ck",
2741 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2744 /* l4_wkup -> scrm */
2745 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm
= {
2746 .master
= &omap44xx_l4_wkup_hwmod
,
2747 .slave
= &omap44xx_scrm_hwmod
,
2748 .clk
= "l4_wkup_clk_mux_ck",
2749 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2752 /* l3_main_2 -> sl2if */
2753 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if
= {
2754 .master
= &omap44xx_l3_main_2_hwmod
,
2755 .slave
= &omap44xx_sl2if_hwmod
,
2757 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2760 /* l4_abe -> slimbus1 */
2761 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1
= {
2762 .master
= &omap44xx_l4_abe_hwmod
,
2763 .slave
= &omap44xx_slimbus1_hwmod
,
2764 .clk
= "ocp_abe_iclk",
2765 .user
= OCP_USER_MPU
,
2768 /* l4_abe -> slimbus1 (dma) */
2769 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma
= {
2770 .master
= &omap44xx_l4_abe_hwmod
,
2771 .slave
= &omap44xx_slimbus1_hwmod
,
2772 .clk
= "ocp_abe_iclk",
2773 .user
= OCP_USER_SDMA
,
2776 /* l4_per -> slimbus2 */
2777 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2
= {
2778 .master
= &omap44xx_l4_per_hwmod
,
2779 .slave
= &omap44xx_slimbus2_hwmod
,
2781 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2784 /* l4_cfg -> smartreflex_core */
2785 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core
= {
2786 .master
= &omap44xx_l4_cfg_hwmod
,
2787 .slave
= &omap44xx_smartreflex_core_hwmod
,
2789 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2792 /* l4_cfg -> smartreflex_iva */
2793 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva
= {
2794 .master
= &omap44xx_l4_cfg_hwmod
,
2795 .slave
= &omap44xx_smartreflex_iva_hwmod
,
2797 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2800 /* l4_cfg -> smartreflex_mpu */
2801 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu
= {
2802 .master
= &omap44xx_l4_cfg_hwmod
,
2803 .slave
= &omap44xx_smartreflex_mpu_hwmod
,
2805 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2808 /* l4_cfg -> spinlock */
2809 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock
= {
2810 .master
= &omap44xx_l4_cfg_hwmod
,
2811 .slave
= &omap44xx_spinlock_hwmod
,
2813 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2816 /* l4_wkup -> timer1 */
2817 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1
= {
2818 .master
= &omap44xx_l4_wkup_hwmod
,
2819 .slave
= &omap44xx_timer1_hwmod
,
2820 .clk
= "l4_wkup_clk_mux_ck",
2821 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2824 /* l4_per -> timer2 */
2825 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2
= {
2826 .master
= &omap44xx_l4_per_hwmod
,
2827 .slave
= &omap44xx_timer2_hwmod
,
2829 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2832 /* l4_per -> timer3 */
2833 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3
= {
2834 .master
= &omap44xx_l4_per_hwmod
,
2835 .slave
= &omap44xx_timer3_hwmod
,
2837 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2840 /* l4_per -> timer4 */
2841 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4
= {
2842 .master
= &omap44xx_l4_per_hwmod
,
2843 .slave
= &omap44xx_timer4_hwmod
,
2845 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2848 /* l4_abe -> timer5 */
2849 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5
= {
2850 .master
= &omap44xx_l4_abe_hwmod
,
2851 .slave
= &omap44xx_timer5_hwmod
,
2852 .clk
= "ocp_abe_iclk",
2853 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2856 /* l4_abe -> timer6 */
2857 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6
= {
2858 .master
= &omap44xx_l4_abe_hwmod
,
2859 .slave
= &omap44xx_timer6_hwmod
,
2860 .clk
= "ocp_abe_iclk",
2861 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2864 /* l4_abe -> timer7 */
2865 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7
= {
2866 .master
= &omap44xx_l4_abe_hwmod
,
2867 .slave
= &omap44xx_timer7_hwmod
,
2868 .clk
= "ocp_abe_iclk",
2869 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2872 /* l4_abe -> timer8 */
2873 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8
= {
2874 .master
= &omap44xx_l4_abe_hwmod
,
2875 .slave
= &omap44xx_timer8_hwmod
,
2876 .clk
= "ocp_abe_iclk",
2877 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2880 /* l4_per -> timer9 */
2881 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9
= {
2882 .master
= &omap44xx_l4_per_hwmod
,
2883 .slave
= &omap44xx_timer9_hwmod
,
2885 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2888 /* l4_per -> timer10 */
2889 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10
= {
2890 .master
= &omap44xx_l4_per_hwmod
,
2891 .slave
= &omap44xx_timer10_hwmod
,
2893 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2896 /* l4_per -> timer11 */
2897 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11
= {
2898 .master
= &omap44xx_l4_per_hwmod
,
2899 .slave
= &omap44xx_timer11_hwmod
,
2901 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2904 /* l4_cfg -> usb_host_fs */
2905 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs
= {
2906 .master
= &omap44xx_l4_cfg_hwmod
,
2907 .slave
= &omap44xx_usb_host_fs_hwmod
,
2909 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2912 /* l4_cfg -> usb_host_hs */
2913 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs
= {
2914 .master
= &omap44xx_l4_cfg_hwmod
,
2915 .slave
= &omap44xx_usb_host_hs_hwmod
,
2917 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2920 /* l4_cfg -> usb_tll_hs */
2921 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs
= {
2922 .master
= &omap44xx_l4_cfg_hwmod
,
2923 .slave
= &omap44xx_usb_tll_hs_hwmod
,
2925 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2929 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1
= {
2930 .master
= &omap44xx_mpu_hwmod
,
2931 .slave
= &omap44xx_emif1_hwmod
,
2933 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2937 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2
= {
2938 .master
= &omap44xx_mpu_hwmod
,
2939 .slave
= &omap44xx_emif2_hwmod
,
2941 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2944 static struct omap_hwmod_ocp_if
*omap44xx_hwmod_ocp_ifs
[] __initdata
= {
2945 &omap44xx_l3_main_1__dmm
,
2947 &omap44xx_iva__l3_instr
,
2948 &omap44xx_l3_main_3__l3_instr
,
2949 &omap44xx_ocp_wp_noc__l3_instr
,
2950 &omap44xx_dsp__l3_main_1
,
2951 &omap44xx_dss__l3_main_1
,
2952 &omap44xx_l3_main_2__l3_main_1
,
2953 &omap44xx_l4_cfg__l3_main_1
,
2954 &omap44xx_mpu__l3_main_1
,
2955 &omap44xx_debugss__l3_main_2
,
2956 &omap44xx_dma_system__l3_main_2
,
2957 &omap44xx_fdif__l3_main_2
,
2958 &omap44xx_hsi__l3_main_2
,
2959 &omap44xx_ipu__l3_main_2
,
2960 &omap44xx_iss__l3_main_2
,
2961 &omap44xx_iva__l3_main_2
,
2962 &omap44xx_l3_main_1__l3_main_2
,
2963 &omap44xx_l4_cfg__l3_main_2
,
2964 /* &omap44xx_usb_host_fs__l3_main_2, */
2965 &omap44xx_usb_host_hs__l3_main_2
,
2966 &omap44xx_l3_main_1__l3_main_3
,
2967 &omap44xx_l3_main_2__l3_main_3
,
2968 &omap44xx_l4_cfg__l3_main_3
,
2969 &omap44xx_aess__l4_abe
,
2970 &omap44xx_dsp__l4_abe
,
2971 &omap44xx_l3_main_1__l4_abe
,
2972 &omap44xx_mpu__l4_abe
,
2973 &omap44xx_l3_main_1__l4_cfg
,
2974 &omap44xx_l3_main_2__l4_per
,
2975 &omap44xx_l4_cfg__l4_wkup
,
2976 &omap44xx_mpu__mpu_private
,
2977 &omap44xx_l4_cfg__ocp_wp_noc
,
2978 &omap44xx_l4_abe__aess
,
2979 &omap44xx_l4_abe__aess_dma
,
2980 &omap44xx_l4_wkup__counter_32k
,
2981 &omap44xx_l4_cfg__ctrl_module_core
,
2982 &omap44xx_l4_cfg__ctrl_module_pad_core
,
2983 &omap44xx_l4_wkup__ctrl_module_wkup
,
2984 &omap44xx_l4_wkup__ctrl_module_pad_wkup
,
2985 &omap44xx_l3_instr__debugss
,
2986 &omap44xx_l4_cfg__dma_system
,
2987 &omap44xx_l4_abe__dmic
,
2989 /* &omap44xx_dsp__sl2if, */
2990 &omap44xx_l4_cfg__dsp
,
2991 &omap44xx_l3_main_2__dss
,
2992 &omap44xx_l4_per__dss
,
2993 &omap44xx_l3_main_2__dss_dispc
,
2994 &omap44xx_l4_per__dss_dispc
,
2995 &omap44xx_l3_main_2__dss_dsi1
,
2996 &omap44xx_l4_per__dss_dsi1
,
2997 &omap44xx_l3_main_2__dss_dsi2
,
2998 &omap44xx_l4_per__dss_dsi2
,
2999 &omap44xx_l3_main_2__dss_hdmi
,
3000 &omap44xx_l4_per__dss_hdmi
,
3001 &omap44xx_l3_main_2__dss_rfbi
,
3002 &omap44xx_l4_per__dss_rfbi
,
3003 &omap44xx_l3_main_2__dss_venc
,
3004 &omap44xx_l4_per__dss_venc
,
3005 &omap44xx_l4_per__elm
,
3006 &omap44xx_l4_cfg__fdif
,
3007 &omap44xx_l3_main_2__gpmc
,
3008 &omap44xx_l4_cfg__hsi
,
3009 &omap44xx_l3_main_2__ipu
,
3010 &omap44xx_l3_main_2__iss
,
3011 /* &omap44xx_iva__sl2if, */
3012 &omap44xx_l3_main_2__iva
,
3013 &omap44xx_l4_wkup__kbd
,
3014 &omap44xx_l4_abe__mcpdm
,
3015 &omap44xx_l3_main_2__mmu_ipu
,
3016 &omap44xx_l4_cfg__mmu_dsp
,
3017 &omap44xx_l3_main_2__ocmc_ram
,
3018 &omap44xx_l4_cfg__ocp2scp_usb_phy
,
3019 &omap44xx_mpu_private__prcm_mpu
,
3020 &omap44xx_l4_wkup__cm_core_aon
,
3021 &omap44xx_l4_cfg__cm_core
,
3022 &omap44xx_l4_wkup__prm
,
3023 &omap44xx_l4_wkup__scrm
,
3024 /* &omap44xx_l3_main_2__sl2if, */
3025 &omap44xx_l4_abe__slimbus1
,
3026 &omap44xx_l4_abe__slimbus1_dma
,
3027 &omap44xx_l4_per__slimbus2
,
3028 &omap44xx_l4_cfg__smartreflex_core
,
3029 &omap44xx_l4_cfg__smartreflex_iva
,
3030 &omap44xx_l4_cfg__smartreflex_mpu
,
3031 &omap44xx_l4_cfg__spinlock
,
3032 &omap44xx_l4_wkup__timer1
,
3033 &omap44xx_l4_per__timer2
,
3034 &omap44xx_l4_per__timer3
,
3035 &omap44xx_l4_per__timer4
,
3036 &omap44xx_l4_abe__timer5
,
3037 &omap44xx_l4_abe__timer6
,
3038 &omap44xx_l4_abe__timer7
,
3039 &omap44xx_l4_abe__timer8
,
3040 &omap44xx_l4_per__timer9
,
3041 &omap44xx_l4_per__timer10
,
3042 &omap44xx_l4_per__timer11
,
3043 /* &omap44xx_l4_cfg__usb_host_fs, */
3044 &omap44xx_l4_cfg__usb_host_hs
,
3045 &omap44xx_l4_cfg__usb_tll_hs
,
3046 &omap44xx_mpu__emif1
,
3047 &omap44xx_mpu__emif2
,
3048 &omap44xx_l3_main_2__aes1
,
3049 &omap44xx_l3_main_2__aes2
,
3050 &omap44xx_l3_main_2__des
,
3051 &omap44xx_l3_main_2__sha0
,
3055 int __init
omap44xx_hwmod_init(void)
3058 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs
);