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"
33 /* Base offset for all OMAP4 interrupts external to MPUSS */
34 #define OMAP44XX_IRQ_GIC_START 32
36 /* Base offset for all OMAP4 dma requests */
37 #define OMAP44XX_DMA_REQ_START 1
47 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
52 static struct omap_hwmod omap44xx_dmm_hwmod = {
54 .class = &omap44xx_dmm_hwmod_class,
55 .clkdm_name = "l3_emif_clkdm",
58 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
59 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
66 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
68 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
73 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
75 .class = &omap44xx_l3_hwmod_class,
76 .clkdm_name = "l3_instr_clkdm",
79 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
80 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
81 .modulemode = MODULEMODE_HWCTRL,
87 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
89 .class = &omap44xx_l3_hwmod_class,
90 .clkdm_name = "l3_1_clkdm",
93 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
94 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
100 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
102 .class = &omap44xx_l3_hwmod_class,
103 .clkdm_name = "l3_2_clkdm",
106 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
107 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
113 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
115 .class = &omap44xx_l3_hwmod_class,
116 .clkdm_name = "l3_instr_clkdm",
119 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
120 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
121 .modulemode = MODULEMODE_HWCTRL,
128 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
130 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
135 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
137 .class = &omap44xx_l4_hwmod_class,
138 .clkdm_name = "abe_clkdm",
141 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
142 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
143 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
144 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
150 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
152 .class = &omap44xx_l4_hwmod_class,
153 .clkdm_name = "l4_cfg_clkdm",
156 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
157 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
163 static struct omap_hwmod omap44xx_l4_per_hwmod = {
165 .class = &omap44xx_l4_hwmod_class,
166 .clkdm_name = "l4_per_clkdm",
169 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
170 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
176 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
178 .class = &omap44xx_l4_hwmod_class,
179 .clkdm_name = "l4_wkup_clkdm",
182 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
183 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
190 * instance(s): mpu_private
192 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
197 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
198 .name = "mpu_private",
199 .class = &omap44xx_mpu_bus_hwmod_class,
200 .clkdm_name = "mpuss_clkdm",
203 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
210 * instance(s): ocp_wp_noc
212 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
213 .name = "ocp_wp_noc",
217 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
218 .name = "ocp_wp_noc",
219 .class = &omap44xx_ocp_wp_noc_hwmod_class,
220 .clkdm_name = "l3_instr_clkdm",
223 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
224 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
225 .modulemode = MODULEMODE_HWCTRL,
231 * Modules omap_hwmod structures
233 * The following IPs are excluded for the moment because:
234 * - They do not need an explicit SW control using omap_hwmod API.
235 * - They still need to be validated with the driver
236 * properly adapted to omap_hwmod / omap_device
243 * audio engine sub system
246 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
249 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
250 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
251 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
252 MSTANDBY_SMART_WKUP),
253 .sysc_fields = &omap_hwmod_sysc_type2,
256 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
258 .sysc = &omap44xx_aess_sysc,
259 .enable_preprogram = omap_hwmod_aess_preprogram,
263 static struct omap_hwmod omap44xx_aess_hwmod = {
265 .class = &omap44xx_aess_hwmod_class,
266 .clkdm_name = "abe_clkdm",
267 .main_clk = "aess_fclk",
270 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
271 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
272 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
273 .modulemode = MODULEMODE_SWCTRL,
280 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
284 static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
289 static struct omap_hwmod omap44xx_c2c_hwmod = {
291 .class = &omap44xx_c2c_hwmod_class,
292 .clkdm_name = "d2d_clkdm",
295 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
296 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
303 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
306 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
309 .sysc_flags = SYSC_HAS_SIDLEMODE,
310 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
311 .sysc_fields = &omap_hwmod_sysc_type1,
314 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
316 .sysc = &omap44xx_counter_sysc,
320 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
321 .name = "counter_32k",
322 .class = &omap44xx_counter_hwmod_class,
323 .clkdm_name = "l4_wkup_clkdm",
324 .flags = HWMOD_SWSUP_SIDLE,
325 .main_clk = "sys_32k_ck",
328 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
329 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
335 * 'ctrl_module' class
336 * attila core control module + core pad control module + wkup pad control
337 * module + attila wkup control module
340 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
343 .sysc_flags = SYSC_HAS_SIDLEMODE,
344 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
346 .sysc_fields = &omap_hwmod_sysc_type2,
349 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
350 .name = "ctrl_module",
351 .sysc = &omap44xx_ctrl_module_sysc,
354 /* ctrl_module_core */
355 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
356 .name = "ctrl_module_core",
357 .class = &omap44xx_ctrl_module_hwmod_class,
358 .clkdm_name = "l4_cfg_clkdm",
361 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
366 /* ctrl_module_pad_core */
367 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
368 .name = "ctrl_module_pad_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_wkup */
379 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
380 .name = "ctrl_module_wkup",
381 .class = &omap44xx_ctrl_module_hwmod_class,
382 .clkdm_name = "l4_wkup_clkdm",
385 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
390 /* ctrl_module_pad_wkup */
391 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
392 .name = "ctrl_module_pad_wkup",
393 .class = &omap44xx_ctrl_module_hwmod_class,
394 .clkdm_name = "l4_wkup_clkdm",
397 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
404 * debug and emulation sub system
407 static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
412 static struct omap_hwmod omap44xx_debugss_hwmod = {
414 .class = &omap44xx_debugss_hwmod_class,
415 .clkdm_name = "emu_sys_clkdm",
416 .main_clk = "trace_clk_div_ck",
419 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
420 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
427 * dma controller for data exchange between memory to memory (i.e. internal or
428 * external memory) and gp peripherals to memory or memory to gp peripherals
431 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
435 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
436 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
437 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
438 SYSS_HAS_RESET_STATUS),
439 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
440 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
441 .sysc_fields = &omap_hwmod_sysc_type1,
444 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
446 .sysc = &omap44xx_dma_sysc,
450 static struct omap_dma_dev_attr dma_dev_attr = {
451 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
452 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
457 static struct omap_hwmod omap44xx_dma_system_hwmod = {
458 .name = "dma_system",
459 .class = &omap44xx_dma_hwmod_class,
460 .clkdm_name = "l3_dma_clkdm",
461 .main_clk = "l3_div_ck",
464 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
465 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
468 .dev_attr = &dma_dev_attr,
473 * digital microphone controller
476 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
479 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
480 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
481 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
483 .sysc_fields = &omap_hwmod_sysc_type2,
486 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
488 .sysc = &omap44xx_dmic_sysc,
492 static struct omap_hwmod omap44xx_dmic_hwmod = {
494 .class = &omap44xx_dmic_hwmod_class,
495 .clkdm_name = "abe_clkdm",
496 .main_clk = "func_dmic_abe_gfclk",
499 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
500 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
501 .modulemode = MODULEMODE_SWCTRL,
511 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
516 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
517 { .name = "dsp", .rst_shift = 0 },
520 static struct omap_hwmod omap44xx_dsp_hwmod = {
522 .class = &omap44xx_dsp_hwmod_class,
523 .clkdm_name = "tesla_clkdm",
524 .rst_lines = omap44xx_dsp_resets,
525 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
526 .main_clk = "dpll_iva_m4x2_ck",
529 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
530 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
531 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
532 .modulemode = MODULEMODE_HWCTRL,
542 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
545 .sysc_flags = SYSS_HAS_RESET_STATUS,
548 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
550 .sysc = &omap44xx_dss_sysc,
551 .reset = omap_dss_reset,
555 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
556 { .role = "sys_clk", .clk = "dss_sys_clk" },
557 { .role = "tv_clk", .clk = "dss_tv_clk" },
558 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
561 static struct omap_hwmod omap44xx_dss_hwmod = {
563 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
564 .class = &omap44xx_dss_hwmod_class,
565 .clkdm_name = "l3_dss_clkdm",
566 .main_clk = "dss_dss_clk",
569 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
570 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
571 .modulemode = MODULEMODE_SWCTRL,
574 .opt_clks = dss_opt_clks,
575 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
583 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
587 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
588 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
589 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
590 SYSS_HAS_RESET_STATUS),
591 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
592 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
593 .sysc_fields = &omap_hwmod_sysc_type1,
596 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
598 .sysc = &omap44xx_dispc_sysc,
602 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
604 .has_framedonetv_irq = 1
607 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
609 .class = &omap44xx_dispc_hwmod_class,
610 .clkdm_name = "l3_dss_clkdm",
611 .main_clk = "dss_dss_clk",
614 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
615 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
618 .dev_attr = &omap44xx_dss_dispc_dev_attr,
619 .parent_hwmod = &omap44xx_dss_hwmod,
624 * display serial interface controller
627 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
631 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
632 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
633 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
634 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
635 .sysc_fields = &omap_hwmod_sysc_type1,
638 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
640 .sysc = &omap44xx_dsi_sysc,
644 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
645 { .role = "sys_clk", .clk = "dss_sys_clk" },
648 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
650 .class = &omap44xx_dsi_hwmod_class,
651 .clkdm_name = "l3_dss_clkdm",
652 .main_clk = "dss_dss_clk",
655 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
656 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
659 .opt_clks = dss_dsi1_opt_clks,
660 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
661 .parent_hwmod = &omap44xx_dss_hwmod,
665 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
666 { .role = "sys_clk", .clk = "dss_sys_clk" },
669 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
671 .class = &omap44xx_dsi_hwmod_class,
672 .clkdm_name = "l3_dss_clkdm",
673 .main_clk = "dss_dss_clk",
676 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
677 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
680 .opt_clks = dss_dsi2_opt_clks,
681 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
682 .parent_hwmod = &omap44xx_dss_hwmod,
690 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
693 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
695 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
697 .sysc_fields = &omap_hwmod_sysc_type2,
700 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
702 .sysc = &omap44xx_hdmi_sysc,
706 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
707 { .role = "sys_clk", .clk = "dss_sys_clk" },
708 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
711 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
713 .class = &omap44xx_hdmi_hwmod_class,
714 .clkdm_name = "l3_dss_clkdm",
716 * HDMI audio requires to use no-idle mode. Hence,
717 * set idle mode by software.
719 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
720 .main_clk = "dss_48mhz_clk",
723 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
724 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
727 .opt_clks = dss_hdmi_opt_clks,
728 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
729 .parent_hwmod = &omap44xx_dss_hwmod,
734 * remote frame buffer interface
737 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
741 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
742 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
743 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
744 .sysc_fields = &omap_hwmod_sysc_type1,
747 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
749 .sysc = &omap44xx_rfbi_sysc,
753 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
754 { .role = "ick", .clk = "l3_div_ck" },
757 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
759 .class = &omap44xx_rfbi_hwmod_class,
760 .clkdm_name = "l3_dss_clkdm",
761 .main_clk = "dss_dss_clk",
764 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
765 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
768 .opt_clks = dss_rfbi_opt_clks,
769 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
770 .parent_hwmod = &omap44xx_dss_hwmod,
778 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
783 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
784 { .role = "tv_clk", .clk = "dss_tv_clk" },
787 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
789 .class = &omap44xx_venc_hwmod_class,
790 .clkdm_name = "l3_dss_clkdm",
791 .main_clk = "dss_tv_clk",
792 .flags = HWMOD_OPT_CLKS_NEEDED,
795 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
796 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
799 .parent_hwmod = &omap44xx_dss_hwmod,
800 .opt_clks = dss_venc_opt_clks,
801 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
804 /* sha0 HIB2 (the 'P' (public) device) */
805 static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
809 .sysc_flags = SYSS_HAS_RESET_STATUS,
812 static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
814 .sysc = &omap44xx_sha0_sysc,
817 struct omap_hwmod omap44xx_sha0_hwmod = {
819 .class = &omap44xx_sha0_hwmod_class,
820 .clkdm_name = "l4_secure_clkdm",
821 .main_clk = "l3_div_ck",
824 .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
825 .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
826 .modulemode = MODULEMODE_SWCTRL,
833 * bch error location module
836 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
840 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
841 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
842 SYSS_HAS_RESET_STATUS),
843 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
844 .sysc_fields = &omap_hwmod_sysc_type1,
847 static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
849 .sysc = &omap44xx_elm_sysc,
853 static struct omap_hwmod omap44xx_elm_hwmod = {
855 .class = &omap44xx_elm_hwmod_class,
856 .clkdm_name = "l4_per_clkdm",
859 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
860 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
867 * external memory interface no1
870 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
874 static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
876 .sysc = &omap44xx_emif_sysc,
880 static struct omap_hwmod omap44xx_emif1_hwmod = {
882 .class = &omap44xx_emif_hwmod_class,
883 .clkdm_name = "l3_emif_clkdm",
884 .flags = HWMOD_INIT_NO_IDLE,
885 .main_clk = "ddrphy_ck",
888 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
889 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
890 .modulemode = MODULEMODE_HWCTRL,
896 static struct omap_hwmod omap44xx_emif2_hwmod = {
898 .class = &omap44xx_emif_hwmod_class,
899 .clkdm_name = "l3_emif_clkdm",
900 .flags = HWMOD_INIT_NO_IDLE,
901 .main_clk = "ddrphy_ck",
904 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
905 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
906 .modulemode = MODULEMODE_HWCTRL,
912 Crypto modules AES0/1 belong to:
913 PD_L4_PER power domain
914 CD_L4_SEC clock domain
915 On the L3, the AES modules are mapped to
916 L3_CLK2: Peripherals and multimedia sub clock domain
918 static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
922 .sysc_flags = SYSS_HAS_RESET_STATUS,
925 static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
927 .sysc = &omap44xx_aes_sysc,
930 static struct omap_hwmod omap44xx_aes1_hwmod = {
932 .class = &omap44xx_aes_hwmod_class,
933 .clkdm_name = "l4_secure_clkdm",
934 .main_clk = "l3_div_ck",
937 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
938 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
939 .modulemode = MODULEMODE_SWCTRL,
944 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
945 .master = &omap44xx_l4_per_hwmod,
946 .slave = &omap44xx_aes1_hwmod,
948 .user = OCP_USER_MPU | OCP_USER_SDMA,
951 static struct omap_hwmod omap44xx_aes2_hwmod = {
953 .class = &omap44xx_aes_hwmod_class,
954 .clkdm_name = "l4_secure_clkdm",
955 .main_clk = "l3_div_ck",
958 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
959 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
960 .modulemode = MODULEMODE_SWCTRL,
965 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
966 .master = &omap44xx_l4_per_hwmod,
967 .slave = &omap44xx_aes2_hwmod,
969 .user = OCP_USER_MPU | OCP_USER_SDMA,
973 * 'des' class for DES3DES module
975 static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
979 .sysc_flags = SYSS_HAS_RESET_STATUS,
982 static struct omap_hwmod_class omap44xx_des_hwmod_class = {
984 .sysc = &omap44xx_des_sysc,
987 static struct omap_hwmod omap44xx_des_hwmod = {
989 .class = &omap44xx_des_hwmod_class,
990 .clkdm_name = "l4_secure_clkdm",
991 .main_clk = "l3_div_ck",
994 .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
995 .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
996 .modulemode = MODULEMODE_SWCTRL,
1001 struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
1002 .master = &omap44xx_l3_main_2_hwmod,
1003 .slave = &omap44xx_des_hwmod,
1005 .user = OCP_USER_MPU | OCP_USER_SDMA,
1010 * face detection hw accelerator module
1013 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1015 .sysc_offs = 0x0010,
1017 * FDIF needs 100 OCP clk cycles delay after a softreset before
1018 * accessing sysconfig again.
1019 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1020 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1022 * TODO: Indicate errata when available.
1025 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1026 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1028 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1029 .sysc_fields = &omap_hwmod_sysc_type2,
1032 static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1034 .sysc = &omap44xx_fdif_sysc,
1038 static struct omap_hwmod omap44xx_fdif_hwmod = {
1040 .class = &omap44xx_fdif_hwmod_class,
1041 .clkdm_name = "iss_clkdm",
1042 .main_clk = "fdif_fck",
1045 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1046 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1047 .modulemode = MODULEMODE_SWCTRL,
1054 * general purpose memory controller
1057 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1059 .sysc_offs = 0x0010,
1060 .syss_offs = 0x0014,
1061 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1062 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1063 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1064 .sysc_fields = &omap_hwmod_sysc_type1,
1067 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1069 .sysc = &omap44xx_gpmc_sysc,
1073 static struct omap_hwmod omap44xx_gpmc_hwmod = {
1075 .class = &omap44xx_gpmc_hwmod_class,
1076 .clkdm_name = "l3_2_clkdm",
1077 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1078 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1081 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1082 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1083 .modulemode = MODULEMODE_HWCTRL,
1090 * 2d/3d graphics accelerator
1093 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1094 .rev_offs = 0x1fc00,
1095 .sysc_offs = 0x1fc10,
1096 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1097 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1098 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1099 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1100 .sysc_fields = &omap_hwmod_sysc_type2,
1103 static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1105 .sysc = &omap44xx_gpu_sysc,
1109 static struct omap_hwmod omap44xx_gpu_hwmod = {
1111 .class = &omap44xx_gpu_hwmod_class,
1112 .clkdm_name = "l3_gfx_clkdm",
1113 .main_clk = "sgx_clk_mux",
1116 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1117 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1118 .modulemode = MODULEMODE_SWCTRL,
1125 * hdq / 1-wire serial interface controller
1128 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1130 .sysc_offs = 0x0014,
1131 .syss_offs = 0x0018,
1132 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1133 SYSS_HAS_RESET_STATUS),
1134 .sysc_fields = &omap_hwmod_sysc_type1,
1137 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1139 .sysc = &omap44xx_hdq1w_sysc,
1143 static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1145 .class = &omap44xx_hdq1w_hwmod_class,
1146 .clkdm_name = "l4_per_clkdm",
1147 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1148 .main_clk = "func_12m_fclk",
1151 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1152 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1153 .modulemode = MODULEMODE_SWCTRL,
1160 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1164 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1166 .sysc_offs = 0x0010,
1167 .syss_offs = 0x0014,
1168 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1169 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1170 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1171 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1172 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1173 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1174 .sysc_fields = &omap_hwmod_sysc_type1,
1177 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1179 .sysc = &omap44xx_hsi_sysc,
1183 static struct omap_hwmod omap44xx_hsi_hwmod = {
1185 .class = &omap44xx_hsi_hwmod_class,
1186 .clkdm_name = "l3_init_clkdm",
1187 .main_clk = "hsi_fck",
1190 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
1191 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
1192 .modulemode = MODULEMODE_HWCTRL,
1199 * imaging processor unit
1202 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1207 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
1208 { .name = "cpu0", .rst_shift = 0 },
1209 { .name = "cpu1", .rst_shift = 1 },
1212 static struct omap_hwmod omap44xx_ipu_hwmod = {
1214 .class = &omap44xx_ipu_hwmod_class,
1215 .clkdm_name = "ducati_clkdm",
1216 .rst_lines = omap44xx_ipu_resets,
1217 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
1218 .main_clk = "ducati_clk_mux_ck",
1221 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1222 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1223 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1224 .modulemode = MODULEMODE_HWCTRL,
1231 * external images sensor pixel data processor
1234 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1236 .sysc_offs = 0x0010,
1238 * ISS needs 100 OCP clk cycles delay after a softreset before
1239 * accessing sysconfig again.
1240 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1241 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1243 * TODO: Indicate errata when available.
1246 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1247 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1248 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1249 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1250 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1251 .sysc_fields = &omap_hwmod_sysc_type2,
1254 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1256 .sysc = &omap44xx_iss_sysc,
1260 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1261 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1264 static struct omap_hwmod omap44xx_iss_hwmod = {
1266 .class = &omap44xx_iss_hwmod_class,
1267 .clkdm_name = "iss_clkdm",
1268 .main_clk = "ducati_clk_mux_ck",
1271 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
1272 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
1273 .modulemode = MODULEMODE_SWCTRL,
1276 .opt_clks = iss_opt_clks,
1277 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
1282 * multi-standard video encoder/decoder hardware accelerator
1285 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1290 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1291 { .name = "seq0", .rst_shift = 0 },
1292 { .name = "seq1", .rst_shift = 1 },
1293 { .name = "logic", .rst_shift = 2 },
1296 static struct omap_hwmod omap44xx_iva_hwmod = {
1298 .class = &omap44xx_iva_hwmod_class,
1299 .clkdm_name = "ivahd_clkdm",
1300 .rst_lines = omap44xx_iva_resets,
1301 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1302 .main_clk = "dpll_iva_m5x2_ck",
1305 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
1306 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
1307 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
1308 .modulemode = MODULEMODE_HWCTRL,
1315 * keyboard controller
1318 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1320 .sysc_offs = 0x0010,
1321 .syss_offs = 0x0014,
1322 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1323 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1324 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1325 SYSS_HAS_RESET_STATUS),
1326 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1327 .sysc_fields = &omap_hwmod_sysc_type1,
1330 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1332 .sysc = &omap44xx_kbd_sysc,
1336 static struct omap_hwmod omap44xx_kbd_hwmod = {
1338 .class = &omap44xx_kbd_hwmod_class,
1339 .clkdm_name = "l4_wkup_clkdm",
1340 .main_clk = "sys_32k_ck",
1343 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
1344 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
1345 .modulemode = MODULEMODE_SWCTRL,
1352 * mailbox module allowing communication between the on-chip processors using a
1353 * queued mailbox-interrupt mechanism.
1356 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1358 .sysc_offs = 0x0010,
1359 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1360 SYSC_HAS_SOFTRESET),
1361 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1362 .sysc_fields = &omap_hwmod_sysc_type2,
1365 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1367 .sysc = &omap44xx_mailbox_sysc,
1371 static struct omap_hwmod omap44xx_mailbox_hwmod = {
1373 .class = &omap44xx_mailbox_hwmod_class,
1374 .clkdm_name = "l4_cfg_clkdm",
1377 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
1378 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
1385 * multi-channel audio serial port controller
1388 /* The IP is not compliant to type1 / type2 scheme */
1389 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1391 .sysc_offs = 0x0004,
1392 .sysc_flags = SYSC_HAS_SIDLEMODE,
1393 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1395 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1398 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1400 .sysc = &omap44xx_mcasp_sysc,
1404 static struct omap_hwmod omap44xx_mcasp_hwmod = {
1406 .class = &omap44xx_mcasp_hwmod_class,
1407 .clkdm_name = "abe_clkdm",
1408 .main_clk = "func_mcasp_abe_gfclk",
1411 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1412 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1413 .modulemode = MODULEMODE_SWCTRL,
1420 * multi channel buffered serial port controller
1423 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1424 .rev_offs = -ENODEV,
1425 .sysc_offs = 0x008c,
1426 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1427 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1428 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1429 .sysc_fields = &omap_hwmod_sysc_type1,
1432 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1434 .sysc = &omap44xx_mcbsp_sysc,
1438 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1439 { .role = "pad_fck", .clk = "pad_clks_ck" },
1440 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
1443 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1445 .class = &omap44xx_mcbsp_hwmod_class,
1446 .clkdm_name = "abe_clkdm",
1447 .main_clk = "func_mcbsp1_gfclk",
1450 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
1451 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
1452 .modulemode = MODULEMODE_SWCTRL,
1455 .opt_clks = mcbsp1_opt_clks,
1456 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
1460 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1461 { .role = "pad_fck", .clk = "pad_clks_ck" },
1462 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
1465 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1467 .class = &omap44xx_mcbsp_hwmod_class,
1468 .clkdm_name = "abe_clkdm",
1469 .main_clk = "func_mcbsp2_gfclk",
1472 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
1473 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
1474 .modulemode = MODULEMODE_SWCTRL,
1477 .opt_clks = mcbsp2_opt_clks,
1478 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
1482 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1483 { .role = "pad_fck", .clk = "pad_clks_ck" },
1484 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
1487 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1489 .class = &omap44xx_mcbsp_hwmod_class,
1490 .clkdm_name = "abe_clkdm",
1491 .main_clk = "func_mcbsp3_gfclk",
1494 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
1495 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
1496 .modulemode = MODULEMODE_SWCTRL,
1499 .opt_clks = mcbsp3_opt_clks,
1500 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
1504 static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1505 { .role = "pad_fck", .clk = "pad_clks_ck" },
1506 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
1509 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1511 .class = &omap44xx_mcbsp_hwmod_class,
1512 .clkdm_name = "l4_per_clkdm",
1513 .main_clk = "per_mcbsp4_gfclk",
1516 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
1517 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
1518 .modulemode = MODULEMODE_SWCTRL,
1521 .opt_clks = mcbsp4_opt_clks,
1522 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
1527 * multi channel pdm controller (proprietary interface with phoenix power
1531 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1533 .sysc_offs = 0x0010,
1534 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1535 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1536 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1538 .sysc_fields = &omap_hwmod_sysc_type2,
1541 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1543 .sysc = &omap44xx_mcpdm_sysc,
1547 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1549 .class = &omap44xx_mcpdm_hwmod_class,
1550 .clkdm_name = "abe_clkdm",
1552 * It's suspected that the McPDM requires an off-chip main
1553 * functional clock, controlled via I2C. This IP block is
1554 * currently reset very early during boot, before I2C is
1555 * available, so it doesn't seem that we have any choice in
1556 * the kernel other than to avoid resetting it.
1558 * Also, McPDM needs to be configured to NO_IDLE mode when it
1559 * is in used otherwise vital clocks will be gated which
1560 * results 'slow motion' audio playback.
1562 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1563 .main_clk = "pad_clks_ck",
1566 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
1567 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
1568 .modulemode = MODULEMODE_SWCTRL,
1575 * The memory management unit performs virtual to physical address translation
1576 * for its requestors.
1579 static struct omap_hwmod_class_sysconfig mmu_sysc = {
1583 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1584 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1585 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1586 .sysc_fields = &omap_hwmod_sysc_type1,
1589 static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
1596 static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
1597 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
1598 { .name = "mmu_cache", .rst_shift = 2 },
1601 /* l3_main_2 -> mmu_ipu */
1602 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
1603 .master = &omap44xx_l3_main_2_hwmod,
1604 .slave = &omap44xx_mmu_ipu_hwmod,
1606 .user = OCP_USER_MPU | OCP_USER_SDMA,
1609 static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
1611 .class = &omap44xx_mmu_hwmod_class,
1612 .clkdm_name = "ducati_clkdm",
1613 .rst_lines = omap44xx_mmu_ipu_resets,
1614 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
1615 .main_clk = "ducati_clk_mux_ck",
1618 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1619 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1620 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1621 .modulemode = MODULEMODE_HWCTRL,
1628 static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
1629 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
1630 { .name = "mmu_cache", .rst_shift = 1 },
1634 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
1635 .master = &omap44xx_l4_cfg_hwmod,
1636 .slave = &omap44xx_mmu_dsp_hwmod,
1638 .user = OCP_USER_MPU | OCP_USER_SDMA,
1641 static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
1643 .class = &omap44xx_mmu_hwmod_class,
1644 .clkdm_name = "tesla_clkdm",
1645 .rst_lines = omap44xx_mmu_dsp_resets,
1646 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
1647 .main_clk = "dpll_iva_m4x2_ck",
1650 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
1651 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
1652 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
1653 .modulemode = MODULEMODE_HWCTRL,
1663 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1668 static struct omap_hwmod omap44xx_mpu_hwmod = {
1670 .class = &omap44xx_mpu_hwmod_class,
1671 .clkdm_name = "mpuss_clkdm",
1672 .flags = HWMOD_INIT_NO_IDLE,
1673 .main_clk = "dpll_mpu_m2_ck",
1676 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
1677 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
1684 * top-level core on-chip ram
1687 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
1692 static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
1694 .class = &omap44xx_ocmc_ram_hwmod_class,
1695 .clkdm_name = "l3_2_clkdm",
1698 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
1699 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
1706 * bridge to transform ocp interface protocol to scp (serial control port)
1710 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
1712 .sysc_offs = 0x0010,
1713 .syss_offs = 0x0014,
1714 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1715 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1716 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1717 .sysc_fields = &omap_hwmod_sysc_type1,
1720 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
1722 .sysc = &omap44xx_ocp2scp_sysc,
1725 /* ocp2scp_usb_phy */
1726 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
1727 .name = "ocp2scp_usb_phy",
1728 .class = &omap44xx_ocp2scp_hwmod_class,
1729 .clkdm_name = "l3_init_clkdm",
1731 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
1732 * block as an "optional clock," and normally should never be
1733 * specified as the main_clk for an OMAP IP block. However it
1734 * turns out that this clock is actually the main clock for
1735 * the ocp2scp_usb_phy IP block:
1736 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
1737 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
1738 * to be the best workaround.
1740 .main_clk = "ocp2scp_usb_phy_phy_48m",
1743 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
1744 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
1745 .modulemode = MODULEMODE_HWCTRL,
1752 * power and reset manager (part of the prcm infrastructure) + clock manager 2
1753 * + clock manager 1 (in always on power domain) + local prm in mpu
1756 static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
1761 static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
1763 .class = &omap44xx_prcm_hwmod_class,
1764 .clkdm_name = "l4_wkup_clkdm",
1765 .flags = HWMOD_NO_IDLEST,
1768 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1774 static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
1775 .name = "cm_core_aon",
1776 .class = &omap44xx_prcm_hwmod_class,
1777 .flags = HWMOD_NO_IDLEST,
1780 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1786 static struct omap_hwmod omap44xx_cm_core_hwmod = {
1788 .class = &omap44xx_prcm_hwmod_class,
1789 .flags = HWMOD_NO_IDLEST,
1792 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1798 static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
1799 { .name = "rst_global_warm_sw", .rst_shift = 0 },
1800 { .name = "rst_global_cold_sw", .rst_shift = 1 },
1803 static struct omap_hwmod omap44xx_prm_hwmod = {
1805 .class = &omap44xx_prcm_hwmod_class,
1806 .rst_lines = omap44xx_prm_resets,
1807 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
1812 * system clock and reset manager
1815 static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
1820 static struct omap_hwmod omap44xx_scrm_hwmod = {
1822 .class = &omap44xx_scrm_hwmod_class,
1823 .clkdm_name = "l4_wkup_clkdm",
1826 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1833 * shared level 2 memory interface
1836 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
1841 static struct omap_hwmod omap44xx_sl2if_hwmod = {
1843 .class = &omap44xx_sl2if_hwmod_class,
1844 .clkdm_name = "ivahd_clkdm",
1847 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
1848 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
1849 .modulemode = MODULEMODE_HWCTRL,
1856 * bidirectional, multi-drop, multi-channel two-line serial interface between
1857 * the device and external components
1860 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
1862 .sysc_offs = 0x0010,
1863 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1864 SYSC_HAS_SOFTRESET),
1865 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1867 .sysc_fields = &omap_hwmod_sysc_type2,
1870 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
1872 .sysc = &omap44xx_slimbus_sysc,
1876 static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
1877 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
1878 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
1879 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
1880 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
1883 static struct omap_hwmod omap44xx_slimbus1_hwmod = {
1885 .class = &omap44xx_slimbus_hwmod_class,
1886 .clkdm_name = "abe_clkdm",
1889 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
1890 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
1891 .modulemode = MODULEMODE_SWCTRL,
1894 .opt_clks = slimbus1_opt_clks,
1895 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
1899 static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
1900 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
1901 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
1902 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
1905 static struct omap_hwmod omap44xx_slimbus2_hwmod = {
1907 .class = &omap44xx_slimbus_hwmod_class,
1908 .clkdm_name = "l4_per_clkdm",
1911 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
1912 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
1913 .modulemode = MODULEMODE_SWCTRL,
1916 .opt_clks = slimbus2_opt_clks,
1917 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
1921 * 'smartreflex' class
1922 * smartreflex module (monitor silicon performance and outputs a measure of
1923 * performance error)
1926 /* The IP is not compliant to type1 / type2 scheme */
1927 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1928 .rev_offs = -ENODEV,
1929 .sysc_offs = 0x0038,
1930 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1931 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1933 .sysc_fields = &omap36xx_sr_sysc_fields,
1936 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1937 .name = "smartreflex",
1938 .sysc = &omap44xx_smartreflex_sysc,
1941 /* smartreflex_core */
1942 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
1943 .sensor_voltdm_name = "core",
1946 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1947 .name = "smartreflex_core",
1948 .class = &omap44xx_smartreflex_hwmod_class,
1949 .clkdm_name = "l4_ao_clkdm",
1951 .main_clk = "smartreflex_core_fck",
1954 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
1955 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
1956 .modulemode = MODULEMODE_SWCTRL,
1959 .dev_attr = &smartreflex_core_dev_attr,
1962 /* smartreflex_iva */
1963 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
1964 .sensor_voltdm_name = "iva",
1967 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1968 .name = "smartreflex_iva",
1969 .class = &omap44xx_smartreflex_hwmod_class,
1970 .clkdm_name = "l4_ao_clkdm",
1971 .main_clk = "smartreflex_iva_fck",
1974 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
1975 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
1976 .modulemode = MODULEMODE_SWCTRL,
1979 .dev_attr = &smartreflex_iva_dev_attr,
1982 /* smartreflex_mpu */
1983 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
1984 .sensor_voltdm_name = "mpu",
1987 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1988 .name = "smartreflex_mpu",
1989 .class = &omap44xx_smartreflex_hwmod_class,
1990 .clkdm_name = "l4_ao_clkdm",
1991 .main_clk = "smartreflex_mpu_fck",
1994 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
1995 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
1996 .modulemode = MODULEMODE_SWCTRL,
1999 .dev_attr = &smartreflex_mpu_dev_attr,
2004 * spinlock provides hardware assistance for synchronizing the processes
2005 * running on multiple processors
2008 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2010 .sysc_offs = 0x0010,
2011 .syss_offs = 0x0014,
2012 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2013 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2014 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2015 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2016 .sysc_fields = &omap_hwmod_sysc_type1,
2019 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2021 .sysc = &omap44xx_spinlock_sysc,
2025 static struct omap_hwmod omap44xx_spinlock_hwmod = {
2027 .class = &omap44xx_spinlock_hwmod_class,
2028 .clkdm_name = "l4_cfg_clkdm",
2031 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
2032 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
2039 * general purpose timer module with accurate 1ms tick
2040 * This class contains several variants: ['timer_1ms', 'timer']
2043 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2045 .sysc_offs = 0x0010,
2046 .syss_offs = 0x0014,
2047 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2048 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2049 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2050 SYSS_HAS_RESET_STATUS),
2051 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2052 .sysc_fields = &omap_hwmod_sysc_type1,
2055 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2057 .sysc = &omap44xx_timer_1ms_sysc,
2060 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2062 .sysc_offs = 0x0010,
2063 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2064 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2065 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2067 .sysc_fields = &omap_hwmod_sysc_type2,
2070 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2072 .sysc = &omap44xx_timer_sysc,
2076 static struct omap_hwmod omap44xx_timer1_hwmod = {
2078 .class = &omap44xx_timer_1ms_hwmod_class,
2079 .clkdm_name = "l4_wkup_clkdm",
2080 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2081 .main_clk = "dmt1_clk_mux",
2084 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
2085 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
2086 .modulemode = MODULEMODE_SWCTRL,
2092 static struct omap_hwmod omap44xx_timer2_hwmod = {
2094 .class = &omap44xx_timer_1ms_hwmod_class,
2095 .clkdm_name = "l4_per_clkdm",
2096 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2097 .main_clk = "cm2_dm2_mux",
2100 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
2101 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
2102 .modulemode = MODULEMODE_SWCTRL,
2108 static struct omap_hwmod omap44xx_timer3_hwmod = {
2110 .class = &omap44xx_timer_hwmod_class,
2111 .clkdm_name = "l4_per_clkdm",
2112 .main_clk = "cm2_dm3_mux",
2115 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
2116 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
2117 .modulemode = MODULEMODE_SWCTRL,
2123 static struct omap_hwmod omap44xx_timer4_hwmod = {
2125 .class = &omap44xx_timer_hwmod_class,
2126 .clkdm_name = "l4_per_clkdm",
2127 .main_clk = "cm2_dm4_mux",
2130 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
2131 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
2132 .modulemode = MODULEMODE_SWCTRL,
2138 static struct omap_hwmod omap44xx_timer5_hwmod = {
2140 .class = &omap44xx_timer_hwmod_class,
2141 .clkdm_name = "abe_clkdm",
2142 .main_clk = "timer5_sync_mux",
2145 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
2146 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
2147 .modulemode = MODULEMODE_SWCTRL,
2153 static struct omap_hwmod omap44xx_timer6_hwmod = {
2155 .class = &omap44xx_timer_hwmod_class,
2156 .clkdm_name = "abe_clkdm",
2157 .main_clk = "timer6_sync_mux",
2160 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
2161 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
2162 .modulemode = MODULEMODE_SWCTRL,
2168 static struct omap_hwmod omap44xx_timer7_hwmod = {
2170 .class = &omap44xx_timer_hwmod_class,
2171 .clkdm_name = "abe_clkdm",
2172 .main_clk = "timer7_sync_mux",
2175 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
2176 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
2177 .modulemode = MODULEMODE_SWCTRL,
2183 static struct omap_hwmod omap44xx_timer8_hwmod = {
2185 .class = &omap44xx_timer_hwmod_class,
2186 .clkdm_name = "abe_clkdm",
2187 .main_clk = "timer8_sync_mux",
2190 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
2191 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
2192 .modulemode = MODULEMODE_SWCTRL,
2198 static struct omap_hwmod omap44xx_timer9_hwmod = {
2200 .class = &omap44xx_timer_hwmod_class,
2201 .clkdm_name = "l4_per_clkdm",
2202 .main_clk = "cm2_dm9_mux",
2205 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
2206 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
2207 .modulemode = MODULEMODE_SWCTRL,
2213 static struct omap_hwmod omap44xx_timer10_hwmod = {
2215 .class = &omap44xx_timer_1ms_hwmod_class,
2216 .clkdm_name = "l4_per_clkdm",
2217 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2218 .main_clk = "cm2_dm10_mux",
2221 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
2222 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
2223 .modulemode = MODULEMODE_SWCTRL,
2229 static struct omap_hwmod omap44xx_timer11_hwmod = {
2231 .class = &omap44xx_timer_hwmod_class,
2232 .clkdm_name = "l4_per_clkdm",
2233 .main_clk = "cm2_dm11_mux",
2236 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
2237 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
2238 .modulemode = MODULEMODE_SWCTRL,
2244 * 'usb_host_fs' class
2245 * full-speed usb host controller
2248 /* The IP is not compliant to type1 / type2 scheme */
2249 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2251 .sysc_offs = 0x0210,
2252 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2253 SYSC_HAS_SOFTRESET),
2254 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2256 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2259 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2260 .name = "usb_host_fs",
2261 .sysc = &omap44xx_usb_host_fs_sysc,
2265 static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2266 .name = "usb_host_fs",
2267 .class = &omap44xx_usb_host_fs_hwmod_class,
2268 .clkdm_name = "l3_init_clkdm",
2269 .main_clk = "usb_host_fs_fck",
2272 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2273 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2274 .modulemode = MODULEMODE_SWCTRL,
2280 * 'usb_host_hs' class
2281 * high-speed multi-port usb host controller
2284 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2286 .sysc_offs = 0x0010,
2287 .syss_offs = 0x0014,
2288 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2289 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
2290 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2291 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2292 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2293 .sysc_fields = &omap_hwmod_sysc_type2,
2296 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
2297 .name = "usb_host_hs",
2298 .sysc = &omap44xx_usb_host_hs_sysc,
2302 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2303 .name = "usb_host_hs",
2304 .class = &omap44xx_usb_host_hs_hwmod_class,
2305 .clkdm_name = "l3_init_clkdm",
2306 .main_clk = "usb_host_hs_fck",
2309 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2310 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2311 .modulemode = MODULEMODE_SWCTRL,
2316 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2320 * In the following configuration :
2321 * - USBHOST module is set to smart-idle mode
2322 * - PRCM asserts idle_req to the USBHOST module ( This typically
2323 * happens when the system is going to a low power mode : all ports
2324 * have been suspended, the master part of the USBHOST module has
2325 * entered the standby state, and SW has cut the functional clocks)
2326 * - an USBHOST interrupt occurs before the module is able to answer
2327 * idle_ack, typically a remote wakeup IRQ.
2328 * Then the USB HOST module will enter a deadlock situation where it
2329 * is no more accessible nor functional.
2332 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2336 * Errata: USB host EHCI may stall when entering smart-standby mode
2340 * When the USBHOST module is set to smart-standby mode, and when it is
2341 * ready to enter the standby state (i.e. all ports are suspended and
2342 * all attached devices are in suspend mode), then it can wrongly assert
2343 * the Mstandby signal too early while there are still some residual OCP
2344 * transactions ongoing. If this condition occurs, the internal state
2345 * machine may go to an undefined state and the USB link may be stuck
2346 * upon the next resume.
2349 * Don't use smart standby; use only force standby,
2350 * hence HWMOD_SWSUP_MSTANDBY
2353 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2357 * 'usb_otg_hs' class
2358 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2361 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
2363 .sysc_offs = 0x0404,
2364 .syss_offs = 0x0408,
2365 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2366 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2367 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2368 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2369 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2371 .sysc_fields = &omap_hwmod_sysc_type1,
2374 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
2375 .name = "usb_otg_hs",
2376 .sysc = &omap44xx_usb_otg_hs_sysc,
2380 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
2381 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
2384 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
2385 .name = "usb_otg_hs",
2386 .class = &omap44xx_usb_otg_hs_hwmod_class,
2387 .clkdm_name = "l3_init_clkdm",
2388 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2389 .main_clk = "usb_otg_hs_ick",
2392 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
2393 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
2394 .modulemode = MODULEMODE_HWCTRL,
2397 .opt_clks = usb_otg_hs_opt_clks,
2398 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
2402 * 'usb_tll_hs' class
2403 * usb_tll_hs module is the adapter on the usb_host_hs ports
2406 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
2408 .sysc_offs = 0x0010,
2409 .syss_offs = 0x0014,
2410 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2411 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2413 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2414 .sysc_fields = &omap_hwmod_sysc_type1,
2417 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
2418 .name = "usb_tll_hs",
2419 .sysc = &omap44xx_usb_tll_hs_sysc,
2422 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
2423 .name = "usb_tll_hs",
2424 .class = &omap44xx_usb_tll_hs_hwmod_class,
2425 .clkdm_name = "l3_init_clkdm",
2426 .main_clk = "usb_tll_hs_ick",
2429 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
2430 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
2431 .modulemode = MODULEMODE_HWCTRL,
2438 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
2439 * overflow condition
2442 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
2444 .sysc_offs = 0x0010,
2445 .syss_offs = 0x0014,
2446 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2447 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2448 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2450 .sysc_fields = &omap_hwmod_sysc_type1,
2453 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
2455 .sysc = &omap44xx_wd_timer_sysc,
2456 .pre_shutdown = &omap2_wd_timer_disable,
2457 .reset = &omap2_wd_timer_reset,
2461 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
2462 .name = "wd_timer2",
2463 .class = &omap44xx_wd_timer_hwmod_class,
2464 .clkdm_name = "l4_wkup_clkdm",
2465 .main_clk = "sys_32k_ck",
2468 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
2469 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
2470 .modulemode = MODULEMODE_SWCTRL,
2476 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
2477 .name = "wd_timer3",
2478 .class = &omap44xx_wd_timer_hwmod_class,
2479 .clkdm_name = "abe_clkdm",
2480 .main_clk = "sys_32k_ck",
2483 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
2484 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
2485 .modulemode = MODULEMODE_SWCTRL,
2495 /* l3_main_1 -> dmm */
2496 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
2497 .master = &omap44xx_l3_main_1_hwmod,
2498 .slave = &omap44xx_dmm_hwmod,
2500 .user = OCP_USER_SDMA,
2504 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
2505 .master = &omap44xx_mpu_hwmod,
2506 .slave = &omap44xx_dmm_hwmod,
2508 .user = OCP_USER_MPU,
2511 /* iva -> l3_instr */
2512 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
2513 .master = &omap44xx_iva_hwmod,
2514 .slave = &omap44xx_l3_instr_hwmod,
2516 .user = OCP_USER_MPU | OCP_USER_SDMA,
2519 /* l3_main_3 -> l3_instr */
2520 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
2521 .master = &omap44xx_l3_main_3_hwmod,
2522 .slave = &omap44xx_l3_instr_hwmod,
2524 .user = OCP_USER_MPU | OCP_USER_SDMA,
2527 /* ocp_wp_noc -> l3_instr */
2528 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
2529 .master = &omap44xx_ocp_wp_noc_hwmod,
2530 .slave = &omap44xx_l3_instr_hwmod,
2532 .user = OCP_USER_MPU | OCP_USER_SDMA,
2535 /* dsp -> l3_main_1 */
2536 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
2537 .master = &omap44xx_dsp_hwmod,
2538 .slave = &omap44xx_l3_main_1_hwmod,
2540 .user = OCP_USER_MPU | OCP_USER_SDMA,
2543 /* dss -> l3_main_1 */
2544 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
2545 .master = &omap44xx_dss_hwmod,
2546 .slave = &omap44xx_l3_main_1_hwmod,
2548 .user = OCP_USER_MPU | OCP_USER_SDMA,
2551 /* l3_main_2 -> l3_main_1 */
2552 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
2553 .master = &omap44xx_l3_main_2_hwmod,
2554 .slave = &omap44xx_l3_main_1_hwmod,
2556 .user = OCP_USER_MPU | OCP_USER_SDMA,
2559 /* l4_cfg -> l3_main_1 */
2560 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
2561 .master = &omap44xx_l4_cfg_hwmod,
2562 .slave = &omap44xx_l3_main_1_hwmod,
2564 .user = OCP_USER_MPU | OCP_USER_SDMA,
2567 /* mpu -> l3_main_1 */
2568 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
2569 .master = &omap44xx_mpu_hwmod,
2570 .slave = &omap44xx_l3_main_1_hwmod,
2572 .user = OCP_USER_MPU,
2575 /* debugss -> l3_main_2 */
2576 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
2577 .master = &omap44xx_debugss_hwmod,
2578 .slave = &omap44xx_l3_main_2_hwmod,
2579 .clk = "dbgclk_mux_ck",
2580 .user = OCP_USER_MPU | OCP_USER_SDMA,
2583 /* dma_system -> l3_main_2 */
2584 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
2585 .master = &omap44xx_dma_system_hwmod,
2586 .slave = &omap44xx_l3_main_2_hwmod,
2588 .user = OCP_USER_MPU | OCP_USER_SDMA,
2591 /* fdif -> l3_main_2 */
2592 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
2593 .master = &omap44xx_fdif_hwmod,
2594 .slave = &omap44xx_l3_main_2_hwmod,
2596 .user = OCP_USER_MPU | OCP_USER_SDMA,
2599 /* gpu -> l3_main_2 */
2600 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
2601 .master = &omap44xx_gpu_hwmod,
2602 .slave = &omap44xx_l3_main_2_hwmod,
2604 .user = OCP_USER_MPU | OCP_USER_SDMA,
2607 /* hsi -> l3_main_2 */
2608 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
2609 .master = &omap44xx_hsi_hwmod,
2610 .slave = &omap44xx_l3_main_2_hwmod,
2612 .user = OCP_USER_MPU | OCP_USER_SDMA,
2615 /* ipu -> l3_main_2 */
2616 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
2617 .master = &omap44xx_ipu_hwmod,
2618 .slave = &omap44xx_l3_main_2_hwmod,
2620 .user = OCP_USER_MPU | OCP_USER_SDMA,
2623 /* iss -> l3_main_2 */
2624 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
2625 .master = &omap44xx_iss_hwmod,
2626 .slave = &omap44xx_l3_main_2_hwmod,
2628 .user = OCP_USER_MPU | OCP_USER_SDMA,
2631 /* iva -> l3_main_2 */
2632 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
2633 .master = &omap44xx_iva_hwmod,
2634 .slave = &omap44xx_l3_main_2_hwmod,
2636 .user = OCP_USER_MPU | OCP_USER_SDMA,
2639 /* l3_main_1 -> l3_main_2 */
2640 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
2641 .master = &omap44xx_l3_main_1_hwmod,
2642 .slave = &omap44xx_l3_main_2_hwmod,
2644 .user = OCP_USER_MPU,
2647 /* l4_cfg -> l3_main_2 */
2648 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
2649 .master = &omap44xx_l4_cfg_hwmod,
2650 .slave = &omap44xx_l3_main_2_hwmod,
2652 .user = OCP_USER_MPU | OCP_USER_SDMA,
2655 /* usb_host_fs -> l3_main_2 */
2656 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
2657 .master = &omap44xx_usb_host_fs_hwmod,
2658 .slave = &omap44xx_l3_main_2_hwmod,
2660 .user = OCP_USER_MPU | OCP_USER_SDMA,
2663 /* usb_host_hs -> l3_main_2 */
2664 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
2665 .master = &omap44xx_usb_host_hs_hwmod,
2666 .slave = &omap44xx_l3_main_2_hwmod,
2668 .user = OCP_USER_MPU | OCP_USER_SDMA,
2671 /* usb_otg_hs -> l3_main_2 */
2672 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
2673 .master = &omap44xx_usb_otg_hs_hwmod,
2674 .slave = &omap44xx_l3_main_2_hwmod,
2676 .user = OCP_USER_MPU | OCP_USER_SDMA,
2679 /* l3_main_1 -> l3_main_3 */
2680 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
2681 .master = &omap44xx_l3_main_1_hwmod,
2682 .slave = &omap44xx_l3_main_3_hwmod,
2684 .user = OCP_USER_MPU,
2687 /* l3_main_2 -> l3_main_3 */
2688 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
2689 .master = &omap44xx_l3_main_2_hwmod,
2690 .slave = &omap44xx_l3_main_3_hwmod,
2692 .user = OCP_USER_MPU | OCP_USER_SDMA,
2695 /* l4_cfg -> l3_main_3 */
2696 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
2697 .master = &omap44xx_l4_cfg_hwmod,
2698 .slave = &omap44xx_l3_main_3_hwmod,
2700 .user = OCP_USER_MPU | OCP_USER_SDMA,
2703 /* aess -> l4_abe */
2704 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
2705 .master = &omap44xx_aess_hwmod,
2706 .slave = &omap44xx_l4_abe_hwmod,
2707 .clk = "ocp_abe_iclk",
2708 .user = OCP_USER_MPU | OCP_USER_SDMA,
2712 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
2713 .master = &omap44xx_dsp_hwmod,
2714 .slave = &omap44xx_l4_abe_hwmod,
2715 .clk = "ocp_abe_iclk",
2716 .user = OCP_USER_MPU | OCP_USER_SDMA,
2719 /* l3_main_1 -> l4_abe */
2720 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
2721 .master = &omap44xx_l3_main_1_hwmod,
2722 .slave = &omap44xx_l4_abe_hwmod,
2724 .user = OCP_USER_MPU | OCP_USER_SDMA,
2728 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
2729 .master = &omap44xx_mpu_hwmod,
2730 .slave = &omap44xx_l4_abe_hwmod,
2731 .clk = "ocp_abe_iclk",
2732 .user = OCP_USER_MPU | OCP_USER_SDMA,
2735 /* l3_main_1 -> l4_cfg */
2736 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
2737 .master = &omap44xx_l3_main_1_hwmod,
2738 .slave = &omap44xx_l4_cfg_hwmod,
2740 .user = OCP_USER_MPU | OCP_USER_SDMA,
2743 /* l3_main_2 -> l4_per */
2744 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
2745 .master = &omap44xx_l3_main_2_hwmod,
2746 .slave = &omap44xx_l4_per_hwmod,
2748 .user = OCP_USER_MPU | OCP_USER_SDMA,
2751 /* l4_cfg -> l4_wkup */
2752 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
2753 .master = &omap44xx_l4_cfg_hwmod,
2754 .slave = &omap44xx_l4_wkup_hwmod,
2756 .user = OCP_USER_MPU | OCP_USER_SDMA,
2759 /* mpu -> mpu_private */
2760 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
2761 .master = &omap44xx_mpu_hwmod,
2762 .slave = &omap44xx_mpu_private_hwmod,
2764 .user = OCP_USER_MPU | OCP_USER_SDMA,
2767 /* l4_cfg -> ocp_wp_noc */
2768 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
2769 .master = &omap44xx_l4_cfg_hwmod,
2770 .slave = &omap44xx_ocp_wp_noc_hwmod,
2772 .user = OCP_USER_MPU | OCP_USER_SDMA,
2775 /* l4_abe -> aess */
2776 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
2777 .master = &omap44xx_l4_abe_hwmod,
2778 .slave = &omap44xx_aess_hwmod,
2779 .clk = "ocp_abe_iclk",
2780 .user = OCP_USER_MPU,
2783 /* l4_abe -> aess (dma) */
2784 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
2785 .master = &omap44xx_l4_abe_hwmod,
2786 .slave = &omap44xx_aess_hwmod,
2787 .clk = "ocp_abe_iclk",
2788 .user = OCP_USER_SDMA,
2791 /* l3_main_2 -> c2c */
2792 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
2793 .master = &omap44xx_l3_main_2_hwmod,
2794 .slave = &omap44xx_c2c_hwmod,
2796 .user = OCP_USER_MPU | OCP_USER_SDMA,
2799 /* l4_wkup -> counter_32k */
2800 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
2801 .master = &omap44xx_l4_wkup_hwmod,
2802 .slave = &omap44xx_counter_32k_hwmod,
2803 .clk = "l4_wkup_clk_mux_ck",
2804 .user = OCP_USER_MPU | OCP_USER_SDMA,
2807 /* l4_cfg -> ctrl_module_core */
2808 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
2809 .master = &omap44xx_l4_cfg_hwmod,
2810 .slave = &omap44xx_ctrl_module_core_hwmod,
2812 .user = OCP_USER_MPU | OCP_USER_SDMA,
2815 /* l4_cfg -> ctrl_module_pad_core */
2816 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
2817 .master = &omap44xx_l4_cfg_hwmod,
2818 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
2820 .user = OCP_USER_MPU | OCP_USER_SDMA,
2823 /* l4_wkup -> ctrl_module_wkup */
2824 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
2825 .master = &omap44xx_l4_wkup_hwmod,
2826 .slave = &omap44xx_ctrl_module_wkup_hwmod,
2827 .clk = "l4_wkup_clk_mux_ck",
2828 .user = OCP_USER_MPU | OCP_USER_SDMA,
2831 /* l4_wkup -> ctrl_module_pad_wkup */
2832 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
2833 .master = &omap44xx_l4_wkup_hwmod,
2834 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
2835 .clk = "l4_wkup_clk_mux_ck",
2836 .user = OCP_USER_MPU | OCP_USER_SDMA,
2839 /* l3_instr -> debugss */
2840 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
2841 .master = &omap44xx_l3_instr_hwmod,
2842 .slave = &omap44xx_debugss_hwmod,
2844 .user = OCP_USER_MPU | OCP_USER_SDMA,
2847 /* l4_cfg -> dma_system */
2848 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
2849 .master = &omap44xx_l4_cfg_hwmod,
2850 .slave = &omap44xx_dma_system_hwmod,
2852 .user = OCP_USER_MPU | OCP_USER_SDMA,
2855 /* l4_abe -> dmic */
2856 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
2857 .master = &omap44xx_l4_abe_hwmod,
2858 .slave = &omap44xx_dmic_hwmod,
2859 .clk = "ocp_abe_iclk",
2860 .user = OCP_USER_MPU | OCP_USER_SDMA,
2864 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
2865 .master = &omap44xx_dsp_hwmod,
2866 .slave = &omap44xx_iva_hwmod,
2867 .clk = "dpll_iva_m5x2_ck",
2868 .user = OCP_USER_DSP,
2872 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
2873 .master = &omap44xx_dsp_hwmod,
2874 .slave = &omap44xx_sl2if_hwmod,
2875 .clk = "dpll_iva_m5x2_ck",
2876 .user = OCP_USER_DSP,
2880 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
2881 .master = &omap44xx_l4_cfg_hwmod,
2882 .slave = &omap44xx_dsp_hwmod,
2884 .user = OCP_USER_MPU | OCP_USER_SDMA,
2887 /* l3_main_2 -> dss */
2888 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
2889 .master = &omap44xx_l3_main_2_hwmod,
2890 .slave = &omap44xx_dss_hwmod,
2892 .user = OCP_USER_SDMA,
2896 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
2897 .master = &omap44xx_l4_per_hwmod,
2898 .slave = &omap44xx_dss_hwmod,
2900 .user = OCP_USER_MPU,
2903 /* l3_main_2 -> dss_dispc */
2904 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
2905 .master = &omap44xx_l3_main_2_hwmod,
2906 .slave = &omap44xx_dss_dispc_hwmod,
2908 .user = OCP_USER_SDMA,
2911 /* l4_per -> dss_dispc */
2912 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
2913 .master = &omap44xx_l4_per_hwmod,
2914 .slave = &omap44xx_dss_dispc_hwmod,
2916 .user = OCP_USER_MPU,
2919 /* l3_main_2 -> dss_dsi1 */
2920 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
2921 .master = &omap44xx_l3_main_2_hwmod,
2922 .slave = &omap44xx_dss_dsi1_hwmod,
2924 .user = OCP_USER_SDMA,
2927 /* l4_per -> dss_dsi1 */
2928 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
2929 .master = &omap44xx_l4_per_hwmod,
2930 .slave = &omap44xx_dss_dsi1_hwmod,
2932 .user = OCP_USER_MPU,
2935 /* l3_main_2 -> dss_dsi2 */
2936 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
2937 .master = &omap44xx_l3_main_2_hwmod,
2938 .slave = &omap44xx_dss_dsi2_hwmod,
2940 .user = OCP_USER_SDMA,
2943 /* l4_per -> dss_dsi2 */
2944 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
2945 .master = &omap44xx_l4_per_hwmod,
2946 .slave = &omap44xx_dss_dsi2_hwmod,
2948 .user = OCP_USER_MPU,
2951 /* l3_main_2 -> dss_hdmi */
2952 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
2953 .master = &omap44xx_l3_main_2_hwmod,
2954 .slave = &omap44xx_dss_hdmi_hwmod,
2956 .user = OCP_USER_SDMA,
2959 /* l4_per -> dss_hdmi */
2960 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
2961 .master = &omap44xx_l4_per_hwmod,
2962 .slave = &omap44xx_dss_hdmi_hwmod,
2964 .user = OCP_USER_MPU,
2967 /* l3_main_2 -> dss_rfbi */
2968 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
2969 .master = &omap44xx_l3_main_2_hwmod,
2970 .slave = &omap44xx_dss_rfbi_hwmod,
2972 .user = OCP_USER_SDMA,
2975 /* l4_per -> dss_rfbi */
2976 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
2977 .master = &omap44xx_l4_per_hwmod,
2978 .slave = &omap44xx_dss_rfbi_hwmod,
2980 .user = OCP_USER_MPU,
2983 /* l3_main_2 -> dss_venc */
2984 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
2985 .master = &omap44xx_l3_main_2_hwmod,
2986 .slave = &omap44xx_dss_venc_hwmod,
2988 .user = OCP_USER_SDMA,
2991 /* l4_per -> dss_venc */
2992 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
2993 .master = &omap44xx_l4_per_hwmod,
2994 .slave = &omap44xx_dss_venc_hwmod,
2996 .user = OCP_USER_MPU,
2999 /* l3_main_2 -> sham */
3000 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
3001 .master = &omap44xx_l3_main_2_hwmod,
3002 .slave = &omap44xx_sha0_hwmod,
3004 .user = OCP_USER_MPU | OCP_USER_SDMA,
3008 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3009 .master = &omap44xx_l4_per_hwmod,
3010 .slave = &omap44xx_elm_hwmod,
3012 .user = OCP_USER_MPU | OCP_USER_SDMA,
3015 /* l4_cfg -> fdif */
3016 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3017 .master = &omap44xx_l4_cfg_hwmod,
3018 .slave = &omap44xx_fdif_hwmod,
3020 .user = OCP_USER_MPU | OCP_USER_SDMA,
3023 /* l3_main_2 -> gpmc */
3024 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
3025 .master = &omap44xx_l3_main_2_hwmod,
3026 .slave = &omap44xx_gpmc_hwmod,
3028 .user = OCP_USER_MPU | OCP_USER_SDMA,
3031 /* l3_main_2 -> gpu */
3032 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
3033 .master = &omap44xx_l3_main_2_hwmod,
3034 .slave = &omap44xx_gpu_hwmod,
3036 .user = OCP_USER_MPU | OCP_USER_SDMA,
3039 /* l4_per -> hdq1w */
3040 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
3041 .master = &omap44xx_l4_per_hwmod,
3042 .slave = &omap44xx_hdq1w_hwmod,
3044 .user = OCP_USER_MPU | OCP_USER_SDMA,
3048 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
3049 .master = &omap44xx_l4_cfg_hwmod,
3050 .slave = &omap44xx_hsi_hwmod,
3052 .user = OCP_USER_MPU | OCP_USER_SDMA,
3055 /* l3_main_2 -> ipu */
3056 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
3057 .master = &omap44xx_l3_main_2_hwmod,
3058 .slave = &omap44xx_ipu_hwmod,
3060 .user = OCP_USER_MPU | OCP_USER_SDMA,
3063 /* l3_main_2 -> iss */
3064 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
3065 .master = &omap44xx_l3_main_2_hwmod,
3066 .slave = &omap44xx_iss_hwmod,
3068 .user = OCP_USER_MPU | OCP_USER_SDMA,
3072 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
3073 .master = &omap44xx_iva_hwmod,
3074 .slave = &omap44xx_sl2if_hwmod,
3075 .clk = "dpll_iva_m5x2_ck",
3076 .user = OCP_USER_IVA,
3079 /* l3_main_2 -> iva */
3080 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
3081 .master = &omap44xx_l3_main_2_hwmod,
3082 .slave = &omap44xx_iva_hwmod,
3084 .user = OCP_USER_MPU,
3087 /* l4_wkup -> kbd */
3088 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
3089 .master = &omap44xx_l4_wkup_hwmod,
3090 .slave = &omap44xx_kbd_hwmod,
3091 .clk = "l4_wkup_clk_mux_ck",
3092 .user = OCP_USER_MPU | OCP_USER_SDMA,
3095 /* l4_cfg -> mailbox */
3096 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
3097 .master = &omap44xx_l4_cfg_hwmod,
3098 .slave = &omap44xx_mailbox_hwmod,
3100 .user = OCP_USER_MPU | OCP_USER_SDMA,
3103 /* l4_abe -> mcasp */
3104 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
3105 .master = &omap44xx_l4_abe_hwmod,
3106 .slave = &omap44xx_mcasp_hwmod,
3107 .clk = "ocp_abe_iclk",
3108 .user = OCP_USER_MPU,
3111 /* l4_abe -> mcasp (dma) */
3112 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
3113 .master = &omap44xx_l4_abe_hwmod,
3114 .slave = &omap44xx_mcasp_hwmod,
3115 .clk = "ocp_abe_iclk",
3116 .user = OCP_USER_SDMA,
3119 /* l4_abe -> mcbsp1 */
3120 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
3121 .master = &omap44xx_l4_abe_hwmod,
3122 .slave = &omap44xx_mcbsp1_hwmod,
3123 .clk = "ocp_abe_iclk",
3124 .user = OCP_USER_MPU | OCP_USER_SDMA,
3127 /* l4_abe -> mcbsp2 */
3128 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
3129 .master = &omap44xx_l4_abe_hwmod,
3130 .slave = &omap44xx_mcbsp2_hwmod,
3131 .clk = "ocp_abe_iclk",
3132 .user = OCP_USER_MPU | OCP_USER_SDMA,
3135 /* l4_abe -> mcbsp3 */
3136 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
3137 .master = &omap44xx_l4_abe_hwmod,
3138 .slave = &omap44xx_mcbsp3_hwmod,
3139 .clk = "ocp_abe_iclk",
3140 .user = OCP_USER_MPU | OCP_USER_SDMA,
3143 /* l4_per -> mcbsp4 */
3144 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3145 .master = &omap44xx_l4_per_hwmod,
3146 .slave = &omap44xx_mcbsp4_hwmod,
3148 .user = OCP_USER_MPU | OCP_USER_SDMA,
3151 /* l4_abe -> mcpdm */
3152 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3153 .master = &omap44xx_l4_abe_hwmod,
3154 .slave = &omap44xx_mcpdm_hwmod,
3155 .clk = "ocp_abe_iclk",
3156 .user = OCP_USER_MPU | OCP_USER_SDMA,
3159 /* l3_main_2 -> ocmc_ram */
3160 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
3161 .master = &omap44xx_l3_main_2_hwmod,
3162 .slave = &omap44xx_ocmc_ram_hwmod,
3164 .user = OCP_USER_MPU | OCP_USER_SDMA,
3167 /* l4_cfg -> ocp2scp_usb_phy */
3168 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
3169 .master = &omap44xx_l4_cfg_hwmod,
3170 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
3172 .user = OCP_USER_MPU | OCP_USER_SDMA,
3175 /* mpu_private -> prcm_mpu */
3176 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
3177 .master = &omap44xx_mpu_private_hwmod,
3178 .slave = &omap44xx_prcm_mpu_hwmod,
3180 .user = OCP_USER_MPU | OCP_USER_SDMA,
3183 /* l4_wkup -> cm_core_aon */
3184 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
3185 .master = &omap44xx_l4_wkup_hwmod,
3186 .slave = &omap44xx_cm_core_aon_hwmod,
3187 .clk = "l4_wkup_clk_mux_ck",
3188 .user = OCP_USER_MPU | OCP_USER_SDMA,
3191 /* l4_cfg -> cm_core */
3192 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
3193 .master = &omap44xx_l4_cfg_hwmod,
3194 .slave = &omap44xx_cm_core_hwmod,
3196 .user = OCP_USER_MPU | OCP_USER_SDMA,
3199 /* l4_wkup -> prm */
3200 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
3201 .master = &omap44xx_l4_wkup_hwmod,
3202 .slave = &omap44xx_prm_hwmod,
3203 .clk = "l4_wkup_clk_mux_ck",
3204 .user = OCP_USER_MPU | OCP_USER_SDMA,
3207 /* l4_wkup -> scrm */
3208 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
3209 .master = &omap44xx_l4_wkup_hwmod,
3210 .slave = &omap44xx_scrm_hwmod,
3211 .clk = "l4_wkup_clk_mux_ck",
3212 .user = OCP_USER_MPU | OCP_USER_SDMA,
3215 /* l3_main_2 -> sl2if */
3216 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
3217 .master = &omap44xx_l3_main_2_hwmod,
3218 .slave = &omap44xx_sl2if_hwmod,
3220 .user = OCP_USER_MPU | OCP_USER_SDMA,
3223 /* l4_abe -> slimbus1 */
3224 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
3225 .master = &omap44xx_l4_abe_hwmod,
3226 .slave = &omap44xx_slimbus1_hwmod,
3227 .clk = "ocp_abe_iclk",
3228 .user = OCP_USER_MPU,
3231 /* l4_abe -> slimbus1 (dma) */
3232 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
3233 .master = &omap44xx_l4_abe_hwmod,
3234 .slave = &omap44xx_slimbus1_hwmod,
3235 .clk = "ocp_abe_iclk",
3236 .user = OCP_USER_SDMA,
3239 /* l4_per -> slimbus2 */
3240 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
3241 .master = &omap44xx_l4_per_hwmod,
3242 .slave = &omap44xx_slimbus2_hwmod,
3244 .user = OCP_USER_MPU | OCP_USER_SDMA,
3247 /* l4_cfg -> smartreflex_core */
3248 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3249 .master = &omap44xx_l4_cfg_hwmod,
3250 .slave = &omap44xx_smartreflex_core_hwmod,
3252 .user = OCP_USER_MPU | OCP_USER_SDMA,
3255 /* l4_cfg -> smartreflex_iva */
3256 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3257 .master = &omap44xx_l4_cfg_hwmod,
3258 .slave = &omap44xx_smartreflex_iva_hwmod,
3260 .user = OCP_USER_MPU | OCP_USER_SDMA,
3263 /* l4_cfg -> smartreflex_mpu */
3264 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3265 .master = &omap44xx_l4_cfg_hwmod,
3266 .slave = &omap44xx_smartreflex_mpu_hwmod,
3268 .user = OCP_USER_MPU | OCP_USER_SDMA,
3271 /* l4_cfg -> spinlock */
3272 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3273 .master = &omap44xx_l4_cfg_hwmod,
3274 .slave = &omap44xx_spinlock_hwmod,
3276 .user = OCP_USER_MPU | OCP_USER_SDMA,
3279 /* l4_wkup -> timer1 */
3280 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
3281 .master = &omap44xx_l4_wkup_hwmod,
3282 .slave = &omap44xx_timer1_hwmod,
3283 .clk = "l4_wkup_clk_mux_ck",
3284 .user = OCP_USER_MPU | OCP_USER_SDMA,
3287 /* l4_per -> timer2 */
3288 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
3289 .master = &omap44xx_l4_per_hwmod,
3290 .slave = &omap44xx_timer2_hwmod,
3292 .user = OCP_USER_MPU | OCP_USER_SDMA,
3295 /* l4_per -> timer3 */
3296 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
3297 .master = &omap44xx_l4_per_hwmod,
3298 .slave = &omap44xx_timer3_hwmod,
3300 .user = OCP_USER_MPU | OCP_USER_SDMA,
3303 /* l4_per -> timer4 */
3304 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
3305 .master = &omap44xx_l4_per_hwmod,
3306 .slave = &omap44xx_timer4_hwmod,
3308 .user = OCP_USER_MPU | OCP_USER_SDMA,
3311 /* l4_abe -> timer5 */
3312 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
3313 .master = &omap44xx_l4_abe_hwmod,
3314 .slave = &omap44xx_timer5_hwmod,
3315 .clk = "ocp_abe_iclk",
3316 .user = OCP_USER_MPU | OCP_USER_SDMA,
3319 /* l4_abe -> timer6 */
3320 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
3321 .master = &omap44xx_l4_abe_hwmod,
3322 .slave = &omap44xx_timer6_hwmod,
3323 .clk = "ocp_abe_iclk",
3324 .user = OCP_USER_MPU | OCP_USER_SDMA,
3327 /* l4_abe -> timer7 */
3328 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
3329 .master = &omap44xx_l4_abe_hwmod,
3330 .slave = &omap44xx_timer7_hwmod,
3331 .clk = "ocp_abe_iclk",
3332 .user = OCP_USER_MPU | OCP_USER_SDMA,
3335 /* l4_abe -> timer8 */
3336 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
3337 .master = &omap44xx_l4_abe_hwmod,
3338 .slave = &omap44xx_timer8_hwmod,
3339 .clk = "ocp_abe_iclk",
3340 .user = OCP_USER_MPU | OCP_USER_SDMA,
3343 /* l4_per -> timer9 */
3344 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
3345 .master = &omap44xx_l4_per_hwmod,
3346 .slave = &omap44xx_timer9_hwmod,
3348 .user = OCP_USER_MPU | OCP_USER_SDMA,
3351 /* l4_per -> timer10 */
3352 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
3353 .master = &omap44xx_l4_per_hwmod,
3354 .slave = &omap44xx_timer10_hwmod,
3356 .user = OCP_USER_MPU | OCP_USER_SDMA,
3359 /* l4_per -> timer11 */
3360 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
3361 .master = &omap44xx_l4_per_hwmod,
3362 .slave = &omap44xx_timer11_hwmod,
3364 .user = OCP_USER_MPU | OCP_USER_SDMA,
3367 /* l4_cfg -> usb_host_fs */
3368 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
3369 .master = &omap44xx_l4_cfg_hwmod,
3370 .slave = &omap44xx_usb_host_fs_hwmod,
3372 .user = OCP_USER_MPU | OCP_USER_SDMA,
3375 /* l4_cfg -> usb_host_hs */
3376 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
3377 .master = &omap44xx_l4_cfg_hwmod,
3378 .slave = &omap44xx_usb_host_hs_hwmod,
3380 .user = OCP_USER_MPU | OCP_USER_SDMA,
3383 /* l4_cfg -> usb_otg_hs */
3384 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
3385 .master = &omap44xx_l4_cfg_hwmod,
3386 .slave = &omap44xx_usb_otg_hs_hwmod,
3388 .user = OCP_USER_MPU | OCP_USER_SDMA,
3391 /* l4_cfg -> usb_tll_hs */
3392 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
3393 .master = &omap44xx_l4_cfg_hwmod,
3394 .slave = &omap44xx_usb_tll_hs_hwmod,
3396 .user = OCP_USER_MPU | OCP_USER_SDMA,
3399 /* l4_wkup -> wd_timer2 */
3400 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
3401 .master = &omap44xx_l4_wkup_hwmod,
3402 .slave = &omap44xx_wd_timer2_hwmod,
3403 .clk = "l4_wkup_clk_mux_ck",
3404 .user = OCP_USER_MPU | OCP_USER_SDMA,
3407 /* l4_abe -> wd_timer3 */
3408 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
3409 .master = &omap44xx_l4_abe_hwmod,
3410 .slave = &omap44xx_wd_timer3_hwmod,
3411 .clk = "ocp_abe_iclk",
3412 .user = OCP_USER_MPU,
3415 /* l4_abe -> wd_timer3 (dma) */
3416 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
3417 .master = &omap44xx_l4_abe_hwmod,
3418 .slave = &omap44xx_wd_timer3_hwmod,
3419 .clk = "ocp_abe_iclk",
3420 .user = OCP_USER_SDMA,
3424 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
3425 .master = &omap44xx_mpu_hwmod,
3426 .slave = &omap44xx_emif1_hwmod,
3428 .user = OCP_USER_MPU | OCP_USER_SDMA,
3432 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
3433 .master = &omap44xx_mpu_hwmod,
3434 .slave = &omap44xx_emif2_hwmod,
3436 .user = OCP_USER_MPU | OCP_USER_SDMA,
3439 static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
3440 &omap44xx_l3_main_1__dmm,
3442 &omap44xx_iva__l3_instr,
3443 &omap44xx_l3_main_3__l3_instr,
3444 &omap44xx_ocp_wp_noc__l3_instr,
3445 &omap44xx_dsp__l3_main_1,
3446 &omap44xx_dss__l3_main_1,
3447 &omap44xx_l3_main_2__l3_main_1,
3448 &omap44xx_l4_cfg__l3_main_1,
3449 &omap44xx_mpu__l3_main_1,
3450 &omap44xx_debugss__l3_main_2,
3451 &omap44xx_dma_system__l3_main_2,
3452 &omap44xx_fdif__l3_main_2,
3453 &omap44xx_gpu__l3_main_2,
3454 &omap44xx_hsi__l3_main_2,
3455 &omap44xx_ipu__l3_main_2,
3456 &omap44xx_iss__l3_main_2,
3457 &omap44xx_iva__l3_main_2,
3458 &omap44xx_l3_main_1__l3_main_2,
3459 &omap44xx_l4_cfg__l3_main_2,
3460 /* &omap44xx_usb_host_fs__l3_main_2, */
3461 &omap44xx_usb_host_hs__l3_main_2,
3462 &omap44xx_usb_otg_hs__l3_main_2,
3463 &omap44xx_l3_main_1__l3_main_3,
3464 &omap44xx_l3_main_2__l3_main_3,
3465 &omap44xx_l4_cfg__l3_main_3,
3466 &omap44xx_aess__l4_abe,
3467 &omap44xx_dsp__l4_abe,
3468 &omap44xx_l3_main_1__l4_abe,
3469 &omap44xx_mpu__l4_abe,
3470 &omap44xx_l3_main_1__l4_cfg,
3471 &omap44xx_l3_main_2__l4_per,
3472 &omap44xx_l4_cfg__l4_wkup,
3473 &omap44xx_mpu__mpu_private,
3474 &omap44xx_l4_cfg__ocp_wp_noc,
3475 &omap44xx_l4_abe__aess,
3476 &omap44xx_l4_abe__aess_dma,
3477 &omap44xx_l3_main_2__c2c,
3478 &omap44xx_l4_wkup__counter_32k,
3479 &omap44xx_l4_cfg__ctrl_module_core,
3480 &omap44xx_l4_cfg__ctrl_module_pad_core,
3481 &omap44xx_l4_wkup__ctrl_module_wkup,
3482 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
3483 &omap44xx_l3_instr__debugss,
3484 &omap44xx_l4_cfg__dma_system,
3485 &omap44xx_l4_abe__dmic,
3487 /* &omap44xx_dsp__sl2if, */
3488 &omap44xx_l4_cfg__dsp,
3489 &omap44xx_l3_main_2__dss,
3490 &omap44xx_l4_per__dss,
3491 &omap44xx_l3_main_2__dss_dispc,
3492 &omap44xx_l4_per__dss_dispc,
3493 &omap44xx_l3_main_2__dss_dsi1,
3494 &omap44xx_l4_per__dss_dsi1,
3495 &omap44xx_l3_main_2__dss_dsi2,
3496 &omap44xx_l4_per__dss_dsi2,
3497 &omap44xx_l3_main_2__dss_hdmi,
3498 &omap44xx_l4_per__dss_hdmi,
3499 &omap44xx_l3_main_2__dss_rfbi,
3500 &omap44xx_l4_per__dss_rfbi,
3501 &omap44xx_l3_main_2__dss_venc,
3502 &omap44xx_l4_per__dss_venc,
3503 &omap44xx_l4_per__elm,
3504 &omap44xx_l4_cfg__fdif,
3505 &omap44xx_l3_main_2__gpmc,
3506 &omap44xx_l3_main_2__gpu,
3507 &omap44xx_l4_per__hdq1w,
3508 &omap44xx_l4_cfg__hsi,
3509 &omap44xx_l3_main_2__ipu,
3510 &omap44xx_l3_main_2__iss,
3511 /* &omap44xx_iva__sl2if, */
3512 &omap44xx_l3_main_2__iva,
3513 &omap44xx_l4_wkup__kbd,
3514 &omap44xx_l4_cfg__mailbox,
3515 &omap44xx_l4_abe__mcasp,
3516 &omap44xx_l4_abe__mcasp_dma,
3517 &omap44xx_l4_abe__mcbsp1,
3518 &omap44xx_l4_abe__mcbsp2,
3519 &omap44xx_l4_abe__mcbsp3,
3520 &omap44xx_l4_per__mcbsp4,
3521 &omap44xx_l4_abe__mcpdm,
3522 &omap44xx_l3_main_2__mmu_ipu,
3523 &omap44xx_l4_cfg__mmu_dsp,
3524 &omap44xx_l3_main_2__ocmc_ram,
3525 &omap44xx_l4_cfg__ocp2scp_usb_phy,
3526 &omap44xx_mpu_private__prcm_mpu,
3527 &omap44xx_l4_wkup__cm_core_aon,
3528 &omap44xx_l4_cfg__cm_core,
3529 &omap44xx_l4_wkup__prm,
3530 &omap44xx_l4_wkup__scrm,
3531 /* &omap44xx_l3_main_2__sl2if, */
3532 &omap44xx_l4_abe__slimbus1,
3533 &omap44xx_l4_abe__slimbus1_dma,
3534 &omap44xx_l4_per__slimbus2,
3535 &omap44xx_l4_cfg__smartreflex_core,
3536 &omap44xx_l4_cfg__smartreflex_iva,
3537 &omap44xx_l4_cfg__smartreflex_mpu,
3538 &omap44xx_l4_cfg__spinlock,
3539 &omap44xx_l4_wkup__timer1,
3540 &omap44xx_l4_per__timer2,
3541 &omap44xx_l4_per__timer3,
3542 &omap44xx_l4_per__timer4,
3543 &omap44xx_l4_abe__timer5,
3544 &omap44xx_l4_abe__timer6,
3545 &omap44xx_l4_abe__timer7,
3546 &omap44xx_l4_abe__timer8,
3547 &omap44xx_l4_per__timer9,
3548 &omap44xx_l4_per__timer10,
3549 &omap44xx_l4_per__timer11,
3550 /* &omap44xx_l4_cfg__usb_host_fs, */
3551 &omap44xx_l4_cfg__usb_host_hs,
3552 &omap44xx_l4_cfg__usb_otg_hs,
3553 &omap44xx_l4_cfg__usb_tll_hs,
3554 &omap44xx_l4_wkup__wd_timer2,
3555 &omap44xx_l4_abe__wd_timer3,
3556 &omap44xx_l4_abe__wd_timer3_dma,
3557 &omap44xx_mpu__emif1,
3558 &omap44xx_mpu__emif2,
3559 &omap44xx_l3_main_2__aes1,
3560 &omap44xx_l3_main_2__aes2,
3561 &omap44xx_l3_main_2__des,
3562 &omap44xx_l3_main_2__sha0,
3566 int __init omap44xx_hwmod_init(void)
3569 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);