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",
364 .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
365 .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
366 .modulemode = MODULEMODE_SWCTRL,
372 static struct omap_hwmod dra7xx_dcan2_hwmod = {
374 .class = &dra7xx_dcan_hwmod_class,
375 .clkdm_name = "l4per2_clkdm",
376 .main_clk = "sys_clkin1",
379 .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
380 .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
381 .modulemode = MODULEMODE_SWCTRL,
387 static struct omap_hwmod_class_sysconfig dra7xx_epwmss_sysc = {
390 .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET,
391 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
392 .sysc_fields = &omap_hwmod_sysc_type2,
398 static struct omap_hwmod_class dra7xx_epwmss_hwmod_class = {
400 .sysc = &dra7xx_epwmss_sysc,
404 static struct omap_hwmod dra7xx_epwmss0_hwmod = {
406 .class = &dra7xx_epwmss_hwmod_class,
407 .clkdm_name = "l4per2_clkdm",
408 .main_clk = "l4_root_clk_div",
411 .modulemode = MODULEMODE_SWCTRL,
412 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET,
413 .context_offs = DRA7XX_RM_L4PER2_PWMSS1_CONTEXT_OFFSET,
419 static struct omap_hwmod dra7xx_epwmss1_hwmod = {
421 .class = &dra7xx_epwmss_hwmod_class,
422 .clkdm_name = "l4per2_clkdm",
423 .main_clk = "l4_root_clk_div",
426 .modulemode = MODULEMODE_SWCTRL,
427 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET,
428 .context_offs = DRA7XX_RM_L4PER2_PWMSS2_CONTEXT_OFFSET,
434 static struct omap_hwmod dra7xx_epwmss2_hwmod = {
436 .class = &dra7xx_epwmss_hwmod_class,
437 .clkdm_name = "l4per2_clkdm",
438 .main_clk = "l4_root_clk_div",
441 .modulemode = MODULEMODE_SWCTRL,
442 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET,
443 .context_offs = DRA7XX_RM_L4PER2_PWMSS3_CONTEXT_OFFSET,
453 static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
457 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
458 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
459 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
460 SYSS_HAS_RESET_STATUS),
461 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
462 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
463 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
464 .sysc_fields = &omap_hwmod_sysc_type1,
467 static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
469 .sysc = &dra7xx_dma_sysc,
473 static struct omap_dma_dev_attr dma_dev_attr = {
474 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
475 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
480 static struct omap_hwmod dra7xx_dma_system_hwmod = {
481 .name = "dma_system",
482 .class = &dra7xx_dma_hwmod_class,
483 .clkdm_name = "dma_clkdm",
484 .main_clk = "l3_iclk_div",
487 .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
488 .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
491 .dev_attr = &dma_dev_attr,
498 static struct omap_hwmod_class dra7xx_tpcc_hwmod_class = {
502 static struct omap_hwmod dra7xx_tpcc_hwmod = {
504 .class = &dra7xx_tpcc_hwmod_class,
505 .clkdm_name = "l3main1_clkdm",
506 .main_clk = "l3_iclk_div",
509 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL_OFFSET,
510 .context_offs = DRA7XX_RM_L3MAIN1_TPCC_CONTEXT_OFFSET,
519 static struct omap_hwmod_class dra7xx_tptc_hwmod_class = {
524 static struct omap_hwmod dra7xx_tptc0_hwmod = {
526 .class = &dra7xx_tptc_hwmod_class,
527 .clkdm_name = "l3main1_clkdm",
528 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
529 .main_clk = "l3_iclk_div",
532 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL_OFFSET,
533 .context_offs = DRA7XX_RM_L3MAIN1_TPTC1_CONTEXT_OFFSET,
534 .modulemode = MODULEMODE_HWCTRL,
540 static struct omap_hwmod dra7xx_tptc1_hwmod = {
542 .class = &dra7xx_tptc_hwmod_class,
543 .clkdm_name = "l3main1_clkdm",
544 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
545 .main_clk = "l3_iclk_div",
548 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL_OFFSET,
549 .context_offs = DRA7XX_RM_L3MAIN1_TPTC2_CONTEXT_OFFSET,
550 .modulemode = MODULEMODE_HWCTRL,
560 static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
563 .sysc_flags = SYSS_HAS_RESET_STATUS,
566 static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
568 .sysc = &dra7xx_dss_sysc,
569 .reset = omap_dss_reset,
573 static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
574 { .dma_req = 75 + DRA7XX_DMA_REQ_START },
578 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
579 { .role = "dss_clk", .clk = "dss_dss_clk" },
580 { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
581 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
582 { .role = "video2_clk", .clk = "dss_video2_clk" },
583 { .role = "video1_clk", .clk = "dss_video1_clk" },
584 { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
585 { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
588 static struct omap_hwmod dra7xx_dss_hwmod = {
590 .class = &dra7xx_dss_hwmod_class,
591 .clkdm_name = "dss_clkdm",
592 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
593 .sdma_reqs = dra7xx_dss_sdma_reqs,
594 .main_clk = "dss_dss_clk",
597 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
598 .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
599 .modulemode = MODULEMODE_SWCTRL,
602 .opt_clks = dss_opt_clks,
603 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
611 static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
615 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
616 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
617 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
618 SYSS_HAS_RESET_STATUS),
619 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
620 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
621 .sysc_fields = &omap_hwmod_sysc_type1,
624 static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
626 .sysc = &dra7xx_dispc_sysc,
630 /* dss_dispc dev_attr */
631 static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
632 .has_framedonetv_irq = 1,
636 static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
638 .class = &dra7xx_dispc_hwmod_class,
639 .clkdm_name = "dss_clkdm",
640 .main_clk = "dss_dss_clk",
643 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
644 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
647 .dev_attr = &dss_dispc_dev_attr,
648 .parent_hwmod = &dra7xx_dss_hwmod,
656 static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
659 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
661 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
663 .sysc_fields = &omap_hwmod_sysc_type2,
666 static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
668 .sysc = &dra7xx_hdmi_sysc,
673 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
674 { .role = "sys_clk", .clk = "dss_hdmi_clk" },
677 static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
679 .class = &dra7xx_hdmi_hwmod_class,
680 .clkdm_name = "dss_clkdm",
681 .main_clk = "dss_48mhz_clk",
684 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
685 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
688 .opt_clks = dss_hdmi_opt_clks,
689 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
690 .parent_hwmod = &dra7xx_dss_hwmod,
693 /* AES (the 'P' (public) device) */
694 static struct omap_hwmod_class_sysconfig dra7xx_aes_sysc = {
698 .sysc_flags = SYSS_HAS_RESET_STATUS,
701 static struct omap_hwmod_class dra7xx_aes_hwmod_class = {
703 .sysc = &dra7xx_aes_sysc,
708 static struct omap_hwmod dra7xx_aes1_hwmod = {
710 .class = &dra7xx_aes_hwmod_class,
711 .clkdm_name = "l4sec_clkdm",
712 .main_clk = "l3_iclk_div",
715 .clkctrl_offs = DRA7XX_CM_L4SEC_AES1_CLKCTRL_OFFSET,
716 .context_offs = DRA7XX_RM_L4SEC_AES1_CONTEXT_OFFSET,
717 .modulemode = MODULEMODE_HWCTRL,
723 static struct omap_hwmod dra7xx_aes2_hwmod = {
725 .class = &dra7xx_aes_hwmod_class,
726 .clkdm_name = "l4sec_clkdm",
727 .main_clk = "l3_iclk_div",
730 .clkctrl_offs = DRA7XX_CM_L4SEC_AES2_CLKCTRL_OFFSET,
731 .context_offs = DRA7XX_RM_L4SEC_AES2_CONTEXT_OFFSET,
732 .modulemode = MODULEMODE_HWCTRL,
737 /* sha0 HIB2 (the 'P' (public) device) */
738 static struct omap_hwmod_class_sysconfig dra7xx_sha0_sysc = {
742 .sysc_flags = SYSS_HAS_RESET_STATUS,
745 static struct omap_hwmod_class dra7xx_sha0_hwmod_class = {
747 .sysc = &dra7xx_sha0_sysc,
751 struct omap_hwmod dra7xx_sha0_hwmod = {
753 .class = &dra7xx_sha0_hwmod_class,
754 .clkdm_name = "l4sec_clkdm",
755 .main_clk = "l3_iclk_div",
758 .clkctrl_offs = DRA7XX_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
759 .context_offs = DRA7XX_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
760 .modulemode = MODULEMODE_HWCTRL,
770 static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
774 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
775 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
776 SYSS_HAS_RESET_STATUS),
777 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
779 .sysc_fields = &omap_hwmod_sysc_type1,
782 static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
784 .sysc = &dra7xx_elm_sysc,
789 static struct omap_hwmod dra7xx_elm_hwmod = {
791 .class = &dra7xx_elm_hwmod_class,
792 .clkdm_name = "l4per_clkdm",
793 .main_clk = "l3_iclk_div",
796 .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
797 .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
807 static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
811 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
812 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
813 SYSS_HAS_RESET_STATUS),
814 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
816 .sysc_fields = &omap_hwmod_sysc_type1,
819 static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
821 .sysc = &dra7xx_gpio_sysc,
826 static struct omap_gpio_dev_attr gpio_dev_attr = {
832 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
833 { .role = "dbclk", .clk = "gpio1_dbclk" },
836 static struct omap_hwmod dra7xx_gpio1_hwmod = {
838 .class = &dra7xx_gpio_hwmod_class,
839 .clkdm_name = "wkupaon_clkdm",
840 .main_clk = "wkupaon_iclk_mux",
843 .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
844 .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
845 .modulemode = MODULEMODE_HWCTRL,
848 .opt_clks = gpio1_opt_clks,
849 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
850 .dev_attr = &gpio_dev_attr,
854 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
855 { .role = "dbclk", .clk = "gpio2_dbclk" },
858 static struct omap_hwmod dra7xx_gpio2_hwmod = {
860 .class = &dra7xx_gpio_hwmod_class,
861 .clkdm_name = "l4per_clkdm",
862 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
863 .main_clk = "l3_iclk_div",
866 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
867 .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
868 .modulemode = MODULEMODE_HWCTRL,
871 .opt_clks = gpio2_opt_clks,
872 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
873 .dev_attr = &gpio_dev_attr,
877 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
878 { .role = "dbclk", .clk = "gpio3_dbclk" },
881 static struct omap_hwmod dra7xx_gpio3_hwmod = {
883 .class = &dra7xx_gpio_hwmod_class,
884 .clkdm_name = "l4per_clkdm",
885 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
886 .main_clk = "l3_iclk_div",
889 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
890 .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
891 .modulemode = MODULEMODE_HWCTRL,
894 .opt_clks = gpio3_opt_clks,
895 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
896 .dev_attr = &gpio_dev_attr,
900 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
901 { .role = "dbclk", .clk = "gpio4_dbclk" },
904 static struct omap_hwmod dra7xx_gpio4_hwmod = {
906 .class = &dra7xx_gpio_hwmod_class,
907 .clkdm_name = "l4per_clkdm",
908 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
909 .main_clk = "l3_iclk_div",
912 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
913 .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
914 .modulemode = MODULEMODE_HWCTRL,
917 .opt_clks = gpio4_opt_clks,
918 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
919 .dev_attr = &gpio_dev_attr,
923 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
924 { .role = "dbclk", .clk = "gpio5_dbclk" },
927 static struct omap_hwmod dra7xx_gpio5_hwmod = {
929 .class = &dra7xx_gpio_hwmod_class,
930 .clkdm_name = "l4per_clkdm",
931 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
932 .main_clk = "l3_iclk_div",
935 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
936 .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
937 .modulemode = MODULEMODE_HWCTRL,
940 .opt_clks = gpio5_opt_clks,
941 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
942 .dev_attr = &gpio_dev_attr,
946 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
947 { .role = "dbclk", .clk = "gpio6_dbclk" },
950 static struct omap_hwmod dra7xx_gpio6_hwmod = {
952 .class = &dra7xx_gpio_hwmod_class,
953 .clkdm_name = "l4per_clkdm",
954 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
955 .main_clk = "l3_iclk_div",
958 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
959 .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
960 .modulemode = MODULEMODE_HWCTRL,
963 .opt_clks = gpio6_opt_clks,
964 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
965 .dev_attr = &gpio_dev_attr,
969 static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
970 { .role = "dbclk", .clk = "gpio7_dbclk" },
973 static struct omap_hwmod dra7xx_gpio7_hwmod = {
975 .class = &dra7xx_gpio_hwmod_class,
976 .clkdm_name = "l4per_clkdm",
977 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
978 .main_clk = "l3_iclk_div",
981 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
982 .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
983 .modulemode = MODULEMODE_HWCTRL,
986 .opt_clks = gpio7_opt_clks,
987 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
988 .dev_attr = &gpio_dev_attr,
992 static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
993 { .role = "dbclk", .clk = "gpio8_dbclk" },
996 static struct omap_hwmod dra7xx_gpio8_hwmod = {
998 .class = &dra7xx_gpio_hwmod_class,
999 .clkdm_name = "l4per_clkdm",
1000 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1001 .main_clk = "l3_iclk_div",
1004 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
1005 .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
1006 .modulemode = MODULEMODE_HWCTRL,
1009 .opt_clks = gpio8_opt_clks,
1010 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
1011 .dev_attr = &gpio_dev_attr,
1019 static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
1021 .sysc_offs = 0x0010,
1022 .syss_offs = 0x0014,
1023 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1024 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1025 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1026 .sysc_fields = &omap_hwmod_sysc_type1,
1029 static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
1031 .sysc = &dra7xx_gpmc_sysc,
1036 static struct omap_hwmod dra7xx_gpmc_hwmod = {
1038 .class = &dra7xx_gpmc_hwmod_class,
1039 .clkdm_name = "l3main1_clkdm",
1040 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1041 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1042 .main_clk = "l3_iclk_div",
1045 .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
1046 .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
1047 .modulemode = MODULEMODE_HWCTRL,
1057 static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
1059 .sysc_offs = 0x0014,
1060 .syss_offs = 0x0018,
1061 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1062 SYSS_HAS_RESET_STATUS),
1063 .sysc_fields = &omap_hwmod_sysc_type1,
1066 static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
1068 .sysc = &dra7xx_hdq1w_sysc,
1073 static struct omap_hwmod dra7xx_hdq1w_hwmod = {
1075 .class = &dra7xx_hdq1w_hwmod_class,
1076 .clkdm_name = "l4per_clkdm",
1077 .flags = HWMOD_INIT_NO_RESET,
1078 .main_clk = "func_12m_fclk",
1081 .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1082 .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1083 .modulemode = MODULEMODE_SWCTRL,
1093 static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
1094 .sysc_offs = 0x0010,
1095 .syss_offs = 0x0090,
1096 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1097 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1098 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1099 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1101 .clockact = CLOCKACT_TEST_ICLK,
1102 .sysc_fields = &omap_hwmod_sysc_type1,
1105 static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
1107 .sysc = &dra7xx_i2c_sysc,
1108 .reset = &omap_i2c_reset,
1109 .rev = OMAP_I2C_IP_VERSION_2,
1113 static struct omap_i2c_dev_attr i2c_dev_attr = {
1114 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
1118 static struct omap_hwmod dra7xx_i2c1_hwmod = {
1120 .class = &dra7xx_i2c_hwmod_class,
1121 .clkdm_name = "l4per_clkdm",
1122 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1123 .main_clk = "func_96m_fclk",
1126 .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
1127 .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
1128 .modulemode = MODULEMODE_SWCTRL,
1131 .dev_attr = &i2c_dev_attr,
1135 static struct omap_hwmod dra7xx_i2c2_hwmod = {
1137 .class = &dra7xx_i2c_hwmod_class,
1138 .clkdm_name = "l4per_clkdm",
1139 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1140 .main_clk = "func_96m_fclk",
1143 .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
1144 .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
1145 .modulemode = MODULEMODE_SWCTRL,
1148 .dev_attr = &i2c_dev_attr,
1152 static struct omap_hwmod dra7xx_i2c3_hwmod = {
1154 .class = &dra7xx_i2c_hwmod_class,
1155 .clkdm_name = "l4per_clkdm",
1156 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1157 .main_clk = "func_96m_fclk",
1160 .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
1161 .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
1162 .modulemode = MODULEMODE_SWCTRL,
1165 .dev_attr = &i2c_dev_attr,
1169 static struct omap_hwmod dra7xx_i2c4_hwmod = {
1171 .class = &dra7xx_i2c_hwmod_class,
1172 .clkdm_name = "l4per_clkdm",
1173 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1174 .main_clk = "func_96m_fclk",
1177 .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
1178 .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
1179 .modulemode = MODULEMODE_SWCTRL,
1182 .dev_attr = &i2c_dev_attr,
1186 static struct omap_hwmod dra7xx_i2c5_hwmod = {
1188 .class = &dra7xx_i2c_hwmod_class,
1189 .clkdm_name = "ipu_clkdm",
1190 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1191 .main_clk = "func_96m_fclk",
1194 .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
1195 .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
1196 .modulemode = MODULEMODE_SWCTRL,
1199 .dev_attr = &i2c_dev_attr,
1207 static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
1209 .sysc_offs = 0x0010,
1210 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1211 SYSC_HAS_SOFTRESET),
1212 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1213 .sysc_fields = &omap_hwmod_sysc_type2,
1216 static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
1218 .sysc = &dra7xx_mailbox_sysc,
1222 static struct omap_hwmod dra7xx_mailbox1_hwmod = {
1224 .class = &dra7xx_mailbox_hwmod_class,
1225 .clkdm_name = "l4cfg_clkdm",
1228 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
1229 .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
1235 static struct omap_hwmod dra7xx_mailbox2_hwmod = {
1237 .class = &dra7xx_mailbox_hwmod_class,
1238 .clkdm_name = "l4cfg_clkdm",
1241 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
1242 .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
1248 static struct omap_hwmod dra7xx_mailbox3_hwmod = {
1250 .class = &dra7xx_mailbox_hwmod_class,
1251 .clkdm_name = "l4cfg_clkdm",
1254 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
1255 .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
1261 static struct omap_hwmod dra7xx_mailbox4_hwmod = {
1263 .class = &dra7xx_mailbox_hwmod_class,
1264 .clkdm_name = "l4cfg_clkdm",
1267 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
1268 .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
1274 static struct omap_hwmod dra7xx_mailbox5_hwmod = {
1276 .class = &dra7xx_mailbox_hwmod_class,
1277 .clkdm_name = "l4cfg_clkdm",
1280 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
1281 .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
1287 static struct omap_hwmod dra7xx_mailbox6_hwmod = {
1289 .class = &dra7xx_mailbox_hwmod_class,
1290 .clkdm_name = "l4cfg_clkdm",
1293 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
1294 .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
1300 static struct omap_hwmod dra7xx_mailbox7_hwmod = {
1302 .class = &dra7xx_mailbox_hwmod_class,
1303 .clkdm_name = "l4cfg_clkdm",
1306 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
1307 .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
1313 static struct omap_hwmod dra7xx_mailbox8_hwmod = {
1315 .class = &dra7xx_mailbox_hwmod_class,
1316 .clkdm_name = "l4cfg_clkdm",
1319 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
1320 .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
1326 static struct omap_hwmod dra7xx_mailbox9_hwmod = {
1328 .class = &dra7xx_mailbox_hwmod_class,
1329 .clkdm_name = "l4cfg_clkdm",
1332 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
1333 .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
1339 static struct omap_hwmod dra7xx_mailbox10_hwmod = {
1340 .name = "mailbox10",
1341 .class = &dra7xx_mailbox_hwmod_class,
1342 .clkdm_name = "l4cfg_clkdm",
1345 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
1346 .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
1352 static struct omap_hwmod dra7xx_mailbox11_hwmod = {
1353 .name = "mailbox11",
1354 .class = &dra7xx_mailbox_hwmod_class,
1355 .clkdm_name = "l4cfg_clkdm",
1358 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
1359 .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
1365 static struct omap_hwmod dra7xx_mailbox12_hwmod = {
1366 .name = "mailbox12",
1367 .class = &dra7xx_mailbox_hwmod_class,
1368 .clkdm_name = "l4cfg_clkdm",
1371 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
1372 .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
1378 static struct omap_hwmod dra7xx_mailbox13_hwmod = {
1379 .name = "mailbox13",
1380 .class = &dra7xx_mailbox_hwmod_class,
1381 .clkdm_name = "l4cfg_clkdm",
1384 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
1385 .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
1395 static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
1397 .sysc_offs = 0x0010,
1398 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1399 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1400 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1402 .sysc_fields = &omap_hwmod_sysc_type2,
1405 static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
1407 .sysc = &dra7xx_mcspi_sysc,
1408 .rev = OMAP4_MCSPI_REV,
1412 /* mcspi1 dev_attr */
1413 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1414 .num_chipselect = 4,
1417 static struct omap_hwmod dra7xx_mcspi1_hwmod = {
1419 .class = &dra7xx_mcspi_hwmod_class,
1420 .clkdm_name = "l4per_clkdm",
1421 .main_clk = "func_48m_fclk",
1424 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1425 .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1426 .modulemode = MODULEMODE_SWCTRL,
1429 .dev_attr = &mcspi1_dev_attr,
1433 /* mcspi2 dev_attr */
1434 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1435 .num_chipselect = 2,
1438 static struct omap_hwmod dra7xx_mcspi2_hwmod = {
1440 .class = &dra7xx_mcspi_hwmod_class,
1441 .clkdm_name = "l4per_clkdm",
1442 .main_clk = "func_48m_fclk",
1445 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1446 .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1447 .modulemode = MODULEMODE_SWCTRL,
1450 .dev_attr = &mcspi2_dev_attr,
1454 /* mcspi3 dev_attr */
1455 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1456 .num_chipselect = 2,
1459 static struct omap_hwmod dra7xx_mcspi3_hwmod = {
1461 .class = &dra7xx_mcspi_hwmod_class,
1462 .clkdm_name = "l4per_clkdm",
1463 .main_clk = "func_48m_fclk",
1466 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1467 .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1468 .modulemode = MODULEMODE_SWCTRL,
1471 .dev_attr = &mcspi3_dev_attr,
1475 /* mcspi4 dev_attr */
1476 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1477 .num_chipselect = 1,
1480 static struct omap_hwmod dra7xx_mcspi4_hwmod = {
1482 .class = &dra7xx_mcspi_hwmod_class,
1483 .clkdm_name = "l4per_clkdm",
1484 .main_clk = "func_48m_fclk",
1487 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1488 .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1489 .modulemode = MODULEMODE_SWCTRL,
1492 .dev_attr = &mcspi4_dev_attr,
1499 static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
1500 .sysc_offs = 0x0004,
1501 .sysc_flags = SYSC_HAS_SIDLEMODE,
1502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1503 .sysc_fields = &omap_hwmod_sysc_type3,
1506 static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
1508 .sysc = &dra7xx_mcasp_sysc,
1512 static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = {
1513 { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" },
1514 { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" },
1517 static struct omap_hwmod dra7xx_mcasp1_hwmod = {
1519 .class = &dra7xx_mcasp_hwmod_class,
1520 .clkdm_name = "ipu_clkdm",
1521 .main_clk = "mcasp1_aux_gfclk_mux",
1522 .flags = HWMOD_OPT_CLKS_NEEDED,
1525 .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET,
1526 .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET,
1527 .modulemode = MODULEMODE_SWCTRL,
1530 .opt_clks = mcasp1_opt_clks,
1531 .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks),
1535 static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = {
1536 { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" },
1537 { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" },
1540 static struct omap_hwmod dra7xx_mcasp2_hwmod = {
1542 .class = &dra7xx_mcasp_hwmod_class,
1543 .clkdm_name = "l4per2_clkdm",
1544 .main_clk = "mcasp2_aux_gfclk_mux",
1545 .flags = HWMOD_OPT_CLKS_NEEDED,
1548 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET,
1549 .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET,
1550 .modulemode = MODULEMODE_SWCTRL,
1553 .opt_clks = mcasp2_opt_clks,
1554 .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks),
1558 static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
1559 { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
1562 static struct omap_hwmod dra7xx_mcasp3_hwmod = {
1564 .class = &dra7xx_mcasp_hwmod_class,
1565 .clkdm_name = "l4per2_clkdm",
1566 .main_clk = "mcasp3_aux_gfclk_mux",
1567 .flags = HWMOD_OPT_CLKS_NEEDED,
1570 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
1571 .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
1572 .modulemode = MODULEMODE_SWCTRL,
1575 .opt_clks = mcasp3_opt_clks,
1576 .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
1580 static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = {
1581 { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" },
1584 static struct omap_hwmod dra7xx_mcasp4_hwmod = {
1586 .class = &dra7xx_mcasp_hwmod_class,
1587 .clkdm_name = "l4per2_clkdm",
1588 .main_clk = "mcasp4_aux_gfclk_mux",
1589 .flags = HWMOD_OPT_CLKS_NEEDED,
1592 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET,
1593 .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET,
1594 .modulemode = MODULEMODE_SWCTRL,
1597 .opt_clks = mcasp4_opt_clks,
1598 .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks),
1602 static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = {
1603 { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" },
1606 static struct omap_hwmod dra7xx_mcasp5_hwmod = {
1608 .class = &dra7xx_mcasp_hwmod_class,
1609 .clkdm_name = "l4per2_clkdm",
1610 .main_clk = "mcasp5_aux_gfclk_mux",
1611 .flags = HWMOD_OPT_CLKS_NEEDED,
1614 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET,
1615 .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET,
1616 .modulemode = MODULEMODE_SWCTRL,
1619 .opt_clks = mcasp5_opt_clks,
1620 .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks),
1624 static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = {
1625 { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" },
1628 static struct omap_hwmod dra7xx_mcasp6_hwmod = {
1630 .class = &dra7xx_mcasp_hwmod_class,
1631 .clkdm_name = "l4per2_clkdm",
1632 .main_clk = "mcasp6_aux_gfclk_mux",
1633 .flags = HWMOD_OPT_CLKS_NEEDED,
1636 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET,
1637 .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET,
1638 .modulemode = MODULEMODE_SWCTRL,
1641 .opt_clks = mcasp6_opt_clks,
1642 .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks),
1646 static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = {
1647 { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" },
1650 static struct omap_hwmod dra7xx_mcasp7_hwmod = {
1652 .class = &dra7xx_mcasp_hwmod_class,
1653 .clkdm_name = "l4per2_clkdm",
1654 .main_clk = "mcasp7_aux_gfclk_mux",
1655 .flags = HWMOD_OPT_CLKS_NEEDED,
1658 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET,
1659 .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET,
1660 .modulemode = MODULEMODE_SWCTRL,
1663 .opt_clks = mcasp7_opt_clks,
1664 .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks),
1668 static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = {
1669 { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" },
1672 static struct omap_hwmod dra7xx_mcasp8_hwmod = {
1674 .class = &dra7xx_mcasp_hwmod_class,
1675 .clkdm_name = "l4per2_clkdm",
1676 .main_clk = "mcasp8_aux_gfclk_mux",
1677 .flags = HWMOD_OPT_CLKS_NEEDED,
1680 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET,
1681 .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET,
1682 .modulemode = MODULEMODE_SWCTRL,
1685 .opt_clks = mcasp8_opt_clks,
1686 .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks),
1694 static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
1696 .sysc_offs = 0x0010,
1697 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1698 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1699 SYSC_HAS_SOFTRESET),
1700 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1701 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1702 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1703 .sysc_fields = &omap_hwmod_sysc_type2,
1706 static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
1708 .sysc = &dra7xx_mmc_sysc,
1712 static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1713 { .role = "clk32k", .clk = "mmc1_clk32k" },
1717 static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
1718 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1721 static struct omap_hwmod dra7xx_mmc1_hwmod = {
1723 .class = &dra7xx_mmc_hwmod_class,
1724 .clkdm_name = "l3init_clkdm",
1725 .main_clk = "mmc1_fclk_div",
1728 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1729 .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1730 .modulemode = MODULEMODE_SWCTRL,
1733 .opt_clks = mmc1_opt_clks,
1734 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1735 .dev_attr = &mmc1_dev_attr,
1739 static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
1740 { .role = "clk32k", .clk = "mmc2_clk32k" },
1743 static struct omap_hwmod dra7xx_mmc2_hwmod = {
1745 .class = &dra7xx_mmc_hwmod_class,
1746 .clkdm_name = "l3init_clkdm",
1747 .main_clk = "mmc2_fclk_div",
1750 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1751 .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1752 .modulemode = MODULEMODE_SWCTRL,
1755 .opt_clks = mmc2_opt_clks,
1756 .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
1760 static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
1761 { .role = "clk32k", .clk = "mmc3_clk32k" },
1764 static struct omap_hwmod dra7xx_mmc3_hwmod = {
1766 .class = &dra7xx_mmc_hwmod_class,
1767 .clkdm_name = "l4per_clkdm",
1768 .main_clk = "mmc3_gfclk_div",
1771 .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1772 .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1773 .modulemode = MODULEMODE_SWCTRL,
1776 .opt_clks = mmc3_opt_clks,
1777 .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
1781 static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
1782 { .role = "clk32k", .clk = "mmc4_clk32k" },
1785 static struct omap_hwmod dra7xx_mmc4_hwmod = {
1787 .class = &dra7xx_mmc_hwmod_class,
1788 .clkdm_name = "l4per_clkdm",
1789 .main_clk = "mmc4_gfclk_div",
1792 .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1793 .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1794 .modulemode = MODULEMODE_SWCTRL,
1797 .opt_clks = mmc4_opt_clks,
1798 .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
1806 static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
1811 static struct omap_hwmod dra7xx_mpu_hwmod = {
1813 .class = &dra7xx_mpu_hwmod_class,
1814 .clkdm_name = "mpu_clkdm",
1815 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1816 .main_clk = "dpll_mpu_m2_ck",
1819 .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1820 .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
1830 static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
1832 .sysc_offs = 0x0010,
1833 .syss_offs = 0x0014,
1834 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1835 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1836 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1837 .sysc_fields = &omap_hwmod_sysc_type1,
1840 static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
1842 .sysc = &dra7xx_ocp2scp_sysc,
1846 static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
1848 .class = &dra7xx_ocp2scp_hwmod_class,
1849 .clkdm_name = "l3init_clkdm",
1850 .main_clk = "l4_root_clk_div",
1853 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1854 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1855 .modulemode = MODULEMODE_HWCTRL,
1861 static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
1863 .class = &dra7xx_ocp2scp_hwmod_class,
1864 .clkdm_name = "l3init_clkdm",
1865 .main_clk = "l4_root_clk_div",
1868 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
1869 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
1870 .modulemode = MODULEMODE_HWCTRL,
1881 * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
1882 * functionality of OMAP HWMOD layer does not deassert the hardreset lines
1883 * associated with an IP automatically leaving the driver to handle that
1884 * by itself. This does not work for PCIeSS which needs the reset lines
1885 * deasserted for the driver to start accessing registers.
1887 * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
1888 * lines after asserting them.
1890 static int dra7xx_pciess_reset(struct omap_hwmod *oh)
1894 for (i = 0; i < oh->rst_lines_cnt; i++) {
1895 omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
1896 omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
1902 static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
1904 .reset = dra7xx_pciess_reset,
1908 static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
1909 { .name = "pcie", .rst_shift = 0 },
1912 static struct omap_hwmod dra7xx_pciess1_hwmod = {
1914 .class = &dra7xx_pciess_hwmod_class,
1915 .clkdm_name = "pcie_clkdm",
1916 .rst_lines = dra7xx_pciess1_resets,
1917 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
1918 .main_clk = "l4_root_clk_div",
1921 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
1922 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
1923 .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
1924 .modulemode = MODULEMODE_SWCTRL,
1930 static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
1931 { .name = "pcie", .rst_shift = 1 },
1935 static struct omap_hwmod dra7xx_pciess2_hwmod = {
1937 .class = &dra7xx_pciess_hwmod_class,
1938 .clkdm_name = "pcie_clkdm",
1939 .rst_lines = dra7xx_pciess2_resets,
1940 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
1941 .main_clk = "l4_root_clk_div",
1944 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
1945 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
1946 .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
1947 .modulemode = MODULEMODE_SWCTRL,
1957 static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
1958 .sysc_offs = 0x0010,
1959 .sysc_flags = SYSC_HAS_SIDLEMODE,
1960 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1962 .sysc_fields = &omap_hwmod_sysc_type2,
1965 static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
1967 .sysc = &dra7xx_qspi_sysc,
1971 static struct omap_hwmod dra7xx_qspi_hwmod = {
1973 .class = &dra7xx_qspi_hwmod_class,
1974 .clkdm_name = "l4per2_clkdm",
1975 .main_clk = "qspi_gfclk_div",
1978 .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
1979 .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
1980 .modulemode = MODULEMODE_SWCTRL,
1989 static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
1990 .sysc_offs = 0x0078,
1991 .sysc_flags = SYSC_HAS_SIDLEMODE,
1992 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1994 .sysc_fields = &omap_hwmod_sysc_type3,
1997 static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
1999 .sysc = &dra7xx_rtcss_sysc,
2000 .unlock = &omap_hwmod_rtc_unlock,
2001 .lock = &omap_hwmod_rtc_lock,
2005 static struct omap_hwmod dra7xx_rtcss_hwmod = {
2007 .class = &dra7xx_rtcss_hwmod_class,
2008 .clkdm_name = "rtc_clkdm",
2009 .main_clk = "sys_32k_ck",
2012 .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
2013 .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
2014 .modulemode = MODULEMODE_SWCTRL,
2024 static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
2025 .sysc_offs = 0x0000,
2026 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
2027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2028 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2029 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2030 .sysc_fields = &omap_hwmod_sysc_type2,
2033 static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
2035 .sysc = &dra7xx_sata_sysc,
2040 static struct omap_hwmod dra7xx_sata_hwmod = {
2042 .class = &dra7xx_sata_hwmod_class,
2043 .clkdm_name = "l3init_clkdm",
2044 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2045 .main_clk = "func_48m_fclk",
2049 .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
2050 .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
2051 .modulemode = MODULEMODE_SWCTRL,
2057 * 'smartreflex' class
2061 /* The IP is not compliant to type1 / type2 scheme */
2062 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2067 static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
2068 .sysc_offs = 0x0038,
2069 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2070 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2072 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2075 static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
2076 .name = "smartreflex",
2077 .sysc = &dra7xx_smartreflex_sysc,
2081 /* smartreflex_core */
2082 /* smartreflex_core dev_attr */
2083 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2084 .sensor_voltdm_name = "core",
2087 static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
2088 .name = "smartreflex_core",
2089 .class = &dra7xx_smartreflex_hwmod_class,
2090 .clkdm_name = "coreaon_clkdm",
2091 .main_clk = "wkupaon_iclk_mux",
2094 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
2095 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
2096 .modulemode = MODULEMODE_SWCTRL,
2099 .dev_attr = &smartreflex_core_dev_attr,
2102 /* smartreflex_mpu */
2103 /* smartreflex_mpu dev_attr */
2104 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2105 .sensor_voltdm_name = "mpu",
2108 static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
2109 .name = "smartreflex_mpu",
2110 .class = &dra7xx_smartreflex_hwmod_class,
2111 .clkdm_name = "coreaon_clkdm",
2112 .main_clk = "wkupaon_iclk_mux",
2115 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
2116 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
2117 .modulemode = MODULEMODE_SWCTRL,
2120 .dev_attr = &smartreflex_mpu_dev_attr,
2128 static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
2130 .sysc_offs = 0x0010,
2131 .syss_offs = 0x0014,
2132 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2133 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2134 SYSS_HAS_RESET_STATUS),
2135 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2136 .sysc_fields = &omap_hwmod_sysc_type1,
2139 static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
2141 .sysc = &dra7xx_spinlock_sysc,
2145 static struct omap_hwmod dra7xx_spinlock_hwmod = {
2147 .class = &dra7xx_spinlock_hwmod_class,
2148 .clkdm_name = "l4cfg_clkdm",
2149 .main_clk = "l3_iclk_div",
2152 .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
2153 .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
2161 * This class contains several variants: ['timer_1ms', 'timer_secure',
2165 static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
2167 .sysc_offs = 0x0010,
2168 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2169 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2170 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2172 .sysc_fields = &omap_hwmod_sysc_type2,
2175 static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
2177 .sysc = &dra7xx_timer_1ms_sysc,
2180 static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
2182 .sysc_offs = 0x0010,
2183 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2184 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2185 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2187 .sysc_fields = &omap_hwmod_sysc_type2,
2190 static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
2192 .sysc = &dra7xx_timer_sysc,
2196 static struct omap_hwmod dra7xx_timer1_hwmod = {
2198 .class = &dra7xx_timer_1ms_hwmod_class,
2199 .clkdm_name = "wkupaon_clkdm",
2200 .main_clk = "timer1_gfclk_mux",
2203 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
2204 .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
2205 .modulemode = MODULEMODE_SWCTRL,
2211 static struct omap_hwmod dra7xx_timer2_hwmod = {
2213 .class = &dra7xx_timer_1ms_hwmod_class,
2214 .clkdm_name = "l4per_clkdm",
2215 .main_clk = "timer2_gfclk_mux",
2218 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
2219 .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
2220 .modulemode = MODULEMODE_SWCTRL,
2226 static struct omap_hwmod dra7xx_timer3_hwmod = {
2228 .class = &dra7xx_timer_hwmod_class,
2229 .clkdm_name = "l4per_clkdm",
2230 .main_clk = "timer3_gfclk_mux",
2233 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
2234 .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
2235 .modulemode = MODULEMODE_SWCTRL,
2241 static struct omap_hwmod dra7xx_timer4_hwmod = {
2243 .class = &dra7xx_timer_hwmod_class,
2244 .clkdm_name = "l4per_clkdm",
2245 .main_clk = "timer4_gfclk_mux",
2248 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
2249 .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
2250 .modulemode = MODULEMODE_SWCTRL,
2256 static struct omap_hwmod dra7xx_timer5_hwmod = {
2258 .class = &dra7xx_timer_hwmod_class,
2259 .clkdm_name = "ipu_clkdm",
2260 .main_clk = "timer5_gfclk_mux",
2263 .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
2264 .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
2265 .modulemode = MODULEMODE_SWCTRL,
2271 static struct omap_hwmod dra7xx_timer6_hwmod = {
2273 .class = &dra7xx_timer_hwmod_class,
2274 .clkdm_name = "ipu_clkdm",
2275 .main_clk = "timer6_gfclk_mux",
2278 .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
2279 .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
2280 .modulemode = MODULEMODE_SWCTRL,
2286 static struct omap_hwmod dra7xx_timer7_hwmod = {
2288 .class = &dra7xx_timer_hwmod_class,
2289 .clkdm_name = "ipu_clkdm",
2290 .main_clk = "timer7_gfclk_mux",
2293 .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
2294 .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
2295 .modulemode = MODULEMODE_SWCTRL,
2301 static struct omap_hwmod dra7xx_timer8_hwmod = {
2303 .class = &dra7xx_timer_hwmod_class,
2304 .clkdm_name = "ipu_clkdm",
2305 .main_clk = "timer8_gfclk_mux",
2308 .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
2309 .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
2310 .modulemode = MODULEMODE_SWCTRL,
2316 static struct omap_hwmod dra7xx_timer9_hwmod = {
2318 .class = &dra7xx_timer_hwmod_class,
2319 .clkdm_name = "l4per_clkdm",
2320 .main_clk = "timer9_gfclk_mux",
2323 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
2324 .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
2325 .modulemode = MODULEMODE_SWCTRL,
2331 static struct omap_hwmod dra7xx_timer10_hwmod = {
2333 .class = &dra7xx_timer_1ms_hwmod_class,
2334 .clkdm_name = "l4per_clkdm",
2335 .main_clk = "timer10_gfclk_mux",
2338 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
2339 .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
2340 .modulemode = MODULEMODE_SWCTRL,
2346 static struct omap_hwmod dra7xx_timer11_hwmod = {
2348 .class = &dra7xx_timer_hwmod_class,
2349 .clkdm_name = "l4per_clkdm",
2350 .main_clk = "timer11_gfclk_mux",
2353 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
2354 .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
2355 .modulemode = MODULEMODE_SWCTRL,
2361 static struct omap_hwmod dra7xx_timer12_hwmod = {
2363 .class = &dra7xx_timer_hwmod_class,
2364 .clkdm_name = "wkupaon_clkdm",
2365 .main_clk = "secure_32k_clk_src_ck",
2368 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER12_CLKCTRL_OFFSET,
2369 .context_offs = DRA7XX_RM_WKUPAON_TIMER12_CONTEXT_OFFSET,
2375 static struct omap_hwmod dra7xx_timer13_hwmod = {
2377 .class = &dra7xx_timer_hwmod_class,
2378 .clkdm_name = "l4per3_clkdm",
2379 .main_clk = "timer13_gfclk_mux",
2382 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
2383 .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
2384 .modulemode = MODULEMODE_SWCTRL,
2390 static struct omap_hwmod dra7xx_timer14_hwmod = {
2392 .class = &dra7xx_timer_hwmod_class,
2393 .clkdm_name = "l4per3_clkdm",
2394 .main_clk = "timer14_gfclk_mux",
2397 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
2398 .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
2399 .modulemode = MODULEMODE_SWCTRL,
2405 static struct omap_hwmod dra7xx_timer15_hwmod = {
2407 .class = &dra7xx_timer_hwmod_class,
2408 .clkdm_name = "l4per3_clkdm",
2409 .main_clk = "timer15_gfclk_mux",
2412 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
2413 .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
2414 .modulemode = MODULEMODE_SWCTRL,
2420 static struct omap_hwmod dra7xx_timer16_hwmod = {
2422 .class = &dra7xx_timer_hwmod_class,
2423 .clkdm_name = "l4per3_clkdm",
2424 .main_clk = "timer16_gfclk_mux",
2427 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
2428 .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
2429 .modulemode = MODULEMODE_SWCTRL,
2439 static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
2441 .sysc_offs = 0x0054,
2442 .syss_offs = 0x0058,
2443 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2444 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2445 SYSS_HAS_RESET_STATUS),
2446 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2448 .sysc_fields = &omap_hwmod_sysc_type1,
2451 static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
2453 .sysc = &dra7xx_uart_sysc,
2457 static struct omap_hwmod dra7xx_uart1_hwmod = {
2459 .class = &dra7xx_uart_hwmod_class,
2460 .clkdm_name = "l4per_clkdm",
2461 .main_clk = "uart1_gfclk_mux",
2462 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
2465 .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
2466 .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
2467 .modulemode = MODULEMODE_SWCTRL,
2473 static struct omap_hwmod dra7xx_uart2_hwmod = {
2475 .class = &dra7xx_uart_hwmod_class,
2476 .clkdm_name = "l4per_clkdm",
2477 .main_clk = "uart2_gfclk_mux",
2478 .flags = HWMOD_SWSUP_SIDLE_ACT,
2481 .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
2482 .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
2483 .modulemode = MODULEMODE_SWCTRL,
2489 static struct omap_hwmod dra7xx_uart3_hwmod = {
2491 .class = &dra7xx_uart_hwmod_class,
2492 .clkdm_name = "l4per_clkdm",
2493 .main_clk = "uart3_gfclk_mux",
2494 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
2497 .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
2498 .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
2499 .modulemode = MODULEMODE_SWCTRL,
2505 static struct omap_hwmod dra7xx_uart4_hwmod = {
2507 .class = &dra7xx_uart_hwmod_class,
2508 .clkdm_name = "l4per_clkdm",
2509 .main_clk = "uart4_gfclk_mux",
2510 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
2513 .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
2514 .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
2515 .modulemode = MODULEMODE_SWCTRL,
2521 static struct omap_hwmod dra7xx_uart5_hwmod = {
2523 .class = &dra7xx_uart_hwmod_class,
2524 .clkdm_name = "l4per_clkdm",
2525 .main_clk = "uart5_gfclk_mux",
2526 .flags = HWMOD_SWSUP_SIDLE_ACT,
2529 .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
2530 .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
2531 .modulemode = MODULEMODE_SWCTRL,
2537 static struct omap_hwmod dra7xx_uart6_hwmod = {
2539 .class = &dra7xx_uart_hwmod_class,
2540 .clkdm_name = "ipu_clkdm",
2541 .main_clk = "uart6_gfclk_mux",
2542 .flags = HWMOD_SWSUP_SIDLE_ACT,
2545 .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
2546 .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
2547 .modulemode = MODULEMODE_SWCTRL,
2553 static struct omap_hwmod dra7xx_uart7_hwmod = {
2555 .class = &dra7xx_uart_hwmod_class,
2556 .clkdm_name = "l4per2_clkdm",
2557 .main_clk = "uart7_gfclk_mux",
2558 .flags = HWMOD_SWSUP_SIDLE_ACT,
2561 .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
2562 .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
2563 .modulemode = MODULEMODE_SWCTRL,
2569 static struct omap_hwmod dra7xx_uart8_hwmod = {
2571 .class = &dra7xx_uart_hwmod_class,
2572 .clkdm_name = "l4per2_clkdm",
2573 .main_clk = "uart8_gfclk_mux",
2574 .flags = HWMOD_SWSUP_SIDLE_ACT,
2577 .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
2578 .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
2579 .modulemode = MODULEMODE_SWCTRL,
2585 static struct omap_hwmod dra7xx_uart9_hwmod = {
2587 .class = &dra7xx_uart_hwmod_class,
2588 .clkdm_name = "l4per2_clkdm",
2589 .main_clk = "uart9_gfclk_mux",
2590 .flags = HWMOD_SWSUP_SIDLE_ACT,
2593 .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
2594 .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
2595 .modulemode = MODULEMODE_SWCTRL,
2601 static struct omap_hwmod dra7xx_uart10_hwmod = {
2603 .class = &dra7xx_uart_hwmod_class,
2604 .clkdm_name = "wkupaon_clkdm",
2605 .main_clk = "uart10_gfclk_mux",
2606 .flags = HWMOD_SWSUP_SIDLE_ACT,
2609 .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
2610 .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
2611 .modulemode = MODULEMODE_SWCTRL,
2616 /* DES (the 'P' (public) device) */
2617 static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = {
2619 .sysc_offs = 0x0034,
2620 .syss_offs = 0x0038,
2621 .sysc_flags = SYSS_HAS_RESET_STATUS,
2624 static struct omap_hwmod_class dra7xx_des_hwmod_class = {
2626 .sysc = &dra7xx_des_sysc,
2630 static struct omap_hwmod dra7xx_des_hwmod = {
2632 .class = &dra7xx_des_hwmod_class,
2633 .clkdm_name = "l4sec_clkdm",
2634 .main_clk = "l3_iclk_div",
2637 .clkctrl_offs = DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
2638 .context_offs = DRA7XX_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
2639 .modulemode = MODULEMODE_HWCTRL,
2645 static struct omap_hwmod_class_sysconfig dra7xx_rng_sysc = {
2647 .sysc_offs = 0x1fe4,
2648 .sysc_flags = SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE,
2649 .idlemodes = SIDLE_FORCE | SIDLE_NO,
2650 .sysc_fields = &omap_hwmod_sysc_type1,
2653 static struct omap_hwmod_class dra7xx_rng_hwmod_class = {
2655 .sysc = &dra7xx_rng_sysc,
2658 static struct omap_hwmod dra7xx_rng_hwmod = {
2660 .class = &dra7xx_rng_hwmod_class,
2661 .flags = HWMOD_SWSUP_SIDLE,
2662 .clkdm_name = "l4sec_clkdm",
2665 .clkctrl_offs = DRA7XX_CM_L4SEC_RNG_CLKCTRL_OFFSET,
2666 .context_offs = DRA7XX_RM_L4SEC_RNG_CONTEXT_OFFSET,
2667 .modulemode = MODULEMODE_HWCTRL,
2673 * 'usb_otg_ss' class
2677 static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
2679 .sysc_offs = 0x0010,
2680 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
2681 SYSC_HAS_SIDLEMODE),
2682 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2683 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2684 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2685 .sysc_fields = &omap_hwmod_sysc_type2,
2688 static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
2689 .name = "usb_otg_ss",
2690 .sysc = &dra7xx_usb_otg_ss_sysc,
2694 static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
2695 { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
2698 static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
2699 .name = "usb_otg_ss1",
2700 .class = &dra7xx_usb_otg_ss_hwmod_class,
2701 .clkdm_name = "l3init_clkdm",
2702 .main_clk = "dpll_core_h13x2_ck",
2705 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
2706 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
2707 .modulemode = MODULEMODE_HWCTRL,
2710 .opt_clks = usb_otg_ss1_opt_clks,
2711 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
2715 static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
2716 { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
2719 static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
2720 .name = "usb_otg_ss2",
2721 .class = &dra7xx_usb_otg_ss_hwmod_class,
2722 .clkdm_name = "l3init_clkdm",
2723 .main_clk = "dpll_core_h13x2_ck",
2726 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
2727 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
2728 .modulemode = MODULEMODE_HWCTRL,
2731 .opt_clks = usb_otg_ss2_opt_clks,
2732 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
2736 static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
2737 .name = "usb_otg_ss3",
2738 .class = &dra7xx_usb_otg_ss_hwmod_class,
2739 .clkdm_name = "l3init_clkdm",
2740 .main_clk = "dpll_core_h13x2_ck",
2743 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
2744 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
2745 .modulemode = MODULEMODE_HWCTRL,
2751 static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
2752 .name = "usb_otg_ss4",
2753 .class = &dra7xx_usb_otg_ss_hwmod_class,
2754 .clkdm_name = "l3init_clkdm",
2755 .main_clk = "dpll_core_h13x2_ck",
2758 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
2759 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
2760 .modulemode = MODULEMODE_HWCTRL,
2770 static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
2775 static struct omap_hwmod dra7xx_vcp1_hwmod = {
2777 .class = &dra7xx_vcp_hwmod_class,
2778 .clkdm_name = "l3main1_clkdm",
2779 .main_clk = "l3_iclk_div",
2782 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
2783 .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
2789 static struct omap_hwmod dra7xx_vcp2_hwmod = {
2791 .class = &dra7xx_vcp_hwmod_class,
2792 .clkdm_name = "l3main1_clkdm",
2793 .main_clk = "l3_iclk_div",
2796 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
2797 .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
2807 static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
2809 .sysc_offs = 0x0010,
2810 .syss_offs = 0x0014,
2811 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2812 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2813 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2815 .sysc_fields = &omap_hwmod_sysc_type1,
2818 static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
2820 .sysc = &dra7xx_wd_timer_sysc,
2821 .pre_shutdown = &omap2_wd_timer_disable,
2822 .reset = &omap2_wd_timer_reset,
2826 static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
2827 .name = "wd_timer2",
2828 .class = &dra7xx_wd_timer_hwmod_class,
2829 .clkdm_name = "wkupaon_clkdm",
2830 .main_clk = "sys_32k_ck",
2833 .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
2834 .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
2835 .modulemode = MODULEMODE_SWCTRL,
2845 /* l3_main_1 -> dmm */
2846 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
2847 .master = &dra7xx_l3_main_1_hwmod,
2848 .slave = &dra7xx_dmm_hwmod,
2849 .clk = "l3_iclk_div",
2850 .user = OCP_USER_SDMA,
2853 /* l3_main_2 -> l3_instr */
2854 static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
2855 .master = &dra7xx_l3_main_2_hwmod,
2856 .slave = &dra7xx_l3_instr_hwmod,
2857 .clk = "l3_iclk_div",
2858 .user = OCP_USER_MPU | OCP_USER_SDMA,
2861 /* l4_cfg -> l3_main_1 */
2862 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
2863 .master = &dra7xx_l4_cfg_hwmod,
2864 .slave = &dra7xx_l3_main_1_hwmod,
2865 .clk = "l3_iclk_div",
2866 .user = OCP_USER_MPU | OCP_USER_SDMA,
2869 /* mpu -> l3_main_1 */
2870 static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
2871 .master = &dra7xx_mpu_hwmod,
2872 .slave = &dra7xx_l3_main_1_hwmod,
2873 .clk = "l3_iclk_div",
2874 .user = OCP_USER_MPU,
2877 /* l3_main_1 -> l3_main_2 */
2878 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
2879 .master = &dra7xx_l3_main_1_hwmod,
2880 .slave = &dra7xx_l3_main_2_hwmod,
2881 .clk = "l3_iclk_div",
2882 .user = OCP_USER_MPU,
2885 /* l4_cfg -> l3_main_2 */
2886 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
2887 .master = &dra7xx_l4_cfg_hwmod,
2888 .slave = &dra7xx_l3_main_2_hwmod,
2889 .clk = "l3_iclk_div",
2890 .user = OCP_USER_MPU | OCP_USER_SDMA,
2893 /* l3_main_1 -> l4_cfg */
2894 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
2895 .master = &dra7xx_l3_main_1_hwmod,
2896 .slave = &dra7xx_l4_cfg_hwmod,
2897 .clk = "l3_iclk_div",
2898 .user = OCP_USER_MPU | OCP_USER_SDMA,
2901 /* l3_main_1 -> l4_per1 */
2902 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
2903 .master = &dra7xx_l3_main_1_hwmod,
2904 .slave = &dra7xx_l4_per1_hwmod,
2905 .clk = "l3_iclk_div",
2906 .user = OCP_USER_MPU | OCP_USER_SDMA,
2909 /* l3_main_1 -> l4_per2 */
2910 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
2911 .master = &dra7xx_l3_main_1_hwmod,
2912 .slave = &dra7xx_l4_per2_hwmod,
2913 .clk = "l3_iclk_div",
2914 .user = OCP_USER_MPU | OCP_USER_SDMA,
2917 /* l3_main_1 -> l4_per3 */
2918 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
2919 .master = &dra7xx_l3_main_1_hwmod,
2920 .slave = &dra7xx_l4_per3_hwmod,
2921 .clk = "l3_iclk_div",
2922 .user = OCP_USER_MPU | OCP_USER_SDMA,
2925 /* l3_main_1 -> l4_wkup */
2926 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
2927 .master = &dra7xx_l3_main_1_hwmod,
2928 .slave = &dra7xx_l4_wkup_hwmod,
2929 .clk = "wkupaon_iclk_mux",
2930 .user = OCP_USER_MPU | OCP_USER_SDMA,
2933 /* l4_per2 -> atl */
2934 static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
2935 .master = &dra7xx_l4_per2_hwmod,
2936 .slave = &dra7xx_atl_hwmod,
2937 .clk = "l3_iclk_div",
2938 .user = OCP_USER_MPU | OCP_USER_SDMA,
2941 /* l3_main_1 -> bb2d */
2942 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
2943 .master = &dra7xx_l3_main_1_hwmod,
2944 .slave = &dra7xx_bb2d_hwmod,
2945 .clk = "l3_iclk_div",
2946 .user = OCP_USER_MPU | OCP_USER_SDMA,
2949 /* l4_wkup -> counter_32k */
2950 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
2951 .master = &dra7xx_l4_wkup_hwmod,
2952 .slave = &dra7xx_counter_32k_hwmod,
2953 .clk = "wkupaon_iclk_mux",
2954 .user = OCP_USER_MPU | OCP_USER_SDMA,
2957 /* l4_wkup -> ctrl_module_wkup */
2958 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
2959 .master = &dra7xx_l4_wkup_hwmod,
2960 .slave = &dra7xx_ctrl_module_wkup_hwmod,
2961 .clk = "wkupaon_iclk_mux",
2962 .user = OCP_USER_MPU | OCP_USER_SDMA,
2965 static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
2966 .master = &dra7xx_l4_per2_hwmod,
2967 .slave = &dra7xx_gmac_hwmod,
2968 .clk = "dpll_gmac_ck",
2969 .user = OCP_USER_MPU,
2972 static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
2973 .master = &dra7xx_gmac_hwmod,
2974 .slave = &dra7xx_mdio_hwmod,
2975 .user = OCP_USER_MPU,
2978 /* l4_wkup -> dcan1 */
2979 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
2980 .master = &dra7xx_l4_wkup_hwmod,
2981 .slave = &dra7xx_dcan1_hwmod,
2982 .clk = "wkupaon_iclk_mux",
2983 .user = OCP_USER_MPU | OCP_USER_SDMA,
2986 /* l4_per2 -> dcan2 */
2987 static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
2988 .master = &dra7xx_l4_per2_hwmod,
2989 .slave = &dra7xx_dcan2_hwmod,
2990 .clk = "l3_iclk_div",
2991 .user = OCP_USER_MPU | OCP_USER_SDMA,
2994 static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
2996 .pa_start = 0x4a056000,
2997 .pa_end = 0x4a056fff,
2998 .flags = ADDR_TYPE_RT
3003 /* l4_cfg -> dma_system */
3004 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
3005 .master = &dra7xx_l4_cfg_hwmod,
3006 .slave = &dra7xx_dma_system_hwmod,
3007 .clk = "l3_iclk_div",
3008 .addr = dra7xx_dma_system_addrs,
3009 .user = OCP_USER_MPU | OCP_USER_SDMA,
3012 /* l3_main_1 -> tpcc */
3013 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tpcc = {
3014 .master = &dra7xx_l3_main_1_hwmod,
3015 .slave = &dra7xx_tpcc_hwmod,
3016 .clk = "l3_iclk_div",
3017 .user = OCP_USER_MPU,
3020 /* l3_main_1 -> tptc0 */
3021 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc0 = {
3022 .master = &dra7xx_l3_main_1_hwmod,
3023 .slave = &dra7xx_tptc0_hwmod,
3024 .clk = "l3_iclk_div",
3025 .user = OCP_USER_MPU,
3028 /* l3_main_1 -> tptc1 */
3029 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc1 = {
3030 .master = &dra7xx_l3_main_1_hwmod,
3031 .slave = &dra7xx_tptc1_hwmod,
3032 .clk = "l3_iclk_div",
3033 .user = OCP_USER_MPU,
3036 /* l3_main_1 -> dss */
3037 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
3038 .master = &dra7xx_l3_main_1_hwmod,
3039 .slave = &dra7xx_dss_hwmod,
3040 .clk = "l3_iclk_div",
3041 .user = OCP_USER_MPU | OCP_USER_SDMA,
3044 /* l3_main_1 -> dispc */
3045 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
3046 .master = &dra7xx_l3_main_1_hwmod,
3047 .slave = &dra7xx_dss_dispc_hwmod,
3048 .clk = "l3_iclk_div",
3049 .user = OCP_USER_MPU | OCP_USER_SDMA,
3052 /* l3_main_1 -> dispc */
3053 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
3054 .master = &dra7xx_l3_main_1_hwmod,
3055 .slave = &dra7xx_dss_hdmi_hwmod,
3056 .clk = "l3_iclk_div",
3057 .user = OCP_USER_MPU | OCP_USER_SDMA,
3060 /* l3_main_1 -> aes1 */
3061 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes1 = {
3062 .master = &dra7xx_l3_main_1_hwmod,
3063 .slave = &dra7xx_aes1_hwmod,
3064 .clk = "l3_iclk_div",
3065 .user = OCP_USER_MPU | OCP_USER_SDMA,
3068 /* l3_main_1 -> aes2 */
3069 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes2 = {
3070 .master = &dra7xx_l3_main_1_hwmod,
3071 .slave = &dra7xx_aes2_hwmod,
3072 .clk = "l3_iclk_div",
3073 .user = OCP_USER_MPU | OCP_USER_SDMA,
3076 /* l3_main_1 -> sha0 */
3077 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__sha0 = {
3078 .master = &dra7xx_l3_main_1_hwmod,
3079 .slave = &dra7xx_sha0_hwmod,
3080 .clk = "l3_iclk_div",
3081 .user = OCP_USER_MPU | OCP_USER_SDMA,
3084 /* l4_per2 -> mcasp1 */
3085 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = {
3086 .master = &dra7xx_l4_per2_hwmod,
3087 .slave = &dra7xx_mcasp1_hwmod,
3088 .clk = "l4_root_clk_div",
3089 .user = OCP_USER_MPU | OCP_USER_SDMA,
3092 /* l3_main_1 -> mcasp1 */
3093 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = {
3094 .master = &dra7xx_l3_main_1_hwmod,
3095 .slave = &dra7xx_mcasp1_hwmod,
3096 .clk = "l3_iclk_div",
3097 .user = OCP_USER_MPU | OCP_USER_SDMA,
3100 /* l4_per2 -> mcasp2 */
3101 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = {
3102 .master = &dra7xx_l4_per2_hwmod,
3103 .slave = &dra7xx_mcasp2_hwmod,
3104 .clk = "l4_root_clk_div",
3105 .user = OCP_USER_MPU | OCP_USER_SDMA,
3108 /* l3_main_1 -> mcasp2 */
3109 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = {
3110 .master = &dra7xx_l3_main_1_hwmod,
3111 .slave = &dra7xx_mcasp2_hwmod,
3112 .clk = "l3_iclk_div",
3113 .user = OCP_USER_MPU | OCP_USER_SDMA,
3116 /* l4_per2 -> mcasp3 */
3117 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
3118 .master = &dra7xx_l4_per2_hwmod,
3119 .slave = &dra7xx_mcasp3_hwmod,
3120 .clk = "l4_root_clk_div",
3121 .user = OCP_USER_MPU | OCP_USER_SDMA,
3124 /* l3_main_1 -> mcasp3 */
3125 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
3126 .master = &dra7xx_l3_main_1_hwmod,
3127 .slave = &dra7xx_mcasp3_hwmod,
3128 .clk = "l3_iclk_div",
3129 .user = OCP_USER_MPU | OCP_USER_SDMA,
3132 /* l4_per2 -> mcasp4 */
3133 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = {
3134 .master = &dra7xx_l4_per2_hwmod,
3135 .slave = &dra7xx_mcasp4_hwmod,
3136 .clk = "l4_root_clk_div",
3137 .user = OCP_USER_MPU | OCP_USER_SDMA,
3140 /* l4_per2 -> mcasp5 */
3141 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = {
3142 .master = &dra7xx_l4_per2_hwmod,
3143 .slave = &dra7xx_mcasp5_hwmod,
3144 .clk = "l4_root_clk_div",
3145 .user = OCP_USER_MPU | OCP_USER_SDMA,
3148 /* l4_per2 -> mcasp6 */
3149 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = {
3150 .master = &dra7xx_l4_per2_hwmod,
3151 .slave = &dra7xx_mcasp6_hwmod,
3152 .clk = "l4_root_clk_div",
3153 .user = OCP_USER_MPU | OCP_USER_SDMA,
3156 /* l4_per2 -> mcasp7 */
3157 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = {
3158 .master = &dra7xx_l4_per2_hwmod,
3159 .slave = &dra7xx_mcasp7_hwmod,
3160 .clk = "l4_root_clk_div",
3161 .user = OCP_USER_MPU | OCP_USER_SDMA,
3164 /* l4_per2 -> mcasp8 */
3165 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = {
3166 .master = &dra7xx_l4_per2_hwmod,
3167 .slave = &dra7xx_mcasp8_hwmod,
3168 .clk = "l4_root_clk_div",
3169 .user = OCP_USER_MPU | OCP_USER_SDMA,
3172 /* l4_per1 -> elm */
3173 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
3174 .master = &dra7xx_l4_per1_hwmod,
3175 .slave = &dra7xx_elm_hwmod,
3176 .clk = "l3_iclk_div",
3177 .user = OCP_USER_MPU | OCP_USER_SDMA,
3180 /* l4_wkup -> gpio1 */
3181 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
3182 .master = &dra7xx_l4_wkup_hwmod,
3183 .slave = &dra7xx_gpio1_hwmod,
3184 .clk = "wkupaon_iclk_mux",
3185 .user = OCP_USER_MPU | OCP_USER_SDMA,
3188 /* l4_per1 -> gpio2 */
3189 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
3190 .master = &dra7xx_l4_per1_hwmod,
3191 .slave = &dra7xx_gpio2_hwmod,
3192 .clk = "l3_iclk_div",
3193 .user = OCP_USER_MPU | OCP_USER_SDMA,
3196 /* l4_per1 -> gpio3 */
3197 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
3198 .master = &dra7xx_l4_per1_hwmod,
3199 .slave = &dra7xx_gpio3_hwmod,
3200 .clk = "l3_iclk_div",
3201 .user = OCP_USER_MPU | OCP_USER_SDMA,
3204 /* l4_per1 -> gpio4 */
3205 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
3206 .master = &dra7xx_l4_per1_hwmod,
3207 .slave = &dra7xx_gpio4_hwmod,
3208 .clk = "l3_iclk_div",
3209 .user = OCP_USER_MPU | OCP_USER_SDMA,
3212 /* l4_per1 -> gpio5 */
3213 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
3214 .master = &dra7xx_l4_per1_hwmod,
3215 .slave = &dra7xx_gpio5_hwmod,
3216 .clk = "l3_iclk_div",
3217 .user = OCP_USER_MPU | OCP_USER_SDMA,
3220 /* l4_per1 -> gpio6 */
3221 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
3222 .master = &dra7xx_l4_per1_hwmod,
3223 .slave = &dra7xx_gpio6_hwmod,
3224 .clk = "l3_iclk_div",
3225 .user = OCP_USER_MPU | OCP_USER_SDMA,
3228 /* l4_per1 -> gpio7 */
3229 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
3230 .master = &dra7xx_l4_per1_hwmod,
3231 .slave = &dra7xx_gpio7_hwmod,
3232 .clk = "l3_iclk_div",
3233 .user = OCP_USER_MPU | OCP_USER_SDMA,
3236 /* l4_per1 -> gpio8 */
3237 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
3238 .master = &dra7xx_l4_per1_hwmod,
3239 .slave = &dra7xx_gpio8_hwmod,
3240 .clk = "l3_iclk_div",
3241 .user = OCP_USER_MPU | OCP_USER_SDMA,
3244 /* l3_main_1 -> gpmc */
3245 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
3246 .master = &dra7xx_l3_main_1_hwmod,
3247 .slave = &dra7xx_gpmc_hwmod,
3248 .clk = "l3_iclk_div",
3249 .user = OCP_USER_MPU | OCP_USER_SDMA,
3252 static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
3254 .pa_start = 0x480b2000,
3255 .pa_end = 0x480b201f,
3256 .flags = ADDR_TYPE_RT
3261 /* l4_per1 -> hdq1w */
3262 static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
3263 .master = &dra7xx_l4_per1_hwmod,
3264 .slave = &dra7xx_hdq1w_hwmod,
3265 .clk = "l3_iclk_div",
3266 .addr = dra7xx_hdq1w_addrs,
3267 .user = OCP_USER_MPU | OCP_USER_SDMA,
3270 /* l4_per1 -> i2c1 */
3271 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
3272 .master = &dra7xx_l4_per1_hwmod,
3273 .slave = &dra7xx_i2c1_hwmod,
3274 .clk = "l3_iclk_div",
3275 .user = OCP_USER_MPU | OCP_USER_SDMA,
3278 /* l4_per1 -> i2c2 */
3279 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
3280 .master = &dra7xx_l4_per1_hwmod,
3281 .slave = &dra7xx_i2c2_hwmod,
3282 .clk = "l3_iclk_div",
3283 .user = OCP_USER_MPU | OCP_USER_SDMA,
3286 /* l4_per1 -> i2c3 */
3287 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
3288 .master = &dra7xx_l4_per1_hwmod,
3289 .slave = &dra7xx_i2c3_hwmod,
3290 .clk = "l3_iclk_div",
3291 .user = OCP_USER_MPU | OCP_USER_SDMA,
3294 /* l4_per1 -> i2c4 */
3295 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
3296 .master = &dra7xx_l4_per1_hwmod,
3297 .slave = &dra7xx_i2c4_hwmod,
3298 .clk = "l3_iclk_div",
3299 .user = OCP_USER_MPU | OCP_USER_SDMA,
3302 /* l4_per1 -> i2c5 */
3303 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
3304 .master = &dra7xx_l4_per1_hwmod,
3305 .slave = &dra7xx_i2c5_hwmod,
3306 .clk = "l3_iclk_div",
3307 .user = OCP_USER_MPU | OCP_USER_SDMA,
3310 /* l4_cfg -> mailbox1 */
3311 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
3312 .master = &dra7xx_l4_cfg_hwmod,
3313 .slave = &dra7xx_mailbox1_hwmod,
3314 .clk = "l3_iclk_div",
3315 .user = OCP_USER_MPU | OCP_USER_SDMA,
3318 /* l4_per3 -> mailbox2 */
3319 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
3320 .master = &dra7xx_l4_per3_hwmod,
3321 .slave = &dra7xx_mailbox2_hwmod,
3322 .clk = "l3_iclk_div",
3323 .user = OCP_USER_MPU | OCP_USER_SDMA,
3326 /* l4_per3 -> mailbox3 */
3327 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
3328 .master = &dra7xx_l4_per3_hwmod,
3329 .slave = &dra7xx_mailbox3_hwmod,
3330 .clk = "l3_iclk_div",
3331 .user = OCP_USER_MPU | OCP_USER_SDMA,
3334 /* l4_per3 -> mailbox4 */
3335 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
3336 .master = &dra7xx_l4_per3_hwmod,
3337 .slave = &dra7xx_mailbox4_hwmod,
3338 .clk = "l3_iclk_div",
3339 .user = OCP_USER_MPU | OCP_USER_SDMA,
3342 /* l4_per3 -> mailbox5 */
3343 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
3344 .master = &dra7xx_l4_per3_hwmod,
3345 .slave = &dra7xx_mailbox5_hwmod,
3346 .clk = "l3_iclk_div",
3347 .user = OCP_USER_MPU | OCP_USER_SDMA,
3350 /* l4_per3 -> mailbox6 */
3351 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
3352 .master = &dra7xx_l4_per3_hwmod,
3353 .slave = &dra7xx_mailbox6_hwmod,
3354 .clk = "l3_iclk_div",
3355 .user = OCP_USER_MPU | OCP_USER_SDMA,
3358 /* l4_per3 -> mailbox7 */
3359 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
3360 .master = &dra7xx_l4_per3_hwmod,
3361 .slave = &dra7xx_mailbox7_hwmod,
3362 .clk = "l3_iclk_div",
3363 .user = OCP_USER_MPU | OCP_USER_SDMA,
3366 /* l4_per3 -> mailbox8 */
3367 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
3368 .master = &dra7xx_l4_per3_hwmod,
3369 .slave = &dra7xx_mailbox8_hwmod,
3370 .clk = "l3_iclk_div",
3371 .user = OCP_USER_MPU | OCP_USER_SDMA,
3374 /* l4_per3 -> mailbox9 */
3375 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
3376 .master = &dra7xx_l4_per3_hwmod,
3377 .slave = &dra7xx_mailbox9_hwmod,
3378 .clk = "l3_iclk_div",
3379 .user = OCP_USER_MPU | OCP_USER_SDMA,
3382 /* l4_per3 -> mailbox10 */
3383 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
3384 .master = &dra7xx_l4_per3_hwmod,
3385 .slave = &dra7xx_mailbox10_hwmod,
3386 .clk = "l3_iclk_div",
3387 .user = OCP_USER_MPU | OCP_USER_SDMA,
3390 /* l4_per3 -> mailbox11 */
3391 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
3392 .master = &dra7xx_l4_per3_hwmod,
3393 .slave = &dra7xx_mailbox11_hwmod,
3394 .clk = "l3_iclk_div",
3395 .user = OCP_USER_MPU | OCP_USER_SDMA,
3398 /* l4_per3 -> mailbox12 */
3399 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
3400 .master = &dra7xx_l4_per3_hwmod,
3401 .slave = &dra7xx_mailbox12_hwmod,
3402 .clk = "l3_iclk_div",
3403 .user = OCP_USER_MPU | OCP_USER_SDMA,
3406 /* l4_per3 -> mailbox13 */
3407 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
3408 .master = &dra7xx_l4_per3_hwmod,
3409 .slave = &dra7xx_mailbox13_hwmod,
3410 .clk = "l3_iclk_div",
3411 .user = OCP_USER_MPU | OCP_USER_SDMA,
3414 /* l4_per1 -> mcspi1 */
3415 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
3416 .master = &dra7xx_l4_per1_hwmod,
3417 .slave = &dra7xx_mcspi1_hwmod,
3418 .clk = "l3_iclk_div",
3419 .user = OCP_USER_MPU | OCP_USER_SDMA,
3422 /* l4_per1 -> mcspi2 */
3423 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
3424 .master = &dra7xx_l4_per1_hwmod,
3425 .slave = &dra7xx_mcspi2_hwmod,
3426 .clk = "l3_iclk_div",
3427 .user = OCP_USER_MPU | OCP_USER_SDMA,
3430 /* l4_per1 -> mcspi3 */
3431 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
3432 .master = &dra7xx_l4_per1_hwmod,
3433 .slave = &dra7xx_mcspi3_hwmod,
3434 .clk = "l3_iclk_div",
3435 .user = OCP_USER_MPU | OCP_USER_SDMA,
3438 /* l4_per1 -> mcspi4 */
3439 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
3440 .master = &dra7xx_l4_per1_hwmod,
3441 .slave = &dra7xx_mcspi4_hwmod,
3442 .clk = "l3_iclk_div",
3443 .user = OCP_USER_MPU | OCP_USER_SDMA,
3446 /* l4_per1 -> mmc1 */
3447 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
3448 .master = &dra7xx_l4_per1_hwmod,
3449 .slave = &dra7xx_mmc1_hwmod,
3450 .clk = "l3_iclk_div",
3451 .user = OCP_USER_MPU | OCP_USER_SDMA,
3454 /* l4_per1 -> mmc2 */
3455 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
3456 .master = &dra7xx_l4_per1_hwmod,
3457 .slave = &dra7xx_mmc2_hwmod,
3458 .clk = "l3_iclk_div",
3459 .user = OCP_USER_MPU | OCP_USER_SDMA,
3462 /* l4_per1 -> mmc3 */
3463 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
3464 .master = &dra7xx_l4_per1_hwmod,
3465 .slave = &dra7xx_mmc3_hwmod,
3466 .clk = "l3_iclk_div",
3467 .user = OCP_USER_MPU | OCP_USER_SDMA,
3470 /* l4_per1 -> mmc4 */
3471 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
3472 .master = &dra7xx_l4_per1_hwmod,
3473 .slave = &dra7xx_mmc4_hwmod,
3474 .clk = "l3_iclk_div",
3475 .user = OCP_USER_MPU | OCP_USER_SDMA,
3479 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
3480 .master = &dra7xx_l4_cfg_hwmod,
3481 .slave = &dra7xx_mpu_hwmod,
3482 .clk = "l3_iclk_div",
3483 .user = OCP_USER_MPU | OCP_USER_SDMA,
3486 /* l4_cfg -> ocp2scp1 */
3487 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
3488 .master = &dra7xx_l4_cfg_hwmod,
3489 .slave = &dra7xx_ocp2scp1_hwmod,
3490 .clk = "l4_root_clk_div",
3491 .user = OCP_USER_MPU | OCP_USER_SDMA,
3494 /* l4_cfg -> ocp2scp3 */
3495 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
3496 .master = &dra7xx_l4_cfg_hwmod,
3497 .slave = &dra7xx_ocp2scp3_hwmod,
3498 .clk = "l4_root_clk_div",
3499 .user = OCP_USER_MPU | OCP_USER_SDMA,
3502 /* l3_main_1 -> pciess1 */
3503 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
3504 .master = &dra7xx_l3_main_1_hwmod,
3505 .slave = &dra7xx_pciess1_hwmod,
3506 .clk = "l3_iclk_div",
3507 .user = OCP_USER_MPU | OCP_USER_SDMA,
3510 /* l4_cfg -> pciess1 */
3511 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
3512 .master = &dra7xx_l4_cfg_hwmod,
3513 .slave = &dra7xx_pciess1_hwmod,
3514 .clk = "l4_root_clk_div",
3515 .user = OCP_USER_MPU | OCP_USER_SDMA,
3518 /* l3_main_1 -> pciess2 */
3519 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
3520 .master = &dra7xx_l3_main_1_hwmod,
3521 .slave = &dra7xx_pciess2_hwmod,
3522 .clk = "l3_iclk_div",
3523 .user = OCP_USER_MPU | OCP_USER_SDMA,
3526 /* l4_cfg -> pciess2 */
3527 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
3528 .master = &dra7xx_l4_cfg_hwmod,
3529 .slave = &dra7xx_pciess2_hwmod,
3530 .clk = "l4_root_clk_div",
3531 .user = OCP_USER_MPU | OCP_USER_SDMA,
3534 /* l3_main_1 -> qspi */
3535 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
3536 .master = &dra7xx_l3_main_1_hwmod,
3537 .slave = &dra7xx_qspi_hwmod,
3538 .clk = "l3_iclk_div",
3539 .user = OCP_USER_MPU | OCP_USER_SDMA,
3542 /* l4_per3 -> rtcss */
3543 static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
3544 .master = &dra7xx_l4_per3_hwmod,
3545 .slave = &dra7xx_rtcss_hwmod,
3546 .clk = "l4_root_clk_div",
3547 .user = OCP_USER_MPU | OCP_USER_SDMA,
3550 static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
3553 .pa_start = 0x4a141100,
3554 .pa_end = 0x4a141107,
3555 .flags = ADDR_TYPE_RT
3560 /* l4_cfg -> sata */
3561 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
3562 .master = &dra7xx_l4_cfg_hwmod,
3563 .slave = &dra7xx_sata_hwmod,
3564 .clk = "l3_iclk_div",
3565 .addr = dra7xx_sata_addrs,
3566 .user = OCP_USER_MPU | OCP_USER_SDMA,
3569 static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
3571 .pa_start = 0x4a0dd000,
3572 .pa_end = 0x4a0dd07f,
3573 .flags = ADDR_TYPE_RT
3578 /* l4_cfg -> smartreflex_core */
3579 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
3580 .master = &dra7xx_l4_cfg_hwmod,
3581 .slave = &dra7xx_smartreflex_core_hwmod,
3582 .clk = "l4_root_clk_div",
3583 .addr = dra7xx_smartreflex_core_addrs,
3584 .user = OCP_USER_MPU | OCP_USER_SDMA,
3587 static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
3589 .pa_start = 0x4a0d9000,
3590 .pa_end = 0x4a0d907f,
3591 .flags = ADDR_TYPE_RT
3596 /* l4_cfg -> smartreflex_mpu */
3597 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
3598 .master = &dra7xx_l4_cfg_hwmod,
3599 .slave = &dra7xx_smartreflex_mpu_hwmod,
3600 .clk = "l4_root_clk_div",
3601 .addr = dra7xx_smartreflex_mpu_addrs,
3602 .user = OCP_USER_MPU | OCP_USER_SDMA,
3605 /* l4_cfg -> spinlock */
3606 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
3607 .master = &dra7xx_l4_cfg_hwmod,
3608 .slave = &dra7xx_spinlock_hwmod,
3609 .clk = "l3_iclk_div",
3610 .user = OCP_USER_MPU | OCP_USER_SDMA,
3613 /* l4_wkup -> timer1 */
3614 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
3615 .master = &dra7xx_l4_wkup_hwmod,
3616 .slave = &dra7xx_timer1_hwmod,
3617 .clk = "wkupaon_iclk_mux",
3618 .user = OCP_USER_MPU | OCP_USER_SDMA,
3621 /* l4_per1 -> timer2 */
3622 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
3623 .master = &dra7xx_l4_per1_hwmod,
3624 .slave = &dra7xx_timer2_hwmod,
3625 .clk = "l3_iclk_div",
3626 .user = OCP_USER_MPU | OCP_USER_SDMA,
3629 /* l4_per1 -> timer3 */
3630 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
3631 .master = &dra7xx_l4_per1_hwmod,
3632 .slave = &dra7xx_timer3_hwmod,
3633 .clk = "l3_iclk_div",
3634 .user = OCP_USER_MPU | OCP_USER_SDMA,
3637 /* l4_per1 -> timer4 */
3638 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
3639 .master = &dra7xx_l4_per1_hwmod,
3640 .slave = &dra7xx_timer4_hwmod,
3641 .clk = "l3_iclk_div",
3642 .user = OCP_USER_MPU | OCP_USER_SDMA,
3645 /* l4_per3 -> timer5 */
3646 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
3647 .master = &dra7xx_l4_per3_hwmod,
3648 .slave = &dra7xx_timer5_hwmod,
3649 .clk = "l3_iclk_div",
3650 .user = OCP_USER_MPU | OCP_USER_SDMA,
3653 /* l4_per3 -> timer6 */
3654 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
3655 .master = &dra7xx_l4_per3_hwmod,
3656 .slave = &dra7xx_timer6_hwmod,
3657 .clk = "l3_iclk_div",
3658 .user = OCP_USER_MPU | OCP_USER_SDMA,
3661 /* l4_per3 -> timer7 */
3662 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
3663 .master = &dra7xx_l4_per3_hwmod,
3664 .slave = &dra7xx_timer7_hwmod,
3665 .clk = "l3_iclk_div",
3666 .user = OCP_USER_MPU | OCP_USER_SDMA,
3669 /* l4_per3 -> timer8 */
3670 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
3671 .master = &dra7xx_l4_per3_hwmod,
3672 .slave = &dra7xx_timer8_hwmod,
3673 .clk = "l3_iclk_div",
3674 .user = OCP_USER_MPU | OCP_USER_SDMA,
3677 /* l4_per1 -> timer9 */
3678 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
3679 .master = &dra7xx_l4_per1_hwmod,
3680 .slave = &dra7xx_timer9_hwmod,
3681 .clk = "l3_iclk_div",
3682 .user = OCP_USER_MPU | OCP_USER_SDMA,
3685 /* l4_per1 -> timer10 */
3686 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
3687 .master = &dra7xx_l4_per1_hwmod,
3688 .slave = &dra7xx_timer10_hwmod,
3689 .clk = "l3_iclk_div",
3690 .user = OCP_USER_MPU | OCP_USER_SDMA,
3693 /* l4_per1 -> timer11 */
3694 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
3695 .master = &dra7xx_l4_per1_hwmod,
3696 .slave = &dra7xx_timer11_hwmod,
3697 .clk = "l3_iclk_div",
3698 .user = OCP_USER_MPU | OCP_USER_SDMA,
3701 /* l4_wkup -> timer12 */
3702 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer12 = {
3703 .master = &dra7xx_l4_wkup_hwmod,
3704 .slave = &dra7xx_timer12_hwmod,
3705 .clk = "wkupaon_iclk_mux",
3706 .user = OCP_USER_MPU | OCP_USER_SDMA,
3709 /* l4_per3 -> timer13 */
3710 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
3711 .master = &dra7xx_l4_per3_hwmod,
3712 .slave = &dra7xx_timer13_hwmod,
3713 .clk = "l3_iclk_div",
3714 .user = OCP_USER_MPU | OCP_USER_SDMA,
3717 /* l4_per3 -> timer14 */
3718 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
3719 .master = &dra7xx_l4_per3_hwmod,
3720 .slave = &dra7xx_timer14_hwmod,
3721 .clk = "l3_iclk_div",
3722 .user = OCP_USER_MPU | OCP_USER_SDMA,
3725 /* l4_per3 -> timer15 */
3726 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
3727 .master = &dra7xx_l4_per3_hwmod,
3728 .slave = &dra7xx_timer15_hwmod,
3729 .clk = "l3_iclk_div",
3730 .user = OCP_USER_MPU | OCP_USER_SDMA,
3733 /* l4_per3 -> timer16 */
3734 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
3735 .master = &dra7xx_l4_per3_hwmod,
3736 .slave = &dra7xx_timer16_hwmod,
3737 .clk = "l3_iclk_div",
3738 .user = OCP_USER_MPU | OCP_USER_SDMA,
3741 /* l4_per1 -> uart1 */
3742 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
3743 .master = &dra7xx_l4_per1_hwmod,
3744 .slave = &dra7xx_uart1_hwmod,
3745 .clk = "l3_iclk_div",
3746 .user = OCP_USER_MPU | OCP_USER_SDMA,
3749 /* l4_per1 -> uart2 */
3750 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
3751 .master = &dra7xx_l4_per1_hwmod,
3752 .slave = &dra7xx_uart2_hwmod,
3753 .clk = "l3_iclk_div",
3754 .user = OCP_USER_MPU | OCP_USER_SDMA,
3757 /* l4_per1 -> uart3 */
3758 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
3759 .master = &dra7xx_l4_per1_hwmod,
3760 .slave = &dra7xx_uart3_hwmod,
3761 .clk = "l3_iclk_div",
3762 .user = OCP_USER_MPU | OCP_USER_SDMA,
3765 /* l4_per1 -> uart4 */
3766 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
3767 .master = &dra7xx_l4_per1_hwmod,
3768 .slave = &dra7xx_uart4_hwmod,
3769 .clk = "l3_iclk_div",
3770 .user = OCP_USER_MPU | OCP_USER_SDMA,
3773 /* l4_per1 -> uart5 */
3774 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
3775 .master = &dra7xx_l4_per1_hwmod,
3776 .slave = &dra7xx_uart5_hwmod,
3777 .clk = "l3_iclk_div",
3778 .user = OCP_USER_MPU | OCP_USER_SDMA,
3781 /* l4_per1 -> uart6 */
3782 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
3783 .master = &dra7xx_l4_per1_hwmod,
3784 .slave = &dra7xx_uart6_hwmod,
3785 .clk = "l3_iclk_div",
3786 .user = OCP_USER_MPU | OCP_USER_SDMA,
3789 /* l4_per2 -> uart7 */
3790 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
3791 .master = &dra7xx_l4_per2_hwmod,
3792 .slave = &dra7xx_uart7_hwmod,
3793 .clk = "l3_iclk_div",
3794 .user = OCP_USER_MPU | OCP_USER_SDMA,
3797 /* l4_per1 -> des */
3798 static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = {
3799 .master = &dra7xx_l4_per1_hwmod,
3800 .slave = &dra7xx_des_hwmod,
3801 .clk = "l3_iclk_div",
3802 .user = OCP_USER_MPU | OCP_USER_SDMA,
3805 /* l4_per2 -> uart8 */
3806 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
3807 .master = &dra7xx_l4_per2_hwmod,
3808 .slave = &dra7xx_uart8_hwmod,
3809 .clk = "l3_iclk_div",
3810 .user = OCP_USER_MPU | OCP_USER_SDMA,
3813 /* l4_per2 -> uart9 */
3814 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
3815 .master = &dra7xx_l4_per2_hwmod,
3816 .slave = &dra7xx_uart9_hwmod,
3817 .clk = "l3_iclk_div",
3818 .user = OCP_USER_MPU | OCP_USER_SDMA,
3821 /* l4_wkup -> uart10 */
3822 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
3823 .master = &dra7xx_l4_wkup_hwmod,
3824 .slave = &dra7xx_uart10_hwmod,
3825 .clk = "wkupaon_iclk_mux",
3826 .user = OCP_USER_MPU | OCP_USER_SDMA,
3829 /* l4_per1 -> rng */
3830 static struct omap_hwmod_ocp_if dra7xx_l4_per1__rng = {
3831 .master = &dra7xx_l4_per1_hwmod,
3832 .slave = &dra7xx_rng_hwmod,
3833 .user = OCP_USER_MPU,
3836 /* l4_per3 -> usb_otg_ss1 */
3837 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
3838 .master = &dra7xx_l4_per3_hwmod,
3839 .slave = &dra7xx_usb_otg_ss1_hwmod,
3840 .clk = "dpll_core_h13x2_ck",
3841 .user = OCP_USER_MPU | OCP_USER_SDMA,
3844 /* l4_per3 -> usb_otg_ss2 */
3845 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
3846 .master = &dra7xx_l4_per3_hwmod,
3847 .slave = &dra7xx_usb_otg_ss2_hwmod,
3848 .clk = "dpll_core_h13x2_ck",
3849 .user = OCP_USER_MPU | OCP_USER_SDMA,
3852 /* l4_per3 -> usb_otg_ss3 */
3853 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
3854 .master = &dra7xx_l4_per3_hwmod,
3855 .slave = &dra7xx_usb_otg_ss3_hwmod,
3856 .clk = "dpll_core_h13x2_ck",
3857 .user = OCP_USER_MPU | OCP_USER_SDMA,
3860 /* l4_per3 -> usb_otg_ss4 */
3861 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
3862 .master = &dra7xx_l4_per3_hwmod,
3863 .slave = &dra7xx_usb_otg_ss4_hwmod,
3864 .clk = "dpll_core_h13x2_ck",
3865 .user = OCP_USER_MPU | OCP_USER_SDMA,
3868 /* l3_main_1 -> vcp1 */
3869 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
3870 .master = &dra7xx_l3_main_1_hwmod,
3871 .slave = &dra7xx_vcp1_hwmod,
3872 .clk = "l3_iclk_div",
3873 .user = OCP_USER_MPU | OCP_USER_SDMA,
3876 /* l4_per2 -> vcp1 */
3877 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
3878 .master = &dra7xx_l4_per2_hwmod,
3879 .slave = &dra7xx_vcp1_hwmod,
3880 .clk = "l3_iclk_div",
3881 .user = OCP_USER_MPU | OCP_USER_SDMA,
3884 /* l3_main_1 -> vcp2 */
3885 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
3886 .master = &dra7xx_l3_main_1_hwmod,
3887 .slave = &dra7xx_vcp2_hwmod,
3888 .clk = "l3_iclk_div",
3889 .user = OCP_USER_MPU | OCP_USER_SDMA,
3892 /* l4_per2 -> vcp2 */
3893 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
3894 .master = &dra7xx_l4_per2_hwmod,
3895 .slave = &dra7xx_vcp2_hwmod,
3896 .clk = "l3_iclk_div",
3897 .user = OCP_USER_MPU | OCP_USER_SDMA,
3900 /* l4_wkup -> wd_timer2 */
3901 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
3902 .master = &dra7xx_l4_wkup_hwmod,
3903 .slave = &dra7xx_wd_timer2_hwmod,
3904 .clk = "wkupaon_iclk_mux",
3905 .user = OCP_USER_MPU | OCP_USER_SDMA,
3908 /* l4_per2 -> epwmss0 */
3909 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0 = {
3910 .master = &dra7xx_l4_per2_hwmod,
3911 .slave = &dra7xx_epwmss0_hwmod,
3912 .clk = "l4_root_clk_div",
3913 .user = OCP_USER_MPU,
3916 /* l4_per2 -> epwmss1 */
3917 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1 = {
3918 .master = &dra7xx_l4_per2_hwmod,
3919 .slave = &dra7xx_epwmss1_hwmod,
3920 .clk = "l4_root_clk_div",
3921 .user = OCP_USER_MPU,
3924 /* l4_per2 -> epwmss2 */
3925 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = {
3926 .master = &dra7xx_l4_per2_hwmod,
3927 .slave = &dra7xx_epwmss2_hwmod,
3928 .clk = "l4_root_clk_div",
3929 .user = OCP_USER_MPU,
3932 static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
3933 &dra7xx_l3_main_1__dmm,
3934 &dra7xx_l3_main_2__l3_instr,
3935 &dra7xx_l4_cfg__l3_main_1,
3936 &dra7xx_mpu__l3_main_1,
3937 &dra7xx_l3_main_1__l3_main_2,
3938 &dra7xx_l4_cfg__l3_main_2,
3939 &dra7xx_l3_main_1__l4_cfg,
3940 &dra7xx_l3_main_1__l4_per1,
3941 &dra7xx_l3_main_1__l4_per2,
3942 &dra7xx_l3_main_1__l4_per3,
3943 &dra7xx_l3_main_1__l4_wkup,
3944 &dra7xx_l4_per2__atl,
3945 &dra7xx_l3_main_1__bb2d,
3946 &dra7xx_l4_wkup__counter_32k,
3947 &dra7xx_l4_wkup__ctrl_module_wkup,
3948 &dra7xx_l4_wkup__dcan1,
3949 &dra7xx_l4_per2__dcan2,
3950 &dra7xx_l4_per2__cpgmac0,
3951 &dra7xx_l4_per2__mcasp1,
3952 &dra7xx_l3_main_1__mcasp1,
3953 &dra7xx_l4_per2__mcasp2,
3954 &dra7xx_l3_main_1__mcasp2,
3955 &dra7xx_l4_per2__mcasp3,
3956 &dra7xx_l3_main_1__mcasp3,
3957 &dra7xx_l4_per2__mcasp4,
3958 &dra7xx_l4_per2__mcasp5,
3959 &dra7xx_l4_per2__mcasp6,
3960 &dra7xx_l4_per2__mcasp7,
3961 &dra7xx_l4_per2__mcasp8,
3963 &dra7xx_l4_cfg__dma_system,
3964 &dra7xx_l3_main_1__tpcc,
3965 &dra7xx_l3_main_1__tptc0,
3966 &dra7xx_l3_main_1__tptc1,
3967 &dra7xx_l3_main_1__dss,
3968 &dra7xx_l3_main_1__dispc,
3969 &dra7xx_l3_main_1__hdmi,
3970 &dra7xx_l3_main_1__aes1,
3971 &dra7xx_l3_main_1__aes2,
3972 &dra7xx_l3_main_1__sha0,
3973 &dra7xx_l4_per1__elm,
3974 &dra7xx_l4_wkup__gpio1,
3975 &dra7xx_l4_per1__gpio2,
3976 &dra7xx_l4_per1__gpio3,
3977 &dra7xx_l4_per1__gpio4,
3978 &dra7xx_l4_per1__gpio5,
3979 &dra7xx_l4_per1__gpio6,
3980 &dra7xx_l4_per1__gpio7,
3981 &dra7xx_l4_per1__gpio8,
3982 &dra7xx_l3_main_1__gpmc,
3983 &dra7xx_l4_per1__hdq1w,
3984 &dra7xx_l4_per1__i2c1,
3985 &dra7xx_l4_per1__i2c2,
3986 &dra7xx_l4_per1__i2c3,
3987 &dra7xx_l4_per1__i2c4,
3988 &dra7xx_l4_per1__i2c5,
3989 &dra7xx_l4_cfg__mailbox1,
3990 &dra7xx_l4_per3__mailbox2,
3991 &dra7xx_l4_per3__mailbox3,
3992 &dra7xx_l4_per3__mailbox4,
3993 &dra7xx_l4_per3__mailbox5,
3994 &dra7xx_l4_per3__mailbox6,
3995 &dra7xx_l4_per3__mailbox7,
3996 &dra7xx_l4_per3__mailbox8,
3997 &dra7xx_l4_per3__mailbox9,
3998 &dra7xx_l4_per3__mailbox10,
3999 &dra7xx_l4_per3__mailbox11,
4000 &dra7xx_l4_per3__mailbox12,
4001 &dra7xx_l4_per3__mailbox13,
4002 &dra7xx_l4_per1__mcspi1,
4003 &dra7xx_l4_per1__mcspi2,
4004 &dra7xx_l4_per1__mcspi3,
4005 &dra7xx_l4_per1__mcspi4,
4006 &dra7xx_l4_per1__mmc1,
4007 &dra7xx_l4_per1__mmc2,
4008 &dra7xx_l4_per1__mmc3,
4009 &dra7xx_l4_per1__mmc4,
4010 &dra7xx_l4_cfg__mpu,
4011 &dra7xx_l4_cfg__ocp2scp1,
4012 &dra7xx_l4_cfg__ocp2scp3,
4013 &dra7xx_l3_main_1__pciess1,
4014 &dra7xx_l4_cfg__pciess1,
4015 &dra7xx_l3_main_1__pciess2,
4016 &dra7xx_l4_cfg__pciess2,
4017 &dra7xx_l3_main_1__qspi,
4018 &dra7xx_l4_cfg__sata,
4019 &dra7xx_l4_cfg__smartreflex_core,
4020 &dra7xx_l4_cfg__smartreflex_mpu,
4021 &dra7xx_l4_cfg__spinlock,
4022 &dra7xx_l4_wkup__timer1,
4023 &dra7xx_l4_per1__timer2,
4024 &dra7xx_l4_per1__timer3,
4025 &dra7xx_l4_per1__timer4,
4026 &dra7xx_l4_per3__timer5,
4027 &dra7xx_l4_per3__timer6,
4028 &dra7xx_l4_per3__timer7,
4029 &dra7xx_l4_per3__timer8,
4030 &dra7xx_l4_per1__timer9,
4031 &dra7xx_l4_per1__timer10,
4032 &dra7xx_l4_per1__timer11,
4033 &dra7xx_l4_per3__timer13,
4034 &dra7xx_l4_per3__timer14,
4035 &dra7xx_l4_per3__timer15,
4036 &dra7xx_l4_per3__timer16,
4037 &dra7xx_l4_per1__uart1,
4038 &dra7xx_l4_per1__uart2,
4039 &dra7xx_l4_per1__uart3,
4040 &dra7xx_l4_per1__uart4,
4041 &dra7xx_l4_per1__uart5,
4042 &dra7xx_l4_per1__uart6,
4043 &dra7xx_l4_per2__uart7,
4044 &dra7xx_l4_per2__uart8,
4045 &dra7xx_l4_per2__uart9,
4046 &dra7xx_l4_wkup__uart10,
4047 &dra7xx_l4_per1__des,
4048 &dra7xx_l4_per3__usb_otg_ss1,
4049 &dra7xx_l4_per3__usb_otg_ss2,
4050 &dra7xx_l4_per3__usb_otg_ss3,
4051 &dra7xx_l3_main_1__vcp1,
4052 &dra7xx_l4_per2__vcp1,
4053 &dra7xx_l3_main_1__vcp2,
4054 &dra7xx_l4_per2__vcp2,
4055 &dra7xx_l4_wkup__wd_timer2,
4056 &dra7xx_l4_per2__epwmss0,
4057 &dra7xx_l4_per2__epwmss1,
4058 &dra7xx_l4_per2__epwmss2,
4062 /* GP-only hwmod links */
4063 static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = {
4064 &dra7xx_l4_wkup__timer12,
4065 &dra7xx_l4_per1__rng,
4069 /* SoC variant specific hwmod links */
4070 static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
4071 &dra7xx_l4_per3__usb_otg_ss4,
4075 static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
4079 static struct omap_hwmod_ocp_if *dra74x_dra72x_hwmod_ocp_ifs[] __initdata = {
4080 &dra7xx_l4_per3__rtcss,
4084 int __init dra7xx_hwmod_init(void)
4089 ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
4091 if (!ret && soc_is_dra74x())
4092 ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
4093 else if (!ret && soc_is_dra72x())
4094 ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
4096 if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP)
4097 ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs);
4099 /* now for the IPs *NOT* in dra71 */
4100 if (!ret && !of_machine_is_compatible("ti,dra718"))
4101 ret = omap_hwmod_register_links(dra74x_dra72x_hwmod_ocp_ifs);