1 // SPDX-License-Identifier: GPL-2.0-only
3 * Hardware modules present on the OMAP44xx chips
5 * Copyright (C) 2009-2012 Texas Instruments, Inc.
6 * Copyright (C) 2009-2010 Nokia Corporation
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 * Note that this file is currently not in sync with autogeneration scripts.
17 * The above note to be removed, once it is synced up.
21 #include <linux/power/smartreflex.h>
23 #include <linux/omap-dma.h>
25 #include "omap_hwmod.h"
26 #include "omap_hwmod_common_data.h"
30 #include "prm-regbits-44xx.h"
32 /* Base offset for all OMAP4 interrupts external to MPUSS */
33 #define OMAP44XX_IRQ_GIC_START 32
35 /* Base offset for all OMAP4 dma requests */
36 #define OMAP44XX_DMA_REQ_START 1
46 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
51 static struct omap_hwmod omap44xx_dmm_hwmod = {
53 .class = &omap44xx_dmm_hwmod_class,
54 .clkdm_name = "l3_emif_clkdm",
57 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
58 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
65 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
67 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
72 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
74 .class = &omap44xx_l3_hwmod_class,
75 .clkdm_name = "l3_instr_clkdm",
78 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
79 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
80 .modulemode = MODULEMODE_HWCTRL,
86 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
88 .class = &omap44xx_l3_hwmod_class,
89 .clkdm_name = "l3_1_clkdm",
92 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
93 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
99 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
101 .class = &omap44xx_l3_hwmod_class,
102 .clkdm_name = "l3_2_clkdm",
105 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
106 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
112 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
114 .class = &omap44xx_l3_hwmod_class,
115 .clkdm_name = "l3_instr_clkdm",
118 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
119 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
120 .modulemode = MODULEMODE_HWCTRL,
127 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
129 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
134 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
136 .class = &omap44xx_l4_hwmod_class,
137 .clkdm_name = "abe_clkdm",
140 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
141 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
142 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
143 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
149 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
151 .class = &omap44xx_l4_hwmod_class,
152 .clkdm_name = "l4_cfg_clkdm",
155 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
156 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
162 static struct omap_hwmod omap44xx_l4_per_hwmod = {
164 .class = &omap44xx_l4_hwmod_class,
165 .clkdm_name = "l4_per_clkdm",
168 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
169 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
175 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
177 .class = &omap44xx_l4_hwmod_class,
178 .clkdm_name = "l4_wkup_clkdm",
181 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
182 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
189 * instance(s): mpu_private
191 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
196 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
197 .name = "mpu_private",
198 .class = &omap44xx_mpu_bus_hwmod_class,
199 .clkdm_name = "mpuss_clkdm",
202 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
209 * instance(s): ocp_wp_noc
211 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
212 .name = "ocp_wp_noc",
216 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
217 .name = "ocp_wp_noc",
218 .class = &omap44xx_ocp_wp_noc_hwmod_class,
219 .clkdm_name = "l3_instr_clkdm",
222 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
223 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
224 .modulemode = MODULEMODE_HWCTRL,
230 * Modules omap_hwmod structures
232 * The following IPs are excluded for the moment because:
233 * - They do not need an explicit SW control using omap_hwmod API.
234 * - They still need to be validated with the driver
235 * properly adapted to omap_hwmod / omap_device
242 * audio engine sub system
245 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
248 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
249 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
250 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
251 MSTANDBY_SMART_WKUP),
252 .sysc_fields = &omap_hwmod_sysc_type2,
255 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
257 .sysc = &omap44xx_aess_sysc,
258 .enable_preprogram = omap_hwmod_aess_preprogram,
262 static struct omap_hwmod omap44xx_aess_hwmod = {
264 .class = &omap44xx_aess_hwmod_class,
265 .clkdm_name = "abe_clkdm",
266 .main_clk = "aess_fclk",
269 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
270 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
271 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
272 .modulemode = MODULEMODE_SWCTRL,
279 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
282 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
285 .sysc_flags = SYSC_HAS_SIDLEMODE,
286 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
287 .sysc_fields = &omap_hwmod_sysc_type1,
290 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
292 .sysc = &omap44xx_counter_sysc,
296 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
297 .name = "counter_32k",
298 .class = &omap44xx_counter_hwmod_class,
299 .clkdm_name = "l4_wkup_clkdm",
300 .flags = HWMOD_SWSUP_SIDLE,
301 .main_clk = "sys_32k_ck",
304 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
305 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
311 * 'ctrl_module' class
312 * attila core control module + core pad control module + wkup pad control
313 * module + attila wkup control module
316 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
319 .sysc_flags = SYSC_HAS_SIDLEMODE,
320 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
322 .sysc_fields = &omap_hwmod_sysc_type2,
325 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
326 .name = "ctrl_module",
327 .sysc = &omap44xx_ctrl_module_sysc,
330 /* ctrl_module_core */
331 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
332 .name = "ctrl_module_core",
333 .class = &omap44xx_ctrl_module_hwmod_class,
334 .clkdm_name = "l4_cfg_clkdm",
337 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
342 /* ctrl_module_pad_core */
343 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
344 .name = "ctrl_module_pad_core",
345 .class = &omap44xx_ctrl_module_hwmod_class,
346 .clkdm_name = "l4_cfg_clkdm",
349 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
354 /* ctrl_module_wkup */
355 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
356 .name = "ctrl_module_wkup",
357 .class = &omap44xx_ctrl_module_hwmod_class,
358 .clkdm_name = "l4_wkup_clkdm",
361 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
366 /* ctrl_module_pad_wkup */
367 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
368 .name = "ctrl_module_pad_wkup",
369 .class = &omap44xx_ctrl_module_hwmod_class,
370 .clkdm_name = "l4_wkup_clkdm",
373 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
380 * debug and emulation sub system
383 static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
388 static struct omap_hwmod omap44xx_debugss_hwmod = {
390 .class = &omap44xx_debugss_hwmod_class,
391 .clkdm_name = "emu_sys_clkdm",
392 .main_clk = "trace_clk_div_ck",
395 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
396 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
403 * dma controller for data exchange between memory to memory (i.e. internal or
404 * external memory) and gp peripherals to memory or memory to gp peripherals
407 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
411 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
412 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
413 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
414 SYSS_HAS_RESET_STATUS),
415 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
416 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
417 .sysc_fields = &omap_hwmod_sysc_type1,
420 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
422 .sysc = &omap44xx_dma_sysc,
426 static struct omap_dma_dev_attr dma_dev_attr = {
427 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
428 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
433 static struct omap_hwmod omap44xx_dma_system_hwmod = {
434 .name = "dma_system",
435 .class = &omap44xx_dma_hwmod_class,
436 .clkdm_name = "l3_dma_clkdm",
437 .main_clk = "l3_div_ck",
440 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
441 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
444 .dev_attr = &dma_dev_attr,
449 * digital microphone controller
452 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
455 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
456 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
457 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
459 .sysc_fields = &omap_hwmod_sysc_type2,
462 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
464 .sysc = &omap44xx_dmic_sysc,
468 static struct omap_hwmod omap44xx_dmic_hwmod = {
470 .class = &omap44xx_dmic_hwmod_class,
471 .clkdm_name = "abe_clkdm",
472 .main_clk = "func_dmic_abe_gfclk",
475 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
476 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
477 .modulemode = MODULEMODE_SWCTRL,
487 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
492 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
493 { .name = "dsp", .rst_shift = 0 },
496 static struct omap_hwmod omap44xx_dsp_hwmod = {
498 .class = &omap44xx_dsp_hwmod_class,
499 .clkdm_name = "tesla_clkdm",
500 .rst_lines = omap44xx_dsp_resets,
501 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
502 .main_clk = "dpll_iva_m4x2_ck",
505 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
506 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
507 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
508 .modulemode = MODULEMODE_HWCTRL,
518 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
521 .sysc_flags = SYSS_HAS_RESET_STATUS,
524 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
526 .sysc = &omap44xx_dss_sysc,
527 .reset = omap_dss_reset,
531 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
532 { .role = "sys_clk", .clk = "dss_sys_clk" },
533 { .role = "tv_clk", .clk = "dss_tv_clk" },
534 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
537 static struct omap_hwmod omap44xx_dss_hwmod = {
539 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
540 .class = &omap44xx_dss_hwmod_class,
541 .clkdm_name = "l3_dss_clkdm",
542 .main_clk = "dss_dss_clk",
545 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
546 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
547 .modulemode = MODULEMODE_SWCTRL,
550 .opt_clks = dss_opt_clks,
551 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
559 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
563 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
564 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
565 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
566 SYSS_HAS_RESET_STATUS),
567 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
568 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
569 .sysc_fields = &omap_hwmod_sysc_type1,
572 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
574 .sysc = &omap44xx_dispc_sysc,
578 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
580 .has_framedonetv_irq = 1
583 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
585 .class = &omap44xx_dispc_hwmod_class,
586 .clkdm_name = "l3_dss_clkdm",
587 .main_clk = "dss_dss_clk",
590 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
591 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
594 .dev_attr = &omap44xx_dss_dispc_dev_attr,
595 .parent_hwmod = &omap44xx_dss_hwmod,
600 * display serial interface controller
603 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
607 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
608 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
609 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
610 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
611 .sysc_fields = &omap_hwmod_sysc_type1,
614 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
616 .sysc = &omap44xx_dsi_sysc,
620 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
621 { .role = "sys_clk", .clk = "dss_sys_clk" },
624 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
626 .class = &omap44xx_dsi_hwmod_class,
627 .clkdm_name = "l3_dss_clkdm",
628 .main_clk = "dss_dss_clk",
631 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
632 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
635 .opt_clks = dss_dsi1_opt_clks,
636 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
637 .parent_hwmod = &omap44xx_dss_hwmod,
641 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
642 { .role = "sys_clk", .clk = "dss_sys_clk" },
645 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
647 .class = &omap44xx_dsi_hwmod_class,
648 .clkdm_name = "l3_dss_clkdm",
649 .main_clk = "dss_dss_clk",
652 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
653 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
656 .opt_clks = dss_dsi2_opt_clks,
657 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
658 .parent_hwmod = &omap44xx_dss_hwmod,
666 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
669 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
671 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
673 .sysc_fields = &omap_hwmod_sysc_type2,
676 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
678 .sysc = &omap44xx_hdmi_sysc,
682 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
683 { .role = "sys_clk", .clk = "dss_sys_clk" },
684 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
687 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
689 .class = &omap44xx_hdmi_hwmod_class,
690 .clkdm_name = "l3_dss_clkdm",
692 * HDMI audio requires to use no-idle mode. Hence,
693 * set idle mode by software.
695 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
696 .main_clk = "dss_48mhz_clk",
699 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
700 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
703 .opt_clks = dss_hdmi_opt_clks,
704 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
705 .parent_hwmod = &omap44xx_dss_hwmod,
710 * remote frame buffer interface
713 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
717 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
718 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
719 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
720 .sysc_fields = &omap_hwmod_sysc_type1,
723 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
725 .sysc = &omap44xx_rfbi_sysc,
729 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
730 { .role = "ick", .clk = "l3_div_ck" },
733 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
735 .class = &omap44xx_rfbi_hwmod_class,
736 .clkdm_name = "l3_dss_clkdm",
737 .main_clk = "dss_dss_clk",
740 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
741 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
744 .opt_clks = dss_rfbi_opt_clks,
745 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
746 .parent_hwmod = &omap44xx_dss_hwmod,
754 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
759 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
760 { .role = "tv_clk", .clk = "dss_tv_clk" },
763 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
765 .class = &omap44xx_venc_hwmod_class,
766 .clkdm_name = "l3_dss_clkdm",
767 .main_clk = "dss_tv_clk",
768 .flags = HWMOD_OPT_CLKS_NEEDED,
771 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
772 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
775 .parent_hwmod = &omap44xx_dss_hwmod,
776 .opt_clks = dss_venc_opt_clks,
777 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
780 /* sha0 HIB2 (the 'P' (public) device) */
781 static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
785 .sysc_flags = SYSS_HAS_RESET_STATUS,
788 static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
790 .sysc = &omap44xx_sha0_sysc,
793 struct omap_hwmod omap44xx_sha0_hwmod = {
795 .class = &omap44xx_sha0_hwmod_class,
796 .clkdm_name = "l4_secure_clkdm",
797 .main_clk = "l3_div_ck",
800 .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
801 .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
802 .modulemode = MODULEMODE_SWCTRL,
809 * bch error location module
812 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
816 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
817 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
818 SYSS_HAS_RESET_STATUS),
819 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
820 .sysc_fields = &omap_hwmod_sysc_type1,
823 static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
825 .sysc = &omap44xx_elm_sysc,
829 static struct omap_hwmod omap44xx_elm_hwmod = {
831 .class = &omap44xx_elm_hwmod_class,
832 .clkdm_name = "l4_per_clkdm",
835 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
836 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
843 * external memory interface no1
846 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
850 static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
852 .sysc = &omap44xx_emif_sysc,
856 static struct omap_hwmod omap44xx_emif1_hwmod = {
858 .class = &omap44xx_emif_hwmod_class,
859 .clkdm_name = "l3_emif_clkdm",
860 .flags = HWMOD_INIT_NO_IDLE,
861 .main_clk = "ddrphy_ck",
864 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
865 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
866 .modulemode = MODULEMODE_HWCTRL,
872 static struct omap_hwmod omap44xx_emif2_hwmod = {
874 .class = &omap44xx_emif_hwmod_class,
875 .clkdm_name = "l3_emif_clkdm",
876 .flags = HWMOD_INIT_NO_IDLE,
877 .main_clk = "ddrphy_ck",
880 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
881 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
882 .modulemode = MODULEMODE_HWCTRL,
888 Crypto modules AES0/1 belong to:
889 PD_L4_PER power domain
890 CD_L4_SEC clock domain
891 On the L3, the AES modules are mapped to
892 L3_CLK2: Peripherals and multimedia sub clock domain
894 static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
898 .sysc_flags = SYSS_HAS_RESET_STATUS,
901 static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
903 .sysc = &omap44xx_aes_sysc,
906 static struct omap_hwmod omap44xx_aes1_hwmod = {
908 .class = &omap44xx_aes_hwmod_class,
909 .clkdm_name = "l4_secure_clkdm",
910 .main_clk = "l3_div_ck",
913 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
914 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
915 .modulemode = MODULEMODE_SWCTRL,
920 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
921 .master = &omap44xx_l4_per_hwmod,
922 .slave = &omap44xx_aes1_hwmod,
924 .user = OCP_USER_MPU | OCP_USER_SDMA,
927 static struct omap_hwmod omap44xx_aes2_hwmod = {
929 .class = &omap44xx_aes_hwmod_class,
930 .clkdm_name = "l4_secure_clkdm",
931 .main_clk = "l3_div_ck",
934 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
935 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
936 .modulemode = MODULEMODE_SWCTRL,
941 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
942 .master = &omap44xx_l4_per_hwmod,
943 .slave = &omap44xx_aes2_hwmod,
945 .user = OCP_USER_MPU | OCP_USER_SDMA,
949 * 'des' class for DES3DES module
951 static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
955 .sysc_flags = SYSS_HAS_RESET_STATUS,
958 static struct omap_hwmod_class omap44xx_des_hwmod_class = {
960 .sysc = &omap44xx_des_sysc,
963 static struct omap_hwmod omap44xx_des_hwmod = {
965 .class = &omap44xx_des_hwmod_class,
966 .clkdm_name = "l4_secure_clkdm",
967 .main_clk = "l3_div_ck",
970 .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
971 .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
972 .modulemode = MODULEMODE_SWCTRL,
977 struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
978 .master = &omap44xx_l3_main_2_hwmod,
979 .slave = &omap44xx_des_hwmod,
981 .user = OCP_USER_MPU | OCP_USER_SDMA,
986 * face detection hw accelerator module
989 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
993 * FDIF needs 100 OCP clk cycles delay after a softreset before
994 * accessing sysconfig again.
995 * The lowest frequency at the moment for L3 bus is 100 MHz, so
996 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
998 * TODO: Indicate errata when available.
1001 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1002 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1003 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1004 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1005 .sysc_fields = &omap_hwmod_sysc_type2,
1008 static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1010 .sysc = &omap44xx_fdif_sysc,
1014 static struct omap_hwmod omap44xx_fdif_hwmod = {
1016 .class = &omap44xx_fdif_hwmod_class,
1017 .clkdm_name = "iss_clkdm",
1018 .main_clk = "fdif_fck",
1021 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1022 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1023 .modulemode = MODULEMODE_SWCTRL,
1030 * general purpose memory controller
1033 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1035 .sysc_offs = 0x0010,
1036 .syss_offs = 0x0014,
1037 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1038 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1039 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1040 .sysc_fields = &omap_hwmod_sysc_type1,
1043 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1045 .sysc = &omap44xx_gpmc_sysc,
1049 static struct omap_hwmod omap44xx_gpmc_hwmod = {
1051 .class = &omap44xx_gpmc_hwmod_class,
1052 .clkdm_name = "l3_2_clkdm",
1053 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1054 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1057 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1058 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1059 .modulemode = MODULEMODE_HWCTRL,
1066 * hdq / 1-wire serial interface controller
1069 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1071 .sysc_offs = 0x0014,
1072 .syss_offs = 0x0018,
1073 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1074 SYSS_HAS_RESET_STATUS),
1075 .sysc_fields = &omap_hwmod_sysc_type1,
1078 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1080 .sysc = &omap44xx_hdq1w_sysc,
1084 static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1086 .class = &omap44xx_hdq1w_hwmod_class,
1087 .clkdm_name = "l4_per_clkdm",
1088 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1089 .main_clk = "func_12m_fclk",
1092 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1093 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1094 .modulemode = MODULEMODE_SWCTRL,
1101 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1105 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1107 .sysc_offs = 0x0010,
1108 .syss_offs = 0x0014,
1109 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1110 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1111 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1112 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1113 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1114 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1115 .sysc_fields = &omap_hwmod_sysc_type1,
1118 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1120 .sysc = &omap44xx_hsi_sysc,
1124 static struct omap_hwmod omap44xx_hsi_hwmod = {
1126 .class = &omap44xx_hsi_hwmod_class,
1127 .clkdm_name = "l3_init_clkdm",
1128 .main_clk = "hsi_fck",
1131 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
1132 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
1133 .modulemode = MODULEMODE_HWCTRL,
1140 * imaging processor unit
1143 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1148 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
1149 { .name = "cpu0", .rst_shift = 0 },
1150 { .name = "cpu1", .rst_shift = 1 },
1153 static struct omap_hwmod omap44xx_ipu_hwmod = {
1155 .class = &omap44xx_ipu_hwmod_class,
1156 .clkdm_name = "ducati_clkdm",
1157 .rst_lines = omap44xx_ipu_resets,
1158 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
1159 .main_clk = "ducati_clk_mux_ck",
1162 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1163 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1164 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1165 .modulemode = MODULEMODE_HWCTRL,
1172 * external images sensor pixel data processor
1175 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1177 .sysc_offs = 0x0010,
1179 * ISS needs 100 OCP clk cycles delay after a softreset before
1180 * accessing sysconfig again.
1181 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1182 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1184 * TODO: Indicate errata when available.
1187 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1188 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1189 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1190 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1191 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1192 .sysc_fields = &omap_hwmod_sysc_type2,
1195 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1197 .sysc = &omap44xx_iss_sysc,
1201 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1202 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1205 static struct omap_hwmod omap44xx_iss_hwmod = {
1207 .class = &omap44xx_iss_hwmod_class,
1208 .clkdm_name = "iss_clkdm",
1209 .main_clk = "ducati_clk_mux_ck",
1212 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
1213 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
1214 .modulemode = MODULEMODE_SWCTRL,
1217 .opt_clks = iss_opt_clks,
1218 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
1223 * multi-standard video encoder/decoder hardware accelerator
1226 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1231 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1232 { .name = "seq0", .rst_shift = 0 },
1233 { .name = "seq1", .rst_shift = 1 },
1234 { .name = "logic", .rst_shift = 2 },
1237 static struct omap_hwmod omap44xx_iva_hwmod = {
1239 .class = &omap44xx_iva_hwmod_class,
1240 .clkdm_name = "ivahd_clkdm",
1241 .rst_lines = omap44xx_iva_resets,
1242 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1243 .main_clk = "dpll_iva_m5x2_ck",
1246 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
1247 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
1248 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
1249 .modulemode = MODULEMODE_HWCTRL,
1256 * keyboard controller
1259 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1261 .sysc_offs = 0x0010,
1262 .syss_offs = 0x0014,
1263 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1264 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1265 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1266 SYSS_HAS_RESET_STATUS),
1267 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1268 .sysc_fields = &omap_hwmod_sysc_type1,
1271 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1273 .sysc = &omap44xx_kbd_sysc,
1277 static struct omap_hwmod omap44xx_kbd_hwmod = {
1279 .class = &omap44xx_kbd_hwmod_class,
1280 .clkdm_name = "l4_wkup_clkdm",
1281 .main_clk = "sys_32k_ck",
1284 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
1285 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
1286 .modulemode = MODULEMODE_SWCTRL,
1294 * multi-channel audio serial port controller
1297 /* The IP is not compliant to type1 / type2 scheme */
1298 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1300 .sysc_offs = 0x0004,
1301 .sysc_flags = SYSC_HAS_SIDLEMODE,
1302 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1304 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1307 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1309 .sysc = &omap44xx_mcasp_sysc,
1313 static struct omap_hwmod omap44xx_mcasp_hwmod = {
1315 .class = &omap44xx_mcasp_hwmod_class,
1316 .clkdm_name = "abe_clkdm",
1317 .main_clk = "func_mcasp_abe_gfclk",
1320 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1321 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1322 .modulemode = MODULEMODE_SWCTRL,
1329 * multi channel pdm controller (proprietary interface with phoenix power
1333 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1335 .sysc_offs = 0x0010,
1336 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1337 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1338 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1340 .sysc_fields = &omap_hwmod_sysc_type2,
1343 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1345 .sysc = &omap44xx_mcpdm_sysc,
1349 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1351 .class = &omap44xx_mcpdm_hwmod_class,
1352 .clkdm_name = "abe_clkdm",
1354 * It's suspected that the McPDM requires an off-chip main
1355 * functional clock, controlled via I2C. This IP block is
1356 * currently reset very early during boot, before I2C is
1357 * available, so it doesn't seem that we have any choice in
1358 * the kernel other than to avoid resetting it.
1360 * Also, McPDM needs to be configured to NO_IDLE mode when it
1361 * is in used otherwise vital clocks will be gated which
1362 * results 'slow motion' audio playback.
1364 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1365 .main_clk = "pad_clks_ck",
1368 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
1369 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
1370 .modulemode = MODULEMODE_SWCTRL,
1377 * The memory management unit performs virtual to physical address translation
1378 * for its requestors.
1381 static struct omap_hwmod_class_sysconfig mmu_sysc = {
1385 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1386 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1387 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1388 .sysc_fields = &omap_hwmod_sysc_type1,
1391 static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
1398 static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
1399 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
1400 { .name = "mmu_cache", .rst_shift = 2 },
1403 /* l3_main_2 -> mmu_ipu */
1404 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
1405 .master = &omap44xx_l3_main_2_hwmod,
1406 .slave = &omap44xx_mmu_ipu_hwmod,
1408 .user = OCP_USER_MPU | OCP_USER_SDMA,
1411 static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
1413 .class = &omap44xx_mmu_hwmod_class,
1414 .clkdm_name = "ducati_clkdm",
1415 .rst_lines = omap44xx_mmu_ipu_resets,
1416 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
1417 .main_clk = "ducati_clk_mux_ck",
1420 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1421 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1422 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1423 .modulemode = MODULEMODE_HWCTRL,
1430 static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
1431 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
1432 { .name = "mmu_cache", .rst_shift = 1 },
1436 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
1437 .master = &omap44xx_l4_cfg_hwmod,
1438 .slave = &omap44xx_mmu_dsp_hwmod,
1440 .user = OCP_USER_MPU | OCP_USER_SDMA,
1443 static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
1445 .class = &omap44xx_mmu_hwmod_class,
1446 .clkdm_name = "tesla_clkdm",
1447 .rst_lines = omap44xx_mmu_dsp_resets,
1448 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
1449 .main_clk = "dpll_iva_m4x2_ck",
1452 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
1453 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
1454 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
1455 .modulemode = MODULEMODE_HWCTRL,
1465 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1470 static struct omap_hwmod omap44xx_mpu_hwmod = {
1472 .class = &omap44xx_mpu_hwmod_class,
1473 .clkdm_name = "mpuss_clkdm",
1474 .flags = HWMOD_INIT_NO_IDLE,
1475 .main_clk = "dpll_mpu_m2_ck",
1478 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
1479 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
1486 * top-level core on-chip ram
1489 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
1494 static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
1496 .class = &omap44xx_ocmc_ram_hwmod_class,
1497 .clkdm_name = "l3_2_clkdm",
1500 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
1501 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
1508 * bridge to transform ocp interface protocol to scp (serial control port)
1512 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
1514 .sysc_offs = 0x0010,
1515 .syss_offs = 0x0014,
1516 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1517 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1518 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1519 .sysc_fields = &omap_hwmod_sysc_type1,
1522 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
1524 .sysc = &omap44xx_ocp2scp_sysc,
1527 /* ocp2scp_usb_phy */
1528 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
1529 .name = "ocp2scp_usb_phy",
1530 .class = &omap44xx_ocp2scp_hwmod_class,
1531 .clkdm_name = "l3_init_clkdm",
1533 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
1534 * block as an "optional clock," and normally should never be
1535 * specified as the main_clk for an OMAP IP block. However it
1536 * turns out that this clock is actually the main clock for
1537 * the ocp2scp_usb_phy IP block:
1538 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
1539 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
1540 * to be the best workaround.
1542 .main_clk = "ocp2scp_usb_phy_phy_48m",
1545 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
1546 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
1547 .modulemode = MODULEMODE_HWCTRL,
1554 * power and reset manager (part of the prcm infrastructure) + clock manager 2
1555 * + clock manager 1 (in always on power domain) + local prm in mpu
1558 static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
1563 static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
1565 .class = &omap44xx_prcm_hwmod_class,
1566 .clkdm_name = "l4_wkup_clkdm",
1567 .flags = HWMOD_NO_IDLEST,
1570 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1576 static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
1577 .name = "cm_core_aon",
1578 .class = &omap44xx_prcm_hwmod_class,
1579 .flags = HWMOD_NO_IDLEST,
1582 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1588 static struct omap_hwmod omap44xx_cm_core_hwmod = {
1590 .class = &omap44xx_prcm_hwmod_class,
1591 .flags = HWMOD_NO_IDLEST,
1594 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1600 static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
1601 { .name = "rst_global_warm_sw", .rst_shift = 0 },
1602 { .name = "rst_global_cold_sw", .rst_shift = 1 },
1605 static struct omap_hwmod omap44xx_prm_hwmod = {
1607 .class = &omap44xx_prcm_hwmod_class,
1608 .rst_lines = omap44xx_prm_resets,
1609 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
1614 * system clock and reset manager
1617 static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
1622 static struct omap_hwmod omap44xx_scrm_hwmod = {
1624 .class = &omap44xx_scrm_hwmod_class,
1625 .clkdm_name = "l4_wkup_clkdm",
1628 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1635 * shared level 2 memory interface
1638 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
1643 static struct omap_hwmod omap44xx_sl2if_hwmod = {
1645 .class = &omap44xx_sl2if_hwmod_class,
1646 .clkdm_name = "ivahd_clkdm",
1649 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
1650 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
1651 .modulemode = MODULEMODE_HWCTRL,
1658 * bidirectional, multi-drop, multi-channel two-line serial interface between
1659 * the device and external components
1662 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
1664 .sysc_offs = 0x0010,
1665 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1666 SYSC_HAS_SOFTRESET),
1667 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1669 .sysc_fields = &omap_hwmod_sysc_type2,
1672 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
1674 .sysc = &omap44xx_slimbus_sysc,
1678 static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
1679 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
1680 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
1681 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
1682 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
1685 static struct omap_hwmod omap44xx_slimbus1_hwmod = {
1687 .class = &omap44xx_slimbus_hwmod_class,
1688 .clkdm_name = "abe_clkdm",
1691 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
1692 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
1693 .modulemode = MODULEMODE_SWCTRL,
1696 .opt_clks = slimbus1_opt_clks,
1697 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
1701 static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
1702 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
1703 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
1704 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
1707 static struct omap_hwmod omap44xx_slimbus2_hwmod = {
1709 .class = &omap44xx_slimbus_hwmod_class,
1710 .clkdm_name = "l4_per_clkdm",
1713 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
1714 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
1715 .modulemode = MODULEMODE_SWCTRL,
1718 .opt_clks = slimbus2_opt_clks,
1719 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
1723 * 'smartreflex' class
1724 * smartreflex module (monitor silicon performance and outputs a measure of
1725 * performance error)
1728 /* The IP is not compliant to type1 / type2 scheme */
1729 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1730 .rev_offs = -ENODEV,
1731 .sysc_offs = 0x0038,
1732 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1733 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1735 .sysc_fields = &omap36xx_sr_sysc_fields,
1738 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1739 .name = "smartreflex",
1740 .sysc = &omap44xx_smartreflex_sysc,
1743 /* smartreflex_core */
1744 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
1745 .sensor_voltdm_name = "core",
1748 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1749 .name = "smartreflex_core",
1750 .class = &omap44xx_smartreflex_hwmod_class,
1751 .clkdm_name = "l4_ao_clkdm",
1753 .main_clk = "smartreflex_core_fck",
1756 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
1757 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
1758 .modulemode = MODULEMODE_SWCTRL,
1761 .dev_attr = &smartreflex_core_dev_attr,
1764 /* smartreflex_iva */
1765 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
1766 .sensor_voltdm_name = "iva",
1769 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1770 .name = "smartreflex_iva",
1771 .class = &omap44xx_smartreflex_hwmod_class,
1772 .clkdm_name = "l4_ao_clkdm",
1773 .main_clk = "smartreflex_iva_fck",
1776 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
1777 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
1778 .modulemode = MODULEMODE_SWCTRL,
1781 .dev_attr = &smartreflex_iva_dev_attr,
1784 /* smartreflex_mpu */
1785 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
1786 .sensor_voltdm_name = "mpu",
1789 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1790 .name = "smartreflex_mpu",
1791 .class = &omap44xx_smartreflex_hwmod_class,
1792 .clkdm_name = "l4_ao_clkdm",
1793 .main_clk = "smartreflex_mpu_fck",
1796 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
1797 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
1798 .modulemode = MODULEMODE_SWCTRL,
1801 .dev_attr = &smartreflex_mpu_dev_attr,
1806 * spinlock provides hardware assistance for synchronizing the processes
1807 * running on multiple processors
1810 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
1812 .sysc_offs = 0x0010,
1813 .syss_offs = 0x0014,
1814 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1815 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1816 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1817 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1818 .sysc_fields = &omap_hwmod_sysc_type1,
1821 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
1823 .sysc = &omap44xx_spinlock_sysc,
1827 static struct omap_hwmod omap44xx_spinlock_hwmod = {
1829 .class = &omap44xx_spinlock_hwmod_class,
1830 .clkdm_name = "l4_cfg_clkdm",
1833 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
1834 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
1841 * general purpose timer module with accurate 1ms tick
1842 * This class contains several variants: ['timer_1ms', 'timer']
1845 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
1847 .sysc_offs = 0x0010,
1848 .syss_offs = 0x0014,
1849 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1850 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1851 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1852 SYSS_HAS_RESET_STATUS),
1853 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1854 .sysc_fields = &omap_hwmod_sysc_type1,
1857 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
1859 .sysc = &omap44xx_timer_1ms_sysc,
1862 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
1864 .sysc_offs = 0x0010,
1865 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1866 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1867 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1869 .sysc_fields = &omap_hwmod_sysc_type2,
1872 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
1874 .sysc = &omap44xx_timer_sysc,
1878 static struct omap_hwmod omap44xx_timer1_hwmod = {
1880 .class = &omap44xx_timer_1ms_hwmod_class,
1881 .clkdm_name = "l4_wkup_clkdm",
1882 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1883 .main_clk = "dmt1_clk_mux",
1886 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
1887 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
1888 .modulemode = MODULEMODE_SWCTRL,
1894 static struct omap_hwmod omap44xx_timer2_hwmod = {
1896 .class = &omap44xx_timer_1ms_hwmod_class,
1897 .clkdm_name = "l4_per_clkdm",
1898 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1899 .main_clk = "cm2_dm2_mux",
1902 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
1903 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
1904 .modulemode = MODULEMODE_SWCTRL,
1910 static struct omap_hwmod omap44xx_timer3_hwmod = {
1912 .class = &omap44xx_timer_hwmod_class,
1913 .clkdm_name = "l4_per_clkdm",
1914 .main_clk = "cm2_dm3_mux",
1917 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
1918 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
1919 .modulemode = MODULEMODE_SWCTRL,
1925 static struct omap_hwmod omap44xx_timer4_hwmod = {
1927 .class = &omap44xx_timer_hwmod_class,
1928 .clkdm_name = "l4_per_clkdm",
1929 .main_clk = "cm2_dm4_mux",
1932 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
1933 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
1934 .modulemode = MODULEMODE_SWCTRL,
1940 static struct omap_hwmod omap44xx_timer5_hwmod = {
1942 .class = &omap44xx_timer_hwmod_class,
1943 .clkdm_name = "abe_clkdm",
1944 .main_clk = "timer5_sync_mux",
1947 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
1948 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
1949 .modulemode = MODULEMODE_SWCTRL,
1955 static struct omap_hwmod omap44xx_timer6_hwmod = {
1957 .class = &omap44xx_timer_hwmod_class,
1958 .clkdm_name = "abe_clkdm",
1959 .main_clk = "timer6_sync_mux",
1962 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
1963 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
1964 .modulemode = MODULEMODE_SWCTRL,
1970 static struct omap_hwmod omap44xx_timer7_hwmod = {
1972 .class = &omap44xx_timer_hwmod_class,
1973 .clkdm_name = "abe_clkdm",
1974 .main_clk = "timer7_sync_mux",
1977 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
1978 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
1979 .modulemode = MODULEMODE_SWCTRL,
1985 static struct omap_hwmod omap44xx_timer8_hwmod = {
1987 .class = &omap44xx_timer_hwmod_class,
1988 .clkdm_name = "abe_clkdm",
1989 .main_clk = "timer8_sync_mux",
1992 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
1993 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
1994 .modulemode = MODULEMODE_SWCTRL,
2000 static struct omap_hwmod omap44xx_timer9_hwmod = {
2002 .class = &omap44xx_timer_hwmod_class,
2003 .clkdm_name = "l4_per_clkdm",
2004 .main_clk = "cm2_dm9_mux",
2007 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
2008 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
2009 .modulemode = MODULEMODE_SWCTRL,
2015 static struct omap_hwmod omap44xx_timer10_hwmod = {
2017 .class = &omap44xx_timer_1ms_hwmod_class,
2018 .clkdm_name = "l4_per_clkdm",
2019 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2020 .main_clk = "cm2_dm10_mux",
2023 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
2024 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
2025 .modulemode = MODULEMODE_SWCTRL,
2031 static struct omap_hwmod omap44xx_timer11_hwmod = {
2033 .class = &omap44xx_timer_hwmod_class,
2034 .clkdm_name = "l4_per_clkdm",
2035 .main_clk = "cm2_dm11_mux",
2038 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
2039 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
2040 .modulemode = MODULEMODE_SWCTRL,
2046 * 'usb_host_fs' class
2047 * full-speed usb host controller
2050 /* The IP is not compliant to type1 / type2 scheme */
2051 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2053 .sysc_offs = 0x0210,
2054 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2055 SYSC_HAS_SOFTRESET),
2056 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2058 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2061 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2062 .name = "usb_host_fs",
2063 .sysc = &omap44xx_usb_host_fs_sysc,
2067 static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2068 .name = "usb_host_fs",
2069 .class = &omap44xx_usb_host_fs_hwmod_class,
2070 .clkdm_name = "l3_init_clkdm",
2071 .main_clk = "usb_host_fs_fck",
2074 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2075 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2076 .modulemode = MODULEMODE_SWCTRL,
2082 * 'usb_host_hs' class
2083 * high-speed multi-port usb host controller
2086 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2088 .sysc_offs = 0x0010,
2089 .syss_offs = 0x0014,
2090 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2091 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
2092 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2093 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2094 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2095 .sysc_fields = &omap_hwmod_sysc_type2,
2098 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
2099 .name = "usb_host_hs",
2100 .sysc = &omap44xx_usb_host_hs_sysc,
2104 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2105 .name = "usb_host_hs",
2106 .class = &omap44xx_usb_host_hs_hwmod_class,
2107 .clkdm_name = "l3_init_clkdm",
2108 .main_clk = "usb_host_hs_fck",
2111 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2112 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2113 .modulemode = MODULEMODE_SWCTRL,
2118 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2122 * In the following configuration :
2123 * - USBHOST module is set to smart-idle mode
2124 * - PRCM asserts idle_req to the USBHOST module ( This typically
2125 * happens when the system is going to a low power mode : all ports
2126 * have been suspended, the master part of the USBHOST module has
2127 * entered the standby state, and SW has cut the functional clocks)
2128 * - an USBHOST interrupt occurs before the module is able to answer
2129 * idle_ack, typically a remote wakeup IRQ.
2130 * Then the USB HOST module will enter a deadlock situation where it
2131 * is no more accessible nor functional.
2134 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2138 * Errata: USB host EHCI may stall when entering smart-standby mode
2142 * When the USBHOST module is set to smart-standby mode, and when it is
2143 * ready to enter the standby state (i.e. all ports are suspended and
2144 * all attached devices are in suspend mode), then it can wrongly assert
2145 * the Mstandby signal too early while there are still some residual OCP
2146 * transactions ongoing. If this condition occurs, the internal state
2147 * machine may go to an undefined state and the USB link may be stuck
2148 * upon the next resume.
2151 * Don't use smart standby; use only force standby,
2152 * hence HWMOD_SWSUP_MSTANDBY
2155 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2159 * 'usb_otg_hs' class
2160 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2163 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
2165 .sysc_offs = 0x0404,
2166 .syss_offs = 0x0408,
2167 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2168 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2169 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2170 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2171 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2173 .sysc_fields = &omap_hwmod_sysc_type1,
2176 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
2177 .name = "usb_otg_hs",
2178 .sysc = &omap44xx_usb_otg_hs_sysc,
2182 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
2183 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
2186 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
2187 .name = "usb_otg_hs",
2188 .class = &omap44xx_usb_otg_hs_hwmod_class,
2189 .clkdm_name = "l3_init_clkdm",
2190 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2191 .main_clk = "usb_otg_hs_ick",
2194 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
2195 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
2196 .modulemode = MODULEMODE_HWCTRL,
2199 .opt_clks = usb_otg_hs_opt_clks,
2200 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
2204 * 'usb_tll_hs' class
2205 * usb_tll_hs module is the adapter on the usb_host_hs ports
2208 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
2210 .sysc_offs = 0x0010,
2211 .syss_offs = 0x0014,
2212 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2213 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2215 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2216 .sysc_fields = &omap_hwmod_sysc_type1,
2219 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
2220 .name = "usb_tll_hs",
2221 .sysc = &omap44xx_usb_tll_hs_sysc,
2224 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
2225 .name = "usb_tll_hs",
2226 .class = &omap44xx_usb_tll_hs_hwmod_class,
2227 .clkdm_name = "l3_init_clkdm",
2228 .main_clk = "usb_tll_hs_ick",
2231 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
2232 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
2233 .modulemode = MODULEMODE_HWCTRL,
2242 /* l3_main_1 -> dmm */
2243 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
2244 .master = &omap44xx_l3_main_1_hwmod,
2245 .slave = &omap44xx_dmm_hwmod,
2247 .user = OCP_USER_SDMA,
2251 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
2252 .master = &omap44xx_mpu_hwmod,
2253 .slave = &omap44xx_dmm_hwmod,
2255 .user = OCP_USER_MPU,
2258 /* iva -> l3_instr */
2259 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
2260 .master = &omap44xx_iva_hwmod,
2261 .slave = &omap44xx_l3_instr_hwmod,
2263 .user = OCP_USER_MPU | OCP_USER_SDMA,
2266 /* l3_main_3 -> l3_instr */
2267 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
2268 .master = &omap44xx_l3_main_3_hwmod,
2269 .slave = &omap44xx_l3_instr_hwmod,
2271 .user = OCP_USER_MPU | OCP_USER_SDMA,
2274 /* ocp_wp_noc -> l3_instr */
2275 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
2276 .master = &omap44xx_ocp_wp_noc_hwmod,
2277 .slave = &omap44xx_l3_instr_hwmod,
2279 .user = OCP_USER_MPU | OCP_USER_SDMA,
2282 /* dsp -> l3_main_1 */
2283 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
2284 .master = &omap44xx_dsp_hwmod,
2285 .slave = &omap44xx_l3_main_1_hwmod,
2287 .user = OCP_USER_MPU | OCP_USER_SDMA,
2290 /* dss -> l3_main_1 */
2291 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
2292 .master = &omap44xx_dss_hwmod,
2293 .slave = &omap44xx_l3_main_1_hwmod,
2295 .user = OCP_USER_MPU | OCP_USER_SDMA,
2298 /* l3_main_2 -> l3_main_1 */
2299 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
2300 .master = &omap44xx_l3_main_2_hwmod,
2301 .slave = &omap44xx_l3_main_1_hwmod,
2303 .user = OCP_USER_MPU | OCP_USER_SDMA,
2306 /* l4_cfg -> l3_main_1 */
2307 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
2308 .master = &omap44xx_l4_cfg_hwmod,
2309 .slave = &omap44xx_l3_main_1_hwmod,
2311 .user = OCP_USER_MPU | OCP_USER_SDMA,
2314 /* mpu -> l3_main_1 */
2315 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
2316 .master = &omap44xx_mpu_hwmod,
2317 .slave = &omap44xx_l3_main_1_hwmod,
2319 .user = OCP_USER_MPU,
2322 /* debugss -> l3_main_2 */
2323 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
2324 .master = &omap44xx_debugss_hwmod,
2325 .slave = &omap44xx_l3_main_2_hwmod,
2326 .clk = "dbgclk_mux_ck",
2327 .user = OCP_USER_MPU | OCP_USER_SDMA,
2330 /* dma_system -> l3_main_2 */
2331 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
2332 .master = &omap44xx_dma_system_hwmod,
2333 .slave = &omap44xx_l3_main_2_hwmod,
2335 .user = OCP_USER_MPU | OCP_USER_SDMA,
2338 /* fdif -> l3_main_2 */
2339 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
2340 .master = &omap44xx_fdif_hwmod,
2341 .slave = &omap44xx_l3_main_2_hwmod,
2343 .user = OCP_USER_MPU | OCP_USER_SDMA,
2346 /* hsi -> l3_main_2 */
2347 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
2348 .master = &omap44xx_hsi_hwmod,
2349 .slave = &omap44xx_l3_main_2_hwmod,
2351 .user = OCP_USER_MPU | OCP_USER_SDMA,
2354 /* ipu -> l3_main_2 */
2355 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
2356 .master = &omap44xx_ipu_hwmod,
2357 .slave = &omap44xx_l3_main_2_hwmod,
2359 .user = OCP_USER_MPU | OCP_USER_SDMA,
2362 /* iss -> l3_main_2 */
2363 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
2364 .master = &omap44xx_iss_hwmod,
2365 .slave = &omap44xx_l3_main_2_hwmod,
2367 .user = OCP_USER_MPU | OCP_USER_SDMA,
2370 /* iva -> l3_main_2 */
2371 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
2372 .master = &omap44xx_iva_hwmod,
2373 .slave = &omap44xx_l3_main_2_hwmod,
2375 .user = OCP_USER_MPU | OCP_USER_SDMA,
2378 /* l3_main_1 -> l3_main_2 */
2379 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
2380 .master = &omap44xx_l3_main_1_hwmod,
2381 .slave = &omap44xx_l3_main_2_hwmod,
2383 .user = OCP_USER_MPU,
2386 /* l4_cfg -> l3_main_2 */
2387 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
2388 .master = &omap44xx_l4_cfg_hwmod,
2389 .slave = &omap44xx_l3_main_2_hwmod,
2391 .user = OCP_USER_MPU | OCP_USER_SDMA,
2394 /* usb_host_fs -> l3_main_2 */
2395 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
2396 .master = &omap44xx_usb_host_fs_hwmod,
2397 .slave = &omap44xx_l3_main_2_hwmod,
2399 .user = OCP_USER_MPU | OCP_USER_SDMA,
2402 /* usb_host_hs -> l3_main_2 */
2403 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
2404 .master = &omap44xx_usb_host_hs_hwmod,
2405 .slave = &omap44xx_l3_main_2_hwmod,
2407 .user = OCP_USER_MPU | OCP_USER_SDMA,
2410 /* usb_otg_hs -> l3_main_2 */
2411 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
2412 .master = &omap44xx_usb_otg_hs_hwmod,
2413 .slave = &omap44xx_l3_main_2_hwmod,
2415 .user = OCP_USER_MPU | OCP_USER_SDMA,
2418 /* l3_main_1 -> l3_main_3 */
2419 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
2420 .master = &omap44xx_l3_main_1_hwmod,
2421 .slave = &omap44xx_l3_main_3_hwmod,
2423 .user = OCP_USER_MPU,
2426 /* l3_main_2 -> l3_main_3 */
2427 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
2428 .master = &omap44xx_l3_main_2_hwmod,
2429 .slave = &omap44xx_l3_main_3_hwmod,
2431 .user = OCP_USER_MPU | OCP_USER_SDMA,
2434 /* l4_cfg -> l3_main_3 */
2435 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
2436 .master = &omap44xx_l4_cfg_hwmod,
2437 .slave = &omap44xx_l3_main_3_hwmod,
2439 .user = OCP_USER_MPU | OCP_USER_SDMA,
2442 /* aess -> l4_abe */
2443 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
2444 .master = &omap44xx_aess_hwmod,
2445 .slave = &omap44xx_l4_abe_hwmod,
2446 .clk = "ocp_abe_iclk",
2447 .user = OCP_USER_MPU | OCP_USER_SDMA,
2451 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
2452 .master = &omap44xx_dsp_hwmod,
2453 .slave = &omap44xx_l4_abe_hwmod,
2454 .clk = "ocp_abe_iclk",
2455 .user = OCP_USER_MPU | OCP_USER_SDMA,
2458 /* l3_main_1 -> l4_abe */
2459 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
2460 .master = &omap44xx_l3_main_1_hwmod,
2461 .slave = &omap44xx_l4_abe_hwmod,
2463 .user = OCP_USER_MPU | OCP_USER_SDMA,
2467 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
2468 .master = &omap44xx_mpu_hwmod,
2469 .slave = &omap44xx_l4_abe_hwmod,
2470 .clk = "ocp_abe_iclk",
2471 .user = OCP_USER_MPU | OCP_USER_SDMA,
2474 /* l3_main_1 -> l4_cfg */
2475 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
2476 .master = &omap44xx_l3_main_1_hwmod,
2477 .slave = &omap44xx_l4_cfg_hwmod,
2479 .user = OCP_USER_MPU | OCP_USER_SDMA,
2482 /* l3_main_2 -> l4_per */
2483 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
2484 .master = &omap44xx_l3_main_2_hwmod,
2485 .slave = &omap44xx_l4_per_hwmod,
2487 .user = OCP_USER_MPU | OCP_USER_SDMA,
2490 /* l4_cfg -> l4_wkup */
2491 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
2492 .master = &omap44xx_l4_cfg_hwmod,
2493 .slave = &omap44xx_l4_wkup_hwmod,
2495 .user = OCP_USER_MPU | OCP_USER_SDMA,
2498 /* mpu -> mpu_private */
2499 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
2500 .master = &omap44xx_mpu_hwmod,
2501 .slave = &omap44xx_mpu_private_hwmod,
2503 .user = OCP_USER_MPU | OCP_USER_SDMA,
2506 /* l4_cfg -> ocp_wp_noc */
2507 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
2508 .master = &omap44xx_l4_cfg_hwmod,
2509 .slave = &omap44xx_ocp_wp_noc_hwmod,
2511 .user = OCP_USER_MPU | OCP_USER_SDMA,
2514 /* l4_abe -> aess */
2515 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
2516 .master = &omap44xx_l4_abe_hwmod,
2517 .slave = &omap44xx_aess_hwmod,
2518 .clk = "ocp_abe_iclk",
2519 .user = OCP_USER_MPU,
2522 /* l4_abe -> aess (dma) */
2523 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
2524 .master = &omap44xx_l4_abe_hwmod,
2525 .slave = &omap44xx_aess_hwmod,
2526 .clk = "ocp_abe_iclk",
2527 .user = OCP_USER_SDMA,
2530 /* l4_wkup -> counter_32k */
2531 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
2532 .master = &omap44xx_l4_wkup_hwmod,
2533 .slave = &omap44xx_counter_32k_hwmod,
2534 .clk = "l4_wkup_clk_mux_ck",
2535 .user = OCP_USER_MPU | OCP_USER_SDMA,
2538 /* l4_cfg -> ctrl_module_core */
2539 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
2540 .master = &omap44xx_l4_cfg_hwmod,
2541 .slave = &omap44xx_ctrl_module_core_hwmod,
2543 .user = OCP_USER_MPU | OCP_USER_SDMA,
2546 /* l4_cfg -> ctrl_module_pad_core */
2547 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
2548 .master = &omap44xx_l4_cfg_hwmod,
2549 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
2551 .user = OCP_USER_MPU | OCP_USER_SDMA,
2554 /* l4_wkup -> ctrl_module_wkup */
2555 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
2556 .master = &omap44xx_l4_wkup_hwmod,
2557 .slave = &omap44xx_ctrl_module_wkup_hwmod,
2558 .clk = "l4_wkup_clk_mux_ck",
2559 .user = OCP_USER_MPU | OCP_USER_SDMA,
2562 /* l4_wkup -> ctrl_module_pad_wkup */
2563 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
2564 .master = &omap44xx_l4_wkup_hwmod,
2565 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
2566 .clk = "l4_wkup_clk_mux_ck",
2567 .user = OCP_USER_MPU | OCP_USER_SDMA,
2570 /* l3_instr -> debugss */
2571 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
2572 .master = &omap44xx_l3_instr_hwmod,
2573 .slave = &omap44xx_debugss_hwmod,
2575 .user = OCP_USER_MPU | OCP_USER_SDMA,
2578 /* l4_cfg -> dma_system */
2579 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
2580 .master = &omap44xx_l4_cfg_hwmod,
2581 .slave = &omap44xx_dma_system_hwmod,
2583 .user = OCP_USER_MPU | OCP_USER_SDMA,
2586 /* l4_abe -> dmic */
2587 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
2588 .master = &omap44xx_l4_abe_hwmod,
2589 .slave = &omap44xx_dmic_hwmod,
2590 .clk = "ocp_abe_iclk",
2591 .user = OCP_USER_MPU | OCP_USER_SDMA,
2595 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
2596 .master = &omap44xx_dsp_hwmod,
2597 .slave = &omap44xx_iva_hwmod,
2598 .clk = "dpll_iva_m5x2_ck",
2599 .user = OCP_USER_DSP,
2603 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
2604 .master = &omap44xx_dsp_hwmod,
2605 .slave = &omap44xx_sl2if_hwmod,
2606 .clk = "dpll_iva_m5x2_ck",
2607 .user = OCP_USER_DSP,
2611 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
2612 .master = &omap44xx_l4_cfg_hwmod,
2613 .slave = &omap44xx_dsp_hwmod,
2615 .user = OCP_USER_MPU | OCP_USER_SDMA,
2618 /* l3_main_2 -> dss */
2619 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
2620 .master = &omap44xx_l3_main_2_hwmod,
2621 .slave = &omap44xx_dss_hwmod,
2623 .user = OCP_USER_SDMA,
2627 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
2628 .master = &omap44xx_l4_per_hwmod,
2629 .slave = &omap44xx_dss_hwmod,
2631 .user = OCP_USER_MPU,
2634 /* l3_main_2 -> dss_dispc */
2635 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
2636 .master = &omap44xx_l3_main_2_hwmod,
2637 .slave = &omap44xx_dss_dispc_hwmod,
2639 .user = OCP_USER_SDMA,
2642 /* l4_per -> dss_dispc */
2643 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
2644 .master = &omap44xx_l4_per_hwmod,
2645 .slave = &omap44xx_dss_dispc_hwmod,
2647 .user = OCP_USER_MPU,
2650 /* l3_main_2 -> dss_dsi1 */
2651 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
2652 .master = &omap44xx_l3_main_2_hwmod,
2653 .slave = &omap44xx_dss_dsi1_hwmod,
2655 .user = OCP_USER_SDMA,
2658 /* l4_per -> dss_dsi1 */
2659 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
2660 .master = &omap44xx_l4_per_hwmod,
2661 .slave = &omap44xx_dss_dsi1_hwmod,
2663 .user = OCP_USER_MPU,
2666 /* l3_main_2 -> dss_dsi2 */
2667 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
2668 .master = &omap44xx_l3_main_2_hwmod,
2669 .slave = &omap44xx_dss_dsi2_hwmod,
2671 .user = OCP_USER_SDMA,
2674 /* l4_per -> dss_dsi2 */
2675 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
2676 .master = &omap44xx_l4_per_hwmod,
2677 .slave = &omap44xx_dss_dsi2_hwmod,
2679 .user = OCP_USER_MPU,
2682 /* l3_main_2 -> dss_hdmi */
2683 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
2684 .master = &omap44xx_l3_main_2_hwmod,
2685 .slave = &omap44xx_dss_hdmi_hwmod,
2687 .user = OCP_USER_SDMA,
2690 /* l4_per -> dss_hdmi */
2691 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
2692 .master = &omap44xx_l4_per_hwmod,
2693 .slave = &omap44xx_dss_hdmi_hwmod,
2695 .user = OCP_USER_MPU,
2698 /* l3_main_2 -> dss_rfbi */
2699 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
2700 .master = &omap44xx_l3_main_2_hwmod,
2701 .slave = &omap44xx_dss_rfbi_hwmod,
2703 .user = OCP_USER_SDMA,
2706 /* l4_per -> dss_rfbi */
2707 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
2708 .master = &omap44xx_l4_per_hwmod,
2709 .slave = &omap44xx_dss_rfbi_hwmod,
2711 .user = OCP_USER_MPU,
2714 /* l3_main_2 -> dss_venc */
2715 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
2716 .master = &omap44xx_l3_main_2_hwmod,
2717 .slave = &omap44xx_dss_venc_hwmod,
2719 .user = OCP_USER_SDMA,
2722 /* l4_per -> dss_venc */
2723 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
2724 .master = &omap44xx_l4_per_hwmod,
2725 .slave = &omap44xx_dss_venc_hwmod,
2727 .user = OCP_USER_MPU,
2730 /* l3_main_2 -> sham */
2731 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
2732 .master = &omap44xx_l3_main_2_hwmod,
2733 .slave = &omap44xx_sha0_hwmod,
2735 .user = OCP_USER_MPU | OCP_USER_SDMA,
2739 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
2740 .master = &omap44xx_l4_per_hwmod,
2741 .slave = &omap44xx_elm_hwmod,
2743 .user = OCP_USER_MPU | OCP_USER_SDMA,
2746 /* l4_cfg -> fdif */
2747 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
2748 .master = &omap44xx_l4_cfg_hwmod,
2749 .slave = &omap44xx_fdif_hwmod,
2751 .user = OCP_USER_MPU | OCP_USER_SDMA,
2754 /* l3_main_2 -> gpmc */
2755 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
2756 .master = &omap44xx_l3_main_2_hwmod,
2757 .slave = &omap44xx_gpmc_hwmod,
2759 .user = OCP_USER_MPU | OCP_USER_SDMA,
2762 /* l4_per -> hdq1w */
2763 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
2764 .master = &omap44xx_l4_per_hwmod,
2765 .slave = &omap44xx_hdq1w_hwmod,
2767 .user = OCP_USER_MPU | OCP_USER_SDMA,
2771 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2772 .master = &omap44xx_l4_cfg_hwmod,
2773 .slave = &omap44xx_hsi_hwmod,
2775 .user = OCP_USER_MPU | OCP_USER_SDMA,
2778 /* l3_main_2 -> ipu */
2779 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2780 .master = &omap44xx_l3_main_2_hwmod,
2781 .slave = &omap44xx_ipu_hwmod,
2783 .user = OCP_USER_MPU | OCP_USER_SDMA,
2786 /* l3_main_2 -> iss */
2787 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2788 .master = &omap44xx_l3_main_2_hwmod,
2789 .slave = &omap44xx_iss_hwmod,
2791 .user = OCP_USER_MPU | OCP_USER_SDMA,
2795 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
2796 .master = &omap44xx_iva_hwmod,
2797 .slave = &omap44xx_sl2if_hwmod,
2798 .clk = "dpll_iva_m5x2_ck",
2799 .user = OCP_USER_IVA,
2802 /* l3_main_2 -> iva */
2803 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2804 .master = &omap44xx_l3_main_2_hwmod,
2805 .slave = &omap44xx_iva_hwmod,
2807 .user = OCP_USER_MPU,
2810 /* l4_wkup -> kbd */
2811 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2812 .master = &omap44xx_l4_wkup_hwmod,
2813 .slave = &omap44xx_kbd_hwmod,
2814 .clk = "l4_wkup_clk_mux_ck",
2815 .user = OCP_USER_MPU | OCP_USER_SDMA,
2818 /* l4_abe -> mcasp */
2819 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
2820 .master = &omap44xx_l4_abe_hwmod,
2821 .slave = &omap44xx_mcasp_hwmod,
2822 .clk = "ocp_abe_iclk",
2823 .user = OCP_USER_MPU,
2826 /* l4_abe -> mcasp (dma) */
2827 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
2828 .master = &omap44xx_l4_abe_hwmod,
2829 .slave = &omap44xx_mcasp_hwmod,
2830 .clk = "ocp_abe_iclk",
2831 .user = OCP_USER_SDMA,
2834 /* l4_abe -> mcpdm */
2835 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
2836 .master = &omap44xx_l4_abe_hwmod,
2837 .slave = &omap44xx_mcpdm_hwmod,
2838 .clk = "ocp_abe_iclk",
2839 .user = OCP_USER_MPU | OCP_USER_SDMA,
2842 /* l3_main_2 -> ocmc_ram */
2843 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
2844 .master = &omap44xx_l3_main_2_hwmod,
2845 .slave = &omap44xx_ocmc_ram_hwmod,
2847 .user = OCP_USER_MPU | OCP_USER_SDMA,
2850 /* l4_cfg -> ocp2scp_usb_phy */
2851 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
2852 .master = &omap44xx_l4_cfg_hwmod,
2853 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
2855 .user = OCP_USER_MPU | OCP_USER_SDMA,
2858 /* mpu_private -> prcm_mpu */
2859 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
2860 .master = &omap44xx_mpu_private_hwmod,
2861 .slave = &omap44xx_prcm_mpu_hwmod,
2863 .user = OCP_USER_MPU | OCP_USER_SDMA,
2866 /* l4_wkup -> cm_core_aon */
2867 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
2868 .master = &omap44xx_l4_wkup_hwmod,
2869 .slave = &omap44xx_cm_core_aon_hwmod,
2870 .clk = "l4_wkup_clk_mux_ck",
2871 .user = OCP_USER_MPU | OCP_USER_SDMA,
2874 /* l4_cfg -> cm_core */
2875 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
2876 .master = &omap44xx_l4_cfg_hwmod,
2877 .slave = &omap44xx_cm_core_hwmod,
2879 .user = OCP_USER_MPU | OCP_USER_SDMA,
2882 /* l4_wkup -> prm */
2883 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
2884 .master = &omap44xx_l4_wkup_hwmod,
2885 .slave = &omap44xx_prm_hwmod,
2886 .clk = "l4_wkup_clk_mux_ck",
2887 .user = OCP_USER_MPU | OCP_USER_SDMA,
2890 /* l4_wkup -> scrm */
2891 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
2892 .master = &omap44xx_l4_wkup_hwmod,
2893 .slave = &omap44xx_scrm_hwmod,
2894 .clk = "l4_wkup_clk_mux_ck",
2895 .user = OCP_USER_MPU | OCP_USER_SDMA,
2898 /* l3_main_2 -> sl2if */
2899 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
2900 .master = &omap44xx_l3_main_2_hwmod,
2901 .slave = &omap44xx_sl2if_hwmod,
2903 .user = OCP_USER_MPU | OCP_USER_SDMA,
2906 /* l4_abe -> slimbus1 */
2907 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
2908 .master = &omap44xx_l4_abe_hwmod,
2909 .slave = &omap44xx_slimbus1_hwmod,
2910 .clk = "ocp_abe_iclk",
2911 .user = OCP_USER_MPU,
2914 /* l4_abe -> slimbus1 (dma) */
2915 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
2916 .master = &omap44xx_l4_abe_hwmod,
2917 .slave = &omap44xx_slimbus1_hwmod,
2918 .clk = "ocp_abe_iclk",
2919 .user = OCP_USER_SDMA,
2922 /* l4_per -> slimbus2 */
2923 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
2924 .master = &omap44xx_l4_per_hwmod,
2925 .slave = &omap44xx_slimbus2_hwmod,
2927 .user = OCP_USER_MPU | OCP_USER_SDMA,
2930 /* l4_cfg -> smartreflex_core */
2931 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
2932 .master = &omap44xx_l4_cfg_hwmod,
2933 .slave = &omap44xx_smartreflex_core_hwmod,
2935 .user = OCP_USER_MPU | OCP_USER_SDMA,
2938 /* l4_cfg -> smartreflex_iva */
2939 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
2940 .master = &omap44xx_l4_cfg_hwmod,
2941 .slave = &omap44xx_smartreflex_iva_hwmod,
2943 .user = OCP_USER_MPU | OCP_USER_SDMA,
2946 /* l4_cfg -> smartreflex_mpu */
2947 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
2948 .master = &omap44xx_l4_cfg_hwmod,
2949 .slave = &omap44xx_smartreflex_mpu_hwmod,
2951 .user = OCP_USER_MPU | OCP_USER_SDMA,
2954 /* l4_cfg -> spinlock */
2955 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
2956 .master = &omap44xx_l4_cfg_hwmod,
2957 .slave = &omap44xx_spinlock_hwmod,
2959 .user = OCP_USER_MPU | OCP_USER_SDMA,
2962 /* l4_wkup -> timer1 */
2963 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
2964 .master = &omap44xx_l4_wkup_hwmod,
2965 .slave = &omap44xx_timer1_hwmod,
2966 .clk = "l4_wkup_clk_mux_ck",
2967 .user = OCP_USER_MPU | OCP_USER_SDMA,
2970 /* l4_per -> timer2 */
2971 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
2972 .master = &omap44xx_l4_per_hwmod,
2973 .slave = &omap44xx_timer2_hwmod,
2975 .user = OCP_USER_MPU | OCP_USER_SDMA,
2978 /* l4_per -> timer3 */
2979 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
2980 .master = &omap44xx_l4_per_hwmod,
2981 .slave = &omap44xx_timer3_hwmod,
2983 .user = OCP_USER_MPU | OCP_USER_SDMA,
2986 /* l4_per -> timer4 */
2987 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
2988 .master = &omap44xx_l4_per_hwmod,
2989 .slave = &omap44xx_timer4_hwmod,
2991 .user = OCP_USER_MPU | OCP_USER_SDMA,
2994 /* l4_abe -> timer5 */
2995 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
2996 .master = &omap44xx_l4_abe_hwmod,
2997 .slave = &omap44xx_timer5_hwmod,
2998 .clk = "ocp_abe_iclk",
2999 .user = OCP_USER_MPU | OCP_USER_SDMA,
3002 /* l4_abe -> timer6 */
3003 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
3004 .master = &omap44xx_l4_abe_hwmod,
3005 .slave = &omap44xx_timer6_hwmod,
3006 .clk = "ocp_abe_iclk",
3007 .user = OCP_USER_MPU | OCP_USER_SDMA,
3010 /* l4_abe -> timer7 */
3011 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
3012 .master = &omap44xx_l4_abe_hwmod,
3013 .slave = &omap44xx_timer7_hwmod,
3014 .clk = "ocp_abe_iclk",
3015 .user = OCP_USER_MPU | OCP_USER_SDMA,
3018 /* l4_abe -> timer8 */
3019 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
3020 .master = &omap44xx_l4_abe_hwmod,
3021 .slave = &omap44xx_timer8_hwmod,
3022 .clk = "ocp_abe_iclk",
3023 .user = OCP_USER_MPU | OCP_USER_SDMA,
3026 /* l4_per -> timer9 */
3027 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
3028 .master = &omap44xx_l4_per_hwmod,
3029 .slave = &omap44xx_timer9_hwmod,
3031 .user = OCP_USER_MPU | OCP_USER_SDMA,
3034 /* l4_per -> timer10 */
3035 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
3036 .master = &omap44xx_l4_per_hwmod,
3037 .slave = &omap44xx_timer10_hwmod,
3039 .user = OCP_USER_MPU | OCP_USER_SDMA,
3042 /* l4_per -> timer11 */
3043 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
3044 .master = &omap44xx_l4_per_hwmod,
3045 .slave = &omap44xx_timer11_hwmod,
3047 .user = OCP_USER_MPU | OCP_USER_SDMA,
3050 /* l4_cfg -> usb_host_fs */
3051 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
3052 .master = &omap44xx_l4_cfg_hwmod,
3053 .slave = &omap44xx_usb_host_fs_hwmod,
3055 .user = OCP_USER_MPU | OCP_USER_SDMA,
3058 /* l4_cfg -> usb_host_hs */
3059 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
3060 .master = &omap44xx_l4_cfg_hwmod,
3061 .slave = &omap44xx_usb_host_hs_hwmod,
3063 .user = OCP_USER_MPU | OCP_USER_SDMA,
3066 /* l4_cfg -> usb_otg_hs */
3067 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
3068 .master = &omap44xx_l4_cfg_hwmod,
3069 .slave = &omap44xx_usb_otg_hs_hwmod,
3071 .user = OCP_USER_MPU | OCP_USER_SDMA,
3074 /* l4_cfg -> usb_tll_hs */
3075 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
3076 .master = &omap44xx_l4_cfg_hwmod,
3077 .slave = &omap44xx_usb_tll_hs_hwmod,
3079 .user = OCP_USER_MPU | OCP_USER_SDMA,
3083 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
3084 .master = &omap44xx_mpu_hwmod,
3085 .slave = &omap44xx_emif1_hwmod,
3087 .user = OCP_USER_MPU | OCP_USER_SDMA,
3091 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
3092 .master = &omap44xx_mpu_hwmod,
3093 .slave = &omap44xx_emif2_hwmod,
3095 .user = OCP_USER_MPU | OCP_USER_SDMA,
3098 static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
3099 &omap44xx_l3_main_1__dmm,
3101 &omap44xx_iva__l3_instr,
3102 &omap44xx_l3_main_3__l3_instr,
3103 &omap44xx_ocp_wp_noc__l3_instr,
3104 &omap44xx_dsp__l3_main_1,
3105 &omap44xx_dss__l3_main_1,
3106 &omap44xx_l3_main_2__l3_main_1,
3107 &omap44xx_l4_cfg__l3_main_1,
3108 &omap44xx_mpu__l3_main_1,
3109 &omap44xx_debugss__l3_main_2,
3110 &omap44xx_dma_system__l3_main_2,
3111 &omap44xx_fdif__l3_main_2,
3112 &omap44xx_hsi__l3_main_2,
3113 &omap44xx_ipu__l3_main_2,
3114 &omap44xx_iss__l3_main_2,
3115 &omap44xx_iva__l3_main_2,
3116 &omap44xx_l3_main_1__l3_main_2,
3117 &omap44xx_l4_cfg__l3_main_2,
3118 /* &omap44xx_usb_host_fs__l3_main_2, */
3119 &omap44xx_usb_host_hs__l3_main_2,
3120 &omap44xx_usb_otg_hs__l3_main_2,
3121 &omap44xx_l3_main_1__l3_main_3,
3122 &omap44xx_l3_main_2__l3_main_3,
3123 &omap44xx_l4_cfg__l3_main_3,
3124 &omap44xx_aess__l4_abe,
3125 &omap44xx_dsp__l4_abe,
3126 &omap44xx_l3_main_1__l4_abe,
3127 &omap44xx_mpu__l4_abe,
3128 &omap44xx_l3_main_1__l4_cfg,
3129 &omap44xx_l3_main_2__l4_per,
3130 &omap44xx_l4_cfg__l4_wkup,
3131 &omap44xx_mpu__mpu_private,
3132 &omap44xx_l4_cfg__ocp_wp_noc,
3133 &omap44xx_l4_abe__aess,
3134 &omap44xx_l4_abe__aess_dma,
3135 &omap44xx_l4_wkup__counter_32k,
3136 &omap44xx_l4_cfg__ctrl_module_core,
3137 &omap44xx_l4_cfg__ctrl_module_pad_core,
3138 &omap44xx_l4_wkup__ctrl_module_wkup,
3139 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
3140 &omap44xx_l3_instr__debugss,
3141 &omap44xx_l4_cfg__dma_system,
3142 &omap44xx_l4_abe__dmic,
3144 /* &omap44xx_dsp__sl2if, */
3145 &omap44xx_l4_cfg__dsp,
3146 &omap44xx_l3_main_2__dss,
3147 &omap44xx_l4_per__dss,
3148 &omap44xx_l3_main_2__dss_dispc,
3149 &omap44xx_l4_per__dss_dispc,
3150 &omap44xx_l3_main_2__dss_dsi1,
3151 &omap44xx_l4_per__dss_dsi1,
3152 &omap44xx_l3_main_2__dss_dsi2,
3153 &omap44xx_l4_per__dss_dsi2,
3154 &omap44xx_l3_main_2__dss_hdmi,
3155 &omap44xx_l4_per__dss_hdmi,
3156 &omap44xx_l3_main_2__dss_rfbi,
3157 &omap44xx_l4_per__dss_rfbi,
3158 &omap44xx_l3_main_2__dss_venc,
3159 &omap44xx_l4_per__dss_venc,
3160 &omap44xx_l4_per__elm,
3161 &omap44xx_l4_cfg__fdif,
3162 &omap44xx_l3_main_2__gpmc,
3163 &omap44xx_l4_per__hdq1w,
3164 &omap44xx_l4_cfg__hsi,
3165 &omap44xx_l3_main_2__ipu,
3166 &omap44xx_l3_main_2__iss,
3167 /* &omap44xx_iva__sl2if, */
3168 &omap44xx_l3_main_2__iva,
3169 &omap44xx_l4_wkup__kbd,
3170 &omap44xx_l4_abe__mcasp,
3171 &omap44xx_l4_abe__mcasp_dma,
3172 &omap44xx_l4_abe__mcpdm,
3173 &omap44xx_l3_main_2__mmu_ipu,
3174 &omap44xx_l4_cfg__mmu_dsp,
3175 &omap44xx_l3_main_2__ocmc_ram,
3176 &omap44xx_l4_cfg__ocp2scp_usb_phy,
3177 &omap44xx_mpu_private__prcm_mpu,
3178 &omap44xx_l4_wkup__cm_core_aon,
3179 &omap44xx_l4_cfg__cm_core,
3180 &omap44xx_l4_wkup__prm,
3181 &omap44xx_l4_wkup__scrm,
3182 /* &omap44xx_l3_main_2__sl2if, */
3183 &omap44xx_l4_abe__slimbus1,
3184 &omap44xx_l4_abe__slimbus1_dma,
3185 &omap44xx_l4_per__slimbus2,
3186 &omap44xx_l4_cfg__smartreflex_core,
3187 &omap44xx_l4_cfg__smartreflex_iva,
3188 &omap44xx_l4_cfg__smartreflex_mpu,
3189 &omap44xx_l4_cfg__spinlock,
3190 &omap44xx_l4_wkup__timer1,
3191 &omap44xx_l4_per__timer2,
3192 &omap44xx_l4_per__timer3,
3193 &omap44xx_l4_per__timer4,
3194 &omap44xx_l4_abe__timer5,
3195 &omap44xx_l4_abe__timer6,
3196 &omap44xx_l4_abe__timer7,
3197 &omap44xx_l4_abe__timer8,
3198 &omap44xx_l4_per__timer9,
3199 &omap44xx_l4_per__timer10,
3200 &omap44xx_l4_per__timer11,
3201 /* &omap44xx_l4_cfg__usb_host_fs, */
3202 &omap44xx_l4_cfg__usb_host_hs,
3203 &omap44xx_l4_cfg__usb_otg_hs,
3204 &omap44xx_l4_cfg__usb_tll_hs,
3205 &omap44xx_mpu__emif1,
3206 &omap44xx_mpu__emif2,
3207 &omap44xx_l3_main_2__aes1,
3208 &omap44xx_l3_main_2__aes2,
3209 &omap44xx_l3_main_2__des,
3210 &omap44xx_l3_main_2__sha0,
3214 int __init omap44xx_hwmod_init(void)
3217 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);