1 // SPDX-License-Identifier: GPL-2.0-only
3 * Hardware modules present on the OMAP44xx chips
5 * Copyright (C) 2009-2012 Texas Instruments, Inc.
6 * Copyright (C) 2009-2010 Nokia Corporation
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 * Note that this file is currently not in sync with autogeneration scripts.
17 * The above note to be removed, once it is synced up.
21 #include <linux/power/smartreflex.h>
23 #include "omap_hwmod.h"
24 #include "omap_hwmod_common_data.h"
28 #include "prm-regbits-44xx.h"
30 /* Base offset for all OMAP4 interrupts external to MPUSS */
31 #define OMAP44XX_IRQ_GIC_START 32
41 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
46 static struct omap_hwmod omap44xx_dmm_hwmod = {
48 .class = &omap44xx_dmm_hwmod_class,
49 .clkdm_name = "l3_emif_clkdm",
52 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
53 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
60 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
62 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
67 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
69 .class = &omap44xx_l3_hwmod_class,
70 .clkdm_name = "l3_instr_clkdm",
73 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
74 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
75 .modulemode = MODULEMODE_HWCTRL,
81 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
83 .class = &omap44xx_l3_hwmod_class,
84 .clkdm_name = "l3_1_clkdm",
87 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
88 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
94 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
96 .class = &omap44xx_l3_hwmod_class,
97 .clkdm_name = "l3_2_clkdm",
100 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
101 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
107 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
109 .class = &omap44xx_l3_hwmod_class,
110 .clkdm_name = "l3_instr_clkdm",
113 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
114 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
115 .modulemode = MODULEMODE_HWCTRL,
122 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
124 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
129 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
131 .class = &omap44xx_l4_hwmod_class,
132 .clkdm_name = "abe_clkdm",
135 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
136 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
137 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
138 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
144 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
146 .class = &omap44xx_l4_hwmod_class,
147 .clkdm_name = "l4_cfg_clkdm",
150 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
151 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
157 static struct omap_hwmod omap44xx_l4_per_hwmod = {
159 .class = &omap44xx_l4_hwmod_class,
160 .clkdm_name = "l4_per_clkdm",
163 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
164 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
170 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
172 .class = &omap44xx_l4_hwmod_class,
173 .clkdm_name = "l4_wkup_clkdm",
176 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
177 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
184 * instance(s): mpu_private
186 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
191 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
192 .name = "mpu_private",
193 .class = &omap44xx_mpu_bus_hwmod_class,
194 .clkdm_name = "mpuss_clkdm",
197 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
204 * instance(s): ocp_wp_noc
206 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
207 .name = "ocp_wp_noc",
211 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
212 .name = "ocp_wp_noc",
213 .class = &omap44xx_ocp_wp_noc_hwmod_class,
214 .clkdm_name = "l3_instr_clkdm",
217 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
218 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
219 .modulemode = MODULEMODE_HWCTRL,
225 * Modules omap_hwmod structures
227 * The following IPs are excluded for the moment because:
228 * - They do not need an explicit SW control using omap_hwmod API.
229 * - They still need to be validated with the driver
230 * properly adapted to omap_hwmod / omap_device
237 * audio engine sub system
240 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
243 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
244 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
245 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
246 MSTANDBY_SMART_WKUP),
247 .sysc_fields = &omap_hwmod_sysc_type2,
250 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
252 .sysc = &omap44xx_aess_sysc,
253 .enable_preprogram = omap_hwmod_aess_preprogram,
257 static struct omap_hwmod omap44xx_aess_hwmod = {
259 .class = &omap44xx_aess_hwmod_class,
260 .clkdm_name = "abe_clkdm",
261 .main_clk = "aess_fclk",
264 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
265 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
266 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
267 .modulemode = MODULEMODE_SWCTRL,
274 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
277 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
280 .sysc_flags = SYSC_HAS_SIDLEMODE,
281 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
282 .sysc_fields = &omap_hwmod_sysc_type1,
285 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
287 .sysc = &omap44xx_counter_sysc,
291 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
292 .name = "counter_32k",
293 .class = &omap44xx_counter_hwmod_class,
294 .clkdm_name = "l4_wkup_clkdm",
295 .flags = HWMOD_SWSUP_SIDLE,
296 .main_clk = "sys_32k_ck",
299 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
300 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
306 * 'ctrl_module' class
307 * attila core control module + core pad control module + wkup pad control
308 * module + attila wkup control module
311 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
314 .sysc_flags = SYSC_HAS_SIDLEMODE,
315 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
317 .sysc_fields = &omap_hwmod_sysc_type2,
320 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
321 .name = "ctrl_module",
322 .sysc = &omap44xx_ctrl_module_sysc,
325 /* ctrl_module_core */
326 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
327 .name = "ctrl_module_core",
328 .class = &omap44xx_ctrl_module_hwmod_class,
329 .clkdm_name = "l4_cfg_clkdm",
332 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
337 /* ctrl_module_pad_core */
338 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
339 .name = "ctrl_module_pad_core",
340 .class = &omap44xx_ctrl_module_hwmod_class,
341 .clkdm_name = "l4_cfg_clkdm",
344 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
349 /* ctrl_module_wkup */
350 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
351 .name = "ctrl_module_wkup",
352 .class = &omap44xx_ctrl_module_hwmod_class,
353 .clkdm_name = "l4_wkup_clkdm",
356 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
361 /* ctrl_module_pad_wkup */
362 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
363 .name = "ctrl_module_pad_wkup",
364 .class = &omap44xx_ctrl_module_hwmod_class,
365 .clkdm_name = "l4_wkup_clkdm",
368 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
375 * debug and emulation sub system
378 static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
383 static struct omap_hwmod omap44xx_debugss_hwmod = {
385 .class = &omap44xx_debugss_hwmod_class,
386 .clkdm_name = "emu_sys_clkdm",
387 .main_clk = "trace_clk_div_ck",
390 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
391 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
398 * digital microphone controller
401 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
404 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
405 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
406 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
408 .sysc_fields = &omap_hwmod_sysc_type2,
411 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
413 .sysc = &omap44xx_dmic_sysc,
417 static struct omap_hwmod omap44xx_dmic_hwmod = {
419 .class = &omap44xx_dmic_hwmod_class,
420 .clkdm_name = "abe_clkdm",
421 .main_clk = "func_dmic_abe_gfclk",
424 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
425 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
426 .modulemode = MODULEMODE_SWCTRL,
436 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
441 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
442 { .name = "dsp", .rst_shift = 0 },
445 static struct omap_hwmod omap44xx_dsp_hwmod = {
447 .class = &omap44xx_dsp_hwmod_class,
448 .clkdm_name = "tesla_clkdm",
449 .rst_lines = omap44xx_dsp_resets,
450 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
451 .main_clk = "dpll_iva_m4x2_ck",
454 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
455 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
456 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
457 .modulemode = MODULEMODE_HWCTRL,
467 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
470 .sysc_flags = SYSS_HAS_RESET_STATUS,
473 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
475 .sysc = &omap44xx_dss_sysc,
476 .reset = omap_dss_reset,
480 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
481 { .role = "sys_clk", .clk = "dss_sys_clk" },
482 { .role = "tv_clk", .clk = "dss_tv_clk" },
483 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
486 static struct omap_hwmod omap44xx_dss_hwmod = {
488 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
489 .class = &omap44xx_dss_hwmod_class,
490 .clkdm_name = "l3_dss_clkdm",
491 .main_clk = "dss_dss_clk",
494 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
495 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
496 .modulemode = MODULEMODE_SWCTRL,
499 .opt_clks = dss_opt_clks,
500 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
508 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
512 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
513 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
514 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
515 SYSS_HAS_RESET_STATUS),
516 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
517 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
518 .sysc_fields = &omap_hwmod_sysc_type1,
521 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
523 .sysc = &omap44xx_dispc_sysc,
527 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
529 .has_framedonetv_irq = 1
532 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
534 .class = &omap44xx_dispc_hwmod_class,
535 .clkdm_name = "l3_dss_clkdm",
536 .main_clk = "dss_dss_clk",
539 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
540 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
543 .dev_attr = &omap44xx_dss_dispc_dev_attr,
544 .parent_hwmod = &omap44xx_dss_hwmod,
549 * display serial interface controller
552 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
556 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
557 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
558 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
559 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
560 .sysc_fields = &omap_hwmod_sysc_type1,
563 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
565 .sysc = &omap44xx_dsi_sysc,
569 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
570 { .role = "sys_clk", .clk = "dss_sys_clk" },
573 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
575 .class = &omap44xx_dsi_hwmod_class,
576 .clkdm_name = "l3_dss_clkdm",
577 .main_clk = "dss_dss_clk",
580 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
581 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
584 .opt_clks = dss_dsi1_opt_clks,
585 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
586 .parent_hwmod = &omap44xx_dss_hwmod,
590 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
591 { .role = "sys_clk", .clk = "dss_sys_clk" },
594 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
596 .class = &omap44xx_dsi_hwmod_class,
597 .clkdm_name = "l3_dss_clkdm",
598 .main_clk = "dss_dss_clk",
601 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
602 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
605 .opt_clks = dss_dsi2_opt_clks,
606 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
607 .parent_hwmod = &omap44xx_dss_hwmod,
615 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
618 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
620 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
622 .sysc_fields = &omap_hwmod_sysc_type2,
625 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
627 .sysc = &omap44xx_hdmi_sysc,
631 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
632 { .role = "sys_clk", .clk = "dss_sys_clk" },
633 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
636 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
638 .class = &omap44xx_hdmi_hwmod_class,
639 .clkdm_name = "l3_dss_clkdm",
641 * HDMI audio requires to use no-idle mode. Hence,
642 * set idle mode by software.
644 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
645 .main_clk = "dss_48mhz_clk",
648 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
649 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
652 .opt_clks = dss_hdmi_opt_clks,
653 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
654 .parent_hwmod = &omap44xx_dss_hwmod,
659 * remote frame buffer interface
662 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
666 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
667 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
668 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
669 .sysc_fields = &omap_hwmod_sysc_type1,
672 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
674 .sysc = &omap44xx_rfbi_sysc,
678 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
679 { .role = "ick", .clk = "l3_div_ck" },
682 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
684 .class = &omap44xx_rfbi_hwmod_class,
685 .clkdm_name = "l3_dss_clkdm",
686 .main_clk = "dss_dss_clk",
689 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
690 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
693 .opt_clks = dss_rfbi_opt_clks,
694 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
695 .parent_hwmod = &omap44xx_dss_hwmod,
703 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
708 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
709 { .role = "tv_clk", .clk = "dss_tv_clk" },
712 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
714 .class = &omap44xx_venc_hwmod_class,
715 .clkdm_name = "l3_dss_clkdm",
716 .main_clk = "dss_tv_clk",
717 .flags = HWMOD_OPT_CLKS_NEEDED,
720 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
721 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
724 .parent_hwmod = &omap44xx_dss_hwmod,
725 .opt_clks = dss_venc_opt_clks,
726 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
729 /* sha0 HIB2 (the 'P' (public) device) */
730 static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
734 .sysc_flags = SYSS_HAS_RESET_STATUS,
737 static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
739 .sysc = &omap44xx_sha0_sysc,
742 static struct omap_hwmod omap44xx_sha0_hwmod = {
744 .class = &omap44xx_sha0_hwmod_class,
745 .clkdm_name = "l4_secure_clkdm",
746 .main_clk = "l3_div_ck",
749 .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
750 .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
751 .modulemode = MODULEMODE_SWCTRL,
758 * bch error location module
761 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
765 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
766 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
767 SYSS_HAS_RESET_STATUS),
768 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
769 .sysc_fields = &omap_hwmod_sysc_type1,
772 static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
774 .sysc = &omap44xx_elm_sysc,
778 static struct omap_hwmod omap44xx_elm_hwmod = {
780 .class = &omap44xx_elm_hwmod_class,
781 .clkdm_name = "l4_per_clkdm",
784 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
785 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
792 * external memory interface no1
795 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
799 static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
801 .sysc = &omap44xx_emif_sysc,
805 static struct omap_hwmod omap44xx_emif1_hwmod = {
807 .class = &omap44xx_emif_hwmod_class,
808 .clkdm_name = "l3_emif_clkdm",
809 .flags = HWMOD_INIT_NO_IDLE,
810 .main_clk = "ddrphy_ck",
813 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
814 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
815 .modulemode = MODULEMODE_HWCTRL,
821 static struct omap_hwmod omap44xx_emif2_hwmod = {
823 .class = &omap44xx_emif_hwmod_class,
824 .clkdm_name = "l3_emif_clkdm",
825 .flags = HWMOD_INIT_NO_IDLE,
826 .main_clk = "ddrphy_ck",
829 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
830 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
831 .modulemode = MODULEMODE_HWCTRL,
837 Crypto modules AES0/1 belong to:
838 PD_L4_PER power domain
839 CD_L4_SEC clock domain
840 On the L3, the AES modules are mapped to
841 L3_CLK2: Peripherals and multimedia sub clock domain
843 static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
847 .sysc_flags = SYSS_HAS_RESET_STATUS,
850 static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
852 .sysc = &omap44xx_aes_sysc,
855 static struct omap_hwmod omap44xx_aes1_hwmod = {
857 .class = &omap44xx_aes_hwmod_class,
858 .clkdm_name = "l4_secure_clkdm",
859 .main_clk = "l3_div_ck",
862 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
863 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
864 .modulemode = MODULEMODE_SWCTRL,
869 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
870 .master = &omap44xx_l4_per_hwmod,
871 .slave = &omap44xx_aes1_hwmod,
873 .user = OCP_USER_MPU | OCP_USER_SDMA,
876 static struct omap_hwmod omap44xx_aes2_hwmod = {
878 .class = &omap44xx_aes_hwmod_class,
879 .clkdm_name = "l4_secure_clkdm",
880 .main_clk = "l3_div_ck",
883 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
884 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
885 .modulemode = MODULEMODE_SWCTRL,
890 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
891 .master = &omap44xx_l4_per_hwmod,
892 .slave = &omap44xx_aes2_hwmod,
894 .user = OCP_USER_MPU | OCP_USER_SDMA,
898 * 'des' class for DES3DES module
900 static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
904 .sysc_flags = SYSS_HAS_RESET_STATUS,
907 static struct omap_hwmod_class omap44xx_des_hwmod_class = {
909 .sysc = &omap44xx_des_sysc,
912 static struct omap_hwmod omap44xx_des_hwmod = {
914 .class = &omap44xx_des_hwmod_class,
915 .clkdm_name = "l4_secure_clkdm",
916 .main_clk = "l3_div_ck",
919 .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
920 .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
921 .modulemode = MODULEMODE_SWCTRL,
926 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
927 .master = &omap44xx_l3_main_2_hwmod,
928 .slave = &omap44xx_des_hwmod,
930 .user = OCP_USER_MPU | OCP_USER_SDMA,
935 * face detection hw accelerator module
938 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
942 * FDIF needs 100 OCP clk cycles delay after a softreset before
943 * accessing sysconfig again.
944 * The lowest frequency at the moment for L3 bus is 100 MHz, so
945 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
947 * TODO: Indicate errata when available.
950 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
951 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
952 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
953 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
954 .sysc_fields = &omap_hwmod_sysc_type2,
957 static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
959 .sysc = &omap44xx_fdif_sysc,
963 static struct omap_hwmod omap44xx_fdif_hwmod = {
965 .class = &omap44xx_fdif_hwmod_class,
966 .clkdm_name = "iss_clkdm",
967 .main_clk = "fdif_fck",
970 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
971 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
972 .modulemode = MODULEMODE_SWCTRL,
979 * general purpose memory controller
982 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
986 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
987 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
988 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
989 .sysc_fields = &omap_hwmod_sysc_type1,
992 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
994 .sysc = &omap44xx_gpmc_sysc,
998 static struct omap_hwmod omap44xx_gpmc_hwmod = {
1000 .class = &omap44xx_gpmc_hwmod_class,
1001 .clkdm_name = "l3_2_clkdm",
1002 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1003 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1006 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1007 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1008 .modulemode = MODULEMODE_HWCTRL,
1016 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1020 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1022 .sysc_offs = 0x0010,
1023 .syss_offs = 0x0014,
1024 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1025 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1026 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1028 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1029 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1030 .sysc_fields = &omap_hwmod_sysc_type1,
1033 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1035 .sysc = &omap44xx_hsi_sysc,
1039 static struct omap_hwmod omap44xx_hsi_hwmod = {
1041 .class = &omap44xx_hsi_hwmod_class,
1042 .clkdm_name = "l3_init_clkdm",
1043 .main_clk = "hsi_fck",
1046 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
1047 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
1048 .modulemode = MODULEMODE_HWCTRL,
1055 * imaging processor unit
1058 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1063 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
1064 { .name = "cpu0", .rst_shift = 0 },
1065 { .name = "cpu1", .rst_shift = 1 },
1068 static struct omap_hwmod omap44xx_ipu_hwmod = {
1070 .class = &omap44xx_ipu_hwmod_class,
1071 .clkdm_name = "ducati_clkdm",
1072 .rst_lines = omap44xx_ipu_resets,
1073 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
1074 .main_clk = "ducati_clk_mux_ck",
1077 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1078 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1079 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1080 .modulemode = MODULEMODE_HWCTRL,
1087 * external images sensor pixel data processor
1090 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1092 .sysc_offs = 0x0010,
1094 * ISS needs 100 OCP clk cycles delay after a softreset before
1095 * accessing sysconfig again.
1096 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1097 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1099 * TODO: Indicate errata when available.
1102 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1103 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1104 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1105 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1106 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1107 .sysc_fields = &omap_hwmod_sysc_type2,
1110 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1112 .sysc = &omap44xx_iss_sysc,
1116 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1117 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1120 static struct omap_hwmod omap44xx_iss_hwmod = {
1122 .class = &omap44xx_iss_hwmod_class,
1123 .clkdm_name = "iss_clkdm",
1124 .main_clk = "ducati_clk_mux_ck",
1127 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
1128 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
1129 .modulemode = MODULEMODE_SWCTRL,
1132 .opt_clks = iss_opt_clks,
1133 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
1138 * multi-standard video encoder/decoder hardware accelerator
1141 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1146 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1147 { .name = "seq0", .rst_shift = 0 },
1148 { .name = "seq1", .rst_shift = 1 },
1149 { .name = "logic", .rst_shift = 2 },
1152 static struct omap_hwmod omap44xx_iva_hwmod = {
1154 .class = &omap44xx_iva_hwmod_class,
1155 .clkdm_name = "ivahd_clkdm",
1156 .rst_lines = omap44xx_iva_resets,
1157 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1158 .main_clk = "dpll_iva_m5x2_ck",
1161 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
1162 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
1163 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
1164 .modulemode = MODULEMODE_HWCTRL,
1171 * keyboard controller
1174 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1176 .sysc_offs = 0x0010,
1177 .syss_offs = 0x0014,
1178 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1179 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1180 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1181 SYSS_HAS_RESET_STATUS),
1182 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1183 .sysc_fields = &omap_hwmod_sysc_type1,
1186 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1188 .sysc = &omap44xx_kbd_sysc,
1192 static struct omap_hwmod omap44xx_kbd_hwmod = {
1194 .class = &omap44xx_kbd_hwmod_class,
1195 .clkdm_name = "l4_wkup_clkdm",
1196 .main_clk = "sys_32k_ck",
1199 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
1200 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
1201 .modulemode = MODULEMODE_SWCTRL,
1209 * multi channel pdm controller (proprietary interface with phoenix power
1213 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1215 .sysc_offs = 0x0010,
1216 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1217 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1218 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1220 .sysc_fields = &omap_hwmod_sysc_type2,
1223 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1225 .sysc = &omap44xx_mcpdm_sysc,
1229 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1231 .class = &omap44xx_mcpdm_hwmod_class,
1232 .clkdm_name = "abe_clkdm",
1234 * It's suspected that the McPDM requires an off-chip main
1235 * functional clock, controlled via I2C. This IP block is
1236 * currently reset very early during boot, before I2C is
1237 * available, so it doesn't seem that we have any choice in
1238 * the kernel other than to avoid resetting it.
1240 * Also, McPDM needs to be configured to NO_IDLE mode when it
1241 * is in used otherwise vital clocks will be gated which
1242 * results 'slow motion' audio playback.
1244 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1245 .main_clk = "pad_clks_ck",
1248 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
1249 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
1250 .modulemode = MODULEMODE_SWCTRL,
1257 * The memory management unit performs virtual to physical address translation
1258 * for its requestors.
1261 static struct omap_hwmod_class_sysconfig mmu_sysc = {
1265 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1266 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1267 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1268 .sysc_fields = &omap_hwmod_sysc_type1,
1271 static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
1278 static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
1279 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
1280 { .name = "mmu_cache", .rst_shift = 2 },
1283 /* l3_main_2 -> mmu_ipu */
1284 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
1285 .master = &omap44xx_l3_main_2_hwmod,
1286 .slave = &omap44xx_mmu_ipu_hwmod,
1288 .user = OCP_USER_MPU | OCP_USER_SDMA,
1291 static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
1293 .class = &omap44xx_mmu_hwmod_class,
1294 .clkdm_name = "ducati_clkdm",
1295 .rst_lines = omap44xx_mmu_ipu_resets,
1296 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
1297 .main_clk = "ducati_clk_mux_ck",
1300 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1301 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1302 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1303 .modulemode = MODULEMODE_HWCTRL,
1310 static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
1311 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
1312 { .name = "mmu_cache", .rst_shift = 1 },
1316 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
1317 .master = &omap44xx_l4_cfg_hwmod,
1318 .slave = &omap44xx_mmu_dsp_hwmod,
1320 .user = OCP_USER_MPU | OCP_USER_SDMA,
1323 static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
1325 .class = &omap44xx_mmu_hwmod_class,
1326 .clkdm_name = "tesla_clkdm",
1327 .rst_lines = omap44xx_mmu_dsp_resets,
1328 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
1329 .main_clk = "dpll_iva_m4x2_ck",
1332 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
1333 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
1334 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
1335 .modulemode = MODULEMODE_HWCTRL,
1345 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1350 static struct omap_hwmod omap44xx_mpu_hwmod = {
1352 .class = &omap44xx_mpu_hwmod_class,
1353 .clkdm_name = "mpuss_clkdm",
1354 .flags = HWMOD_INIT_NO_IDLE,
1355 .main_clk = "dpll_mpu_m2_ck",
1358 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
1359 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
1366 * top-level core on-chip ram
1369 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
1374 static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
1376 .class = &omap44xx_ocmc_ram_hwmod_class,
1377 .clkdm_name = "l3_2_clkdm",
1380 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
1381 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
1388 * bridge to transform ocp interface protocol to scp (serial control port)
1392 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
1394 .sysc_offs = 0x0010,
1395 .syss_offs = 0x0014,
1396 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1397 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1398 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1399 .sysc_fields = &omap_hwmod_sysc_type1,
1402 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
1404 .sysc = &omap44xx_ocp2scp_sysc,
1407 /* ocp2scp_usb_phy */
1408 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
1409 .name = "ocp2scp_usb_phy",
1410 .class = &omap44xx_ocp2scp_hwmod_class,
1411 .clkdm_name = "l3_init_clkdm",
1413 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
1414 * block as an "optional clock," and normally should never be
1415 * specified as the main_clk for an OMAP IP block. However it
1416 * turns out that this clock is actually the main clock for
1417 * the ocp2scp_usb_phy IP block:
1418 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
1419 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
1420 * to be the best workaround.
1422 .main_clk = "ocp2scp_usb_phy_phy_48m",
1425 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
1426 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
1427 .modulemode = MODULEMODE_HWCTRL,
1434 * power and reset manager (part of the prcm infrastructure) + clock manager 2
1435 * + clock manager 1 (in always on power domain) + local prm in mpu
1438 static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
1443 static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
1445 .class = &omap44xx_prcm_hwmod_class,
1446 .clkdm_name = "l4_wkup_clkdm",
1447 .flags = HWMOD_NO_IDLEST,
1450 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1456 static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
1457 .name = "cm_core_aon",
1458 .class = &omap44xx_prcm_hwmod_class,
1459 .flags = HWMOD_NO_IDLEST,
1462 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1468 static struct omap_hwmod omap44xx_cm_core_hwmod = {
1470 .class = &omap44xx_prcm_hwmod_class,
1471 .flags = HWMOD_NO_IDLEST,
1474 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1480 static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
1481 { .name = "rst_global_warm_sw", .rst_shift = 0 },
1482 { .name = "rst_global_cold_sw", .rst_shift = 1 },
1485 static struct omap_hwmod omap44xx_prm_hwmod = {
1487 .class = &omap44xx_prcm_hwmod_class,
1488 .rst_lines = omap44xx_prm_resets,
1489 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
1494 * system clock and reset manager
1497 static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
1502 static struct omap_hwmod omap44xx_scrm_hwmod = {
1504 .class = &omap44xx_scrm_hwmod_class,
1505 .clkdm_name = "l4_wkup_clkdm",
1508 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1515 * shared level 2 memory interface
1518 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
1523 static struct omap_hwmod omap44xx_sl2if_hwmod = {
1525 .class = &omap44xx_sl2if_hwmod_class,
1526 .clkdm_name = "ivahd_clkdm",
1529 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
1530 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
1531 .modulemode = MODULEMODE_HWCTRL,
1538 * bidirectional, multi-drop, multi-channel two-line serial interface between
1539 * the device and external components
1542 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
1544 .sysc_offs = 0x0010,
1545 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1546 SYSC_HAS_SOFTRESET),
1547 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1549 .sysc_fields = &omap_hwmod_sysc_type2,
1552 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
1554 .sysc = &omap44xx_slimbus_sysc,
1558 static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
1559 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
1560 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
1561 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
1562 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
1565 static struct omap_hwmod omap44xx_slimbus1_hwmod = {
1567 .class = &omap44xx_slimbus_hwmod_class,
1568 .clkdm_name = "abe_clkdm",
1571 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
1572 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
1573 .modulemode = MODULEMODE_SWCTRL,
1576 .opt_clks = slimbus1_opt_clks,
1577 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
1581 static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
1582 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
1583 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
1584 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
1587 static struct omap_hwmod omap44xx_slimbus2_hwmod = {
1589 .class = &omap44xx_slimbus_hwmod_class,
1590 .clkdm_name = "l4_per_clkdm",
1593 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
1594 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
1595 .modulemode = MODULEMODE_SWCTRL,
1598 .opt_clks = slimbus2_opt_clks,
1599 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
1603 * 'smartreflex' class
1604 * smartreflex module (monitor silicon performance and outputs a measure of
1605 * performance error)
1608 /* The IP is not compliant to type1 / type2 scheme */
1609 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1610 .rev_offs = -ENODEV,
1611 .sysc_offs = 0x0038,
1612 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1613 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1615 .sysc_fields = &omap36xx_sr_sysc_fields,
1618 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1619 .name = "smartreflex",
1620 .sysc = &omap44xx_smartreflex_sysc,
1623 /* smartreflex_core */
1624 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
1625 .sensor_voltdm_name = "core",
1628 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1629 .name = "smartreflex_core",
1630 .class = &omap44xx_smartreflex_hwmod_class,
1631 .clkdm_name = "l4_ao_clkdm",
1633 .main_clk = "smartreflex_core_fck",
1636 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
1637 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
1638 .modulemode = MODULEMODE_SWCTRL,
1641 .dev_attr = &smartreflex_core_dev_attr,
1644 /* smartreflex_iva */
1645 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
1646 .sensor_voltdm_name = "iva",
1649 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1650 .name = "smartreflex_iva",
1651 .class = &omap44xx_smartreflex_hwmod_class,
1652 .clkdm_name = "l4_ao_clkdm",
1653 .main_clk = "smartreflex_iva_fck",
1656 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
1657 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
1658 .modulemode = MODULEMODE_SWCTRL,
1661 .dev_attr = &smartreflex_iva_dev_attr,
1664 /* smartreflex_mpu */
1665 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
1666 .sensor_voltdm_name = "mpu",
1669 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1670 .name = "smartreflex_mpu",
1671 .class = &omap44xx_smartreflex_hwmod_class,
1672 .clkdm_name = "l4_ao_clkdm",
1673 .main_clk = "smartreflex_mpu_fck",
1676 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
1677 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
1678 .modulemode = MODULEMODE_SWCTRL,
1681 .dev_attr = &smartreflex_mpu_dev_attr,
1686 * spinlock provides hardware assistance for synchronizing the processes
1687 * running on multiple processors
1690 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
1692 .sysc_offs = 0x0010,
1693 .syss_offs = 0x0014,
1694 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1695 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1696 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1697 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1698 .sysc_fields = &omap_hwmod_sysc_type1,
1701 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
1703 .sysc = &omap44xx_spinlock_sysc,
1707 static struct omap_hwmod omap44xx_spinlock_hwmod = {
1709 .class = &omap44xx_spinlock_hwmod_class,
1710 .clkdm_name = "l4_cfg_clkdm",
1713 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
1714 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
1721 * general purpose timer module with accurate 1ms tick
1722 * This class contains several variants: ['timer_1ms', 'timer']
1725 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
1727 .sysc_offs = 0x0010,
1728 .syss_offs = 0x0014,
1729 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1730 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1731 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1732 SYSS_HAS_RESET_STATUS),
1733 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1734 .sysc_fields = &omap_hwmod_sysc_type1,
1737 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
1739 .sysc = &omap44xx_timer_1ms_sysc,
1742 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
1744 .sysc_offs = 0x0010,
1745 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1746 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1747 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1749 .sysc_fields = &omap_hwmod_sysc_type2,
1752 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
1754 .sysc = &omap44xx_timer_sysc,
1758 static struct omap_hwmod omap44xx_timer1_hwmod = {
1760 .class = &omap44xx_timer_1ms_hwmod_class,
1761 .clkdm_name = "l4_wkup_clkdm",
1762 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1763 .main_clk = "dmt1_clk_mux",
1766 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
1767 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
1768 .modulemode = MODULEMODE_SWCTRL,
1774 static struct omap_hwmod omap44xx_timer2_hwmod = {
1776 .class = &omap44xx_timer_1ms_hwmod_class,
1777 .clkdm_name = "l4_per_clkdm",
1778 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1779 .main_clk = "cm2_dm2_mux",
1782 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
1783 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
1784 .modulemode = MODULEMODE_SWCTRL,
1790 static struct omap_hwmod omap44xx_timer3_hwmod = {
1792 .class = &omap44xx_timer_hwmod_class,
1793 .clkdm_name = "l4_per_clkdm",
1794 .main_clk = "cm2_dm3_mux",
1797 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
1798 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
1799 .modulemode = MODULEMODE_SWCTRL,
1805 static struct omap_hwmod omap44xx_timer4_hwmod = {
1807 .class = &omap44xx_timer_hwmod_class,
1808 .clkdm_name = "l4_per_clkdm",
1809 .main_clk = "cm2_dm4_mux",
1812 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
1813 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
1814 .modulemode = MODULEMODE_SWCTRL,
1820 static struct omap_hwmod omap44xx_timer5_hwmod = {
1822 .class = &omap44xx_timer_hwmod_class,
1823 .clkdm_name = "abe_clkdm",
1824 .main_clk = "timer5_sync_mux",
1827 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
1828 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
1829 .modulemode = MODULEMODE_SWCTRL,
1835 static struct omap_hwmod omap44xx_timer6_hwmod = {
1837 .class = &omap44xx_timer_hwmod_class,
1838 .clkdm_name = "abe_clkdm",
1839 .main_clk = "timer6_sync_mux",
1842 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
1843 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
1844 .modulemode = MODULEMODE_SWCTRL,
1850 static struct omap_hwmod omap44xx_timer7_hwmod = {
1852 .class = &omap44xx_timer_hwmod_class,
1853 .clkdm_name = "abe_clkdm",
1854 .main_clk = "timer7_sync_mux",
1857 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
1858 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
1859 .modulemode = MODULEMODE_SWCTRL,
1865 static struct omap_hwmod omap44xx_timer8_hwmod = {
1867 .class = &omap44xx_timer_hwmod_class,
1868 .clkdm_name = "abe_clkdm",
1869 .main_clk = "timer8_sync_mux",
1872 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
1873 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
1874 .modulemode = MODULEMODE_SWCTRL,
1880 static struct omap_hwmod omap44xx_timer9_hwmod = {
1882 .class = &omap44xx_timer_hwmod_class,
1883 .clkdm_name = "l4_per_clkdm",
1884 .main_clk = "cm2_dm9_mux",
1887 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
1888 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
1889 .modulemode = MODULEMODE_SWCTRL,
1895 static struct omap_hwmod omap44xx_timer10_hwmod = {
1897 .class = &omap44xx_timer_1ms_hwmod_class,
1898 .clkdm_name = "l4_per_clkdm",
1899 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1900 .main_clk = "cm2_dm10_mux",
1903 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
1904 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
1905 .modulemode = MODULEMODE_SWCTRL,
1911 static struct omap_hwmod omap44xx_timer11_hwmod = {
1913 .class = &omap44xx_timer_hwmod_class,
1914 .clkdm_name = "l4_per_clkdm",
1915 .main_clk = "cm2_dm11_mux",
1918 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
1919 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
1920 .modulemode = MODULEMODE_SWCTRL,
1926 * 'usb_host_fs' class
1927 * full-speed usb host controller
1930 /* The IP is not compliant to type1 / type2 scheme */
1931 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
1933 .sysc_offs = 0x0210,
1934 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1935 SYSC_HAS_SOFTRESET),
1936 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1938 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
1941 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
1942 .name = "usb_host_fs",
1943 .sysc = &omap44xx_usb_host_fs_sysc,
1947 static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
1948 .name = "usb_host_fs",
1949 .class = &omap44xx_usb_host_fs_hwmod_class,
1950 .clkdm_name = "l3_init_clkdm",
1951 .main_clk = "usb_host_fs_fck",
1954 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
1955 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
1956 .modulemode = MODULEMODE_SWCTRL,
1962 * 'usb_host_hs' class
1963 * high-speed multi-port usb host controller
1966 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
1968 .sysc_offs = 0x0010,
1969 .syss_offs = 0x0014,
1970 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1971 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
1972 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1973 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1974 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1975 .sysc_fields = &omap_hwmod_sysc_type2,
1978 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
1979 .name = "usb_host_hs",
1980 .sysc = &omap44xx_usb_host_hs_sysc,
1984 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
1985 .name = "usb_host_hs",
1986 .class = &omap44xx_usb_host_hs_hwmod_class,
1987 .clkdm_name = "l3_init_clkdm",
1988 .main_clk = "usb_host_hs_fck",
1991 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
1992 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
1993 .modulemode = MODULEMODE_SWCTRL,
1998 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2002 * In the following configuration :
2003 * - USBHOST module is set to smart-idle mode
2004 * - PRCM asserts idle_req to the USBHOST module ( This typically
2005 * happens when the system is going to a low power mode : all ports
2006 * have been suspended, the master part of the USBHOST module has
2007 * entered the standby state, and SW has cut the functional clocks)
2008 * - an USBHOST interrupt occurs before the module is able to answer
2009 * idle_ack, typically a remote wakeup IRQ.
2010 * Then the USB HOST module will enter a deadlock situation where it
2011 * is no more accessible nor functional.
2014 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2018 * Errata: USB host EHCI may stall when entering smart-standby mode
2022 * When the USBHOST module is set to smart-standby mode, and when it is
2023 * ready to enter the standby state (i.e. all ports are suspended and
2024 * all attached devices are in suspend mode), then it can wrongly assert
2025 * the Mstandby signal too early while there are still some residual OCP
2026 * transactions ongoing. If this condition occurs, the internal state
2027 * machine may go to an undefined state and the USB link may be stuck
2028 * upon the next resume.
2031 * Don't use smart standby; use only force standby,
2032 * hence HWMOD_SWSUP_MSTANDBY
2035 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2039 * 'usb_tll_hs' class
2040 * usb_tll_hs module is the adapter on the usb_host_hs ports
2043 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
2045 .sysc_offs = 0x0010,
2046 .syss_offs = 0x0014,
2047 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2048 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2050 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2051 .sysc_fields = &omap_hwmod_sysc_type1,
2054 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
2055 .name = "usb_tll_hs",
2056 .sysc = &omap44xx_usb_tll_hs_sysc,
2059 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
2060 .name = "usb_tll_hs",
2061 .class = &omap44xx_usb_tll_hs_hwmod_class,
2062 .clkdm_name = "l3_init_clkdm",
2063 .main_clk = "usb_tll_hs_ick",
2066 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
2067 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
2068 .modulemode = MODULEMODE_HWCTRL,
2077 /* l3_main_1 -> dmm */
2078 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
2079 .master = &omap44xx_l3_main_1_hwmod,
2080 .slave = &omap44xx_dmm_hwmod,
2082 .user = OCP_USER_SDMA,
2086 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
2087 .master = &omap44xx_mpu_hwmod,
2088 .slave = &omap44xx_dmm_hwmod,
2090 .user = OCP_USER_MPU,
2093 /* iva -> l3_instr */
2094 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
2095 .master = &omap44xx_iva_hwmod,
2096 .slave = &omap44xx_l3_instr_hwmod,
2098 .user = OCP_USER_MPU | OCP_USER_SDMA,
2101 /* l3_main_3 -> l3_instr */
2102 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
2103 .master = &omap44xx_l3_main_3_hwmod,
2104 .slave = &omap44xx_l3_instr_hwmod,
2106 .user = OCP_USER_MPU | OCP_USER_SDMA,
2109 /* ocp_wp_noc -> l3_instr */
2110 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
2111 .master = &omap44xx_ocp_wp_noc_hwmod,
2112 .slave = &omap44xx_l3_instr_hwmod,
2114 .user = OCP_USER_MPU | OCP_USER_SDMA,
2117 /* dsp -> l3_main_1 */
2118 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
2119 .master = &omap44xx_dsp_hwmod,
2120 .slave = &omap44xx_l3_main_1_hwmod,
2122 .user = OCP_USER_MPU | OCP_USER_SDMA,
2125 /* dss -> l3_main_1 */
2126 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
2127 .master = &omap44xx_dss_hwmod,
2128 .slave = &omap44xx_l3_main_1_hwmod,
2130 .user = OCP_USER_MPU | OCP_USER_SDMA,
2133 /* l3_main_2 -> l3_main_1 */
2134 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
2135 .master = &omap44xx_l3_main_2_hwmod,
2136 .slave = &omap44xx_l3_main_1_hwmod,
2138 .user = OCP_USER_MPU | OCP_USER_SDMA,
2141 /* l4_cfg -> l3_main_1 */
2142 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
2143 .master = &omap44xx_l4_cfg_hwmod,
2144 .slave = &omap44xx_l3_main_1_hwmod,
2146 .user = OCP_USER_MPU | OCP_USER_SDMA,
2149 /* mpu -> l3_main_1 */
2150 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
2151 .master = &omap44xx_mpu_hwmod,
2152 .slave = &omap44xx_l3_main_1_hwmod,
2154 .user = OCP_USER_MPU,
2157 /* debugss -> l3_main_2 */
2158 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
2159 .master = &omap44xx_debugss_hwmod,
2160 .slave = &omap44xx_l3_main_2_hwmod,
2161 .clk = "dbgclk_mux_ck",
2162 .user = OCP_USER_MPU | OCP_USER_SDMA,
2165 /* fdif -> l3_main_2 */
2166 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
2167 .master = &omap44xx_fdif_hwmod,
2168 .slave = &omap44xx_l3_main_2_hwmod,
2170 .user = OCP_USER_MPU | OCP_USER_SDMA,
2173 /* hsi -> l3_main_2 */
2174 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
2175 .master = &omap44xx_hsi_hwmod,
2176 .slave = &omap44xx_l3_main_2_hwmod,
2178 .user = OCP_USER_MPU | OCP_USER_SDMA,
2181 /* ipu -> l3_main_2 */
2182 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
2183 .master = &omap44xx_ipu_hwmod,
2184 .slave = &omap44xx_l3_main_2_hwmod,
2186 .user = OCP_USER_MPU | OCP_USER_SDMA,
2189 /* iss -> l3_main_2 */
2190 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
2191 .master = &omap44xx_iss_hwmod,
2192 .slave = &omap44xx_l3_main_2_hwmod,
2194 .user = OCP_USER_MPU | OCP_USER_SDMA,
2197 /* iva -> l3_main_2 */
2198 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
2199 .master = &omap44xx_iva_hwmod,
2200 .slave = &omap44xx_l3_main_2_hwmod,
2202 .user = OCP_USER_MPU | OCP_USER_SDMA,
2205 /* l3_main_1 -> l3_main_2 */
2206 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
2207 .master = &omap44xx_l3_main_1_hwmod,
2208 .slave = &omap44xx_l3_main_2_hwmod,
2210 .user = OCP_USER_MPU,
2213 /* l4_cfg -> l3_main_2 */
2214 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
2215 .master = &omap44xx_l4_cfg_hwmod,
2216 .slave = &omap44xx_l3_main_2_hwmod,
2218 .user = OCP_USER_MPU | OCP_USER_SDMA,
2221 /* usb_host_fs -> l3_main_2 */
2222 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
2223 .master = &omap44xx_usb_host_fs_hwmod,
2224 .slave = &omap44xx_l3_main_2_hwmod,
2226 .user = OCP_USER_MPU | OCP_USER_SDMA,
2229 /* usb_host_hs -> l3_main_2 */
2230 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
2231 .master = &omap44xx_usb_host_hs_hwmod,
2232 .slave = &omap44xx_l3_main_2_hwmod,
2234 .user = OCP_USER_MPU | OCP_USER_SDMA,
2237 /* l3_main_1 -> l3_main_3 */
2238 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
2239 .master = &omap44xx_l3_main_1_hwmod,
2240 .slave = &omap44xx_l3_main_3_hwmod,
2242 .user = OCP_USER_MPU,
2245 /* l3_main_2 -> l3_main_3 */
2246 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
2247 .master = &omap44xx_l3_main_2_hwmod,
2248 .slave = &omap44xx_l3_main_3_hwmod,
2250 .user = OCP_USER_MPU | OCP_USER_SDMA,
2253 /* l4_cfg -> l3_main_3 */
2254 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
2255 .master = &omap44xx_l4_cfg_hwmod,
2256 .slave = &omap44xx_l3_main_3_hwmod,
2258 .user = OCP_USER_MPU | OCP_USER_SDMA,
2261 /* aess -> l4_abe */
2262 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
2263 .master = &omap44xx_aess_hwmod,
2264 .slave = &omap44xx_l4_abe_hwmod,
2265 .clk = "ocp_abe_iclk",
2266 .user = OCP_USER_MPU | OCP_USER_SDMA,
2270 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
2271 .master = &omap44xx_dsp_hwmod,
2272 .slave = &omap44xx_l4_abe_hwmod,
2273 .clk = "ocp_abe_iclk",
2274 .user = OCP_USER_MPU | OCP_USER_SDMA,
2277 /* l3_main_1 -> l4_abe */
2278 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
2279 .master = &omap44xx_l3_main_1_hwmod,
2280 .slave = &omap44xx_l4_abe_hwmod,
2282 .user = OCP_USER_MPU | OCP_USER_SDMA,
2286 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
2287 .master = &omap44xx_mpu_hwmod,
2288 .slave = &omap44xx_l4_abe_hwmod,
2289 .clk = "ocp_abe_iclk",
2290 .user = OCP_USER_MPU | OCP_USER_SDMA,
2293 /* l3_main_1 -> l4_cfg */
2294 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
2295 .master = &omap44xx_l3_main_1_hwmod,
2296 .slave = &omap44xx_l4_cfg_hwmod,
2298 .user = OCP_USER_MPU | OCP_USER_SDMA,
2301 /* l3_main_2 -> l4_per */
2302 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
2303 .master = &omap44xx_l3_main_2_hwmod,
2304 .slave = &omap44xx_l4_per_hwmod,
2306 .user = OCP_USER_MPU | OCP_USER_SDMA,
2309 /* l4_cfg -> l4_wkup */
2310 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
2311 .master = &omap44xx_l4_cfg_hwmod,
2312 .slave = &omap44xx_l4_wkup_hwmod,
2314 .user = OCP_USER_MPU | OCP_USER_SDMA,
2317 /* mpu -> mpu_private */
2318 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
2319 .master = &omap44xx_mpu_hwmod,
2320 .slave = &omap44xx_mpu_private_hwmod,
2322 .user = OCP_USER_MPU | OCP_USER_SDMA,
2325 /* l4_cfg -> ocp_wp_noc */
2326 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
2327 .master = &omap44xx_l4_cfg_hwmod,
2328 .slave = &omap44xx_ocp_wp_noc_hwmod,
2330 .user = OCP_USER_MPU | OCP_USER_SDMA,
2333 /* l4_abe -> aess */
2334 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
2335 .master = &omap44xx_l4_abe_hwmod,
2336 .slave = &omap44xx_aess_hwmod,
2337 .clk = "ocp_abe_iclk",
2338 .user = OCP_USER_MPU,
2341 /* l4_abe -> aess (dma) */
2342 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
2343 .master = &omap44xx_l4_abe_hwmod,
2344 .slave = &omap44xx_aess_hwmod,
2345 .clk = "ocp_abe_iclk",
2346 .user = OCP_USER_SDMA,
2349 /* l4_wkup -> counter_32k */
2350 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
2351 .master = &omap44xx_l4_wkup_hwmod,
2352 .slave = &omap44xx_counter_32k_hwmod,
2353 .clk = "l4_wkup_clk_mux_ck",
2354 .user = OCP_USER_MPU | OCP_USER_SDMA,
2357 /* l4_cfg -> ctrl_module_core */
2358 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
2359 .master = &omap44xx_l4_cfg_hwmod,
2360 .slave = &omap44xx_ctrl_module_core_hwmod,
2362 .user = OCP_USER_MPU | OCP_USER_SDMA,
2365 /* l4_cfg -> ctrl_module_pad_core */
2366 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
2367 .master = &omap44xx_l4_cfg_hwmod,
2368 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
2370 .user = OCP_USER_MPU | OCP_USER_SDMA,
2373 /* l4_wkup -> ctrl_module_wkup */
2374 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
2375 .master = &omap44xx_l4_wkup_hwmod,
2376 .slave = &omap44xx_ctrl_module_wkup_hwmod,
2377 .clk = "l4_wkup_clk_mux_ck",
2378 .user = OCP_USER_MPU | OCP_USER_SDMA,
2381 /* l4_wkup -> ctrl_module_pad_wkup */
2382 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
2383 .master = &omap44xx_l4_wkup_hwmod,
2384 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
2385 .clk = "l4_wkup_clk_mux_ck",
2386 .user = OCP_USER_MPU | OCP_USER_SDMA,
2389 /* l3_instr -> debugss */
2390 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
2391 .master = &omap44xx_l3_instr_hwmod,
2392 .slave = &omap44xx_debugss_hwmod,
2394 .user = OCP_USER_MPU | OCP_USER_SDMA,
2397 /* l4_abe -> dmic */
2398 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
2399 .master = &omap44xx_l4_abe_hwmod,
2400 .slave = &omap44xx_dmic_hwmod,
2401 .clk = "ocp_abe_iclk",
2402 .user = OCP_USER_MPU | OCP_USER_SDMA,
2406 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
2407 .master = &omap44xx_dsp_hwmod,
2408 .slave = &omap44xx_iva_hwmod,
2409 .clk = "dpll_iva_m5x2_ck",
2410 .user = OCP_USER_DSP,
2414 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
2415 .master = &omap44xx_dsp_hwmod,
2416 .slave = &omap44xx_sl2if_hwmod,
2417 .clk = "dpll_iva_m5x2_ck",
2418 .user = OCP_USER_DSP,
2422 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
2423 .master = &omap44xx_l4_cfg_hwmod,
2424 .slave = &omap44xx_dsp_hwmod,
2426 .user = OCP_USER_MPU | OCP_USER_SDMA,
2429 /* l3_main_2 -> dss */
2430 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
2431 .master = &omap44xx_l3_main_2_hwmod,
2432 .slave = &omap44xx_dss_hwmod,
2434 .user = OCP_USER_SDMA,
2438 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
2439 .master = &omap44xx_l4_per_hwmod,
2440 .slave = &omap44xx_dss_hwmod,
2442 .user = OCP_USER_MPU,
2445 /* l3_main_2 -> dss_dispc */
2446 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
2447 .master = &omap44xx_l3_main_2_hwmod,
2448 .slave = &omap44xx_dss_dispc_hwmod,
2450 .user = OCP_USER_SDMA,
2453 /* l4_per -> dss_dispc */
2454 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
2455 .master = &omap44xx_l4_per_hwmod,
2456 .slave = &omap44xx_dss_dispc_hwmod,
2458 .user = OCP_USER_MPU,
2461 /* l3_main_2 -> dss_dsi1 */
2462 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
2463 .master = &omap44xx_l3_main_2_hwmod,
2464 .slave = &omap44xx_dss_dsi1_hwmod,
2466 .user = OCP_USER_SDMA,
2469 /* l4_per -> dss_dsi1 */
2470 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
2471 .master = &omap44xx_l4_per_hwmod,
2472 .slave = &omap44xx_dss_dsi1_hwmod,
2474 .user = OCP_USER_MPU,
2477 /* l3_main_2 -> dss_dsi2 */
2478 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
2479 .master = &omap44xx_l3_main_2_hwmod,
2480 .slave = &omap44xx_dss_dsi2_hwmod,
2482 .user = OCP_USER_SDMA,
2485 /* l4_per -> dss_dsi2 */
2486 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
2487 .master = &omap44xx_l4_per_hwmod,
2488 .slave = &omap44xx_dss_dsi2_hwmod,
2490 .user = OCP_USER_MPU,
2493 /* l3_main_2 -> dss_hdmi */
2494 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
2495 .master = &omap44xx_l3_main_2_hwmod,
2496 .slave = &omap44xx_dss_hdmi_hwmod,
2498 .user = OCP_USER_SDMA,
2501 /* l4_per -> dss_hdmi */
2502 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
2503 .master = &omap44xx_l4_per_hwmod,
2504 .slave = &omap44xx_dss_hdmi_hwmod,
2506 .user = OCP_USER_MPU,
2509 /* l3_main_2 -> dss_rfbi */
2510 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
2511 .master = &omap44xx_l3_main_2_hwmod,
2512 .slave = &omap44xx_dss_rfbi_hwmod,
2514 .user = OCP_USER_SDMA,
2517 /* l4_per -> dss_rfbi */
2518 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
2519 .master = &omap44xx_l4_per_hwmod,
2520 .slave = &omap44xx_dss_rfbi_hwmod,
2522 .user = OCP_USER_MPU,
2525 /* l3_main_2 -> dss_venc */
2526 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
2527 .master = &omap44xx_l3_main_2_hwmod,
2528 .slave = &omap44xx_dss_venc_hwmod,
2530 .user = OCP_USER_SDMA,
2533 /* l4_per -> dss_venc */
2534 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
2535 .master = &omap44xx_l4_per_hwmod,
2536 .slave = &omap44xx_dss_venc_hwmod,
2538 .user = OCP_USER_MPU,
2541 /* l3_main_2 -> sham */
2542 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
2543 .master = &omap44xx_l3_main_2_hwmod,
2544 .slave = &omap44xx_sha0_hwmod,
2546 .user = OCP_USER_MPU | OCP_USER_SDMA,
2550 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
2551 .master = &omap44xx_l4_per_hwmod,
2552 .slave = &omap44xx_elm_hwmod,
2554 .user = OCP_USER_MPU | OCP_USER_SDMA,
2557 /* l4_cfg -> fdif */
2558 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
2559 .master = &omap44xx_l4_cfg_hwmod,
2560 .slave = &omap44xx_fdif_hwmod,
2562 .user = OCP_USER_MPU | OCP_USER_SDMA,
2565 /* l3_main_2 -> gpmc */
2566 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
2567 .master = &omap44xx_l3_main_2_hwmod,
2568 .slave = &omap44xx_gpmc_hwmod,
2570 .user = OCP_USER_MPU | OCP_USER_SDMA,
2574 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2575 .master = &omap44xx_l4_cfg_hwmod,
2576 .slave = &omap44xx_hsi_hwmod,
2578 .user = OCP_USER_MPU | OCP_USER_SDMA,
2581 /* l3_main_2 -> ipu */
2582 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2583 .master = &omap44xx_l3_main_2_hwmod,
2584 .slave = &omap44xx_ipu_hwmod,
2586 .user = OCP_USER_MPU | OCP_USER_SDMA,
2589 /* l3_main_2 -> iss */
2590 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2591 .master = &omap44xx_l3_main_2_hwmod,
2592 .slave = &omap44xx_iss_hwmod,
2594 .user = OCP_USER_MPU | OCP_USER_SDMA,
2598 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
2599 .master = &omap44xx_iva_hwmod,
2600 .slave = &omap44xx_sl2if_hwmod,
2601 .clk = "dpll_iva_m5x2_ck",
2602 .user = OCP_USER_IVA,
2605 /* l3_main_2 -> iva */
2606 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2607 .master = &omap44xx_l3_main_2_hwmod,
2608 .slave = &omap44xx_iva_hwmod,
2610 .user = OCP_USER_MPU,
2613 /* l4_wkup -> kbd */
2614 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2615 .master = &omap44xx_l4_wkup_hwmod,
2616 .slave = &omap44xx_kbd_hwmod,
2617 .clk = "l4_wkup_clk_mux_ck",
2618 .user = OCP_USER_MPU | OCP_USER_SDMA,
2621 /* l4_abe -> mcpdm */
2622 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
2623 .master = &omap44xx_l4_abe_hwmod,
2624 .slave = &omap44xx_mcpdm_hwmod,
2625 .clk = "ocp_abe_iclk",
2626 .user = OCP_USER_MPU | OCP_USER_SDMA,
2629 /* l3_main_2 -> ocmc_ram */
2630 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
2631 .master = &omap44xx_l3_main_2_hwmod,
2632 .slave = &omap44xx_ocmc_ram_hwmod,
2634 .user = OCP_USER_MPU | OCP_USER_SDMA,
2637 /* l4_cfg -> ocp2scp_usb_phy */
2638 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
2639 .master = &omap44xx_l4_cfg_hwmod,
2640 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
2642 .user = OCP_USER_MPU | OCP_USER_SDMA,
2645 /* mpu_private -> prcm_mpu */
2646 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
2647 .master = &omap44xx_mpu_private_hwmod,
2648 .slave = &omap44xx_prcm_mpu_hwmod,
2650 .user = OCP_USER_MPU | OCP_USER_SDMA,
2653 /* l4_wkup -> cm_core_aon */
2654 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
2655 .master = &omap44xx_l4_wkup_hwmod,
2656 .slave = &omap44xx_cm_core_aon_hwmod,
2657 .clk = "l4_wkup_clk_mux_ck",
2658 .user = OCP_USER_MPU | OCP_USER_SDMA,
2661 /* l4_cfg -> cm_core */
2662 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
2663 .master = &omap44xx_l4_cfg_hwmod,
2664 .slave = &omap44xx_cm_core_hwmod,
2666 .user = OCP_USER_MPU | OCP_USER_SDMA,
2669 /* l4_wkup -> prm */
2670 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
2671 .master = &omap44xx_l4_wkup_hwmod,
2672 .slave = &omap44xx_prm_hwmod,
2673 .clk = "l4_wkup_clk_mux_ck",
2674 .user = OCP_USER_MPU | OCP_USER_SDMA,
2677 /* l4_wkup -> scrm */
2678 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
2679 .master = &omap44xx_l4_wkup_hwmod,
2680 .slave = &omap44xx_scrm_hwmod,
2681 .clk = "l4_wkup_clk_mux_ck",
2682 .user = OCP_USER_MPU | OCP_USER_SDMA,
2685 /* l3_main_2 -> sl2if */
2686 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
2687 .master = &omap44xx_l3_main_2_hwmod,
2688 .slave = &omap44xx_sl2if_hwmod,
2690 .user = OCP_USER_MPU | OCP_USER_SDMA,
2693 /* l4_abe -> slimbus1 */
2694 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
2695 .master = &omap44xx_l4_abe_hwmod,
2696 .slave = &omap44xx_slimbus1_hwmod,
2697 .clk = "ocp_abe_iclk",
2698 .user = OCP_USER_MPU,
2701 /* l4_abe -> slimbus1 (dma) */
2702 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
2703 .master = &omap44xx_l4_abe_hwmod,
2704 .slave = &omap44xx_slimbus1_hwmod,
2705 .clk = "ocp_abe_iclk",
2706 .user = OCP_USER_SDMA,
2709 /* l4_per -> slimbus2 */
2710 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
2711 .master = &omap44xx_l4_per_hwmod,
2712 .slave = &omap44xx_slimbus2_hwmod,
2714 .user = OCP_USER_MPU | OCP_USER_SDMA,
2717 /* l4_cfg -> smartreflex_core */
2718 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
2719 .master = &omap44xx_l4_cfg_hwmod,
2720 .slave = &omap44xx_smartreflex_core_hwmod,
2722 .user = OCP_USER_MPU | OCP_USER_SDMA,
2725 /* l4_cfg -> smartreflex_iva */
2726 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
2727 .master = &omap44xx_l4_cfg_hwmod,
2728 .slave = &omap44xx_smartreflex_iva_hwmod,
2730 .user = OCP_USER_MPU | OCP_USER_SDMA,
2733 /* l4_cfg -> smartreflex_mpu */
2734 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
2735 .master = &omap44xx_l4_cfg_hwmod,
2736 .slave = &omap44xx_smartreflex_mpu_hwmod,
2738 .user = OCP_USER_MPU | OCP_USER_SDMA,
2741 /* l4_cfg -> spinlock */
2742 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
2743 .master = &omap44xx_l4_cfg_hwmod,
2744 .slave = &omap44xx_spinlock_hwmod,
2746 .user = OCP_USER_MPU | OCP_USER_SDMA,
2749 /* l4_wkup -> timer1 */
2750 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
2751 .master = &omap44xx_l4_wkup_hwmod,
2752 .slave = &omap44xx_timer1_hwmod,
2753 .clk = "l4_wkup_clk_mux_ck",
2754 .user = OCP_USER_MPU | OCP_USER_SDMA,
2757 /* l4_per -> timer2 */
2758 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
2759 .master = &omap44xx_l4_per_hwmod,
2760 .slave = &omap44xx_timer2_hwmod,
2762 .user = OCP_USER_MPU | OCP_USER_SDMA,
2765 /* l4_per -> timer3 */
2766 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
2767 .master = &omap44xx_l4_per_hwmod,
2768 .slave = &omap44xx_timer3_hwmod,
2770 .user = OCP_USER_MPU | OCP_USER_SDMA,
2773 /* l4_per -> timer4 */
2774 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
2775 .master = &omap44xx_l4_per_hwmod,
2776 .slave = &omap44xx_timer4_hwmod,
2778 .user = OCP_USER_MPU | OCP_USER_SDMA,
2781 /* l4_abe -> timer5 */
2782 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
2783 .master = &omap44xx_l4_abe_hwmod,
2784 .slave = &omap44xx_timer5_hwmod,
2785 .clk = "ocp_abe_iclk",
2786 .user = OCP_USER_MPU | OCP_USER_SDMA,
2789 /* l4_abe -> timer6 */
2790 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
2791 .master = &omap44xx_l4_abe_hwmod,
2792 .slave = &omap44xx_timer6_hwmod,
2793 .clk = "ocp_abe_iclk",
2794 .user = OCP_USER_MPU | OCP_USER_SDMA,
2797 /* l4_abe -> timer7 */
2798 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
2799 .master = &omap44xx_l4_abe_hwmod,
2800 .slave = &omap44xx_timer7_hwmod,
2801 .clk = "ocp_abe_iclk",
2802 .user = OCP_USER_MPU | OCP_USER_SDMA,
2805 /* l4_abe -> timer8 */
2806 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
2807 .master = &omap44xx_l4_abe_hwmod,
2808 .slave = &omap44xx_timer8_hwmod,
2809 .clk = "ocp_abe_iclk",
2810 .user = OCP_USER_MPU | OCP_USER_SDMA,
2813 /* l4_per -> timer9 */
2814 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
2815 .master = &omap44xx_l4_per_hwmod,
2816 .slave = &omap44xx_timer9_hwmod,
2818 .user = OCP_USER_MPU | OCP_USER_SDMA,
2821 /* l4_per -> timer10 */
2822 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
2823 .master = &omap44xx_l4_per_hwmod,
2824 .slave = &omap44xx_timer10_hwmod,
2826 .user = OCP_USER_MPU | OCP_USER_SDMA,
2829 /* l4_per -> timer11 */
2830 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
2831 .master = &omap44xx_l4_per_hwmod,
2832 .slave = &omap44xx_timer11_hwmod,
2834 .user = OCP_USER_MPU | OCP_USER_SDMA,
2837 /* l4_cfg -> usb_host_fs */
2838 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
2839 .master = &omap44xx_l4_cfg_hwmod,
2840 .slave = &omap44xx_usb_host_fs_hwmod,
2842 .user = OCP_USER_MPU | OCP_USER_SDMA,
2845 /* l4_cfg -> usb_host_hs */
2846 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
2847 .master = &omap44xx_l4_cfg_hwmod,
2848 .slave = &omap44xx_usb_host_hs_hwmod,
2850 .user = OCP_USER_MPU | OCP_USER_SDMA,
2853 /* l4_cfg -> usb_tll_hs */
2854 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
2855 .master = &omap44xx_l4_cfg_hwmod,
2856 .slave = &omap44xx_usb_tll_hs_hwmod,
2858 .user = OCP_USER_MPU | OCP_USER_SDMA,
2862 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
2863 .master = &omap44xx_mpu_hwmod,
2864 .slave = &omap44xx_emif1_hwmod,
2866 .user = OCP_USER_MPU | OCP_USER_SDMA,
2870 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
2871 .master = &omap44xx_mpu_hwmod,
2872 .slave = &omap44xx_emif2_hwmod,
2874 .user = OCP_USER_MPU | OCP_USER_SDMA,
2877 static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
2878 &omap44xx_l3_main_1__dmm,
2880 &omap44xx_iva__l3_instr,
2881 &omap44xx_l3_main_3__l3_instr,
2882 &omap44xx_ocp_wp_noc__l3_instr,
2883 &omap44xx_dsp__l3_main_1,
2884 &omap44xx_dss__l3_main_1,
2885 &omap44xx_l3_main_2__l3_main_1,
2886 &omap44xx_l4_cfg__l3_main_1,
2887 &omap44xx_mpu__l3_main_1,
2888 &omap44xx_debugss__l3_main_2,
2889 &omap44xx_fdif__l3_main_2,
2890 &omap44xx_hsi__l3_main_2,
2891 &omap44xx_ipu__l3_main_2,
2892 &omap44xx_iss__l3_main_2,
2893 &omap44xx_iva__l3_main_2,
2894 &omap44xx_l3_main_1__l3_main_2,
2895 &omap44xx_l4_cfg__l3_main_2,
2896 /* &omap44xx_usb_host_fs__l3_main_2, */
2897 &omap44xx_usb_host_hs__l3_main_2,
2898 &omap44xx_l3_main_1__l3_main_3,
2899 &omap44xx_l3_main_2__l3_main_3,
2900 &omap44xx_l4_cfg__l3_main_3,
2901 &omap44xx_aess__l4_abe,
2902 &omap44xx_dsp__l4_abe,
2903 &omap44xx_l3_main_1__l4_abe,
2904 &omap44xx_mpu__l4_abe,
2905 &omap44xx_l3_main_1__l4_cfg,
2906 &omap44xx_l3_main_2__l4_per,
2907 &omap44xx_l4_cfg__l4_wkup,
2908 &omap44xx_mpu__mpu_private,
2909 &omap44xx_l4_cfg__ocp_wp_noc,
2910 &omap44xx_l4_abe__aess,
2911 &omap44xx_l4_abe__aess_dma,
2912 &omap44xx_l4_wkup__counter_32k,
2913 &omap44xx_l4_cfg__ctrl_module_core,
2914 &omap44xx_l4_cfg__ctrl_module_pad_core,
2915 &omap44xx_l4_wkup__ctrl_module_wkup,
2916 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
2917 &omap44xx_l3_instr__debugss,
2918 &omap44xx_l4_abe__dmic,
2920 /* &omap44xx_dsp__sl2if, */
2921 &omap44xx_l4_cfg__dsp,
2922 &omap44xx_l3_main_2__dss,
2923 &omap44xx_l4_per__dss,
2924 &omap44xx_l3_main_2__dss_dispc,
2925 &omap44xx_l4_per__dss_dispc,
2926 &omap44xx_l3_main_2__dss_dsi1,
2927 &omap44xx_l4_per__dss_dsi1,
2928 &omap44xx_l3_main_2__dss_dsi2,
2929 &omap44xx_l4_per__dss_dsi2,
2930 &omap44xx_l3_main_2__dss_hdmi,
2931 &omap44xx_l4_per__dss_hdmi,
2932 &omap44xx_l3_main_2__dss_rfbi,
2933 &omap44xx_l4_per__dss_rfbi,
2934 &omap44xx_l3_main_2__dss_venc,
2935 &omap44xx_l4_per__dss_venc,
2936 &omap44xx_l4_per__elm,
2937 &omap44xx_l4_cfg__fdif,
2938 &omap44xx_l3_main_2__gpmc,
2939 &omap44xx_l4_cfg__hsi,
2940 &omap44xx_l3_main_2__ipu,
2941 &omap44xx_l3_main_2__iss,
2942 /* &omap44xx_iva__sl2if, */
2943 &omap44xx_l3_main_2__iva,
2944 &omap44xx_l4_wkup__kbd,
2945 &omap44xx_l4_abe__mcpdm,
2946 &omap44xx_l3_main_2__mmu_ipu,
2947 &omap44xx_l4_cfg__mmu_dsp,
2948 &omap44xx_l3_main_2__ocmc_ram,
2949 &omap44xx_l4_cfg__ocp2scp_usb_phy,
2950 &omap44xx_mpu_private__prcm_mpu,
2951 &omap44xx_l4_wkup__cm_core_aon,
2952 &omap44xx_l4_cfg__cm_core,
2953 &omap44xx_l4_wkup__prm,
2954 &omap44xx_l4_wkup__scrm,
2955 /* &omap44xx_l3_main_2__sl2if, */
2956 &omap44xx_l4_abe__slimbus1,
2957 &omap44xx_l4_abe__slimbus1_dma,
2958 &omap44xx_l4_per__slimbus2,
2959 &omap44xx_l4_cfg__smartreflex_core,
2960 &omap44xx_l4_cfg__smartreflex_iva,
2961 &omap44xx_l4_cfg__smartreflex_mpu,
2962 &omap44xx_l4_cfg__spinlock,
2963 &omap44xx_l4_wkup__timer1,
2964 &omap44xx_l4_per__timer2,
2965 &omap44xx_l4_per__timer3,
2966 &omap44xx_l4_per__timer4,
2967 &omap44xx_l4_abe__timer5,
2968 &omap44xx_l4_abe__timer6,
2969 &omap44xx_l4_abe__timer7,
2970 &omap44xx_l4_abe__timer8,
2971 &omap44xx_l4_per__timer9,
2972 &omap44xx_l4_per__timer10,
2973 &omap44xx_l4_per__timer11,
2974 /* &omap44xx_l4_cfg__usb_host_fs, */
2975 &omap44xx_l4_cfg__usb_host_hs,
2976 &omap44xx_l4_cfg__usb_tll_hs,
2977 &omap44xx_mpu__emif1,
2978 &omap44xx_mpu__emif2,
2979 &omap44xx_l3_main_2__aes1,
2980 &omap44xx_l3_main_2__aes2,
2981 &omap44xx_l3_main_2__des,
2982 &omap44xx_l3_main_2__sha0,
2986 int __init omap44xx_hwmod_init(void)
2989 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);