2 * Hardware modules present on the DRA7xx chips
4 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
9 * This file is automatically generated from the OMAP hardware databases.
10 * We respectfully ask that any modifications to this file be coordinated
11 * with the public linux-omap@vger.kernel.org mailing list and the
12 * authors above to ensure that the autogeneration scripts are kept
13 * up-to-date with the file contents.
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License version 2 as
17 * published by the Free Software Foundation.
21 #include <linux/platform_data/gpio-omap.h>
22 #include <linux/platform_data/hsmmc-omap.h>
23 #include <linux/power/smartreflex.h>
24 #include <linux/i2c-omap.h>
26 #include <linux/omap-dma.h>
27 #include <linux/platform_data/spi-omap2-mcspi.h>
28 #include <linux/platform_data/asoc-ti-mcbsp.h>
29 #include <plat/dmtimer.h>
31 #include "omap_hwmod.h"
32 #include "omap_hwmod_common_data.h"
40 /* Base offset for all DRA7XX interrupts external to MPUSS */
41 #define DRA7XX_IRQ_GIC_START 32
43 /* Base offset for all DRA7XX dma requests */
44 #define DRA7XX_DMA_REQ_START 1
55 static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
60 static struct omap_hwmod dra7xx_dmm_hwmod = {
62 .class = &dra7xx_dmm_hwmod_class,
63 .clkdm_name = "emif_clkdm",
66 .clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
67 .context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
74 * instance(s): l3_instr, l3_main_1, l3_main_2
76 static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
81 static struct omap_hwmod dra7xx_l3_instr_hwmod = {
83 .class = &dra7xx_l3_hwmod_class,
84 .clkdm_name = "l3instr_clkdm",
87 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
88 .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
89 .modulemode = MODULEMODE_HWCTRL,
95 static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
97 .class = &dra7xx_l3_hwmod_class,
98 .clkdm_name = "l3main1_clkdm",
101 .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
102 .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
108 static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
110 .class = &dra7xx_l3_hwmod_class,
111 .clkdm_name = "l3instr_clkdm",
114 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
115 .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
116 .modulemode = MODULEMODE_HWCTRL,
123 * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
125 static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
130 static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
132 .class = &dra7xx_l4_hwmod_class,
133 .clkdm_name = "l4cfg_clkdm",
136 .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
137 .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
143 static struct omap_hwmod dra7xx_l4_per1_hwmod = {
145 .class = &dra7xx_l4_hwmod_class,
146 .clkdm_name = "l4per_clkdm",
149 .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
150 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
156 static struct omap_hwmod dra7xx_l4_per2_hwmod = {
158 .class = &dra7xx_l4_hwmod_class,
159 .clkdm_name = "l4per2_clkdm",
162 .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
163 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
169 static struct omap_hwmod dra7xx_l4_per3_hwmod = {
171 .class = &dra7xx_l4_hwmod_class,
172 .clkdm_name = "l4per3_clkdm",
175 .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
176 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
182 static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
184 .class = &dra7xx_l4_hwmod_class,
185 .clkdm_name = "wkupaon_clkdm",
188 .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
189 .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
199 static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
204 static struct omap_hwmod dra7xx_atl_hwmod = {
206 .class = &dra7xx_atl_hwmod_class,
207 .clkdm_name = "atl_clkdm",
208 .main_clk = "atl_gfclk_mux",
211 .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
212 .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
213 .modulemode = MODULEMODE_SWCTRL,
223 static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
228 static struct omap_hwmod dra7xx_bb2d_hwmod = {
230 .class = &dra7xx_bb2d_hwmod_class,
231 .clkdm_name = "dss_clkdm",
232 .main_clk = "dpll_core_h24x2_ck",
235 .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
236 .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
237 .modulemode = MODULEMODE_SWCTRL,
247 static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
250 .sysc_flags = SYSC_HAS_SIDLEMODE,
251 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
253 .sysc_fields = &omap_hwmod_sysc_type1,
256 static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
258 .sysc = &dra7xx_counter_sysc,
262 static struct omap_hwmod dra7xx_counter_32k_hwmod = {
263 .name = "counter_32k",
264 .class = &dra7xx_counter_hwmod_class,
265 .clkdm_name = "wkupaon_clkdm",
266 .flags = HWMOD_SWSUP_SIDLE,
267 .main_clk = "wkupaon_iclk_mux",
270 .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
271 .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
277 * 'ctrl_module' class
281 static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
282 .name = "ctrl_module",
285 /* ctrl_module_wkup */
286 static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
287 .name = "ctrl_module_wkup",
288 .class = &dra7xx_ctrl_module_hwmod_class,
289 .clkdm_name = "wkupaon_clkdm",
292 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
299 * cpsw/gmac sub system
301 static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = {
305 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
306 SYSS_HAS_RESET_STATUS),
307 .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
309 .sysc_fields = &omap_hwmod_sysc_type3,
312 static struct omap_hwmod_class dra7xx_gmac_hwmod_class = {
314 .sysc = &dra7xx_gmac_sysc,
317 static struct omap_hwmod dra7xx_gmac_hwmod = {
319 .class = &dra7xx_gmac_hwmod_class,
320 .clkdm_name = "gmac_clkdm",
321 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
322 .main_clk = "dpll_gmac_ck",
326 .clkctrl_offs = DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET,
327 .context_offs = DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET,
328 .modulemode = MODULEMODE_SWCTRL,
336 static struct omap_hwmod_class dra7xx_mdio_hwmod_class = {
337 .name = "davinci_mdio",
340 static struct omap_hwmod dra7xx_mdio_hwmod = {
341 .name = "davinci_mdio",
342 .class = &dra7xx_mdio_hwmod_class,
343 .clkdm_name = "gmac_clkdm",
344 .main_clk = "dpll_gmac_ck",
352 static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
357 static struct omap_hwmod dra7xx_dcan1_hwmod = {
359 .class = &dra7xx_dcan_hwmod_class,
360 .clkdm_name = "wkupaon_clkdm",
361 .main_clk = "dcan1_sys_clk_mux",
362 .flags = HWMOD_CLKDM_NOAUTO,
365 .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
366 .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
367 .modulemode = MODULEMODE_SWCTRL,
373 static struct omap_hwmod dra7xx_dcan2_hwmod = {
375 .class = &dra7xx_dcan_hwmod_class,
376 .clkdm_name = "l4per2_clkdm",
377 .main_clk = "sys_clkin1",
378 .flags = HWMOD_CLKDM_NOAUTO,
381 .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
382 .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
383 .modulemode = MODULEMODE_SWCTRL,
389 static struct omap_hwmod_class_sysconfig dra7xx_epwmss_sysc = {
392 .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET,
393 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
394 .sysc_fields = &omap_hwmod_sysc_type2,
400 static struct omap_hwmod_class dra7xx_epwmss_hwmod_class = {
402 .sysc = &dra7xx_epwmss_sysc,
406 static struct omap_hwmod dra7xx_epwmss0_hwmod = {
408 .class = &dra7xx_epwmss_hwmod_class,
409 .clkdm_name = "l4per2_clkdm",
410 .main_clk = "l4_root_clk_div",
413 .modulemode = MODULEMODE_SWCTRL,
414 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET,
415 .context_offs = DRA7XX_RM_L4PER2_PWMSS1_CONTEXT_OFFSET,
421 static struct omap_hwmod dra7xx_epwmss1_hwmod = {
423 .class = &dra7xx_epwmss_hwmod_class,
424 .clkdm_name = "l4per2_clkdm",
425 .main_clk = "l4_root_clk_div",
428 .modulemode = MODULEMODE_SWCTRL,
429 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET,
430 .context_offs = DRA7XX_RM_L4PER2_PWMSS2_CONTEXT_OFFSET,
436 static struct omap_hwmod dra7xx_epwmss2_hwmod = {
438 .class = &dra7xx_epwmss_hwmod_class,
439 .clkdm_name = "l4per2_clkdm",
440 .main_clk = "l4_root_clk_div",
443 .modulemode = MODULEMODE_SWCTRL,
444 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET,
445 .context_offs = DRA7XX_RM_L4PER2_PWMSS3_CONTEXT_OFFSET,
455 static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
459 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
460 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
461 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
462 SYSS_HAS_RESET_STATUS),
463 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
464 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
465 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
466 .sysc_fields = &omap_hwmod_sysc_type1,
469 static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
471 .sysc = &dra7xx_dma_sysc,
475 static struct omap_dma_dev_attr dma_dev_attr = {
476 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
477 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
482 static struct omap_hwmod dra7xx_dma_system_hwmod = {
483 .name = "dma_system",
484 .class = &dra7xx_dma_hwmod_class,
485 .clkdm_name = "dma_clkdm",
486 .main_clk = "l3_iclk_div",
489 .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
490 .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
493 .dev_attr = &dma_dev_attr,
500 static struct omap_hwmod_class dra7xx_tpcc_hwmod_class = {
504 static struct omap_hwmod dra7xx_tpcc_hwmod = {
506 .class = &dra7xx_tpcc_hwmod_class,
507 .clkdm_name = "l3main1_clkdm",
508 .main_clk = "l3_iclk_div",
511 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL_OFFSET,
512 .context_offs = DRA7XX_RM_L3MAIN1_TPCC_CONTEXT_OFFSET,
521 static struct omap_hwmod_class dra7xx_tptc_hwmod_class = {
526 static struct omap_hwmod dra7xx_tptc0_hwmod = {
528 .class = &dra7xx_tptc_hwmod_class,
529 .clkdm_name = "l3main1_clkdm",
530 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
531 .main_clk = "l3_iclk_div",
534 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL_OFFSET,
535 .context_offs = DRA7XX_RM_L3MAIN1_TPTC1_CONTEXT_OFFSET,
536 .modulemode = MODULEMODE_HWCTRL,
542 static struct omap_hwmod dra7xx_tptc1_hwmod = {
544 .class = &dra7xx_tptc_hwmod_class,
545 .clkdm_name = "l3main1_clkdm",
546 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
547 .main_clk = "l3_iclk_div",
550 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL_OFFSET,
551 .context_offs = DRA7XX_RM_L3MAIN1_TPTC2_CONTEXT_OFFSET,
552 .modulemode = MODULEMODE_HWCTRL,
562 static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
565 .sysc_flags = SYSS_HAS_RESET_STATUS,
568 static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
570 .sysc = &dra7xx_dss_sysc,
571 .reset = omap_dss_reset,
575 static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
576 { .dma_req = 75 + DRA7XX_DMA_REQ_START },
580 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
581 { .role = "dss_clk", .clk = "dss_dss_clk" },
582 { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
583 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
584 { .role = "video2_clk", .clk = "dss_video2_clk" },
585 { .role = "video1_clk", .clk = "dss_video1_clk" },
586 { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
587 { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
590 static struct omap_hwmod dra7xx_dss_hwmod = {
592 .class = &dra7xx_dss_hwmod_class,
593 .clkdm_name = "dss_clkdm",
594 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
595 .sdma_reqs = dra7xx_dss_sdma_reqs,
596 .main_clk = "dss_dss_clk",
599 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
600 .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
601 .modulemode = MODULEMODE_SWCTRL,
604 .opt_clks = dss_opt_clks,
605 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
613 static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
617 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
618 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
619 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
620 SYSS_HAS_RESET_STATUS),
621 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
622 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
623 .sysc_fields = &omap_hwmod_sysc_type1,
626 static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
628 .sysc = &dra7xx_dispc_sysc,
632 /* dss_dispc dev_attr */
633 static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
634 .has_framedonetv_irq = 1,
638 static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
640 .class = &dra7xx_dispc_hwmod_class,
641 .clkdm_name = "dss_clkdm",
642 .main_clk = "dss_dss_clk",
645 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
646 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
649 .dev_attr = &dss_dispc_dev_attr,
650 .parent_hwmod = &dra7xx_dss_hwmod,
658 static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
661 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
663 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
665 .sysc_fields = &omap_hwmod_sysc_type2,
668 static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
670 .sysc = &dra7xx_hdmi_sysc,
675 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
676 { .role = "sys_clk", .clk = "dss_hdmi_clk" },
679 static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
681 .class = &dra7xx_hdmi_hwmod_class,
682 .clkdm_name = "dss_clkdm",
683 .main_clk = "dss_48mhz_clk",
686 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
687 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
690 .opt_clks = dss_hdmi_opt_clks,
691 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
692 .parent_hwmod = &dra7xx_dss_hwmod,
695 /* AES (the 'P' (public) device) */
696 static struct omap_hwmod_class_sysconfig dra7xx_aes_sysc = {
700 .sysc_flags = SYSS_HAS_RESET_STATUS,
703 static struct omap_hwmod_class dra7xx_aes_hwmod_class = {
705 .sysc = &dra7xx_aes_sysc,
710 static struct omap_hwmod dra7xx_aes1_hwmod = {
712 .class = &dra7xx_aes_hwmod_class,
713 .clkdm_name = "l4sec_clkdm",
714 .main_clk = "l3_iclk_div",
717 .clkctrl_offs = DRA7XX_CM_L4SEC_AES1_CLKCTRL_OFFSET,
718 .context_offs = DRA7XX_RM_L4SEC_AES1_CONTEXT_OFFSET,
719 .modulemode = MODULEMODE_HWCTRL,
725 static struct omap_hwmod dra7xx_aes2_hwmod = {
727 .class = &dra7xx_aes_hwmod_class,
728 .clkdm_name = "l4sec_clkdm",
729 .main_clk = "l3_iclk_div",
732 .clkctrl_offs = DRA7XX_CM_L4SEC_AES2_CLKCTRL_OFFSET,
733 .context_offs = DRA7XX_RM_L4SEC_AES2_CONTEXT_OFFSET,
734 .modulemode = MODULEMODE_HWCTRL,
739 /* sha0 HIB2 (the 'P' (public) device) */
740 static struct omap_hwmod_class_sysconfig dra7xx_sha0_sysc = {
744 .sysc_flags = SYSS_HAS_RESET_STATUS,
747 static struct omap_hwmod_class dra7xx_sha0_hwmod_class = {
749 .sysc = &dra7xx_sha0_sysc,
753 struct omap_hwmod dra7xx_sha0_hwmod = {
755 .class = &dra7xx_sha0_hwmod_class,
756 .clkdm_name = "l4sec_clkdm",
757 .main_clk = "l3_iclk_div",
760 .clkctrl_offs = DRA7XX_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
761 .context_offs = DRA7XX_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
762 .modulemode = MODULEMODE_HWCTRL,
772 static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
776 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
777 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
778 SYSS_HAS_RESET_STATUS),
779 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
781 .sysc_fields = &omap_hwmod_sysc_type1,
784 static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
786 .sysc = &dra7xx_elm_sysc,
791 static struct omap_hwmod dra7xx_elm_hwmod = {
793 .class = &dra7xx_elm_hwmod_class,
794 .clkdm_name = "l4per_clkdm",
795 .main_clk = "l3_iclk_div",
798 .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
799 .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
809 static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
813 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
814 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
815 SYSS_HAS_RESET_STATUS),
816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
818 .sysc_fields = &omap_hwmod_sysc_type1,
821 static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
823 .sysc = &dra7xx_gpio_sysc,
828 static struct omap_gpio_dev_attr gpio_dev_attr = {
834 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
835 { .role = "dbclk", .clk = "gpio1_dbclk" },
838 static struct omap_hwmod dra7xx_gpio1_hwmod = {
840 .class = &dra7xx_gpio_hwmod_class,
841 .clkdm_name = "wkupaon_clkdm",
842 .main_clk = "wkupaon_iclk_mux",
845 .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
846 .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
847 .modulemode = MODULEMODE_HWCTRL,
850 .opt_clks = gpio1_opt_clks,
851 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
852 .dev_attr = &gpio_dev_attr,
856 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
857 { .role = "dbclk", .clk = "gpio2_dbclk" },
860 static struct omap_hwmod dra7xx_gpio2_hwmod = {
862 .class = &dra7xx_gpio_hwmod_class,
863 .clkdm_name = "l4per_clkdm",
864 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
865 .main_clk = "l3_iclk_div",
868 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
869 .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
870 .modulemode = MODULEMODE_HWCTRL,
873 .opt_clks = gpio2_opt_clks,
874 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
875 .dev_attr = &gpio_dev_attr,
879 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
880 { .role = "dbclk", .clk = "gpio3_dbclk" },
883 static struct omap_hwmod dra7xx_gpio3_hwmod = {
885 .class = &dra7xx_gpio_hwmod_class,
886 .clkdm_name = "l4per_clkdm",
887 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
888 .main_clk = "l3_iclk_div",
891 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
892 .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
893 .modulemode = MODULEMODE_HWCTRL,
896 .opt_clks = gpio3_opt_clks,
897 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
898 .dev_attr = &gpio_dev_attr,
902 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
903 { .role = "dbclk", .clk = "gpio4_dbclk" },
906 static struct omap_hwmod dra7xx_gpio4_hwmod = {
908 .class = &dra7xx_gpio_hwmod_class,
909 .clkdm_name = "l4per_clkdm",
910 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
911 .main_clk = "l3_iclk_div",
914 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
915 .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
916 .modulemode = MODULEMODE_HWCTRL,
919 .opt_clks = gpio4_opt_clks,
920 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
921 .dev_attr = &gpio_dev_attr,
925 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
926 { .role = "dbclk", .clk = "gpio5_dbclk" },
929 static struct omap_hwmod dra7xx_gpio5_hwmod = {
931 .class = &dra7xx_gpio_hwmod_class,
932 .clkdm_name = "l4per_clkdm",
933 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
934 .main_clk = "l3_iclk_div",
937 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
938 .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
939 .modulemode = MODULEMODE_HWCTRL,
942 .opt_clks = gpio5_opt_clks,
943 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
944 .dev_attr = &gpio_dev_attr,
948 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
949 { .role = "dbclk", .clk = "gpio6_dbclk" },
952 static struct omap_hwmod dra7xx_gpio6_hwmod = {
954 .class = &dra7xx_gpio_hwmod_class,
955 .clkdm_name = "l4per_clkdm",
956 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
957 .main_clk = "l3_iclk_div",
960 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
961 .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
962 .modulemode = MODULEMODE_HWCTRL,
965 .opt_clks = gpio6_opt_clks,
966 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
967 .dev_attr = &gpio_dev_attr,
971 static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
972 { .role = "dbclk", .clk = "gpio7_dbclk" },
975 static struct omap_hwmod dra7xx_gpio7_hwmod = {
977 .class = &dra7xx_gpio_hwmod_class,
978 .clkdm_name = "l4per_clkdm",
979 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
980 .main_clk = "l3_iclk_div",
983 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
984 .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
985 .modulemode = MODULEMODE_HWCTRL,
988 .opt_clks = gpio7_opt_clks,
989 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
990 .dev_attr = &gpio_dev_attr,
994 static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
995 { .role = "dbclk", .clk = "gpio8_dbclk" },
998 static struct omap_hwmod dra7xx_gpio8_hwmod = {
1000 .class = &dra7xx_gpio_hwmod_class,
1001 .clkdm_name = "l4per_clkdm",
1002 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1003 .main_clk = "l3_iclk_div",
1006 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
1007 .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
1008 .modulemode = MODULEMODE_HWCTRL,
1011 .opt_clks = gpio8_opt_clks,
1012 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
1013 .dev_attr = &gpio_dev_attr,
1021 static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
1023 .sysc_offs = 0x0010,
1024 .syss_offs = 0x0014,
1025 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1026 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1028 .sysc_fields = &omap_hwmod_sysc_type1,
1031 static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
1033 .sysc = &dra7xx_gpmc_sysc,
1038 static struct omap_hwmod dra7xx_gpmc_hwmod = {
1040 .class = &dra7xx_gpmc_hwmod_class,
1041 .clkdm_name = "l3main1_clkdm",
1042 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1043 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1044 .main_clk = "l3_iclk_div",
1047 .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
1048 .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
1049 .modulemode = MODULEMODE_HWCTRL,
1059 static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
1061 .sysc_offs = 0x0014,
1062 .syss_offs = 0x0018,
1063 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1064 SYSS_HAS_RESET_STATUS),
1065 .sysc_fields = &omap_hwmod_sysc_type1,
1068 static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
1070 .sysc = &dra7xx_hdq1w_sysc,
1075 static struct omap_hwmod dra7xx_hdq1w_hwmod = {
1077 .class = &dra7xx_hdq1w_hwmod_class,
1078 .clkdm_name = "l4per_clkdm",
1079 .flags = HWMOD_INIT_NO_RESET,
1080 .main_clk = "func_12m_fclk",
1083 .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1084 .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1085 .modulemode = MODULEMODE_SWCTRL,
1095 static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
1096 .sysc_offs = 0x0010,
1097 .syss_offs = 0x0090,
1098 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1099 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1100 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1101 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1103 .sysc_fields = &omap_hwmod_sysc_type1,
1106 static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
1108 .sysc = &dra7xx_i2c_sysc,
1109 .reset = &omap_i2c_reset,
1110 .rev = OMAP_I2C_IP_VERSION_2,
1114 static struct omap_i2c_dev_attr i2c_dev_attr = {
1115 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
1119 static struct omap_hwmod dra7xx_i2c1_hwmod = {
1121 .class = &dra7xx_i2c_hwmod_class,
1122 .clkdm_name = "l4per_clkdm",
1123 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1124 .main_clk = "func_96m_fclk",
1127 .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
1128 .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
1129 .modulemode = MODULEMODE_SWCTRL,
1132 .dev_attr = &i2c_dev_attr,
1136 static struct omap_hwmod dra7xx_i2c2_hwmod = {
1138 .class = &dra7xx_i2c_hwmod_class,
1139 .clkdm_name = "l4per_clkdm",
1140 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1141 .main_clk = "func_96m_fclk",
1144 .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
1145 .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
1146 .modulemode = MODULEMODE_SWCTRL,
1149 .dev_attr = &i2c_dev_attr,
1153 static struct omap_hwmod dra7xx_i2c3_hwmod = {
1155 .class = &dra7xx_i2c_hwmod_class,
1156 .clkdm_name = "l4per_clkdm",
1157 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1158 .main_clk = "func_96m_fclk",
1161 .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
1162 .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
1163 .modulemode = MODULEMODE_SWCTRL,
1166 .dev_attr = &i2c_dev_attr,
1170 static struct omap_hwmod dra7xx_i2c4_hwmod = {
1172 .class = &dra7xx_i2c_hwmod_class,
1173 .clkdm_name = "l4per_clkdm",
1174 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1175 .main_clk = "func_96m_fclk",
1178 .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
1179 .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
1180 .modulemode = MODULEMODE_SWCTRL,
1183 .dev_attr = &i2c_dev_attr,
1187 static struct omap_hwmod dra7xx_i2c5_hwmod = {
1189 .class = &dra7xx_i2c_hwmod_class,
1190 .clkdm_name = "ipu_clkdm",
1191 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1192 .main_clk = "func_96m_fclk",
1195 .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
1196 .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
1197 .modulemode = MODULEMODE_SWCTRL,
1200 .dev_attr = &i2c_dev_attr,
1208 static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
1210 .sysc_offs = 0x0010,
1211 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1212 SYSC_HAS_SOFTRESET),
1213 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1214 .sysc_fields = &omap_hwmod_sysc_type2,
1217 static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
1219 .sysc = &dra7xx_mailbox_sysc,
1223 static struct omap_hwmod dra7xx_mailbox1_hwmod = {
1225 .class = &dra7xx_mailbox_hwmod_class,
1226 .clkdm_name = "l4cfg_clkdm",
1229 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
1230 .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
1236 static struct omap_hwmod dra7xx_mailbox2_hwmod = {
1238 .class = &dra7xx_mailbox_hwmod_class,
1239 .clkdm_name = "l4cfg_clkdm",
1242 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
1243 .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
1249 static struct omap_hwmod dra7xx_mailbox3_hwmod = {
1251 .class = &dra7xx_mailbox_hwmod_class,
1252 .clkdm_name = "l4cfg_clkdm",
1255 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
1256 .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
1262 static struct omap_hwmod dra7xx_mailbox4_hwmod = {
1264 .class = &dra7xx_mailbox_hwmod_class,
1265 .clkdm_name = "l4cfg_clkdm",
1268 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
1269 .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
1275 static struct omap_hwmod dra7xx_mailbox5_hwmod = {
1277 .class = &dra7xx_mailbox_hwmod_class,
1278 .clkdm_name = "l4cfg_clkdm",
1281 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
1282 .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
1288 static struct omap_hwmod dra7xx_mailbox6_hwmod = {
1290 .class = &dra7xx_mailbox_hwmod_class,
1291 .clkdm_name = "l4cfg_clkdm",
1294 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
1295 .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
1301 static struct omap_hwmod dra7xx_mailbox7_hwmod = {
1303 .class = &dra7xx_mailbox_hwmod_class,
1304 .clkdm_name = "l4cfg_clkdm",
1307 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
1308 .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
1314 static struct omap_hwmod dra7xx_mailbox8_hwmod = {
1316 .class = &dra7xx_mailbox_hwmod_class,
1317 .clkdm_name = "l4cfg_clkdm",
1320 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
1321 .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
1327 static struct omap_hwmod dra7xx_mailbox9_hwmod = {
1329 .class = &dra7xx_mailbox_hwmod_class,
1330 .clkdm_name = "l4cfg_clkdm",
1333 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
1334 .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
1340 static struct omap_hwmod dra7xx_mailbox10_hwmod = {
1341 .name = "mailbox10",
1342 .class = &dra7xx_mailbox_hwmod_class,
1343 .clkdm_name = "l4cfg_clkdm",
1346 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
1347 .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
1353 static struct omap_hwmod dra7xx_mailbox11_hwmod = {
1354 .name = "mailbox11",
1355 .class = &dra7xx_mailbox_hwmod_class,
1356 .clkdm_name = "l4cfg_clkdm",
1359 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
1360 .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
1366 static struct omap_hwmod dra7xx_mailbox12_hwmod = {
1367 .name = "mailbox12",
1368 .class = &dra7xx_mailbox_hwmod_class,
1369 .clkdm_name = "l4cfg_clkdm",
1372 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
1373 .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
1379 static struct omap_hwmod dra7xx_mailbox13_hwmod = {
1380 .name = "mailbox13",
1381 .class = &dra7xx_mailbox_hwmod_class,
1382 .clkdm_name = "l4cfg_clkdm",
1385 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
1386 .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
1396 static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
1398 .sysc_offs = 0x0010,
1399 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1400 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1401 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1403 .sysc_fields = &omap_hwmod_sysc_type2,
1406 static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
1408 .sysc = &dra7xx_mcspi_sysc,
1409 .rev = OMAP4_MCSPI_REV,
1413 /* mcspi1 dev_attr */
1414 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1415 .num_chipselect = 4,
1418 static struct omap_hwmod dra7xx_mcspi1_hwmod = {
1420 .class = &dra7xx_mcspi_hwmod_class,
1421 .clkdm_name = "l4per_clkdm",
1422 .main_clk = "func_48m_fclk",
1425 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1426 .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1427 .modulemode = MODULEMODE_SWCTRL,
1430 .dev_attr = &mcspi1_dev_attr,
1434 /* mcspi2 dev_attr */
1435 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1436 .num_chipselect = 2,
1439 static struct omap_hwmod dra7xx_mcspi2_hwmod = {
1441 .class = &dra7xx_mcspi_hwmod_class,
1442 .clkdm_name = "l4per_clkdm",
1443 .main_clk = "func_48m_fclk",
1446 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1447 .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1448 .modulemode = MODULEMODE_SWCTRL,
1451 .dev_attr = &mcspi2_dev_attr,
1455 /* mcspi3 dev_attr */
1456 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1457 .num_chipselect = 2,
1460 static struct omap_hwmod dra7xx_mcspi3_hwmod = {
1462 .class = &dra7xx_mcspi_hwmod_class,
1463 .clkdm_name = "l4per_clkdm",
1464 .main_clk = "func_48m_fclk",
1467 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1468 .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1469 .modulemode = MODULEMODE_SWCTRL,
1472 .dev_attr = &mcspi3_dev_attr,
1476 /* mcspi4 dev_attr */
1477 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1478 .num_chipselect = 1,
1481 static struct omap_hwmod dra7xx_mcspi4_hwmod = {
1483 .class = &dra7xx_mcspi_hwmod_class,
1484 .clkdm_name = "l4per_clkdm",
1485 .main_clk = "func_48m_fclk",
1488 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1489 .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1490 .modulemode = MODULEMODE_SWCTRL,
1493 .dev_attr = &mcspi4_dev_attr,
1500 static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
1501 .sysc_offs = 0x0004,
1502 .sysc_flags = SYSC_HAS_SIDLEMODE,
1503 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1504 .sysc_fields = &omap_hwmod_sysc_type3,
1507 static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
1509 .sysc = &dra7xx_mcasp_sysc,
1513 static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = {
1514 { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" },
1515 { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" },
1518 static struct omap_hwmod dra7xx_mcasp1_hwmod = {
1520 .class = &dra7xx_mcasp_hwmod_class,
1521 .clkdm_name = "ipu_clkdm",
1522 .main_clk = "mcasp1_aux_gfclk_mux",
1523 .flags = HWMOD_OPT_CLKS_NEEDED,
1526 .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET,
1527 .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET,
1528 .modulemode = MODULEMODE_SWCTRL,
1531 .opt_clks = mcasp1_opt_clks,
1532 .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks),
1536 static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = {
1537 { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" },
1538 { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" },
1541 static struct omap_hwmod dra7xx_mcasp2_hwmod = {
1543 .class = &dra7xx_mcasp_hwmod_class,
1544 .clkdm_name = "l4per2_clkdm",
1545 .main_clk = "mcasp2_aux_gfclk_mux",
1546 .flags = HWMOD_OPT_CLKS_NEEDED,
1549 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET,
1550 .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET,
1551 .modulemode = MODULEMODE_SWCTRL,
1554 .opt_clks = mcasp2_opt_clks,
1555 .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks),
1559 static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
1560 { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
1563 static struct omap_hwmod dra7xx_mcasp3_hwmod = {
1565 .class = &dra7xx_mcasp_hwmod_class,
1566 .clkdm_name = "l4per2_clkdm",
1567 .main_clk = "mcasp3_aux_gfclk_mux",
1568 .flags = HWMOD_OPT_CLKS_NEEDED,
1571 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
1572 .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
1573 .modulemode = MODULEMODE_SWCTRL,
1576 .opt_clks = mcasp3_opt_clks,
1577 .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
1581 static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = {
1582 { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" },
1585 static struct omap_hwmod dra7xx_mcasp4_hwmod = {
1587 .class = &dra7xx_mcasp_hwmod_class,
1588 .clkdm_name = "l4per2_clkdm",
1589 .main_clk = "mcasp4_aux_gfclk_mux",
1590 .flags = HWMOD_OPT_CLKS_NEEDED,
1593 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET,
1594 .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET,
1595 .modulemode = MODULEMODE_SWCTRL,
1598 .opt_clks = mcasp4_opt_clks,
1599 .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks),
1603 static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = {
1604 { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" },
1607 static struct omap_hwmod dra7xx_mcasp5_hwmod = {
1609 .class = &dra7xx_mcasp_hwmod_class,
1610 .clkdm_name = "l4per2_clkdm",
1611 .main_clk = "mcasp5_aux_gfclk_mux",
1612 .flags = HWMOD_OPT_CLKS_NEEDED,
1615 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET,
1616 .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET,
1617 .modulemode = MODULEMODE_SWCTRL,
1620 .opt_clks = mcasp5_opt_clks,
1621 .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks),
1625 static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = {
1626 { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" },
1629 static struct omap_hwmod dra7xx_mcasp6_hwmod = {
1631 .class = &dra7xx_mcasp_hwmod_class,
1632 .clkdm_name = "l4per2_clkdm",
1633 .main_clk = "mcasp6_aux_gfclk_mux",
1634 .flags = HWMOD_OPT_CLKS_NEEDED,
1637 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET,
1638 .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET,
1639 .modulemode = MODULEMODE_SWCTRL,
1642 .opt_clks = mcasp6_opt_clks,
1643 .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks),
1647 static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = {
1648 { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" },
1651 static struct omap_hwmod dra7xx_mcasp7_hwmod = {
1653 .class = &dra7xx_mcasp_hwmod_class,
1654 .clkdm_name = "l4per2_clkdm",
1655 .main_clk = "mcasp7_aux_gfclk_mux",
1656 .flags = HWMOD_OPT_CLKS_NEEDED,
1659 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET,
1660 .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET,
1661 .modulemode = MODULEMODE_SWCTRL,
1664 .opt_clks = mcasp7_opt_clks,
1665 .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks),
1669 static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = {
1670 { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" },
1673 static struct omap_hwmod dra7xx_mcasp8_hwmod = {
1675 .class = &dra7xx_mcasp_hwmod_class,
1676 .clkdm_name = "l4per2_clkdm",
1677 .main_clk = "mcasp8_aux_gfclk_mux",
1678 .flags = HWMOD_OPT_CLKS_NEEDED,
1681 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET,
1682 .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET,
1683 .modulemode = MODULEMODE_SWCTRL,
1686 .opt_clks = mcasp8_opt_clks,
1687 .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks),
1695 static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
1697 .sysc_offs = 0x0010,
1698 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1699 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1700 SYSC_HAS_SOFTRESET),
1701 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1702 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1703 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1704 .sysc_fields = &omap_hwmod_sysc_type2,
1707 static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
1709 .sysc = &dra7xx_mmc_sysc,
1713 static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1714 { .role = "clk32k", .clk = "mmc1_clk32k" },
1718 static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
1719 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1722 static struct omap_hwmod dra7xx_mmc1_hwmod = {
1724 .class = &dra7xx_mmc_hwmod_class,
1725 .clkdm_name = "l3init_clkdm",
1726 .main_clk = "mmc1_fclk_div",
1729 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1730 .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1731 .modulemode = MODULEMODE_SWCTRL,
1734 .opt_clks = mmc1_opt_clks,
1735 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1736 .dev_attr = &mmc1_dev_attr,
1740 static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
1741 { .role = "clk32k", .clk = "mmc2_clk32k" },
1744 static struct omap_hwmod dra7xx_mmc2_hwmod = {
1746 .class = &dra7xx_mmc_hwmod_class,
1747 .clkdm_name = "l3init_clkdm",
1748 .main_clk = "mmc2_fclk_div",
1751 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1752 .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1753 .modulemode = MODULEMODE_SWCTRL,
1756 .opt_clks = mmc2_opt_clks,
1757 .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
1761 static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
1762 { .role = "clk32k", .clk = "mmc3_clk32k" },
1765 static struct omap_hwmod dra7xx_mmc3_hwmod = {
1767 .class = &dra7xx_mmc_hwmod_class,
1768 .clkdm_name = "l4per_clkdm",
1769 .main_clk = "mmc3_gfclk_div",
1772 .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1773 .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1774 .modulemode = MODULEMODE_SWCTRL,
1777 .opt_clks = mmc3_opt_clks,
1778 .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
1782 static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
1783 { .role = "clk32k", .clk = "mmc4_clk32k" },
1786 static struct omap_hwmod dra7xx_mmc4_hwmod = {
1788 .class = &dra7xx_mmc_hwmod_class,
1789 .clkdm_name = "l4per_clkdm",
1790 .main_clk = "mmc4_gfclk_div",
1793 .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1794 .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1795 .modulemode = MODULEMODE_SWCTRL,
1798 .opt_clks = mmc4_opt_clks,
1799 .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
1807 static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
1812 static struct omap_hwmod dra7xx_mpu_hwmod = {
1814 .class = &dra7xx_mpu_hwmod_class,
1815 .clkdm_name = "mpu_clkdm",
1816 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1817 .main_clk = "dpll_mpu_m2_ck",
1820 .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1821 .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
1831 static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
1833 .sysc_offs = 0x0010,
1834 .syss_offs = 0x0014,
1835 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1836 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1837 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1838 .sysc_fields = &omap_hwmod_sysc_type1,
1841 static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
1843 .sysc = &dra7xx_ocp2scp_sysc,
1847 static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
1849 .class = &dra7xx_ocp2scp_hwmod_class,
1850 .clkdm_name = "l3init_clkdm",
1851 .main_clk = "l4_root_clk_div",
1854 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1855 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1856 .modulemode = MODULEMODE_HWCTRL,
1862 static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
1864 .class = &dra7xx_ocp2scp_hwmod_class,
1865 .clkdm_name = "l3init_clkdm",
1866 .main_clk = "l4_root_clk_div",
1869 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
1870 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
1871 .modulemode = MODULEMODE_HWCTRL,
1882 * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
1883 * functionality of OMAP HWMOD layer does not deassert the hardreset lines
1884 * associated with an IP automatically leaving the driver to handle that
1885 * by itself. This does not work for PCIeSS which needs the reset lines
1886 * deasserted for the driver to start accessing registers.
1888 * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
1889 * lines after asserting them.
1891 static int dra7xx_pciess_reset(struct omap_hwmod *oh)
1895 for (i = 0; i < oh->rst_lines_cnt; i++) {
1896 omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
1897 omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
1903 static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
1905 .reset = dra7xx_pciess_reset,
1909 static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
1910 { .name = "pcie", .rst_shift = 0 },
1913 static struct omap_hwmod dra7xx_pciess1_hwmod = {
1915 .class = &dra7xx_pciess_hwmod_class,
1916 .clkdm_name = "pcie_clkdm",
1917 .rst_lines = dra7xx_pciess1_resets,
1918 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
1919 .main_clk = "l4_root_clk_div",
1922 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
1923 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
1924 .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
1925 .modulemode = MODULEMODE_SWCTRL,
1931 static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
1932 { .name = "pcie", .rst_shift = 1 },
1936 static struct omap_hwmod dra7xx_pciess2_hwmod = {
1938 .class = &dra7xx_pciess_hwmod_class,
1939 .clkdm_name = "pcie_clkdm",
1940 .rst_lines = dra7xx_pciess2_resets,
1941 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
1942 .main_clk = "l4_root_clk_div",
1945 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
1946 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
1947 .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
1948 .modulemode = MODULEMODE_SWCTRL,
1958 static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
1959 .sysc_offs = 0x0010,
1960 .sysc_flags = SYSC_HAS_SIDLEMODE,
1961 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1963 .sysc_fields = &omap_hwmod_sysc_type2,
1966 static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
1968 .sysc = &dra7xx_qspi_sysc,
1972 static struct omap_hwmod dra7xx_qspi_hwmod = {
1974 .class = &dra7xx_qspi_hwmod_class,
1975 .clkdm_name = "l4per2_clkdm",
1976 .main_clk = "qspi_gfclk_div",
1979 .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
1980 .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
1981 .modulemode = MODULEMODE_SWCTRL,
1990 static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
1991 .sysc_offs = 0x0078,
1992 .sysc_flags = SYSC_HAS_SIDLEMODE,
1993 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1995 .sysc_fields = &omap_hwmod_sysc_type3,
1998 static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
2000 .sysc = &dra7xx_rtcss_sysc,
2001 .unlock = &omap_hwmod_rtc_unlock,
2002 .lock = &omap_hwmod_rtc_lock,
2006 static struct omap_hwmod dra7xx_rtcss_hwmod = {
2008 .class = &dra7xx_rtcss_hwmod_class,
2009 .clkdm_name = "rtc_clkdm",
2010 .main_clk = "sys_32k_ck",
2013 .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
2014 .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
2015 .modulemode = MODULEMODE_SWCTRL,
2025 static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
2026 .sysc_offs = 0x0000,
2027 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
2028 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2029 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2030 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2031 .sysc_fields = &omap_hwmod_sysc_type2,
2034 static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
2036 .sysc = &dra7xx_sata_sysc,
2041 static struct omap_hwmod dra7xx_sata_hwmod = {
2043 .class = &dra7xx_sata_hwmod_class,
2044 .clkdm_name = "l3init_clkdm",
2045 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2046 .main_clk = "func_48m_fclk",
2050 .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
2051 .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
2052 .modulemode = MODULEMODE_SWCTRL,
2058 * 'smartreflex' class
2062 /* The IP is not compliant to type1 / type2 scheme */
2063 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2068 static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
2069 .sysc_offs = 0x0038,
2070 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2071 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2073 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2076 static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
2077 .name = "smartreflex",
2078 .sysc = &dra7xx_smartreflex_sysc,
2082 /* smartreflex_core */
2083 /* smartreflex_core dev_attr */
2084 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2085 .sensor_voltdm_name = "core",
2088 static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
2089 .name = "smartreflex_core",
2090 .class = &dra7xx_smartreflex_hwmod_class,
2091 .clkdm_name = "coreaon_clkdm",
2092 .main_clk = "wkupaon_iclk_mux",
2095 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
2096 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
2097 .modulemode = MODULEMODE_SWCTRL,
2100 .dev_attr = &smartreflex_core_dev_attr,
2103 /* smartreflex_mpu */
2104 /* smartreflex_mpu dev_attr */
2105 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2106 .sensor_voltdm_name = "mpu",
2109 static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
2110 .name = "smartreflex_mpu",
2111 .class = &dra7xx_smartreflex_hwmod_class,
2112 .clkdm_name = "coreaon_clkdm",
2113 .main_clk = "wkupaon_iclk_mux",
2116 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
2117 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
2118 .modulemode = MODULEMODE_SWCTRL,
2121 .dev_attr = &smartreflex_mpu_dev_attr,
2129 static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
2131 .sysc_offs = 0x0010,
2132 .syss_offs = 0x0014,
2133 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2134 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2135 SYSS_HAS_RESET_STATUS),
2136 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2137 .sysc_fields = &omap_hwmod_sysc_type1,
2140 static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
2142 .sysc = &dra7xx_spinlock_sysc,
2146 static struct omap_hwmod dra7xx_spinlock_hwmod = {
2148 .class = &dra7xx_spinlock_hwmod_class,
2149 .clkdm_name = "l4cfg_clkdm",
2150 .main_clk = "l3_iclk_div",
2153 .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
2154 .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
2162 * This class contains several variants: ['timer_1ms', 'timer_secure',
2166 static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
2168 .sysc_offs = 0x0010,
2169 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2170 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2171 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2173 .sysc_fields = &omap_hwmod_sysc_type2,
2176 static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
2178 .sysc = &dra7xx_timer_1ms_sysc,
2181 static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
2183 .sysc_offs = 0x0010,
2184 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2185 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2186 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2188 .sysc_fields = &omap_hwmod_sysc_type2,
2191 static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
2193 .sysc = &dra7xx_timer_sysc,
2197 static struct omap_hwmod dra7xx_timer1_hwmod = {
2199 .class = &dra7xx_timer_1ms_hwmod_class,
2200 .clkdm_name = "wkupaon_clkdm",
2201 .main_clk = "timer1_gfclk_mux",
2204 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
2205 .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
2206 .modulemode = MODULEMODE_SWCTRL,
2212 static struct omap_hwmod dra7xx_timer2_hwmod = {
2214 .class = &dra7xx_timer_1ms_hwmod_class,
2215 .clkdm_name = "l4per_clkdm",
2216 .main_clk = "timer2_gfclk_mux",
2219 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
2220 .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
2221 .modulemode = MODULEMODE_SWCTRL,
2227 static struct omap_hwmod dra7xx_timer3_hwmod = {
2229 .class = &dra7xx_timer_hwmod_class,
2230 .clkdm_name = "l4per_clkdm",
2231 .main_clk = "timer3_gfclk_mux",
2234 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
2235 .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
2236 .modulemode = MODULEMODE_SWCTRL,
2242 static struct omap_hwmod dra7xx_timer4_hwmod = {
2244 .class = &dra7xx_timer_hwmod_class,
2245 .clkdm_name = "l4per_clkdm",
2246 .main_clk = "timer4_gfclk_mux",
2249 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
2250 .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
2251 .modulemode = MODULEMODE_SWCTRL,
2257 static struct omap_hwmod dra7xx_timer5_hwmod = {
2259 .class = &dra7xx_timer_hwmod_class,
2260 .clkdm_name = "ipu_clkdm",
2261 .main_clk = "timer5_gfclk_mux",
2264 .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
2265 .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
2266 .modulemode = MODULEMODE_SWCTRL,
2272 static struct omap_hwmod dra7xx_timer6_hwmod = {
2274 .class = &dra7xx_timer_hwmod_class,
2275 .clkdm_name = "ipu_clkdm",
2276 .main_clk = "timer6_gfclk_mux",
2279 .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
2280 .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
2281 .modulemode = MODULEMODE_SWCTRL,
2287 static struct omap_hwmod dra7xx_timer7_hwmod = {
2289 .class = &dra7xx_timer_hwmod_class,
2290 .clkdm_name = "ipu_clkdm",
2291 .main_clk = "timer7_gfclk_mux",
2294 .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
2295 .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
2296 .modulemode = MODULEMODE_SWCTRL,
2302 static struct omap_hwmod dra7xx_timer8_hwmod = {
2304 .class = &dra7xx_timer_hwmod_class,
2305 .clkdm_name = "ipu_clkdm",
2306 .main_clk = "timer8_gfclk_mux",
2309 .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
2310 .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
2311 .modulemode = MODULEMODE_SWCTRL,
2317 static struct omap_hwmod dra7xx_timer9_hwmod = {
2319 .class = &dra7xx_timer_hwmod_class,
2320 .clkdm_name = "l4per_clkdm",
2321 .main_clk = "timer9_gfclk_mux",
2324 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
2325 .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
2326 .modulemode = MODULEMODE_SWCTRL,
2332 static struct omap_hwmod dra7xx_timer10_hwmod = {
2334 .class = &dra7xx_timer_1ms_hwmod_class,
2335 .clkdm_name = "l4per_clkdm",
2336 .main_clk = "timer10_gfclk_mux",
2339 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
2340 .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
2341 .modulemode = MODULEMODE_SWCTRL,
2347 static struct omap_hwmod dra7xx_timer11_hwmod = {
2349 .class = &dra7xx_timer_hwmod_class,
2350 .clkdm_name = "l4per_clkdm",
2351 .main_clk = "timer11_gfclk_mux",
2354 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
2355 .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
2356 .modulemode = MODULEMODE_SWCTRL,
2362 static struct omap_hwmod dra7xx_timer12_hwmod = {
2364 .class = &dra7xx_timer_hwmod_class,
2365 .clkdm_name = "wkupaon_clkdm",
2366 .main_clk = "secure_32k_clk_src_ck",
2369 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER12_CLKCTRL_OFFSET,
2370 .context_offs = DRA7XX_RM_WKUPAON_TIMER12_CONTEXT_OFFSET,
2376 static struct omap_hwmod dra7xx_timer13_hwmod = {
2378 .class = &dra7xx_timer_hwmod_class,
2379 .clkdm_name = "l4per3_clkdm",
2380 .main_clk = "timer13_gfclk_mux",
2383 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
2384 .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
2385 .modulemode = MODULEMODE_SWCTRL,
2391 static struct omap_hwmod dra7xx_timer14_hwmod = {
2393 .class = &dra7xx_timer_hwmod_class,
2394 .clkdm_name = "l4per3_clkdm",
2395 .main_clk = "timer14_gfclk_mux",
2398 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
2399 .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
2400 .modulemode = MODULEMODE_SWCTRL,
2406 static struct omap_hwmod dra7xx_timer15_hwmod = {
2408 .class = &dra7xx_timer_hwmod_class,
2409 .clkdm_name = "l4per3_clkdm",
2410 .main_clk = "timer15_gfclk_mux",
2413 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
2414 .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
2415 .modulemode = MODULEMODE_SWCTRL,
2421 static struct omap_hwmod dra7xx_timer16_hwmod = {
2423 .class = &dra7xx_timer_hwmod_class,
2424 .clkdm_name = "l4per3_clkdm",
2425 .main_clk = "timer16_gfclk_mux",
2428 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
2429 .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
2430 .modulemode = MODULEMODE_SWCTRL,
2440 static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
2442 .sysc_offs = 0x0054,
2443 .syss_offs = 0x0058,
2444 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2445 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2446 SYSS_HAS_RESET_STATUS),
2447 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2449 .sysc_fields = &omap_hwmod_sysc_type1,
2452 static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
2454 .sysc = &dra7xx_uart_sysc,
2458 static struct omap_hwmod dra7xx_uart1_hwmod = {
2460 .class = &dra7xx_uart_hwmod_class,
2461 .clkdm_name = "l4per_clkdm",
2462 .main_clk = "uart1_gfclk_mux",
2463 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
2466 .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
2467 .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
2468 .modulemode = MODULEMODE_SWCTRL,
2474 static struct omap_hwmod dra7xx_uart2_hwmod = {
2476 .class = &dra7xx_uart_hwmod_class,
2477 .clkdm_name = "l4per_clkdm",
2478 .main_clk = "uart2_gfclk_mux",
2479 .flags = HWMOD_SWSUP_SIDLE_ACT,
2482 .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
2483 .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
2484 .modulemode = MODULEMODE_SWCTRL,
2490 static struct omap_hwmod dra7xx_uart3_hwmod = {
2492 .class = &dra7xx_uart_hwmod_class,
2493 .clkdm_name = "l4per_clkdm",
2494 .main_clk = "uart3_gfclk_mux",
2495 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
2498 .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
2499 .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
2500 .modulemode = MODULEMODE_SWCTRL,
2506 static struct omap_hwmod dra7xx_uart4_hwmod = {
2508 .class = &dra7xx_uart_hwmod_class,
2509 .clkdm_name = "l4per_clkdm",
2510 .main_clk = "uart4_gfclk_mux",
2511 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
2514 .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
2515 .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
2516 .modulemode = MODULEMODE_SWCTRL,
2522 static struct omap_hwmod dra7xx_uart5_hwmod = {
2524 .class = &dra7xx_uart_hwmod_class,
2525 .clkdm_name = "l4per_clkdm",
2526 .main_clk = "uart5_gfclk_mux",
2527 .flags = HWMOD_SWSUP_SIDLE_ACT,
2530 .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
2531 .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
2532 .modulemode = MODULEMODE_SWCTRL,
2538 static struct omap_hwmod dra7xx_uart6_hwmod = {
2540 .class = &dra7xx_uart_hwmod_class,
2541 .clkdm_name = "ipu_clkdm",
2542 .main_clk = "uart6_gfclk_mux",
2543 .flags = HWMOD_SWSUP_SIDLE_ACT,
2546 .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
2547 .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
2548 .modulemode = MODULEMODE_SWCTRL,
2554 static struct omap_hwmod dra7xx_uart7_hwmod = {
2556 .class = &dra7xx_uart_hwmod_class,
2557 .clkdm_name = "l4per2_clkdm",
2558 .main_clk = "uart7_gfclk_mux",
2559 .flags = HWMOD_SWSUP_SIDLE_ACT,
2562 .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
2563 .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
2564 .modulemode = MODULEMODE_SWCTRL,
2570 static struct omap_hwmod dra7xx_uart8_hwmod = {
2572 .class = &dra7xx_uart_hwmod_class,
2573 .clkdm_name = "l4per2_clkdm",
2574 .main_clk = "uart8_gfclk_mux",
2575 .flags = HWMOD_SWSUP_SIDLE_ACT,
2578 .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
2579 .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
2580 .modulemode = MODULEMODE_SWCTRL,
2586 static struct omap_hwmod dra7xx_uart9_hwmod = {
2588 .class = &dra7xx_uart_hwmod_class,
2589 .clkdm_name = "l4per2_clkdm",
2590 .main_clk = "uart9_gfclk_mux",
2591 .flags = HWMOD_SWSUP_SIDLE_ACT,
2594 .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
2595 .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
2596 .modulemode = MODULEMODE_SWCTRL,
2602 static struct omap_hwmod dra7xx_uart10_hwmod = {
2604 .class = &dra7xx_uart_hwmod_class,
2605 .clkdm_name = "wkupaon_clkdm",
2606 .main_clk = "uart10_gfclk_mux",
2607 .flags = HWMOD_SWSUP_SIDLE_ACT,
2610 .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
2611 .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
2612 .modulemode = MODULEMODE_SWCTRL,
2617 /* DES (the 'P' (public) device) */
2618 static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = {
2620 .sysc_offs = 0x0034,
2621 .syss_offs = 0x0038,
2622 .sysc_flags = SYSS_HAS_RESET_STATUS,
2625 static struct omap_hwmod_class dra7xx_des_hwmod_class = {
2627 .sysc = &dra7xx_des_sysc,
2631 static struct omap_hwmod dra7xx_des_hwmod = {
2633 .class = &dra7xx_des_hwmod_class,
2634 .clkdm_name = "l4sec_clkdm",
2635 .main_clk = "l3_iclk_div",
2638 .clkctrl_offs = DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
2639 .context_offs = DRA7XX_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
2640 .modulemode = MODULEMODE_HWCTRL,
2646 static struct omap_hwmod_class_sysconfig dra7xx_rng_sysc = {
2648 .sysc_offs = 0x1fe4,
2649 .sysc_flags = SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE,
2650 .idlemodes = SIDLE_FORCE | SIDLE_NO,
2651 .sysc_fields = &omap_hwmod_sysc_type1,
2654 static struct omap_hwmod_class dra7xx_rng_hwmod_class = {
2656 .sysc = &dra7xx_rng_sysc,
2659 static struct omap_hwmod dra7xx_rng_hwmod = {
2661 .class = &dra7xx_rng_hwmod_class,
2662 .flags = HWMOD_SWSUP_SIDLE,
2663 .clkdm_name = "l4sec_clkdm",
2666 .clkctrl_offs = DRA7XX_CM_L4SEC_RNG_CLKCTRL_OFFSET,
2667 .context_offs = DRA7XX_RM_L4SEC_RNG_CONTEXT_OFFSET,
2668 .modulemode = MODULEMODE_HWCTRL,
2674 * 'usb_otg_ss' class
2678 static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
2680 .sysc_offs = 0x0010,
2681 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
2682 SYSC_HAS_SIDLEMODE),
2683 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2684 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2685 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2686 .sysc_fields = &omap_hwmod_sysc_type2,
2689 static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
2690 .name = "usb_otg_ss",
2691 .sysc = &dra7xx_usb_otg_ss_sysc,
2695 static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
2696 { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
2699 static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
2700 .name = "usb_otg_ss1",
2701 .class = &dra7xx_usb_otg_ss_hwmod_class,
2702 .clkdm_name = "l3init_clkdm",
2703 .main_clk = "dpll_core_h13x2_ck",
2704 .flags = HWMOD_CLKDM_NOAUTO,
2707 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
2708 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
2709 .modulemode = MODULEMODE_HWCTRL,
2712 .opt_clks = usb_otg_ss1_opt_clks,
2713 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
2717 static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
2718 { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
2721 static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
2722 .name = "usb_otg_ss2",
2723 .class = &dra7xx_usb_otg_ss_hwmod_class,
2724 .clkdm_name = "l3init_clkdm",
2725 .main_clk = "dpll_core_h13x2_ck",
2726 .flags = HWMOD_CLKDM_NOAUTO,
2729 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
2730 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
2731 .modulemode = MODULEMODE_HWCTRL,
2734 .opt_clks = usb_otg_ss2_opt_clks,
2735 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
2739 static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
2740 .name = "usb_otg_ss3",
2741 .class = &dra7xx_usb_otg_ss_hwmod_class,
2742 .clkdm_name = "l3init_clkdm",
2743 .main_clk = "dpll_core_h13x2_ck",
2746 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
2747 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
2748 .modulemode = MODULEMODE_HWCTRL,
2754 static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
2755 .name = "usb_otg_ss4",
2756 .class = &dra7xx_usb_otg_ss_hwmod_class,
2757 .clkdm_name = "l3init_clkdm",
2758 .main_clk = "dpll_core_h13x2_ck",
2761 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
2762 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
2763 .modulemode = MODULEMODE_HWCTRL,
2773 static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
2778 static struct omap_hwmod dra7xx_vcp1_hwmod = {
2780 .class = &dra7xx_vcp_hwmod_class,
2781 .clkdm_name = "l3main1_clkdm",
2782 .main_clk = "l3_iclk_div",
2785 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
2786 .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
2792 static struct omap_hwmod dra7xx_vcp2_hwmod = {
2794 .class = &dra7xx_vcp_hwmod_class,
2795 .clkdm_name = "l3main1_clkdm",
2796 .main_clk = "l3_iclk_div",
2799 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
2800 .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
2810 static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
2812 .sysc_offs = 0x0010,
2813 .syss_offs = 0x0014,
2814 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2815 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2818 .sysc_fields = &omap_hwmod_sysc_type1,
2821 static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
2823 .sysc = &dra7xx_wd_timer_sysc,
2824 .pre_shutdown = &omap2_wd_timer_disable,
2825 .reset = &omap2_wd_timer_reset,
2829 static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
2830 .name = "wd_timer2",
2831 .class = &dra7xx_wd_timer_hwmod_class,
2832 .clkdm_name = "wkupaon_clkdm",
2833 .main_clk = "sys_32k_ck",
2836 .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
2837 .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
2838 .modulemode = MODULEMODE_SWCTRL,
2848 /* l3_main_1 -> dmm */
2849 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
2850 .master = &dra7xx_l3_main_1_hwmod,
2851 .slave = &dra7xx_dmm_hwmod,
2852 .clk = "l3_iclk_div",
2853 .user = OCP_USER_SDMA,
2856 /* l3_main_2 -> l3_instr */
2857 static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
2858 .master = &dra7xx_l3_main_2_hwmod,
2859 .slave = &dra7xx_l3_instr_hwmod,
2860 .clk = "l3_iclk_div",
2861 .user = OCP_USER_MPU | OCP_USER_SDMA,
2864 /* l4_cfg -> l3_main_1 */
2865 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
2866 .master = &dra7xx_l4_cfg_hwmod,
2867 .slave = &dra7xx_l3_main_1_hwmod,
2868 .clk = "l3_iclk_div",
2869 .user = OCP_USER_MPU | OCP_USER_SDMA,
2872 /* mpu -> l3_main_1 */
2873 static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
2874 .master = &dra7xx_mpu_hwmod,
2875 .slave = &dra7xx_l3_main_1_hwmod,
2876 .clk = "l3_iclk_div",
2877 .user = OCP_USER_MPU,
2880 /* l3_main_1 -> l3_main_2 */
2881 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
2882 .master = &dra7xx_l3_main_1_hwmod,
2883 .slave = &dra7xx_l3_main_2_hwmod,
2884 .clk = "l3_iclk_div",
2885 .user = OCP_USER_MPU,
2888 /* l4_cfg -> l3_main_2 */
2889 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
2890 .master = &dra7xx_l4_cfg_hwmod,
2891 .slave = &dra7xx_l3_main_2_hwmod,
2892 .clk = "l3_iclk_div",
2893 .user = OCP_USER_MPU | OCP_USER_SDMA,
2896 /* l3_main_1 -> l4_cfg */
2897 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
2898 .master = &dra7xx_l3_main_1_hwmod,
2899 .slave = &dra7xx_l4_cfg_hwmod,
2900 .clk = "l3_iclk_div",
2901 .user = OCP_USER_MPU | OCP_USER_SDMA,
2904 /* l3_main_1 -> l4_per1 */
2905 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
2906 .master = &dra7xx_l3_main_1_hwmod,
2907 .slave = &dra7xx_l4_per1_hwmod,
2908 .clk = "l3_iclk_div",
2909 .user = OCP_USER_MPU | OCP_USER_SDMA,
2912 /* l3_main_1 -> l4_per2 */
2913 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
2914 .master = &dra7xx_l3_main_1_hwmod,
2915 .slave = &dra7xx_l4_per2_hwmod,
2916 .clk = "l3_iclk_div",
2917 .user = OCP_USER_MPU | OCP_USER_SDMA,
2920 /* l3_main_1 -> l4_per3 */
2921 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
2922 .master = &dra7xx_l3_main_1_hwmod,
2923 .slave = &dra7xx_l4_per3_hwmod,
2924 .clk = "l3_iclk_div",
2925 .user = OCP_USER_MPU | OCP_USER_SDMA,
2928 /* l3_main_1 -> l4_wkup */
2929 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
2930 .master = &dra7xx_l3_main_1_hwmod,
2931 .slave = &dra7xx_l4_wkup_hwmod,
2932 .clk = "wkupaon_iclk_mux",
2933 .user = OCP_USER_MPU | OCP_USER_SDMA,
2936 /* l4_per2 -> atl */
2937 static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
2938 .master = &dra7xx_l4_per2_hwmod,
2939 .slave = &dra7xx_atl_hwmod,
2940 .clk = "l3_iclk_div",
2941 .user = OCP_USER_MPU | OCP_USER_SDMA,
2944 /* l3_main_1 -> bb2d */
2945 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
2946 .master = &dra7xx_l3_main_1_hwmod,
2947 .slave = &dra7xx_bb2d_hwmod,
2948 .clk = "l3_iclk_div",
2949 .user = OCP_USER_MPU | OCP_USER_SDMA,
2952 /* l4_wkup -> counter_32k */
2953 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
2954 .master = &dra7xx_l4_wkup_hwmod,
2955 .slave = &dra7xx_counter_32k_hwmod,
2956 .clk = "wkupaon_iclk_mux",
2957 .user = OCP_USER_MPU | OCP_USER_SDMA,
2960 /* l4_wkup -> ctrl_module_wkup */
2961 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
2962 .master = &dra7xx_l4_wkup_hwmod,
2963 .slave = &dra7xx_ctrl_module_wkup_hwmod,
2964 .clk = "wkupaon_iclk_mux",
2965 .user = OCP_USER_MPU | OCP_USER_SDMA,
2968 static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
2969 .master = &dra7xx_l4_per2_hwmod,
2970 .slave = &dra7xx_gmac_hwmod,
2971 .clk = "dpll_gmac_ck",
2972 .user = OCP_USER_MPU,
2975 static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
2976 .master = &dra7xx_gmac_hwmod,
2977 .slave = &dra7xx_mdio_hwmod,
2978 .user = OCP_USER_MPU,
2981 /* l4_wkup -> dcan1 */
2982 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
2983 .master = &dra7xx_l4_wkup_hwmod,
2984 .slave = &dra7xx_dcan1_hwmod,
2985 .clk = "wkupaon_iclk_mux",
2986 .user = OCP_USER_MPU | OCP_USER_SDMA,
2989 /* l4_per2 -> dcan2 */
2990 static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
2991 .master = &dra7xx_l4_per2_hwmod,
2992 .slave = &dra7xx_dcan2_hwmod,
2993 .clk = "l3_iclk_div",
2994 .user = OCP_USER_MPU | OCP_USER_SDMA,
2997 static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
2999 .pa_start = 0x4a056000,
3000 .pa_end = 0x4a056fff,
3001 .flags = ADDR_TYPE_RT
3006 /* l4_cfg -> dma_system */
3007 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
3008 .master = &dra7xx_l4_cfg_hwmod,
3009 .slave = &dra7xx_dma_system_hwmod,
3010 .clk = "l3_iclk_div",
3011 .addr = dra7xx_dma_system_addrs,
3012 .user = OCP_USER_MPU | OCP_USER_SDMA,
3015 /* l3_main_1 -> tpcc */
3016 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tpcc = {
3017 .master = &dra7xx_l3_main_1_hwmod,
3018 .slave = &dra7xx_tpcc_hwmod,
3019 .clk = "l3_iclk_div",
3020 .user = OCP_USER_MPU,
3023 /* l3_main_1 -> tptc0 */
3024 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc0 = {
3025 .master = &dra7xx_l3_main_1_hwmod,
3026 .slave = &dra7xx_tptc0_hwmod,
3027 .clk = "l3_iclk_div",
3028 .user = OCP_USER_MPU,
3031 /* l3_main_1 -> tptc1 */
3032 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc1 = {
3033 .master = &dra7xx_l3_main_1_hwmod,
3034 .slave = &dra7xx_tptc1_hwmod,
3035 .clk = "l3_iclk_div",
3036 .user = OCP_USER_MPU,
3039 /* l3_main_1 -> dss */
3040 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
3041 .master = &dra7xx_l3_main_1_hwmod,
3042 .slave = &dra7xx_dss_hwmod,
3043 .clk = "l3_iclk_div",
3044 .user = OCP_USER_MPU | OCP_USER_SDMA,
3047 /* l3_main_1 -> dispc */
3048 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
3049 .master = &dra7xx_l3_main_1_hwmod,
3050 .slave = &dra7xx_dss_dispc_hwmod,
3051 .clk = "l3_iclk_div",
3052 .user = OCP_USER_MPU | OCP_USER_SDMA,
3055 /* l3_main_1 -> dispc */
3056 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
3057 .master = &dra7xx_l3_main_1_hwmod,
3058 .slave = &dra7xx_dss_hdmi_hwmod,
3059 .clk = "l3_iclk_div",
3060 .user = OCP_USER_MPU | OCP_USER_SDMA,
3063 /* l3_main_1 -> aes1 */
3064 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes1 = {
3065 .master = &dra7xx_l3_main_1_hwmod,
3066 .slave = &dra7xx_aes1_hwmod,
3067 .clk = "l3_iclk_div",
3068 .user = OCP_USER_MPU | OCP_USER_SDMA,
3071 /* l3_main_1 -> aes2 */
3072 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes2 = {
3073 .master = &dra7xx_l3_main_1_hwmod,
3074 .slave = &dra7xx_aes2_hwmod,
3075 .clk = "l3_iclk_div",
3076 .user = OCP_USER_MPU | OCP_USER_SDMA,
3079 /* l3_main_1 -> sha0 */
3080 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__sha0 = {
3081 .master = &dra7xx_l3_main_1_hwmod,
3082 .slave = &dra7xx_sha0_hwmod,
3083 .clk = "l3_iclk_div",
3084 .user = OCP_USER_MPU | OCP_USER_SDMA,
3087 /* l4_per2 -> mcasp1 */
3088 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = {
3089 .master = &dra7xx_l4_per2_hwmod,
3090 .slave = &dra7xx_mcasp1_hwmod,
3091 .clk = "l4_root_clk_div",
3092 .user = OCP_USER_MPU | OCP_USER_SDMA,
3095 /* l3_main_1 -> mcasp1 */
3096 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = {
3097 .master = &dra7xx_l3_main_1_hwmod,
3098 .slave = &dra7xx_mcasp1_hwmod,
3099 .clk = "l3_iclk_div",
3100 .user = OCP_USER_MPU | OCP_USER_SDMA,
3103 /* l4_per2 -> mcasp2 */
3104 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = {
3105 .master = &dra7xx_l4_per2_hwmod,
3106 .slave = &dra7xx_mcasp2_hwmod,
3107 .clk = "l4_root_clk_div",
3108 .user = OCP_USER_MPU | OCP_USER_SDMA,
3111 /* l3_main_1 -> mcasp2 */
3112 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = {
3113 .master = &dra7xx_l3_main_1_hwmod,
3114 .slave = &dra7xx_mcasp2_hwmod,
3115 .clk = "l3_iclk_div",
3116 .user = OCP_USER_MPU | OCP_USER_SDMA,
3119 /* l4_per2 -> mcasp3 */
3120 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
3121 .master = &dra7xx_l4_per2_hwmod,
3122 .slave = &dra7xx_mcasp3_hwmod,
3123 .clk = "l4_root_clk_div",
3124 .user = OCP_USER_MPU | OCP_USER_SDMA,
3127 /* l3_main_1 -> mcasp3 */
3128 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
3129 .master = &dra7xx_l3_main_1_hwmod,
3130 .slave = &dra7xx_mcasp3_hwmod,
3131 .clk = "l3_iclk_div",
3132 .user = OCP_USER_MPU | OCP_USER_SDMA,
3135 /* l4_per2 -> mcasp4 */
3136 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = {
3137 .master = &dra7xx_l4_per2_hwmod,
3138 .slave = &dra7xx_mcasp4_hwmod,
3139 .clk = "l4_root_clk_div",
3140 .user = OCP_USER_MPU | OCP_USER_SDMA,
3143 /* l4_per2 -> mcasp5 */
3144 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = {
3145 .master = &dra7xx_l4_per2_hwmod,
3146 .slave = &dra7xx_mcasp5_hwmod,
3147 .clk = "l4_root_clk_div",
3148 .user = OCP_USER_MPU | OCP_USER_SDMA,
3151 /* l4_per2 -> mcasp6 */
3152 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = {
3153 .master = &dra7xx_l4_per2_hwmod,
3154 .slave = &dra7xx_mcasp6_hwmod,
3155 .clk = "l4_root_clk_div",
3156 .user = OCP_USER_MPU | OCP_USER_SDMA,
3159 /* l4_per2 -> mcasp7 */
3160 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = {
3161 .master = &dra7xx_l4_per2_hwmod,
3162 .slave = &dra7xx_mcasp7_hwmod,
3163 .clk = "l4_root_clk_div",
3164 .user = OCP_USER_MPU | OCP_USER_SDMA,
3167 /* l4_per2 -> mcasp8 */
3168 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = {
3169 .master = &dra7xx_l4_per2_hwmod,
3170 .slave = &dra7xx_mcasp8_hwmod,
3171 .clk = "l4_root_clk_div",
3172 .user = OCP_USER_MPU | OCP_USER_SDMA,
3175 /* l4_per1 -> elm */
3176 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
3177 .master = &dra7xx_l4_per1_hwmod,
3178 .slave = &dra7xx_elm_hwmod,
3179 .clk = "l3_iclk_div",
3180 .user = OCP_USER_MPU | OCP_USER_SDMA,
3183 /* l4_wkup -> gpio1 */
3184 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
3185 .master = &dra7xx_l4_wkup_hwmod,
3186 .slave = &dra7xx_gpio1_hwmod,
3187 .clk = "wkupaon_iclk_mux",
3188 .user = OCP_USER_MPU | OCP_USER_SDMA,
3191 /* l4_per1 -> gpio2 */
3192 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
3193 .master = &dra7xx_l4_per1_hwmod,
3194 .slave = &dra7xx_gpio2_hwmod,
3195 .clk = "l3_iclk_div",
3196 .user = OCP_USER_MPU | OCP_USER_SDMA,
3199 /* l4_per1 -> gpio3 */
3200 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
3201 .master = &dra7xx_l4_per1_hwmod,
3202 .slave = &dra7xx_gpio3_hwmod,
3203 .clk = "l3_iclk_div",
3204 .user = OCP_USER_MPU | OCP_USER_SDMA,
3207 /* l4_per1 -> gpio4 */
3208 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
3209 .master = &dra7xx_l4_per1_hwmod,
3210 .slave = &dra7xx_gpio4_hwmod,
3211 .clk = "l3_iclk_div",
3212 .user = OCP_USER_MPU | OCP_USER_SDMA,
3215 /* l4_per1 -> gpio5 */
3216 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
3217 .master = &dra7xx_l4_per1_hwmod,
3218 .slave = &dra7xx_gpio5_hwmod,
3219 .clk = "l3_iclk_div",
3220 .user = OCP_USER_MPU | OCP_USER_SDMA,
3223 /* l4_per1 -> gpio6 */
3224 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
3225 .master = &dra7xx_l4_per1_hwmod,
3226 .slave = &dra7xx_gpio6_hwmod,
3227 .clk = "l3_iclk_div",
3228 .user = OCP_USER_MPU | OCP_USER_SDMA,
3231 /* l4_per1 -> gpio7 */
3232 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
3233 .master = &dra7xx_l4_per1_hwmod,
3234 .slave = &dra7xx_gpio7_hwmod,
3235 .clk = "l3_iclk_div",
3236 .user = OCP_USER_MPU | OCP_USER_SDMA,
3239 /* l4_per1 -> gpio8 */
3240 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
3241 .master = &dra7xx_l4_per1_hwmod,
3242 .slave = &dra7xx_gpio8_hwmod,
3243 .clk = "l3_iclk_div",
3244 .user = OCP_USER_MPU | OCP_USER_SDMA,
3247 /* l3_main_1 -> gpmc */
3248 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
3249 .master = &dra7xx_l3_main_1_hwmod,
3250 .slave = &dra7xx_gpmc_hwmod,
3251 .clk = "l3_iclk_div",
3252 .user = OCP_USER_MPU | OCP_USER_SDMA,
3255 static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
3257 .pa_start = 0x480b2000,
3258 .pa_end = 0x480b201f,
3259 .flags = ADDR_TYPE_RT
3264 /* l4_per1 -> hdq1w */
3265 static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
3266 .master = &dra7xx_l4_per1_hwmod,
3267 .slave = &dra7xx_hdq1w_hwmod,
3268 .clk = "l3_iclk_div",
3269 .addr = dra7xx_hdq1w_addrs,
3270 .user = OCP_USER_MPU | OCP_USER_SDMA,
3273 /* l4_per1 -> i2c1 */
3274 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
3275 .master = &dra7xx_l4_per1_hwmod,
3276 .slave = &dra7xx_i2c1_hwmod,
3277 .clk = "l3_iclk_div",
3278 .user = OCP_USER_MPU | OCP_USER_SDMA,
3281 /* l4_per1 -> i2c2 */
3282 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
3283 .master = &dra7xx_l4_per1_hwmod,
3284 .slave = &dra7xx_i2c2_hwmod,
3285 .clk = "l3_iclk_div",
3286 .user = OCP_USER_MPU | OCP_USER_SDMA,
3289 /* l4_per1 -> i2c3 */
3290 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
3291 .master = &dra7xx_l4_per1_hwmod,
3292 .slave = &dra7xx_i2c3_hwmod,
3293 .clk = "l3_iclk_div",
3294 .user = OCP_USER_MPU | OCP_USER_SDMA,
3297 /* l4_per1 -> i2c4 */
3298 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
3299 .master = &dra7xx_l4_per1_hwmod,
3300 .slave = &dra7xx_i2c4_hwmod,
3301 .clk = "l3_iclk_div",
3302 .user = OCP_USER_MPU | OCP_USER_SDMA,
3305 /* l4_per1 -> i2c5 */
3306 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
3307 .master = &dra7xx_l4_per1_hwmod,
3308 .slave = &dra7xx_i2c5_hwmod,
3309 .clk = "l3_iclk_div",
3310 .user = OCP_USER_MPU | OCP_USER_SDMA,
3313 /* l4_cfg -> mailbox1 */
3314 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
3315 .master = &dra7xx_l4_cfg_hwmod,
3316 .slave = &dra7xx_mailbox1_hwmod,
3317 .clk = "l3_iclk_div",
3318 .user = OCP_USER_MPU | OCP_USER_SDMA,
3321 /* l4_per3 -> mailbox2 */
3322 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
3323 .master = &dra7xx_l4_per3_hwmod,
3324 .slave = &dra7xx_mailbox2_hwmod,
3325 .clk = "l3_iclk_div",
3326 .user = OCP_USER_MPU | OCP_USER_SDMA,
3329 /* l4_per3 -> mailbox3 */
3330 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
3331 .master = &dra7xx_l4_per3_hwmod,
3332 .slave = &dra7xx_mailbox3_hwmod,
3333 .clk = "l3_iclk_div",
3334 .user = OCP_USER_MPU | OCP_USER_SDMA,
3337 /* l4_per3 -> mailbox4 */
3338 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
3339 .master = &dra7xx_l4_per3_hwmod,
3340 .slave = &dra7xx_mailbox4_hwmod,
3341 .clk = "l3_iclk_div",
3342 .user = OCP_USER_MPU | OCP_USER_SDMA,
3345 /* l4_per3 -> mailbox5 */
3346 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
3347 .master = &dra7xx_l4_per3_hwmod,
3348 .slave = &dra7xx_mailbox5_hwmod,
3349 .clk = "l3_iclk_div",
3350 .user = OCP_USER_MPU | OCP_USER_SDMA,
3353 /* l4_per3 -> mailbox6 */
3354 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
3355 .master = &dra7xx_l4_per3_hwmod,
3356 .slave = &dra7xx_mailbox6_hwmod,
3357 .clk = "l3_iclk_div",
3358 .user = OCP_USER_MPU | OCP_USER_SDMA,
3361 /* l4_per3 -> mailbox7 */
3362 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
3363 .master = &dra7xx_l4_per3_hwmod,
3364 .slave = &dra7xx_mailbox7_hwmod,
3365 .clk = "l3_iclk_div",
3366 .user = OCP_USER_MPU | OCP_USER_SDMA,
3369 /* l4_per3 -> mailbox8 */
3370 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
3371 .master = &dra7xx_l4_per3_hwmod,
3372 .slave = &dra7xx_mailbox8_hwmod,
3373 .clk = "l3_iclk_div",
3374 .user = OCP_USER_MPU | OCP_USER_SDMA,
3377 /* l4_per3 -> mailbox9 */
3378 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
3379 .master = &dra7xx_l4_per3_hwmod,
3380 .slave = &dra7xx_mailbox9_hwmod,
3381 .clk = "l3_iclk_div",
3382 .user = OCP_USER_MPU | OCP_USER_SDMA,
3385 /* l4_per3 -> mailbox10 */
3386 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
3387 .master = &dra7xx_l4_per3_hwmod,
3388 .slave = &dra7xx_mailbox10_hwmod,
3389 .clk = "l3_iclk_div",
3390 .user = OCP_USER_MPU | OCP_USER_SDMA,
3393 /* l4_per3 -> mailbox11 */
3394 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
3395 .master = &dra7xx_l4_per3_hwmod,
3396 .slave = &dra7xx_mailbox11_hwmod,
3397 .clk = "l3_iclk_div",
3398 .user = OCP_USER_MPU | OCP_USER_SDMA,
3401 /* l4_per3 -> mailbox12 */
3402 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
3403 .master = &dra7xx_l4_per3_hwmod,
3404 .slave = &dra7xx_mailbox12_hwmod,
3405 .clk = "l3_iclk_div",
3406 .user = OCP_USER_MPU | OCP_USER_SDMA,
3409 /* l4_per3 -> mailbox13 */
3410 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
3411 .master = &dra7xx_l4_per3_hwmod,
3412 .slave = &dra7xx_mailbox13_hwmod,
3413 .clk = "l3_iclk_div",
3414 .user = OCP_USER_MPU | OCP_USER_SDMA,
3417 /* l4_per1 -> mcspi1 */
3418 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
3419 .master = &dra7xx_l4_per1_hwmod,
3420 .slave = &dra7xx_mcspi1_hwmod,
3421 .clk = "l3_iclk_div",
3422 .user = OCP_USER_MPU | OCP_USER_SDMA,
3425 /* l4_per1 -> mcspi2 */
3426 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
3427 .master = &dra7xx_l4_per1_hwmod,
3428 .slave = &dra7xx_mcspi2_hwmod,
3429 .clk = "l3_iclk_div",
3430 .user = OCP_USER_MPU | OCP_USER_SDMA,
3433 /* l4_per1 -> mcspi3 */
3434 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
3435 .master = &dra7xx_l4_per1_hwmod,
3436 .slave = &dra7xx_mcspi3_hwmod,
3437 .clk = "l3_iclk_div",
3438 .user = OCP_USER_MPU | OCP_USER_SDMA,
3441 /* l4_per1 -> mcspi4 */
3442 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
3443 .master = &dra7xx_l4_per1_hwmod,
3444 .slave = &dra7xx_mcspi4_hwmod,
3445 .clk = "l3_iclk_div",
3446 .user = OCP_USER_MPU | OCP_USER_SDMA,
3449 /* l4_per1 -> mmc1 */
3450 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
3451 .master = &dra7xx_l4_per1_hwmod,
3452 .slave = &dra7xx_mmc1_hwmod,
3453 .clk = "l3_iclk_div",
3454 .user = OCP_USER_MPU | OCP_USER_SDMA,
3457 /* l4_per1 -> mmc2 */
3458 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
3459 .master = &dra7xx_l4_per1_hwmod,
3460 .slave = &dra7xx_mmc2_hwmod,
3461 .clk = "l3_iclk_div",
3462 .user = OCP_USER_MPU | OCP_USER_SDMA,
3465 /* l4_per1 -> mmc3 */
3466 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
3467 .master = &dra7xx_l4_per1_hwmod,
3468 .slave = &dra7xx_mmc3_hwmod,
3469 .clk = "l3_iclk_div",
3470 .user = OCP_USER_MPU | OCP_USER_SDMA,
3473 /* l4_per1 -> mmc4 */
3474 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
3475 .master = &dra7xx_l4_per1_hwmod,
3476 .slave = &dra7xx_mmc4_hwmod,
3477 .clk = "l3_iclk_div",
3478 .user = OCP_USER_MPU | OCP_USER_SDMA,
3482 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
3483 .master = &dra7xx_l4_cfg_hwmod,
3484 .slave = &dra7xx_mpu_hwmod,
3485 .clk = "l3_iclk_div",
3486 .user = OCP_USER_MPU | OCP_USER_SDMA,
3489 /* l4_cfg -> ocp2scp1 */
3490 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
3491 .master = &dra7xx_l4_cfg_hwmod,
3492 .slave = &dra7xx_ocp2scp1_hwmod,
3493 .clk = "l4_root_clk_div",
3494 .user = OCP_USER_MPU | OCP_USER_SDMA,
3497 /* l4_cfg -> ocp2scp3 */
3498 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
3499 .master = &dra7xx_l4_cfg_hwmod,
3500 .slave = &dra7xx_ocp2scp3_hwmod,
3501 .clk = "l4_root_clk_div",
3502 .user = OCP_USER_MPU | OCP_USER_SDMA,
3505 /* l3_main_1 -> pciess1 */
3506 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
3507 .master = &dra7xx_l3_main_1_hwmod,
3508 .slave = &dra7xx_pciess1_hwmod,
3509 .clk = "l3_iclk_div",
3510 .user = OCP_USER_MPU | OCP_USER_SDMA,
3513 /* l4_cfg -> pciess1 */
3514 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
3515 .master = &dra7xx_l4_cfg_hwmod,
3516 .slave = &dra7xx_pciess1_hwmod,
3517 .clk = "l4_root_clk_div",
3518 .user = OCP_USER_MPU | OCP_USER_SDMA,
3521 /* l3_main_1 -> pciess2 */
3522 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
3523 .master = &dra7xx_l3_main_1_hwmod,
3524 .slave = &dra7xx_pciess2_hwmod,
3525 .clk = "l3_iclk_div",
3526 .user = OCP_USER_MPU | OCP_USER_SDMA,
3529 /* l4_cfg -> pciess2 */
3530 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
3531 .master = &dra7xx_l4_cfg_hwmod,
3532 .slave = &dra7xx_pciess2_hwmod,
3533 .clk = "l4_root_clk_div",
3534 .user = OCP_USER_MPU | OCP_USER_SDMA,
3537 /* l3_main_1 -> qspi */
3538 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
3539 .master = &dra7xx_l3_main_1_hwmod,
3540 .slave = &dra7xx_qspi_hwmod,
3541 .clk = "l3_iclk_div",
3542 .user = OCP_USER_MPU | OCP_USER_SDMA,
3545 /* l4_per3 -> rtcss */
3546 static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
3547 .master = &dra7xx_l4_per3_hwmod,
3548 .slave = &dra7xx_rtcss_hwmod,
3549 .clk = "l4_root_clk_div",
3550 .user = OCP_USER_MPU | OCP_USER_SDMA,
3553 static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
3556 .pa_start = 0x4a141100,
3557 .pa_end = 0x4a141107,
3558 .flags = ADDR_TYPE_RT
3563 /* l4_cfg -> sata */
3564 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
3565 .master = &dra7xx_l4_cfg_hwmod,
3566 .slave = &dra7xx_sata_hwmod,
3567 .clk = "l3_iclk_div",
3568 .addr = dra7xx_sata_addrs,
3569 .user = OCP_USER_MPU | OCP_USER_SDMA,
3572 static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
3574 .pa_start = 0x4a0dd000,
3575 .pa_end = 0x4a0dd07f,
3576 .flags = ADDR_TYPE_RT
3581 /* l4_cfg -> smartreflex_core */
3582 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
3583 .master = &dra7xx_l4_cfg_hwmod,
3584 .slave = &dra7xx_smartreflex_core_hwmod,
3585 .clk = "l4_root_clk_div",
3586 .addr = dra7xx_smartreflex_core_addrs,
3587 .user = OCP_USER_MPU | OCP_USER_SDMA,
3590 static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
3592 .pa_start = 0x4a0d9000,
3593 .pa_end = 0x4a0d907f,
3594 .flags = ADDR_TYPE_RT
3599 /* l4_cfg -> smartreflex_mpu */
3600 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
3601 .master = &dra7xx_l4_cfg_hwmod,
3602 .slave = &dra7xx_smartreflex_mpu_hwmod,
3603 .clk = "l4_root_clk_div",
3604 .addr = dra7xx_smartreflex_mpu_addrs,
3605 .user = OCP_USER_MPU | OCP_USER_SDMA,
3608 /* l4_cfg -> spinlock */
3609 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
3610 .master = &dra7xx_l4_cfg_hwmod,
3611 .slave = &dra7xx_spinlock_hwmod,
3612 .clk = "l3_iclk_div",
3613 .user = OCP_USER_MPU | OCP_USER_SDMA,
3616 /* l4_wkup -> timer1 */
3617 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
3618 .master = &dra7xx_l4_wkup_hwmod,
3619 .slave = &dra7xx_timer1_hwmod,
3620 .clk = "wkupaon_iclk_mux",
3621 .user = OCP_USER_MPU | OCP_USER_SDMA,
3624 /* l4_per1 -> timer2 */
3625 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
3626 .master = &dra7xx_l4_per1_hwmod,
3627 .slave = &dra7xx_timer2_hwmod,
3628 .clk = "l3_iclk_div",
3629 .user = OCP_USER_MPU | OCP_USER_SDMA,
3632 /* l4_per1 -> timer3 */
3633 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
3634 .master = &dra7xx_l4_per1_hwmod,
3635 .slave = &dra7xx_timer3_hwmod,
3636 .clk = "l3_iclk_div",
3637 .user = OCP_USER_MPU | OCP_USER_SDMA,
3640 /* l4_per1 -> timer4 */
3641 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
3642 .master = &dra7xx_l4_per1_hwmod,
3643 .slave = &dra7xx_timer4_hwmod,
3644 .clk = "l3_iclk_div",
3645 .user = OCP_USER_MPU | OCP_USER_SDMA,
3648 /* l4_per3 -> timer5 */
3649 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
3650 .master = &dra7xx_l4_per3_hwmod,
3651 .slave = &dra7xx_timer5_hwmod,
3652 .clk = "l3_iclk_div",
3653 .user = OCP_USER_MPU | OCP_USER_SDMA,
3656 /* l4_per3 -> timer6 */
3657 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
3658 .master = &dra7xx_l4_per3_hwmod,
3659 .slave = &dra7xx_timer6_hwmod,
3660 .clk = "l3_iclk_div",
3661 .user = OCP_USER_MPU | OCP_USER_SDMA,
3664 /* l4_per3 -> timer7 */
3665 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
3666 .master = &dra7xx_l4_per3_hwmod,
3667 .slave = &dra7xx_timer7_hwmod,
3668 .clk = "l3_iclk_div",
3669 .user = OCP_USER_MPU | OCP_USER_SDMA,
3672 /* l4_per3 -> timer8 */
3673 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
3674 .master = &dra7xx_l4_per3_hwmod,
3675 .slave = &dra7xx_timer8_hwmod,
3676 .clk = "l3_iclk_div",
3677 .user = OCP_USER_MPU | OCP_USER_SDMA,
3680 /* l4_per1 -> timer9 */
3681 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
3682 .master = &dra7xx_l4_per1_hwmod,
3683 .slave = &dra7xx_timer9_hwmod,
3684 .clk = "l3_iclk_div",
3685 .user = OCP_USER_MPU | OCP_USER_SDMA,
3688 /* l4_per1 -> timer10 */
3689 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
3690 .master = &dra7xx_l4_per1_hwmod,
3691 .slave = &dra7xx_timer10_hwmod,
3692 .clk = "l3_iclk_div",
3693 .user = OCP_USER_MPU | OCP_USER_SDMA,
3696 /* l4_per1 -> timer11 */
3697 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
3698 .master = &dra7xx_l4_per1_hwmod,
3699 .slave = &dra7xx_timer11_hwmod,
3700 .clk = "l3_iclk_div",
3701 .user = OCP_USER_MPU | OCP_USER_SDMA,
3704 /* l4_wkup -> timer12 */
3705 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer12 = {
3706 .master = &dra7xx_l4_wkup_hwmod,
3707 .slave = &dra7xx_timer12_hwmod,
3708 .clk = "wkupaon_iclk_mux",
3709 .user = OCP_USER_MPU | OCP_USER_SDMA,
3712 /* l4_per3 -> timer13 */
3713 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
3714 .master = &dra7xx_l4_per3_hwmod,
3715 .slave = &dra7xx_timer13_hwmod,
3716 .clk = "l3_iclk_div",
3717 .user = OCP_USER_MPU | OCP_USER_SDMA,
3720 /* l4_per3 -> timer14 */
3721 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
3722 .master = &dra7xx_l4_per3_hwmod,
3723 .slave = &dra7xx_timer14_hwmod,
3724 .clk = "l3_iclk_div",
3725 .user = OCP_USER_MPU | OCP_USER_SDMA,
3728 /* l4_per3 -> timer15 */
3729 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
3730 .master = &dra7xx_l4_per3_hwmod,
3731 .slave = &dra7xx_timer15_hwmod,
3732 .clk = "l3_iclk_div",
3733 .user = OCP_USER_MPU | OCP_USER_SDMA,
3736 /* l4_per3 -> timer16 */
3737 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
3738 .master = &dra7xx_l4_per3_hwmod,
3739 .slave = &dra7xx_timer16_hwmod,
3740 .clk = "l3_iclk_div",
3741 .user = OCP_USER_MPU | OCP_USER_SDMA,
3744 /* l4_per1 -> uart1 */
3745 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
3746 .master = &dra7xx_l4_per1_hwmod,
3747 .slave = &dra7xx_uart1_hwmod,
3748 .clk = "l3_iclk_div",
3749 .user = OCP_USER_MPU | OCP_USER_SDMA,
3752 /* l4_per1 -> uart2 */
3753 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
3754 .master = &dra7xx_l4_per1_hwmod,
3755 .slave = &dra7xx_uart2_hwmod,
3756 .clk = "l3_iclk_div",
3757 .user = OCP_USER_MPU | OCP_USER_SDMA,
3760 /* l4_per1 -> uart3 */
3761 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
3762 .master = &dra7xx_l4_per1_hwmod,
3763 .slave = &dra7xx_uart3_hwmod,
3764 .clk = "l3_iclk_div",
3765 .user = OCP_USER_MPU | OCP_USER_SDMA,
3768 /* l4_per1 -> uart4 */
3769 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
3770 .master = &dra7xx_l4_per1_hwmod,
3771 .slave = &dra7xx_uart4_hwmod,
3772 .clk = "l3_iclk_div",
3773 .user = OCP_USER_MPU | OCP_USER_SDMA,
3776 /* l4_per1 -> uart5 */
3777 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
3778 .master = &dra7xx_l4_per1_hwmod,
3779 .slave = &dra7xx_uart5_hwmod,
3780 .clk = "l3_iclk_div",
3781 .user = OCP_USER_MPU | OCP_USER_SDMA,
3784 /* l4_per1 -> uart6 */
3785 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
3786 .master = &dra7xx_l4_per1_hwmod,
3787 .slave = &dra7xx_uart6_hwmod,
3788 .clk = "l3_iclk_div",
3789 .user = OCP_USER_MPU | OCP_USER_SDMA,
3792 /* l4_per2 -> uart7 */
3793 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
3794 .master = &dra7xx_l4_per2_hwmod,
3795 .slave = &dra7xx_uart7_hwmod,
3796 .clk = "l3_iclk_div",
3797 .user = OCP_USER_MPU | OCP_USER_SDMA,
3800 /* l4_per1 -> des */
3801 static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = {
3802 .master = &dra7xx_l4_per1_hwmod,
3803 .slave = &dra7xx_des_hwmod,
3804 .clk = "l3_iclk_div",
3805 .user = OCP_USER_MPU | OCP_USER_SDMA,
3808 /* l4_per2 -> uart8 */
3809 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
3810 .master = &dra7xx_l4_per2_hwmod,
3811 .slave = &dra7xx_uart8_hwmod,
3812 .clk = "l3_iclk_div",
3813 .user = OCP_USER_MPU | OCP_USER_SDMA,
3816 /* l4_per2 -> uart9 */
3817 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
3818 .master = &dra7xx_l4_per2_hwmod,
3819 .slave = &dra7xx_uart9_hwmod,
3820 .clk = "l3_iclk_div",
3821 .user = OCP_USER_MPU | OCP_USER_SDMA,
3824 /* l4_wkup -> uart10 */
3825 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
3826 .master = &dra7xx_l4_wkup_hwmod,
3827 .slave = &dra7xx_uart10_hwmod,
3828 .clk = "wkupaon_iclk_mux",
3829 .user = OCP_USER_MPU | OCP_USER_SDMA,
3832 /* l4_per1 -> rng */
3833 static struct omap_hwmod_ocp_if dra7xx_l4_per1__rng = {
3834 .master = &dra7xx_l4_per1_hwmod,
3835 .slave = &dra7xx_rng_hwmod,
3836 .user = OCP_USER_MPU,
3839 /* l4_per3 -> usb_otg_ss1 */
3840 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
3841 .master = &dra7xx_l4_per3_hwmod,
3842 .slave = &dra7xx_usb_otg_ss1_hwmod,
3843 .clk = "dpll_core_h13x2_ck",
3844 .user = OCP_USER_MPU | OCP_USER_SDMA,
3847 /* l4_per3 -> usb_otg_ss2 */
3848 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
3849 .master = &dra7xx_l4_per3_hwmod,
3850 .slave = &dra7xx_usb_otg_ss2_hwmod,
3851 .clk = "dpll_core_h13x2_ck",
3852 .user = OCP_USER_MPU | OCP_USER_SDMA,
3855 /* l4_per3 -> usb_otg_ss3 */
3856 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
3857 .master = &dra7xx_l4_per3_hwmod,
3858 .slave = &dra7xx_usb_otg_ss3_hwmod,
3859 .clk = "dpll_core_h13x2_ck",
3860 .user = OCP_USER_MPU | OCP_USER_SDMA,
3863 /* l4_per3 -> usb_otg_ss4 */
3864 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
3865 .master = &dra7xx_l4_per3_hwmod,
3866 .slave = &dra7xx_usb_otg_ss4_hwmod,
3867 .clk = "dpll_core_h13x2_ck",
3868 .user = OCP_USER_MPU | OCP_USER_SDMA,
3871 /* l3_main_1 -> vcp1 */
3872 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
3873 .master = &dra7xx_l3_main_1_hwmod,
3874 .slave = &dra7xx_vcp1_hwmod,
3875 .clk = "l3_iclk_div",
3876 .user = OCP_USER_MPU | OCP_USER_SDMA,
3879 /* l4_per2 -> vcp1 */
3880 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
3881 .master = &dra7xx_l4_per2_hwmod,
3882 .slave = &dra7xx_vcp1_hwmod,
3883 .clk = "l3_iclk_div",
3884 .user = OCP_USER_MPU | OCP_USER_SDMA,
3887 /* l3_main_1 -> vcp2 */
3888 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
3889 .master = &dra7xx_l3_main_1_hwmod,
3890 .slave = &dra7xx_vcp2_hwmod,
3891 .clk = "l3_iclk_div",
3892 .user = OCP_USER_MPU | OCP_USER_SDMA,
3895 /* l4_per2 -> vcp2 */
3896 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
3897 .master = &dra7xx_l4_per2_hwmod,
3898 .slave = &dra7xx_vcp2_hwmod,
3899 .clk = "l3_iclk_div",
3900 .user = OCP_USER_MPU | OCP_USER_SDMA,
3903 /* l4_wkup -> wd_timer2 */
3904 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
3905 .master = &dra7xx_l4_wkup_hwmod,
3906 .slave = &dra7xx_wd_timer2_hwmod,
3907 .clk = "wkupaon_iclk_mux",
3908 .user = OCP_USER_MPU | OCP_USER_SDMA,
3911 /* l4_per2 -> epwmss0 */
3912 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0 = {
3913 .master = &dra7xx_l4_per2_hwmod,
3914 .slave = &dra7xx_epwmss0_hwmod,
3915 .clk = "l4_root_clk_div",
3916 .user = OCP_USER_MPU,
3919 /* l4_per2 -> epwmss1 */
3920 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1 = {
3921 .master = &dra7xx_l4_per2_hwmod,
3922 .slave = &dra7xx_epwmss1_hwmod,
3923 .clk = "l4_root_clk_div",
3924 .user = OCP_USER_MPU,
3927 /* l4_per2 -> epwmss2 */
3928 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = {
3929 .master = &dra7xx_l4_per2_hwmod,
3930 .slave = &dra7xx_epwmss2_hwmod,
3931 .clk = "l4_root_clk_div",
3932 .user = OCP_USER_MPU,
3935 static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
3936 &dra7xx_l3_main_1__dmm,
3937 &dra7xx_l3_main_2__l3_instr,
3938 &dra7xx_l4_cfg__l3_main_1,
3939 &dra7xx_mpu__l3_main_1,
3940 &dra7xx_l3_main_1__l3_main_2,
3941 &dra7xx_l4_cfg__l3_main_2,
3942 &dra7xx_l3_main_1__l4_cfg,
3943 &dra7xx_l3_main_1__l4_per1,
3944 &dra7xx_l3_main_1__l4_per2,
3945 &dra7xx_l3_main_1__l4_per3,
3946 &dra7xx_l3_main_1__l4_wkup,
3947 &dra7xx_l4_per2__atl,
3948 &dra7xx_l3_main_1__bb2d,
3949 &dra7xx_l4_wkup__counter_32k,
3950 &dra7xx_l4_wkup__ctrl_module_wkup,
3951 &dra7xx_l4_wkup__dcan1,
3952 &dra7xx_l4_per2__dcan2,
3953 &dra7xx_l4_per2__cpgmac0,
3954 &dra7xx_l4_per2__mcasp1,
3955 &dra7xx_l3_main_1__mcasp1,
3956 &dra7xx_l4_per2__mcasp2,
3957 &dra7xx_l3_main_1__mcasp2,
3958 &dra7xx_l4_per2__mcasp3,
3959 &dra7xx_l3_main_1__mcasp3,
3960 &dra7xx_l4_per2__mcasp4,
3961 &dra7xx_l4_per2__mcasp5,
3962 &dra7xx_l4_per2__mcasp6,
3963 &dra7xx_l4_per2__mcasp7,
3964 &dra7xx_l4_per2__mcasp8,
3966 &dra7xx_l4_cfg__dma_system,
3967 &dra7xx_l3_main_1__tpcc,
3968 &dra7xx_l3_main_1__tptc0,
3969 &dra7xx_l3_main_1__tptc1,
3970 &dra7xx_l3_main_1__dss,
3971 &dra7xx_l3_main_1__dispc,
3972 &dra7xx_l3_main_1__hdmi,
3973 &dra7xx_l3_main_1__aes1,
3974 &dra7xx_l3_main_1__aes2,
3975 &dra7xx_l3_main_1__sha0,
3976 &dra7xx_l4_per1__elm,
3977 &dra7xx_l4_wkup__gpio1,
3978 &dra7xx_l4_per1__gpio2,
3979 &dra7xx_l4_per1__gpio3,
3980 &dra7xx_l4_per1__gpio4,
3981 &dra7xx_l4_per1__gpio5,
3982 &dra7xx_l4_per1__gpio6,
3983 &dra7xx_l4_per1__gpio7,
3984 &dra7xx_l4_per1__gpio8,
3985 &dra7xx_l3_main_1__gpmc,
3986 &dra7xx_l4_per1__hdq1w,
3987 &dra7xx_l4_per1__i2c1,
3988 &dra7xx_l4_per1__i2c2,
3989 &dra7xx_l4_per1__i2c3,
3990 &dra7xx_l4_per1__i2c4,
3991 &dra7xx_l4_per1__i2c5,
3992 &dra7xx_l4_cfg__mailbox1,
3993 &dra7xx_l4_per3__mailbox2,
3994 &dra7xx_l4_per3__mailbox3,
3995 &dra7xx_l4_per3__mailbox4,
3996 &dra7xx_l4_per3__mailbox5,
3997 &dra7xx_l4_per3__mailbox6,
3998 &dra7xx_l4_per3__mailbox7,
3999 &dra7xx_l4_per3__mailbox8,
4000 &dra7xx_l4_per3__mailbox9,
4001 &dra7xx_l4_per3__mailbox10,
4002 &dra7xx_l4_per3__mailbox11,
4003 &dra7xx_l4_per3__mailbox12,
4004 &dra7xx_l4_per3__mailbox13,
4005 &dra7xx_l4_per1__mcspi1,
4006 &dra7xx_l4_per1__mcspi2,
4007 &dra7xx_l4_per1__mcspi3,
4008 &dra7xx_l4_per1__mcspi4,
4009 &dra7xx_l4_per1__mmc1,
4010 &dra7xx_l4_per1__mmc2,
4011 &dra7xx_l4_per1__mmc3,
4012 &dra7xx_l4_per1__mmc4,
4013 &dra7xx_l4_cfg__mpu,
4014 &dra7xx_l4_cfg__ocp2scp1,
4015 &dra7xx_l4_cfg__ocp2scp3,
4016 &dra7xx_l3_main_1__pciess1,
4017 &dra7xx_l4_cfg__pciess1,
4018 &dra7xx_l3_main_1__pciess2,
4019 &dra7xx_l4_cfg__pciess2,
4020 &dra7xx_l3_main_1__qspi,
4021 &dra7xx_l4_cfg__sata,
4022 &dra7xx_l4_cfg__smartreflex_core,
4023 &dra7xx_l4_cfg__smartreflex_mpu,
4024 &dra7xx_l4_cfg__spinlock,
4025 &dra7xx_l4_wkup__timer1,
4026 &dra7xx_l4_per1__timer2,
4027 &dra7xx_l4_per1__timer3,
4028 &dra7xx_l4_per1__timer4,
4029 &dra7xx_l4_per3__timer5,
4030 &dra7xx_l4_per3__timer6,
4031 &dra7xx_l4_per3__timer7,
4032 &dra7xx_l4_per3__timer8,
4033 &dra7xx_l4_per1__timer9,
4034 &dra7xx_l4_per1__timer10,
4035 &dra7xx_l4_per1__timer11,
4036 &dra7xx_l4_per3__timer13,
4037 &dra7xx_l4_per3__timer14,
4038 &dra7xx_l4_per3__timer15,
4039 &dra7xx_l4_per3__timer16,
4040 &dra7xx_l4_per1__uart1,
4041 &dra7xx_l4_per1__uart2,
4042 &dra7xx_l4_per1__uart3,
4043 &dra7xx_l4_per1__uart4,
4044 &dra7xx_l4_per1__uart5,
4045 &dra7xx_l4_per1__uart6,
4046 &dra7xx_l4_per2__uart7,
4047 &dra7xx_l4_per2__uart8,
4048 &dra7xx_l4_per2__uart9,
4049 &dra7xx_l4_wkup__uart10,
4050 &dra7xx_l4_per1__des,
4051 &dra7xx_l4_per3__usb_otg_ss1,
4052 &dra7xx_l4_per3__usb_otg_ss2,
4053 &dra7xx_l4_per3__usb_otg_ss3,
4054 &dra7xx_l3_main_1__vcp1,
4055 &dra7xx_l4_per2__vcp1,
4056 &dra7xx_l3_main_1__vcp2,
4057 &dra7xx_l4_per2__vcp2,
4058 &dra7xx_l4_wkup__wd_timer2,
4059 &dra7xx_l4_per2__epwmss0,
4060 &dra7xx_l4_per2__epwmss1,
4061 &dra7xx_l4_per2__epwmss2,
4065 /* GP-only hwmod links */
4066 static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = {
4067 &dra7xx_l4_wkup__timer12,
4068 &dra7xx_l4_per1__rng,
4072 /* SoC variant specific hwmod links */
4073 static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
4074 &dra7xx_l4_per3__usb_otg_ss4,
4078 static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
4082 static struct omap_hwmod_ocp_if *dra74x_dra72x_hwmod_ocp_ifs[] __initdata = {
4083 &dra7xx_l4_per3__rtcss,
4087 int __init dra7xx_hwmod_init(void)
4092 ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
4094 if (!ret && soc_is_dra74x())
4095 ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
4096 else if (!ret && soc_is_dra72x())
4097 ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
4099 if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP)
4100 ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs);
4102 /* now for the IPs *NOT* in dra71 */
4103 if (!ret && !of_machine_is_compatible("ti,dra718"))
4104 ret = omap_hwmod_register_links(dra74x_dra72x_hwmod_ocp_ifs);