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
53 * instance(s): l3_instr, l3_main_1, l3_main_2
55 static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
60 static struct omap_hwmod dra7xx_l3_instr_hwmod = {
62 .class = &dra7xx_l3_hwmod_class,
63 .clkdm_name = "l3instr_clkdm",
66 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
67 .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
68 .modulemode = MODULEMODE_HWCTRL,
74 static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
76 .class = &dra7xx_l3_hwmod_class,
77 .clkdm_name = "l3main1_clkdm",
80 .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
81 .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
87 static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
89 .class = &dra7xx_l3_hwmod_class,
90 .clkdm_name = "l3instr_clkdm",
93 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
94 .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
95 .modulemode = MODULEMODE_HWCTRL,
102 * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
104 static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
109 static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
111 .class = &dra7xx_l4_hwmod_class,
112 .clkdm_name = "l4cfg_clkdm",
115 .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
116 .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
122 static struct omap_hwmod dra7xx_l4_per1_hwmod = {
124 .class = &dra7xx_l4_hwmod_class,
125 .clkdm_name = "l4per_clkdm",
128 .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
129 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
135 static struct omap_hwmod dra7xx_l4_per2_hwmod = {
137 .class = &dra7xx_l4_hwmod_class,
138 .clkdm_name = "l4per2_clkdm",
141 .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
142 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
148 static struct omap_hwmod dra7xx_l4_per3_hwmod = {
150 .class = &dra7xx_l4_hwmod_class,
151 .clkdm_name = "l4per3_clkdm",
154 .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
155 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
161 static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
163 .class = &dra7xx_l4_hwmod_class,
164 .clkdm_name = "wkupaon_clkdm",
167 .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
168 .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
178 static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
183 static struct omap_hwmod dra7xx_atl_hwmod = {
185 .class = &dra7xx_atl_hwmod_class,
186 .clkdm_name = "atl_clkdm",
187 .main_clk = "atl_gfclk_mux",
190 .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
191 .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
192 .modulemode = MODULEMODE_SWCTRL,
202 static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
207 static struct omap_hwmod dra7xx_bb2d_hwmod = {
209 .class = &dra7xx_bb2d_hwmod_class,
210 .clkdm_name = "dss_clkdm",
211 .main_clk = "dpll_core_h24x2_ck",
214 .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
215 .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
216 .modulemode = MODULEMODE_SWCTRL,
226 static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
229 .sysc_flags = SYSC_HAS_SIDLEMODE,
230 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
232 .sysc_fields = &omap_hwmod_sysc_type1,
235 static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
237 .sysc = &dra7xx_counter_sysc,
241 static struct omap_hwmod dra7xx_counter_32k_hwmod = {
242 .name = "counter_32k",
243 .class = &dra7xx_counter_hwmod_class,
244 .clkdm_name = "wkupaon_clkdm",
245 .flags = HWMOD_SWSUP_SIDLE,
246 .main_clk = "wkupaon_iclk_mux",
249 .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
250 .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
256 * 'ctrl_module' class
260 static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
261 .name = "ctrl_module",
264 /* ctrl_module_wkup */
265 static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
266 .name = "ctrl_module_wkup",
267 .class = &dra7xx_ctrl_module_hwmod_class,
268 .clkdm_name = "wkupaon_clkdm",
271 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
278 * cpsw/gmac sub system
280 static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = {
284 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
285 SYSS_HAS_RESET_STATUS),
286 .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
288 .sysc_fields = &omap_hwmod_sysc_type3,
291 static struct omap_hwmod_class dra7xx_gmac_hwmod_class = {
293 .sysc = &dra7xx_gmac_sysc,
296 static struct omap_hwmod dra7xx_gmac_hwmod = {
298 .class = &dra7xx_gmac_hwmod_class,
299 .clkdm_name = "gmac_clkdm",
300 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
301 .main_clk = "dpll_gmac_ck",
305 .clkctrl_offs = DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET,
306 .context_offs = DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET,
307 .modulemode = MODULEMODE_SWCTRL,
315 static struct omap_hwmod_class dra7xx_mdio_hwmod_class = {
316 .name = "davinci_mdio",
319 static struct omap_hwmod dra7xx_mdio_hwmod = {
320 .name = "davinci_mdio",
321 .class = &dra7xx_mdio_hwmod_class,
322 .clkdm_name = "gmac_clkdm",
323 .main_clk = "dpll_gmac_ck",
331 static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
336 static struct omap_hwmod dra7xx_dcan1_hwmod = {
338 .class = &dra7xx_dcan_hwmod_class,
339 .clkdm_name = "wkupaon_clkdm",
340 .main_clk = "dcan1_sys_clk_mux",
343 .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
344 .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
345 .modulemode = MODULEMODE_SWCTRL,
351 static struct omap_hwmod dra7xx_dcan2_hwmod = {
353 .class = &dra7xx_dcan_hwmod_class,
354 .clkdm_name = "l4per2_clkdm",
355 .main_clk = "sys_clkin1",
358 .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
359 .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
360 .modulemode = MODULEMODE_SWCTRL,
370 static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
374 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
375 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
376 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
377 SYSS_HAS_RESET_STATUS),
378 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
379 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
380 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
381 .sysc_fields = &omap_hwmod_sysc_type1,
384 static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
386 .sysc = &dra7xx_dma_sysc,
390 static struct omap_dma_dev_attr dma_dev_attr = {
391 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
392 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
397 static struct omap_hwmod dra7xx_dma_system_hwmod = {
398 .name = "dma_system",
399 .class = &dra7xx_dma_hwmod_class,
400 .clkdm_name = "dma_clkdm",
401 .main_clk = "l3_iclk_div",
404 .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
405 .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
408 .dev_attr = &dma_dev_attr,
416 static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
419 .sysc_flags = SYSS_HAS_RESET_STATUS,
422 static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
424 .sysc = &dra7xx_dss_sysc,
425 .reset = omap_dss_reset,
429 static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
430 { .dma_req = 75 + DRA7XX_DMA_REQ_START },
434 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
435 { .role = "dss_clk", .clk = "dss_dss_clk" },
436 { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
437 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
438 { .role = "video2_clk", .clk = "dss_video2_clk" },
439 { .role = "video1_clk", .clk = "dss_video1_clk" },
440 { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
443 static struct omap_hwmod dra7xx_dss_hwmod = {
445 .class = &dra7xx_dss_hwmod_class,
446 .clkdm_name = "dss_clkdm",
447 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
448 .sdma_reqs = dra7xx_dss_sdma_reqs,
449 .main_clk = "dss_dss_clk",
452 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
453 .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
454 .modulemode = MODULEMODE_SWCTRL,
457 .opt_clks = dss_opt_clks,
458 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
466 static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
470 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
471 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
472 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
473 SYSS_HAS_RESET_STATUS),
474 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
475 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
476 .sysc_fields = &omap_hwmod_sysc_type1,
479 static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
481 .sysc = &dra7xx_dispc_sysc,
485 /* dss_dispc dev_attr */
486 static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
487 .has_framedonetv_irq = 1,
491 static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
493 .class = &dra7xx_dispc_hwmod_class,
494 .clkdm_name = "dss_clkdm",
495 .main_clk = "dss_dss_clk",
498 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
499 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
502 .dev_attr = &dss_dispc_dev_attr,
510 static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
513 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
515 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
517 .sysc_fields = &omap_hwmod_sysc_type2,
520 static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
522 .sysc = &dra7xx_hdmi_sysc,
527 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
528 { .role = "sys_clk", .clk = "dss_hdmi_clk" },
531 static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
533 .class = &dra7xx_hdmi_hwmod_class,
534 .clkdm_name = "dss_clkdm",
535 .main_clk = "dss_48mhz_clk",
538 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
539 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
542 .opt_clks = dss_hdmi_opt_clks,
543 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
551 static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
555 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
556 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
557 SYSS_HAS_RESET_STATUS),
558 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
560 .sysc_fields = &omap_hwmod_sysc_type1,
563 static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
565 .sysc = &dra7xx_elm_sysc,
570 static struct omap_hwmod dra7xx_elm_hwmod = {
572 .class = &dra7xx_elm_hwmod_class,
573 .clkdm_name = "l4per_clkdm",
574 .main_clk = "l3_iclk_div",
577 .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
578 .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
588 static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
592 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
593 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
594 SYSS_HAS_RESET_STATUS),
595 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
597 .sysc_fields = &omap_hwmod_sysc_type1,
600 static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
602 .sysc = &dra7xx_gpio_sysc,
607 static struct omap_gpio_dev_attr gpio_dev_attr = {
613 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
614 { .role = "dbclk", .clk = "gpio1_dbclk" },
617 static struct omap_hwmod dra7xx_gpio1_hwmod = {
619 .class = &dra7xx_gpio_hwmod_class,
620 .clkdm_name = "wkupaon_clkdm",
621 .main_clk = "wkupaon_iclk_mux",
624 .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
625 .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
626 .modulemode = MODULEMODE_HWCTRL,
629 .opt_clks = gpio1_opt_clks,
630 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
631 .dev_attr = &gpio_dev_attr,
635 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
636 { .role = "dbclk", .clk = "gpio2_dbclk" },
639 static struct omap_hwmod dra7xx_gpio2_hwmod = {
641 .class = &dra7xx_gpio_hwmod_class,
642 .clkdm_name = "l4per_clkdm",
643 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
644 .main_clk = "l3_iclk_div",
647 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
648 .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
649 .modulemode = MODULEMODE_HWCTRL,
652 .opt_clks = gpio2_opt_clks,
653 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
654 .dev_attr = &gpio_dev_attr,
658 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
659 { .role = "dbclk", .clk = "gpio3_dbclk" },
662 static struct omap_hwmod dra7xx_gpio3_hwmod = {
664 .class = &dra7xx_gpio_hwmod_class,
665 .clkdm_name = "l4per_clkdm",
666 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
667 .main_clk = "l3_iclk_div",
670 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
671 .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
672 .modulemode = MODULEMODE_HWCTRL,
675 .opt_clks = gpio3_opt_clks,
676 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
677 .dev_attr = &gpio_dev_attr,
681 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
682 { .role = "dbclk", .clk = "gpio4_dbclk" },
685 static struct omap_hwmod dra7xx_gpio4_hwmod = {
687 .class = &dra7xx_gpio_hwmod_class,
688 .clkdm_name = "l4per_clkdm",
689 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
690 .main_clk = "l3_iclk_div",
693 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
694 .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
695 .modulemode = MODULEMODE_HWCTRL,
698 .opt_clks = gpio4_opt_clks,
699 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
700 .dev_attr = &gpio_dev_attr,
704 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
705 { .role = "dbclk", .clk = "gpio5_dbclk" },
708 static struct omap_hwmod dra7xx_gpio5_hwmod = {
710 .class = &dra7xx_gpio_hwmod_class,
711 .clkdm_name = "l4per_clkdm",
712 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
713 .main_clk = "l3_iclk_div",
716 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
717 .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
718 .modulemode = MODULEMODE_HWCTRL,
721 .opt_clks = gpio5_opt_clks,
722 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
723 .dev_attr = &gpio_dev_attr,
727 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
728 { .role = "dbclk", .clk = "gpio6_dbclk" },
731 static struct omap_hwmod dra7xx_gpio6_hwmod = {
733 .class = &dra7xx_gpio_hwmod_class,
734 .clkdm_name = "l4per_clkdm",
735 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
736 .main_clk = "l3_iclk_div",
739 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
740 .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
741 .modulemode = MODULEMODE_HWCTRL,
744 .opt_clks = gpio6_opt_clks,
745 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
746 .dev_attr = &gpio_dev_attr,
750 static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
751 { .role = "dbclk", .clk = "gpio7_dbclk" },
754 static struct omap_hwmod dra7xx_gpio7_hwmod = {
756 .class = &dra7xx_gpio_hwmod_class,
757 .clkdm_name = "l4per_clkdm",
758 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
759 .main_clk = "l3_iclk_div",
762 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
763 .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
764 .modulemode = MODULEMODE_HWCTRL,
767 .opt_clks = gpio7_opt_clks,
768 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
769 .dev_attr = &gpio_dev_attr,
773 static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
774 { .role = "dbclk", .clk = "gpio8_dbclk" },
777 static struct omap_hwmod dra7xx_gpio8_hwmod = {
779 .class = &dra7xx_gpio_hwmod_class,
780 .clkdm_name = "l4per_clkdm",
781 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
782 .main_clk = "l3_iclk_div",
785 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
786 .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
787 .modulemode = MODULEMODE_HWCTRL,
790 .opt_clks = gpio8_opt_clks,
791 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
792 .dev_attr = &gpio_dev_attr,
800 static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
804 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
805 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
806 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
808 .sysc_fields = &omap_hwmod_sysc_type1,
811 static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
813 .sysc = &dra7xx_gpmc_sysc,
818 static struct omap_hwmod dra7xx_gpmc_hwmod = {
820 .class = &dra7xx_gpmc_hwmod_class,
821 .clkdm_name = "l3main1_clkdm",
822 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET |
824 .main_clk = "l3_iclk_div",
827 .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
828 .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
829 .modulemode = MODULEMODE_HWCTRL,
839 static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
843 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
844 SYSS_HAS_RESET_STATUS),
845 .sysc_fields = &omap_hwmod_sysc_type1,
848 static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
850 .sysc = &dra7xx_hdq1w_sysc,
855 static struct omap_hwmod dra7xx_hdq1w_hwmod = {
857 .class = &dra7xx_hdq1w_hwmod_class,
858 .clkdm_name = "l4per_clkdm",
859 .flags = HWMOD_INIT_NO_RESET,
860 .main_clk = "func_12m_fclk",
863 .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
864 .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
865 .modulemode = MODULEMODE_SWCTRL,
875 static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
878 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
879 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
880 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
881 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
883 .clockact = CLOCKACT_TEST_ICLK,
884 .sysc_fields = &omap_hwmod_sysc_type1,
887 static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
889 .sysc = &dra7xx_i2c_sysc,
890 .reset = &omap_i2c_reset,
891 .rev = OMAP_I2C_IP_VERSION_2,
895 static struct omap_i2c_dev_attr i2c_dev_attr = {
896 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
900 static struct omap_hwmod dra7xx_i2c1_hwmod = {
902 .class = &dra7xx_i2c_hwmod_class,
903 .clkdm_name = "l4per_clkdm",
904 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
905 .main_clk = "func_96m_fclk",
908 .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
909 .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
910 .modulemode = MODULEMODE_SWCTRL,
913 .dev_attr = &i2c_dev_attr,
917 static struct omap_hwmod dra7xx_i2c2_hwmod = {
919 .class = &dra7xx_i2c_hwmod_class,
920 .clkdm_name = "l4per_clkdm",
921 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
922 .main_clk = "func_96m_fclk",
925 .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
926 .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
927 .modulemode = MODULEMODE_SWCTRL,
930 .dev_attr = &i2c_dev_attr,
934 static struct omap_hwmod dra7xx_i2c3_hwmod = {
936 .class = &dra7xx_i2c_hwmod_class,
937 .clkdm_name = "l4per_clkdm",
938 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
939 .main_clk = "func_96m_fclk",
942 .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
943 .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
944 .modulemode = MODULEMODE_SWCTRL,
947 .dev_attr = &i2c_dev_attr,
951 static struct omap_hwmod dra7xx_i2c4_hwmod = {
953 .class = &dra7xx_i2c_hwmod_class,
954 .clkdm_name = "l4per_clkdm",
955 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
956 .main_clk = "func_96m_fclk",
959 .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
960 .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
961 .modulemode = MODULEMODE_SWCTRL,
964 .dev_attr = &i2c_dev_attr,
968 static struct omap_hwmod dra7xx_i2c5_hwmod = {
970 .class = &dra7xx_i2c_hwmod_class,
971 .clkdm_name = "ipu_clkdm",
972 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
973 .main_clk = "func_96m_fclk",
976 .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
977 .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
978 .modulemode = MODULEMODE_SWCTRL,
981 .dev_attr = &i2c_dev_attr,
989 static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
992 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
994 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
995 .sysc_fields = &omap_hwmod_sysc_type2,
998 static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
1000 .sysc = &dra7xx_mailbox_sysc,
1004 static struct omap_hwmod dra7xx_mailbox1_hwmod = {
1006 .class = &dra7xx_mailbox_hwmod_class,
1007 .clkdm_name = "l4cfg_clkdm",
1010 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
1011 .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
1017 static struct omap_hwmod dra7xx_mailbox2_hwmod = {
1019 .class = &dra7xx_mailbox_hwmod_class,
1020 .clkdm_name = "l4cfg_clkdm",
1023 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
1024 .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
1030 static struct omap_hwmod dra7xx_mailbox3_hwmod = {
1032 .class = &dra7xx_mailbox_hwmod_class,
1033 .clkdm_name = "l4cfg_clkdm",
1036 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
1037 .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
1043 static struct omap_hwmod dra7xx_mailbox4_hwmod = {
1045 .class = &dra7xx_mailbox_hwmod_class,
1046 .clkdm_name = "l4cfg_clkdm",
1049 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
1050 .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
1056 static struct omap_hwmod dra7xx_mailbox5_hwmod = {
1058 .class = &dra7xx_mailbox_hwmod_class,
1059 .clkdm_name = "l4cfg_clkdm",
1062 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
1063 .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
1069 static struct omap_hwmod dra7xx_mailbox6_hwmod = {
1071 .class = &dra7xx_mailbox_hwmod_class,
1072 .clkdm_name = "l4cfg_clkdm",
1075 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
1076 .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
1082 static struct omap_hwmod dra7xx_mailbox7_hwmod = {
1084 .class = &dra7xx_mailbox_hwmod_class,
1085 .clkdm_name = "l4cfg_clkdm",
1088 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
1089 .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
1095 static struct omap_hwmod dra7xx_mailbox8_hwmod = {
1097 .class = &dra7xx_mailbox_hwmod_class,
1098 .clkdm_name = "l4cfg_clkdm",
1101 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
1102 .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
1108 static struct omap_hwmod dra7xx_mailbox9_hwmod = {
1110 .class = &dra7xx_mailbox_hwmod_class,
1111 .clkdm_name = "l4cfg_clkdm",
1114 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
1115 .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
1121 static struct omap_hwmod dra7xx_mailbox10_hwmod = {
1122 .name = "mailbox10",
1123 .class = &dra7xx_mailbox_hwmod_class,
1124 .clkdm_name = "l4cfg_clkdm",
1127 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
1128 .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
1134 static struct omap_hwmod dra7xx_mailbox11_hwmod = {
1135 .name = "mailbox11",
1136 .class = &dra7xx_mailbox_hwmod_class,
1137 .clkdm_name = "l4cfg_clkdm",
1140 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
1141 .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
1147 static struct omap_hwmod dra7xx_mailbox12_hwmod = {
1148 .name = "mailbox12",
1149 .class = &dra7xx_mailbox_hwmod_class,
1150 .clkdm_name = "l4cfg_clkdm",
1153 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
1154 .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
1160 static struct omap_hwmod dra7xx_mailbox13_hwmod = {
1161 .name = "mailbox13",
1162 .class = &dra7xx_mailbox_hwmod_class,
1163 .clkdm_name = "l4cfg_clkdm",
1166 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
1167 .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
1177 static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
1179 .sysc_offs = 0x0010,
1180 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1181 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1182 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1184 .sysc_fields = &omap_hwmod_sysc_type2,
1187 static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
1189 .sysc = &dra7xx_mcspi_sysc,
1190 .rev = OMAP4_MCSPI_REV,
1194 /* mcspi1 dev_attr */
1195 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1196 .num_chipselect = 4,
1199 static struct omap_hwmod dra7xx_mcspi1_hwmod = {
1201 .class = &dra7xx_mcspi_hwmod_class,
1202 .clkdm_name = "l4per_clkdm",
1203 .main_clk = "func_48m_fclk",
1206 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1207 .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1208 .modulemode = MODULEMODE_SWCTRL,
1211 .dev_attr = &mcspi1_dev_attr,
1215 /* mcspi2 dev_attr */
1216 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1217 .num_chipselect = 2,
1220 static struct omap_hwmod dra7xx_mcspi2_hwmod = {
1222 .class = &dra7xx_mcspi_hwmod_class,
1223 .clkdm_name = "l4per_clkdm",
1224 .main_clk = "func_48m_fclk",
1227 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1228 .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1229 .modulemode = MODULEMODE_SWCTRL,
1232 .dev_attr = &mcspi2_dev_attr,
1236 /* mcspi3 dev_attr */
1237 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1238 .num_chipselect = 2,
1241 static struct omap_hwmod dra7xx_mcspi3_hwmod = {
1243 .class = &dra7xx_mcspi_hwmod_class,
1244 .clkdm_name = "l4per_clkdm",
1245 .main_clk = "func_48m_fclk",
1248 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1249 .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1250 .modulemode = MODULEMODE_SWCTRL,
1253 .dev_attr = &mcspi3_dev_attr,
1257 /* mcspi4 dev_attr */
1258 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1259 .num_chipselect = 1,
1262 static struct omap_hwmod dra7xx_mcspi4_hwmod = {
1264 .class = &dra7xx_mcspi_hwmod_class,
1265 .clkdm_name = "l4per_clkdm",
1266 .main_clk = "func_48m_fclk",
1269 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1270 .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1271 .modulemode = MODULEMODE_SWCTRL,
1274 .dev_attr = &mcspi4_dev_attr,
1282 static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
1284 .sysc_offs = 0x0010,
1285 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1286 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1287 SYSC_HAS_SOFTRESET),
1288 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1289 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1290 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1291 .sysc_fields = &omap_hwmod_sysc_type2,
1294 static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
1296 .sysc = &dra7xx_mmc_sysc,
1300 static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1301 { .role = "clk32k", .clk = "mmc1_clk32k" },
1305 static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
1306 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1309 static struct omap_hwmod dra7xx_mmc1_hwmod = {
1311 .class = &dra7xx_mmc_hwmod_class,
1312 .clkdm_name = "l3init_clkdm",
1313 .main_clk = "mmc1_fclk_div",
1316 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1317 .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1318 .modulemode = MODULEMODE_SWCTRL,
1321 .opt_clks = mmc1_opt_clks,
1322 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1323 .dev_attr = &mmc1_dev_attr,
1327 static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
1328 { .role = "clk32k", .clk = "mmc2_clk32k" },
1331 static struct omap_hwmod dra7xx_mmc2_hwmod = {
1333 .class = &dra7xx_mmc_hwmod_class,
1334 .clkdm_name = "l3init_clkdm",
1335 .main_clk = "mmc2_fclk_div",
1338 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1339 .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1340 .modulemode = MODULEMODE_SWCTRL,
1343 .opt_clks = mmc2_opt_clks,
1344 .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
1348 static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
1349 { .role = "clk32k", .clk = "mmc3_clk32k" },
1352 static struct omap_hwmod dra7xx_mmc3_hwmod = {
1354 .class = &dra7xx_mmc_hwmod_class,
1355 .clkdm_name = "l4per_clkdm",
1356 .main_clk = "mmc3_gfclk_div",
1359 .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1360 .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1361 .modulemode = MODULEMODE_SWCTRL,
1364 .opt_clks = mmc3_opt_clks,
1365 .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
1369 static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
1370 { .role = "clk32k", .clk = "mmc4_clk32k" },
1373 static struct omap_hwmod dra7xx_mmc4_hwmod = {
1375 .class = &dra7xx_mmc_hwmod_class,
1376 .clkdm_name = "l4per_clkdm",
1377 .main_clk = "mmc4_gfclk_div",
1380 .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1381 .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1382 .modulemode = MODULEMODE_SWCTRL,
1385 .opt_clks = mmc4_opt_clks,
1386 .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
1394 static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
1399 static struct omap_hwmod dra7xx_mpu_hwmod = {
1401 .class = &dra7xx_mpu_hwmod_class,
1402 .clkdm_name = "mpu_clkdm",
1403 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1404 .main_clk = "dpll_mpu_m2_ck",
1407 .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1408 .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
1418 static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
1420 .sysc_offs = 0x0010,
1421 .syss_offs = 0x0014,
1422 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1423 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1424 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1426 .sysc_fields = &omap_hwmod_sysc_type1,
1429 static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
1431 .sysc = &dra7xx_ocp2scp_sysc,
1435 static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
1437 .class = &dra7xx_ocp2scp_hwmod_class,
1438 .clkdm_name = "l3init_clkdm",
1439 .main_clk = "l4_root_clk_div",
1442 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1443 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1444 .modulemode = MODULEMODE_HWCTRL,
1450 static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
1452 .class = &dra7xx_ocp2scp_hwmod_class,
1453 .clkdm_name = "l3init_clkdm",
1454 .main_clk = "l4_root_clk_div",
1457 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
1458 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
1459 .modulemode = MODULEMODE_HWCTRL,
1469 static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
1474 static struct omap_hwmod dra7xx_pciess1_hwmod = {
1476 .class = &dra7xx_pciess_hwmod_class,
1477 .clkdm_name = "pcie_clkdm",
1478 .main_clk = "l4_root_clk_div",
1481 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
1482 .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
1483 .modulemode = MODULEMODE_SWCTRL,
1489 static struct omap_hwmod dra7xx_pciess2_hwmod = {
1491 .class = &dra7xx_pciess_hwmod_class,
1492 .clkdm_name = "pcie_clkdm",
1493 .main_clk = "l4_root_clk_div",
1496 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
1497 .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
1498 .modulemode = MODULEMODE_SWCTRL,
1508 static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
1509 .sysc_offs = 0x0010,
1510 .sysc_flags = SYSC_HAS_SIDLEMODE,
1511 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1513 .sysc_fields = &omap_hwmod_sysc_type2,
1516 static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
1518 .sysc = &dra7xx_qspi_sysc,
1522 static struct omap_hwmod dra7xx_qspi_hwmod = {
1524 .class = &dra7xx_qspi_hwmod_class,
1525 .clkdm_name = "l4per2_clkdm",
1526 .main_clk = "qspi_gfclk_div",
1529 .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
1530 .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
1531 .modulemode = MODULEMODE_SWCTRL,
1540 static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
1541 .sysc_offs = 0x0078,
1542 .sysc_flags = SYSC_HAS_SIDLEMODE,
1543 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1545 .sysc_fields = &omap_hwmod_sysc_type3,
1548 static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
1550 .sysc = &dra7xx_rtcss_sysc,
1554 static struct omap_hwmod dra7xx_rtcss_hwmod = {
1556 .class = &dra7xx_rtcss_hwmod_class,
1557 .clkdm_name = "rtc_clkdm",
1558 .main_clk = "sys_32k_ck",
1561 .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
1562 .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
1563 .modulemode = MODULEMODE_SWCTRL,
1573 static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
1574 .sysc_offs = 0x0000,
1575 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1576 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1577 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1578 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1579 .sysc_fields = &omap_hwmod_sysc_type2,
1582 static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
1584 .sysc = &dra7xx_sata_sysc,
1589 static struct omap_hwmod dra7xx_sata_hwmod = {
1591 .class = &dra7xx_sata_hwmod_class,
1592 .clkdm_name = "l3init_clkdm",
1593 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1594 .main_clk = "func_48m_fclk",
1598 .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
1599 .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
1600 .modulemode = MODULEMODE_SWCTRL,
1606 * 'smartreflex' class
1610 /* The IP is not compliant to type1 / type2 scheme */
1611 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1616 static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
1617 .sysc_offs = 0x0038,
1618 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1619 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1621 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
1624 static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
1625 .name = "smartreflex",
1626 .sysc = &dra7xx_smartreflex_sysc,
1630 /* smartreflex_core */
1631 /* smartreflex_core dev_attr */
1632 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
1633 .sensor_voltdm_name = "core",
1636 static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
1637 .name = "smartreflex_core",
1638 .class = &dra7xx_smartreflex_hwmod_class,
1639 .clkdm_name = "coreaon_clkdm",
1640 .main_clk = "wkupaon_iclk_mux",
1643 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
1644 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
1645 .modulemode = MODULEMODE_SWCTRL,
1648 .dev_attr = &smartreflex_core_dev_attr,
1651 /* smartreflex_mpu */
1652 /* smartreflex_mpu dev_attr */
1653 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
1654 .sensor_voltdm_name = "mpu",
1657 static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
1658 .name = "smartreflex_mpu",
1659 .class = &dra7xx_smartreflex_hwmod_class,
1660 .clkdm_name = "coreaon_clkdm",
1661 .main_clk = "wkupaon_iclk_mux",
1664 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
1665 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
1666 .modulemode = MODULEMODE_SWCTRL,
1669 .dev_attr = &smartreflex_mpu_dev_attr,
1677 static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
1679 .sysc_offs = 0x0010,
1680 .syss_offs = 0x0014,
1681 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1682 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1683 SYSS_HAS_RESET_STATUS),
1684 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1685 .sysc_fields = &omap_hwmod_sysc_type1,
1688 static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
1690 .sysc = &dra7xx_spinlock_sysc,
1694 static struct omap_hwmod dra7xx_spinlock_hwmod = {
1696 .class = &dra7xx_spinlock_hwmod_class,
1697 .clkdm_name = "l4cfg_clkdm",
1698 .main_clk = "l3_iclk_div",
1701 .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
1702 .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
1710 * This class contains several variants: ['timer_1ms', 'timer_secure',
1714 static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
1716 .sysc_offs = 0x0010,
1717 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1718 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1719 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1721 .sysc_fields = &omap_hwmod_sysc_type2,
1724 static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
1726 .sysc = &dra7xx_timer_1ms_sysc,
1729 static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
1731 .sysc_offs = 0x0010,
1732 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1733 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1734 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1736 .sysc_fields = &omap_hwmod_sysc_type2,
1739 static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
1741 .sysc = &dra7xx_timer_sysc,
1745 static struct omap_hwmod dra7xx_timer1_hwmod = {
1747 .class = &dra7xx_timer_1ms_hwmod_class,
1748 .clkdm_name = "wkupaon_clkdm",
1749 .main_clk = "timer1_gfclk_mux",
1752 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
1753 .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
1754 .modulemode = MODULEMODE_SWCTRL,
1760 static struct omap_hwmod dra7xx_timer2_hwmod = {
1762 .class = &dra7xx_timer_1ms_hwmod_class,
1763 .clkdm_name = "l4per_clkdm",
1764 .main_clk = "timer2_gfclk_mux",
1767 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
1768 .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
1769 .modulemode = MODULEMODE_SWCTRL,
1775 static struct omap_hwmod dra7xx_timer3_hwmod = {
1777 .class = &dra7xx_timer_hwmod_class,
1778 .clkdm_name = "l4per_clkdm",
1779 .main_clk = "timer3_gfclk_mux",
1782 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
1783 .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
1784 .modulemode = MODULEMODE_SWCTRL,
1790 static struct omap_hwmod dra7xx_timer4_hwmod = {
1792 .class = &dra7xx_timer_hwmod_class,
1793 .clkdm_name = "l4per_clkdm",
1794 .main_clk = "timer4_gfclk_mux",
1797 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
1798 .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
1799 .modulemode = MODULEMODE_SWCTRL,
1805 static struct omap_hwmod dra7xx_timer5_hwmod = {
1807 .class = &dra7xx_timer_hwmod_class,
1808 .clkdm_name = "ipu_clkdm",
1809 .main_clk = "timer5_gfclk_mux",
1812 .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
1813 .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
1814 .modulemode = MODULEMODE_SWCTRL,
1820 static struct omap_hwmod dra7xx_timer6_hwmod = {
1822 .class = &dra7xx_timer_hwmod_class,
1823 .clkdm_name = "ipu_clkdm",
1824 .main_clk = "timer6_gfclk_mux",
1827 .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
1828 .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
1829 .modulemode = MODULEMODE_SWCTRL,
1835 static struct omap_hwmod dra7xx_timer7_hwmod = {
1837 .class = &dra7xx_timer_hwmod_class,
1838 .clkdm_name = "ipu_clkdm",
1839 .main_clk = "timer7_gfclk_mux",
1842 .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
1843 .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
1844 .modulemode = MODULEMODE_SWCTRL,
1850 static struct omap_hwmod dra7xx_timer8_hwmod = {
1852 .class = &dra7xx_timer_hwmod_class,
1853 .clkdm_name = "ipu_clkdm",
1854 .main_clk = "timer8_gfclk_mux",
1857 .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
1858 .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
1859 .modulemode = MODULEMODE_SWCTRL,
1865 static struct omap_hwmod dra7xx_timer9_hwmod = {
1867 .class = &dra7xx_timer_hwmod_class,
1868 .clkdm_name = "l4per_clkdm",
1869 .main_clk = "timer9_gfclk_mux",
1872 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
1873 .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
1874 .modulemode = MODULEMODE_SWCTRL,
1880 static struct omap_hwmod dra7xx_timer10_hwmod = {
1882 .class = &dra7xx_timer_1ms_hwmod_class,
1883 .clkdm_name = "l4per_clkdm",
1884 .main_clk = "timer10_gfclk_mux",
1887 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
1888 .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
1889 .modulemode = MODULEMODE_SWCTRL,
1895 static struct omap_hwmod dra7xx_timer11_hwmod = {
1897 .class = &dra7xx_timer_hwmod_class,
1898 .clkdm_name = "l4per_clkdm",
1899 .main_clk = "timer11_gfclk_mux",
1902 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
1903 .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
1904 .modulemode = MODULEMODE_SWCTRL,
1910 static struct omap_hwmod dra7xx_timer13_hwmod = {
1912 .class = &dra7xx_timer_hwmod_class,
1913 .clkdm_name = "l4per3_clkdm",
1914 .main_clk = "timer13_gfclk_mux",
1917 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
1918 .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
1919 .modulemode = MODULEMODE_SWCTRL,
1925 static struct omap_hwmod dra7xx_timer14_hwmod = {
1927 .class = &dra7xx_timer_hwmod_class,
1928 .clkdm_name = "l4per3_clkdm",
1929 .main_clk = "timer14_gfclk_mux",
1932 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
1933 .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
1934 .modulemode = MODULEMODE_SWCTRL,
1940 static struct omap_hwmod dra7xx_timer15_hwmod = {
1942 .class = &dra7xx_timer_hwmod_class,
1943 .clkdm_name = "l4per3_clkdm",
1944 .main_clk = "timer15_gfclk_mux",
1947 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
1948 .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
1949 .modulemode = MODULEMODE_SWCTRL,
1955 static struct omap_hwmod dra7xx_timer16_hwmod = {
1957 .class = &dra7xx_timer_hwmod_class,
1958 .clkdm_name = "l4per3_clkdm",
1959 .main_clk = "timer16_gfclk_mux",
1962 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
1963 .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
1964 .modulemode = MODULEMODE_SWCTRL,
1974 static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
1976 .sysc_offs = 0x0054,
1977 .syss_offs = 0x0058,
1978 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1979 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1980 SYSS_HAS_RESET_STATUS),
1981 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1983 .sysc_fields = &omap_hwmod_sysc_type1,
1986 static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
1988 .sysc = &dra7xx_uart_sysc,
1992 static struct omap_hwmod dra7xx_uart1_hwmod = {
1994 .class = &dra7xx_uart_hwmod_class,
1995 .clkdm_name = "l4per_clkdm",
1996 .main_clk = "uart1_gfclk_mux",
1997 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
2000 .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
2001 .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
2002 .modulemode = MODULEMODE_SWCTRL,
2008 static struct omap_hwmod dra7xx_uart2_hwmod = {
2010 .class = &dra7xx_uart_hwmod_class,
2011 .clkdm_name = "l4per_clkdm",
2012 .main_clk = "uart2_gfclk_mux",
2013 .flags = HWMOD_SWSUP_SIDLE_ACT,
2016 .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
2017 .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
2018 .modulemode = MODULEMODE_SWCTRL,
2024 static struct omap_hwmod dra7xx_uart3_hwmod = {
2026 .class = &dra7xx_uart_hwmod_class,
2027 .clkdm_name = "l4per_clkdm",
2028 .main_clk = "uart3_gfclk_mux",
2029 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
2032 .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
2033 .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
2034 .modulemode = MODULEMODE_SWCTRL,
2040 static struct omap_hwmod dra7xx_uart4_hwmod = {
2042 .class = &dra7xx_uart_hwmod_class,
2043 .clkdm_name = "l4per_clkdm",
2044 .main_clk = "uart4_gfclk_mux",
2045 .flags = HWMOD_SWSUP_SIDLE_ACT,
2048 .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
2049 .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
2050 .modulemode = MODULEMODE_SWCTRL,
2056 static struct omap_hwmod dra7xx_uart5_hwmod = {
2058 .class = &dra7xx_uart_hwmod_class,
2059 .clkdm_name = "l4per_clkdm",
2060 .main_clk = "uart5_gfclk_mux",
2061 .flags = HWMOD_SWSUP_SIDLE_ACT,
2064 .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
2065 .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
2066 .modulemode = MODULEMODE_SWCTRL,
2072 static struct omap_hwmod dra7xx_uart6_hwmod = {
2074 .class = &dra7xx_uart_hwmod_class,
2075 .clkdm_name = "ipu_clkdm",
2076 .main_clk = "uart6_gfclk_mux",
2077 .flags = HWMOD_SWSUP_SIDLE_ACT,
2080 .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
2081 .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
2082 .modulemode = MODULEMODE_SWCTRL,
2088 static struct omap_hwmod dra7xx_uart7_hwmod = {
2090 .class = &dra7xx_uart_hwmod_class,
2091 .clkdm_name = "l4per2_clkdm",
2092 .main_clk = "uart7_gfclk_mux",
2093 .flags = HWMOD_SWSUP_SIDLE_ACT,
2096 .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
2097 .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
2098 .modulemode = MODULEMODE_SWCTRL,
2104 static struct omap_hwmod dra7xx_uart8_hwmod = {
2106 .class = &dra7xx_uart_hwmod_class,
2107 .clkdm_name = "l4per2_clkdm",
2108 .main_clk = "uart8_gfclk_mux",
2109 .flags = HWMOD_SWSUP_SIDLE_ACT,
2112 .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
2113 .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
2114 .modulemode = MODULEMODE_SWCTRL,
2120 static struct omap_hwmod dra7xx_uart9_hwmod = {
2122 .class = &dra7xx_uart_hwmod_class,
2123 .clkdm_name = "l4per2_clkdm",
2124 .main_clk = "uart9_gfclk_mux",
2125 .flags = HWMOD_SWSUP_SIDLE_ACT,
2128 .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
2129 .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
2130 .modulemode = MODULEMODE_SWCTRL,
2136 static struct omap_hwmod dra7xx_uart10_hwmod = {
2138 .class = &dra7xx_uart_hwmod_class,
2139 .clkdm_name = "wkupaon_clkdm",
2140 .main_clk = "uart10_gfclk_mux",
2141 .flags = HWMOD_SWSUP_SIDLE_ACT,
2144 .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
2145 .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
2146 .modulemode = MODULEMODE_SWCTRL,
2152 * 'usb_otg_ss' class
2156 static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
2158 .sysc_offs = 0x0010,
2159 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
2160 SYSC_HAS_SIDLEMODE),
2161 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2162 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2163 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2164 .sysc_fields = &omap_hwmod_sysc_type2,
2167 static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
2168 .name = "usb_otg_ss",
2169 .sysc = &dra7xx_usb_otg_ss_sysc,
2173 static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
2174 { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
2177 static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
2178 .name = "usb_otg_ss1",
2179 .class = &dra7xx_usb_otg_ss_hwmod_class,
2180 .clkdm_name = "l3init_clkdm",
2181 .main_clk = "dpll_core_h13x2_ck",
2184 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
2185 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
2186 .modulemode = MODULEMODE_HWCTRL,
2189 .opt_clks = usb_otg_ss1_opt_clks,
2190 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
2194 static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
2195 { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
2198 static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
2199 .name = "usb_otg_ss2",
2200 .class = &dra7xx_usb_otg_ss_hwmod_class,
2201 .clkdm_name = "l3init_clkdm",
2202 .main_clk = "dpll_core_h13x2_ck",
2205 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
2206 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
2207 .modulemode = MODULEMODE_HWCTRL,
2210 .opt_clks = usb_otg_ss2_opt_clks,
2211 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
2215 static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
2216 .name = "usb_otg_ss3",
2217 .class = &dra7xx_usb_otg_ss_hwmod_class,
2218 .clkdm_name = "l3init_clkdm",
2219 .main_clk = "dpll_core_h13x2_ck",
2222 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
2223 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
2224 .modulemode = MODULEMODE_HWCTRL,
2230 static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
2231 .name = "usb_otg_ss4",
2232 .class = &dra7xx_usb_otg_ss_hwmod_class,
2233 .clkdm_name = "l3init_clkdm",
2234 .main_clk = "dpll_core_h13x2_ck",
2237 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
2238 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
2239 .modulemode = MODULEMODE_HWCTRL,
2249 static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
2254 static struct omap_hwmod dra7xx_vcp1_hwmod = {
2256 .class = &dra7xx_vcp_hwmod_class,
2257 .clkdm_name = "l3main1_clkdm",
2258 .main_clk = "l3_iclk_div",
2261 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
2262 .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
2268 static struct omap_hwmod dra7xx_vcp2_hwmod = {
2270 .class = &dra7xx_vcp_hwmod_class,
2271 .clkdm_name = "l3main1_clkdm",
2272 .main_clk = "l3_iclk_div",
2275 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
2276 .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
2286 static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
2288 .sysc_offs = 0x0010,
2289 .syss_offs = 0x0014,
2290 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2291 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2292 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2294 .sysc_fields = &omap_hwmod_sysc_type1,
2297 static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
2299 .sysc = &dra7xx_wd_timer_sysc,
2300 .pre_shutdown = &omap2_wd_timer_disable,
2301 .reset = &omap2_wd_timer_reset,
2305 static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
2306 .name = "wd_timer2",
2307 .class = &dra7xx_wd_timer_hwmod_class,
2308 .clkdm_name = "wkupaon_clkdm",
2309 .main_clk = "sys_32k_ck",
2312 .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
2313 .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
2314 .modulemode = MODULEMODE_SWCTRL,
2324 /* l3_main_2 -> l3_instr */
2325 static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
2326 .master = &dra7xx_l3_main_2_hwmod,
2327 .slave = &dra7xx_l3_instr_hwmod,
2328 .clk = "l3_iclk_div",
2329 .user = OCP_USER_MPU | OCP_USER_SDMA,
2332 /* l4_cfg -> l3_main_1 */
2333 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
2334 .master = &dra7xx_l4_cfg_hwmod,
2335 .slave = &dra7xx_l3_main_1_hwmod,
2336 .clk = "l3_iclk_div",
2337 .user = OCP_USER_MPU | OCP_USER_SDMA,
2340 /* mpu -> l3_main_1 */
2341 static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
2342 .master = &dra7xx_mpu_hwmod,
2343 .slave = &dra7xx_l3_main_1_hwmod,
2344 .clk = "l3_iclk_div",
2345 .user = OCP_USER_MPU,
2348 /* l3_main_1 -> l3_main_2 */
2349 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
2350 .master = &dra7xx_l3_main_1_hwmod,
2351 .slave = &dra7xx_l3_main_2_hwmod,
2352 .clk = "l3_iclk_div",
2353 .user = OCP_USER_MPU,
2356 /* l4_cfg -> l3_main_2 */
2357 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
2358 .master = &dra7xx_l4_cfg_hwmod,
2359 .slave = &dra7xx_l3_main_2_hwmod,
2360 .clk = "l3_iclk_div",
2361 .user = OCP_USER_MPU | OCP_USER_SDMA,
2364 /* l3_main_1 -> l4_cfg */
2365 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
2366 .master = &dra7xx_l3_main_1_hwmod,
2367 .slave = &dra7xx_l4_cfg_hwmod,
2368 .clk = "l3_iclk_div",
2369 .user = OCP_USER_MPU | OCP_USER_SDMA,
2372 /* l3_main_1 -> l4_per1 */
2373 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
2374 .master = &dra7xx_l3_main_1_hwmod,
2375 .slave = &dra7xx_l4_per1_hwmod,
2376 .clk = "l3_iclk_div",
2377 .user = OCP_USER_MPU | OCP_USER_SDMA,
2380 /* l3_main_1 -> l4_per2 */
2381 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
2382 .master = &dra7xx_l3_main_1_hwmod,
2383 .slave = &dra7xx_l4_per2_hwmod,
2384 .clk = "l3_iclk_div",
2385 .user = OCP_USER_MPU | OCP_USER_SDMA,
2388 /* l3_main_1 -> l4_per3 */
2389 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
2390 .master = &dra7xx_l3_main_1_hwmod,
2391 .slave = &dra7xx_l4_per3_hwmod,
2392 .clk = "l3_iclk_div",
2393 .user = OCP_USER_MPU | OCP_USER_SDMA,
2396 /* l3_main_1 -> l4_wkup */
2397 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
2398 .master = &dra7xx_l3_main_1_hwmod,
2399 .slave = &dra7xx_l4_wkup_hwmod,
2400 .clk = "wkupaon_iclk_mux",
2401 .user = OCP_USER_MPU | OCP_USER_SDMA,
2404 /* l4_per2 -> atl */
2405 static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
2406 .master = &dra7xx_l4_per2_hwmod,
2407 .slave = &dra7xx_atl_hwmod,
2408 .clk = "l3_iclk_div",
2409 .user = OCP_USER_MPU | OCP_USER_SDMA,
2412 /* l3_main_1 -> bb2d */
2413 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
2414 .master = &dra7xx_l3_main_1_hwmod,
2415 .slave = &dra7xx_bb2d_hwmod,
2416 .clk = "l3_iclk_div",
2417 .user = OCP_USER_MPU | OCP_USER_SDMA,
2420 /* l4_wkup -> counter_32k */
2421 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
2422 .master = &dra7xx_l4_wkup_hwmod,
2423 .slave = &dra7xx_counter_32k_hwmod,
2424 .clk = "wkupaon_iclk_mux",
2425 .user = OCP_USER_MPU | OCP_USER_SDMA,
2428 /* l4_wkup -> ctrl_module_wkup */
2429 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
2430 .master = &dra7xx_l4_wkup_hwmod,
2431 .slave = &dra7xx_ctrl_module_wkup_hwmod,
2432 .clk = "wkupaon_iclk_mux",
2433 .user = OCP_USER_MPU | OCP_USER_SDMA,
2436 static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
2437 .master = &dra7xx_l4_per2_hwmod,
2438 .slave = &dra7xx_gmac_hwmod,
2439 .clk = "dpll_gmac_ck",
2440 .user = OCP_USER_MPU,
2443 static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
2444 .master = &dra7xx_gmac_hwmod,
2445 .slave = &dra7xx_mdio_hwmod,
2446 .user = OCP_USER_MPU,
2449 /* l4_wkup -> dcan1 */
2450 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
2451 .master = &dra7xx_l4_wkup_hwmod,
2452 .slave = &dra7xx_dcan1_hwmod,
2453 .clk = "wkupaon_iclk_mux",
2454 .user = OCP_USER_MPU | OCP_USER_SDMA,
2457 /* l4_per2 -> dcan2 */
2458 static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
2459 .master = &dra7xx_l4_per2_hwmod,
2460 .slave = &dra7xx_dcan2_hwmod,
2461 .clk = "l3_iclk_div",
2462 .user = OCP_USER_MPU | OCP_USER_SDMA,
2465 static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
2467 .pa_start = 0x4a056000,
2468 .pa_end = 0x4a056fff,
2469 .flags = ADDR_TYPE_RT
2474 /* l4_cfg -> dma_system */
2475 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
2476 .master = &dra7xx_l4_cfg_hwmod,
2477 .slave = &dra7xx_dma_system_hwmod,
2478 .clk = "l3_iclk_div",
2479 .addr = dra7xx_dma_system_addrs,
2480 .user = OCP_USER_MPU | OCP_USER_SDMA,
2483 static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
2486 .pa_start = 0x58000000,
2487 .pa_end = 0x5800007f,
2488 .flags = ADDR_TYPE_RT
2492 /* l3_main_1 -> dss */
2493 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
2494 .master = &dra7xx_l3_main_1_hwmod,
2495 .slave = &dra7xx_dss_hwmod,
2496 .clk = "l3_iclk_div",
2497 .addr = dra7xx_dss_addrs,
2498 .user = OCP_USER_MPU | OCP_USER_SDMA,
2501 static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
2504 .pa_start = 0x58001000,
2505 .pa_end = 0x58001fff,
2506 .flags = ADDR_TYPE_RT
2510 /* l3_main_1 -> dispc */
2511 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
2512 .master = &dra7xx_l3_main_1_hwmod,
2513 .slave = &dra7xx_dss_dispc_hwmod,
2514 .clk = "l3_iclk_div",
2515 .addr = dra7xx_dss_dispc_addrs,
2516 .user = OCP_USER_MPU | OCP_USER_SDMA,
2519 static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
2522 .pa_start = 0x58040000,
2523 .pa_end = 0x580400ff,
2524 .flags = ADDR_TYPE_RT
2529 /* l3_main_1 -> dispc */
2530 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
2531 .master = &dra7xx_l3_main_1_hwmod,
2532 .slave = &dra7xx_dss_hdmi_hwmod,
2533 .clk = "l3_iclk_div",
2534 .addr = dra7xx_dss_hdmi_addrs,
2535 .user = OCP_USER_MPU | OCP_USER_SDMA,
2538 static struct omap_hwmod_addr_space dra7xx_elm_addrs[] = {
2540 .pa_start = 0x48078000,
2541 .pa_end = 0x48078fff,
2542 .flags = ADDR_TYPE_RT
2547 /* l4_per1 -> elm */
2548 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
2549 .master = &dra7xx_l4_per1_hwmod,
2550 .slave = &dra7xx_elm_hwmod,
2551 .clk = "l3_iclk_div",
2552 .addr = dra7xx_elm_addrs,
2553 .user = OCP_USER_MPU | OCP_USER_SDMA,
2556 /* l4_wkup -> gpio1 */
2557 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
2558 .master = &dra7xx_l4_wkup_hwmod,
2559 .slave = &dra7xx_gpio1_hwmod,
2560 .clk = "wkupaon_iclk_mux",
2561 .user = OCP_USER_MPU | OCP_USER_SDMA,
2564 /* l4_per1 -> gpio2 */
2565 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
2566 .master = &dra7xx_l4_per1_hwmod,
2567 .slave = &dra7xx_gpio2_hwmod,
2568 .clk = "l3_iclk_div",
2569 .user = OCP_USER_MPU | OCP_USER_SDMA,
2572 /* l4_per1 -> gpio3 */
2573 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
2574 .master = &dra7xx_l4_per1_hwmod,
2575 .slave = &dra7xx_gpio3_hwmod,
2576 .clk = "l3_iclk_div",
2577 .user = OCP_USER_MPU | OCP_USER_SDMA,
2580 /* l4_per1 -> gpio4 */
2581 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
2582 .master = &dra7xx_l4_per1_hwmod,
2583 .slave = &dra7xx_gpio4_hwmod,
2584 .clk = "l3_iclk_div",
2585 .user = OCP_USER_MPU | OCP_USER_SDMA,
2588 /* l4_per1 -> gpio5 */
2589 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
2590 .master = &dra7xx_l4_per1_hwmod,
2591 .slave = &dra7xx_gpio5_hwmod,
2592 .clk = "l3_iclk_div",
2593 .user = OCP_USER_MPU | OCP_USER_SDMA,
2596 /* l4_per1 -> gpio6 */
2597 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
2598 .master = &dra7xx_l4_per1_hwmod,
2599 .slave = &dra7xx_gpio6_hwmod,
2600 .clk = "l3_iclk_div",
2601 .user = OCP_USER_MPU | OCP_USER_SDMA,
2604 /* l4_per1 -> gpio7 */
2605 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
2606 .master = &dra7xx_l4_per1_hwmod,
2607 .slave = &dra7xx_gpio7_hwmod,
2608 .clk = "l3_iclk_div",
2609 .user = OCP_USER_MPU | OCP_USER_SDMA,
2612 /* l4_per1 -> gpio8 */
2613 static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
2614 .master = &dra7xx_l4_per1_hwmod,
2615 .slave = &dra7xx_gpio8_hwmod,
2616 .clk = "l3_iclk_div",
2617 .user = OCP_USER_MPU | OCP_USER_SDMA,
2620 static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = {
2622 .pa_start = 0x50000000,
2623 .pa_end = 0x500003ff,
2624 .flags = ADDR_TYPE_RT
2629 /* l3_main_1 -> gpmc */
2630 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
2631 .master = &dra7xx_l3_main_1_hwmod,
2632 .slave = &dra7xx_gpmc_hwmod,
2633 .clk = "l3_iclk_div",
2634 .addr = dra7xx_gpmc_addrs,
2635 .user = OCP_USER_MPU | OCP_USER_SDMA,
2638 static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
2640 .pa_start = 0x480b2000,
2641 .pa_end = 0x480b201f,
2642 .flags = ADDR_TYPE_RT
2647 /* l4_per1 -> hdq1w */
2648 static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
2649 .master = &dra7xx_l4_per1_hwmod,
2650 .slave = &dra7xx_hdq1w_hwmod,
2651 .clk = "l3_iclk_div",
2652 .addr = dra7xx_hdq1w_addrs,
2653 .user = OCP_USER_MPU | OCP_USER_SDMA,
2656 /* l4_per1 -> i2c1 */
2657 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
2658 .master = &dra7xx_l4_per1_hwmod,
2659 .slave = &dra7xx_i2c1_hwmod,
2660 .clk = "l3_iclk_div",
2661 .user = OCP_USER_MPU | OCP_USER_SDMA,
2664 /* l4_per1 -> i2c2 */
2665 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
2666 .master = &dra7xx_l4_per1_hwmod,
2667 .slave = &dra7xx_i2c2_hwmod,
2668 .clk = "l3_iclk_div",
2669 .user = OCP_USER_MPU | OCP_USER_SDMA,
2672 /* l4_per1 -> i2c3 */
2673 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
2674 .master = &dra7xx_l4_per1_hwmod,
2675 .slave = &dra7xx_i2c3_hwmod,
2676 .clk = "l3_iclk_div",
2677 .user = OCP_USER_MPU | OCP_USER_SDMA,
2680 /* l4_per1 -> i2c4 */
2681 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
2682 .master = &dra7xx_l4_per1_hwmod,
2683 .slave = &dra7xx_i2c4_hwmod,
2684 .clk = "l3_iclk_div",
2685 .user = OCP_USER_MPU | OCP_USER_SDMA,
2688 /* l4_per1 -> i2c5 */
2689 static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
2690 .master = &dra7xx_l4_per1_hwmod,
2691 .slave = &dra7xx_i2c5_hwmod,
2692 .clk = "l3_iclk_div",
2693 .user = OCP_USER_MPU | OCP_USER_SDMA,
2696 /* l4_cfg -> mailbox1 */
2697 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
2698 .master = &dra7xx_l4_cfg_hwmod,
2699 .slave = &dra7xx_mailbox1_hwmod,
2700 .clk = "l3_iclk_div",
2701 .user = OCP_USER_MPU | OCP_USER_SDMA,
2704 /* l4_per3 -> mailbox2 */
2705 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
2706 .master = &dra7xx_l4_per3_hwmod,
2707 .slave = &dra7xx_mailbox2_hwmod,
2708 .clk = "l3_iclk_div",
2709 .user = OCP_USER_MPU | OCP_USER_SDMA,
2712 /* l4_per3 -> mailbox3 */
2713 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
2714 .master = &dra7xx_l4_per3_hwmod,
2715 .slave = &dra7xx_mailbox3_hwmod,
2716 .clk = "l3_iclk_div",
2717 .user = OCP_USER_MPU | OCP_USER_SDMA,
2720 /* l4_per3 -> mailbox4 */
2721 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
2722 .master = &dra7xx_l4_per3_hwmod,
2723 .slave = &dra7xx_mailbox4_hwmod,
2724 .clk = "l3_iclk_div",
2725 .user = OCP_USER_MPU | OCP_USER_SDMA,
2728 /* l4_per3 -> mailbox5 */
2729 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
2730 .master = &dra7xx_l4_per3_hwmod,
2731 .slave = &dra7xx_mailbox5_hwmod,
2732 .clk = "l3_iclk_div",
2733 .user = OCP_USER_MPU | OCP_USER_SDMA,
2736 /* l4_per3 -> mailbox6 */
2737 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
2738 .master = &dra7xx_l4_per3_hwmod,
2739 .slave = &dra7xx_mailbox6_hwmod,
2740 .clk = "l3_iclk_div",
2741 .user = OCP_USER_MPU | OCP_USER_SDMA,
2744 /* l4_per3 -> mailbox7 */
2745 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
2746 .master = &dra7xx_l4_per3_hwmod,
2747 .slave = &dra7xx_mailbox7_hwmod,
2748 .clk = "l3_iclk_div",
2749 .user = OCP_USER_MPU | OCP_USER_SDMA,
2752 /* l4_per3 -> mailbox8 */
2753 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
2754 .master = &dra7xx_l4_per3_hwmod,
2755 .slave = &dra7xx_mailbox8_hwmod,
2756 .clk = "l3_iclk_div",
2757 .user = OCP_USER_MPU | OCP_USER_SDMA,
2760 /* l4_per3 -> mailbox9 */
2761 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
2762 .master = &dra7xx_l4_per3_hwmod,
2763 .slave = &dra7xx_mailbox9_hwmod,
2764 .clk = "l3_iclk_div",
2765 .user = OCP_USER_MPU | OCP_USER_SDMA,
2768 /* l4_per3 -> mailbox10 */
2769 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
2770 .master = &dra7xx_l4_per3_hwmod,
2771 .slave = &dra7xx_mailbox10_hwmod,
2772 .clk = "l3_iclk_div",
2773 .user = OCP_USER_MPU | OCP_USER_SDMA,
2776 /* l4_per3 -> mailbox11 */
2777 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
2778 .master = &dra7xx_l4_per3_hwmod,
2779 .slave = &dra7xx_mailbox11_hwmod,
2780 .clk = "l3_iclk_div",
2781 .user = OCP_USER_MPU | OCP_USER_SDMA,
2784 /* l4_per3 -> mailbox12 */
2785 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
2786 .master = &dra7xx_l4_per3_hwmod,
2787 .slave = &dra7xx_mailbox12_hwmod,
2788 .clk = "l3_iclk_div",
2789 .user = OCP_USER_MPU | OCP_USER_SDMA,
2792 /* l4_per3 -> mailbox13 */
2793 static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
2794 .master = &dra7xx_l4_per3_hwmod,
2795 .slave = &dra7xx_mailbox13_hwmod,
2796 .clk = "l3_iclk_div",
2797 .user = OCP_USER_MPU | OCP_USER_SDMA,
2800 /* l4_per1 -> mcspi1 */
2801 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
2802 .master = &dra7xx_l4_per1_hwmod,
2803 .slave = &dra7xx_mcspi1_hwmod,
2804 .clk = "l3_iclk_div",
2805 .user = OCP_USER_MPU | OCP_USER_SDMA,
2808 /* l4_per1 -> mcspi2 */
2809 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
2810 .master = &dra7xx_l4_per1_hwmod,
2811 .slave = &dra7xx_mcspi2_hwmod,
2812 .clk = "l3_iclk_div",
2813 .user = OCP_USER_MPU | OCP_USER_SDMA,
2816 /* l4_per1 -> mcspi3 */
2817 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
2818 .master = &dra7xx_l4_per1_hwmod,
2819 .slave = &dra7xx_mcspi3_hwmod,
2820 .clk = "l3_iclk_div",
2821 .user = OCP_USER_MPU | OCP_USER_SDMA,
2824 /* l4_per1 -> mcspi4 */
2825 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
2826 .master = &dra7xx_l4_per1_hwmod,
2827 .slave = &dra7xx_mcspi4_hwmod,
2828 .clk = "l3_iclk_div",
2829 .user = OCP_USER_MPU | OCP_USER_SDMA,
2832 /* l4_per1 -> mmc1 */
2833 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
2834 .master = &dra7xx_l4_per1_hwmod,
2835 .slave = &dra7xx_mmc1_hwmod,
2836 .clk = "l3_iclk_div",
2837 .user = OCP_USER_MPU | OCP_USER_SDMA,
2840 /* l4_per1 -> mmc2 */
2841 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
2842 .master = &dra7xx_l4_per1_hwmod,
2843 .slave = &dra7xx_mmc2_hwmod,
2844 .clk = "l3_iclk_div",
2845 .user = OCP_USER_MPU | OCP_USER_SDMA,
2848 /* l4_per1 -> mmc3 */
2849 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
2850 .master = &dra7xx_l4_per1_hwmod,
2851 .slave = &dra7xx_mmc3_hwmod,
2852 .clk = "l3_iclk_div",
2853 .user = OCP_USER_MPU | OCP_USER_SDMA,
2856 /* l4_per1 -> mmc4 */
2857 static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
2858 .master = &dra7xx_l4_per1_hwmod,
2859 .slave = &dra7xx_mmc4_hwmod,
2860 .clk = "l3_iclk_div",
2861 .user = OCP_USER_MPU | OCP_USER_SDMA,
2865 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
2866 .master = &dra7xx_l4_cfg_hwmod,
2867 .slave = &dra7xx_mpu_hwmod,
2868 .clk = "l3_iclk_div",
2869 .user = OCP_USER_MPU | OCP_USER_SDMA,
2872 /* l4_cfg -> ocp2scp1 */
2873 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
2874 .master = &dra7xx_l4_cfg_hwmod,
2875 .slave = &dra7xx_ocp2scp1_hwmod,
2876 .clk = "l4_root_clk_div",
2877 .user = OCP_USER_MPU | OCP_USER_SDMA,
2880 /* l4_cfg -> ocp2scp3 */
2881 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
2882 .master = &dra7xx_l4_cfg_hwmod,
2883 .slave = &dra7xx_ocp2scp3_hwmod,
2884 .clk = "l4_root_clk_div",
2885 .user = OCP_USER_MPU | OCP_USER_SDMA,
2888 /* l3_main_1 -> pciess1 */
2889 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
2890 .master = &dra7xx_l3_main_1_hwmod,
2891 .slave = &dra7xx_pciess1_hwmod,
2892 .clk = "l3_iclk_div",
2893 .user = OCP_USER_MPU | OCP_USER_SDMA,
2896 /* l4_cfg -> pciess1 */
2897 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
2898 .master = &dra7xx_l4_cfg_hwmod,
2899 .slave = &dra7xx_pciess1_hwmod,
2900 .clk = "l4_root_clk_div",
2901 .user = OCP_USER_MPU | OCP_USER_SDMA,
2904 /* l3_main_1 -> pciess2 */
2905 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
2906 .master = &dra7xx_l3_main_1_hwmod,
2907 .slave = &dra7xx_pciess2_hwmod,
2908 .clk = "l3_iclk_div",
2909 .user = OCP_USER_MPU | OCP_USER_SDMA,
2912 /* l4_cfg -> pciess2 */
2913 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
2914 .master = &dra7xx_l4_cfg_hwmod,
2915 .slave = &dra7xx_pciess2_hwmod,
2916 .clk = "l4_root_clk_div",
2917 .user = OCP_USER_MPU | OCP_USER_SDMA,
2920 static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
2922 .pa_start = 0x4b300000,
2923 .pa_end = 0x4b30007f,
2924 .flags = ADDR_TYPE_RT
2929 /* l3_main_1 -> qspi */
2930 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
2931 .master = &dra7xx_l3_main_1_hwmod,
2932 .slave = &dra7xx_qspi_hwmod,
2933 .clk = "l3_iclk_div",
2934 .addr = dra7xx_qspi_addrs,
2935 .user = OCP_USER_MPU | OCP_USER_SDMA,
2938 /* l4_per3 -> rtcss */
2939 static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
2940 .master = &dra7xx_l4_per3_hwmod,
2941 .slave = &dra7xx_rtcss_hwmod,
2942 .clk = "l4_root_clk_div",
2943 .user = OCP_USER_MPU | OCP_USER_SDMA,
2946 static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
2949 .pa_start = 0x4a141100,
2950 .pa_end = 0x4a141107,
2951 .flags = ADDR_TYPE_RT
2956 /* l4_cfg -> sata */
2957 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
2958 .master = &dra7xx_l4_cfg_hwmod,
2959 .slave = &dra7xx_sata_hwmod,
2960 .clk = "l3_iclk_div",
2961 .addr = dra7xx_sata_addrs,
2962 .user = OCP_USER_MPU | OCP_USER_SDMA,
2965 static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
2967 .pa_start = 0x4a0dd000,
2968 .pa_end = 0x4a0dd07f,
2969 .flags = ADDR_TYPE_RT
2974 /* l4_cfg -> smartreflex_core */
2975 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
2976 .master = &dra7xx_l4_cfg_hwmod,
2977 .slave = &dra7xx_smartreflex_core_hwmod,
2978 .clk = "l4_root_clk_div",
2979 .addr = dra7xx_smartreflex_core_addrs,
2980 .user = OCP_USER_MPU | OCP_USER_SDMA,
2983 static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
2985 .pa_start = 0x4a0d9000,
2986 .pa_end = 0x4a0d907f,
2987 .flags = ADDR_TYPE_RT
2992 /* l4_cfg -> smartreflex_mpu */
2993 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
2994 .master = &dra7xx_l4_cfg_hwmod,
2995 .slave = &dra7xx_smartreflex_mpu_hwmod,
2996 .clk = "l4_root_clk_div",
2997 .addr = dra7xx_smartreflex_mpu_addrs,
2998 .user = OCP_USER_MPU | OCP_USER_SDMA,
3001 static struct omap_hwmod_addr_space dra7xx_spinlock_addrs[] = {
3003 .pa_start = 0x4a0f6000,
3004 .pa_end = 0x4a0f6fff,
3005 .flags = ADDR_TYPE_RT
3010 /* l4_cfg -> spinlock */
3011 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
3012 .master = &dra7xx_l4_cfg_hwmod,
3013 .slave = &dra7xx_spinlock_hwmod,
3014 .clk = "l3_iclk_div",
3015 .addr = dra7xx_spinlock_addrs,
3016 .user = OCP_USER_MPU | OCP_USER_SDMA,
3019 /* l4_wkup -> timer1 */
3020 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
3021 .master = &dra7xx_l4_wkup_hwmod,
3022 .slave = &dra7xx_timer1_hwmod,
3023 .clk = "wkupaon_iclk_mux",
3024 .user = OCP_USER_MPU | OCP_USER_SDMA,
3027 /* l4_per1 -> timer2 */
3028 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
3029 .master = &dra7xx_l4_per1_hwmod,
3030 .slave = &dra7xx_timer2_hwmod,
3031 .clk = "l3_iclk_div",
3032 .user = OCP_USER_MPU | OCP_USER_SDMA,
3035 /* l4_per1 -> timer3 */
3036 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
3037 .master = &dra7xx_l4_per1_hwmod,
3038 .slave = &dra7xx_timer3_hwmod,
3039 .clk = "l3_iclk_div",
3040 .user = OCP_USER_MPU | OCP_USER_SDMA,
3043 /* l4_per1 -> timer4 */
3044 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
3045 .master = &dra7xx_l4_per1_hwmod,
3046 .slave = &dra7xx_timer4_hwmod,
3047 .clk = "l3_iclk_div",
3048 .user = OCP_USER_MPU | OCP_USER_SDMA,
3051 /* l4_per3 -> timer5 */
3052 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
3053 .master = &dra7xx_l4_per3_hwmod,
3054 .slave = &dra7xx_timer5_hwmod,
3055 .clk = "l3_iclk_div",
3056 .user = OCP_USER_MPU | OCP_USER_SDMA,
3059 /* l4_per3 -> timer6 */
3060 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
3061 .master = &dra7xx_l4_per3_hwmod,
3062 .slave = &dra7xx_timer6_hwmod,
3063 .clk = "l3_iclk_div",
3064 .user = OCP_USER_MPU | OCP_USER_SDMA,
3067 /* l4_per3 -> timer7 */
3068 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
3069 .master = &dra7xx_l4_per3_hwmod,
3070 .slave = &dra7xx_timer7_hwmod,
3071 .clk = "l3_iclk_div",
3072 .user = OCP_USER_MPU | OCP_USER_SDMA,
3075 /* l4_per3 -> timer8 */
3076 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
3077 .master = &dra7xx_l4_per3_hwmod,
3078 .slave = &dra7xx_timer8_hwmod,
3079 .clk = "l3_iclk_div",
3080 .user = OCP_USER_MPU | OCP_USER_SDMA,
3083 /* l4_per1 -> timer9 */
3084 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
3085 .master = &dra7xx_l4_per1_hwmod,
3086 .slave = &dra7xx_timer9_hwmod,
3087 .clk = "l3_iclk_div",
3088 .user = OCP_USER_MPU | OCP_USER_SDMA,
3091 /* l4_per1 -> timer10 */
3092 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
3093 .master = &dra7xx_l4_per1_hwmod,
3094 .slave = &dra7xx_timer10_hwmod,
3095 .clk = "l3_iclk_div",
3096 .user = OCP_USER_MPU | OCP_USER_SDMA,
3099 /* l4_per1 -> timer11 */
3100 static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
3101 .master = &dra7xx_l4_per1_hwmod,
3102 .slave = &dra7xx_timer11_hwmod,
3103 .clk = "l3_iclk_div",
3104 .user = OCP_USER_MPU | OCP_USER_SDMA,
3107 /* l4_per3 -> timer13 */
3108 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
3109 .master = &dra7xx_l4_per3_hwmod,
3110 .slave = &dra7xx_timer13_hwmod,
3111 .clk = "l3_iclk_div",
3112 .user = OCP_USER_MPU | OCP_USER_SDMA,
3115 /* l4_per3 -> timer14 */
3116 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
3117 .master = &dra7xx_l4_per3_hwmod,
3118 .slave = &dra7xx_timer14_hwmod,
3119 .clk = "l3_iclk_div",
3120 .user = OCP_USER_MPU | OCP_USER_SDMA,
3123 /* l4_per3 -> timer15 */
3124 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
3125 .master = &dra7xx_l4_per3_hwmod,
3126 .slave = &dra7xx_timer15_hwmod,
3127 .clk = "l3_iclk_div",
3128 .user = OCP_USER_MPU | OCP_USER_SDMA,
3131 /* l4_per3 -> timer16 */
3132 static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
3133 .master = &dra7xx_l4_per3_hwmod,
3134 .slave = &dra7xx_timer16_hwmod,
3135 .clk = "l3_iclk_div",
3136 .user = OCP_USER_MPU | OCP_USER_SDMA,
3139 /* l4_per1 -> uart1 */
3140 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
3141 .master = &dra7xx_l4_per1_hwmod,
3142 .slave = &dra7xx_uart1_hwmod,
3143 .clk = "l3_iclk_div",
3144 .user = OCP_USER_MPU | OCP_USER_SDMA,
3147 /* l4_per1 -> uart2 */
3148 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
3149 .master = &dra7xx_l4_per1_hwmod,
3150 .slave = &dra7xx_uart2_hwmod,
3151 .clk = "l3_iclk_div",
3152 .user = OCP_USER_MPU | OCP_USER_SDMA,
3155 /* l4_per1 -> uart3 */
3156 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
3157 .master = &dra7xx_l4_per1_hwmod,
3158 .slave = &dra7xx_uart3_hwmod,
3159 .clk = "l3_iclk_div",
3160 .user = OCP_USER_MPU | OCP_USER_SDMA,
3163 /* l4_per1 -> uart4 */
3164 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
3165 .master = &dra7xx_l4_per1_hwmod,
3166 .slave = &dra7xx_uart4_hwmod,
3167 .clk = "l3_iclk_div",
3168 .user = OCP_USER_MPU | OCP_USER_SDMA,
3171 /* l4_per1 -> uart5 */
3172 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
3173 .master = &dra7xx_l4_per1_hwmod,
3174 .slave = &dra7xx_uart5_hwmod,
3175 .clk = "l3_iclk_div",
3176 .user = OCP_USER_MPU | OCP_USER_SDMA,
3179 /* l4_per1 -> uart6 */
3180 static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
3181 .master = &dra7xx_l4_per1_hwmod,
3182 .slave = &dra7xx_uart6_hwmod,
3183 .clk = "l3_iclk_div",
3184 .user = OCP_USER_MPU | OCP_USER_SDMA,
3187 /* l4_per2 -> uart7 */
3188 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
3189 .master = &dra7xx_l4_per2_hwmod,
3190 .slave = &dra7xx_uart7_hwmod,
3191 .clk = "l3_iclk_div",
3192 .user = OCP_USER_MPU | OCP_USER_SDMA,
3195 /* l4_per2 -> uart8 */
3196 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
3197 .master = &dra7xx_l4_per2_hwmod,
3198 .slave = &dra7xx_uart8_hwmod,
3199 .clk = "l3_iclk_div",
3200 .user = OCP_USER_MPU | OCP_USER_SDMA,
3203 /* l4_per2 -> uart9 */
3204 static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
3205 .master = &dra7xx_l4_per2_hwmod,
3206 .slave = &dra7xx_uart9_hwmod,
3207 .clk = "l3_iclk_div",
3208 .user = OCP_USER_MPU | OCP_USER_SDMA,
3211 /* l4_wkup -> uart10 */
3212 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
3213 .master = &dra7xx_l4_wkup_hwmod,
3214 .slave = &dra7xx_uart10_hwmod,
3215 .clk = "wkupaon_iclk_mux",
3216 .user = OCP_USER_MPU | OCP_USER_SDMA,
3219 /* l4_per3 -> usb_otg_ss1 */
3220 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
3221 .master = &dra7xx_l4_per3_hwmod,
3222 .slave = &dra7xx_usb_otg_ss1_hwmod,
3223 .clk = "dpll_core_h13x2_ck",
3224 .user = OCP_USER_MPU | OCP_USER_SDMA,
3227 /* l4_per3 -> usb_otg_ss2 */
3228 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
3229 .master = &dra7xx_l4_per3_hwmod,
3230 .slave = &dra7xx_usb_otg_ss2_hwmod,
3231 .clk = "dpll_core_h13x2_ck",
3232 .user = OCP_USER_MPU | OCP_USER_SDMA,
3235 /* l4_per3 -> usb_otg_ss3 */
3236 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
3237 .master = &dra7xx_l4_per3_hwmod,
3238 .slave = &dra7xx_usb_otg_ss3_hwmod,
3239 .clk = "dpll_core_h13x2_ck",
3240 .user = OCP_USER_MPU | OCP_USER_SDMA,
3243 /* l4_per3 -> usb_otg_ss4 */
3244 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
3245 .master = &dra7xx_l4_per3_hwmod,
3246 .slave = &dra7xx_usb_otg_ss4_hwmod,
3247 .clk = "dpll_core_h13x2_ck",
3248 .user = OCP_USER_MPU | OCP_USER_SDMA,
3251 /* l3_main_1 -> vcp1 */
3252 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
3253 .master = &dra7xx_l3_main_1_hwmod,
3254 .slave = &dra7xx_vcp1_hwmod,
3255 .clk = "l3_iclk_div",
3256 .user = OCP_USER_MPU | OCP_USER_SDMA,
3259 /* l4_per2 -> vcp1 */
3260 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
3261 .master = &dra7xx_l4_per2_hwmod,
3262 .slave = &dra7xx_vcp1_hwmod,
3263 .clk = "l3_iclk_div",
3264 .user = OCP_USER_MPU | OCP_USER_SDMA,
3267 /* l3_main_1 -> vcp2 */
3268 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
3269 .master = &dra7xx_l3_main_1_hwmod,
3270 .slave = &dra7xx_vcp2_hwmod,
3271 .clk = "l3_iclk_div",
3272 .user = OCP_USER_MPU | OCP_USER_SDMA,
3275 /* l4_per2 -> vcp2 */
3276 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
3277 .master = &dra7xx_l4_per2_hwmod,
3278 .slave = &dra7xx_vcp2_hwmod,
3279 .clk = "l3_iclk_div",
3280 .user = OCP_USER_MPU | OCP_USER_SDMA,
3283 /* l4_wkup -> wd_timer2 */
3284 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
3285 .master = &dra7xx_l4_wkup_hwmod,
3286 .slave = &dra7xx_wd_timer2_hwmod,
3287 .clk = "wkupaon_iclk_mux",
3288 .user = OCP_USER_MPU | OCP_USER_SDMA,
3291 static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
3292 &dra7xx_l3_main_2__l3_instr,
3293 &dra7xx_l4_cfg__l3_main_1,
3294 &dra7xx_mpu__l3_main_1,
3295 &dra7xx_l3_main_1__l3_main_2,
3296 &dra7xx_l4_cfg__l3_main_2,
3297 &dra7xx_l3_main_1__l4_cfg,
3298 &dra7xx_l3_main_1__l4_per1,
3299 &dra7xx_l3_main_1__l4_per2,
3300 &dra7xx_l3_main_1__l4_per3,
3301 &dra7xx_l3_main_1__l4_wkup,
3302 &dra7xx_l4_per2__atl,
3303 &dra7xx_l3_main_1__bb2d,
3304 &dra7xx_l4_wkup__counter_32k,
3305 &dra7xx_l4_wkup__ctrl_module_wkup,
3306 &dra7xx_l4_wkup__dcan1,
3307 &dra7xx_l4_per2__dcan2,
3308 &dra7xx_l4_per2__cpgmac0,
3310 &dra7xx_l4_cfg__dma_system,
3311 &dra7xx_l3_main_1__dss,
3312 &dra7xx_l3_main_1__dispc,
3313 &dra7xx_l3_main_1__hdmi,
3314 &dra7xx_l4_per1__elm,
3315 &dra7xx_l4_wkup__gpio1,
3316 &dra7xx_l4_per1__gpio2,
3317 &dra7xx_l4_per1__gpio3,
3318 &dra7xx_l4_per1__gpio4,
3319 &dra7xx_l4_per1__gpio5,
3320 &dra7xx_l4_per1__gpio6,
3321 &dra7xx_l4_per1__gpio7,
3322 &dra7xx_l4_per1__gpio8,
3323 &dra7xx_l3_main_1__gpmc,
3324 &dra7xx_l4_per1__hdq1w,
3325 &dra7xx_l4_per1__i2c1,
3326 &dra7xx_l4_per1__i2c2,
3327 &dra7xx_l4_per1__i2c3,
3328 &dra7xx_l4_per1__i2c4,
3329 &dra7xx_l4_per1__i2c5,
3330 &dra7xx_l4_cfg__mailbox1,
3331 &dra7xx_l4_per3__mailbox2,
3332 &dra7xx_l4_per3__mailbox3,
3333 &dra7xx_l4_per3__mailbox4,
3334 &dra7xx_l4_per3__mailbox5,
3335 &dra7xx_l4_per3__mailbox6,
3336 &dra7xx_l4_per3__mailbox7,
3337 &dra7xx_l4_per3__mailbox8,
3338 &dra7xx_l4_per3__mailbox9,
3339 &dra7xx_l4_per3__mailbox10,
3340 &dra7xx_l4_per3__mailbox11,
3341 &dra7xx_l4_per3__mailbox12,
3342 &dra7xx_l4_per3__mailbox13,
3343 &dra7xx_l4_per1__mcspi1,
3344 &dra7xx_l4_per1__mcspi2,
3345 &dra7xx_l4_per1__mcspi3,
3346 &dra7xx_l4_per1__mcspi4,
3347 &dra7xx_l4_per1__mmc1,
3348 &dra7xx_l4_per1__mmc2,
3349 &dra7xx_l4_per1__mmc3,
3350 &dra7xx_l4_per1__mmc4,
3351 &dra7xx_l4_cfg__mpu,
3352 &dra7xx_l4_cfg__ocp2scp1,
3353 &dra7xx_l4_cfg__ocp2scp3,
3354 &dra7xx_l3_main_1__pciess1,
3355 &dra7xx_l4_cfg__pciess1,
3356 &dra7xx_l3_main_1__pciess2,
3357 &dra7xx_l4_cfg__pciess2,
3358 &dra7xx_l3_main_1__qspi,
3359 &dra7xx_l4_per3__rtcss,
3360 &dra7xx_l4_cfg__sata,
3361 &dra7xx_l4_cfg__smartreflex_core,
3362 &dra7xx_l4_cfg__smartreflex_mpu,
3363 &dra7xx_l4_cfg__spinlock,
3364 &dra7xx_l4_wkup__timer1,
3365 &dra7xx_l4_per1__timer2,
3366 &dra7xx_l4_per1__timer3,
3367 &dra7xx_l4_per1__timer4,
3368 &dra7xx_l4_per3__timer5,
3369 &dra7xx_l4_per3__timer6,
3370 &dra7xx_l4_per3__timer7,
3371 &dra7xx_l4_per3__timer8,
3372 &dra7xx_l4_per1__timer9,
3373 &dra7xx_l4_per1__timer10,
3374 &dra7xx_l4_per1__timer11,
3375 &dra7xx_l4_per3__timer13,
3376 &dra7xx_l4_per3__timer14,
3377 &dra7xx_l4_per3__timer15,
3378 &dra7xx_l4_per3__timer16,
3379 &dra7xx_l4_per1__uart1,
3380 &dra7xx_l4_per1__uart2,
3381 &dra7xx_l4_per1__uart3,
3382 &dra7xx_l4_per1__uart4,
3383 &dra7xx_l4_per1__uart5,
3384 &dra7xx_l4_per1__uart6,
3385 &dra7xx_l4_per2__uart7,
3386 &dra7xx_l4_per2__uart8,
3387 &dra7xx_l4_per2__uart9,
3388 &dra7xx_l4_wkup__uart10,
3389 &dra7xx_l4_per3__usb_otg_ss1,
3390 &dra7xx_l4_per3__usb_otg_ss2,
3391 &dra7xx_l4_per3__usb_otg_ss3,
3392 &dra7xx_l3_main_1__vcp1,
3393 &dra7xx_l4_per2__vcp1,
3394 &dra7xx_l3_main_1__vcp2,
3395 &dra7xx_l4_per2__vcp2,
3396 &dra7xx_l4_wkup__wd_timer2,
3400 static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
3401 &dra7xx_l4_per3__usb_otg_ss4,
3405 static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
3409 int __init dra7xx_hwmod_init(void)
3414 ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
3416 if (!ret && soc_is_dra74x())
3417 return omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
3418 else if (!ret && soc_is_dra72x())
3419 return omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);