2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2012 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
15 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
24 #include <linux/platform_data/hsmmc-omap.h>
25 #include <linux/power/smartreflex.h>
26 #include <linux/i2c-omap.h>
28 #include <linux/omap-dma.h>
30 #include "omap_hwmod.h"
31 #include "omap_hwmod_common_data.h"
35 #include "prm-regbits-44xx.h"
39 /* Base offset for all OMAP4 interrupts external to MPUSS */
40 #define OMAP44XX_IRQ_GIC_START 32
42 /* Base offset for all OMAP4 dma requests */
43 #define OMAP44XX_DMA_REQ_START 1
53 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
58 static struct omap_hwmod omap44xx_dmm_hwmod = {
60 .class = &omap44xx_dmm_hwmod_class,
61 .clkdm_name = "l3_emif_clkdm",
64 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
65 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
72 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
74 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
79 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
81 .class = &omap44xx_l3_hwmod_class,
82 .clkdm_name = "l3_instr_clkdm",
85 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
86 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
87 .modulemode = MODULEMODE_HWCTRL,
93 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
95 .class = &omap44xx_l3_hwmod_class,
96 .clkdm_name = "l3_1_clkdm",
99 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
100 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
106 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
108 .class = &omap44xx_l3_hwmod_class,
109 .clkdm_name = "l3_2_clkdm",
112 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
113 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
119 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
121 .class = &omap44xx_l3_hwmod_class,
122 .clkdm_name = "l3_instr_clkdm",
125 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
126 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
127 .modulemode = MODULEMODE_HWCTRL,
134 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
136 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
141 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
143 .class = &omap44xx_l4_hwmod_class,
144 .clkdm_name = "abe_clkdm",
147 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
148 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
149 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
150 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
156 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
158 .class = &omap44xx_l4_hwmod_class,
159 .clkdm_name = "l4_cfg_clkdm",
162 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
163 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
169 static struct omap_hwmod omap44xx_l4_per_hwmod = {
171 .class = &omap44xx_l4_hwmod_class,
172 .clkdm_name = "l4_per_clkdm",
175 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
176 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
182 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
184 .class = &omap44xx_l4_hwmod_class,
185 .clkdm_name = "l4_wkup_clkdm",
188 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
189 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
196 * instance(s): mpu_private
198 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
203 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
204 .name = "mpu_private",
205 .class = &omap44xx_mpu_bus_hwmod_class,
206 .clkdm_name = "mpuss_clkdm",
209 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
216 * instance(s): ocp_wp_noc
218 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
219 .name = "ocp_wp_noc",
223 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
224 .name = "ocp_wp_noc",
225 .class = &omap44xx_ocp_wp_noc_hwmod_class,
226 .clkdm_name = "l3_instr_clkdm",
229 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
230 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
231 .modulemode = MODULEMODE_HWCTRL,
237 * Modules omap_hwmod structures
239 * The following IPs are excluded for the moment because:
240 * - They do not need an explicit SW control using omap_hwmod API.
241 * - They still need to be validated with the driver
242 * properly adapted to omap_hwmod / omap_device
249 * audio engine sub system
252 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
255 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
256 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
257 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
258 MSTANDBY_SMART_WKUP),
259 .sysc_fields = &omap_hwmod_sysc_type2,
262 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
264 .sysc = &omap44xx_aess_sysc,
265 .enable_preprogram = omap_hwmod_aess_preprogram,
269 static struct omap_hwmod omap44xx_aess_hwmod = {
271 .class = &omap44xx_aess_hwmod_class,
272 .clkdm_name = "abe_clkdm",
273 .main_clk = "aess_fclk",
276 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
277 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
278 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
279 .modulemode = MODULEMODE_SWCTRL,
286 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
290 static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
295 static struct omap_hwmod omap44xx_c2c_hwmod = {
297 .class = &omap44xx_c2c_hwmod_class,
298 .clkdm_name = "d2d_clkdm",
301 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
302 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
309 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
312 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
315 .sysc_flags = SYSC_HAS_SIDLEMODE,
316 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
317 .sysc_fields = &omap_hwmod_sysc_type1,
320 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
322 .sysc = &omap44xx_counter_sysc,
326 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
327 .name = "counter_32k",
328 .class = &omap44xx_counter_hwmod_class,
329 .clkdm_name = "l4_wkup_clkdm",
330 .flags = HWMOD_SWSUP_SIDLE,
331 .main_clk = "sys_32k_ck",
334 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
335 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
341 * 'ctrl_module' class
342 * attila core control module + core pad control module + wkup pad control
343 * module + attila wkup control module
346 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
349 .sysc_flags = SYSC_HAS_SIDLEMODE,
350 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
352 .sysc_fields = &omap_hwmod_sysc_type2,
355 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
356 .name = "ctrl_module",
357 .sysc = &omap44xx_ctrl_module_sysc,
360 /* ctrl_module_core */
361 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
362 .name = "ctrl_module_core",
363 .class = &omap44xx_ctrl_module_hwmod_class,
364 .clkdm_name = "l4_cfg_clkdm",
367 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
372 /* ctrl_module_pad_core */
373 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
374 .name = "ctrl_module_pad_core",
375 .class = &omap44xx_ctrl_module_hwmod_class,
376 .clkdm_name = "l4_cfg_clkdm",
379 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
384 /* ctrl_module_wkup */
385 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
386 .name = "ctrl_module_wkup",
387 .class = &omap44xx_ctrl_module_hwmod_class,
388 .clkdm_name = "l4_wkup_clkdm",
391 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
396 /* ctrl_module_pad_wkup */
397 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
398 .name = "ctrl_module_pad_wkup",
399 .class = &omap44xx_ctrl_module_hwmod_class,
400 .clkdm_name = "l4_wkup_clkdm",
403 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
410 * debug and emulation sub system
413 static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
418 static struct omap_hwmod omap44xx_debugss_hwmod = {
420 .class = &omap44xx_debugss_hwmod_class,
421 .clkdm_name = "emu_sys_clkdm",
422 .main_clk = "trace_clk_div_ck",
425 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
426 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
433 * dma controller for data exchange between memory to memory (i.e. internal or
434 * external memory) and gp peripherals to memory or memory to gp peripherals
437 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
441 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
442 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
443 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
444 SYSS_HAS_RESET_STATUS),
445 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
446 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
447 .sysc_fields = &omap_hwmod_sysc_type1,
450 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
452 .sysc = &omap44xx_dma_sysc,
456 static struct omap_dma_dev_attr dma_dev_attr = {
457 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
458 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
463 static struct omap_hwmod omap44xx_dma_system_hwmod = {
464 .name = "dma_system",
465 .class = &omap44xx_dma_hwmod_class,
466 .clkdm_name = "l3_dma_clkdm",
467 .main_clk = "l3_div_ck",
470 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
471 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
474 .dev_attr = &dma_dev_attr,
479 * digital microphone controller
482 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
485 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
486 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
487 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
489 .sysc_fields = &omap_hwmod_sysc_type2,
492 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
494 .sysc = &omap44xx_dmic_sysc,
498 static struct omap_hwmod omap44xx_dmic_hwmod = {
500 .class = &omap44xx_dmic_hwmod_class,
501 .clkdm_name = "abe_clkdm",
502 .main_clk = "func_dmic_abe_gfclk",
505 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
506 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
507 .modulemode = MODULEMODE_SWCTRL,
517 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
522 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
523 { .name = "dsp", .rst_shift = 0 },
526 static struct omap_hwmod omap44xx_dsp_hwmod = {
528 .class = &omap44xx_dsp_hwmod_class,
529 .clkdm_name = "tesla_clkdm",
530 .rst_lines = omap44xx_dsp_resets,
531 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
532 .main_clk = "dpll_iva_m4x2_ck",
535 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
536 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
537 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
538 .modulemode = MODULEMODE_HWCTRL,
548 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
551 .sysc_flags = SYSS_HAS_RESET_STATUS,
554 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
556 .sysc = &omap44xx_dss_sysc,
557 .reset = omap_dss_reset,
561 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
562 { .role = "sys_clk", .clk = "dss_sys_clk" },
563 { .role = "tv_clk", .clk = "dss_tv_clk" },
564 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
567 static struct omap_hwmod omap44xx_dss_hwmod = {
569 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
570 .class = &omap44xx_dss_hwmod_class,
571 .clkdm_name = "l3_dss_clkdm",
572 .main_clk = "dss_dss_clk",
575 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
576 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
577 .modulemode = MODULEMODE_SWCTRL,
580 .opt_clks = dss_opt_clks,
581 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
589 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
593 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
594 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
595 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
596 SYSS_HAS_RESET_STATUS),
597 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
598 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
599 .sysc_fields = &omap_hwmod_sysc_type1,
602 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
604 .sysc = &omap44xx_dispc_sysc,
608 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
610 .has_framedonetv_irq = 1
613 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
615 .class = &omap44xx_dispc_hwmod_class,
616 .clkdm_name = "l3_dss_clkdm",
617 .main_clk = "dss_dss_clk",
620 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
621 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
624 .dev_attr = &omap44xx_dss_dispc_dev_attr,
625 .parent_hwmod = &omap44xx_dss_hwmod,
630 * display serial interface controller
633 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
637 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
638 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
639 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
640 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
641 .sysc_fields = &omap_hwmod_sysc_type1,
644 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
646 .sysc = &omap44xx_dsi_sysc,
650 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
651 { .role = "sys_clk", .clk = "dss_sys_clk" },
654 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
656 .class = &omap44xx_dsi_hwmod_class,
657 .clkdm_name = "l3_dss_clkdm",
658 .main_clk = "dss_dss_clk",
661 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
662 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
665 .opt_clks = dss_dsi1_opt_clks,
666 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
667 .parent_hwmod = &omap44xx_dss_hwmod,
671 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
672 { .role = "sys_clk", .clk = "dss_sys_clk" },
675 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
677 .class = &omap44xx_dsi_hwmod_class,
678 .clkdm_name = "l3_dss_clkdm",
679 .main_clk = "dss_dss_clk",
682 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
683 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
686 .opt_clks = dss_dsi2_opt_clks,
687 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
688 .parent_hwmod = &omap44xx_dss_hwmod,
696 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
699 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
701 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
703 .sysc_fields = &omap_hwmod_sysc_type2,
706 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
708 .sysc = &omap44xx_hdmi_sysc,
712 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
713 { .role = "sys_clk", .clk = "dss_sys_clk" },
714 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
717 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
719 .class = &omap44xx_hdmi_hwmod_class,
720 .clkdm_name = "l3_dss_clkdm",
722 * HDMI audio requires to use no-idle mode. Hence,
723 * set idle mode by software.
725 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
726 .main_clk = "dss_48mhz_clk",
729 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
730 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
733 .opt_clks = dss_hdmi_opt_clks,
734 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
735 .parent_hwmod = &omap44xx_dss_hwmod,
740 * remote frame buffer interface
743 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
747 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
748 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
749 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
750 .sysc_fields = &omap_hwmod_sysc_type1,
753 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
755 .sysc = &omap44xx_rfbi_sysc,
759 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
760 { .role = "ick", .clk = "l3_div_ck" },
763 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
765 .class = &omap44xx_rfbi_hwmod_class,
766 .clkdm_name = "l3_dss_clkdm",
767 .main_clk = "dss_dss_clk",
770 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
771 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
774 .opt_clks = dss_rfbi_opt_clks,
775 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
776 .parent_hwmod = &omap44xx_dss_hwmod,
784 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
789 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
790 { .role = "tv_clk", .clk = "dss_tv_clk" },
793 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
795 .class = &omap44xx_venc_hwmod_class,
796 .clkdm_name = "l3_dss_clkdm",
797 .main_clk = "dss_tv_clk",
798 .flags = HWMOD_OPT_CLKS_NEEDED,
801 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
802 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
805 .parent_hwmod = &omap44xx_dss_hwmod,
806 .opt_clks = dss_venc_opt_clks,
807 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
810 /* sha0 HIB2 (the 'P' (public) device) */
811 static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
815 .sysc_flags = SYSS_HAS_RESET_STATUS,
818 static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
820 .sysc = &omap44xx_sha0_sysc,
823 struct omap_hwmod omap44xx_sha0_hwmod = {
825 .class = &omap44xx_sha0_hwmod_class,
826 .clkdm_name = "l4_secure_clkdm",
827 .main_clk = "l3_div_ck",
830 .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
831 .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
832 .modulemode = MODULEMODE_SWCTRL,
839 * bch error location module
842 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
846 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
847 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
848 SYSS_HAS_RESET_STATUS),
849 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
850 .sysc_fields = &omap_hwmod_sysc_type1,
853 static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
855 .sysc = &omap44xx_elm_sysc,
859 static struct omap_hwmod omap44xx_elm_hwmod = {
861 .class = &omap44xx_elm_hwmod_class,
862 .clkdm_name = "l4_per_clkdm",
865 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
866 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
873 * external memory interface no1
876 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
880 static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
882 .sysc = &omap44xx_emif_sysc,
886 static struct omap_hwmod omap44xx_emif1_hwmod = {
888 .class = &omap44xx_emif_hwmod_class,
889 .clkdm_name = "l3_emif_clkdm",
890 .flags = HWMOD_INIT_NO_IDLE,
891 .main_clk = "ddrphy_ck",
894 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
895 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
896 .modulemode = MODULEMODE_HWCTRL,
902 static struct omap_hwmod omap44xx_emif2_hwmod = {
904 .class = &omap44xx_emif_hwmod_class,
905 .clkdm_name = "l3_emif_clkdm",
906 .flags = HWMOD_INIT_NO_IDLE,
907 .main_clk = "ddrphy_ck",
910 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
911 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
912 .modulemode = MODULEMODE_HWCTRL,
918 Crypto modules AES0/1 belong to:
919 PD_L4_PER power domain
920 CD_L4_SEC clock domain
921 On the L3, the AES modules are mapped to
922 L3_CLK2: Peripherals and multimedia sub clock domain
924 static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
928 .sysc_flags = SYSS_HAS_RESET_STATUS,
931 static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
933 .sysc = &omap44xx_aes_sysc,
936 static struct omap_hwmod omap44xx_aes1_hwmod = {
938 .class = &omap44xx_aes_hwmod_class,
939 .clkdm_name = "l4_secure_clkdm",
940 .main_clk = "l3_div_ck",
943 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
944 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
945 .modulemode = MODULEMODE_SWCTRL,
950 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
951 .master = &omap44xx_l4_per_hwmod,
952 .slave = &omap44xx_aes1_hwmod,
954 .user = OCP_USER_MPU | OCP_USER_SDMA,
957 static struct omap_hwmod omap44xx_aes2_hwmod = {
959 .class = &omap44xx_aes_hwmod_class,
960 .clkdm_name = "l4_secure_clkdm",
961 .main_clk = "l3_div_ck",
964 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
965 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
966 .modulemode = MODULEMODE_SWCTRL,
971 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
972 .master = &omap44xx_l4_per_hwmod,
973 .slave = &omap44xx_aes2_hwmod,
975 .user = OCP_USER_MPU | OCP_USER_SDMA,
979 * 'des' class for DES3DES module
981 static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
985 .sysc_flags = SYSS_HAS_RESET_STATUS,
988 static struct omap_hwmod_class omap44xx_des_hwmod_class = {
990 .sysc = &omap44xx_des_sysc,
993 static struct omap_hwmod omap44xx_des_hwmod = {
995 .class = &omap44xx_des_hwmod_class,
996 .clkdm_name = "l4_secure_clkdm",
997 .main_clk = "l3_div_ck",
1000 .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
1001 .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
1002 .modulemode = MODULEMODE_SWCTRL,
1007 struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
1008 .master = &omap44xx_l3_main_2_hwmod,
1009 .slave = &omap44xx_des_hwmod,
1011 .user = OCP_USER_MPU | OCP_USER_SDMA,
1016 * face detection hw accelerator module
1019 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1021 .sysc_offs = 0x0010,
1023 * FDIF needs 100 OCP clk cycles delay after a softreset before
1024 * accessing sysconfig again.
1025 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1026 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1028 * TODO: Indicate errata when available.
1031 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1032 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1033 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1034 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1035 .sysc_fields = &omap_hwmod_sysc_type2,
1038 static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1040 .sysc = &omap44xx_fdif_sysc,
1044 static struct omap_hwmod omap44xx_fdif_hwmod = {
1046 .class = &omap44xx_fdif_hwmod_class,
1047 .clkdm_name = "iss_clkdm",
1048 .main_clk = "fdif_fck",
1051 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1052 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1053 .modulemode = MODULEMODE_SWCTRL,
1060 * general purpose io module
1063 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1065 .sysc_offs = 0x0010,
1066 .syss_offs = 0x0114,
1067 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1068 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1069 SYSS_HAS_RESET_STATUS),
1070 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1072 .sysc_fields = &omap_hwmod_sysc_type1,
1075 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1077 .sysc = &omap44xx_gpio_sysc,
1082 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1083 { .role = "dbclk", .clk = "gpio1_dbclk" },
1086 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1088 .class = &omap44xx_gpio_hwmod_class,
1089 .clkdm_name = "l4_wkup_clkdm",
1090 .main_clk = "l4_wkup_clk_mux_ck",
1093 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
1094 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
1095 .modulemode = MODULEMODE_HWCTRL,
1098 .opt_clks = gpio1_opt_clks,
1099 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1103 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1104 { .role = "dbclk", .clk = "gpio2_dbclk" },
1107 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1109 .class = &omap44xx_gpio_hwmod_class,
1110 .clkdm_name = "l4_per_clkdm",
1111 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1112 .main_clk = "l4_div_ck",
1115 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
1116 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
1117 .modulemode = MODULEMODE_HWCTRL,
1120 .opt_clks = gpio2_opt_clks,
1121 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1125 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1126 { .role = "dbclk", .clk = "gpio3_dbclk" },
1129 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1131 .class = &omap44xx_gpio_hwmod_class,
1132 .clkdm_name = "l4_per_clkdm",
1133 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1134 .main_clk = "l4_div_ck",
1137 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
1138 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
1139 .modulemode = MODULEMODE_HWCTRL,
1142 .opt_clks = gpio3_opt_clks,
1143 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1147 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1148 { .role = "dbclk", .clk = "gpio4_dbclk" },
1151 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1153 .class = &omap44xx_gpio_hwmod_class,
1154 .clkdm_name = "l4_per_clkdm",
1155 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1156 .main_clk = "l4_div_ck",
1159 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
1160 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
1161 .modulemode = MODULEMODE_HWCTRL,
1164 .opt_clks = gpio4_opt_clks,
1165 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1169 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1170 { .role = "dbclk", .clk = "gpio5_dbclk" },
1173 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1175 .class = &omap44xx_gpio_hwmod_class,
1176 .clkdm_name = "l4_per_clkdm",
1177 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1178 .main_clk = "l4_div_ck",
1181 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
1182 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
1183 .modulemode = MODULEMODE_HWCTRL,
1186 .opt_clks = gpio5_opt_clks,
1187 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1191 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1192 { .role = "dbclk", .clk = "gpio6_dbclk" },
1195 static struct omap_hwmod omap44xx_gpio6_hwmod = {
1197 .class = &omap44xx_gpio_hwmod_class,
1198 .clkdm_name = "l4_per_clkdm",
1199 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1200 .main_clk = "l4_div_ck",
1203 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
1204 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
1205 .modulemode = MODULEMODE_HWCTRL,
1208 .opt_clks = gpio6_opt_clks,
1209 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1214 * general purpose memory controller
1217 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1219 .sysc_offs = 0x0010,
1220 .syss_offs = 0x0014,
1221 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1222 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1223 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1224 .sysc_fields = &omap_hwmod_sysc_type1,
1227 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1229 .sysc = &omap44xx_gpmc_sysc,
1233 static struct omap_hwmod omap44xx_gpmc_hwmod = {
1235 .class = &omap44xx_gpmc_hwmod_class,
1236 .clkdm_name = "l3_2_clkdm",
1237 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1238 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1241 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1242 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1243 .modulemode = MODULEMODE_HWCTRL,
1250 * 2d/3d graphics accelerator
1253 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1254 .rev_offs = 0x1fc00,
1255 .sysc_offs = 0x1fc10,
1256 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1257 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1258 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1259 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1260 .sysc_fields = &omap_hwmod_sysc_type2,
1263 static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1265 .sysc = &omap44xx_gpu_sysc,
1269 static struct omap_hwmod omap44xx_gpu_hwmod = {
1271 .class = &omap44xx_gpu_hwmod_class,
1272 .clkdm_name = "l3_gfx_clkdm",
1273 .main_clk = "sgx_clk_mux",
1276 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1277 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1278 .modulemode = MODULEMODE_SWCTRL,
1285 * hdq / 1-wire serial interface controller
1288 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1290 .sysc_offs = 0x0014,
1291 .syss_offs = 0x0018,
1292 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1293 SYSS_HAS_RESET_STATUS),
1294 .sysc_fields = &omap_hwmod_sysc_type1,
1297 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1299 .sysc = &omap44xx_hdq1w_sysc,
1303 static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1305 .class = &omap44xx_hdq1w_hwmod_class,
1306 .clkdm_name = "l4_per_clkdm",
1307 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1308 .main_clk = "func_12m_fclk",
1311 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1312 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1313 .modulemode = MODULEMODE_SWCTRL,
1320 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1324 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1326 .sysc_offs = 0x0010,
1327 .syss_offs = 0x0014,
1328 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1329 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1330 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1331 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1332 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1333 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1334 .sysc_fields = &omap_hwmod_sysc_type1,
1337 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1339 .sysc = &omap44xx_hsi_sysc,
1343 static struct omap_hwmod omap44xx_hsi_hwmod = {
1345 .class = &omap44xx_hsi_hwmod_class,
1346 .clkdm_name = "l3_init_clkdm",
1347 .main_clk = "hsi_fck",
1350 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
1351 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
1352 .modulemode = MODULEMODE_HWCTRL,
1359 * multimaster high-speed i2c controller
1362 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1363 .sysc_offs = 0x0010,
1364 .syss_offs = 0x0090,
1365 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1366 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1367 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1368 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1370 .sysc_fields = &omap_hwmod_sysc_type1,
1373 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1375 .sysc = &omap44xx_i2c_sysc,
1376 .rev = OMAP_I2C_IP_VERSION_2,
1377 .reset = &omap_i2c_reset,
1381 static struct omap_hwmod omap44xx_i2c1_hwmod = {
1383 .class = &omap44xx_i2c_hwmod_class,
1384 .clkdm_name = "l4_per_clkdm",
1385 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1386 .main_clk = "func_96m_fclk",
1389 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
1390 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
1391 .modulemode = MODULEMODE_SWCTRL,
1397 static struct omap_hwmod omap44xx_i2c2_hwmod = {
1399 .class = &omap44xx_i2c_hwmod_class,
1400 .clkdm_name = "l4_per_clkdm",
1401 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1402 .main_clk = "func_96m_fclk",
1405 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
1406 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
1407 .modulemode = MODULEMODE_SWCTRL,
1413 static struct omap_hwmod omap44xx_i2c3_hwmod = {
1415 .class = &omap44xx_i2c_hwmod_class,
1416 .clkdm_name = "l4_per_clkdm",
1417 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1418 .main_clk = "func_96m_fclk",
1421 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
1422 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
1423 .modulemode = MODULEMODE_SWCTRL,
1429 static struct omap_hwmod omap44xx_i2c4_hwmod = {
1431 .class = &omap44xx_i2c_hwmod_class,
1432 .clkdm_name = "l4_per_clkdm",
1433 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1434 .main_clk = "func_96m_fclk",
1437 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
1438 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
1439 .modulemode = MODULEMODE_SWCTRL,
1446 * imaging processor unit
1449 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1454 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
1455 { .name = "cpu0", .rst_shift = 0 },
1456 { .name = "cpu1", .rst_shift = 1 },
1459 static struct omap_hwmod omap44xx_ipu_hwmod = {
1461 .class = &omap44xx_ipu_hwmod_class,
1462 .clkdm_name = "ducati_clkdm",
1463 .rst_lines = omap44xx_ipu_resets,
1464 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
1465 .main_clk = "ducati_clk_mux_ck",
1468 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1469 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1470 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1471 .modulemode = MODULEMODE_HWCTRL,
1478 * external images sensor pixel data processor
1481 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1483 .sysc_offs = 0x0010,
1485 * ISS needs 100 OCP clk cycles delay after a softreset before
1486 * accessing sysconfig again.
1487 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1488 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1490 * TODO: Indicate errata when available.
1493 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1494 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1495 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1496 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1497 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1498 .sysc_fields = &omap_hwmod_sysc_type2,
1501 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1503 .sysc = &omap44xx_iss_sysc,
1507 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1508 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1511 static struct omap_hwmod omap44xx_iss_hwmod = {
1513 .class = &omap44xx_iss_hwmod_class,
1514 .clkdm_name = "iss_clkdm",
1515 .main_clk = "ducati_clk_mux_ck",
1518 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
1519 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
1520 .modulemode = MODULEMODE_SWCTRL,
1523 .opt_clks = iss_opt_clks,
1524 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
1529 * multi-standard video encoder/decoder hardware accelerator
1532 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1537 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1538 { .name = "seq0", .rst_shift = 0 },
1539 { .name = "seq1", .rst_shift = 1 },
1540 { .name = "logic", .rst_shift = 2 },
1543 static struct omap_hwmod omap44xx_iva_hwmod = {
1545 .class = &omap44xx_iva_hwmod_class,
1546 .clkdm_name = "ivahd_clkdm",
1547 .rst_lines = omap44xx_iva_resets,
1548 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1549 .main_clk = "dpll_iva_m5x2_ck",
1552 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
1553 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
1554 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
1555 .modulemode = MODULEMODE_HWCTRL,
1562 * keyboard controller
1565 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1567 .sysc_offs = 0x0010,
1568 .syss_offs = 0x0014,
1569 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1570 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1571 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1572 SYSS_HAS_RESET_STATUS),
1573 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1574 .sysc_fields = &omap_hwmod_sysc_type1,
1577 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1579 .sysc = &omap44xx_kbd_sysc,
1583 static struct omap_hwmod omap44xx_kbd_hwmod = {
1585 .class = &omap44xx_kbd_hwmod_class,
1586 .clkdm_name = "l4_wkup_clkdm",
1587 .main_clk = "sys_32k_ck",
1590 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
1591 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
1592 .modulemode = MODULEMODE_SWCTRL,
1599 * mailbox module allowing communication between the on-chip processors using a
1600 * queued mailbox-interrupt mechanism.
1603 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1605 .sysc_offs = 0x0010,
1606 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1607 SYSC_HAS_SOFTRESET),
1608 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1609 .sysc_fields = &omap_hwmod_sysc_type2,
1612 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1614 .sysc = &omap44xx_mailbox_sysc,
1618 static struct omap_hwmod omap44xx_mailbox_hwmod = {
1620 .class = &omap44xx_mailbox_hwmod_class,
1621 .clkdm_name = "l4_cfg_clkdm",
1624 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
1625 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
1632 * multi-channel audio serial port controller
1635 /* The IP is not compliant to type1 / type2 scheme */
1636 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1637 .sysc_offs = 0x0004,
1638 .sysc_flags = SYSC_HAS_SIDLEMODE,
1639 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1641 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1644 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1646 .sysc = &omap44xx_mcasp_sysc,
1650 static struct omap_hwmod omap44xx_mcasp_hwmod = {
1652 .class = &omap44xx_mcasp_hwmod_class,
1653 .clkdm_name = "abe_clkdm",
1654 .main_clk = "func_mcasp_abe_gfclk",
1657 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1658 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1659 .modulemode = MODULEMODE_SWCTRL,
1666 * multi channel buffered serial port controller
1669 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1670 .sysc_offs = 0x008c,
1671 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1672 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1673 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1674 .sysc_fields = &omap_hwmod_sysc_type1,
1677 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1679 .sysc = &omap44xx_mcbsp_sysc,
1683 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1684 { .role = "pad_fck", .clk = "pad_clks_ck" },
1685 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
1688 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1690 .class = &omap44xx_mcbsp_hwmod_class,
1691 .clkdm_name = "abe_clkdm",
1692 .main_clk = "func_mcbsp1_gfclk",
1695 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
1696 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
1697 .modulemode = MODULEMODE_SWCTRL,
1700 .opt_clks = mcbsp1_opt_clks,
1701 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
1705 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1706 { .role = "pad_fck", .clk = "pad_clks_ck" },
1707 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
1710 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1712 .class = &omap44xx_mcbsp_hwmod_class,
1713 .clkdm_name = "abe_clkdm",
1714 .main_clk = "func_mcbsp2_gfclk",
1717 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
1718 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
1719 .modulemode = MODULEMODE_SWCTRL,
1722 .opt_clks = mcbsp2_opt_clks,
1723 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
1727 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1728 { .role = "pad_fck", .clk = "pad_clks_ck" },
1729 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
1732 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1734 .class = &omap44xx_mcbsp_hwmod_class,
1735 .clkdm_name = "abe_clkdm",
1736 .main_clk = "func_mcbsp3_gfclk",
1739 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
1740 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
1741 .modulemode = MODULEMODE_SWCTRL,
1744 .opt_clks = mcbsp3_opt_clks,
1745 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
1749 static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1750 { .role = "pad_fck", .clk = "pad_clks_ck" },
1751 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
1754 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1756 .class = &omap44xx_mcbsp_hwmod_class,
1757 .clkdm_name = "l4_per_clkdm",
1758 .main_clk = "per_mcbsp4_gfclk",
1761 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
1762 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
1763 .modulemode = MODULEMODE_SWCTRL,
1766 .opt_clks = mcbsp4_opt_clks,
1767 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
1772 * multi channel pdm controller (proprietary interface with phoenix power
1776 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1778 .sysc_offs = 0x0010,
1779 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1780 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1781 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1783 .sysc_fields = &omap_hwmod_sysc_type2,
1786 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1788 .sysc = &omap44xx_mcpdm_sysc,
1792 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1794 .class = &omap44xx_mcpdm_hwmod_class,
1795 .clkdm_name = "abe_clkdm",
1797 * It's suspected that the McPDM requires an off-chip main
1798 * functional clock, controlled via I2C. This IP block is
1799 * currently reset very early during boot, before I2C is
1800 * available, so it doesn't seem that we have any choice in
1801 * the kernel other than to avoid resetting it.
1803 * Also, McPDM needs to be configured to NO_IDLE mode when it
1804 * is in used otherwise vital clocks will be gated which
1805 * results 'slow motion' audio playback.
1807 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1808 .main_clk = "pad_clks_ck",
1811 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
1812 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
1813 .modulemode = MODULEMODE_SWCTRL,
1820 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1824 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1826 .sysc_offs = 0x0010,
1827 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1828 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1829 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1831 .sysc_fields = &omap_hwmod_sysc_type2,
1834 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1836 .sysc = &omap44xx_mcspi_sysc,
1840 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1842 .class = &omap44xx_mcspi_hwmod_class,
1843 .clkdm_name = "l4_per_clkdm",
1844 .main_clk = "func_48m_fclk",
1847 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1848 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1849 .modulemode = MODULEMODE_SWCTRL,
1855 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1857 .class = &omap44xx_mcspi_hwmod_class,
1858 .clkdm_name = "l4_per_clkdm",
1859 .main_clk = "func_48m_fclk",
1862 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1863 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1864 .modulemode = MODULEMODE_SWCTRL,
1870 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1872 .class = &omap44xx_mcspi_hwmod_class,
1873 .clkdm_name = "l4_per_clkdm",
1874 .main_clk = "func_48m_fclk",
1877 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1878 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1879 .modulemode = MODULEMODE_SWCTRL,
1885 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1887 .class = &omap44xx_mcspi_hwmod_class,
1888 .clkdm_name = "l4_per_clkdm",
1889 .main_clk = "func_48m_fclk",
1892 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1893 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1894 .modulemode = MODULEMODE_SWCTRL,
1901 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1904 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1906 .sysc_offs = 0x0010,
1907 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1908 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1909 SYSC_HAS_SOFTRESET),
1910 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1911 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1912 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1913 .sysc_fields = &omap_hwmod_sysc_type2,
1916 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1918 .sysc = &omap44xx_mmc_sysc,
1922 static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
1923 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1926 static struct omap_hwmod omap44xx_mmc1_hwmod = {
1928 .class = &omap44xx_mmc_hwmod_class,
1929 .clkdm_name = "l3_init_clkdm",
1930 .main_clk = "hsmmc1_fclk",
1933 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1934 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1935 .modulemode = MODULEMODE_SWCTRL,
1938 .dev_attr = &mmc1_dev_attr,
1942 static struct omap_hwmod omap44xx_mmc2_hwmod = {
1944 .class = &omap44xx_mmc_hwmod_class,
1945 .clkdm_name = "l3_init_clkdm",
1946 .main_clk = "hsmmc2_fclk",
1949 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1950 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1951 .modulemode = MODULEMODE_SWCTRL,
1957 static struct omap_hwmod omap44xx_mmc3_hwmod = {
1959 .class = &omap44xx_mmc_hwmod_class,
1960 .clkdm_name = "l4_per_clkdm",
1961 .main_clk = "func_48m_fclk",
1964 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
1965 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
1966 .modulemode = MODULEMODE_SWCTRL,
1972 static struct omap_hwmod omap44xx_mmc4_hwmod = {
1974 .class = &omap44xx_mmc_hwmod_class,
1975 .clkdm_name = "l4_per_clkdm",
1976 .main_clk = "func_48m_fclk",
1979 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
1980 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
1981 .modulemode = MODULEMODE_SWCTRL,
1987 static struct omap_hwmod omap44xx_mmc5_hwmod = {
1989 .class = &omap44xx_mmc_hwmod_class,
1990 .clkdm_name = "l4_per_clkdm",
1991 .main_clk = "func_48m_fclk",
1994 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
1995 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
1996 .modulemode = MODULEMODE_SWCTRL,
2003 * The memory management unit performs virtual to physical address translation
2004 * for its requestors.
2007 static struct omap_hwmod_class_sysconfig mmu_sysc = {
2011 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2012 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2013 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2014 .sysc_fields = &omap_hwmod_sysc_type1,
2017 static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2024 static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
2025 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2026 { .name = "mmu_cache", .rst_shift = 2 },
2029 /* l3_main_2 -> mmu_ipu */
2030 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2031 .master = &omap44xx_l3_main_2_hwmod,
2032 .slave = &omap44xx_mmu_ipu_hwmod,
2034 .user = OCP_USER_MPU | OCP_USER_SDMA,
2037 static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2039 .class = &omap44xx_mmu_hwmod_class,
2040 .clkdm_name = "ducati_clkdm",
2041 .rst_lines = omap44xx_mmu_ipu_resets,
2042 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2043 .main_clk = "ducati_clk_mux_ck",
2046 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2047 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2048 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2049 .modulemode = MODULEMODE_HWCTRL,
2056 static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
2057 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2058 { .name = "mmu_cache", .rst_shift = 1 },
2062 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2063 .master = &omap44xx_l4_cfg_hwmod,
2064 .slave = &omap44xx_mmu_dsp_hwmod,
2066 .user = OCP_USER_MPU | OCP_USER_SDMA,
2069 static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2071 .class = &omap44xx_mmu_hwmod_class,
2072 .clkdm_name = "tesla_clkdm",
2073 .rst_lines = omap44xx_mmu_dsp_resets,
2074 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2075 .main_clk = "dpll_iva_m4x2_ck",
2078 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2079 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2080 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2081 .modulemode = MODULEMODE_HWCTRL,
2091 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
2096 static struct omap_hwmod omap44xx_mpu_hwmod = {
2098 .class = &omap44xx_mpu_hwmod_class,
2099 .clkdm_name = "mpuss_clkdm",
2100 .flags = HWMOD_INIT_NO_IDLE,
2101 .main_clk = "dpll_mpu_m2_ck",
2104 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
2105 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
2112 * top-level core on-chip ram
2115 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2120 static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2122 .class = &omap44xx_ocmc_ram_hwmod_class,
2123 .clkdm_name = "l3_2_clkdm",
2126 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2127 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2134 * bridge to transform ocp interface protocol to scp (serial control port)
2138 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2140 .sysc_offs = 0x0010,
2141 .syss_offs = 0x0014,
2142 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2143 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2144 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2145 .sysc_fields = &omap_hwmod_sysc_type1,
2148 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2150 .sysc = &omap44xx_ocp2scp_sysc,
2153 /* ocp2scp_usb_phy */
2154 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2155 .name = "ocp2scp_usb_phy",
2156 .class = &omap44xx_ocp2scp_hwmod_class,
2157 .clkdm_name = "l3_init_clkdm",
2159 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2160 * block as an "optional clock," and normally should never be
2161 * specified as the main_clk for an OMAP IP block. However it
2162 * turns out that this clock is actually the main clock for
2163 * the ocp2scp_usb_phy IP block:
2164 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2165 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2166 * to be the best workaround.
2168 .main_clk = "ocp2scp_usb_phy_phy_48m",
2171 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2172 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2173 .modulemode = MODULEMODE_HWCTRL,
2180 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2181 * + clock manager 1 (in always on power domain) + local prm in mpu
2184 static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2189 static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2191 .class = &omap44xx_prcm_hwmod_class,
2192 .clkdm_name = "l4_wkup_clkdm",
2193 .flags = HWMOD_NO_IDLEST,
2196 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2202 static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2203 .name = "cm_core_aon",
2204 .class = &omap44xx_prcm_hwmod_class,
2205 .flags = HWMOD_NO_IDLEST,
2208 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2214 static struct omap_hwmod omap44xx_cm_core_hwmod = {
2216 .class = &omap44xx_prcm_hwmod_class,
2217 .flags = HWMOD_NO_IDLEST,
2220 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2226 static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2227 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2228 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2231 static struct omap_hwmod omap44xx_prm_hwmod = {
2233 .class = &omap44xx_prcm_hwmod_class,
2234 .rst_lines = omap44xx_prm_resets,
2235 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2240 * system clock and reset manager
2243 static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2248 static struct omap_hwmod omap44xx_scrm_hwmod = {
2250 .class = &omap44xx_scrm_hwmod_class,
2251 .clkdm_name = "l4_wkup_clkdm",
2254 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2261 * shared level 2 memory interface
2264 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2269 static struct omap_hwmod omap44xx_sl2if_hwmod = {
2271 .class = &omap44xx_sl2if_hwmod_class,
2272 .clkdm_name = "ivahd_clkdm",
2275 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2276 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2277 .modulemode = MODULEMODE_HWCTRL,
2284 * bidirectional, multi-drop, multi-channel two-line serial interface between
2285 * the device and external components
2288 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2290 .sysc_offs = 0x0010,
2291 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2292 SYSC_HAS_SOFTRESET),
2293 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2295 .sysc_fields = &omap_hwmod_sysc_type2,
2298 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2300 .sysc = &omap44xx_slimbus_sysc,
2304 static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2305 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2306 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2307 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2308 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2311 static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2313 .class = &omap44xx_slimbus_hwmod_class,
2314 .clkdm_name = "abe_clkdm",
2317 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2318 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2319 .modulemode = MODULEMODE_SWCTRL,
2322 .opt_clks = slimbus1_opt_clks,
2323 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2327 static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2328 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2329 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2330 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2333 static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2335 .class = &omap44xx_slimbus_hwmod_class,
2336 .clkdm_name = "l4_per_clkdm",
2339 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2340 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2341 .modulemode = MODULEMODE_SWCTRL,
2344 .opt_clks = slimbus2_opt_clks,
2345 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2349 * 'smartreflex' class
2350 * smartreflex module (monitor silicon performance and outputs a measure of
2351 * performance error)
2354 /* The IP is not compliant to type1 / type2 scheme */
2355 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2356 .sysc_offs = 0x0038,
2357 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2358 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2360 .sysc_fields = &omap36xx_sr_sysc_fields,
2363 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
2364 .name = "smartreflex",
2365 .sysc = &omap44xx_smartreflex_sysc,
2369 /* smartreflex_core */
2370 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2371 .sensor_voltdm_name = "core",
2374 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2375 .name = "smartreflex_core",
2376 .class = &omap44xx_smartreflex_hwmod_class,
2377 .clkdm_name = "l4_ao_clkdm",
2379 .main_clk = "smartreflex_core_fck",
2382 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
2383 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
2384 .modulemode = MODULEMODE_SWCTRL,
2387 .dev_attr = &smartreflex_core_dev_attr,
2390 /* smartreflex_iva */
2391 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2392 .sensor_voltdm_name = "iva",
2395 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2396 .name = "smartreflex_iva",
2397 .class = &omap44xx_smartreflex_hwmod_class,
2398 .clkdm_name = "l4_ao_clkdm",
2399 .main_clk = "smartreflex_iva_fck",
2402 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
2403 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
2404 .modulemode = MODULEMODE_SWCTRL,
2407 .dev_attr = &smartreflex_iva_dev_attr,
2410 /* smartreflex_mpu */
2411 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2412 .sensor_voltdm_name = "mpu",
2415 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2416 .name = "smartreflex_mpu",
2417 .class = &omap44xx_smartreflex_hwmod_class,
2418 .clkdm_name = "l4_ao_clkdm",
2419 .main_clk = "smartreflex_mpu_fck",
2422 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
2423 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
2424 .modulemode = MODULEMODE_SWCTRL,
2427 .dev_attr = &smartreflex_mpu_dev_attr,
2432 * spinlock provides hardware assistance for synchronizing the processes
2433 * running on multiple processors
2436 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2438 .sysc_offs = 0x0010,
2439 .syss_offs = 0x0014,
2440 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2441 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2442 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2443 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2444 .sysc_fields = &omap_hwmod_sysc_type1,
2447 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2449 .sysc = &omap44xx_spinlock_sysc,
2453 static struct omap_hwmod omap44xx_spinlock_hwmod = {
2455 .class = &omap44xx_spinlock_hwmod_class,
2456 .clkdm_name = "l4_cfg_clkdm",
2459 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
2460 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
2467 * general purpose timer module with accurate 1ms tick
2468 * This class contains several variants: ['timer_1ms', 'timer']
2471 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2473 .sysc_offs = 0x0010,
2474 .syss_offs = 0x0014,
2475 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2476 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2477 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2478 SYSS_HAS_RESET_STATUS),
2479 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2480 .sysc_fields = &omap_hwmod_sysc_type1,
2483 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2485 .sysc = &omap44xx_timer_1ms_sysc,
2488 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2490 .sysc_offs = 0x0010,
2491 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2492 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2493 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2495 .sysc_fields = &omap_hwmod_sysc_type2,
2498 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2500 .sysc = &omap44xx_timer_sysc,
2504 static struct omap_hwmod omap44xx_timer1_hwmod = {
2506 .class = &omap44xx_timer_1ms_hwmod_class,
2507 .clkdm_name = "l4_wkup_clkdm",
2508 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2509 .main_clk = "dmt1_clk_mux",
2512 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
2513 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
2514 .modulemode = MODULEMODE_SWCTRL,
2520 static struct omap_hwmod omap44xx_timer2_hwmod = {
2522 .class = &omap44xx_timer_1ms_hwmod_class,
2523 .clkdm_name = "l4_per_clkdm",
2524 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2525 .main_clk = "cm2_dm2_mux",
2528 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
2529 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
2530 .modulemode = MODULEMODE_SWCTRL,
2536 static struct omap_hwmod omap44xx_timer3_hwmod = {
2538 .class = &omap44xx_timer_hwmod_class,
2539 .clkdm_name = "l4_per_clkdm",
2540 .main_clk = "cm2_dm3_mux",
2543 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
2544 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
2545 .modulemode = MODULEMODE_SWCTRL,
2551 static struct omap_hwmod omap44xx_timer4_hwmod = {
2553 .class = &omap44xx_timer_hwmod_class,
2554 .clkdm_name = "l4_per_clkdm",
2555 .main_clk = "cm2_dm4_mux",
2558 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
2559 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
2560 .modulemode = MODULEMODE_SWCTRL,
2566 static struct omap_hwmod omap44xx_timer5_hwmod = {
2568 .class = &omap44xx_timer_hwmod_class,
2569 .clkdm_name = "abe_clkdm",
2570 .main_clk = "timer5_sync_mux",
2573 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
2574 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
2575 .modulemode = MODULEMODE_SWCTRL,
2581 static struct omap_hwmod omap44xx_timer6_hwmod = {
2583 .class = &omap44xx_timer_hwmod_class,
2584 .clkdm_name = "abe_clkdm",
2585 .main_clk = "timer6_sync_mux",
2588 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
2589 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
2590 .modulemode = MODULEMODE_SWCTRL,
2596 static struct omap_hwmod omap44xx_timer7_hwmod = {
2598 .class = &omap44xx_timer_hwmod_class,
2599 .clkdm_name = "abe_clkdm",
2600 .main_clk = "timer7_sync_mux",
2603 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
2604 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
2605 .modulemode = MODULEMODE_SWCTRL,
2611 static struct omap_hwmod omap44xx_timer8_hwmod = {
2613 .class = &omap44xx_timer_hwmod_class,
2614 .clkdm_name = "abe_clkdm",
2615 .main_clk = "timer8_sync_mux",
2618 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
2619 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
2620 .modulemode = MODULEMODE_SWCTRL,
2626 static struct omap_hwmod omap44xx_timer9_hwmod = {
2628 .class = &omap44xx_timer_hwmod_class,
2629 .clkdm_name = "l4_per_clkdm",
2630 .main_clk = "cm2_dm9_mux",
2633 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
2634 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
2635 .modulemode = MODULEMODE_SWCTRL,
2641 static struct omap_hwmod omap44xx_timer10_hwmod = {
2643 .class = &omap44xx_timer_1ms_hwmod_class,
2644 .clkdm_name = "l4_per_clkdm",
2645 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2646 .main_clk = "cm2_dm10_mux",
2649 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
2650 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
2651 .modulemode = MODULEMODE_SWCTRL,
2657 static struct omap_hwmod omap44xx_timer11_hwmod = {
2659 .class = &omap44xx_timer_hwmod_class,
2660 .clkdm_name = "l4_per_clkdm",
2661 .main_clk = "cm2_dm11_mux",
2664 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
2665 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
2666 .modulemode = MODULEMODE_SWCTRL,
2673 * universal asynchronous receiver/transmitter (uart)
2676 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2678 .sysc_offs = 0x0054,
2679 .syss_offs = 0x0058,
2680 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2681 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2682 SYSS_HAS_RESET_STATUS),
2683 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2685 .sysc_fields = &omap_hwmod_sysc_type1,
2688 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
2690 .sysc = &omap44xx_uart_sysc,
2694 static struct omap_hwmod omap44xx_uart1_hwmod = {
2696 .class = &omap44xx_uart_hwmod_class,
2697 .clkdm_name = "l4_per_clkdm",
2698 .flags = HWMOD_SWSUP_SIDLE_ACT,
2699 .main_clk = "func_48m_fclk",
2702 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
2703 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
2704 .modulemode = MODULEMODE_SWCTRL,
2710 static struct omap_hwmod omap44xx_uart2_hwmod = {
2712 .class = &omap44xx_uart_hwmod_class,
2713 .clkdm_name = "l4_per_clkdm",
2714 .flags = HWMOD_SWSUP_SIDLE_ACT,
2715 .main_clk = "func_48m_fclk",
2718 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
2719 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
2720 .modulemode = MODULEMODE_SWCTRL,
2726 static struct omap_hwmod omap44xx_uart3_hwmod = {
2728 .class = &omap44xx_uart_hwmod_class,
2729 .clkdm_name = "l4_per_clkdm",
2730 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
2731 .main_clk = "func_48m_fclk",
2734 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
2735 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
2736 .modulemode = MODULEMODE_SWCTRL,
2742 static struct omap_hwmod omap44xx_uart4_hwmod = {
2744 .class = &omap44xx_uart_hwmod_class,
2745 .clkdm_name = "l4_per_clkdm",
2746 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
2747 .main_clk = "func_48m_fclk",
2750 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
2751 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
2752 .modulemode = MODULEMODE_SWCTRL,
2758 * 'usb_host_fs' class
2759 * full-speed usb host controller
2762 /* The IP is not compliant to type1 / type2 scheme */
2763 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2765 .sysc_offs = 0x0210,
2766 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2767 SYSC_HAS_SOFTRESET),
2768 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2770 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2773 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2774 .name = "usb_host_fs",
2775 .sysc = &omap44xx_usb_host_fs_sysc,
2779 static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2780 .name = "usb_host_fs",
2781 .class = &omap44xx_usb_host_fs_hwmod_class,
2782 .clkdm_name = "l3_init_clkdm",
2783 .main_clk = "usb_host_fs_fck",
2786 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2787 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2788 .modulemode = MODULEMODE_SWCTRL,
2794 * 'usb_host_hs' class
2795 * high-speed multi-port usb host controller
2798 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2800 .sysc_offs = 0x0010,
2801 .syss_offs = 0x0014,
2802 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2803 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
2804 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2805 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2806 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2807 .sysc_fields = &omap_hwmod_sysc_type2,
2810 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
2811 .name = "usb_host_hs",
2812 .sysc = &omap44xx_usb_host_hs_sysc,
2816 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2817 .name = "usb_host_hs",
2818 .class = &omap44xx_usb_host_hs_hwmod_class,
2819 .clkdm_name = "l3_init_clkdm",
2820 .main_clk = "usb_host_hs_fck",
2823 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2824 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2825 .modulemode = MODULEMODE_SWCTRL,
2830 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2834 * In the following configuration :
2835 * - USBHOST module is set to smart-idle mode
2836 * - PRCM asserts idle_req to the USBHOST module ( This typically
2837 * happens when the system is going to a low power mode : all ports
2838 * have been suspended, the master part of the USBHOST module has
2839 * entered the standby state, and SW has cut the functional clocks)
2840 * - an USBHOST interrupt occurs before the module is able to answer
2841 * idle_ack, typically a remote wakeup IRQ.
2842 * Then the USB HOST module will enter a deadlock situation where it
2843 * is no more accessible nor functional.
2846 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2850 * Errata: USB host EHCI may stall when entering smart-standby mode
2854 * When the USBHOST module is set to smart-standby mode, and when it is
2855 * ready to enter the standby state (i.e. all ports are suspended and
2856 * all attached devices are in suspend mode), then it can wrongly assert
2857 * the Mstandby signal too early while there are still some residual OCP
2858 * transactions ongoing. If this condition occurs, the internal state
2859 * machine may go to an undefined state and the USB link may be stuck
2860 * upon the next resume.
2863 * Don't use smart standby; use only force standby,
2864 * hence HWMOD_SWSUP_MSTANDBY
2867 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2871 * 'usb_otg_hs' class
2872 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2875 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
2877 .sysc_offs = 0x0404,
2878 .syss_offs = 0x0408,
2879 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2880 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2881 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2882 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2883 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2885 .sysc_fields = &omap_hwmod_sysc_type1,
2888 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
2889 .name = "usb_otg_hs",
2890 .sysc = &omap44xx_usb_otg_hs_sysc,
2894 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
2895 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
2898 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
2899 .name = "usb_otg_hs",
2900 .class = &omap44xx_usb_otg_hs_hwmod_class,
2901 .clkdm_name = "l3_init_clkdm",
2902 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2903 .main_clk = "usb_otg_hs_ick",
2906 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
2907 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
2908 .modulemode = MODULEMODE_HWCTRL,
2911 .opt_clks = usb_otg_hs_opt_clks,
2912 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
2916 * 'usb_tll_hs' class
2917 * usb_tll_hs module is the adapter on the usb_host_hs ports
2920 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
2922 .sysc_offs = 0x0010,
2923 .syss_offs = 0x0014,
2924 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2925 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2927 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2928 .sysc_fields = &omap_hwmod_sysc_type1,
2931 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
2932 .name = "usb_tll_hs",
2933 .sysc = &omap44xx_usb_tll_hs_sysc,
2936 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
2937 .name = "usb_tll_hs",
2938 .class = &omap44xx_usb_tll_hs_hwmod_class,
2939 .clkdm_name = "l3_init_clkdm",
2940 .main_clk = "usb_tll_hs_ick",
2943 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
2944 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
2945 .modulemode = MODULEMODE_HWCTRL,
2952 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
2953 * overflow condition
2956 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
2958 .sysc_offs = 0x0010,
2959 .syss_offs = 0x0014,
2960 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2961 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2962 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2964 .sysc_fields = &omap_hwmod_sysc_type1,
2967 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
2969 .sysc = &omap44xx_wd_timer_sysc,
2970 .pre_shutdown = &omap2_wd_timer_disable,
2971 .reset = &omap2_wd_timer_reset,
2975 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
2976 .name = "wd_timer2",
2977 .class = &omap44xx_wd_timer_hwmod_class,
2978 .clkdm_name = "l4_wkup_clkdm",
2979 .main_clk = "sys_32k_ck",
2982 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
2983 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
2984 .modulemode = MODULEMODE_SWCTRL,
2990 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
2991 .name = "wd_timer3",
2992 .class = &omap44xx_wd_timer_hwmod_class,
2993 .clkdm_name = "abe_clkdm",
2994 .main_clk = "sys_32k_ck",
2997 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
2998 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
2999 .modulemode = MODULEMODE_SWCTRL,
3009 /* l3_main_1 -> dmm */
3010 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3011 .master = &omap44xx_l3_main_1_hwmod,
3012 .slave = &omap44xx_dmm_hwmod,
3014 .user = OCP_USER_SDMA,
3018 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3019 .master = &omap44xx_mpu_hwmod,
3020 .slave = &omap44xx_dmm_hwmod,
3022 .user = OCP_USER_MPU,
3025 /* iva -> l3_instr */
3026 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3027 .master = &omap44xx_iva_hwmod,
3028 .slave = &omap44xx_l3_instr_hwmod,
3030 .user = OCP_USER_MPU | OCP_USER_SDMA,
3033 /* l3_main_3 -> l3_instr */
3034 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3035 .master = &omap44xx_l3_main_3_hwmod,
3036 .slave = &omap44xx_l3_instr_hwmod,
3038 .user = OCP_USER_MPU | OCP_USER_SDMA,
3041 /* ocp_wp_noc -> l3_instr */
3042 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3043 .master = &omap44xx_ocp_wp_noc_hwmod,
3044 .slave = &omap44xx_l3_instr_hwmod,
3046 .user = OCP_USER_MPU | OCP_USER_SDMA,
3049 /* dsp -> l3_main_1 */
3050 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3051 .master = &omap44xx_dsp_hwmod,
3052 .slave = &omap44xx_l3_main_1_hwmod,
3054 .user = OCP_USER_MPU | OCP_USER_SDMA,
3057 /* dss -> l3_main_1 */
3058 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3059 .master = &omap44xx_dss_hwmod,
3060 .slave = &omap44xx_l3_main_1_hwmod,
3062 .user = OCP_USER_MPU | OCP_USER_SDMA,
3065 /* l3_main_2 -> l3_main_1 */
3066 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3067 .master = &omap44xx_l3_main_2_hwmod,
3068 .slave = &omap44xx_l3_main_1_hwmod,
3070 .user = OCP_USER_MPU | OCP_USER_SDMA,
3073 /* l4_cfg -> l3_main_1 */
3074 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3075 .master = &omap44xx_l4_cfg_hwmod,
3076 .slave = &omap44xx_l3_main_1_hwmod,
3078 .user = OCP_USER_MPU | OCP_USER_SDMA,
3081 /* mmc1 -> l3_main_1 */
3082 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3083 .master = &omap44xx_mmc1_hwmod,
3084 .slave = &omap44xx_l3_main_1_hwmod,
3086 .user = OCP_USER_MPU | OCP_USER_SDMA,
3089 /* mmc2 -> l3_main_1 */
3090 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3091 .master = &omap44xx_mmc2_hwmod,
3092 .slave = &omap44xx_l3_main_1_hwmod,
3094 .user = OCP_USER_MPU | OCP_USER_SDMA,
3097 /* mpu -> l3_main_1 */
3098 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3099 .master = &omap44xx_mpu_hwmod,
3100 .slave = &omap44xx_l3_main_1_hwmod,
3102 .user = OCP_USER_MPU,
3105 /* debugss -> l3_main_2 */
3106 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3107 .master = &omap44xx_debugss_hwmod,
3108 .slave = &omap44xx_l3_main_2_hwmod,
3109 .clk = "dbgclk_mux_ck",
3110 .user = OCP_USER_MPU | OCP_USER_SDMA,
3113 /* dma_system -> l3_main_2 */
3114 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3115 .master = &omap44xx_dma_system_hwmod,
3116 .slave = &omap44xx_l3_main_2_hwmod,
3118 .user = OCP_USER_MPU | OCP_USER_SDMA,
3121 /* fdif -> l3_main_2 */
3122 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3123 .master = &omap44xx_fdif_hwmod,
3124 .slave = &omap44xx_l3_main_2_hwmod,
3126 .user = OCP_USER_MPU | OCP_USER_SDMA,
3129 /* gpu -> l3_main_2 */
3130 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3131 .master = &omap44xx_gpu_hwmod,
3132 .slave = &omap44xx_l3_main_2_hwmod,
3134 .user = OCP_USER_MPU | OCP_USER_SDMA,
3137 /* hsi -> l3_main_2 */
3138 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3139 .master = &omap44xx_hsi_hwmod,
3140 .slave = &omap44xx_l3_main_2_hwmod,
3142 .user = OCP_USER_MPU | OCP_USER_SDMA,
3145 /* ipu -> l3_main_2 */
3146 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3147 .master = &omap44xx_ipu_hwmod,
3148 .slave = &omap44xx_l3_main_2_hwmod,
3150 .user = OCP_USER_MPU | OCP_USER_SDMA,
3153 /* iss -> l3_main_2 */
3154 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3155 .master = &omap44xx_iss_hwmod,
3156 .slave = &omap44xx_l3_main_2_hwmod,
3158 .user = OCP_USER_MPU | OCP_USER_SDMA,
3161 /* iva -> l3_main_2 */
3162 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3163 .master = &omap44xx_iva_hwmod,
3164 .slave = &omap44xx_l3_main_2_hwmod,
3166 .user = OCP_USER_MPU | OCP_USER_SDMA,
3169 /* l3_main_1 -> l3_main_2 */
3170 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3171 .master = &omap44xx_l3_main_1_hwmod,
3172 .slave = &omap44xx_l3_main_2_hwmod,
3174 .user = OCP_USER_MPU,
3177 /* l4_cfg -> l3_main_2 */
3178 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3179 .master = &omap44xx_l4_cfg_hwmod,
3180 .slave = &omap44xx_l3_main_2_hwmod,
3182 .user = OCP_USER_MPU | OCP_USER_SDMA,
3185 /* usb_host_fs -> l3_main_2 */
3186 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
3187 .master = &omap44xx_usb_host_fs_hwmod,
3188 .slave = &omap44xx_l3_main_2_hwmod,
3190 .user = OCP_USER_MPU | OCP_USER_SDMA,
3193 /* usb_host_hs -> l3_main_2 */
3194 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3195 .master = &omap44xx_usb_host_hs_hwmod,
3196 .slave = &omap44xx_l3_main_2_hwmod,
3198 .user = OCP_USER_MPU | OCP_USER_SDMA,
3201 /* usb_otg_hs -> l3_main_2 */
3202 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3203 .master = &omap44xx_usb_otg_hs_hwmod,
3204 .slave = &omap44xx_l3_main_2_hwmod,
3206 .user = OCP_USER_MPU | OCP_USER_SDMA,
3209 /* l3_main_1 -> l3_main_3 */
3210 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3211 .master = &omap44xx_l3_main_1_hwmod,
3212 .slave = &omap44xx_l3_main_3_hwmod,
3214 .user = OCP_USER_MPU,
3217 /* l3_main_2 -> l3_main_3 */
3218 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3219 .master = &omap44xx_l3_main_2_hwmod,
3220 .slave = &omap44xx_l3_main_3_hwmod,
3222 .user = OCP_USER_MPU | OCP_USER_SDMA,
3225 /* l4_cfg -> l3_main_3 */
3226 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3227 .master = &omap44xx_l4_cfg_hwmod,
3228 .slave = &omap44xx_l3_main_3_hwmod,
3230 .user = OCP_USER_MPU | OCP_USER_SDMA,
3233 /* aess -> l4_abe */
3234 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
3235 .master = &omap44xx_aess_hwmod,
3236 .slave = &omap44xx_l4_abe_hwmod,
3237 .clk = "ocp_abe_iclk",
3238 .user = OCP_USER_MPU | OCP_USER_SDMA,
3242 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3243 .master = &omap44xx_dsp_hwmod,
3244 .slave = &omap44xx_l4_abe_hwmod,
3245 .clk = "ocp_abe_iclk",
3246 .user = OCP_USER_MPU | OCP_USER_SDMA,
3249 /* l3_main_1 -> l4_abe */
3250 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3251 .master = &omap44xx_l3_main_1_hwmod,
3252 .slave = &omap44xx_l4_abe_hwmod,
3254 .user = OCP_USER_MPU | OCP_USER_SDMA,
3258 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3259 .master = &omap44xx_mpu_hwmod,
3260 .slave = &omap44xx_l4_abe_hwmod,
3261 .clk = "ocp_abe_iclk",
3262 .user = OCP_USER_MPU | OCP_USER_SDMA,
3265 /* l3_main_1 -> l4_cfg */
3266 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3267 .master = &omap44xx_l3_main_1_hwmod,
3268 .slave = &omap44xx_l4_cfg_hwmod,
3270 .user = OCP_USER_MPU | OCP_USER_SDMA,
3273 /* l3_main_2 -> l4_per */
3274 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3275 .master = &omap44xx_l3_main_2_hwmod,
3276 .slave = &omap44xx_l4_per_hwmod,
3278 .user = OCP_USER_MPU | OCP_USER_SDMA,
3281 /* l4_cfg -> l4_wkup */
3282 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3283 .master = &omap44xx_l4_cfg_hwmod,
3284 .slave = &omap44xx_l4_wkup_hwmod,
3286 .user = OCP_USER_MPU | OCP_USER_SDMA,
3289 /* mpu -> mpu_private */
3290 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3291 .master = &omap44xx_mpu_hwmod,
3292 .slave = &omap44xx_mpu_private_hwmod,
3294 .user = OCP_USER_MPU | OCP_USER_SDMA,
3297 /* l4_cfg -> ocp_wp_noc */
3298 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3299 .master = &omap44xx_l4_cfg_hwmod,
3300 .slave = &omap44xx_ocp_wp_noc_hwmod,
3302 .user = OCP_USER_MPU | OCP_USER_SDMA,
3305 /* l4_abe -> aess */
3306 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
3307 .master = &omap44xx_l4_abe_hwmod,
3308 .slave = &omap44xx_aess_hwmod,
3309 .clk = "ocp_abe_iclk",
3310 .user = OCP_USER_MPU,
3313 /* l4_abe -> aess (dma) */
3314 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
3315 .master = &omap44xx_l4_abe_hwmod,
3316 .slave = &omap44xx_aess_hwmod,
3317 .clk = "ocp_abe_iclk",
3318 .user = OCP_USER_SDMA,
3321 /* l3_main_2 -> c2c */
3322 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3323 .master = &omap44xx_l3_main_2_hwmod,
3324 .slave = &omap44xx_c2c_hwmod,
3326 .user = OCP_USER_MPU | OCP_USER_SDMA,
3329 /* l4_wkup -> counter_32k */
3330 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3331 .master = &omap44xx_l4_wkup_hwmod,
3332 .slave = &omap44xx_counter_32k_hwmod,
3333 .clk = "l4_wkup_clk_mux_ck",
3334 .user = OCP_USER_MPU | OCP_USER_SDMA,
3337 /* l4_cfg -> ctrl_module_core */
3338 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3339 .master = &omap44xx_l4_cfg_hwmod,
3340 .slave = &omap44xx_ctrl_module_core_hwmod,
3342 .user = OCP_USER_MPU | OCP_USER_SDMA,
3345 /* l4_cfg -> ctrl_module_pad_core */
3346 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3347 .master = &omap44xx_l4_cfg_hwmod,
3348 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3350 .user = OCP_USER_MPU | OCP_USER_SDMA,
3353 /* l4_wkup -> ctrl_module_wkup */
3354 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3355 .master = &omap44xx_l4_wkup_hwmod,
3356 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3357 .clk = "l4_wkup_clk_mux_ck",
3358 .user = OCP_USER_MPU | OCP_USER_SDMA,
3361 /* l4_wkup -> ctrl_module_pad_wkup */
3362 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3363 .master = &omap44xx_l4_wkup_hwmod,
3364 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3365 .clk = "l4_wkup_clk_mux_ck",
3366 .user = OCP_USER_MPU | OCP_USER_SDMA,
3369 /* l3_instr -> debugss */
3370 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3371 .master = &omap44xx_l3_instr_hwmod,
3372 .slave = &omap44xx_debugss_hwmod,
3374 .user = OCP_USER_MPU | OCP_USER_SDMA,
3377 /* l4_cfg -> dma_system */
3378 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3379 .master = &omap44xx_l4_cfg_hwmod,
3380 .slave = &omap44xx_dma_system_hwmod,
3382 .user = OCP_USER_MPU | OCP_USER_SDMA,
3385 /* l4_abe -> dmic */
3386 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3387 .master = &omap44xx_l4_abe_hwmod,
3388 .slave = &omap44xx_dmic_hwmod,
3389 .clk = "ocp_abe_iclk",
3390 .user = OCP_USER_MPU | OCP_USER_SDMA,
3394 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3395 .master = &omap44xx_dsp_hwmod,
3396 .slave = &omap44xx_iva_hwmod,
3397 .clk = "dpll_iva_m5x2_ck",
3398 .user = OCP_USER_DSP,
3402 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
3403 .master = &omap44xx_dsp_hwmod,
3404 .slave = &omap44xx_sl2if_hwmod,
3405 .clk = "dpll_iva_m5x2_ck",
3406 .user = OCP_USER_DSP,
3410 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3411 .master = &omap44xx_l4_cfg_hwmod,
3412 .slave = &omap44xx_dsp_hwmod,
3414 .user = OCP_USER_MPU | OCP_USER_SDMA,
3417 /* l3_main_2 -> dss */
3418 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3419 .master = &omap44xx_l3_main_2_hwmod,
3420 .slave = &omap44xx_dss_hwmod,
3422 .user = OCP_USER_SDMA,
3426 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3427 .master = &omap44xx_l4_per_hwmod,
3428 .slave = &omap44xx_dss_hwmod,
3430 .user = OCP_USER_MPU,
3433 /* l3_main_2 -> dss_dispc */
3434 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3435 .master = &omap44xx_l3_main_2_hwmod,
3436 .slave = &omap44xx_dss_dispc_hwmod,
3438 .user = OCP_USER_SDMA,
3441 /* l4_per -> dss_dispc */
3442 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3443 .master = &omap44xx_l4_per_hwmod,
3444 .slave = &omap44xx_dss_dispc_hwmod,
3446 .user = OCP_USER_MPU,
3449 /* l3_main_2 -> dss_dsi1 */
3450 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3451 .master = &omap44xx_l3_main_2_hwmod,
3452 .slave = &omap44xx_dss_dsi1_hwmod,
3454 .user = OCP_USER_SDMA,
3457 /* l4_per -> dss_dsi1 */
3458 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3459 .master = &omap44xx_l4_per_hwmod,
3460 .slave = &omap44xx_dss_dsi1_hwmod,
3462 .user = OCP_USER_MPU,
3465 /* l3_main_2 -> dss_dsi2 */
3466 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3467 .master = &omap44xx_l3_main_2_hwmod,
3468 .slave = &omap44xx_dss_dsi2_hwmod,
3470 .user = OCP_USER_SDMA,
3473 /* l4_per -> dss_dsi2 */
3474 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3475 .master = &omap44xx_l4_per_hwmod,
3476 .slave = &omap44xx_dss_dsi2_hwmod,
3478 .user = OCP_USER_MPU,
3481 /* l3_main_2 -> dss_hdmi */
3482 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3483 .master = &omap44xx_l3_main_2_hwmod,
3484 .slave = &omap44xx_dss_hdmi_hwmod,
3486 .user = OCP_USER_SDMA,
3489 /* l4_per -> dss_hdmi */
3490 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3491 .master = &omap44xx_l4_per_hwmod,
3492 .slave = &omap44xx_dss_hdmi_hwmod,
3494 .user = OCP_USER_MPU,
3497 /* l3_main_2 -> dss_rfbi */
3498 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3499 .master = &omap44xx_l3_main_2_hwmod,
3500 .slave = &omap44xx_dss_rfbi_hwmod,
3502 .user = OCP_USER_SDMA,
3505 /* l4_per -> dss_rfbi */
3506 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3507 .master = &omap44xx_l4_per_hwmod,
3508 .slave = &omap44xx_dss_rfbi_hwmod,
3510 .user = OCP_USER_MPU,
3513 /* l3_main_2 -> dss_venc */
3514 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3515 .master = &omap44xx_l3_main_2_hwmod,
3516 .slave = &omap44xx_dss_venc_hwmod,
3518 .user = OCP_USER_SDMA,
3521 /* l4_per -> dss_venc */
3522 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3523 .master = &omap44xx_l4_per_hwmod,
3524 .slave = &omap44xx_dss_venc_hwmod,
3526 .user = OCP_USER_MPU,
3529 /* l3_main_2 -> sham */
3530 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
3531 .master = &omap44xx_l3_main_2_hwmod,
3532 .slave = &omap44xx_sha0_hwmod,
3534 .user = OCP_USER_MPU | OCP_USER_SDMA,
3538 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3539 .master = &omap44xx_l4_per_hwmod,
3540 .slave = &omap44xx_elm_hwmod,
3542 .user = OCP_USER_MPU | OCP_USER_SDMA,
3545 /* l4_cfg -> fdif */
3546 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3547 .master = &omap44xx_l4_cfg_hwmod,
3548 .slave = &omap44xx_fdif_hwmod,
3550 .user = OCP_USER_MPU | OCP_USER_SDMA,
3553 /* l4_wkup -> gpio1 */
3554 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3555 .master = &omap44xx_l4_wkup_hwmod,
3556 .slave = &omap44xx_gpio1_hwmod,
3557 .clk = "l4_wkup_clk_mux_ck",
3558 .user = OCP_USER_MPU | OCP_USER_SDMA,
3561 /* l4_per -> gpio2 */
3562 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3563 .master = &omap44xx_l4_per_hwmod,
3564 .slave = &omap44xx_gpio2_hwmod,
3566 .user = OCP_USER_MPU | OCP_USER_SDMA,
3569 /* l4_per -> gpio3 */
3570 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3571 .master = &omap44xx_l4_per_hwmod,
3572 .slave = &omap44xx_gpio3_hwmod,
3574 .user = OCP_USER_MPU | OCP_USER_SDMA,
3577 /* l4_per -> gpio4 */
3578 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3579 .master = &omap44xx_l4_per_hwmod,
3580 .slave = &omap44xx_gpio4_hwmod,
3582 .user = OCP_USER_MPU | OCP_USER_SDMA,
3585 /* l4_per -> gpio5 */
3586 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3587 .master = &omap44xx_l4_per_hwmod,
3588 .slave = &omap44xx_gpio5_hwmod,
3590 .user = OCP_USER_MPU | OCP_USER_SDMA,
3593 /* l4_per -> gpio6 */
3594 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
3595 .master = &omap44xx_l4_per_hwmod,
3596 .slave = &omap44xx_gpio6_hwmod,
3598 .user = OCP_USER_MPU | OCP_USER_SDMA,
3601 /* l3_main_2 -> gpmc */
3602 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
3603 .master = &omap44xx_l3_main_2_hwmod,
3604 .slave = &omap44xx_gpmc_hwmod,
3606 .user = OCP_USER_MPU | OCP_USER_SDMA,
3609 /* l3_main_2 -> gpu */
3610 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
3611 .master = &omap44xx_l3_main_2_hwmod,
3612 .slave = &omap44xx_gpu_hwmod,
3614 .user = OCP_USER_MPU | OCP_USER_SDMA,
3617 /* l4_per -> hdq1w */
3618 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
3619 .master = &omap44xx_l4_per_hwmod,
3620 .slave = &omap44xx_hdq1w_hwmod,
3622 .user = OCP_USER_MPU | OCP_USER_SDMA,
3626 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
3627 .master = &omap44xx_l4_cfg_hwmod,
3628 .slave = &omap44xx_hsi_hwmod,
3630 .user = OCP_USER_MPU | OCP_USER_SDMA,
3633 /* l4_per -> i2c1 */
3634 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
3635 .master = &omap44xx_l4_per_hwmod,
3636 .slave = &omap44xx_i2c1_hwmod,
3638 .user = OCP_USER_MPU | OCP_USER_SDMA,
3641 /* l4_per -> i2c2 */
3642 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
3643 .master = &omap44xx_l4_per_hwmod,
3644 .slave = &omap44xx_i2c2_hwmod,
3646 .user = OCP_USER_MPU | OCP_USER_SDMA,
3649 /* l4_per -> i2c3 */
3650 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
3651 .master = &omap44xx_l4_per_hwmod,
3652 .slave = &omap44xx_i2c3_hwmod,
3654 .user = OCP_USER_MPU | OCP_USER_SDMA,
3657 /* l4_per -> i2c4 */
3658 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
3659 .master = &omap44xx_l4_per_hwmod,
3660 .slave = &omap44xx_i2c4_hwmod,
3662 .user = OCP_USER_MPU | OCP_USER_SDMA,
3665 /* l3_main_2 -> ipu */
3666 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
3667 .master = &omap44xx_l3_main_2_hwmod,
3668 .slave = &omap44xx_ipu_hwmod,
3670 .user = OCP_USER_MPU | OCP_USER_SDMA,
3673 /* l3_main_2 -> iss */
3674 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
3675 .master = &omap44xx_l3_main_2_hwmod,
3676 .slave = &omap44xx_iss_hwmod,
3678 .user = OCP_USER_MPU | OCP_USER_SDMA,
3682 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
3683 .master = &omap44xx_iva_hwmod,
3684 .slave = &omap44xx_sl2if_hwmod,
3685 .clk = "dpll_iva_m5x2_ck",
3686 .user = OCP_USER_IVA,
3689 /* l3_main_2 -> iva */
3690 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
3691 .master = &omap44xx_l3_main_2_hwmod,
3692 .slave = &omap44xx_iva_hwmod,
3694 .user = OCP_USER_MPU,
3697 /* l4_wkup -> kbd */
3698 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
3699 .master = &omap44xx_l4_wkup_hwmod,
3700 .slave = &omap44xx_kbd_hwmod,
3701 .clk = "l4_wkup_clk_mux_ck",
3702 .user = OCP_USER_MPU | OCP_USER_SDMA,
3705 /* l4_cfg -> mailbox */
3706 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
3707 .master = &omap44xx_l4_cfg_hwmod,
3708 .slave = &omap44xx_mailbox_hwmod,
3710 .user = OCP_USER_MPU | OCP_USER_SDMA,
3713 /* l4_abe -> mcasp */
3714 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
3715 .master = &omap44xx_l4_abe_hwmod,
3716 .slave = &omap44xx_mcasp_hwmod,
3717 .clk = "ocp_abe_iclk",
3718 .user = OCP_USER_MPU,
3721 /* l4_abe -> mcasp (dma) */
3722 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
3723 .master = &omap44xx_l4_abe_hwmod,
3724 .slave = &omap44xx_mcasp_hwmod,
3725 .clk = "ocp_abe_iclk",
3726 .user = OCP_USER_SDMA,
3729 /* l4_abe -> mcbsp1 */
3730 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
3731 .master = &omap44xx_l4_abe_hwmod,
3732 .slave = &omap44xx_mcbsp1_hwmod,
3733 .clk = "ocp_abe_iclk",
3734 .user = OCP_USER_MPU | OCP_USER_SDMA,
3737 /* l4_abe -> mcbsp2 */
3738 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
3739 .master = &omap44xx_l4_abe_hwmod,
3740 .slave = &omap44xx_mcbsp2_hwmod,
3741 .clk = "ocp_abe_iclk",
3742 .user = OCP_USER_MPU | OCP_USER_SDMA,
3745 /* l4_abe -> mcbsp3 */
3746 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
3747 .master = &omap44xx_l4_abe_hwmod,
3748 .slave = &omap44xx_mcbsp3_hwmod,
3749 .clk = "ocp_abe_iclk",
3750 .user = OCP_USER_MPU | OCP_USER_SDMA,
3753 /* l4_per -> mcbsp4 */
3754 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3755 .master = &omap44xx_l4_per_hwmod,
3756 .slave = &omap44xx_mcbsp4_hwmod,
3758 .user = OCP_USER_MPU | OCP_USER_SDMA,
3761 /* l4_abe -> mcpdm */
3762 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3763 .master = &omap44xx_l4_abe_hwmod,
3764 .slave = &omap44xx_mcpdm_hwmod,
3765 .clk = "ocp_abe_iclk",
3766 .user = OCP_USER_MPU | OCP_USER_SDMA,
3769 /* l4_per -> mcspi1 */
3770 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3771 .master = &omap44xx_l4_per_hwmod,
3772 .slave = &omap44xx_mcspi1_hwmod,
3774 .user = OCP_USER_MPU | OCP_USER_SDMA,
3777 /* l4_per -> mcspi2 */
3778 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3779 .master = &omap44xx_l4_per_hwmod,
3780 .slave = &omap44xx_mcspi2_hwmod,
3782 .user = OCP_USER_MPU | OCP_USER_SDMA,
3785 /* l4_per -> mcspi3 */
3786 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3787 .master = &omap44xx_l4_per_hwmod,
3788 .slave = &omap44xx_mcspi3_hwmod,
3790 .user = OCP_USER_MPU | OCP_USER_SDMA,
3793 /* l4_per -> mcspi4 */
3794 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3795 .master = &omap44xx_l4_per_hwmod,
3796 .slave = &omap44xx_mcspi4_hwmod,
3798 .user = OCP_USER_MPU | OCP_USER_SDMA,
3801 /* l4_per -> mmc1 */
3802 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3803 .master = &omap44xx_l4_per_hwmod,
3804 .slave = &omap44xx_mmc1_hwmod,
3806 .user = OCP_USER_MPU | OCP_USER_SDMA,
3809 /* l4_per -> mmc2 */
3810 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3811 .master = &omap44xx_l4_per_hwmod,
3812 .slave = &omap44xx_mmc2_hwmod,
3814 .user = OCP_USER_MPU | OCP_USER_SDMA,
3817 /* l4_per -> mmc3 */
3818 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3819 .master = &omap44xx_l4_per_hwmod,
3820 .slave = &omap44xx_mmc3_hwmod,
3822 .user = OCP_USER_MPU | OCP_USER_SDMA,
3825 /* l4_per -> mmc4 */
3826 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3827 .master = &omap44xx_l4_per_hwmod,
3828 .slave = &omap44xx_mmc4_hwmod,
3830 .user = OCP_USER_MPU | OCP_USER_SDMA,
3833 /* l4_per -> mmc5 */
3834 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3835 .master = &omap44xx_l4_per_hwmod,
3836 .slave = &omap44xx_mmc5_hwmod,
3838 .user = OCP_USER_MPU | OCP_USER_SDMA,
3841 /* l3_main_2 -> ocmc_ram */
3842 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
3843 .master = &omap44xx_l3_main_2_hwmod,
3844 .slave = &omap44xx_ocmc_ram_hwmod,
3846 .user = OCP_USER_MPU | OCP_USER_SDMA,
3849 /* l4_cfg -> ocp2scp_usb_phy */
3850 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
3851 .master = &omap44xx_l4_cfg_hwmod,
3852 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
3854 .user = OCP_USER_MPU | OCP_USER_SDMA,
3857 /* mpu_private -> prcm_mpu */
3858 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
3859 .master = &omap44xx_mpu_private_hwmod,
3860 .slave = &omap44xx_prcm_mpu_hwmod,
3862 .user = OCP_USER_MPU | OCP_USER_SDMA,
3865 /* l4_wkup -> cm_core_aon */
3866 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
3867 .master = &omap44xx_l4_wkup_hwmod,
3868 .slave = &omap44xx_cm_core_aon_hwmod,
3869 .clk = "l4_wkup_clk_mux_ck",
3870 .user = OCP_USER_MPU | OCP_USER_SDMA,
3873 /* l4_cfg -> cm_core */
3874 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
3875 .master = &omap44xx_l4_cfg_hwmod,
3876 .slave = &omap44xx_cm_core_hwmod,
3878 .user = OCP_USER_MPU | OCP_USER_SDMA,
3881 /* l4_wkup -> prm */
3882 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
3883 .master = &omap44xx_l4_wkup_hwmod,
3884 .slave = &omap44xx_prm_hwmod,
3885 .clk = "l4_wkup_clk_mux_ck",
3886 .user = OCP_USER_MPU | OCP_USER_SDMA,
3889 /* l4_wkup -> scrm */
3890 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
3891 .master = &omap44xx_l4_wkup_hwmod,
3892 .slave = &omap44xx_scrm_hwmod,
3893 .clk = "l4_wkup_clk_mux_ck",
3894 .user = OCP_USER_MPU | OCP_USER_SDMA,
3897 /* l3_main_2 -> sl2if */
3898 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
3899 .master = &omap44xx_l3_main_2_hwmod,
3900 .slave = &omap44xx_sl2if_hwmod,
3902 .user = OCP_USER_MPU | OCP_USER_SDMA,
3905 /* l4_abe -> slimbus1 */
3906 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
3907 .master = &omap44xx_l4_abe_hwmod,
3908 .slave = &omap44xx_slimbus1_hwmod,
3909 .clk = "ocp_abe_iclk",
3910 .user = OCP_USER_MPU,
3913 /* l4_abe -> slimbus1 (dma) */
3914 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
3915 .master = &omap44xx_l4_abe_hwmod,
3916 .slave = &omap44xx_slimbus1_hwmod,
3917 .clk = "ocp_abe_iclk",
3918 .user = OCP_USER_SDMA,
3921 /* l4_per -> slimbus2 */
3922 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
3923 .master = &omap44xx_l4_per_hwmod,
3924 .slave = &omap44xx_slimbus2_hwmod,
3926 .user = OCP_USER_MPU | OCP_USER_SDMA,
3929 /* l4_cfg -> smartreflex_core */
3930 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3931 .master = &omap44xx_l4_cfg_hwmod,
3932 .slave = &omap44xx_smartreflex_core_hwmod,
3934 .user = OCP_USER_MPU | OCP_USER_SDMA,
3937 /* l4_cfg -> smartreflex_iva */
3938 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3939 .master = &omap44xx_l4_cfg_hwmod,
3940 .slave = &omap44xx_smartreflex_iva_hwmod,
3942 .user = OCP_USER_MPU | OCP_USER_SDMA,
3945 /* l4_cfg -> smartreflex_mpu */
3946 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3947 .master = &omap44xx_l4_cfg_hwmod,
3948 .slave = &omap44xx_smartreflex_mpu_hwmod,
3950 .user = OCP_USER_MPU | OCP_USER_SDMA,
3953 /* l4_cfg -> spinlock */
3954 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3955 .master = &omap44xx_l4_cfg_hwmod,
3956 .slave = &omap44xx_spinlock_hwmod,
3958 .user = OCP_USER_MPU | OCP_USER_SDMA,
3961 /* l4_wkup -> timer1 */
3962 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
3963 .master = &omap44xx_l4_wkup_hwmod,
3964 .slave = &omap44xx_timer1_hwmod,
3965 .clk = "l4_wkup_clk_mux_ck",
3966 .user = OCP_USER_MPU | OCP_USER_SDMA,
3969 /* l4_per -> timer2 */
3970 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
3971 .master = &omap44xx_l4_per_hwmod,
3972 .slave = &omap44xx_timer2_hwmod,
3974 .user = OCP_USER_MPU | OCP_USER_SDMA,
3977 /* l4_per -> timer3 */
3978 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
3979 .master = &omap44xx_l4_per_hwmod,
3980 .slave = &omap44xx_timer3_hwmod,
3982 .user = OCP_USER_MPU | OCP_USER_SDMA,
3985 /* l4_per -> timer4 */
3986 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
3987 .master = &omap44xx_l4_per_hwmod,
3988 .slave = &omap44xx_timer4_hwmod,
3990 .user = OCP_USER_MPU | OCP_USER_SDMA,
3993 /* l4_abe -> timer5 */
3994 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
3995 .master = &omap44xx_l4_abe_hwmod,
3996 .slave = &omap44xx_timer5_hwmod,
3997 .clk = "ocp_abe_iclk",
3998 .user = OCP_USER_MPU | OCP_USER_SDMA,
4001 /* l4_abe -> timer6 */
4002 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4003 .master = &omap44xx_l4_abe_hwmod,
4004 .slave = &omap44xx_timer6_hwmod,
4005 .clk = "ocp_abe_iclk",
4006 .user = OCP_USER_MPU | OCP_USER_SDMA,
4009 /* l4_abe -> timer7 */
4010 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4011 .master = &omap44xx_l4_abe_hwmod,
4012 .slave = &omap44xx_timer7_hwmod,
4013 .clk = "ocp_abe_iclk",
4014 .user = OCP_USER_MPU | OCP_USER_SDMA,
4017 /* l4_abe -> timer8 */
4018 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4019 .master = &omap44xx_l4_abe_hwmod,
4020 .slave = &omap44xx_timer8_hwmod,
4021 .clk = "ocp_abe_iclk",
4022 .user = OCP_USER_MPU | OCP_USER_SDMA,
4025 /* l4_per -> timer9 */
4026 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4027 .master = &omap44xx_l4_per_hwmod,
4028 .slave = &omap44xx_timer9_hwmod,
4030 .user = OCP_USER_MPU | OCP_USER_SDMA,
4033 /* l4_per -> timer10 */
4034 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4035 .master = &omap44xx_l4_per_hwmod,
4036 .slave = &omap44xx_timer10_hwmod,
4038 .user = OCP_USER_MPU | OCP_USER_SDMA,
4041 /* l4_per -> timer11 */
4042 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4043 .master = &omap44xx_l4_per_hwmod,
4044 .slave = &omap44xx_timer11_hwmod,
4046 .user = OCP_USER_MPU | OCP_USER_SDMA,
4049 /* l4_per -> uart1 */
4050 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4051 .master = &omap44xx_l4_per_hwmod,
4052 .slave = &omap44xx_uart1_hwmod,
4054 .user = OCP_USER_MPU | OCP_USER_SDMA,
4057 /* l4_per -> uart2 */
4058 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4059 .master = &omap44xx_l4_per_hwmod,
4060 .slave = &omap44xx_uart2_hwmod,
4062 .user = OCP_USER_MPU | OCP_USER_SDMA,
4065 /* l4_per -> uart3 */
4066 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4067 .master = &omap44xx_l4_per_hwmod,
4068 .slave = &omap44xx_uart3_hwmod,
4070 .user = OCP_USER_MPU | OCP_USER_SDMA,
4073 /* l4_per -> uart4 */
4074 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4075 .master = &omap44xx_l4_per_hwmod,
4076 .slave = &omap44xx_uart4_hwmod,
4078 .user = OCP_USER_MPU | OCP_USER_SDMA,
4081 /* l4_cfg -> usb_host_fs */
4082 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
4083 .master = &omap44xx_l4_cfg_hwmod,
4084 .slave = &omap44xx_usb_host_fs_hwmod,
4086 .user = OCP_USER_MPU | OCP_USER_SDMA,
4089 /* l4_cfg -> usb_host_hs */
4090 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4091 .master = &omap44xx_l4_cfg_hwmod,
4092 .slave = &omap44xx_usb_host_hs_hwmod,
4094 .user = OCP_USER_MPU | OCP_USER_SDMA,
4097 /* l4_cfg -> usb_otg_hs */
4098 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4099 .master = &omap44xx_l4_cfg_hwmod,
4100 .slave = &omap44xx_usb_otg_hs_hwmod,
4102 .user = OCP_USER_MPU | OCP_USER_SDMA,
4105 /* l4_cfg -> usb_tll_hs */
4106 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4107 .master = &omap44xx_l4_cfg_hwmod,
4108 .slave = &omap44xx_usb_tll_hs_hwmod,
4110 .user = OCP_USER_MPU | OCP_USER_SDMA,
4113 /* l4_wkup -> wd_timer2 */
4114 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4115 .master = &omap44xx_l4_wkup_hwmod,
4116 .slave = &omap44xx_wd_timer2_hwmod,
4117 .clk = "l4_wkup_clk_mux_ck",
4118 .user = OCP_USER_MPU | OCP_USER_SDMA,
4121 /* l4_abe -> wd_timer3 */
4122 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4123 .master = &omap44xx_l4_abe_hwmod,
4124 .slave = &omap44xx_wd_timer3_hwmod,
4125 .clk = "ocp_abe_iclk",
4126 .user = OCP_USER_MPU,
4129 /* l4_abe -> wd_timer3 (dma) */
4130 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4131 .master = &omap44xx_l4_abe_hwmod,
4132 .slave = &omap44xx_wd_timer3_hwmod,
4133 .clk = "ocp_abe_iclk",
4134 .user = OCP_USER_SDMA,
4138 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4139 .master = &omap44xx_mpu_hwmod,
4140 .slave = &omap44xx_emif1_hwmod,
4142 .user = OCP_USER_MPU | OCP_USER_SDMA,
4146 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4147 .master = &omap44xx_mpu_hwmod,
4148 .slave = &omap44xx_emif2_hwmod,
4150 .user = OCP_USER_MPU | OCP_USER_SDMA,
4153 static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4154 &omap44xx_l3_main_1__dmm,
4156 &omap44xx_iva__l3_instr,
4157 &omap44xx_l3_main_3__l3_instr,
4158 &omap44xx_ocp_wp_noc__l3_instr,
4159 &omap44xx_dsp__l3_main_1,
4160 &omap44xx_dss__l3_main_1,
4161 &omap44xx_l3_main_2__l3_main_1,
4162 &omap44xx_l4_cfg__l3_main_1,
4163 &omap44xx_mmc1__l3_main_1,
4164 &omap44xx_mmc2__l3_main_1,
4165 &omap44xx_mpu__l3_main_1,
4166 &omap44xx_debugss__l3_main_2,
4167 &omap44xx_dma_system__l3_main_2,
4168 &omap44xx_fdif__l3_main_2,
4169 &omap44xx_gpu__l3_main_2,
4170 &omap44xx_hsi__l3_main_2,
4171 &omap44xx_ipu__l3_main_2,
4172 &omap44xx_iss__l3_main_2,
4173 &omap44xx_iva__l3_main_2,
4174 &omap44xx_l3_main_1__l3_main_2,
4175 &omap44xx_l4_cfg__l3_main_2,
4176 /* &omap44xx_usb_host_fs__l3_main_2, */
4177 &omap44xx_usb_host_hs__l3_main_2,
4178 &omap44xx_usb_otg_hs__l3_main_2,
4179 &omap44xx_l3_main_1__l3_main_3,
4180 &omap44xx_l3_main_2__l3_main_3,
4181 &omap44xx_l4_cfg__l3_main_3,
4182 &omap44xx_aess__l4_abe,
4183 &omap44xx_dsp__l4_abe,
4184 &omap44xx_l3_main_1__l4_abe,
4185 &omap44xx_mpu__l4_abe,
4186 &omap44xx_l3_main_1__l4_cfg,
4187 &omap44xx_l3_main_2__l4_per,
4188 &omap44xx_l4_cfg__l4_wkup,
4189 &omap44xx_mpu__mpu_private,
4190 &omap44xx_l4_cfg__ocp_wp_noc,
4191 &omap44xx_l4_abe__aess,
4192 &omap44xx_l4_abe__aess_dma,
4193 &omap44xx_l3_main_2__c2c,
4194 &omap44xx_l4_wkup__counter_32k,
4195 &omap44xx_l4_cfg__ctrl_module_core,
4196 &omap44xx_l4_cfg__ctrl_module_pad_core,
4197 &omap44xx_l4_wkup__ctrl_module_wkup,
4198 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
4199 &omap44xx_l3_instr__debugss,
4200 &omap44xx_l4_cfg__dma_system,
4201 &omap44xx_l4_abe__dmic,
4203 /* &omap44xx_dsp__sl2if, */
4204 &omap44xx_l4_cfg__dsp,
4205 &omap44xx_l3_main_2__dss,
4206 &omap44xx_l4_per__dss,
4207 &omap44xx_l3_main_2__dss_dispc,
4208 &omap44xx_l4_per__dss_dispc,
4209 &omap44xx_l3_main_2__dss_dsi1,
4210 &omap44xx_l4_per__dss_dsi1,
4211 &omap44xx_l3_main_2__dss_dsi2,
4212 &omap44xx_l4_per__dss_dsi2,
4213 &omap44xx_l3_main_2__dss_hdmi,
4214 &omap44xx_l4_per__dss_hdmi,
4215 &omap44xx_l3_main_2__dss_rfbi,
4216 &omap44xx_l4_per__dss_rfbi,
4217 &omap44xx_l3_main_2__dss_venc,
4218 &omap44xx_l4_per__dss_venc,
4219 &omap44xx_l4_per__elm,
4220 &omap44xx_l4_cfg__fdif,
4221 &omap44xx_l4_wkup__gpio1,
4222 &omap44xx_l4_per__gpio2,
4223 &omap44xx_l4_per__gpio3,
4224 &omap44xx_l4_per__gpio4,
4225 &omap44xx_l4_per__gpio5,
4226 &omap44xx_l4_per__gpio6,
4227 &omap44xx_l3_main_2__gpmc,
4228 &omap44xx_l3_main_2__gpu,
4229 &omap44xx_l4_per__hdq1w,
4230 &omap44xx_l4_cfg__hsi,
4231 &omap44xx_l4_per__i2c1,
4232 &omap44xx_l4_per__i2c2,
4233 &omap44xx_l4_per__i2c3,
4234 &omap44xx_l4_per__i2c4,
4235 &omap44xx_l3_main_2__ipu,
4236 &omap44xx_l3_main_2__iss,
4237 /* &omap44xx_iva__sl2if, */
4238 &omap44xx_l3_main_2__iva,
4239 &omap44xx_l4_wkup__kbd,
4240 &omap44xx_l4_cfg__mailbox,
4241 &omap44xx_l4_abe__mcasp,
4242 &omap44xx_l4_abe__mcasp_dma,
4243 &omap44xx_l4_abe__mcbsp1,
4244 &omap44xx_l4_abe__mcbsp2,
4245 &omap44xx_l4_abe__mcbsp3,
4246 &omap44xx_l4_per__mcbsp4,
4247 &omap44xx_l4_abe__mcpdm,
4248 &omap44xx_l4_per__mcspi1,
4249 &omap44xx_l4_per__mcspi2,
4250 &omap44xx_l4_per__mcspi3,
4251 &omap44xx_l4_per__mcspi4,
4252 &omap44xx_l4_per__mmc1,
4253 &omap44xx_l4_per__mmc2,
4254 &omap44xx_l4_per__mmc3,
4255 &omap44xx_l4_per__mmc4,
4256 &omap44xx_l4_per__mmc5,
4257 &omap44xx_l3_main_2__mmu_ipu,
4258 &omap44xx_l4_cfg__mmu_dsp,
4259 &omap44xx_l3_main_2__ocmc_ram,
4260 &omap44xx_l4_cfg__ocp2scp_usb_phy,
4261 &omap44xx_mpu_private__prcm_mpu,
4262 &omap44xx_l4_wkup__cm_core_aon,
4263 &omap44xx_l4_cfg__cm_core,
4264 &omap44xx_l4_wkup__prm,
4265 &omap44xx_l4_wkup__scrm,
4266 /* &omap44xx_l3_main_2__sl2if, */
4267 &omap44xx_l4_abe__slimbus1,
4268 &omap44xx_l4_abe__slimbus1_dma,
4269 &omap44xx_l4_per__slimbus2,
4270 &omap44xx_l4_cfg__smartreflex_core,
4271 &omap44xx_l4_cfg__smartreflex_iva,
4272 &omap44xx_l4_cfg__smartreflex_mpu,
4273 &omap44xx_l4_cfg__spinlock,
4274 &omap44xx_l4_wkup__timer1,
4275 &omap44xx_l4_per__timer2,
4276 &omap44xx_l4_per__timer3,
4277 &omap44xx_l4_per__timer4,
4278 &omap44xx_l4_abe__timer5,
4279 &omap44xx_l4_abe__timer6,
4280 &omap44xx_l4_abe__timer7,
4281 &omap44xx_l4_abe__timer8,
4282 &omap44xx_l4_per__timer9,
4283 &omap44xx_l4_per__timer10,
4284 &omap44xx_l4_per__timer11,
4285 &omap44xx_l4_per__uart1,
4286 &omap44xx_l4_per__uart2,
4287 &omap44xx_l4_per__uart3,
4288 &omap44xx_l4_per__uart4,
4289 /* &omap44xx_l4_cfg__usb_host_fs, */
4290 &omap44xx_l4_cfg__usb_host_hs,
4291 &omap44xx_l4_cfg__usb_otg_hs,
4292 &omap44xx_l4_cfg__usb_tll_hs,
4293 &omap44xx_l4_wkup__wd_timer2,
4294 &omap44xx_l4_abe__wd_timer3,
4295 &omap44xx_l4_abe__wd_timer3_dma,
4296 &omap44xx_mpu__emif1,
4297 &omap44xx_mpu__emif2,
4298 &omap44xx_l3_main_2__aes1,
4299 &omap44xx_l3_main_2__aes2,
4300 &omap44xx_l3_main_2__des,
4301 &omap44xx_l3_main_2__sha0,
4305 int __init omap44xx_hwmod_init(void)
4308 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);