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
,
698 static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc
= {
702 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
703 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
704 SYSS_HAS_RESET_STATUS
),
705 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
707 .sysc_fields
= &omap_hwmod_sysc_type1
,
710 static struct omap_hwmod_class dra7xx_elm_hwmod_class
= {
712 .sysc
= &dra7xx_elm_sysc
,
717 static struct omap_hwmod dra7xx_elm_hwmod
= {
719 .class = &dra7xx_elm_hwmod_class
,
720 .clkdm_name
= "l4per_clkdm",
721 .main_clk
= "l3_iclk_div",
724 .clkctrl_offs
= DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET
,
725 .context_offs
= DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET
,
735 static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc
= {
739 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
740 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
741 SYSS_HAS_RESET_STATUS
),
742 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
744 .sysc_fields
= &omap_hwmod_sysc_type1
,
747 static struct omap_hwmod_class dra7xx_gpio_hwmod_class
= {
749 .sysc
= &dra7xx_gpio_sysc
,
754 static struct omap_gpio_dev_attr gpio_dev_attr
= {
760 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
761 { .role
= "dbclk", .clk
= "gpio1_dbclk" },
764 static struct omap_hwmod dra7xx_gpio1_hwmod
= {
766 .class = &dra7xx_gpio_hwmod_class
,
767 .clkdm_name
= "wkupaon_clkdm",
768 .main_clk
= "wkupaon_iclk_mux",
771 .clkctrl_offs
= DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET
,
772 .context_offs
= DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET
,
773 .modulemode
= MODULEMODE_HWCTRL
,
776 .opt_clks
= gpio1_opt_clks
,
777 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
778 .dev_attr
= &gpio_dev_attr
,
782 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
783 { .role
= "dbclk", .clk
= "gpio2_dbclk" },
786 static struct omap_hwmod dra7xx_gpio2_hwmod
= {
788 .class = &dra7xx_gpio_hwmod_class
,
789 .clkdm_name
= "l4per_clkdm",
790 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
791 .main_clk
= "l3_iclk_div",
794 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET
,
795 .context_offs
= DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET
,
796 .modulemode
= MODULEMODE_HWCTRL
,
799 .opt_clks
= gpio2_opt_clks
,
800 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
801 .dev_attr
= &gpio_dev_attr
,
805 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
806 { .role
= "dbclk", .clk
= "gpio3_dbclk" },
809 static struct omap_hwmod dra7xx_gpio3_hwmod
= {
811 .class = &dra7xx_gpio_hwmod_class
,
812 .clkdm_name
= "l4per_clkdm",
813 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
814 .main_clk
= "l3_iclk_div",
817 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET
,
818 .context_offs
= DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET
,
819 .modulemode
= MODULEMODE_HWCTRL
,
822 .opt_clks
= gpio3_opt_clks
,
823 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
824 .dev_attr
= &gpio_dev_attr
,
828 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
829 { .role
= "dbclk", .clk
= "gpio4_dbclk" },
832 static struct omap_hwmod dra7xx_gpio4_hwmod
= {
834 .class = &dra7xx_gpio_hwmod_class
,
835 .clkdm_name
= "l4per_clkdm",
836 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
837 .main_clk
= "l3_iclk_div",
840 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET
,
841 .context_offs
= DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET
,
842 .modulemode
= MODULEMODE_HWCTRL
,
845 .opt_clks
= gpio4_opt_clks
,
846 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
847 .dev_attr
= &gpio_dev_attr
,
851 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
852 { .role
= "dbclk", .clk
= "gpio5_dbclk" },
855 static struct omap_hwmod dra7xx_gpio5_hwmod
= {
857 .class = &dra7xx_gpio_hwmod_class
,
858 .clkdm_name
= "l4per_clkdm",
859 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
860 .main_clk
= "l3_iclk_div",
863 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET
,
864 .context_offs
= DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET
,
865 .modulemode
= MODULEMODE_HWCTRL
,
868 .opt_clks
= gpio5_opt_clks
,
869 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
870 .dev_attr
= &gpio_dev_attr
,
874 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
875 { .role
= "dbclk", .clk
= "gpio6_dbclk" },
878 static struct omap_hwmod dra7xx_gpio6_hwmod
= {
880 .class = &dra7xx_gpio_hwmod_class
,
881 .clkdm_name
= "l4per_clkdm",
882 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
883 .main_clk
= "l3_iclk_div",
886 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET
,
887 .context_offs
= DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET
,
888 .modulemode
= MODULEMODE_HWCTRL
,
891 .opt_clks
= gpio6_opt_clks
,
892 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
893 .dev_attr
= &gpio_dev_attr
,
897 static struct omap_hwmod_opt_clk gpio7_opt_clks
[] = {
898 { .role
= "dbclk", .clk
= "gpio7_dbclk" },
901 static struct omap_hwmod dra7xx_gpio7_hwmod
= {
903 .class = &dra7xx_gpio_hwmod_class
,
904 .clkdm_name
= "l4per_clkdm",
905 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
906 .main_clk
= "l3_iclk_div",
909 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET
,
910 .context_offs
= DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET
,
911 .modulemode
= MODULEMODE_HWCTRL
,
914 .opt_clks
= gpio7_opt_clks
,
915 .opt_clks_cnt
= ARRAY_SIZE(gpio7_opt_clks
),
916 .dev_attr
= &gpio_dev_attr
,
920 static struct omap_hwmod_opt_clk gpio8_opt_clks
[] = {
921 { .role
= "dbclk", .clk
= "gpio8_dbclk" },
924 static struct omap_hwmod dra7xx_gpio8_hwmod
= {
926 .class = &dra7xx_gpio_hwmod_class
,
927 .clkdm_name
= "l4per_clkdm",
928 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
929 .main_clk
= "l3_iclk_div",
932 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET
,
933 .context_offs
= DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET
,
934 .modulemode
= MODULEMODE_HWCTRL
,
937 .opt_clks
= gpio8_opt_clks
,
938 .opt_clks_cnt
= ARRAY_SIZE(gpio8_opt_clks
),
939 .dev_attr
= &gpio_dev_attr
,
947 static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc
= {
951 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
952 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
953 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
954 .sysc_fields
= &omap_hwmod_sysc_type1
,
957 static struct omap_hwmod_class dra7xx_gpmc_hwmod_class
= {
959 .sysc
= &dra7xx_gpmc_sysc
,
964 static struct omap_hwmod dra7xx_gpmc_hwmod
= {
966 .class = &dra7xx_gpmc_hwmod_class
,
967 .clkdm_name
= "l3main1_clkdm",
968 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
969 .flags
= DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
970 .main_clk
= "l3_iclk_div",
973 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET
,
974 .context_offs
= DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET
,
975 .modulemode
= MODULEMODE_HWCTRL
,
985 static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc
= {
989 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SOFTRESET
|
990 SYSS_HAS_RESET_STATUS
),
991 .sysc_fields
= &omap_hwmod_sysc_type1
,
994 static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class
= {
996 .sysc
= &dra7xx_hdq1w_sysc
,
1001 static struct omap_hwmod dra7xx_hdq1w_hwmod
= {
1003 .class = &dra7xx_hdq1w_hwmod_class
,
1004 .clkdm_name
= "l4per_clkdm",
1005 .flags
= HWMOD_INIT_NO_RESET
,
1006 .main_clk
= "func_12m_fclk",
1009 .clkctrl_offs
= DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET
,
1010 .context_offs
= DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET
,
1011 .modulemode
= MODULEMODE_SWCTRL
,
1021 static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc
= {
1022 .sysc_offs
= 0x0010,
1023 .syss_offs
= 0x0090,
1024 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1025 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1026 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1027 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1029 .clockact
= CLOCKACT_TEST_ICLK
,
1030 .sysc_fields
= &omap_hwmod_sysc_type1
,
1033 static struct omap_hwmod_class dra7xx_i2c_hwmod_class
= {
1035 .sysc
= &dra7xx_i2c_sysc
,
1036 .reset
= &omap_i2c_reset
,
1037 .rev
= OMAP_I2C_IP_VERSION_2
,
1041 static struct omap_i2c_dev_attr i2c_dev_attr
= {
1042 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
1046 static struct omap_hwmod dra7xx_i2c1_hwmod
= {
1048 .class = &dra7xx_i2c_hwmod_class
,
1049 .clkdm_name
= "l4per_clkdm",
1050 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1051 .main_clk
= "func_96m_fclk",
1054 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET
,
1055 .context_offs
= DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET
,
1056 .modulemode
= MODULEMODE_SWCTRL
,
1059 .dev_attr
= &i2c_dev_attr
,
1063 static struct omap_hwmod dra7xx_i2c2_hwmod
= {
1065 .class = &dra7xx_i2c_hwmod_class
,
1066 .clkdm_name
= "l4per_clkdm",
1067 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1068 .main_clk
= "func_96m_fclk",
1071 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET
,
1072 .context_offs
= DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET
,
1073 .modulemode
= MODULEMODE_SWCTRL
,
1076 .dev_attr
= &i2c_dev_attr
,
1080 static struct omap_hwmod dra7xx_i2c3_hwmod
= {
1082 .class = &dra7xx_i2c_hwmod_class
,
1083 .clkdm_name
= "l4per_clkdm",
1084 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1085 .main_clk
= "func_96m_fclk",
1088 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET
,
1089 .context_offs
= DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET
,
1090 .modulemode
= MODULEMODE_SWCTRL
,
1093 .dev_attr
= &i2c_dev_attr
,
1097 static struct omap_hwmod dra7xx_i2c4_hwmod
= {
1099 .class = &dra7xx_i2c_hwmod_class
,
1100 .clkdm_name
= "l4per_clkdm",
1101 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1102 .main_clk
= "func_96m_fclk",
1105 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET
,
1106 .context_offs
= DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET
,
1107 .modulemode
= MODULEMODE_SWCTRL
,
1110 .dev_attr
= &i2c_dev_attr
,
1114 static struct omap_hwmod dra7xx_i2c5_hwmod
= {
1116 .class = &dra7xx_i2c_hwmod_class
,
1117 .clkdm_name
= "ipu_clkdm",
1118 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
1119 .main_clk
= "func_96m_fclk",
1122 .clkctrl_offs
= DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET
,
1123 .context_offs
= DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET
,
1124 .modulemode
= MODULEMODE_SWCTRL
,
1127 .dev_attr
= &i2c_dev_attr
,
1135 static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc
= {
1137 .sysc_offs
= 0x0010,
1138 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1139 SYSC_HAS_SOFTRESET
),
1140 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1141 .sysc_fields
= &omap_hwmod_sysc_type2
,
1144 static struct omap_hwmod_class dra7xx_mailbox_hwmod_class
= {
1146 .sysc
= &dra7xx_mailbox_sysc
,
1150 static struct omap_hwmod dra7xx_mailbox1_hwmod
= {
1152 .class = &dra7xx_mailbox_hwmod_class
,
1153 .clkdm_name
= "l4cfg_clkdm",
1156 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET
,
1157 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET
,
1163 static struct omap_hwmod dra7xx_mailbox2_hwmod
= {
1165 .class = &dra7xx_mailbox_hwmod_class
,
1166 .clkdm_name
= "l4cfg_clkdm",
1169 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET
,
1170 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET
,
1176 static struct omap_hwmod dra7xx_mailbox3_hwmod
= {
1178 .class = &dra7xx_mailbox_hwmod_class
,
1179 .clkdm_name
= "l4cfg_clkdm",
1182 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET
,
1183 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET
,
1189 static struct omap_hwmod dra7xx_mailbox4_hwmod
= {
1191 .class = &dra7xx_mailbox_hwmod_class
,
1192 .clkdm_name
= "l4cfg_clkdm",
1195 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET
,
1196 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET
,
1202 static struct omap_hwmod dra7xx_mailbox5_hwmod
= {
1204 .class = &dra7xx_mailbox_hwmod_class
,
1205 .clkdm_name
= "l4cfg_clkdm",
1208 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET
,
1209 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET
,
1215 static struct omap_hwmod dra7xx_mailbox6_hwmod
= {
1217 .class = &dra7xx_mailbox_hwmod_class
,
1218 .clkdm_name
= "l4cfg_clkdm",
1221 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET
,
1222 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET
,
1228 static struct omap_hwmod dra7xx_mailbox7_hwmod
= {
1230 .class = &dra7xx_mailbox_hwmod_class
,
1231 .clkdm_name
= "l4cfg_clkdm",
1234 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET
,
1235 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET
,
1241 static struct omap_hwmod dra7xx_mailbox8_hwmod
= {
1243 .class = &dra7xx_mailbox_hwmod_class
,
1244 .clkdm_name
= "l4cfg_clkdm",
1247 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET
,
1248 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET
,
1254 static struct omap_hwmod dra7xx_mailbox9_hwmod
= {
1256 .class = &dra7xx_mailbox_hwmod_class
,
1257 .clkdm_name
= "l4cfg_clkdm",
1260 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET
,
1261 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET
,
1267 static struct omap_hwmod dra7xx_mailbox10_hwmod
= {
1268 .name
= "mailbox10",
1269 .class = &dra7xx_mailbox_hwmod_class
,
1270 .clkdm_name
= "l4cfg_clkdm",
1273 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET
,
1274 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET
,
1280 static struct omap_hwmod dra7xx_mailbox11_hwmod
= {
1281 .name
= "mailbox11",
1282 .class = &dra7xx_mailbox_hwmod_class
,
1283 .clkdm_name
= "l4cfg_clkdm",
1286 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET
,
1287 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET
,
1293 static struct omap_hwmod dra7xx_mailbox12_hwmod
= {
1294 .name
= "mailbox12",
1295 .class = &dra7xx_mailbox_hwmod_class
,
1296 .clkdm_name
= "l4cfg_clkdm",
1299 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET
,
1300 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET
,
1306 static struct omap_hwmod dra7xx_mailbox13_hwmod
= {
1307 .name
= "mailbox13",
1308 .class = &dra7xx_mailbox_hwmod_class
,
1309 .clkdm_name
= "l4cfg_clkdm",
1312 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET
,
1313 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET
,
1323 static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc
= {
1325 .sysc_offs
= 0x0010,
1326 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1327 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1328 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1330 .sysc_fields
= &omap_hwmod_sysc_type2
,
1333 static struct omap_hwmod_class dra7xx_mcspi_hwmod_class
= {
1335 .sysc
= &dra7xx_mcspi_sysc
,
1336 .rev
= OMAP4_MCSPI_REV
,
1340 /* mcspi1 dev_attr */
1341 static struct omap2_mcspi_dev_attr mcspi1_dev_attr
= {
1342 .num_chipselect
= 4,
1345 static struct omap_hwmod dra7xx_mcspi1_hwmod
= {
1347 .class = &dra7xx_mcspi_hwmod_class
,
1348 .clkdm_name
= "l4per_clkdm",
1349 .main_clk
= "func_48m_fclk",
1352 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET
,
1353 .context_offs
= DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET
,
1354 .modulemode
= MODULEMODE_SWCTRL
,
1357 .dev_attr
= &mcspi1_dev_attr
,
1361 /* mcspi2 dev_attr */
1362 static struct omap2_mcspi_dev_attr mcspi2_dev_attr
= {
1363 .num_chipselect
= 2,
1366 static struct omap_hwmod dra7xx_mcspi2_hwmod
= {
1368 .class = &dra7xx_mcspi_hwmod_class
,
1369 .clkdm_name
= "l4per_clkdm",
1370 .main_clk
= "func_48m_fclk",
1373 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET
,
1374 .context_offs
= DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET
,
1375 .modulemode
= MODULEMODE_SWCTRL
,
1378 .dev_attr
= &mcspi2_dev_attr
,
1382 /* mcspi3 dev_attr */
1383 static struct omap2_mcspi_dev_attr mcspi3_dev_attr
= {
1384 .num_chipselect
= 2,
1387 static struct omap_hwmod dra7xx_mcspi3_hwmod
= {
1389 .class = &dra7xx_mcspi_hwmod_class
,
1390 .clkdm_name
= "l4per_clkdm",
1391 .main_clk
= "func_48m_fclk",
1394 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET
,
1395 .context_offs
= DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET
,
1396 .modulemode
= MODULEMODE_SWCTRL
,
1399 .dev_attr
= &mcspi3_dev_attr
,
1403 /* mcspi4 dev_attr */
1404 static struct omap2_mcspi_dev_attr mcspi4_dev_attr
= {
1405 .num_chipselect
= 1,
1408 static struct omap_hwmod dra7xx_mcspi4_hwmod
= {
1410 .class = &dra7xx_mcspi_hwmod_class
,
1411 .clkdm_name
= "l4per_clkdm",
1412 .main_clk
= "func_48m_fclk",
1415 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET
,
1416 .context_offs
= DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET
,
1417 .modulemode
= MODULEMODE_SWCTRL
,
1420 .dev_attr
= &mcspi4_dev_attr
,
1427 static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc
= {
1428 .sysc_offs
= 0x0004,
1429 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1430 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1431 .sysc_fields
= &omap_hwmod_sysc_type3
,
1434 static struct omap_hwmod_class dra7xx_mcasp_hwmod_class
= {
1436 .sysc
= &dra7xx_mcasp_sysc
,
1440 static struct omap_hwmod_opt_clk mcasp1_opt_clks
[] = {
1441 { .role
= "ahclkx", .clk
= "mcasp1_ahclkx_mux" },
1442 { .role
= "ahclkr", .clk
= "mcasp1_ahclkr_mux" },
1445 static struct omap_hwmod dra7xx_mcasp1_hwmod
= {
1447 .class = &dra7xx_mcasp_hwmod_class
,
1448 .clkdm_name
= "ipu_clkdm",
1449 .main_clk
= "mcasp1_aux_gfclk_mux",
1450 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1453 .clkctrl_offs
= DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET
,
1454 .context_offs
= DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET
,
1455 .modulemode
= MODULEMODE_SWCTRL
,
1458 .opt_clks
= mcasp1_opt_clks
,
1459 .opt_clks_cnt
= ARRAY_SIZE(mcasp1_opt_clks
),
1463 static struct omap_hwmod_opt_clk mcasp2_opt_clks
[] = {
1464 { .role
= "ahclkx", .clk
= "mcasp2_ahclkx_mux" },
1465 { .role
= "ahclkr", .clk
= "mcasp2_ahclkr_mux" },
1468 static struct omap_hwmod dra7xx_mcasp2_hwmod
= {
1470 .class = &dra7xx_mcasp_hwmod_class
,
1471 .clkdm_name
= "l4per2_clkdm",
1472 .main_clk
= "mcasp2_aux_gfclk_mux",
1473 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1476 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET
,
1477 .context_offs
= DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET
,
1478 .modulemode
= MODULEMODE_SWCTRL
,
1481 .opt_clks
= mcasp2_opt_clks
,
1482 .opt_clks_cnt
= ARRAY_SIZE(mcasp2_opt_clks
),
1486 static struct omap_hwmod_opt_clk mcasp3_opt_clks
[] = {
1487 { .role
= "ahclkx", .clk
= "mcasp3_ahclkx_mux" },
1490 static struct omap_hwmod dra7xx_mcasp3_hwmod
= {
1492 .class = &dra7xx_mcasp_hwmod_class
,
1493 .clkdm_name
= "l4per2_clkdm",
1494 .main_clk
= "mcasp3_aux_gfclk_mux",
1495 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1498 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET
,
1499 .context_offs
= DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET
,
1500 .modulemode
= MODULEMODE_SWCTRL
,
1503 .opt_clks
= mcasp3_opt_clks
,
1504 .opt_clks_cnt
= ARRAY_SIZE(mcasp3_opt_clks
),
1508 static struct omap_hwmod_opt_clk mcasp4_opt_clks
[] = {
1509 { .role
= "ahclkx", .clk
= "mcasp4_ahclkx_mux" },
1512 static struct omap_hwmod dra7xx_mcasp4_hwmod
= {
1514 .class = &dra7xx_mcasp_hwmod_class
,
1515 .clkdm_name
= "l4per2_clkdm",
1516 .main_clk
= "mcasp4_aux_gfclk_mux",
1517 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1520 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET
,
1521 .context_offs
= DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET
,
1522 .modulemode
= MODULEMODE_SWCTRL
,
1525 .opt_clks
= mcasp4_opt_clks
,
1526 .opt_clks_cnt
= ARRAY_SIZE(mcasp4_opt_clks
),
1530 static struct omap_hwmod_opt_clk mcasp5_opt_clks
[] = {
1531 { .role
= "ahclkx", .clk
= "mcasp5_ahclkx_mux" },
1534 static struct omap_hwmod dra7xx_mcasp5_hwmod
= {
1536 .class = &dra7xx_mcasp_hwmod_class
,
1537 .clkdm_name
= "l4per2_clkdm",
1538 .main_clk
= "mcasp5_aux_gfclk_mux",
1539 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1542 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET
,
1543 .context_offs
= DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET
,
1544 .modulemode
= MODULEMODE_SWCTRL
,
1547 .opt_clks
= mcasp5_opt_clks
,
1548 .opt_clks_cnt
= ARRAY_SIZE(mcasp5_opt_clks
),
1552 static struct omap_hwmod_opt_clk mcasp6_opt_clks
[] = {
1553 { .role
= "ahclkx", .clk
= "mcasp6_ahclkx_mux" },
1556 static struct omap_hwmod dra7xx_mcasp6_hwmod
= {
1558 .class = &dra7xx_mcasp_hwmod_class
,
1559 .clkdm_name
= "l4per2_clkdm",
1560 .main_clk
= "mcasp6_aux_gfclk_mux",
1561 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1564 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET
,
1565 .context_offs
= DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET
,
1566 .modulemode
= MODULEMODE_SWCTRL
,
1569 .opt_clks
= mcasp6_opt_clks
,
1570 .opt_clks_cnt
= ARRAY_SIZE(mcasp6_opt_clks
),
1574 static struct omap_hwmod_opt_clk mcasp7_opt_clks
[] = {
1575 { .role
= "ahclkx", .clk
= "mcasp7_ahclkx_mux" },
1578 static struct omap_hwmod dra7xx_mcasp7_hwmod
= {
1580 .class = &dra7xx_mcasp_hwmod_class
,
1581 .clkdm_name
= "l4per2_clkdm",
1582 .main_clk
= "mcasp7_aux_gfclk_mux",
1583 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1586 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET
,
1587 .context_offs
= DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET
,
1588 .modulemode
= MODULEMODE_SWCTRL
,
1591 .opt_clks
= mcasp7_opt_clks
,
1592 .opt_clks_cnt
= ARRAY_SIZE(mcasp7_opt_clks
),
1596 static struct omap_hwmod_opt_clk mcasp8_opt_clks
[] = {
1597 { .role
= "ahclkx", .clk
= "mcasp8_ahclkx_mux" },
1600 static struct omap_hwmod dra7xx_mcasp8_hwmod
= {
1602 .class = &dra7xx_mcasp_hwmod_class
,
1603 .clkdm_name
= "l4per2_clkdm",
1604 .main_clk
= "mcasp8_aux_gfclk_mux",
1605 .flags
= HWMOD_OPT_CLKS_NEEDED
,
1608 .clkctrl_offs
= DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET
,
1609 .context_offs
= DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET
,
1610 .modulemode
= MODULEMODE_SWCTRL
,
1613 .opt_clks
= mcasp8_opt_clks
,
1614 .opt_clks_cnt
= ARRAY_SIZE(mcasp8_opt_clks
),
1622 static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc
= {
1624 .sysc_offs
= 0x0010,
1625 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
1626 SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1627 SYSC_HAS_SOFTRESET
),
1628 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1629 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1630 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1631 .sysc_fields
= &omap_hwmod_sysc_type2
,
1634 static struct omap_hwmod_class dra7xx_mmc_hwmod_class
= {
1636 .sysc
= &dra7xx_mmc_sysc
,
1640 static struct omap_hwmod_opt_clk mmc1_opt_clks
[] = {
1641 { .role
= "clk32k", .clk
= "mmc1_clk32k" },
1645 static struct omap_hsmmc_dev_attr mmc1_dev_attr
= {
1646 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1649 static struct omap_hwmod dra7xx_mmc1_hwmod
= {
1651 .class = &dra7xx_mmc_hwmod_class
,
1652 .clkdm_name
= "l3init_clkdm",
1653 .main_clk
= "mmc1_fclk_div",
1656 .clkctrl_offs
= DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET
,
1657 .context_offs
= DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET
,
1658 .modulemode
= MODULEMODE_SWCTRL
,
1661 .opt_clks
= mmc1_opt_clks
,
1662 .opt_clks_cnt
= ARRAY_SIZE(mmc1_opt_clks
),
1663 .dev_attr
= &mmc1_dev_attr
,
1667 static struct omap_hwmod_opt_clk mmc2_opt_clks
[] = {
1668 { .role
= "clk32k", .clk
= "mmc2_clk32k" },
1671 static struct omap_hwmod dra7xx_mmc2_hwmod
= {
1673 .class = &dra7xx_mmc_hwmod_class
,
1674 .clkdm_name
= "l3init_clkdm",
1675 .main_clk
= "mmc2_fclk_div",
1678 .clkctrl_offs
= DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET
,
1679 .context_offs
= DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET
,
1680 .modulemode
= MODULEMODE_SWCTRL
,
1683 .opt_clks
= mmc2_opt_clks
,
1684 .opt_clks_cnt
= ARRAY_SIZE(mmc2_opt_clks
),
1688 static struct omap_hwmod_opt_clk mmc3_opt_clks
[] = {
1689 { .role
= "clk32k", .clk
= "mmc3_clk32k" },
1692 static struct omap_hwmod dra7xx_mmc3_hwmod
= {
1694 .class = &dra7xx_mmc_hwmod_class
,
1695 .clkdm_name
= "l4per_clkdm",
1696 .main_clk
= "mmc3_gfclk_div",
1699 .clkctrl_offs
= DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET
,
1700 .context_offs
= DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET
,
1701 .modulemode
= MODULEMODE_SWCTRL
,
1704 .opt_clks
= mmc3_opt_clks
,
1705 .opt_clks_cnt
= ARRAY_SIZE(mmc3_opt_clks
),
1709 static struct omap_hwmod_opt_clk mmc4_opt_clks
[] = {
1710 { .role
= "clk32k", .clk
= "mmc4_clk32k" },
1713 static struct omap_hwmod dra7xx_mmc4_hwmod
= {
1715 .class = &dra7xx_mmc_hwmod_class
,
1716 .clkdm_name
= "l4per_clkdm",
1717 .main_clk
= "mmc4_gfclk_div",
1720 .clkctrl_offs
= DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET
,
1721 .context_offs
= DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET
,
1722 .modulemode
= MODULEMODE_SWCTRL
,
1725 .opt_clks
= mmc4_opt_clks
,
1726 .opt_clks_cnt
= ARRAY_SIZE(mmc4_opt_clks
),
1734 static struct omap_hwmod_class dra7xx_mpu_hwmod_class
= {
1739 static struct omap_hwmod dra7xx_mpu_hwmod
= {
1741 .class = &dra7xx_mpu_hwmod_class
,
1742 .clkdm_name
= "mpu_clkdm",
1743 .flags
= HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
,
1744 .main_clk
= "dpll_mpu_m2_ck",
1747 .clkctrl_offs
= DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET
,
1748 .context_offs
= DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET
,
1758 static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc
= {
1760 .sysc_offs
= 0x0010,
1761 .syss_offs
= 0x0014,
1762 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1763 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1764 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1765 .sysc_fields
= &omap_hwmod_sysc_type1
,
1768 static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class
= {
1770 .sysc
= &dra7xx_ocp2scp_sysc
,
1774 static struct omap_hwmod dra7xx_ocp2scp1_hwmod
= {
1776 .class = &dra7xx_ocp2scp_hwmod_class
,
1777 .clkdm_name
= "l3init_clkdm",
1778 .main_clk
= "l4_root_clk_div",
1781 .clkctrl_offs
= DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET
,
1782 .context_offs
= DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET
,
1783 .modulemode
= MODULEMODE_HWCTRL
,
1789 static struct omap_hwmod dra7xx_ocp2scp3_hwmod
= {
1791 .class = &dra7xx_ocp2scp_hwmod_class
,
1792 .clkdm_name
= "l3init_clkdm",
1793 .main_clk
= "l4_root_clk_div",
1796 .clkctrl_offs
= DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET
,
1797 .context_offs
= DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET
,
1798 .modulemode
= MODULEMODE_HWCTRL
,
1809 * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
1810 * functionality of OMAP HWMOD layer does not deassert the hardreset lines
1811 * associated with an IP automatically leaving the driver to handle that
1812 * by itself. This does not work for PCIeSS which needs the reset lines
1813 * deasserted for the driver to start accessing registers.
1815 * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
1816 * lines after asserting them.
1818 static int dra7xx_pciess_reset(struct omap_hwmod
*oh
)
1822 for (i
= 0; i
< oh
->rst_lines_cnt
; i
++) {
1823 omap_hwmod_assert_hardreset(oh
, oh
->rst_lines
[i
].name
);
1824 omap_hwmod_deassert_hardreset(oh
, oh
->rst_lines
[i
].name
);
1830 static struct omap_hwmod_class dra7xx_pciess_hwmod_class
= {
1832 .reset
= dra7xx_pciess_reset
,
1836 static struct omap_hwmod_rst_info dra7xx_pciess1_resets
[] = {
1837 { .name
= "pcie", .rst_shift
= 0 },
1840 static struct omap_hwmod dra7xx_pciess1_hwmod
= {
1842 .class = &dra7xx_pciess_hwmod_class
,
1843 .clkdm_name
= "pcie_clkdm",
1844 .rst_lines
= dra7xx_pciess1_resets
,
1845 .rst_lines_cnt
= ARRAY_SIZE(dra7xx_pciess1_resets
),
1846 .main_clk
= "l4_root_clk_div",
1849 .clkctrl_offs
= DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET
,
1850 .rstctrl_offs
= DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET
,
1851 .context_offs
= DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET
,
1852 .modulemode
= MODULEMODE_SWCTRL
,
1858 static struct omap_hwmod_rst_info dra7xx_pciess2_resets
[] = {
1859 { .name
= "pcie", .rst_shift
= 1 },
1863 static struct omap_hwmod dra7xx_pciess2_hwmod
= {
1865 .class = &dra7xx_pciess_hwmod_class
,
1866 .clkdm_name
= "pcie_clkdm",
1867 .rst_lines
= dra7xx_pciess2_resets
,
1868 .rst_lines_cnt
= ARRAY_SIZE(dra7xx_pciess2_resets
),
1869 .main_clk
= "l4_root_clk_div",
1872 .clkctrl_offs
= DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET
,
1873 .rstctrl_offs
= DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET
,
1874 .context_offs
= DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET
,
1875 .modulemode
= MODULEMODE_SWCTRL
,
1885 static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc
= {
1886 .sysc_offs
= 0x0010,
1887 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1888 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1890 .sysc_fields
= &omap_hwmod_sysc_type2
,
1893 static struct omap_hwmod_class dra7xx_qspi_hwmod_class
= {
1895 .sysc
= &dra7xx_qspi_sysc
,
1899 static struct omap_hwmod dra7xx_qspi_hwmod
= {
1901 .class = &dra7xx_qspi_hwmod_class
,
1902 .clkdm_name
= "l4per2_clkdm",
1903 .main_clk
= "qspi_gfclk_div",
1906 .clkctrl_offs
= DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET
,
1907 .context_offs
= DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET
,
1908 .modulemode
= MODULEMODE_SWCTRL
,
1917 static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc
= {
1918 .sysc_offs
= 0x0078,
1919 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1920 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1922 .sysc_fields
= &omap_hwmod_sysc_type3
,
1925 static struct omap_hwmod_class dra7xx_rtcss_hwmod_class
= {
1927 .sysc
= &dra7xx_rtcss_sysc
,
1928 .unlock
= &omap_hwmod_rtc_unlock
,
1929 .lock
= &omap_hwmod_rtc_lock
,
1933 static struct omap_hwmod dra7xx_rtcss_hwmod
= {
1935 .class = &dra7xx_rtcss_hwmod_class
,
1936 .clkdm_name
= "rtc_clkdm",
1937 .main_clk
= "sys_32k_ck",
1940 .clkctrl_offs
= DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET
,
1941 .context_offs
= DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET
,
1942 .modulemode
= MODULEMODE_SWCTRL
,
1952 static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc
= {
1953 .sysc_offs
= 0x0000,
1954 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
1955 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1956 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1957 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1958 .sysc_fields
= &omap_hwmod_sysc_type2
,
1961 static struct omap_hwmod_class dra7xx_sata_hwmod_class
= {
1963 .sysc
= &dra7xx_sata_sysc
,
1968 static struct omap_hwmod dra7xx_sata_hwmod
= {
1970 .class = &dra7xx_sata_hwmod_class
,
1971 .clkdm_name
= "l3init_clkdm",
1972 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1973 .main_clk
= "func_48m_fclk",
1977 .clkctrl_offs
= DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET
,
1978 .context_offs
= DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET
,
1979 .modulemode
= MODULEMODE_SWCTRL
,
1985 * 'smartreflex' class
1989 /* The IP is not compliant to type1 / type2 scheme */
1990 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex
= {
1995 static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc
= {
1996 .sysc_offs
= 0x0038,
1997 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
),
1998 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2000 .sysc_fields
= &omap_hwmod_sysc_type_smartreflex
,
2003 static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class
= {
2004 .name
= "smartreflex",
2005 .sysc
= &dra7xx_smartreflex_sysc
,
2009 /* smartreflex_core */
2010 /* smartreflex_core dev_attr */
2011 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr
= {
2012 .sensor_voltdm_name
= "core",
2015 static struct omap_hwmod dra7xx_smartreflex_core_hwmod
= {
2016 .name
= "smartreflex_core",
2017 .class = &dra7xx_smartreflex_hwmod_class
,
2018 .clkdm_name
= "coreaon_clkdm",
2019 .main_clk
= "wkupaon_iclk_mux",
2022 .clkctrl_offs
= DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET
,
2023 .context_offs
= DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET
,
2024 .modulemode
= MODULEMODE_SWCTRL
,
2027 .dev_attr
= &smartreflex_core_dev_attr
,
2030 /* smartreflex_mpu */
2031 /* smartreflex_mpu dev_attr */
2032 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr
= {
2033 .sensor_voltdm_name
= "mpu",
2036 static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod
= {
2037 .name
= "smartreflex_mpu",
2038 .class = &dra7xx_smartreflex_hwmod_class
,
2039 .clkdm_name
= "coreaon_clkdm",
2040 .main_clk
= "wkupaon_iclk_mux",
2043 .clkctrl_offs
= DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET
,
2044 .context_offs
= DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET
,
2045 .modulemode
= MODULEMODE_SWCTRL
,
2048 .dev_attr
= &smartreflex_mpu_dev_attr
,
2056 static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc
= {
2058 .sysc_offs
= 0x0010,
2059 .syss_offs
= 0x0014,
2060 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
2061 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2062 SYSS_HAS_RESET_STATUS
),
2063 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2064 .sysc_fields
= &omap_hwmod_sysc_type1
,
2067 static struct omap_hwmod_class dra7xx_spinlock_hwmod_class
= {
2069 .sysc
= &dra7xx_spinlock_sysc
,
2073 static struct omap_hwmod dra7xx_spinlock_hwmod
= {
2075 .class = &dra7xx_spinlock_hwmod_class
,
2076 .clkdm_name
= "l4cfg_clkdm",
2077 .main_clk
= "l3_iclk_div",
2080 .clkctrl_offs
= DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET
,
2081 .context_offs
= DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET
,
2089 * This class contains several variants: ['timer_1ms', 'timer_secure',
2093 static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc
= {
2095 .sysc_offs
= 0x0010,
2096 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
2097 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
2098 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2100 .sysc_fields
= &omap_hwmod_sysc_type2
,
2103 static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class
= {
2105 .sysc
= &dra7xx_timer_1ms_sysc
,
2108 static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc
= {
2110 .sysc_offs
= 0x0010,
2111 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
2112 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
2113 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2115 .sysc_fields
= &omap_hwmod_sysc_type2
,
2118 static struct omap_hwmod_class dra7xx_timer_hwmod_class
= {
2120 .sysc
= &dra7xx_timer_sysc
,
2124 static struct omap_hwmod dra7xx_timer1_hwmod
= {
2126 .class = &dra7xx_timer_1ms_hwmod_class
,
2127 .clkdm_name
= "wkupaon_clkdm",
2128 .main_clk
= "timer1_gfclk_mux",
2131 .clkctrl_offs
= DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET
,
2132 .context_offs
= DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET
,
2133 .modulemode
= MODULEMODE_SWCTRL
,
2139 static struct omap_hwmod dra7xx_timer2_hwmod
= {
2141 .class = &dra7xx_timer_1ms_hwmod_class
,
2142 .clkdm_name
= "l4per_clkdm",
2143 .main_clk
= "timer2_gfclk_mux",
2146 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET
,
2147 .context_offs
= DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET
,
2148 .modulemode
= MODULEMODE_SWCTRL
,
2154 static struct omap_hwmod dra7xx_timer3_hwmod
= {
2156 .class = &dra7xx_timer_hwmod_class
,
2157 .clkdm_name
= "l4per_clkdm",
2158 .main_clk
= "timer3_gfclk_mux",
2161 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET
,
2162 .context_offs
= DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET
,
2163 .modulemode
= MODULEMODE_SWCTRL
,
2169 static struct omap_hwmod dra7xx_timer4_hwmod
= {
2171 .class = &dra7xx_timer_hwmod_class
,
2172 .clkdm_name
= "l4per_clkdm",
2173 .main_clk
= "timer4_gfclk_mux",
2176 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET
,
2177 .context_offs
= DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET
,
2178 .modulemode
= MODULEMODE_SWCTRL
,
2184 static struct omap_hwmod dra7xx_timer5_hwmod
= {
2186 .class = &dra7xx_timer_hwmod_class
,
2187 .clkdm_name
= "ipu_clkdm",
2188 .main_clk
= "timer5_gfclk_mux",
2191 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET
,
2192 .context_offs
= DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET
,
2193 .modulemode
= MODULEMODE_SWCTRL
,
2199 static struct omap_hwmod dra7xx_timer6_hwmod
= {
2201 .class = &dra7xx_timer_hwmod_class
,
2202 .clkdm_name
= "ipu_clkdm",
2203 .main_clk
= "timer6_gfclk_mux",
2206 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET
,
2207 .context_offs
= DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET
,
2208 .modulemode
= MODULEMODE_SWCTRL
,
2214 static struct omap_hwmod dra7xx_timer7_hwmod
= {
2216 .class = &dra7xx_timer_hwmod_class
,
2217 .clkdm_name
= "ipu_clkdm",
2218 .main_clk
= "timer7_gfclk_mux",
2221 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET
,
2222 .context_offs
= DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET
,
2223 .modulemode
= MODULEMODE_SWCTRL
,
2229 static struct omap_hwmod dra7xx_timer8_hwmod
= {
2231 .class = &dra7xx_timer_hwmod_class
,
2232 .clkdm_name
= "ipu_clkdm",
2233 .main_clk
= "timer8_gfclk_mux",
2236 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET
,
2237 .context_offs
= DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET
,
2238 .modulemode
= MODULEMODE_SWCTRL
,
2244 static struct omap_hwmod dra7xx_timer9_hwmod
= {
2246 .class = &dra7xx_timer_hwmod_class
,
2247 .clkdm_name
= "l4per_clkdm",
2248 .main_clk
= "timer9_gfclk_mux",
2251 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET
,
2252 .context_offs
= DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET
,
2253 .modulemode
= MODULEMODE_SWCTRL
,
2259 static struct omap_hwmod dra7xx_timer10_hwmod
= {
2261 .class = &dra7xx_timer_1ms_hwmod_class
,
2262 .clkdm_name
= "l4per_clkdm",
2263 .main_clk
= "timer10_gfclk_mux",
2266 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET
,
2267 .context_offs
= DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET
,
2268 .modulemode
= MODULEMODE_SWCTRL
,
2274 static struct omap_hwmod dra7xx_timer11_hwmod
= {
2276 .class = &dra7xx_timer_hwmod_class
,
2277 .clkdm_name
= "l4per_clkdm",
2278 .main_clk
= "timer11_gfclk_mux",
2281 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET
,
2282 .context_offs
= DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET
,
2283 .modulemode
= MODULEMODE_SWCTRL
,
2289 static struct omap_hwmod dra7xx_timer12_hwmod
= {
2291 .class = &dra7xx_timer_hwmod_class
,
2292 .clkdm_name
= "wkupaon_clkdm",
2293 .main_clk
= "secure_32k_clk_src_ck",
2296 .clkctrl_offs
= DRA7XX_CM_WKUPAON_TIMER12_CLKCTRL_OFFSET
,
2297 .context_offs
= DRA7XX_RM_WKUPAON_TIMER12_CONTEXT_OFFSET
,
2303 static struct omap_hwmod dra7xx_timer13_hwmod
= {
2305 .class = &dra7xx_timer_hwmod_class
,
2306 .clkdm_name
= "l4per3_clkdm",
2307 .main_clk
= "timer13_gfclk_mux",
2310 .clkctrl_offs
= DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET
,
2311 .context_offs
= DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET
,
2312 .modulemode
= MODULEMODE_SWCTRL
,
2318 static struct omap_hwmod dra7xx_timer14_hwmod
= {
2320 .class = &dra7xx_timer_hwmod_class
,
2321 .clkdm_name
= "l4per3_clkdm",
2322 .main_clk
= "timer14_gfclk_mux",
2325 .clkctrl_offs
= DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET
,
2326 .context_offs
= DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET
,
2327 .modulemode
= MODULEMODE_SWCTRL
,
2333 static struct omap_hwmod dra7xx_timer15_hwmod
= {
2335 .class = &dra7xx_timer_hwmod_class
,
2336 .clkdm_name
= "l4per3_clkdm",
2337 .main_clk
= "timer15_gfclk_mux",
2340 .clkctrl_offs
= DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET
,
2341 .context_offs
= DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET
,
2342 .modulemode
= MODULEMODE_SWCTRL
,
2348 static struct omap_hwmod dra7xx_timer16_hwmod
= {
2350 .class = &dra7xx_timer_hwmod_class
,
2351 .clkdm_name
= "l4per3_clkdm",
2352 .main_clk
= "timer16_gfclk_mux",
2355 .clkctrl_offs
= DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET
,
2356 .context_offs
= DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET
,
2357 .modulemode
= MODULEMODE_SWCTRL
,
2367 static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc
= {
2369 .sysc_offs
= 0x0054,
2370 .syss_offs
= 0x0058,
2371 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
2372 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2373 SYSS_HAS_RESET_STATUS
),
2374 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2376 .sysc_fields
= &omap_hwmod_sysc_type1
,
2379 static struct omap_hwmod_class dra7xx_uart_hwmod_class
= {
2381 .sysc
= &dra7xx_uart_sysc
,
2385 static struct omap_hwmod dra7xx_uart1_hwmod
= {
2387 .class = &dra7xx_uart_hwmod_class
,
2388 .clkdm_name
= "l4per_clkdm",
2389 .main_clk
= "uart1_gfclk_mux",
2390 .flags
= HWMOD_SWSUP_SIDLE_ACT
| DEBUG_OMAP2UART1_FLAGS
,
2393 .clkctrl_offs
= DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET
,
2394 .context_offs
= DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET
,
2395 .modulemode
= MODULEMODE_SWCTRL
,
2401 static struct omap_hwmod dra7xx_uart2_hwmod
= {
2403 .class = &dra7xx_uart_hwmod_class
,
2404 .clkdm_name
= "l4per_clkdm",
2405 .main_clk
= "uart2_gfclk_mux",
2406 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2409 .clkctrl_offs
= DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET
,
2410 .context_offs
= DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET
,
2411 .modulemode
= MODULEMODE_SWCTRL
,
2417 static struct omap_hwmod dra7xx_uart3_hwmod
= {
2419 .class = &dra7xx_uart_hwmod_class
,
2420 .clkdm_name
= "l4per_clkdm",
2421 .main_clk
= "uart3_gfclk_mux",
2422 .flags
= HWMOD_SWSUP_SIDLE_ACT
| DEBUG_OMAP4UART3_FLAGS
,
2425 .clkctrl_offs
= DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET
,
2426 .context_offs
= DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET
,
2427 .modulemode
= MODULEMODE_SWCTRL
,
2433 static struct omap_hwmod dra7xx_uart4_hwmod
= {
2435 .class = &dra7xx_uart_hwmod_class
,
2436 .clkdm_name
= "l4per_clkdm",
2437 .main_clk
= "uart4_gfclk_mux",
2438 .flags
= HWMOD_SWSUP_SIDLE_ACT
| DEBUG_OMAP4UART4_FLAGS
,
2441 .clkctrl_offs
= DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET
,
2442 .context_offs
= DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET
,
2443 .modulemode
= MODULEMODE_SWCTRL
,
2449 static struct omap_hwmod dra7xx_uart5_hwmod
= {
2451 .class = &dra7xx_uart_hwmod_class
,
2452 .clkdm_name
= "l4per_clkdm",
2453 .main_clk
= "uart5_gfclk_mux",
2454 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2457 .clkctrl_offs
= DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET
,
2458 .context_offs
= DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET
,
2459 .modulemode
= MODULEMODE_SWCTRL
,
2465 static struct omap_hwmod dra7xx_uart6_hwmod
= {
2467 .class = &dra7xx_uart_hwmod_class
,
2468 .clkdm_name
= "ipu_clkdm",
2469 .main_clk
= "uart6_gfclk_mux",
2470 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2473 .clkctrl_offs
= DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET
,
2474 .context_offs
= DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET
,
2475 .modulemode
= MODULEMODE_SWCTRL
,
2481 static struct omap_hwmod dra7xx_uart7_hwmod
= {
2483 .class = &dra7xx_uart_hwmod_class
,
2484 .clkdm_name
= "l4per2_clkdm",
2485 .main_clk
= "uart7_gfclk_mux",
2486 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2489 .clkctrl_offs
= DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET
,
2490 .context_offs
= DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET
,
2491 .modulemode
= MODULEMODE_SWCTRL
,
2497 static struct omap_hwmod dra7xx_uart8_hwmod
= {
2499 .class = &dra7xx_uart_hwmod_class
,
2500 .clkdm_name
= "l4per2_clkdm",
2501 .main_clk
= "uart8_gfclk_mux",
2502 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2505 .clkctrl_offs
= DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET
,
2506 .context_offs
= DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET
,
2507 .modulemode
= MODULEMODE_SWCTRL
,
2513 static struct omap_hwmod dra7xx_uart9_hwmod
= {
2515 .class = &dra7xx_uart_hwmod_class
,
2516 .clkdm_name
= "l4per2_clkdm",
2517 .main_clk
= "uart9_gfclk_mux",
2518 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2521 .clkctrl_offs
= DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET
,
2522 .context_offs
= DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET
,
2523 .modulemode
= MODULEMODE_SWCTRL
,
2529 static struct omap_hwmod dra7xx_uart10_hwmod
= {
2531 .class = &dra7xx_uart_hwmod_class
,
2532 .clkdm_name
= "wkupaon_clkdm",
2533 .main_clk
= "uart10_gfclk_mux",
2534 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2537 .clkctrl_offs
= DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET
,
2538 .context_offs
= DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET
,
2539 .modulemode
= MODULEMODE_SWCTRL
,
2545 * 'usb_otg_ss' class
2549 static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc
= {
2551 .sysc_offs
= 0x0010,
2552 .sysc_flags
= (SYSC_HAS_DMADISABLE
| SYSC_HAS_MIDLEMODE
|
2553 SYSC_HAS_SIDLEMODE
),
2554 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2555 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2556 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2557 .sysc_fields
= &omap_hwmod_sysc_type2
,
2560 static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class
= {
2561 .name
= "usb_otg_ss",
2562 .sysc
= &dra7xx_usb_otg_ss_sysc
,
2566 static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks
[] = {
2567 { .role
= "refclk960m", .clk
= "usb_otg_ss1_refclk960m" },
2570 static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod
= {
2571 .name
= "usb_otg_ss1",
2572 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2573 .clkdm_name
= "l3init_clkdm",
2574 .main_clk
= "dpll_core_h13x2_ck",
2577 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET
,
2578 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET
,
2579 .modulemode
= MODULEMODE_HWCTRL
,
2582 .opt_clks
= usb_otg_ss1_opt_clks
,
2583 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_ss1_opt_clks
),
2587 static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks
[] = {
2588 { .role
= "refclk960m", .clk
= "usb_otg_ss2_refclk960m" },
2591 static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod
= {
2592 .name
= "usb_otg_ss2",
2593 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2594 .clkdm_name
= "l3init_clkdm",
2595 .main_clk
= "dpll_core_h13x2_ck",
2598 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET
,
2599 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET
,
2600 .modulemode
= MODULEMODE_HWCTRL
,
2603 .opt_clks
= usb_otg_ss2_opt_clks
,
2604 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_ss2_opt_clks
),
2608 static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod
= {
2609 .name
= "usb_otg_ss3",
2610 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2611 .clkdm_name
= "l3init_clkdm",
2612 .main_clk
= "dpll_core_h13x2_ck",
2615 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET
,
2616 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET
,
2617 .modulemode
= MODULEMODE_HWCTRL
,
2623 static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod
= {
2624 .name
= "usb_otg_ss4",
2625 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2626 .clkdm_name
= "l3init_clkdm",
2627 .main_clk
= "dpll_core_h13x2_ck",
2630 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET
,
2631 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET
,
2632 .modulemode
= MODULEMODE_HWCTRL
,
2642 static struct omap_hwmod_class dra7xx_vcp_hwmod_class
= {
2647 static struct omap_hwmod dra7xx_vcp1_hwmod
= {
2649 .class = &dra7xx_vcp_hwmod_class
,
2650 .clkdm_name
= "l3main1_clkdm",
2651 .main_clk
= "l3_iclk_div",
2654 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET
,
2655 .context_offs
= DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET
,
2661 static struct omap_hwmod dra7xx_vcp2_hwmod
= {
2663 .class = &dra7xx_vcp_hwmod_class
,
2664 .clkdm_name
= "l3main1_clkdm",
2665 .main_clk
= "l3_iclk_div",
2668 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET
,
2669 .context_offs
= DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET
,
2679 static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc
= {
2681 .sysc_offs
= 0x0010,
2682 .syss_offs
= 0x0014,
2683 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
2684 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2685 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2687 .sysc_fields
= &omap_hwmod_sysc_type1
,
2690 static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class
= {
2692 .sysc
= &dra7xx_wd_timer_sysc
,
2693 .pre_shutdown
= &omap2_wd_timer_disable
,
2694 .reset
= &omap2_wd_timer_reset
,
2698 static struct omap_hwmod dra7xx_wd_timer2_hwmod
= {
2699 .name
= "wd_timer2",
2700 .class = &dra7xx_wd_timer_hwmod_class
,
2701 .clkdm_name
= "wkupaon_clkdm",
2702 .main_clk
= "sys_32k_ck",
2705 .clkctrl_offs
= DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET
,
2706 .context_offs
= DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET
,
2707 .modulemode
= MODULEMODE_SWCTRL
,
2717 /* l3_main_1 -> dmm */
2718 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm
= {
2719 .master
= &dra7xx_l3_main_1_hwmod
,
2720 .slave
= &dra7xx_dmm_hwmod
,
2721 .clk
= "l3_iclk_div",
2722 .user
= OCP_USER_SDMA
,
2725 /* l3_main_2 -> l3_instr */
2726 static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr
= {
2727 .master
= &dra7xx_l3_main_2_hwmod
,
2728 .slave
= &dra7xx_l3_instr_hwmod
,
2729 .clk
= "l3_iclk_div",
2730 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2733 /* l4_cfg -> l3_main_1 */
2734 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1
= {
2735 .master
= &dra7xx_l4_cfg_hwmod
,
2736 .slave
= &dra7xx_l3_main_1_hwmod
,
2737 .clk
= "l3_iclk_div",
2738 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2741 /* mpu -> l3_main_1 */
2742 static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1
= {
2743 .master
= &dra7xx_mpu_hwmod
,
2744 .slave
= &dra7xx_l3_main_1_hwmod
,
2745 .clk
= "l3_iclk_div",
2746 .user
= OCP_USER_MPU
,
2749 /* l3_main_1 -> l3_main_2 */
2750 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2
= {
2751 .master
= &dra7xx_l3_main_1_hwmod
,
2752 .slave
= &dra7xx_l3_main_2_hwmod
,
2753 .clk
= "l3_iclk_div",
2754 .user
= OCP_USER_MPU
,
2757 /* l4_cfg -> l3_main_2 */
2758 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2
= {
2759 .master
= &dra7xx_l4_cfg_hwmod
,
2760 .slave
= &dra7xx_l3_main_2_hwmod
,
2761 .clk
= "l3_iclk_div",
2762 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2765 /* l3_main_1 -> l4_cfg */
2766 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg
= {
2767 .master
= &dra7xx_l3_main_1_hwmod
,
2768 .slave
= &dra7xx_l4_cfg_hwmod
,
2769 .clk
= "l3_iclk_div",
2770 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2773 /* l3_main_1 -> l4_per1 */
2774 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1
= {
2775 .master
= &dra7xx_l3_main_1_hwmod
,
2776 .slave
= &dra7xx_l4_per1_hwmod
,
2777 .clk
= "l3_iclk_div",
2778 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2781 /* l3_main_1 -> l4_per2 */
2782 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2
= {
2783 .master
= &dra7xx_l3_main_1_hwmod
,
2784 .slave
= &dra7xx_l4_per2_hwmod
,
2785 .clk
= "l3_iclk_div",
2786 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2789 /* l3_main_1 -> l4_per3 */
2790 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3
= {
2791 .master
= &dra7xx_l3_main_1_hwmod
,
2792 .slave
= &dra7xx_l4_per3_hwmod
,
2793 .clk
= "l3_iclk_div",
2794 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2797 /* l3_main_1 -> l4_wkup */
2798 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup
= {
2799 .master
= &dra7xx_l3_main_1_hwmod
,
2800 .slave
= &dra7xx_l4_wkup_hwmod
,
2801 .clk
= "wkupaon_iclk_mux",
2802 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2805 /* l4_per2 -> atl */
2806 static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl
= {
2807 .master
= &dra7xx_l4_per2_hwmod
,
2808 .slave
= &dra7xx_atl_hwmod
,
2809 .clk
= "l3_iclk_div",
2810 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2813 /* l3_main_1 -> bb2d */
2814 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d
= {
2815 .master
= &dra7xx_l3_main_1_hwmod
,
2816 .slave
= &dra7xx_bb2d_hwmod
,
2817 .clk
= "l3_iclk_div",
2818 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2821 /* l4_wkup -> counter_32k */
2822 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k
= {
2823 .master
= &dra7xx_l4_wkup_hwmod
,
2824 .slave
= &dra7xx_counter_32k_hwmod
,
2825 .clk
= "wkupaon_iclk_mux",
2826 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2829 /* l4_wkup -> ctrl_module_wkup */
2830 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup
= {
2831 .master
= &dra7xx_l4_wkup_hwmod
,
2832 .slave
= &dra7xx_ctrl_module_wkup_hwmod
,
2833 .clk
= "wkupaon_iclk_mux",
2834 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2837 static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0
= {
2838 .master
= &dra7xx_l4_per2_hwmod
,
2839 .slave
= &dra7xx_gmac_hwmod
,
2840 .clk
= "dpll_gmac_ck",
2841 .user
= OCP_USER_MPU
,
2844 static struct omap_hwmod_ocp_if dra7xx_gmac__mdio
= {
2845 .master
= &dra7xx_gmac_hwmod
,
2846 .slave
= &dra7xx_mdio_hwmod
,
2847 .user
= OCP_USER_MPU
,
2850 /* l4_wkup -> dcan1 */
2851 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1
= {
2852 .master
= &dra7xx_l4_wkup_hwmod
,
2853 .slave
= &dra7xx_dcan1_hwmod
,
2854 .clk
= "wkupaon_iclk_mux",
2855 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2858 /* l4_per2 -> dcan2 */
2859 static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2
= {
2860 .master
= &dra7xx_l4_per2_hwmod
,
2861 .slave
= &dra7xx_dcan2_hwmod
,
2862 .clk
= "l3_iclk_div",
2863 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2866 static struct omap_hwmod_addr_space dra7xx_dma_system_addrs
[] = {
2868 .pa_start
= 0x4a056000,
2869 .pa_end
= 0x4a056fff,
2870 .flags
= ADDR_TYPE_RT
2875 /* l4_cfg -> dma_system */
2876 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system
= {
2877 .master
= &dra7xx_l4_cfg_hwmod
,
2878 .slave
= &dra7xx_dma_system_hwmod
,
2879 .clk
= "l3_iclk_div",
2880 .addr
= dra7xx_dma_system_addrs
,
2881 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2884 /* l3_main_1 -> tpcc */
2885 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tpcc
= {
2886 .master
= &dra7xx_l3_main_1_hwmod
,
2887 .slave
= &dra7xx_tpcc_hwmod
,
2888 .clk
= "l3_iclk_div",
2889 .user
= OCP_USER_MPU
,
2892 /* l3_main_1 -> tptc0 */
2893 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc0
= {
2894 .master
= &dra7xx_l3_main_1_hwmod
,
2895 .slave
= &dra7xx_tptc0_hwmod
,
2896 .clk
= "l3_iclk_div",
2897 .user
= OCP_USER_MPU
,
2900 /* l3_main_1 -> tptc1 */
2901 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc1
= {
2902 .master
= &dra7xx_l3_main_1_hwmod
,
2903 .slave
= &dra7xx_tptc1_hwmod
,
2904 .clk
= "l3_iclk_div",
2905 .user
= OCP_USER_MPU
,
2908 static struct omap_hwmod_addr_space dra7xx_dss_addrs
[] = {
2911 .pa_start
= 0x58000000,
2912 .pa_end
= 0x5800007f,
2913 .flags
= ADDR_TYPE_RT
2917 /* l3_main_1 -> dss */
2918 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss
= {
2919 .master
= &dra7xx_l3_main_1_hwmod
,
2920 .slave
= &dra7xx_dss_hwmod
,
2921 .clk
= "l3_iclk_div",
2922 .addr
= dra7xx_dss_addrs
,
2923 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2926 static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs
[] = {
2929 .pa_start
= 0x58001000,
2930 .pa_end
= 0x58001fff,
2931 .flags
= ADDR_TYPE_RT
2935 /* l3_main_1 -> dispc */
2936 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc
= {
2937 .master
= &dra7xx_l3_main_1_hwmod
,
2938 .slave
= &dra7xx_dss_dispc_hwmod
,
2939 .clk
= "l3_iclk_div",
2940 .addr
= dra7xx_dss_dispc_addrs
,
2941 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2944 static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs
[] = {
2947 .pa_start
= 0x58040000,
2948 .pa_end
= 0x580400ff,
2949 .flags
= ADDR_TYPE_RT
2954 /* l3_main_1 -> dispc */
2955 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi
= {
2956 .master
= &dra7xx_l3_main_1_hwmod
,
2957 .slave
= &dra7xx_dss_hdmi_hwmod
,
2958 .clk
= "l3_iclk_div",
2959 .addr
= dra7xx_dss_hdmi_addrs
,
2960 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2963 /* l4_per2 -> mcasp1 */
2964 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1
= {
2965 .master
= &dra7xx_l4_per2_hwmod
,
2966 .slave
= &dra7xx_mcasp1_hwmod
,
2967 .clk
= "l4_root_clk_div",
2968 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2971 /* l3_main_1 -> mcasp1 */
2972 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1
= {
2973 .master
= &dra7xx_l3_main_1_hwmod
,
2974 .slave
= &dra7xx_mcasp1_hwmod
,
2975 .clk
= "l3_iclk_div",
2976 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2979 /* l4_per2 -> mcasp2 */
2980 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2
= {
2981 .master
= &dra7xx_l4_per2_hwmod
,
2982 .slave
= &dra7xx_mcasp2_hwmod
,
2983 .clk
= "l4_root_clk_div",
2984 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2987 /* l3_main_1 -> mcasp2 */
2988 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2
= {
2989 .master
= &dra7xx_l3_main_1_hwmod
,
2990 .slave
= &dra7xx_mcasp2_hwmod
,
2991 .clk
= "l3_iclk_div",
2992 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2995 /* l4_per2 -> mcasp3 */
2996 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3
= {
2997 .master
= &dra7xx_l4_per2_hwmod
,
2998 .slave
= &dra7xx_mcasp3_hwmod
,
2999 .clk
= "l4_root_clk_div",
3000 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3003 /* l3_main_1 -> mcasp3 */
3004 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3
= {
3005 .master
= &dra7xx_l3_main_1_hwmod
,
3006 .slave
= &dra7xx_mcasp3_hwmod
,
3007 .clk
= "l3_iclk_div",
3008 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3011 /* l4_per2 -> mcasp4 */
3012 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4
= {
3013 .master
= &dra7xx_l4_per2_hwmod
,
3014 .slave
= &dra7xx_mcasp4_hwmod
,
3015 .clk
= "l4_root_clk_div",
3016 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3019 /* l4_per2 -> mcasp5 */
3020 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5
= {
3021 .master
= &dra7xx_l4_per2_hwmod
,
3022 .slave
= &dra7xx_mcasp5_hwmod
,
3023 .clk
= "l4_root_clk_div",
3024 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3027 /* l4_per2 -> mcasp6 */
3028 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6
= {
3029 .master
= &dra7xx_l4_per2_hwmod
,
3030 .slave
= &dra7xx_mcasp6_hwmod
,
3031 .clk
= "l4_root_clk_div",
3032 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3035 /* l4_per2 -> mcasp7 */
3036 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7
= {
3037 .master
= &dra7xx_l4_per2_hwmod
,
3038 .slave
= &dra7xx_mcasp7_hwmod
,
3039 .clk
= "l4_root_clk_div",
3040 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3043 /* l4_per2 -> mcasp8 */
3044 static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8
= {
3045 .master
= &dra7xx_l4_per2_hwmod
,
3046 .slave
= &dra7xx_mcasp8_hwmod
,
3047 .clk
= "l4_root_clk_div",
3048 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3051 /* l4_per1 -> elm */
3052 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm
= {
3053 .master
= &dra7xx_l4_per1_hwmod
,
3054 .slave
= &dra7xx_elm_hwmod
,
3055 .clk
= "l3_iclk_div",
3056 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3059 /* l4_wkup -> gpio1 */
3060 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1
= {
3061 .master
= &dra7xx_l4_wkup_hwmod
,
3062 .slave
= &dra7xx_gpio1_hwmod
,
3063 .clk
= "wkupaon_iclk_mux",
3064 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3067 /* l4_per1 -> gpio2 */
3068 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2
= {
3069 .master
= &dra7xx_l4_per1_hwmod
,
3070 .slave
= &dra7xx_gpio2_hwmod
,
3071 .clk
= "l3_iclk_div",
3072 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3075 /* l4_per1 -> gpio3 */
3076 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3
= {
3077 .master
= &dra7xx_l4_per1_hwmod
,
3078 .slave
= &dra7xx_gpio3_hwmod
,
3079 .clk
= "l3_iclk_div",
3080 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3083 /* l4_per1 -> gpio4 */
3084 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4
= {
3085 .master
= &dra7xx_l4_per1_hwmod
,
3086 .slave
= &dra7xx_gpio4_hwmod
,
3087 .clk
= "l3_iclk_div",
3088 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3091 /* l4_per1 -> gpio5 */
3092 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5
= {
3093 .master
= &dra7xx_l4_per1_hwmod
,
3094 .slave
= &dra7xx_gpio5_hwmod
,
3095 .clk
= "l3_iclk_div",
3096 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3099 /* l4_per1 -> gpio6 */
3100 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6
= {
3101 .master
= &dra7xx_l4_per1_hwmod
,
3102 .slave
= &dra7xx_gpio6_hwmod
,
3103 .clk
= "l3_iclk_div",
3104 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3107 /* l4_per1 -> gpio7 */
3108 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7
= {
3109 .master
= &dra7xx_l4_per1_hwmod
,
3110 .slave
= &dra7xx_gpio7_hwmod
,
3111 .clk
= "l3_iclk_div",
3112 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3115 /* l4_per1 -> gpio8 */
3116 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8
= {
3117 .master
= &dra7xx_l4_per1_hwmod
,
3118 .slave
= &dra7xx_gpio8_hwmod
,
3119 .clk
= "l3_iclk_div",
3120 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3123 /* l3_main_1 -> gpmc */
3124 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc
= {
3125 .master
= &dra7xx_l3_main_1_hwmod
,
3126 .slave
= &dra7xx_gpmc_hwmod
,
3127 .clk
= "l3_iclk_div",
3128 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3131 static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs
[] = {
3133 .pa_start
= 0x480b2000,
3134 .pa_end
= 0x480b201f,
3135 .flags
= ADDR_TYPE_RT
3140 /* l4_per1 -> hdq1w */
3141 static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w
= {
3142 .master
= &dra7xx_l4_per1_hwmod
,
3143 .slave
= &dra7xx_hdq1w_hwmod
,
3144 .clk
= "l3_iclk_div",
3145 .addr
= dra7xx_hdq1w_addrs
,
3146 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3149 /* l4_per1 -> i2c1 */
3150 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1
= {
3151 .master
= &dra7xx_l4_per1_hwmod
,
3152 .slave
= &dra7xx_i2c1_hwmod
,
3153 .clk
= "l3_iclk_div",
3154 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3157 /* l4_per1 -> i2c2 */
3158 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2
= {
3159 .master
= &dra7xx_l4_per1_hwmod
,
3160 .slave
= &dra7xx_i2c2_hwmod
,
3161 .clk
= "l3_iclk_div",
3162 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3165 /* l4_per1 -> i2c3 */
3166 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3
= {
3167 .master
= &dra7xx_l4_per1_hwmod
,
3168 .slave
= &dra7xx_i2c3_hwmod
,
3169 .clk
= "l3_iclk_div",
3170 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3173 /* l4_per1 -> i2c4 */
3174 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4
= {
3175 .master
= &dra7xx_l4_per1_hwmod
,
3176 .slave
= &dra7xx_i2c4_hwmod
,
3177 .clk
= "l3_iclk_div",
3178 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3181 /* l4_per1 -> i2c5 */
3182 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5
= {
3183 .master
= &dra7xx_l4_per1_hwmod
,
3184 .slave
= &dra7xx_i2c5_hwmod
,
3185 .clk
= "l3_iclk_div",
3186 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3189 /* l4_cfg -> mailbox1 */
3190 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1
= {
3191 .master
= &dra7xx_l4_cfg_hwmod
,
3192 .slave
= &dra7xx_mailbox1_hwmod
,
3193 .clk
= "l3_iclk_div",
3194 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3197 /* l4_per3 -> mailbox2 */
3198 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2
= {
3199 .master
= &dra7xx_l4_per3_hwmod
,
3200 .slave
= &dra7xx_mailbox2_hwmod
,
3201 .clk
= "l3_iclk_div",
3202 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3205 /* l4_per3 -> mailbox3 */
3206 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3
= {
3207 .master
= &dra7xx_l4_per3_hwmod
,
3208 .slave
= &dra7xx_mailbox3_hwmod
,
3209 .clk
= "l3_iclk_div",
3210 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3213 /* l4_per3 -> mailbox4 */
3214 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4
= {
3215 .master
= &dra7xx_l4_per3_hwmod
,
3216 .slave
= &dra7xx_mailbox4_hwmod
,
3217 .clk
= "l3_iclk_div",
3218 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3221 /* l4_per3 -> mailbox5 */
3222 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5
= {
3223 .master
= &dra7xx_l4_per3_hwmod
,
3224 .slave
= &dra7xx_mailbox5_hwmod
,
3225 .clk
= "l3_iclk_div",
3226 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3229 /* l4_per3 -> mailbox6 */
3230 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6
= {
3231 .master
= &dra7xx_l4_per3_hwmod
,
3232 .slave
= &dra7xx_mailbox6_hwmod
,
3233 .clk
= "l3_iclk_div",
3234 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3237 /* l4_per3 -> mailbox7 */
3238 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7
= {
3239 .master
= &dra7xx_l4_per3_hwmod
,
3240 .slave
= &dra7xx_mailbox7_hwmod
,
3241 .clk
= "l3_iclk_div",
3242 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3245 /* l4_per3 -> mailbox8 */
3246 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8
= {
3247 .master
= &dra7xx_l4_per3_hwmod
,
3248 .slave
= &dra7xx_mailbox8_hwmod
,
3249 .clk
= "l3_iclk_div",
3250 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3253 /* l4_per3 -> mailbox9 */
3254 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9
= {
3255 .master
= &dra7xx_l4_per3_hwmod
,
3256 .slave
= &dra7xx_mailbox9_hwmod
,
3257 .clk
= "l3_iclk_div",
3258 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3261 /* l4_per3 -> mailbox10 */
3262 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10
= {
3263 .master
= &dra7xx_l4_per3_hwmod
,
3264 .slave
= &dra7xx_mailbox10_hwmod
,
3265 .clk
= "l3_iclk_div",
3266 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3269 /* l4_per3 -> mailbox11 */
3270 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11
= {
3271 .master
= &dra7xx_l4_per3_hwmod
,
3272 .slave
= &dra7xx_mailbox11_hwmod
,
3273 .clk
= "l3_iclk_div",
3274 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3277 /* l4_per3 -> mailbox12 */
3278 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12
= {
3279 .master
= &dra7xx_l4_per3_hwmod
,
3280 .slave
= &dra7xx_mailbox12_hwmod
,
3281 .clk
= "l3_iclk_div",
3282 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3285 /* l4_per3 -> mailbox13 */
3286 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13
= {
3287 .master
= &dra7xx_l4_per3_hwmod
,
3288 .slave
= &dra7xx_mailbox13_hwmod
,
3289 .clk
= "l3_iclk_div",
3290 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3293 /* l4_per1 -> mcspi1 */
3294 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1
= {
3295 .master
= &dra7xx_l4_per1_hwmod
,
3296 .slave
= &dra7xx_mcspi1_hwmod
,
3297 .clk
= "l3_iclk_div",
3298 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3301 /* l4_per1 -> mcspi2 */
3302 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2
= {
3303 .master
= &dra7xx_l4_per1_hwmod
,
3304 .slave
= &dra7xx_mcspi2_hwmod
,
3305 .clk
= "l3_iclk_div",
3306 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3309 /* l4_per1 -> mcspi3 */
3310 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3
= {
3311 .master
= &dra7xx_l4_per1_hwmod
,
3312 .slave
= &dra7xx_mcspi3_hwmod
,
3313 .clk
= "l3_iclk_div",
3314 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3317 /* l4_per1 -> mcspi4 */
3318 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4
= {
3319 .master
= &dra7xx_l4_per1_hwmod
,
3320 .slave
= &dra7xx_mcspi4_hwmod
,
3321 .clk
= "l3_iclk_div",
3322 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3325 /* l4_per1 -> mmc1 */
3326 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1
= {
3327 .master
= &dra7xx_l4_per1_hwmod
,
3328 .slave
= &dra7xx_mmc1_hwmod
,
3329 .clk
= "l3_iclk_div",
3330 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3333 /* l4_per1 -> mmc2 */
3334 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2
= {
3335 .master
= &dra7xx_l4_per1_hwmod
,
3336 .slave
= &dra7xx_mmc2_hwmod
,
3337 .clk
= "l3_iclk_div",
3338 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3341 /* l4_per1 -> mmc3 */
3342 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3
= {
3343 .master
= &dra7xx_l4_per1_hwmod
,
3344 .slave
= &dra7xx_mmc3_hwmod
,
3345 .clk
= "l3_iclk_div",
3346 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3349 /* l4_per1 -> mmc4 */
3350 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4
= {
3351 .master
= &dra7xx_l4_per1_hwmod
,
3352 .slave
= &dra7xx_mmc4_hwmod
,
3353 .clk
= "l3_iclk_div",
3354 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3358 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu
= {
3359 .master
= &dra7xx_l4_cfg_hwmod
,
3360 .slave
= &dra7xx_mpu_hwmod
,
3361 .clk
= "l3_iclk_div",
3362 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3365 /* l4_cfg -> ocp2scp1 */
3366 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1
= {
3367 .master
= &dra7xx_l4_cfg_hwmod
,
3368 .slave
= &dra7xx_ocp2scp1_hwmod
,
3369 .clk
= "l4_root_clk_div",
3370 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3373 /* l4_cfg -> ocp2scp3 */
3374 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3
= {
3375 .master
= &dra7xx_l4_cfg_hwmod
,
3376 .slave
= &dra7xx_ocp2scp3_hwmod
,
3377 .clk
= "l4_root_clk_div",
3378 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3381 /* l3_main_1 -> pciess1 */
3382 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1
= {
3383 .master
= &dra7xx_l3_main_1_hwmod
,
3384 .slave
= &dra7xx_pciess1_hwmod
,
3385 .clk
= "l3_iclk_div",
3386 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3389 /* l4_cfg -> pciess1 */
3390 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1
= {
3391 .master
= &dra7xx_l4_cfg_hwmod
,
3392 .slave
= &dra7xx_pciess1_hwmod
,
3393 .clk
= "l4_root_clk_div",
3394 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3397 /* l3_main_1 -> pciess2 */
3398 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2
= {
3399 .master
= &dra7xx_l3_main_1_hwmod
,
3400 .slave
= &dra7xx_pciess2_hwmod
,
3401 .clk
= "l3_iclk_div",
3402 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3405 /* l4_cfg -> pciess2 */
3406 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2
= {
3407 .master
= &dra7xx_l4_cfg_hwmod
,
3408 .slave
= &dra7xx_pciess2_hwmod
,
3409 .clk
= "l4_root_clk_div",
3410 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3413 static struct omap_hwmod_addr_space dra7xx_qspi_addrs
[] = {
3415 .pa_start
= 0x4b300000,
3416 .pa_end
= 0x4b30007f,
3417 .flags
= ADDR_TYPE_RT
3422 /* l3_main_1 -> qspi */
3423 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi
= {
3424 .master
= &dra7xx_l3_main_1_hwmod
,
3425 .slave
= &dra7xx_qspi_hwmod
,
3426 .clk
= "l3_iclk_div",
3427 .addr
= dra7xx_qspi_addrs
,
3428 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3431 /* l4_per3 -> rtcss */
3432 static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss
= {
3433 .master
= &dra7xx_l4_per3_hwmod
,
3434 .slave
= &dra7xx_rtcss_hwmod
,
3435 .clk
= "l4_root_clk_div",
3436 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3439 static struct omap_hwmod_addr_space dra7xx_sata_addrs
[] = {
3442 .pa_start
= 0x4a141100,
3443 .pa_end
= 0x4a141107,
3444 .flags
= ADDR_TYPE_RT
3449 /* l4_cfg -> sata */
3450 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata
= {
3451 .master
= &dra7xx_l4_cfg_hwmod
,
3452 .slave
= &dra7xx_sata_hwmod
,
3453 .clk
= "l3_iclk_div",
3454 .addr
= dra7xx_sata_addrs
,
3455 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3458 static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs
[] = {
3460 .pa_start
= 0x4a0dd000,
3461 .pa_end
= 0x4a0dd07f,
3462 .flags
= ADDR_TYPE_RT
3467 /* l4_cfg -> smartreflex_core */
3468 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core
= {
3469 .master
= &dra7xx_l4_cfg_hwmod
,
3470 .slave
= &dra7xx_smartreflex_core_hwmod
,
3471 .clk
= "l4_root_clk_div",
3472 .addr
= dra7xx_smartreflex_core_addrs
,
3473 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3476 static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs
[] = {
3478 .pa_start
= 0x4a0d9000,
3479 .pa_end
= 0x4a0d907f,
3480 .flags
= ADDR_TYPE_RT
3485 /* l4_cfg -> smartreflex_mpu */
3486 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu
= {
3487 .master
= &dra7xx_l4_cfg_hwmod
,
3488 .slave
= &dra7xx_smartreflex_mpu_hwmod
,
3489 .clk
= "l4_root_clk_div",
3490 .addr
= dra7xx_smartreflex_mpu_addrs
,
3491 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3494 /* l4_cfg -> spinlock */
3495 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock
= {
3496 .master
= &dra7xx_l4_cfg_hwmod
,
3497 .slave
= &dra7xx_spinlock_hwmod
,
3498 .clk
= "l3_iclk_div",
3499 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3502 /* l4_wkup -> timer1 */
3503 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1
= {
3504 .master
= &dra7xx_l4_wkup_hwmod
,
3505 .slave
= &dra7xx_timer1_hwmod
,
3506 .clk
= "wkupaon_iclk_mux",
3507 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3510 /* l4_per1 -> timer2 */
3511 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2
= {
3512 .master
= &dra7xx_l4_per1_hwmod
,
3513 .slave
= &dra7xx_timer2_hwmod
,
3514 .clk
= "l3_iclk_div",
3515 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3518 /* l4_per1 -> timer3 */
3519 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3
= {
3520 .master
= &dra7xx_l4_per1_hwmod
,
3521 .slave
= &dra7xx_timer3_hwmod
,
3522 .clk
= "l3_iclk_div",
3523 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3526 /* l4_per1 -> timer4 */
3527 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4
= {
3528 .master
= &dra7xx_l4_per1_hwmod
,
3529 .slave
= &dra7xx_timer4_hwmod
,
3530 .clk
= "l3_iclk_div",
3531 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3534 /* l4_per3 -> timer5 */
3535 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5
= {
3536 .master
= &dra7xx_l4_per3_hwmod
,
3537 .slave
= &dra7xx_timer5_hwmod
,
3538 .clk
= "l3_iclk_div",
3539 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3542 /* l4_per3 -> timer6 */
3543 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6
= {
3544 .master
= &dra7xx_l4_per3_hwmod
,
3545 .slave
= &dra7xx_timer6_hwmod
,
3546 .clk
= "l3_iclk_div",
3547 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3550 /* l4_per3 -> timer7 */
3551 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7
= {
3552 .master
= &dra7xx_l4_per3_hwmod
,
3553 .slave
= &dra7xx_timer7_hwmod
,
3554 .clk
= "l3_iclk_div",
3555 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3558 /* l4_per3 -> timer8 */
3559 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8
= {
3560 .master
= &dra7xx_l4_per3_hwmod
,
3561 .slave
= &dra7xx_timer8_hwmod
,
3562 .clk
= "l3_iclk_div",
3563 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3566 /* l4_per1 -> timer9 */
3567 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9
= {
3568 .master
= &dra7xx_l4_per1_hwmod
,
3569 .slave
= &dra7xx_timer9_hwmod
,
3570 .clk
= "l3_iclk_div",
3571 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3574 /* l4_per1 -> timer10 */
3575 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10
= {
3576 .master
= &dra7xx_l4_per1_hwmod
,
3577 .slave
= &dra7xx_timer10_hwmod
,
3578 .clk
= "l3_iclk_div",
3579 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3582 /* l4_per1 -> timer11 */
3583 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11
= {
3584 .master
= &dra7xx_l4_per1_hwmod
,
3585 .slave
= &dra7xx_timer11_hwmod
,
3586 .clk
= "l3_iclk_div",
3587 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3590 /* l4_wkup -> timer12 */
3591 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer12
= {
3592 .master
= &dra7xx_l4_wkup_hwmod
,
3593 .slave
= &dra7xx_timer12_hwmod
,
3594 .clk
= "wkupaon_iclk_mux",
3595 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3598 /* l4_per3 -> timer13 */
3599 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13
= {
3600 .master
= &dra7xx_l4_per3_hwmod
,
3601 .slave
= &dra7xx_timer13_hwmod
,
3602 .clk
= "l3_iclk_div",
3603 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3606 /* l4_per3 -> timer14 */
3607 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14
= {
3608 .master
= &dra7xx_l4_per3_hwmod
,
3609 .slave
= &dra7xx_timer14_hwmod
,
3610 .clk
= "l3_iclk_div",
3611 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3614 /* l4_per3 -> timer15 */
3615 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15
= {
3616 .master
= &dra7xx_l4_per3_hwmod
,
3617 .slave
= &dra7xx_timer15_hwmod
,
3618 .clk
= "l3_iclk_div",
3619 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3622 /* l4_per3 -> timer16 */
3623 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16
= {
3624 .master
= &dra7xx_l4_per3_hwmod
,
3625 .slave
= &dra7xx_timer16_hwmod
,
3626 .clk
= "l3_iclk_div",
3627 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3630 /* l4_per1 -> uart1 */
3631 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1
= {
3632 .master
= &dra7xx_l4_per1_hwmod
,
3633 .slave
= &dra7xx_uart1_hwmod
,
3634 .clk
= "l3_iclk_div",
3635 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3638 /* l4_per1 -> uart2 */
3639 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2
= {
3640 .master
= &dra7xx_l4_per1_hwmod
,
3641 .slave
= &dra7xx_uart2_hwmod
,
3642 .clk
= "l3_iclk_div",
3643 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3646 /* l4_per1 -> uart3 */
3647 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3
= {
3648 .master
= &dra7xx_l4_per1_hwmod
,
3649 .slave
= &dra7xx_uart3_hwmod
,
3650 .clk
= "l3_iclk_div",
3651 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3654 /* l4_per1 -> uart4 */
3655 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4
= {
3656 .master
= &dra7xx_l4_per1_hwmod
,
3657 .slave
= &dra7xx_uart4_hwmod
,
3658 .clk
= "l3_iclk_div",
3659 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3662 /* l4_per1 -> uart5 */
3663 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5
= {
3664 .master
= &dra7xx_l4_per1_hwmod
,
3665 .slave
= &dra7xx_uart5_hwmod
,
3666 .clk
= "l3_iclk_div",
3667 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3670 /* l4_per1 -> uart6 */
3671 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6
= {
3672 .master
= &dra7xx_l4_per1_hwmod
,
3673 .slave
= &dra7xx_uart6_hwmod
,
3674 .clk
= "l3_iclk_div",
3675 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3678 /* l4_per2 -> uart7 */
3679 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7
= {
3680 .master
= &dra7xx_l4_per2_hwmod
,
3681 .slave
= &dra7xx_uart7_hwmod
,
3682 .clk
= "l3_iclk_div",
3683 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3686 /* l4_per2 -> uart8 */
3687 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8
= {
3688 .master
= &dra7xx_l4_per2_hwmod
,
3689 .slave
= &dra7xx_uart8_hwmod
,
3690 .clk
= "l3_iclk_div",
3691 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3694 /* l4_per2 -> uart9 */
3695 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9
= {
3696 .master
= &dra7xx_l4_per2_hwmod
,
3697 .slave
= &dra7xx_uart9_hwmod
,
3698 .clk
= "l3_iclk_div",
3699 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3702 /* l4_wkup -> uart10 */
3703 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10
= {
3704 .master
= &dra7xx_l4_wkup_hwmod
,
3705 .slave
= &dra7xx_uart10_hwmod
,
3706 .clk
= "wkupaon_iclk_mux",
3707 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3710 /* l4_per3 -> usb_otg_ss1 */
3711 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1
= {
3712 .master
= &dra7xx_l4_per3_hwmod
,
3713 .slave
= &dra7xx_usb_otg_ss1_hwmod
,
3714 .clk
= "dpll_core_h13x2_ck",
3715 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3718 /* l4_per3 -> usb_otg_ss2 */
3719 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2
= {
3720 .master
= &dra7xx_l4_per3_hwmod
,
3721 .slave
= &dra7xx_usb_otg_ss2_hwmod
,
3722 .clk
= "dpll_core_h13x2_ck",
3723 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3726 /* l4_per3 -> usb_otg_ss3 */
3727 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3
= {
3728 .master
= &dra7xx_l4_per3_hwmod
,
3729 .slave
= &dra7xx_usb_otg_ss3_hwmod
,
3730 .clk
= "dpll_core_h13x2_ck",
3731 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3734 /* l4_per3 -> usb_otg_ss4 */
3735 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4
= {
3736 .master
= &dra7xx_l4_per3_hwmod
,
3737 .slave
= &dra7xx_usb_otg_ss4_hwmod
,
3738 .clk
= "dpll_core_h13x2_ck",
3739 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3742 /* l3_main_1 -> vcp1 */
3743 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1
= {
3744 .master
= &dra7xx_l3_main_1_hwmod
,
3745 .slave
= &dra7xx_vcp1_hwmod
,
3746 .clk
= "l3_iclk_div",
3747 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3750 /* l4_per2 -> vcp1 */
3751 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1
= {
3752 .master
= &dra7xx_l4_per2_hwmod
,
3753 .slave
= &dra7xx_vcp1_hwmod
,
3754 .clk
= "l3_iclk_div",
3755 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3758 /* l3_main_1 -> vcp2 */
3759 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2
= {
3760 .master
= &dra7xx_l3_main_1_hwmod
,
3761 .slave
= &dra7xx_vcp2_hwmod
,
3762 .clk
= "l3_iclk_div",
3763 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3766 /* l4_per2 -> vcp2 */
3767 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2
= {
3768 .master
= &dra7xx_l4_per2_hwmod
,
3769 .slave
= &dra7xx_vcp2_hwmod
,
3770 .clk
= "l3_iclk_div",
3771 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3774 /* l4_wkup -> wd_timer2 */
3775 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2
= {
3776 .master
= &dra7xx_l4_wkup_hwmod
,
3777 .slave
= &dra7xx_wd_timer2_hwmod
,
3778 .clk
= "wkupaon_iclk_mux",
3779 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3782 /* l4_per2 -> epwmss0 */
3783 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0
= {
3784 .master
= &dra7xx_l4_per2_hwmod
,
3785 .slave
= &dra7xx_epwmss0_hwmod
,
3786 .clk
= "l4_root_clk_div",
3787 .user
= OCP_USER_MPU
,
3790 /* l4_per2 -> epwmss1 */
3791 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1
= {
3792 .master
= &dra7xx_l4_per2_hwmod
,
3793 .slave
= &dra7xx_epwmss1_hwmod
,
3794 .clk
= "l4_root_clk_div",
3795 .user
= OCP_USER_MPU
,
3798 /* l4_per2 -> epwmss2 */
3799 static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2
= {
3800 .master
= &dra7xx_l4_per2_hwmod
,
3801 .slave
= &dra7xx_epwmss2_hwmod
,
3802 .clk
= "l4_root_clk_div",
3803 .user
= OCP_USER_MPU
,
3806 static struct omap_hwmod_ocp_if
*dra7xx_hwmod_ocp_ifs
[] __initdata
= {
3807 &dra7xx_l3_main_1__dmm
,
3808 &dra7xx_l3_main_2__l3_instr
,
3809 &dra7xx_l4_cfg__l3_main_1
,
3810 &dra7xx_mpu__l3_main_1
,
3811 &dra7xx_l3_main_1__l3_main_2
,
3812 &dra7xx_l4_cfg__l3_main_2
,
3813 &dra7xx_l3_main_1__l4_cfg
,
3814 &dra7xx_l3_main_1__l4_per1
,
3815 &dra7xx_l3_main_1__l4_per2
,
3816 &dra7xx_l3_main_1__l4_per3
,
3817 &dra7xx_l3_main_1__l4_wkup
,
3818 &dra7xx_l4_per2__atl
,
3819 &dra7xx_l3_main_1__bb2d
,
3820 &dra7xx_l4_wkup__counter_32k
,
3821 &dra7xx_l4_wkup__ctrl_module_wkup
,
3822 &dra7xx_l4_wkup__dcan1
,
3823 &dra7xx_l4_per2__dcan2
,
3824 &dra7xx_l4_per2__cpgmac0
,
3825 &dra7xx_l4_per2__mcasp1
,
3826 &dra7xx_l3_main_1__mcasp1
,
3827 &dra7xx_l4_per2__mcasp2
,
3828 &dra7xx_l3_main_1__mcasp2
,
3829 &dra7xx_l4_per2__mcasp3
,
3830 &dra7xx_l3_main_1__mcasp3
,
3831 &dra7xx_l4_per2__mcasp4
,
3832 &dra7xx_l4_per2__mcasp5
,
3833 &dra7xx_l4_per2__mcasp6
,
3834 &dra7xx_l4_per2__mcasp7
,
3835 &dra7xx_l4_per2__mcasp8
,
3837 &dra7xx_l4_cfg__dma_system
,
3838 &dra7xx_l3_main_1__tpcc
,
3839 &dra7xx_l3_main_1__tptc0
,
3840 &dra7xx_l3_main_1__tptc1
,
3841 &dra7xx_l3_main_1__dss
,
3842 &dra7xx_l3_main_1__dispc
,
3843 &dra7xx_l3_main_1__hdmi
,
3844 &dra7xx_l4_per1__elm
,
3845 &dra7xx_l4_wkup__gpio1
,
3846 &dra7xx_l4_per1__gpio2
,
3847 &dra7xx_l4_per1__gpio3
,
3848 &dra7xx_l4_per1__gpio4
,
3849 &dra7xx_l4_per1__gpio5
,
3850 &dra7xx_l4_per1__gpio6
,
3851 &dra7xx_l4_per1__gpio7
,
3852 &dra7xx_l4_per1__gpio8
,
3853 &dra7xx_l3_main_1__gpmc
,
3854 &dra7xx_l4_per1__hdq1w
,
3855 &dra7xx_l4_per1__i2c1
,
3856 &dra7xx_l4_per1__i2c2
,
3857 &dra7xx_l4_per1__i2c3
,
3858 &dra7xx_l4_per1__i2c4
,
3859 &dra7xx_l4_per1__i2c5
,
3860 &dra7xx_l4_cfg__mailbox1
,
3861 &dra7xx_l4_per3__mailbox2
,
3862 &dra7xx_l4_per3__mailbox3
,
3863 &dra7xx_l4_per3__mailbox4
,
3864 &dra7xx_l4_per3__mailbox5
,
3865 &dra7xx_l4_per3__mailbox6
,
3866 &dra7xx_l4_per3__mailbox7
,
3867 &dra7xx_l4_per3__mailbox8
,
3868 &dra7xx_l4_per3__mailbox9
,
3869 &dra7xx_l4_per3__mailbox10
,
3870 &dra7xx_l4_per3__mailbox11
,
3871 &dra7xx_l4_per3__mailbox12
,
3872 &dra7xx_l4_per3__mailbox13
,
3873 &dra7xx_l4_per1__mcspi1
,
3874 &dra7xx_l4_per1__mcspi2
,
3875 &dra7xx_l4_per1__mcspi3
,
3876 &dra7xx_l4_per1__mcspi4
,
3877 &dra7xx_l4_per1__mmc1
,
3878 &dra7xx_l4_per1__mmc2
,
3879 &dra7xx_l4_per1__mmc3
,
3880 &dra7xx_l4_per1__mmc4
,
3881 &dra7xx_l4_cfg__mpu
,
3882 &dra7xx_l4_cfg__ocp2scp1
,
3883 &dra7xx_l4_cfg__ocp2scp3
,
3884 &dra7xx_l3_main_1__pciess1
,
3885 &dra7xx_l4_cfg__pciess1
,
3886 &dra7xx_l3_main_1__pciess2
,
3887 &dra7xx_l4_cfg__pciess2
,
3888 &dra7xx_l3_main_1__qspi
,
3889 &dra7xx_l4_per3__rtcss
,
3890 &dra7xx_l4_cfg__sata
,
3891 &dra7xx_l4_cfg__smartreflex_core
,
3892 &dra7xx_l4_cfg__smartreflex_mpu
,
3893 &dra7xx_l4_cfg__spinlock
,
3894 &dra7xx_l4_wkup__timer1
,
3895 &dra7xx_l4_per1__timer2
,
3896 &dra7xx_l4_per1__timer3
,
3897 &dra7xx_l4_per1__timer4
,
3898 &dra7xx_l4_per3__timer5
,
3899 &dra7xx_l4_per3__timer6
,
3900 &dra7xx_l4_per3__timer7
,
3901 &dra7xx_l4_per3__timer8
,
3902 &dra7xx_l4_per1__timer9
,
3903 &dra7xx_l4_per1__timer10
,
3904 &dra7xx_l4_per1__timer11
,
3905 &dra7xx_l4_per3__timer13
,
3906 &dra7xx_l4_per3__timer14
,
3907 &dra7xx_l4_per3__timer15
,
3908 &dra7xx_l4_per3__timer16
,
3909 &dra7xx_l4_per1__uart1
,
3910 &dra7xx_l4_per1__uart2
,
3911 &dra7xx_l4_per1__uart3
,
3912 &dra7xx_l4_per1__uart4
,
3913 &dra7xx_l4_per1__uart5
,
3914 &dra7xx_l4_per1__uart6
,
3915 &dra7xx_l4_per2__uart7
,
3916 &dra7xx_l4_per2__uart8
,
3917 &dra7xx_l4_per2__uart9
,
3918 &dra7xx_l4_wkup__uart10
,
3919 &dra7xx_l4_per3__usb_otg_ss1
,
3920 &dra7xx_l4_per3__usb_otg_ss2
,
3921 &dra7xx_l4_per3__usb_otg_ss3
,
3922 &dra7xx_l3_main_1__vcp1
,
3923 &dra7xx_l4_per2__vcp1
,
3924 &dra7xx_l3_main_1__vcp2
,
3925 &dra7xx_l4_per2__vcp2
,
3926 &dra7xx_l4_wkup__wd_timer2
,
3927 &dra7xx_l4_per2__epwmss0
,
3928 &dra7xx_l4_per2__epwmss1
,
3929 &dra7xx_l4_per2__epwmss2
,
3933 /* GP-only hwmod links */
3934 static struct omap_hwmod_ocp_if
*dra7xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3935 &dra7xx_l4_wkup__timer12
,
3939 /* SoC variant specific hwmod links */
3940 static struct omap_hwmod_ocp_if
*dra74x_hwmod_ocp_ifs
[] __initdata
= {
3941 &dra7xx_l4_per3__usb_otg_ss4
,
3945 static struct omap_hwmod_ocp_if
*dra72x_hwmod_ocp_ifs
[] __initdata
= {
3949 int __init
dra7xx_hwmod_init(void)
3954 ret
= omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs
);
3956 if (!ret
&& soc_is_dra74x())
3957 ret
= omap_hwmod_register_links(dra74x_hwmod_ocp_ifs
);
3958 else if (!ret
&& soc_is_dra72x())
3959 ret
= omap_hwmod_register_links(dra72x_hwmod_ocp_ifs
);
3961 if (!ret
&& omap_type() == OMAP2_DEVICE_TYPE_GP
)
3962 ret
= omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs
);