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/power/smartreflex.h>
23 #include <linux/i2c-omap.h>
25 #include <linux/omap-dma.h>
26 #include <linux/platform_data/spi-omap2-mcspi.h>
27 #include <linux/platform_data/asoc-ti-mcbsp.h>
28 #include <plat/dmtimer.h>
30 #include "omap_hwmod.h"
31 #include "omap_hwmod_common_data.h"
39 /* Base offset for all DRA7XX interrupts external to MPUSS */
40 #define DRA7XX_IRQ_GIC_START 32
42 /* Base offset for all DRA7XX dma requests */
43 #define DRA7XX_DMA_REQ_START 1
52 * instance(s): l3_instr, l3_main_1, l3_main_2
54 static struct omap_hwmod_class dra7xx_l3_hwmod_class
= {
59 static struct omap_hwmod dra7xx_l3_instr_hwmod
= {
61 .class = &dra7xx_l3_hwmod_class
,
62 .clkdm_name
= "l3instr_clkdm",
65 .clkctrl_offs
= DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET
,
66 .context_offs
= DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET
,
67 .modulemode
= MODULEMODE_HWCTRL
,
73 static struct omap_hwmod dra7xx_l3_main_1_hwmod
= {
75 .class = &dra7xx_l3_hwmod_class
,
76 .clkdm_name
= "l3main1_clkdm",
79 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET
,
80 .context_offs
= DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET
,
86 static struct omap_hwmod dra7xx_l3_main_2_hwmod
= {
88 .class = &dra7xx_l3_hwmod_class
,
89 .clkdm_name
= "l3instr_clkdm",
92 .clkctrl_offs
= DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET
,
93 .context_offs
= DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET
,
94 .modulemode
= MODULEMODE_HWCTRL
,
101 * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
103 static struct omap_hwmod_class dra7xx_l4_hwmod_class
= {
108 static struct omap_hwmod dra7xx_l4_cfg_hwmod
= {
110 .class = &dra7xx_l4_hwmod_class
,
111 .clkdm_name
= "l4cfg_clkdm",
114 .clkctrl_offs
= DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET
,
115 .context_offs
= DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET
,
121 static struct omap_hwmod dra7xx_l4_per1_hwmod
= {
123 .class = &dra7xx_l4_hwmod_class
,
124 .clkdm_name
= "l4per_clkdm",
127 .clkctrl_offs
= DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET
,
128 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
134 static struct omap_hwmod dra7xx_l4_per2_hwmod
= {
136 .class = &dra7xx_l4_hwmod_class
,
137 .clkdm_name
= "l4per2_clkdm",
140 .clkctrl_offs
= DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET
,
141 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
147 static struct omap_hwmod dra7xx_l4_per3_hwmod
= {
149 .class = &dra7xx_l4_hwmod_class
,
150 .clkdm_name
= "l4per3_clkdm",
153 .clkctrl_offs
= DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET
,
154 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
160 static struct omap_hwmod dra7xx_l4_wkup_hwmod
= {
162 .class = &dra7xx_l4_hwmod_class
,
163 .clkdm_name
= "wkupaon_clkdm",
166 .clkctrl_offs
= DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET
,
167 .context_offs
= DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET
,
177 static struct omap_hwmod_class dra7xx_atl_hwmod_class
= {
182 static struct omap_hwmod dra7xx_atl_hwmod
= {
184 .class = &dra7xx_atl_hwmod_class
,
185 .clkdm_name
= "atl_clkdm",
186 .main_clk
= "atl_gfclk_mux",
189 .clkctrl_offs
= DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET
,
190 .context_offs
= DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET
,
191 .modulemode
= MODULEMODE_SWCTRL
,
201 static struct omap_hwmod_class dra7xx_bb2d_hwmod_class
= {
206 static struct omap_hwmod dra7xx_bb2d_hwmod
= {
208 .class = &dra7xx_bb2d_hwmod_class
,
209 .clkdm_name
= "dss_clkdm",
210 .main_clk
= "dpll_core_h24x2_ck",
213 .clkctrl_offs
= DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET
,
214 .context_offs
= DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET
,
215 .modulemode
= MODULEMODE_SWCTRL
,
225 static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc
= {
228 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
229 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
231 .sysc_fields
= &omap_hwmod_sysc_type1
,
234 static struct omap_hwmod_class dra7xx_counter_hwmod_class
= {
236 .sysc
= &dra7xx_counter_sysc
,
240 static struct omap_hwmod dra7xx_counter_32k_hwmod
= {
241 .name
= "counter_32k",
242 .class = &dra7xx_counter_hwmod_class
,
243 .clkdm_name
= "wkupaon_clkdm",
244 .flags
= HWMOD_SWSUP_SIDLE
,
245 .main_clk
= "wkupaon_iclk_mux",
248 .clkctrl_offs
= DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET
,
249 .context_offs
= DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET
,
255 * 'ctrl_module' class
259 static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class
= {
260 .name
= "ctrl_module",
263 /* ctrl_module_wkup */
264 static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod
= {
265 .name
= "ctrl_module_wkup",
266 .class = &dra7xx_ctrl_module_hwmod_class
,
267 .clkdm_name
= "wkupaon_clkdm",
270 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
277 * cpsw/gmac sub system
279 static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc
= {
283 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
284 SYSS_HAS_RESET_STATUS
),
285 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| MSTANDBY_FORCE
|
287 .sysc_fields
= &omap_hwmod_sysc_type3
,
290 static struct omap_hwmod_class dra7xx_gmac_hwmod_class
= {
292 .sysc
= &dra7xx_gmac_sysc
,
295 static struct omap_hwmod dra7xx_gmac_hwmod
= {
297 .class = &dra7xx_gmac_hwmod_class
,
298 .clkdm_name
= "gmac_clkdm",
299 .flags
= (HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
),
300 .main_clk
= "dpll_gmac_ck",
304 .clkctrl_offs
= DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET
,
305 .context_offs
= DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET
,
306 .modulemode
= MODULEMODE_SWCTRL
,
314 static struct omap_hwmod_class dra7xx_mdio_hwmod_class
= {
315 .name
= "davinci_mdio",
318 static struct omap_hwmod dra7xx_mdio_hwmod
= {
319 .name
= "davinci_mdio",
320 .class = &dra7xx_mdio_hwmod_class
,
321 .clkdm_name
= "gmac_clkdm",
322 .main_clk
= "dpll_gmac_ck",
330 static struct omap_hwmod_class dra7xx_dcan_hwmod_class
= {
335 static struct omap_hwmod dra7xx_dcan1_hwmod
= {
337 .class = &dra7xx_dcan_hwmod_class
,
338 .clkdm_name
= "wkupaon_clkdm",
339 .main_clk
= "dcan1_sys_clk_mux",
342 .clkctrl_offs
= DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET
,
343 .context_offs
= DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET
,
344 .modulemode
= MODULEMODE_SWCTRL
,
350 static struct omap_hwmod dra7xx_dcan2_hwmod
= {
352 .class = &dra7xx_dcan_hwmod_class
,
353 .clkdm_name
= "l4per2_clkdm",
354 .main_clk
= "sys_clkin1",
357 .clkctrl_offs
= DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET
,
358 .context_offs
= DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET
,
359 .modulemode
= MODULEMODE_SWCTRL
,
369 static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc
= {
373 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
374 SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
375 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
376 SYSS_HAS_RESET_STATUS
),
377 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
378 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
379 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
380 .sysc_fields
= &omap_hwmod_sysc_type1
,
383 static struct omap_hwmod_class dra7xx_dma_hwmod_class
= {
385 .sysc
= &dra7xx_dma_sysc
,
389 static struct omap_dma_dev_attr dma_dev_attr
= {
390 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
391 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
396 static struct omap_hwmod dra7xx_dma_system_hwmod
= {
397 .name
= "dma_system",
398 .class = &dra7xx_dma_hwmod_class
,
399 .clkdm_name
= "dma_clkdm",
400 .main_clk
= "l3_iclk_div",
403 .clkctrl_offs
= DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET
,
404 .context_offs
= DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET
,
407 .dev_attr
= &dma_dev_attr
,
415 static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc
= {
418 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
421 static struct omap_hwmod_class dra7xx_dss_hwmod_class
= {
423 .sysc
= &dra7xx_dss_sysc
,
424 .reset
= omap_dss_reset
,
428 static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs
[] = {
429 { .dma_req
= 75 + DRA7XX_DMA_REQ_START
},
433 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
434 { .role
= "dss_clk", .clk
= "dss_dss_clk" },
435 { .role
= "hdmi_phy_clk", .clk
= "dss_48mhz_clk" },
436 { .role
= "32khz_clk", .clk
= "dss_32khz_clk" },
437 { .role
= "video2_clk", .clk
= "dss_video2_clk" },
438 { .role
= "video1_clk", .clk
= "dss_video1_clk" },
439 { .role
= "hdmi_clk", .clk
= "dss_hdmi_clk" },
442 static struct omap_hwmod dra7xx_dss_hwmod
= {
444 .class = &dra7xx_dss_hwmod_class
,
445 .clkdm_name
= "dss_clkdm",
446 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
447 .sdma_reqs
= dra7xx_dss_sdma_reqs
,
448 .main_clk
= "dss_dss_clk",
451 .clkctrl_offs
= DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET
,
452 .context_offs
= DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET
,
453 .modulemode
= MODULEMODE_SWCTRL
,
456 .opt_clks
= dss_opt_clks
,
457 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
465 static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc
= {
469 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
470 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_MIDLEMODE
|
471 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
472 SYSS_HAS_RESET_STATUS
),
473 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
474 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
475 .sysc_fields
= &omap_hwmod_sysc_type1
,
478 static struct omap_hwmod_class dra7xx_dispc_hwmod_class
= {
480 .sysc
= &dra7xx_dispc_sysc
,
484 /* dss_dispc dev_attr */
485 static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr
= {
486 .has_framedonetv_irq
= 1,
490 static struct omap_hwmod dra7xx_dss_dispc_hwmod
= {
492 .class = &dra7xx_dispc_hwmod_class
,
493 .clkdm_name
= "dss_clkdm",
494 .main_clk
= "dss_dss_clk",
497 .clkctrl_offs
= DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET
,
498 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
501 .dev_attr
= &dss_dispc_dev_attr
,
509 static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc
= {
512 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
514 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
516 .sysc_fields
= &omap_hwmod_sysc_type2
,
519 static struct omap_hwmod_class dra7xx_hdmi_hwmod_class
= {
521 .sysc
= &dra7xx_hdmi_sysc
,
526 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks
[] = {
527 { .role
= "sys_clk", .clk
= "dss_hdmi_clk" },
530 static struct omap_hwmod dra7xx_dss_hdmi_hwmod
= {
532 .class = &dra7xx_hdmi_hwmod_class
,
533 .clkdm_name
= "dss_clkdm",
534 .main_clk
= "dss_48mhz_clk",
537 .clkctrl_offs
= DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET
,
538 .flags
= HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
541 .opt_clks
= dss_hdmi_opt_clks
,
542 .opt_clks_cnt
= ARRAY_SIZE(dss_hdmi_opt_clks
),
550 static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc
= {
554 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
555 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
556 SYSS_HAS_RESET_STATUS
),
557 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
559 .sysc_fields
= &omap_hwmod_sysc_type1
,
562 static struct omap_hwmod_class dra7xx_elm_hwmod_class
= {
564 .sysc
= &dra7xx_elm_sysc
,
569 static struct omap_hwmod dra7xx_elm_hwmod
= {
571 .class = &dra7xx_elm_hwmod_class
,
572 .clkdm_name
= "l4per_clkdm",
573 .main_clk
= "l3_iclk_div",
576 .clkctrl_offs
= DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET
,
577 .context_offs
= DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET
,
587 static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc
= {
591 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
592 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
593 SYSS_HAS_RESET_STATUS
),
594 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
596 .sysc_fields
= &omap_hwmod_sysc_type1
,
599 static struct omap_hwmod_class dra7xx_gpio_hwmod_class
= {
601 .sysc
= &dra7xx_gpio_sysc
,
606 static struct omap_gpio_dev_attr gpio_dev_attr
= {
612 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
613 { .role
= "dbclk", .clk
= "gpio1_dbclk" },
616 static struct omap_hwmod dra7xx_gpio1_hwmod
= {
618 .class = &dra7xx_gpio_hwmod_class
,
619 .clkdm_name
= "wkupaon_clkdm",
620 .main_clk
= "wkupaon_iclk_mux",
623 .clkctrl_offs
= DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET
,
624 .context_offs
= DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET
,
625 .modulemode
= MODULEMODE_HWCTRL
,
628 .opt_clks
= gpio1_opt_clks
,
629 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
630 .dev_attr
= &gpio_dev_attr
,
634 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
635 { .role
= "dbclk", .clk
= "gpio2_dbclk" },
638 static struct omap_hwmod dra7xx_gpio2_hwmod
= {
640 .class = &dra7xx_gpio_hwmod_class
,
641 .clkdm_name
= "l4per_clkdm",
642 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
643 .main_clk
= "l3_iclk_div",
646 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET
,
647 .context_offs
= DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET
,
648 .modulemode
= MODULEMODE_HWCTRL
,
651 .opt_clks
= gpio2_opt_clks
,
652 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
653 .dev_attr
= &gpio_dev_attr
,
657 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
658 { .role
= "dbclk", .clk
= "gpio3_dbclk" },
661 static struct omap_hwmod dra7xx_gpio3_hwmod
= {
663 .class = &dra7xx_gpio_hwmod_class
,
664 .clkdm_name
= "l4per_clkdm",
665 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
666 .main_clk
= "l3_iclk_div",
669 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET
,
670 .context_offs
= DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET
,
671 .modulemode
= MODULEMODE_HWCTRL
,
674 .opt_clks
= gpio3_opt_clks
,
675 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
676 .dev_attr
= &gpio_dev_attr
,
680 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
681 { .role
= "dbclk", .clk
= "gpio4_dbclk" },
684 static struct omap_hwmod dra7xx_gpio4_hwmod
= {
686 .class = &dra7xx_gpio_hwmod_class
,
687 .clkdm_name
= "l4per_clkdm",
688 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
689 .main_clk
= "l3_iclk_div",
692 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET
,
693 .context_offs
= DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET
,
694 .modulemode
= MODULEMODE_HWCTRL
,
697 .opt_clks
= gpio4_opt_clks
,
698 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
699 .dev_attr
= &gpio_dev_attr
,
703 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
704 { .role
= "dbclk", .clk
= "gpio5_dbclk" },
707 static struct omap_hwmod dra7xx_gpio5_hwmod
= {
709 .class = &dra7xx_gpio_hwmod_class
,
710 .clkdm_name
= "l4per_clkdm",
711 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
712 .main_clk
= "l3_iclk_div",
715 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET
,
716 .context_offs
= DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET
,
717 .modulemode
= MODULEMODE_HWCTRL
,
720 .opt_clks
= gpio5_opt_clks
,
721 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
722 .dev_attr
= &gpio_dev_attr
,
726 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
727 { .role
= "dbclk", .clk
= "gpio6_dbclk" },
730 static struct omap_hwmod dra7xx_gpio6_hwmod
= {
732 .class = &dra7xx_gpio_hwmod_class
,
733 .clkdm_name
= "l4per_clkdm",
734 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
735 .main_clk
= "l3_iclk_div",
738 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET
,
739 .context_offs
= DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET
,
740 .modulemode
= MODULEMODE_HWCTRL
,
743 .opt_clks
= gpio6_opt_clks
,
744 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
745 .dev_attr
= &gpio_dev_attr
,
749 static struct omap_hwmod_opt_clk gpio7_opt_clks
[] = {
750 { .role
= "dbclk", .clk
= "gpio7_dbclk" },
753 static struct omap_hwmod dra7xx_gpio7_hwmod
= {
755 .class = &dra7xx_gpio_hwmod_class
,
756 .clkdm_name
= "l4per_clkdm",
757 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
758 .main_clk
= "l3_iclk_div",
761 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET
,
762 .context_offs
= DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET
,
763 .modulemode
= MODULEMODE_HWCTRL
,
766 .opt_clks
= gpio7_opt_clks
,
767 .opt_clks_cnt
= ARRAY_SIZE(gpio7_opt_clks
),
768 .dev_attr
= &gpio_dev_attr
,
772 static struct omap_hwmod_opt_clk gpio8_opt_clks
[] = {
773 { .role
= "dbclk", .clk
= "gpio8_dbclk" },
776 static struct omap_hwmod dra7xx_gpio8_hwmod
= {
778 .class = &dra7xx_gpio_hwmod_class
,
779 .clkdm_name
= "l4per_clkdm",
780 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
781 .main_clk
= "l3_iclk_div",
784 .clkctrl_offs
= DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET
,
785 .context_offs
= DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET
,
786 .modulemode
= MODULEMODE_HWCTRL
,
789 .opt_clks
= gpio8_opt_clks
,
790 .opt_clks_cnt
= ARRAY_SIZE(gpio8_opt_clks
),
791 .dev_attr
= &gpio_dev_attr
,
799 static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc
= {
803 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
804 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
805 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
807 .sysc_fields
= &omap_hwmod_sysc_type1
,
810 static struct omap_hwmod_class dra7xx_gpmc_hwmod_class
= {
812 .sysc
= &dra7xx_gpmc_sysc
,
817 static struct omap_hwmod dra7xx_gpmc_hwmod
= {
819 .class = &dra7xx_gpmc_hwmod_class
,
820 .clkdm_name
= "l3main1_clkdm",
821 .flags
= HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
,
822 .main_clk
= "l3_iclk_div",
825 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET
,
826 .context_offs
= DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET
,
827 .modulemode
= MODULEMODE_HWCTRL
,
837 static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc
= {
841 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SOFTRESET
|
842 SYSS_HAS_RESET_STATUS
),
843 .sysc_fields
= &omap_hwmod_sysc_type1
,
846 static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class
= {
848 .sysc
= &dra7xx_hdq1w_sysc
,
853 static struct omap_hwmod dra7xx_hdq1w_hwmod
= {
855 .class = &dra7xx_hdq1w_hwmod_class
,
856 .clkdm_name
= "l4per_clkdm",
857 .flags
= HWMOD_INIT_NO_RESET
,
858 .main_clk
= "func_12m_fclk",
861 .clkctrl_offs
= DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET
,
862 .context_offs
= DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET
,
863 .modulemode
= MODULEMODE_SWCTRL
,
873 static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc
= {
876 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
877 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
878 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
879 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
881 .clockact
= CLOCKACT_TEST_ICLK
,
882 .sysc_fields
= &omap_hwmod_sysc_type1
,
885 static struct omap_hwmod_class dra7xx_i2c_hwmod_class
= {
887 .sysc
= &dra7xx_i2c_sysc
,
888 .reset
= &omap_i2c_reset
,
889 .rev
= OMAP_I2C_IP_VERSION_2
,
893 static struct omap_i2c_dev_attr i2c_dev_attr
= {
894 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
898 static struct omap_hwmod dra7xx_i2c1_hwmod
= {
900 .class = &dra7xx_i2c_hwmod_class
,
901 .clkdm_name
= "l4per_clkdm",
902 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
903 .main_clk
= "func_96m_fclk",
906 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET
,
907 .context_offs
= DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET
,
908 .modulemode
= MODULEMODE_SWCTRL
,
911 .dev_attr
= &i2c_dev_attr
,
915 static struct omap_hwmod dra7xx_i2c2_hwmod
= {
917 .class = &dra7xx_i2c_hwmod_class
,
918 .clkdm_name
= "l4per_clkdm",
919 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
920 .main_clk
= "func_96m_fclk",
923 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET
,
924 .context_offs
= DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET
,
925 .modulemode
= MODULEMODE_SWCTRL
,
928 .dev_attr
= &i2c_dev_attr
,
932 static struct omap_hwmod dra7xx_i2c3_hwmod
= {
934 .class = &dra7xx_i2c_hwmod_class
,
935 .clkdm_name
= "l4per_clkdm",
936 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
937 .main_clk
= "func_96m_fclk",
940 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET
,
941 .context_offs
= DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET
,
942 .modulemode
= MODULEMODE_SWCTRL
,
945 .dev_attr
= &i2c_dev_attr
,
949 static struct omap_hwmod dra7xx_i2c4_hwmod
= {
951 .class = &dra7xx_i2c_hwmod_class
,
952 .clkdm_name
= "l4per_clkdm",
953 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
954 .main_clk
= "func_96m_fclk",
957 .clkctrl_offs
= DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET
,
958 .context_offs
= DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET
,
959 .modulemode
= MODULEMODE_SWCTRL
,
962 .dev_attr
= &i2c_dev_attr
,
966 static struct omap_hwmod dra7xx_i2c5_hwmod
= {
968 .class = &dra7xx_i2c_hwmod_class
,
969 .clkdm_name
= "ipu_clkdm",
970 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
971 .main_clk
= "func_96m_fclk",
974 .clkctrl_offs
= DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET
,
975 .context_offs
= DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET
,
976 .modulemode
= MODULEMODE_SWCTRL
,
979 .dev_attr
= &i2c_dev_attr
,
987 static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc
= {
990 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
992 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
993 .sysc_fields
= &omap_hwmod_sysc_type2
,
996 static struct omap_hwmod_class dra7xx_mailbox_hwmod_class
= {
998 .sysc
= &dra7xx_mailbox_sysc
,
1002 static struct omap_hwmod dra7xx_mailbox1_hwmod
= {
1004 .class = &dra7xx_mailbox_hwmod_class
,
1005 .clkdm_name
= "l4cfg_clkdm",
1008 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET
,
1009 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET
,
1015 static struct omap_hwmod dra7xx_mailbox2_hwmod
= {
1017 .class = &dra7xx_mailbox_hwmod_class
,
1018 .clkdm_name
= "l4cfg_clkdm",
1021 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET
,
1022 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET
,
1028 static struct omap_hwmod dra7xx_mailbox3_hwmod
= {
1030 .class = &dra7xx_mailbox_hwmod_class
,
1031 .clkdm_name
= "l4cfg_clkdm",
1034 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET
,
1035 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET
,
1041 static struct omap_hwmod dra7xx_mailbox4_hwmod
= {
1043 .class = &dra7xx_mailbox_hwmod_class
,
1044 .clkdm_name
= "l4cfg_clkdm",
1047 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET
,
1048 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET
,
1054 static struct omap_hwmod dra7xx_mailbox5_hwmod
= {
1056 .class = &dra7xx_mailbox_hwmod_class
,
1057 .clkdm_name
= "l4cfg_clkdm",
1060 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET
,
1061 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET
,
1067 static struct omap_hwmod dra7xx_mailbox6_hwmod
= {
1069 .class = &dra7xx_mailbox_hwmod_class
,
1070 .clkdm_name
= "l4cfg_clkdm",
1073 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET
,
1074 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET
,
1080 static struct omap_hwmod dra7xx_mailbox7_hwmod
= {
1082 .class = &dra7xx_mailbox_hwmod_class
,
1083 .clkdm_name
= "l4cfg_clkdm",
1086 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET
,
1087 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET
,
1093 static struct omap_hwmod dra7xx_mailbox8_hwmod
= {
1095 .class = &dra7xx_mailbox_hwmod_class
,
1096 .clkdm_name
= "l4cfg_clkdm",
1099 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET
,
1100 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET
,
1106 static struct omap_hwmod dra7xx_mailbox9_hwmod
= {
1108 .class = &dra7xx_mailbox_hwmod_class
,
1109 .clkdm_name
= "l4cfg_clkdm",
1112 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET
,
1113 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET
,
1119 static struct omap_hwmod dra7xx_mailbox10_hwmod
= {
1120 .name
= "mailbox10",
1121 .class = &dra7xx_mailbox_hwmod_class
,
1122 .clkdm_name
= "l4cfg_clkdm",
1125 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET
,
1126 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET
,
1132 static struct omap_hwmod dra7xx_mailbox11_hwmod
= {
1133 .name
= "mailbox11",
1134 .class = &dra7xx_mailbox_hwmod_class
,
1135 .clkdm_name
= "l4cfg_clkdm",
1138 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET
,
1139 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET
,
1145 static struct omap_hwmod dra7xx_mailbox12_hwmod
= {
1146 .name
= "mailbox12",
1147 .class = &dra7xx_mailbox_hwmod_class
,
1148 .clkdm_name
= "l4cfg_clkdm",
1151 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET
,
1152 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET
,
1158 static struct omap_hwmod dra7xx_mailbox13_hwmod
= {
1159 .name
= "mailbox13",
1160 .class = &dra7xx_mailbox_hwmod_class
,
1161 .clkdm_name
= "l4cfg_clkdm",
1164 .clkctrl_offs
= DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET
,
1165 .context_offs
= DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET
,
1175 static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc
= {
1177 .sysc_offs
= 0x0010,
1178 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1179 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1180 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1182 .sysc_fields
= &omap_hwmod_sysc_type2
,
1185 static struct omap_hwmod_class dra7xx_mcspi_hwmod_class
= {
1187 .sysc
= &dra7xx_mcspi_sysc
,
1188 .rev
= OMAP4_MCSPI_REV
,
1192 /* mcspi1 dev_attr */
1193 static struct omap2_mcspi_dev_attr mcspi1_dev_attr
= {
1194 .num_chipselect
= 4,
1197 static struct omap_hwmod dra7xx_mcspi1_hwmod
= {
1199 .class = &dra7xx_mcspi_hwmod_class
,
1200 .clkdm_name
= "l4per_clkdm",
1201 .main_clk
= "func_48m_fclk",
1204 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET
,
1205 .context_offs
= DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET
,
1206 .modulemode
= MODULEMODE_SWCTRL
,
1209 .dev_attr
= &mcspi1_dev_attr
,
1213 /* mcspi2 dev_attr */
1214 static struct omap2_mcspi_dev_attr mcspi2_dev_attr
= {
1215 .num_chipselect
= 2,
1218 static struct omap_hwmod dra7xx_mcspi2_hwmod
= {
1220 .class = &dra7xx_mcspi_hwmod_class
,
1221 .clkdm_name
= "l4per_clkdm",
1222 .main_clk
= "func_48m_fclk",
1225 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET
,
1226 .context_offs
= DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET
,
1227 .modulemode
= MODULEMODE_SWCTRL
,
1230 .dev_attr
= &mcspi2_dev_attr
,
1234 /* mcspi3 dev_attr */
1235 static struct omap2_mcspi_dev_attr mcspi3_dev_attr
= {
1236 .num_chipselect
= 2,
1239 static struct omap_hwmod dra7xx_mcspi3_hwmod
= {
1241 .class = &dra7xx_mcspi_hwmod_class
,
1242 .clkdm_name
= "l4per_clkdm",
1243 .main_clk
= "func_48m_fclk",
1246 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET
,
1247 .context_offs
= DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET
,
1248 .modulemode
= MODULEMODE_SWCTRL
,
1251 .dev_attr
= &mcspi3_dev_attr
,
1255 /* mcspi4 dev_attr */
1256 static struct omap2_mcspi_dev_attr mcspi4_dev_attr
= {
1257 .num_chipselect
= 1,
1260 static struct omap_hwmod dra7xx_mcspi4_hwmod
= {
1262 .class = &dra7xx_mcspi_hwmod_class
,
1263 .clkdm_name
= "l4per_clkdm",
1264 .main_clk
= "func_48m_fclk",
1267 .clkctrl_offs
= DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET
,
1268 .context_offs
= DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET
,
1269 .modulemode
= MODULEMODE_SWCTRL
,
1272 .dev_attr
= &mcspi4_dev_attr
,
1280 static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc
= {
1282 .sysc_offs
= 0x0010,
1283 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
1284 SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1285 SYSC_HAS_SOFTRESET
),
1286 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1287 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1288 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1289 .sysc_fields
= &omap_hwmod_sysc_type2
,
1292 static struct omap_hwmod_class dra7xx_mmc_hwmod_class
= {
1294 .sysc
= &dra7xx_mmc_sysc
,
1298 static struct omap_hwmod_opt_clk mmc1_opt_clks
[] = {
1299 { .role
= "clk32k", .clk
= "mmc1_clk32k" },
1303 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
1304 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1307 static struct omap_hwmod dra7xx_mmc1_hwmod
= {
1309 .class = &dra7xx_mmc_hwmod_class
,
1310 .clkdm_name
= "l3init_clkdm",
1311 .main_clk
= "mmc1_fclk_div",
1314 .clkctrl_offs
= DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET
,
1315 .context_offs
= DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET
,
1316 .modulemode
= MODULEMODE_SWCTRL
,
1319 .opt_clks
= mmc1_opt_clks
,
1320 .opt_clks_cnt
= ARRAY_SIZE(mmc1_opt_clks
),
1321 .dev_attr
= &mmc1_dev_attr
,
1325 static struct omap_hwmod_opt_clk mmc2_opt_clks
[] = {
1326 { .role
= "clk32k", .clk
= "mmc2_clk32k" },
1329 static struct omap_hwmod dra7xx_mmc2_hwmod
= {
1331 .class = &dra7xx_mmc_hwmod_class
,
1332 .clkdm_name
= "l3init_clkdm",
1333 .main_clk
= "mmc2_fclk_div",
1336 .clkctrl_offs
= DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET
,
1337 .context_offs
= DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET
,
1338 .modulemode
= MODULEMODE_SWCTRL
,
1341 .opt_clks
= mmc2_opt_clks
,
1342 .opt_clks_cnt
= ARRAY_SIZE(mmc2_opt_clks
),
1346 static struct omap_hwmod_opt_clk mmc3_opt_clks
[] = {
1347 { .role
= "clk32k", .clk
= "mmc3_clk32k" },
1350 static struct omap_hwmod dra7xx_mmc3_hwmod
= {
1352 .class = &dra7xx_mmc_hwmod_class
,
1353 .clkdm_name
= "l4per_clkdm",
1354 .main_clk
= "mmc3_gfclk_div",
1357 .clkctrl_offs
= DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET
,
1358 .context_offs
= DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET
,
1359 .modulemode
= MODULEMODE_SWCTRL
,
1362 .opt_clks
= mmc3_opt_clks
,
1363 .opt_clks_cnt
= ARRAY_SIZE(mmc3_opt_clks
),
1367 static struct omap_hwmod_opt_clk mmc4_opt_clks
[] = {
1368 { .role
= "clk32k", .clk
= "mmc4_clk32k" },
1371 static struct omap_hwmod dra7xx_mmc4_hwmod
= {
1373 .class = &dra7xx_mmc_hwmod_class
,
1374 .clkdm_name
= "l4per_clkdm",
1375 .main_clk
= "mmc4_gfclk_div",
1378 .clkctrl_offs
= DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET
,
1379 .context_offs
= DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET
,
1380 .modulemode
= MODULEMODE_SWCTRL
,
1383 .opt_clks
= mmc4_opt_clks
,
1384 .opt_clks_cnt
= ARRAY_SIZE(mmc4_opt_clks
),
1392 static struct omap_hwmod_class dra7xx_mpu_hwmod_class
= {
1397 static struct omap_hwmod dra7xx_mpu_hwmod
= {
1399 .class = &dra7xx_mpu_hwmod_class
,
1400 .clkdm_name
= "mpu_clkdm",
1401 .flags
= HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
,
1402 .main_clk
= "dpll_mpu_m2_ck",
1405 .clkctrl_offs
= DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET
,
1406 .context_offs
= DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET
,
1416 static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc
= {
1418 .sysc_offs
= 0x0010,
1419 .syss_offs
= 0x0014,
1420 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1421 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1422 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1424 .sysc_fields
= &omap_hwmod_sysc_type1
,
1427 static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class
= {
1429 .sysc
= &dra7xx_ocp2scp_sysc
,
1433 static struct omap_hwmod dra7xx_ocp2scp1_hwmod
= {
1435 .class = &dra7xx_ocp2scp_hwmod_class
,
1436 .clkdm_name
= "l3init_clkdm",
1437 .main_clk
= "l4_root_clk_div",
1440 .clkctrl_offs
= DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET
,
1441 .context_offs
= DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET
,
1442 .modulemode
= MODULEMODE_HWCTRL
,
1448 static struct omap_hwmod dra7xx_ocp2scp3_hwmod
= {
1450 .class = &dra7xx_ocp2scp_hwmod_class
,
1451 .clkdm_name
= "l3init_clkdm",
1452 .main_clk
= "l4_root_clk_div",
1455 .clkctrl_offs
= DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET
,
1456 .context_offs
= DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET
,
1457 .modulemode
= MODULEMODE_HWCTRL
,
1467 static struct omap_hwmod_class dra7xx_pcie_hwmod_class
= {
1472 static struct omap_hwmod dra7xx_pcie1_hwmod
= {
1474 .class = &dra7xx_pcie_hwmod_class
,
1475 .clkdm_name
= "pcie_clkdm",
1476 .main_clk
= "l4_root_clk_div",
1479 .clkctrl_offs
= DRA7XX_CM_PCIE_CLKSTCTRL_OFFSET
,
1480 .modulemode
= MODULEMODE_SWCTRL
,
1486 static struct omap_hwmod dra7xx_pcie2_hwmod
= {
1488 .class = &dra7xx_pcie_hwmod_class
,
1489 .clkdm_name
= "pcie_clkdm",
1490 .main_clk
= "l4_root_clk_div",
1493 .clkctrl_offs
= DRA7XX_CM_PCIE_CLKSTCTRL_OFFSET
,
1494 .modulemode
= MODULEMODE_SWCTRL
,
1504 static struct omap_hwmod_class dra7xx_pcie_phy_hwmod_class
= {
1509 static struct omap_hwmod dra7xx_pcie1_phy_hwmod
= {
1510 .name
= "pcie1-phy",
1511 .class = &dra7xx_pcie_phy_hwmod_class
,
1512 .clkdm_name
= "l3init_clkdm",
1513 .main_clk
= "l4_root_clk_div",
1516 .clkctrl_offs
= DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET
,
1517 .context_offs
= DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET
,
1518 .modulemode
= MODULEMODE_SWCTRL
,
1524 static struct omap_hwmod dra7xx_pcie2_phy_hwmod
= {
1525 .name
= "pcie2-phy",
1526 .class = &dra7xx_pcie_phy_hwmod_class
,
1527 .clkdm_name
= "l3init_clkdm",
1528 .main_clk
= "l4_root_clk_div",
1531 .clkctrl_offs
= DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET
,
1532 .context_offs
= DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET
,
1533 .modulemode
= MODULEMODE_SWCTRL
,
1543 static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc
= {
1544 .sysc_offs
= 0x0010,
1545 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1546 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1548 .sysc_fields
= &omap_hwmod_sysc_type2
,
1551 static struct omap_hwmod_class dra7xx_qspi_hwmod_class
= {
1553 .sysc
= &dra7xx_qspi_sysc
,
1557 static struct omap_hwmod dra7xx_qspi_hwmod
= {
1559 .class = &dra7xx_qspi_hwmod_class
,
1560 .clkdm_name
= "l4per2_clkdm",
1561 .main_clk
= "qspi_gfclk_div",
1564 .clkctrl_offs
= DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET
,
1565 .context_offs
= DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET
,
1566 .modulemode
= MODULEMODE_SWCTRL
,
1575 static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc
= {
1576 .sysc_offs
= 0x0078,
1577 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1578 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1580 .sysc_fields
= &omap_hwmod_sysc_type3
,
1583 static struct omap_hwmod_class dra7xx_rtcss_hwmod_class
= {
1585 .sysc
= &dra7xx_rtcss_sysc
,
1589 static struct omap_hwmod dra7xx_rtcss_hwmod
= {
1591 .class = &dra7xx_rtcss_hwmod_class
,
1592 .clkdm_name
= "rtc_clkdm",
1593 .main_clk
= "sys_32k_ck",
1596 .clkctrl_offs
= DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET
,
1597 .context_offs
= DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET
,
1598 .modulemode
= MODULEMODE_SWCTRL
,
1608 static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc
= {
1609 .sysc_offs
= 0x0000,
1610 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
1611 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1612 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1613 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1614 .sysc_fields
= &omap_hwmod_sysc_type2
,
1617 static struct omap_hwmod_class dra7xx_sata_hwmod_class
= {
1619 .sysc
= &dra7xx_sata_sysc
,
1624 static struct omap_hwmod dra7xx_sata_hwmod
= {
1626 .class = &dra7xx_sata_hwmod_class
,
1627 .clkdm_name
= "l3init_clkdm",
1628 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1629 .main_clk
= "func_48m_fclk",
1633 .clkctrl_offs
= DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET
,
1634 .context_offs
= DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET
,
1635 .modulemode
= MODULEMODE_SWCTRL
,
1641 * 'smartreflex' class
1645 /* The IP is not compliant to type1 / type2 scheme */
1646 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex
= {
1651 static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc
= {
1652 .sysc_offs
= 0x0038,
1653 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
),
1654 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1656 .sysc_fields
= &omap_hwmod_sysc_type_smartreflex
,
1659 static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class
= {
1660 .name
= "smartreflex",
1661 .sysc
= &dra7xx_smartreflex_sysc
,
1665 /* smartreflex_core */
1666 /* smartreflex_core dev_attr */
1667 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr
= {
1668 .sensor_voltdm_name
= "core",
1671 static struct omap_hwmod dra7xx_smartreflex_core_hwmod
= {
1672 .name
= "smartreflex_core",
1673 .class = &dra7xx_smartreflex_hwmod_class
,
1674 .clkdm_name
= "coreaon_clkdm",
1675 .main_clk
= "wkupaon_iclk_mux",
1678 .clkctrl_offs
= DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET
,
1679 .context_offs
= DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET
,
1680 .modulemode
= MODULEMODE_SWCTRL
,
1683 .dev_attr
= &smartreflex_core_dev_attr
,
1686 /* smartreflex_mpu */
1687 /* smartreflex_mpu dev_attr */
1688 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr
= {
1689 .sensor_voltdm_name
= "mpu",
1692 static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod
= {
1693 .name
= "smartreflex_mpu",
1694 .class = &dra7xx_smartreflex_hwmod_class
,
1695 .clkdm_name
= "coreaon_clkdm",
1696 .main_clk
= "wkupaon_iclk_mux",
1699 .clkctrl_offs
= DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET
,
1700 .context_offs
= DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET
,
1701 .modulemode
= MODULEMODE_SWCTRL
,
1704 .dev_attr
= &smartreflex_mpu_dev_attr
,
1712 static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc
= {
1714 .sysc_offs
= 0x0010,
1715 .syss_offs
= 0x0014,
1716 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
1717 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1718 SYSS_HAS_RESET_STATUS
),
1719 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1720 .sysc_fields
= &omap_hwmod_sysc_type1
,
1723 static struct omap_hwmod_class dra7xx_spinlock_hwmod_class
= {
1725 .sysc
= &dra7xx_spinlock_sysc
,
1729 static struct omap_hwmod dra7xx_spinlock_hwmod
= {
1731 .class = &dra7xx_spinlock_hwmod_class
,
1732 .clkdm_name
= "l4cfg_clkdm",
1733 .main_clk
= "l3_iclk_div",
1736 .clkctrl_offs
= DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET
,
1737 .context_offs
= DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET
,
1745 * This class contains several variants: ['timer_1ms', 'timer_secure',
1749 static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc
= {
1751 .sysc_offs
= 0x0010,
1752 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1753 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1754 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1756 .sysc_fields
= &omap_hwmod_sysc_type2
,
1759 static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class
= {
1761 .sysc
= &dra7xx_timer_1ms_sysc
,
1764 static struct omap_hwmod_class_sysconfig dra7xx_timer_secure_sysc
= {
1766 .sysc_offs
= 0x0010,
1767 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1768 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1769 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1771 .sysc_fields
= &omap_hwmod_sysc_type2
,
1774 static struct omap_hwmod_class dra7xx_timer_secure_hwmod_class
= {
1776 .sysc
= &dra7xx_timer_secure_sysc
,
1779 static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc
= {
1781 .sysc_offs
= 0x0010,
1782 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1783 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1784 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1786 .sysc_fields
= &omap_hwmod_sysc_type2
,
1789 static struct omap_hwmod_class dra7xx_timer_hwmod_class
= {
1791 .sysc
= &dra7xx_timer_sysc
,
1795 static struct omap_hwmod dra7xx_timer1_hwmod
= {
1797 .class = &dra7xx_timer_1ms_hwmod_class
,
1798 .clkdm_name
= "wkupaon_clkdm",
1799 .main_clk
= "timer1_gfclk_mux",
1802 .clkctrl_offs
= DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET
,
1803 .context_offs
= DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET
,
1804 .modulemode
= MODULEMODE_SWCTRL
,
1810 static struct omap_hwmod dra7xx_timer2_hwmod
= {
1812 .class = &dra7xx_timer_1ms_hwmod_class
,
1813 .clkdm_name
= "l4per_clkdm",
1814 .main_clk
= "timer2_gfclk_mux",
1817 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET
,
1818 .context_offs
= DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET
,
1819 .modulemode
= MODULEMODE_SWCTRL
,
1825 static struct omap_hwmod dra7xx_timer3_hwmod
= {
1827 .class = &dra7xx_timer_hwmod_class
,
1828 .clkdm_name
= "l4per_clkdm",
1829 .main_clk
= "timer3_gfclk_mux",
1832 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET
,
1833 .context_offs
= DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET
,
1834 .modulemode
= MODULEMODE_SWCTRL
,
1840 static struct omap_hwmod dra7xx_timer4_hwmod
= {
1842 .class = &dra7xx_timer_secure_hwmod_class
,
1843 .clkdm_name
= "l4per_clkdm",
1844 .main_clk
= "timer4_gfclk_mux",
1847 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET
,
1848 .context_offs
= DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET
,
1849 .modulemode
= MODULEMODE_SWCTRL
,
1855 static struct omap_hwmod dra7xx_timer5_hwmod
= {
1857 .class = &dra7xx_timer_hwmod_class
,
1858 .clkdm_name
= "ipu_clkdm",
1859 .main_clk
= "timer5_gfclk_mux",
1862 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET
,
1863 .context_offs
= DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET
,
1864 .modulemode
= MODULEMODE_SWCTRL
,
1870 static struct omap_hwmod dra7xx_timer6_hwmod
= {
1872 .class = &dra7xx_timer_hwmod_class
,
1873 .clkdm_name
= "ipu_clkdm",
1874 .main_clk
= "timer6_gfclk_mux",
1877 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET
,
1878 .context_offs
= DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET
,
1879 .modulemode
= MODULEMODE_SWCTRL
,
1885 static struct omap_hwmod dra7xx_timer7_hwmod
= {
1887 .class = &dra7xx_timer_hwmod_class
,
1888 .clkdm_name
= "ipu_clkdm",
1889 .main_clk
= "timer7_gfclk_mux",
1892 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET
,
1893 .context_offs
= DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET
,
1894 .modulemode
= MODULEMODE_SWCTRL
,
1900 static struct omap_hwmod dra7xx_timer8_hwmod
= {
1902 .class = &dra7xx_timer_hwmod_class
,
1903 .clkdm_name
= "ipu_clkdm",
1904 .main_clk
= "timer8_gfclk_mux",
1907 .clkctrl_offs
= DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET
,
1908 .context_offs
= DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET
,
1909 .modulemode
= MODULEMODE_SWCTRL
,
1915 static struct omap_hwmod dra7xx_timer9_hwmod
= {
1917 .class = &dra7xx_timer_hwmod_class
,
1918 .clkdm_name
= "l4per_clkdm",
1919 .main_clk
= "timer9_gfclk_mux",
1922 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET
,
1923 .context_offs
= DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET
,
1924 .modulemode
= MODULEMODE_SWCTRL
,
1930 static struct omap_hwmod dra7xx_timer10_hwmod
= {
1932 .class = &dra7xx_timer_1ms_hwmod_class
,
1933 .clkdm_name
= "l4per_clkdm",
1934 .main_clk
= "timer10_gfclk_mux",
1937 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET
,
1938 .context_offs
= DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET
,
1939 .modulemode
= MODULEMODE_SWCTRL
,
1945 static struct omap_hwmod dra7xx_timer11_hwmod
= {
1947 .class = &dra7xx_timer_hwmod_class
,
1948 .clkdm_name
= "l4per_clkdm",
1949 .main_clk
= "timer11_gfclk_mux",
1952 .clkctrl_offs
= DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET
,
1953 .context_offs
= DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET
,
1954 .modulemode
= MODULEMODE_SWCTRL
,
1964 static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc
= {
1966 .sysc_offs
= 0x0054,
1967 .syss_offs
= 0x0058,
1968 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
1969 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1970 SYSS_HAS_RESET_STATUS
),
1971 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1973 .sysc_fields
= &omap_hwmod_sysc_type1
,
1976 static struct omap_hwmod_class dra7xx_uart_hwmod_class
= {
1978 .sysc
= &dra7xx_uart_sysc
,
1982 static struct omap_hwmod dra7xx_uart1_hwmod
= {
1984 .class = &dra7xx_uart_hwmod_class
,
1985 .clkdm_name
= "l4per_clkdm",
1986 .main_clk
= "uart1_gfclk_mux",
1987 .flags
= HWMOD_SWSUP_SIDLE_ACT
| DEBUG_OMAP2UART1_FLAGS
,
1990 .clkctrl_offs
= DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET
,
1991 .context_offs
= DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET
,
1992 .modulemode
= MODULEMODE_SWCTRL
,
1998 static struct omap_hwmod dra7xx_uart2_hwmod
= {
2000 .class = &dra7xx_uart_hwmod_class
,
2001 .clkdm_name
= "l4per_clkdm",
2002 .main_clk
= "uart2_gfclk_mux",
2003 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2006 .clkctrl_offs
= DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET
,
2007 .context_offs
= DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET
,
2008 .modulemode
= MODULEMODE_SWCTRL
,
2014 static struct omap_hwmod dra7xx_uart3_hwmod
= {
2016 .class = &dra7xx_uart_hwmod_class
,
2017 .clkdm_name
= "l4per_clkdm",
2018 .main_clk
= "uart3_gfclk_mux",
2019 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2022 .clkctrl_offs
= DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET
,
2023 .context_offs
= DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET
,
2024 .modulemode
= MODULEMODE_SWCTRL
,
2030 static struct omap_hwmod dra7xx_uart4_hwmod
= {
2032 .class = &dra7xx_uart_hwmod_class
,
2033 .clkdm_name
= "l4per_clkdm",
2034 .main_clk
= "uart4_gfclk_mux",
2035 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2038 .clkctrl_offs
= DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET
,
2039 .context_offs
= DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET
,
2040 .modulemode
= MODULEMODE_SWCTRL
,
2046 static struct omap_hwmod dra7xx_uart5_hwmod
= {
2048 .class = &dra7xx_uart_hwmod_class
,
2049 .clkdm_name
= "l4per_clkdm",
2050 .main_clk
= "uart5_gfclk_mux",
2051 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2054 .clkctrl_offs
= DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET
,
2055 .context_offs
= DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET
,
2056 .modulemode
= MODULEMODE_SWCTRL
,
2062 static struct omap_hwmod dra7xx_uart6_hwmod
= {
2064 .class = &dra7xx_uart_hwmod_class
,
2065 .clkdm_name
= "ipu_clkdm",
2066 .main_clk
= "uart6_gfclk_mux",
2067 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
2070 .clkctrl_offs
= DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET
,
2071 .context_offs
= DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET
,
2072 .modulemode
= MODULEMODE_SWCTRL
,
2078 * 'usb_otg_ss' class
2082 static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc
= {
2084 .sysc_offs
= 0x0010,
2085 .sysc_flags
= (SYSC_HAS_DMADISABLE
| SYSC_HAS_MIDLEMODE
|
2086 SYSC_HAS_SIDLEMODE
),
2087 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2088 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2089 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2090 .sysc_fields
= &omap_hwmod_sysc_type2
,
2093 static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class
= {
2094 .name
= "usb_otg_ss",
2095 .sysc
= &dra7xx_usb_otg_ss_sysc
,
2099 static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks
[] = {
2100 { .role
= "refclk960m", .clk
= "usb_otg_ss1_refclk960m" },
2103 static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod
= {
2104 .name
= "usb_otg_ss1",
2105 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2106 .clkdm_name
= "l3init_clkdm",
2107 .main_clk
= "dpll_core_h13x2_ck",
2110 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET
,
2111 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET
,
2112 .modulemode
= MODULEMODE_HWCTRL
,
2115 .opt_clks
= usb_otg_ss1_opt_clks
,
2116 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_ss1_opt_clks
),
2120 static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks
[] = {
2121 { .role
= "refclk960m", .clk
= "usb_otg_ss2_refclk960m" },
2124 static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod
= {
2125 .name
= "usb_otg_ss2",
2126 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2127 .clkdm_name
= "l3init_clkdm",
2128 .main_clk
= "dpll_core_h13x2_ck",
2131 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET
,
2132 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET
,
2133 .modulemode
= MODULEMODE_HWCTRL
,
2136 .opt_clks
= usb_otg_ss2_opt_clks
,
2137 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_ss2_opt_clks
),
2141 static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod
= {
2142 .name
= "usb_otg_ss3",
2143 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2144 .clkdm_name
= "l3init_clkdm",
2145 .main_clk
= "dpll_core_h13x2_ck",
2148 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET
,
2149 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET
,
2150 .modulemode
= MODULEMODE_HWCTRL
,
2156 static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod
= {
2157 .name
= "usb_otg_ss4",
2158 .class = &dra7xx_usb_otg_ss_hwmod_class
,
2159 .clkdm_name
= "l3init_clkdm",
2160 .main_clk
= "dpll_core_h13x2_ck",
2163 .clkctrl_offs
= DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET
,
2164 .context_offs
= DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET
,
2165 .modulemode
= MODULEMODE_HWCTRL
,
2175 static struct omap_hwmod_class dra7xx_vcp_hwmod_class
= {
2180 static struct omap_hwmod dra7xx_vcp1_hwmod
= {
2182 .class = &dra7xx_vcp_hwmod_class
,
2183 .clkdm_name
= "l3main1_clkdm",
2184 .main_clk
= "l3_iclk_div",
2187 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET
,
2188 .context_offs
= DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET
,
2194 static struct omap_hwmod dra7xx_vcp2_hwmod
= {
2196 .class = &dra7xx_vcp_hwmod_class
,
2197 .clkdm_name
= "l3main1_clkdm",
2198 .main_clk
= "l3_iclk_div",
2201 .clkctrl_offs
= DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET
,
2202 .context_offs
= DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET
,
2212 static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc
= {
2214 .sysc_offs
= 0x0010,
2215 .syss_offs
= 0x0014,
2216 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
2217 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2218 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2220 .sysc_fields
= &omap_hwmod_sysc_type1
,
2223 static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class
= {
2225 .sysc
= &dra7xx_wd_timer_sysc
,
2226 .pre_shutdown
= &omap2_wd_timer_disable
,
2227 .reset
= &omap2_wd_timer_reset
,
2231 static struct omap_hwmod dra7xx_wd_timer2_hwmod
= {
2232 .name
= "wd_timer2",
2233 .class = &dra7xx_wd_timer_hwmod_class
,
2234 .clkdm_name
= "wkupaon_clkdm",
2235 .main_clk
= "sys_32k_ck",
2238 .clkctrl_offs
= DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET
,
2239 .context_offs
= DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET
,
2240 .modulemode
= MODULEMODE_SWCTRL
,
2250 /* l3_main_2 -> l3_instr */
2251 static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr
= {
2252 .master
= &dra7xx_l3_main_2_hwmod
,
2253 .slave
= &dra7xx_l3_instr_hwmod
,
2254 .clk
= "l3_iclk_div",
2255 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2258 /* l4_cfg -> l3_main_1 */
2259 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1
= {
2260 .master
= &dra7xx_l4_cfg_hwmod
,
2261 .slave
= &dra7xx_l3_main_1_hwmod
,
2262 .clk
= "l3_iclk_div",
2263 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2266 /* mpu -> l3_main_1 */
2267 static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1
= {
2268 .master
= &dra7xx_mpu_hwmod
,
2269 .slave
= &dra7xx_l3_main_1_hwmod
,
2270 .clk
= "l3_iclk_div",
2271 .user
= OCP_USER_MPU
,
2274 /* l3_main_1 -> l3_main_2 */
2275 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2
= {
2276 .master
= &dra7xx_l3_main_1_hwmod
,
2277 .slave
= &dra7xx_l3_main_2_hwmod
,
2278 .clk
= "l3_iclk_div",
2279 .user
= OCP_USER_MPU
,
2282 /* l4_cfg -> l3_main_2 */
2283 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2
= {
2284 .master
= &dra7xx_l4_cfg_hwmod
,
2285 .slave
= &dra7xx_l3_main_2_hwmod
,
2286 .clk
= "l3_iclk_div",
2287 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2290 /* l3_main_1 -> l4_cfg */
2291 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg
= {
2292 .master
= &dra7xx_l3_main_1_hwmod
,
2293 .slave
= &dra7xx_l4_cfg_hwmod
,
2294 .clk
= "l3_iclk_div",
2295 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2298 /* l3_main_1 -> l4_per1 */
2299 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1
= {
2300 .master
= &dra7xx_l3_main_1_hwmod
,
2301 .slave
= &dra7xx_l4_per1_hwmod
,
2302 .clk
= "l3_iclk_div",
2303 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2306 /* l3_main_1 -> l4_per2 */
2307 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2
= {
2308 .master
= &dra7xx_l3_main_1_hwmod
,
2309 .slave
= &dra7xx_l4_per2_hwmod
,
2310 .clk
= "l3_iclk_div",
2311 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2314 /* l3_main_1 -> l4_per3 */
2315 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3
= {
2316 .master
= &dra7xx_l3_main_1_hwmod
,
2317 .slave
= &dra7xx_l4_per3_hwmod
,
2318 .clk
= "l3_iclk_div",
2319 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2322 /* l3_main_1 -> l4_wkup */
2323 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup
= {
2324 .master
= &dra7xx_l3_main_1_hwmod
,
2325 .slave
= &dra7xx_l4_wkup_hwmod
,
2326 .clk
= "wkupaon_iclk_mux",
2327 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2330 /* l4_per2 -> atl */
2331 static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl
= {
2332 .master
= &dra7xx_l4_per2_hwmod
,
2333 .slave
= &dra7xx_atl_hwmod
,
2334 .clk
= "l3_iclk_div",
2335 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2338 /* l3_main_1 -> bb2d */
2339 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d
= {
2340 .master
= &dra7xx_l3_main_1_hwmod
,
2341 .slave
= &dra7xx_bb2d_hwmod
,
2342 .clk
= "l3_iclk_div",
2343 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2346 /* l4_wkup -> counter_32k */
2347 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k
= {
2348 .master
= &dra7xx_l4_wkup_hwmod
,
2349 .slave
= &dra7xx_counter_32k_hwmod
,
2350 .clk
= "wkupaon_iclk_mux",
2351 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2354 /* l4_wkup -> ctrl_module_wkup */
2355 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup
= {
2356 .master
= &dra7xx_l4_wkup_hwmod
,
2357 .slave
= &dra7xx_ctrl_module_wkup_hwmod
,
2358 .clk
= "wkupaon_iclk_mux",
2359 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2362 static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0
= {
2363 .master
= &dra7xx_l4_per2_hwmod
,
2364 .slave
= &dra7xx_gmac_hwmod
,
2365 .clk
= "dpll_gmac_ck",
2366 .user
= OCP_USER_MPU
,
2369 static struct omap_hwmod_ocp_if dra7xx_gmac__mdio
= {
2370 .master
= &dra7xx_gmac_hwmod
,
2371 .slave
= &dra7xx_mdio_hwmod
,
2372 .user
= OCP_USER_MPU
,
2375 /* l4_wkup -> dcan1 */
2376 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1
= {
2377 .master
= &dra7xx_l4_wkup_hwmod
,
2378 .slave
= &dra7xx_dcan1_hwmod
,
2379 .clk
= "wkupaon_iclk_mux",
2380 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2383 /* l4_per2 -> dcan2 */
2384 static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2
= {
2385 .master
= &dra7xx_l4_per2_hwmod
,
2386 .slave
= &dra7xx_dcan2_hwmod
,
2387 .clk
= "l3_iclk_div",
2388 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2391 static struct omap_hwmod_addr_space dra7xx_dma_system_addrs
[] = {
2393 .pa_start
= 0x4a056000,
2394 .pa_end
= 0x4a056fff,
2395 .flags
= ADDR_TYPE_RT
2400 /* l4_cfg -> dma_system */
2401 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system
= {
2402 .master
= &dra7xx_l4_cfg_hwmod
,
2403 .slave
= &dra7xx_dma_system_hwmod
,
2404 .clk
= "l3_iclk_div",
2405 .addr
= dra7xx_dma_system_addrs
,
2406 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2409 static struct omap_hwmod_addr_space dra7xx_dss_addrs
[] = {
2412 .pa_start
= 0x58000000,
2413 .pa_end
= 0x5800007f,
2414 .flags
= ADDR_TYPE_RT
2418 /* l3_main_1 -> dss */
2419 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss
= {
2420 .master
= &dra7xx_l3_main_1_hwmod
,
2421 .slave
= &dra7xx_dss_hwmod
,
2422 .clk
= "l3_iclk_div",
2423 .addr
= dra7xx_dss_addrs
,
2424 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2427 static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs
[] = {
2430 .pa_start
= 0x58001000,
2431 .pa_end
= 0x58001fff,
2432 .flags
= ADDR_TYPE_RT
2436 /* l3_main_1 -> dispc */
2437 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc
= {
2438 .master
= &dra7xx_l3_main_1_hwmod
,
2439 .slave
= &dra7xx_dss_dispc_hwmod
,
2440 .clk
= "l3_iclk_div",
2441 .addr
= dra7xx_dss_dispc_addrs
,
2442 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2445 static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs
[] = {
2448 .pa_start
= 0x58040000,
2449 .pa_end
= 0x580400ff,
2450 .flags
= ADDR_TYPE_RT
2455 /* l3_main_1 -> dispc */
2456 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi
= {
2457 .master
= &dra7xx_l3_main_1_hwmod
,
2458 .slave
= &dra7xx_dss_hdmi_hwmod
,
2459 .clk
= "l3_iclk_div",
2460 .addr
= dra7xx_dss_hdmi_addrs
,
2461 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2464 static struct omap_hwmod_addr_space dra7xx_elm_addrs
[] = {
2466 .pa_start
= 0x48078000,
2467 .pa_end
= 0x48078fff,
2468 .flags
= ADDR_TYPE_RT
2473 /* l4_per1 -> elm */
2474 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm
= {
2475 .master
= &dra7xx_l4_per1_hwmod
,
2476 .slave
= &dra7xx_elm_hwmod
,
2477 .clk
= "l3_iclk_div",
2478 .addr
= dra7xx_elm_addrs
,
2479 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2482 /* l4_wkup -> gpio1 */
2483 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1
= {
2484 .master
= &dra7xx_l4_wkup_hwmod
,
2485 .slave
= &dra7xx_gpio1_hwmod
,
2486 .clk
= "wkupaon_iclk_mux",
2487 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2490 /* l4_per1 -> gpio2 */
2491 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2
= {
2492 .master
= &dra7xx_l4_per1_hwmod
,
2493 .slave
= &dra7xx_gpio2_hwmod
,
2494 .clk
= "l3_iclk_div",
2495 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2498 /* l4_per1 -> gpio3 */
2499 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3
= {
2500 .master
= &dra7xx_l4_per1_hwmod
,
2501 .slave
= &dra7xx_gpio3_hwmod
,
2502 .clk
= "l3_iclk_div",
2503 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2506 /* l4_per1 -> gpio4 */
2507 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4
= {
2508 .master
= &dra7xx_l4_per1_hwmod
,
2509 .slave
= &dra7xx_gpio4_hwmod
,
2510 .clk
= "l3_iclk_div",
2511 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2514 /* l4_per1 -> gpio5 */
2515 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5
= {
2516 .master
= &dra7xx_l4_per1_hwmod
,
2517 .slave
= &dra7xx_gpio5_hwmod
,
2518 .clk
= "l3_iclk_div",
2519 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2522 /* l4_per1 -> gpio6 */
2523 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6
= {
2524 .master
= &dra7xx_l4_per1_hwmod
,
2525 .slave
= &dra7xx_gpio6_hwmod
,
2526 .clk
= "l3_iclk_div",
2527 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2530 /* l4_per1 -> gpio7 */
2531 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7
= {
2532 .master
= &dra7xx_l4_per1_hwmod
,
2533 .slave
= &dra7xx_gpio7_hwmod
,
2534 .clk
= "l3_iclk_div",
2535 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2538 /* l4_per1 -> gpio8 */
2539 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8
= {
2540 .master
= &dra7xx_l4_per1_hwmod
,
2541 .slave
= &dra7xx_gpio8_hwmod
,
2542 .clk
= "l3_iclk_div",
2543 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2546 static struct omap_hwmod_addr_space dra7xx_gpmc_addrs
[] = {
2548 .pa_start
= 0x50000000,
2549 .pa_end
= 0x500003ff,
2550 .flags
= ADDR_TYPE_RT
2555 /* l3_main_1 -> gpmc */
2556 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc
= {
2557 .master
= &dra7xx_l3_main_1_hwmod
,
2558 .slave
= &dra7xx_gpmc_hwmod
,
2559 .clk
= "l3_iclk_div",
2560 .addr
= dra7xx_gpmc_addrs
,
2561 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2564 static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs
[] = {
2566 .pa_start
= 0x480b2000,
2567 .pa_end
= 0x480b201f,
2568 .flags
= ADDR_TYPE_RT
2573 /* l4_per1 -> hdq1w */
2574 static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w
= {
2575 .master
= &dra7xx_l4_per1_hwmod
,
2576 .slave
= &dra7xx_hdq1w_hwmod
,
2577 .clk
= "l3_iclk_div",
2578 .addr
= dra7xx_hdq1w_addrs
,
2579 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2582 /* l4_per1 -> i2c1 */
2583 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1
= {
2584 .master
= &dra7xx_l4_per1_hwmod
,
2585 .slave
= &dra7xx_i2c1_hwmod
,
2586 .clk
= "l3_iclk_div",
2587 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2590 /* l4_per1 -> i2c2 */
2591 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2
= {
2592 .master
= &dra7xx_l4_per1_hwmod
,
2593 .slave
= &dra7xx_i2c2_hwmod
,
2594 .clk
= "l3_iclk_div",
2595 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2598 /* l4_per1 -> i2c3 */
2599 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3
= {
2600 .master
= &dra7xx_l4_per1_hwmod
,
2601 .slave
= &dra7xx_i2c3_hwmod
,
2602 .clk
= "l3_iclk_div",
2603 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2606 /* l4_per1 -> i2c4 */
2607 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4
= {
2608 .master
= &dra7xx_l4_per1_hwmod
,
2609 .slave
= &dra7xx_i2c4_hwmod
,
2610 .clk
= "l3_iclk_div",
2611 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2614 /* l4_per1 -> i2c5 */
2615 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5
= {
2616 .master
= &dra7xx_l4_per1_hwmod
,
2617 .slave
= &dra7xx_i2c5_hwmod
,
2618 .clk
= "l3_iclk_div",
2619 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2622 /* l4_cfg -> mailbox1 */
2623 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1
= {
2624 .master
= &dra7xx_l4_cfg_hwmod
,
2625 .slave
= &dra7xx_mailbox1_hwmod
,
2626 .clk
= "l3_iclk_div",
2627 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2630 /* l4_per3 -> mailbox2 */
2631 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2
= {
2632 .master
= &dra7xx_l4_per3_hwmod
,
2633 .slave
= &dra7xx_mailbox2_hwmod
,
2634 .clk
= "l3_iclk_div",
2635 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2638 /* l4_per3 -> mailbox3 */
2639 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3
= {
2640 .master
= &dra7xx_l4_per3_hwmod
,
2641 .slave
= &dra7xx_mailbox3_hwmod
,
2642 .clk
= "l3_iclk_div",
2643 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2646 /* l4_per3 -> mailbox4 */
2647 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4
= {
2648 .master
= &dra7xx_l4_per3_hwmod
,
2649 .slave
= &dra7xx_mailbox4_hwmod
,
2650 .clk
= "l3_iclk_div",
2651 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2654 /* l4_per3 -> mailbox5 */
2655 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5
= {
2656 .master
= &dra7xx_l4_per3_hwmod
,
2657 .slave
= &dra7xx_mailbox5_hwmod
,
2658 .clk
= "l3_iclk_div",
2659 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2662 /* l4_per3 -> mailbox6 */
2663 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6
= {
2664 .master
= &dra7xx_l4_per3_hwmod
,
2665 .slave
= &dra7xx_mailbox6_hwmod
,
2666 .clk
= "l3_iclk_div",
2667 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2670 /* l4_per3 -> mailbox7 */
2671 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7
= {
2672 .master
= &dra7xx_l4_per3_hwmod
,
2673 .slave
= &dra7xx_mailbox7_hwmod
,
2674 .clk
= "l3_iclk_div",
2675 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2678 /* l4_per3 -> mailbox8 */
2679 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8
= {
2680 .master
= &dra7xx_l4_per3_hwmod
,
2681 .slave
= &dra7xx_mailbox8_hwmod
,
2682 .clk
= "l3_iclk_div",
2683 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2686 /* l4_per3 -> mailbox9 */
2687 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9
= {
2688 .master
= &dra7xx_l4_per3_hwmod
,
2689 .slave
= &dra7xx_mailbox9_hwmod
,
2690 .clk
= "l3_iclk_div",
2691 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2694 /* l4_per3 -> mailbox10 */
2695 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10
= {
2696 .master
= &dra7xx_l4_per3_hwmod
,
2697 .slave
= &dra7xx_mailbox10_hwmod
,
2698 .clk
= "l3_iclk_div",
2699 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2702 /* l4_per3 -> mailbox11 */
2703 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11
= {
2704 .master
= &dra7xx_l4_per3_hwmod
,
2705 .slave
= &dra7xx_mailbox11_hwmod
,
2706 .clk
= "l3_iclk_div",
2707 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2710 /* l4_per3 -> mailbox12 */
2711 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12
= {
2712 .master
= &dra7xx_l4_per3_hwmod
,
2713 .slave
= &dra7xx_mailbox12_hwmod
,
2714 .clk
= "l3_iclk_div",
2715 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2718 /* l4_per3 -> mailbox13 */
2719 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13
= {
2720 .master
= &dra7xx_l4_per3_hwmod
,
2721 .slave
= &dra7xx_mailbox13_hwmod
,
2722 .clk
= "l3_iclk_div",
2723 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2726 /* l4_per1 -> mcspi1 */
2727 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1
= {
2728 .master
= &dra7xx_l4_per1_hwmod
,
2729 .slave
= &dra7xx_mcspi1_hwmod
,
2730 .clk
= "l3_iclk_div",
2731 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2734 /* l4_per1 -> mcspi2 */
2735 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2
= {
2736 .master
= &dra7xx_l4_per1_hwmod
,
2737 .slave
= &dra7xx_mcspi2_hwmod
,
2738 .clk
= "l3_iclk_div",
2739 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2742 /* l4_per1 -> mcspi3 */
2743 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3
= {
2744 .master
= &dra7xx_l4_per1_hwmod
,
2745 .slave
= &dra7xx_mcspi3_hwmod
,
2746 .clk
= "l3_iclk_div",
2747 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2750 /* l4_per1 -> mcspi4 */
2751 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4
= {
2752 .master
= &dra7xx_l4_per1_hwmod
,
2753 .slave
= &dra7xx_mcspi4_hwmod
,
2754 .clk
= "l3_iclk_div",
2755 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2758 /* l4_per1 -> mmc1 */
2759 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1
= {
2760 .master
= &dra7xx_l4_per1_hwmod
,
2761 .slave
= &dra7xx_mmc1_hwmod
,
2762 .clk
= "l3_iclk_div",
2763 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2766 /* l4_per1 -> mmc2 */
2767 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2
= {
2768 .master
= &dra7xx_l4_per1_hwmod
,
2769 .slave
= &dra7xx_mmc2_hwmod
,
2770 .clk
= "l3_iclk_div",
2771 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2774 /* l4_per1 -> mmc3 */
2775 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3
= {
2776 .master
= &dra7xx_l4_per1_hwmod
,
2777 .slave
= &dra7xx_mmc3_hwmod
,
2778 .clk
= "l3_iclk_div",
2779 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2782 /* l4_per1 -> mmc4 */
2783 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4
= {
2784 .master
= &dra7xx_l4_per1_hwmod
,
2785 .slave
= &dra7xx_mmc4_hwmod
,
2786 .clk
= "l3_iclk_div",
2787 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2791 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu
= {
2792 .master
= &dra7xx_l4_cfg_hwmod
,
2793 .slave
= &dra7xx_mpu_hwmod
,
2794 .clk
= "l3_iclk_div",
2795 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2798 /* l4_cfg -> ocp2scp1 */
2799 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1
= {
2800 .master
= &dra7xx_l4_cfg_hwmod
,
2801 .slave
= &dra7xx_ocp2scp1_hwmod
,
2802 .clk
= "l4_root_clk_div",
2803 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2806 /* l4_cfg -> ocp2scp3 */
2807 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3
= {
2808 .master
= &dra7xx_l4_cfg_hwmod
,
2809 .slave
= &dra7xx_ocp2scp3_hwmod
,
2810 .clk
= "l4_root_clk_div",
2811 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2814 /* l3_main_1 -> pcie1 */
2815 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pcie1
= {
2816 .master
= &dra7xx_l3_main_1_hwmod
,
2817 .slave
= &dra7xx_pcie1_hwmod
,
2818 .clk
= "l3_iclk_div",
2819 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2822 /* l4_cfg -> pcie1 */
2823 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1
= {
2824 .master
= &dra7xx_l4_cfg_hwmod
,
2825 .slave
= &dra7xx_pcie1_hwmod
,
2826 .clk
= "l4_root_clk_div",
2827 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2830 /* l3_main_1 -> pcie2 */
2831 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pcie2
= {
2832 .master
= &dra7xx_l3_main_1_hwmod
,
2833 .slave
= &dra7xx_pcie2_hwmod
,
2834 .clk
= "l3_iclk_div",
2835 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2838 /* l4_cfg -> pcie2 */
2839 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie2
= {
2840 .master
= &dra7xx_l4_cfg_hwmod
,
2841 .slave
= &dra7xx_pcie2_hwmod
,
2842 .clk
= "l4_root_clk_div",
2843 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2846 /* l4_cfg -> pcie1 phy */
2847 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1_phy
= {
2848 .master
= &dra7xx_l4_cfg_hwmod
,
2849 .slave
= &dra7xx_pcie1_phy_hwmod
,
2850 .clk
= "l4_root_clk_div",
2851 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2854 /* l4_cfg -> pcie2 phy */
2855 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie2_phy
= {
2856 .master
= &dra7xx_l4_cfg_hwmod
,
2857 .slave
= &dra7xx_pcie2_phy_hwmod
,
2858 .clk
= "l4_root_clk_div",
2859 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2862 static struct omap_hwmod_addr_space dra7xx_qspi_addrs
[] = {
2864 .pa_start
= 0x4b300000,
2865 .pa_end
= 0x4b30007f,
2866 .flags
= ADDR_TYPE_RT
2871 /* l3_main_1 -> qspi */
2872 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi
= {
2873 .master
= &dra7xx_l3_main_1_hwmod
,
2874 .slave
= &dra7xx_qspi_hwmod
,
2875 .clk
= "l3_iclk_div",
2876 .addr
= dra7xx_qspi_addrs
,
2877 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2880 /* l4_per3 -> rtcss */
2881 static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss
= {
2882 .master
= &dra7xx_l4_per3_hwmod
,
2883 .slave
= &dra7xx_rtcss_hwmod
,
2884 .clk
= "l4_root_clk_div",
2885 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2888 static struct omap_hwmod_addr_space dra7xx_sata_addrs
[] = {
2891 .pa_start
= 0x4a141100,
2892 .pa_end
= 0x4a141107,
2893 .flags
= ADDR_TYPE_RT
2898 /* l4_cfg -> sata */
2899 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata
= {
2900 .master
= &dra7xx_l4_cfg_hwmod
,
2901 .slave
= &dra7xx_sata_hwmod
,
2902 .clk
= "l3_iclk_div",
2903 .addr
= dra7xx_sata_addrs
,
2904 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2907 static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs
[] = {
2909 .pa_start
= 0x4a0dd000,
2910 .pa_end
= 0x4a0dd07f,
2911 .flags
= ADDR_TYPE_RT
2916 /* l4_cfg -> smartreflex_core */
2917 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core
= {
2918 .master
= &dra7xx_l4_cfg_hwmod
,
2919 .slave
= &dra7xx_smartreflex_core_hwmod
,
2920 .clk
= "l4_root_clk_div",
2921 .addr
= dra7xx_smartreflex_core_addrs
,
2922 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2925 static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs
[] = {
2927 .pa_start
= 0x4a0d9000,
2928 .pa_end
= 0x4a0d907f,
2929 .flags
= ADDR_TYPE_RT
2934 /* l4_cfg -> smartreflex_mpu */
2935 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu
= {
2936 .master
= &dra7xx_l4_cfg_hwmod
,
2937 .slave
= &dra7xx_smartreflex_mpu_hwmod
,
2938 .clk
= "l4_root_clk_div",
2939 .addr
= dra7xx_smartreflex_mpu_addrs
,
2940 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2943 static struct omap_hwmod_addr_space dra7xx_spinlock_addrs
[] = {
2945 .pa_start
= 0x4a0f6000,
2946 .pa_end
= 0x4a0f6fff,
2947 .flags
= ADDR_TYPE_RT
2952 /* l4_cfg -> spinlock */
2953 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock
= {
2954 .master
= &dra7xx_l4_cfg_hwmod
,
2955 .slave
= &dra7xx_spinlock_hwmod
,
2956 .clk
= "l3_iclk_div",
2957 .addr
= dra7xx_spinlock_addrs
,
2958 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2961 /* l4_wkup -> timer1 */
2962 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1
= {
2963 .master
= &dra7xx_l4_wkup_hwmod
,
2964 .slave
= &dra7xx_timer1_hwmod
,
2965 .clk
= "wkupaon_iclk_mux",
2966 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2969 /* l4_per1 -> timer2 */
2970 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2
= {
2971 .master
= &dra7xx_l4_per1_hwmod
,
2972 .slave
= &dra7xx_timer2_hwmod
,
2973 .clk
= "l3_iclk_div",
2974 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2977 /* l4_per1 -> timer3 */
2978 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3
= {
2979 .master
= &dra7xx_l4_per1_hwmod
,
2980 .slave
= &dra7xx_timer3_hwmod
,
2981 .clk
= "l3_iclk_div",
2982 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2985 /* l4_per1 -> timer4 */
2986 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4
= {
2987 .master
= &dra7xx_l4_per1_hwmod
,
2988 .slave
= &dra7xx_timer4_hwmod
,
2989 .clk
= "l3_iclk_div",
2990 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2993 /* l4_per3 -> timer5 */
2994 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5
= {
2995 .master
= &dra7xx_l4_per3_hwmod
,
2996 .slave
= &dra7xx_timer5_hwmod
,
2997 .clk
= "l3_iclk_div",
2998 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3001 /* l4_per3 -> timer6 */
3002 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6
= {
3003 .master
= &dra7xx_l4_per3_hwmod
,
3004 .slave
= &dra7xx_timer6_hwmod
,
3005 .clk
= "l3_iclk_div",
3006 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3009 /* l4_per3 -> timer7 */
3010 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7
= {
3011 .master
= &dra7xx_l4_per3_hwmod
,
3012 .slave
= &dra7xx_timer7_hwmod
,
3013 .clk
= "l3_iclk_div",
3014 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3017 /* l4_per3 -> timer8 */
3018 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8
= {
3019 .master
= &dra7xx_l4_per3_hwmod
,
3020 .slave
= &dra7xx_timer8_hwmod
,
3021 .clk
= "l3_iclk_div",
3022 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3025 /* l4_per1 -> timer9 */
3026 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9
= {
3027 .master
= &dra7xx_l4_per1_hwmod
,
3028 .slave
= &dra7xx_timer9_hwmod
,
3029 .clk
= "l3_iclk_div",
3030 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3033 /* l4_per1 -> timer10 */
3034 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10
= {
3035 .master
= &dra7xx_l4_per1_hwmod
,
3036 .slave
= &dra7xx_timer10_hwmod
,
3037 .clk
= "l3_iclk_div",
3038 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3041 /* l4_per1 -> timer11 */
3042 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11
= {
3043 .master
= &dra7xx_l4_per1_hwmod
,
3044 .slave
= &dra7xx_timer11_hwmod
,
3045 .clk
= "l3_iclk_div",
3046 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3049 /* l4_per1 -> uart1 */
3050 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1
= {
3051 .master
= &dra7xx_l4_per1_hwmod
,
3052 .slave
= &dra7xx_uart1_hwmod
,
3053 .clk
= "l3_iclk_div",
3054 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3057 /* l4_per1 -> uart2 */
3058 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2
= {
3059 .master
= &dra7xx_l4_per1_hwmod
,
3060 .slave
= &dra7xx_uart2_hwmod
,
3061 .clk
= "l3_iclk_div",
3062 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3065 /* l4_per1 -> uart3 */
3066 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3
= {
3067 .master
= &dra7xx_l4_per1_hwmod
,
3068 .slave
= &dra7xx_uart3_hwmod
,
3069 .clk
= "l3_iclk_div",
3070 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3073 /* l4_per1 -> uart4 */
3074 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4
= {
3075 .master
= &dra7xx_l4_per1_hwmod
,
3076 .slave
= &dra7xx_uart4_hwmod
,
3077 .clk
= "l3_iclk_div",
3078 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3081 /* l4_per1 -> uart5 */
3082 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5
= {
3083 .master
= &dra7xx_l4_per1_hwmod
,
3084 .slave
= &dra7xx_uart5_hwmod
,
3085 .clk
= "l3_iclk_div",
3086 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3089 /* l4_per1 -> uart6 */
3090 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6
= {
3091 .master
= &dra7xx_l4_per1_hwmod
,
3092 .slave
= &dra7xx_uart6_hwmod
,
3093 .clk
= "l3_iclk_div",
3094 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3097 /* l4_per3 -> usb_otg_ss1 */
3098 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1
= {
3099 .master
= &dra7xx_l4_per3_hwmod
,
3100 .slave
= &dra7xx_usb_otg_ss1_hwmod
,
3101 .clk
= "dpll_core_h13x2_ck",
3102 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3105 /* l4_per3 -> usb_otg_ss2 */
3106 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2
= {
3107 .master
= &dra7xx_l4_per3_hwmod
,
3108 .slave
= &dra7xx_usb_otg_ss2_hwmod
,
3109 .clk
= "dpll_core_h13x2_ck",
3110 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3113 /* l4_per3 -> usb_otg_ss3 */
3114 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3
= {
3115 .master
= &dra7xx_l4_per3_hwmod
,
3116 .slave
= &dra7xx_usb_otg_ss3_hwmod
,
3117 .clk
= "dpll_core_h13x2_ck",
3118 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3121 /* l4_per3 -> usb_otg_ss4 */
3122 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4
= {
3123 .master
= &dra7xx_l4_per3_hwmod
,
3124 .slave
= &dra7xx_usb_otg_ss4_hwmod
,
3125 .clk
= "dpll_core_h13x2_ck",
3126 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3129 /* l3_main_1 -> vcp1 */
3130 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1
= {
3131 .master
= &dra7xx_l3_main_1_hwmod
,
3132 .slave
= &dra7xx_vcp1_hwmod
,
3133 .clk
= "l3_iclk_div",
3134 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3137 /* l4_per2 -> vcp1 */
3138 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1
= {
3139 .master
= &dra7xx_l4_per2_hwmod
,
3140 .slave
= &dra7xx_vcp1_hwmod
,
3141 .clk
= "l3_iclk_div",
3142 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3145 /* l3_main_1 -> vcp2 */
3146 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2
= {
3147 .master
= &dra7xx_l3_main_1_hwmod
,
3148 .slave
= &dra7xx_vcp2_hwmod
,
3149 .clk
= "l3_iclk_div",
3150 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3153 /* l4_per2 -> vcp2 */
3154 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2
= {
3155 .master
= &dra7xx_l4_per2_hwmod
,
3156 .slave
= &dra7xx_vcp2_hwmod
,
3157 .clk
= "l3_iclk_div",
3158 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3161 /* l4_wkup -> wd_timer2 */
3162 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2
= {
3163 .master
= &dra7xx_l4_wkup_hwmod
,
3164 .slave
= &dra7xx_wd_timer2_hwmod
,
3165 .clk
= "wkupaon_iclk_mux",
3166 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3169 static struct omap_hwmod_ocp_if
*dra7xx_hwmod_ocp_ifs
[] __initdata
= {
3170 &dra7xx_l3_main_2__l3_instr
,
3171 &dra7xx_l4_cfg__l3_main_1
,
3172 &dra7xx_mpu__l3_main_1
,
3173 &dra7xx_l3_main_1__l3_main_2
,
3174 &dra7xx_l4_cfg__l3_main_2
,
3175 &dra7xx_l3_main_1__l4_cfg
,
3176 &dra7xx_l3_main_1__l4_per1
,
3177 &dra7xx_l3_main_1__l4_per2
,
3178 &dra7xx_l3_main_1__l4_per3
,
3179 &dra7xx_l3_main_1__l4_wkup
,
3180 &dra7xx_l4_per2__atl
,
3181 &dra7xx_l3_main_1__bb2d
,
3182 &dra7xx_l4_wkup__counter_32k
,
3183 &dra7xx_l4_wkup__ctrl_module_wkup
,
3184 &dra7xx_l4_wkup__dcan1
,
3185 &dra7xx_l4_per2__dcan2
,
3186 &dra7xx_l4_per2__cpgmac0
,
3188 &dra7xx_l4_cfg__dma_system
,
3189 &dra7xx_l3_main_1__dss
,
3190 &dra7xx_l3_main_1__dispc
,
3191 &dra7xx_l3_main_1__hdmi
,
3192 &dra7xx_l4_per1__elm
,
3193 &dra7xx_l4_wkup__gpio1
,
3194 &dra7xx_l4_per1__gpio2
,
3195 &dra7xx_l4_per1__gpio3
,
3196 &dra7xx_l4_per1__gpio4
,
3197 &dra7xx_l4_per1__gpio5
,
3198 &dra7xx_l4_per1__gpio6
,
3199 &dra7xx_l4_per1__gpio7
,
3200 &dra7xx_l4_per1__gpio8
,
3201 &dra7xx_l3_main_1__gpmc
,
3202 &dra7xx_l4_per1__hdq1w
,
3203 &dra7xx_l4_per1__i2c1
,
3204 &dra7xx_l4_per1__i2c2
,
3205 &dra7xx_l4_per1__i2c3
,
3206 &dra7xx_l4_per1__i2c4
,
3207 &dra7xx_l4_per1__i2c5
,
3208 &dra7xx_l4_cfg__mailbox1
,
3209 &dra7xx_l4_per3__mailbox2
,
3210 &dra7xx_l4_per3__mailbox3
,
3211 &dra7xx_l4_per3__mailbox4
,
3212 &dra7xx_l4_per3__mailbox5
,
3213 &dra7xx_l4_per3__mailbox6
,
3214 &dra7xx_l4_per3__mailbox7
,
3215 &dra7xx_l4_per3__mailbox8
,
3216 &dra7xx_l4_per3__mailbox9
,
3217 &dra7xx_l4_per3__mailbox10
,
3218 &dra7xx_l4_per3__mailbox11
,
3219 &dra7xx_l4_per3__mailbox12
,
3220 &dra7xx_l4_per3__mailbox13
,
3221 &dra7xx_l4_per1__mcspi1
,
3222 &dra7xx_l4_per1__mcspi2
,
3223 &dra7xx_l4_per1__mcspi3
,
3224 &dra7xx_l4_per1__mcspi4
,
3225 &dra7xx_l4_per1__mmc1
,
3226 &dra7xx_l4_per1__mmc2
,
3227 &dra7xx_l4_per1__mmc3
,
3228 &dra7xx_l4_per1__mmc4
,
3229 &dra7xx_l4_cfg__mpu
,
3230 &dra7xx_l4_cfg__ocp2scp1
,
3231 &dra7xx_l4_cfg__ocp2scp3
,
3232 &dra7xx_l3_main_1__pcie1
,
3233 &dra7xx_l4_cfg__pcie1
,
3234 &dra7xx_l3_main_1__pcie2
,
3235 &dra7xx_l4_cfg__pcie2
,
3236 &dra7xx_l4_cfg__pcie1_phy
,
3237 &dra7xx_l4_cfg__pcie2_phy
,
3238 &dra7xx_l3_main_1__qspi
,
3239 &dra7xx_l4_per3__rtcss
,
3240 &dra7xx_l4_cfg__sata
,
3241 &dra7xx_l4_cfg__smartreflex_core
,
3242 &dra7xx_l4_cfg__smartreflex_mpu
,
3243 &dra7xx_l4_cfg__spinlock
,
3244 &dra7xx_l4_wkup__timer1
,
3245 &dra7xx_l4_per1__timer2
,
3246 &dra7xx_l4_per1__timer3
,
3247 &dra7xx_l4_per1__timer4
,
3248 &dra7xx_l4_per3__timer5
,
3249 &dra7xx_l4_per3__timer6
,
3250 &dra7xx_l4_per3__timer7
,
3251 &dra7xx_l4_per3__timer8
,
3252 &dra7xx_l4_per1__timer9
,
3253 &dra7xx_l4_per1__timer10
,
3254 &dra7xx_l4_per1__timer11
,
3255 &dra7xx_l4_per1__uart1
,
3256 &dra7xx_l4_per1__uart2
,
3257 &dra7xx_l4_per1__uart3
,
3258 &dra7xx_l4_per1__uart4
,
3259 &dra7xx_l4_per1__uart5
,
3260 &dra7xx_l4_per1__uart6
,
3261 &dra7xx_l4_per3__usb_otg_ss1
,
3262 &dra7xx_l4_per3__usb_otg_ss2
,
3263 &dra7xx_l4_per3__usb_otg_ss3
,
3264 &dra7xx_l4_per3__usb_otg_ss4
,
3265 &dra7xx_l3_main_1__vcp1
,
3266 &dra7xx_l4_per2__vcp1
,
3267 &dra7xx_l3_main_1__vcp2
,
3268 &dra7xx_l4_per2__vcp2
,
3269 &dra7xx_l4_wkup__wd_timer2
,
3273 int __init
dra7xx_hwmod_init(void)
3276 return omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs
);