2 * Hardware modules present on the OMAP54xx 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"
39 /* Base offset for all OMAP5 interrupts external to MPUSS */
40 #define OMAP54XX_IRQ_GIC_START 32
42 /* Base offset for all OMAP5 dma requests */
43 #define OMAP54XX_DMA_REQ_START 1
54 static struct omap_hwmod_class omap54xx_dmm_hwmod_class = {
59 static struct omap_hwmod omap54xx_dmm_hwmod = {
61 .class = &omap54xx_dmm_hwmod_class,
62 .clkdm_name = "emif_clkdm",
65 .clkctrl_offs = OMAP54XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
66 .context_offs = OMAP54XX_RM_EMIF_DMM_CONTEXT_OFFSET,
73 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
75 static struct omap_hwmod_class omap54xx_l3_hwmod_class = {
80 static struct omap_hwmod omap54xx_l3_instr_hwmod = {
82 .class = &omap54xx_l3_hwmod_class,
83 .clkdm_name = "l3instr_clkdm",
86 .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
87 .context_offs = OMAP54XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
88 .modulemode = MODULEMODE_HWCTRL,
94 static struct omap_hwmod omap54xx_l3_main_1_hwmod = {
96 .class = &omap54xx_l3_hwmod_class,
97 .clkdm_name = "l3main1_clkdm",
100 .clkctrl_offs = OMAP54XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
101 .context_offs = OMAP54XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
107 static struct omap_hwmod omap54xx_l3_main_2_hwmod = {
109 .class = &omap54xx_l3_hwmod_class,
110 .clkdm_name = "l3main2_clkdm",
113 .clkctrl_offs = OMAP54XX_CM_L3MAIN2_L3_MAIN_2_CLKCTRL_OFFSET,
114 .context_offs = OMAP54XX_RM_L3MAIN2_L3_MAIN_2_CONTEXT_OFFSET,
120 static struct omap_hwmod omap54xx_l3_main_3_hwmod = {
122 .class = &omap54xx_l3_hwmod_class,
123 .clkdm_name = "l3instr_clkdm",
126 .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_MAIN_3_CLKCTRL_OFFSET,
127 .context_offs = OMAP54XX_RM_L3INSTR_L3_MAIN_3_CONTEXT_OFFSET,
128 .modulemode = MODULEMODE_HWCTRL,
135 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
137 static struct omap_hwmod_class omap54xx_l4_hwmod_class = {
142 static struct omap_hwmod omap54xx_l4_abe_hwmod = {
144 .class = &omap54xx_l4_hwmod_class,
145 .clkdm_name = "abe_clkdm",
148 .clkctrl_offs = OMAP54XX_CM_ABE_L4_ABE_CLKCTRL_OFFSET,
149 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
155 static struct omap_hwmod omap54xx_l4_cfg_hwmod = {
157 .class = &omap54xx_l4_hwmod_class,
158 .clkdm_name = "l4cfg_clkdm",
161 .clkctrl_offs = OMAP54XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
162 .context_offs = OMAP54XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
168 static struct omap_hwmod omap54xx_l4_per_hwmod = {
170 .class = &omap54xx_l4_hwmod_class,
171 .clkdm_name = "l4per_clkdm",
174 .clkctrl_offs = OMAP54XX_CM_L4PER_L4_PER_CLKCTRL_OFFSET,
175 .context_offs = OMAP54XX_RM_L4PER_L4_PER_CONTEXT_OFFSET,
181 static struct omap_hwmod omap54xx_l4_wkup_hwmod = {
183 .class = &omap54xx_l4_hwmod_class,
184 .clkdm_name = "wkupaon_clkdm",
187 .clkctrl_offs = OMAP54XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
188 .context_offs = OMAP54XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
195 * instance(s): mpu_private
197 static struct omap_hwmod_class omap54xx_mpu_bus_hwmod_class = {
202 static struct omap_hwmod omap54xx_mpu_private_hwmod = {
203 .name = "mpu_private",
204 .class = &omap54xx_mpu_bus_hwmod_class,
205 .clkdm_name = "mpu_clkdm",
208 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
215 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
218 static struct omap_hwmod_class_sysconfig omap54xx_counter_sysc = {
221 .sysc_flags = SYSC_HAS_SIDLEMODE,
222 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
223 .sysc_fields = &omap_hwmod_sysc_type1,
226 static struct omap_hwmod_class omap54xx_counter_hwmod_class = {
228 .sysc = &omap54xx_counter_sysc,
232 static struct omap_hwmod omap54xx_counter_32k_hwmod = {
233 .name = "counter_32k",
234 .class = &omap54xx_counter_hwmod_class,
235 .clkdm_name = "wkupaon_clkdm",
236 .flags = HWMOD_SWSUP_SIDLE,
237 .main_clk = "wkupaon_iclk_mux",
240 .clkctrl_offs = OMAP54XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
241 .context_offs = OMAP54XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
248 * dma controller for data exchange between memory to memory (i.e. internal or
249 * external memory) and gp peripherals to memory or memory to gp peripherals
252 static struct omap_hwmod_class_sysconfig omap54xx_dma_sysc = {
256 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
257 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
258 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
259 SYSS_HAS_RESET_STATUS),
260 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
261 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
262 .sysc_fields = &omap_hwmod_sysc_type1,
265 static struct omap_hwmod_class omap54xx_dma_hwmod_class = {
267 .sysc = &omap54xx_dma_sysc,
271 static struct omap_dma_dev_attr dma_dev_attr = {
272 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
273 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
278 static struct omap_hwmod_irq_info omap54xx_dma_system_irqs[] = {
279 { .name = "0", .irq = 12 + OMAP54XX_IRQ_GIC_START },
280 { .name = "1", .irq = 13 + OMAP54XX_IRQ_GIC_START },
281 { .name = "2", .irq = 14 + OMAP54XX_IRQ_GIC_START },
282 { .name = "3", .irq = 15 + OMAP54XX_IRQ_GIC_START },
286 static struct omap_hwmod omap54xx_dma_system_hwmod = {
287 .name = "dma_system",
288 .class = &omap54xx_dma_hwmod_class,
289 .clkdm_name = "dma_clkdm",
290 .mpu_irqs = omap54xx_dma_system_irqs,
291 .xlate_irq = omap4_xlate_irq,
292 .main_clk = "l3_iclk_div",
295 .clkctrl_offs = OMAP54XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
296 .context_offs = OMAP54XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
299 .dev_attr = &dma_dev_attr,
304 * digital microphone controller
307 static struct omap_hwmod_class_sysconfig omap54xx_dmic_sysc = {
310 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
311 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
312 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
314 .sysc_fields = &omap_hwmod_sysc_type2,
317 static struct omap_hwmod_class omap54xx_dmic_hwmod_class = {
319 .sysc = &omap54xx_dmic_sysc,
323 static struct omap_hwmod omap54xx_dmic_hwmod = {
325 .class = &omap54xx_dmic_hwmod_class,
326 .clkdm_name = "abe_clkdm",
327 .main_clk = "dmic_gfclk",
330 .clkctrl_offs = OMAP54XX_CM_ABE_DMIC_CLKCTRL_OFFSET,
331 .context_offs = OMAP54XX_RM_ABE_DMIC_CONTEXT_OFFSET,
332 .modulemode = MODULEMODE_SWCTRL,
341 static struct omap_hwmod_class_sysconfig omap54xx_dss_sysc = {
344 .sysc_flags = SYSS_HAS_RESET_STATUS,
347 static struct omap_hwmod_class omap54xx_dss_hwmod_class = {
349 .sysc = &omap54xx_dss_sysc,
350 .reset = omap_dss_reset,
354 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
355 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
356 { .role = "sys_clk", .clk = "dss_sys_clk" },
357 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
360 static struct omap_hwmod omap54xx_dss_hwmod = {
362 .class = &omap54xx_dss_hwmod_class,
363 .clkdm_name = "dss_clkdm",
364 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
365 .main_clk = "dss_dss_clk",
368 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
369 .context_offs = OMAP54XX_RM_DSS_DSS_CONTEXT_OFFSET,
370 .modulemode = MODULEMODE_SWCTRL,
373 .opt_clks = dss_opt_clks,
374 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
382 static struct omap_hwmod_class_sysconfig omap54xx_dispc_sysc = {
386 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
387 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
388 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
389 SYSS_HAS_RESET_STATUS),
390 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
391 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
392 .sysc_fields = &omap_hwmod_sysc_type1,
395 static struct omap_hwmod_class omap54xx_dispc_hwmod_class = {
397 .sysc = &omap54xx_dispc_sysc,
401 static struct omap_hwmod_opt_clk dss_dispc_opt_clks[] = {
402 { .role = "sys_clk", .clk = "dss_sys_clk" },
405 /* dss_dispc dev_attr */
406 static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
407 .has_framedonetv_irq = 1,
411 static struct omap_hwmod omap54xx_dss_dispc_hwmod = {
413 .class = &omap54xx_dispc_hwmod_class,
414 .clkdm_name = "dss_clkdm",
415 .main_clk = "dss_dss_clk",
418 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
419 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
422 .opt_clks = dss_dispc_opt_clks,
423 .opt_clks_cnt = ARRAY_SIZE(dss_dispc_opt_clks),
424 .dev_attr = &dss_dispc_dev_attr,
425 .parent_hwmod = &omap54xx_dss_hwmod,
430 * display serial interface controller
433 static struct omap_hwmod_class_sysconfig omap54xx_dsi1_sysc = {
437 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
438 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
439 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
440 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
441 .sysc_fields = &omap_hwmod_sysc_type1,
444 static struct omap_hwmod_class omap54xx_dsi1_hwmod_class = {
446 .sysc = &omap54xx_dsi1_sysc,
450 static struct omap_hwmod_opt_clk dss_dsi1_a_opt_clks[] = {
451 { .role = "sys_clk", .clk = "dss_sys_clk" },
454 static struct omap_hwmod omap54xx_dss_dsi1_a_hwmod = {
456 .class = &omap54xx_dsi1_hwmod_class,
457 .clkdm_name = "dss_clkdm",
458 .main_clk = "dss_dss_clk",
461 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
462 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
465 .opt_clks = dss_dsi1_a_opt_clks,
466 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_a_opt_clks),
467 .parent_hwmod = &omap54xx_dss_hwmod,
471 static struct omap_hwmod_opt_clk dss_dsi1_c_opt_clks[] = {
472 { .role = "sys_clk", .clk = "dss_sys_clk" },
475 static struct omap_hwmod omap54xx_dss_dsi1_c_hwmod = {
477 .class = &omap54xx_dsi1_hwmod_class,
478 .clkdm_name = "dss_clkdm",
479 .main_clk = "dss_dss_clk",
482 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
483 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
486 .opt_clks = dss_dsi1_c_opt_clks,
487 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_c_opt_clks),
488 .parent_hwmod = &omap54xx_dss_hwmod,
496 static struct omap_hwmod_class_sysconfig omap54xx_hdmi_sysc = {
499 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
501 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
503 .sysc_fields = &omap_hwmod_sysc_type2,
506 static struct omap_hwmod_class omap54xx_hdmi_hwmod_class = {
508 .sysc = &omap54xx_hdmi_sysc,
511 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
512 { .role = "sys_clk", .clk = "dss_sys_clk" },
515 static struct omap_hwmod omap54xx_dss_hdmi_hwmod = {
517 .class = &omap54xx_hdmi_hwmod_class,
518 .clkdm_name = "dss_clkdm",
519 .main_clk = "dss_48mhz_clk",
522 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
523 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
526 .opt_clks = dss_hdmi_opt_clks,
527 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
528 .parent_hwmod = &omap54xx_dss_hwmod,
533 * remote frame buffer interface
536 static struct omap_hwmod_class_sysconfig omap54xx_rfbi_sysc = {
540 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
541 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
542 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
543 .sysc_fields = &omap_hwmod_sysc_type1,
546 static struct omap_hwmod_class omap54xx_rfbi_hwmod_class = {
548 .sysc = &omap54xx_rfbi_sysc,
552 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
553 { .role = "ick", .clk = "l3_iclk_div" },
556 static struct omap_hwmod omap54xx_dss_rfbi_hwmod = {
558 .class = &omap54xx_rfbi_hwmod_class,
559 .clkdm_name = "dss_clkdm",
562 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
563 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
566 .opt_clks = dss_rfbi_opt_clks,
567 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
568 .parent_hwmod = &omap54xx_dss_hwmod,
573 * external memory interface no1 (wrapper)
576 static struct omap_hwmod_class_sysconfig omap54xx_emif_sysc = {
580 static struct omap_hwmod_class omap54xx_emif_hwmod_class = {
582 .sysc = &omap54xx_emif_sysc,
586 static struct omap_hwmod omap54xx_emif1_hwmod = {
588 .class = &omap54xx_emif_hwmod_class,
589 .clkdm_name = "emif_clkdm",
590 .flags = HWMOD_INIT_NO_IDLE,
591 .main_clk = "dpll_core_h11x2_ck",
594 .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF1_CLKCTRL_OFFSET,
595 .context_offs = OMAP54XX_RM_EMIF_EMIF1_CONTEXT_OFFSET,
596 .modulemode = MODULEMODE_HWCTRL,
602 static struct omap_hwmod omap54xx_emif2_hwmod = {
604 .class = &omap54xx_emif_hwmod_class,
605 .clkdm_name = "emif_clkdm",
606 .flags = HWMOD_INIT_NO_IDLE,
607 .main_clk = "dpll_core_h11x2_ck",
610 .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF2_CLKCTRL_OFFSET,
611 .context_offs = OMAP54XX_RM_EMIF_EMIF2_CONTEXT_OFFSET,
612 .modulemode = MODULEMODE_HWCTRL,
619 * general purpose io module
622 static struct omap_hwmod_class_sysconfig omap54xx_gpio_sysc = {
626 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
627 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
628 SYSS_HAS_RESET_STATUS),
629 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
631 .sysc_fields = &omap_hwmod_sysc_type1,
634 static struct omap_hwmod_class omap54xx_gpio_hwmod_class = {
636 .sysc = &omap54xx_gpio_sysc,
641 static struct omap_gpio_dev_attr gpio_dev_attr = {
647 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
648 { .role = "dbclk", .clk = "gpio1_dbclk" },
651 static struct omap_hwmod omap54xx_gpio1_hwmod = {
653 .class = &omap54xx_gpio_hwmod_class,
654 .clkdm_name = "wkupaon_clkdm",
655 .main_clk = "wkupaon_iclk_mux",
658 .clkctrl_offs = OMAP54XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
659 .context_offs = OMAP54XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
660 .modulemode = MODULEMODE_HWCTRL,
663 .opt_clks = gpio1_opt_clks,
664 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
665 .dev_attr = &gpio_dev_attr,
669 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
670 { .role = "dbclk", .clk = "gpio2_dbclk" },
673 static struct omap_hwmod omap54xx_gpio2_hwmod = {
675 .class = &omap54xx_gpio_hwmod_class,
676 .clkdm_name = "l4per_clkdm",
677 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
678 .main_clk = "l4_root_clk_div",
681 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
682 .context_offs = OMAP54XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
683 .modulemode = MODULEMODE_HWCTRL,
686 .opt_clks = gpio2_opt_clks,
687 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
688 .dev_attr = &gpio_dev_attr,
692 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
693 { .role = "dbclk", .clk = "gpio3_dbclk" },
696 static struct omap_hwmod omap54xx_gpio3_hwmod = {
698 .class = &omap54xx_gpio_hwmod_class,
699 .clkdm_name = "l4per_clkdm",
700 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
701 .main_clk = "l4_root_clk_div",
704 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
705 .context_offs = OMAP54XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
706 .modulemode = MODULEMODE_HWCTRL,
709 .opt_clks = gpio3_opt_clks,
710 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
711 .dev_attr = &gpio_dev_attr,
715 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
716 { .role = "dbclk", .clk = "gpio4_dbclk" },
719 static struct omap_hwmod omap54xx_gpio4_hwmod = {
721 .class = &omap54xx_gpio_hwmod_class,
722 .clkdm_name = "l4per_clkdm",
723 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
724 .main_clk = "l4_root_clk_div",
727 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
728 .context_offs = OMAP54XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
729 .modulemode = MODULEMODE_HWCTRL,
732 .opt_clks = gpio4_opt_clks,
733 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
734 .dev_attr = &gpio_dev_attr,
738 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
739 { .role = "dbclk", .clk = "gpio5_dbclk" },
742 static struct omap_hwmod omap54xx_gpio5_hwmod = {
744 .class = &omap54xx_gpio_hwmod_class,
745 .clkdm_name = "l4per_clkdm",
746 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
747 .main_clk = "l4_root_clk_div",
750 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
751 .context_offs = OMAP54XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
752 .modulemode = MODULEMODE_HWCTRL,
755 .opt_clks = gpio5_opt_clks,
756 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
757 .dev_attr = &gpio_dev_attr,
761 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
762 { .role = "dbclk", .clk = "gpio6_dbclk" },
765 static struct omap_hwmod omap54xx_gpio6_hwmod = {
767 .class = &omap54xx_gpio_hwmod_class,
768 .clkdm_name = "l4per_clkdm",
769 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
770 .main_clk = "l4_root_clk_div",
773 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
774 .context_offs = OMAP54XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
775 .modulemode = MODULEMODE_HWCTRL,
778 .opt_clks = gpio6_opt_clks,
779 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
780 .dev_attr = &gpio_dev_attr,
784 static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
785 { .role = "dbclk", .clk = "gpio7_dbclk" },
788 static struct omap_hwmod omap54xx_gpio7_hwmod = {
790 .class = &omap54xx_gpio_hwmod_class,
791 .clkdm_name = "l4per_clkdm",
792 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
793 .main_clk = "l4_root_clk_div",
796 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
797 .context_offs = OMAP54XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
798 .modulemode = MODULEMODE_HWCTRL,
801 .opt_clks = gpio7_opt_clks,
802 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
803 .dev_attr = &gpio_dev_attr,
807 static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
808 { .role = "dbclk", .clk = "gpio8_dbclk" },
811 static struct omap_hwmod omap54xx_gpio8_hwmod = {
813 .class = &omap54xx_gpio_hwmod_class,
814 .clkdm_name = "l4per_clkdm",
815 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
816 .main_clk = "l4_root_clk_div",
819 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
820 .context_offs = OMAP54XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
821 .modulemode = MODULEMODE_HWCTRL,
824 .opt_clks = gpio8_opt_clks,
825 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
826 .dev_attr = &gpio_dev_attr,
831 * multimaster high-speed i2c controller
834 static struct omap_hwmod_class_sysconfig omap54xx_i2c_sysc = {
837 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
838 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
839 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
840 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
842 .sysc_fields = &omap_hwmod_sysc_type1,
845 static struct omap_hwmod_class omap54xx_i2c_hwmod_class = {
847 .sysc = &omap54xx_i2c_sysc,
848 .reset = &omap_i2c_reset,
849 .rev = OMAP_I2C_IP_VERSION_2,
853 static struct omap_i2c_dev_attr i2c_dev_attr = {
854 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
858 static struct omap_hwmod omap54xx_i2c1_hwmod = {
860 .class = &omap54xx_i2c_hwmod_class,
861 .clkdm_name = "l4per_clkdm",
862 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
863 .main_clk = "func_96m_fclk",
866 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
867 .context_offs = OMAP54XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
868 .modulemode = MODULEMODE_SWCTRL,
871 .dev_attr = &i2c_dev_attr,
875 static struct omap_hwmod omap54xx_i2c2_hwmod = {
877 .class = &omap54xx_i2c_hwmod_class,
878 .clkdm_name = "l4per_clkdm",
879 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
880 .main_clk = "func_96m_fclk",
883 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
884 .context_offs = OMAP54XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
885 .modulemode = MODULEMODE_SWCTRL,
888 .dev_attr = &i2c_dev_attr,
892 static struct omap_hwmod omap54xx_i2c3_hwmod = {
894 .class = &omap54xx_i2c_hwmod_class,
895 .clkdm_name = "l4per_clkdm",
896 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
897 .main_clk = "func_96m_fclk",
900 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
901 .context_offs = OMAP54XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
902 .modulemode = MODULEMODE_SWCTRL,
905 .dev_attr = &i2c_dev_attr,
909 static struct omap_hwmod omap54xx_i2c4_hwmod = {
911 .class = &omap54xx_i2c_hwmod_class,
912 .clkdm_name = "l4per_clkdm",
913 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
914 .main_clk = "func_96m_fclk",
917 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
918 .context_offs = OMAP54XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
919 .modulemode = MODULEMODE_SWCTRL,
922 .dev_attr = &i2c_dev_attr,
926 static struct omap_hwmod omap54xx_i2c5_hwmod = {
928 .class = &omap54xx_i2c_hwmod_class,
929 .clkdm_name = "l4per_clkdm",
930 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
931 .main_clk = "func_96m_fclk",
934 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C5_CLKCTRL_OFFSET,
935 .context_offs = OMAP54XX_RM_L4PER_I2C5_CONTEXT_OFFSET,
936 .modulemode = MODULEMODE_SWCTRL,
939 .dev_attr = &i2c_dev_attr,
944 * keyboard controller
947 static struct omap_hwmod_class_sysconfig omap54xx_kbd_sysc = {
950 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
952 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
953 .sysc_fields = &omap_hwmod_sysc_type1,
956 static struct omap_hwmod_class omap54xx_kbd_hwmod_class = {
958 .sysc = &omap54xx_kbd_sysc,
962 static struct omap_hwmod omap54xx_kbd_hwmod = {
964 .class = &omap54xx_kbd_hwmod_class,
965 .clkdm_name = "wkupaon_clkdm",
966 .main_clk = "sys_32k_ck",
969 .clkctrl_offs = OMAP54XX_CM_WKUPAON_KBD_CLKCTRL_OFFSET,
970 .context_offs = OMAP54XX_RM_WKUPAON_KBD_CONTEXT_OFFSET,
971 .modulemode = MODULEMODE_SWCTRL,
978 * mailbox module allowing communication between the on-chip processors using a
979 * queued mailbox-interrupt mechanism.
982 static struct omap_hwmod_class_sysconfig omap54xx_mailbox_sysc = {
985 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
987 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
988 .sysc_fields = &omap_hwmod_sysc_type2,
991 static struct omap_hwmod_class omap54xx_mailbox_hwmod_class = {
993 .sysc = &omap54xx_mailbox_sysc,
997 static struct omap_hwmod omap54xx_mailbox_hwmod = {
999 .class = &omap54xx_mailbox_hwmod_class,
1000 .clkdm_name = "l4cfg_clkdm",
1003 .clkctrl_offs = OMAP54XX_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
1004 .context_offs = OMAP54XX_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
1011 * multi channel buffered serial port controller
1014 static struct omap_hwmod_class_sysconfig omap54xx_mcbsp_sysc = {
1015 .sysc_offs = 0x008c,
1016 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1017 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1018 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1019 .sysc_fields = &omap_hwmod_sysc_type1,
1022 static struct omap_hwmod_class omap54xx_mcbsp_hwmod_class = {
1024 .sysc = &omap54xx_mcbsp_sysc,
1025 .rev = MCBSP_CONFIG_TYPE4,
1029 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1030 { .role = "pad_fck", .clk = "pad_clks_ck" },
1031 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
1034 static struct omap_hwmod omap54xx_mcbsp1_hwmod = {
1036 .class = &omap54xx_mcbsp_hwmod_class,
1037 .clkdm_name = "abe_clkdm",
1038 .main_clk = "mcbsp1_gfclk",
1041 .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP1_CLKCTRL_OFFSET,
1042 .context_offs = OMAP54XX_RM_ABE_MCBSP1_CONTEXT_OFFSET,
1043 .modulemode = MODULEMODE_SWCTRL,
1046 .opt_clks = mcbsp1_opt_clks,
1047 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
1051 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1052 { .role = "pad_fck", .clk = "pad_clks_ck" },
1053 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
1056 static struct omap_hwmod omap54xx_mcbsp2_hwmod = {
1058 .class = &omap54xx_mcbsp_hwmod_class,
1059 .clkdm_name = "abe_clkdm",
1060 .main_clk = "mcbsp2_gfclk",
1063 .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP2_CLKCTRL_OFFSET,
1064 .context_offs = OMAP54XX_RM_ABE_MCBSP2_CONTEXT_OFFSET,
1065 .modulemode = MODULEMODE_SWCTRL,
1068 .opt_clks = mcbsp2_opt_clks,
1069 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
1073 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1074 { .role = "pad_fck", .clk = "pad_clks_ck" },
1075 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
1078 static struct omap_hwmod omap54xx_mcbsp3_hwmod = {
1080 .class = &omap54xx_mcbsp_hwmod_class,
1081 .clkdm_name = "abe_clkdm",
1082 .main_clk = "mcbsp3_gfclk",
1085 .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP3_CLKCTRL_OFFSET,
1086 .context_offs = OMAP54XX_RM_ABE_MCBSP3_CONTEXT_OFFSET,
1087 .modulemode = MODULEMODE_SWCTRL,
1090 .opt_clks = mcbsp3_opt_clks,
1091 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
1096 * multi channel pdm controller (proprietary interface with phoenix power
1100 static struct omap_hwmod_class_sysconfig omap54xx_mcpdm_sysc = {
1102 .sysc_offs = 0x0010,
1103 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1104 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1105 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1107 .sysc_fields = &omap_hwmod_sysc_type2,
1110 static struct omap_hwmod_class omap54xx_mcpdm_hwmod_class = {
1112 .sysc = &omap54xx_mcpdm_sysc,
1116 static struct omap_hwmod omap54xx_mcpdm_hwmod = {
1118 .class = &omap54xx_mcpdm_hwmod_class,
1119 .clkdm_name = "abe_clkdm",
1121 * It's suspected that the McPDM requires an off-chip main
1122 * functional clock, controlled via I2C. This IP block is
1123 * currently reset very early during boot, before I2C is
1124 * available, so it doesn't seem that we have any choice in
1125 * the kernel other than to avoid resetting it. XXX This is
1126 * really a hardware issue workaround: every IP block should
1127 * be able to source its main functional clock from either
1128 * on-chip or off-chip sources. McPDM seems to be the only
1129 * current exception.
1132 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1133 .main_clk = "pad_clks_ck",
1136 .clkctrl_offs = OMAP54XX_CM_ABE_MCPDM_CLKCTRL_OFFSET,
1137 .context_offs = OMAP54XX_RM_ABE_MCPDM_CONTEXT_OFFSET,
1138 .modulemode = MODULEMODE_SWCTRL,
1145 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1149 static struct omap_hwmod_class_sysconfig omap54xx_mcspi_sysc = {
1151 .sysc_offs = 0x0010,
1152 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1153 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1154 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1156 .sysc_fields = &omap_hwmod_sysc_type2,
1159 static struct omap_hwmod_class omap54xx_mcspi_hwmod_class = {
1161 .sysc = &omap54xx_mcspi_sysc,
1162 .rev = OMAP4_MCSPI_REV,
1166 /* mcspi1 dev_attr */
1167 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1168 .num_chipselect = 4,
1171 static struct omap_hwmod omap54xx_mcspi1_hwmod = {
1173 .class = &omap54xx_mcspi_hwmod_class,
1174 .clkdm_name = "l4per_clkdm",
1175 .main_clk = "func_48m_fclk",
1178 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1179 .context_offs = OMAP54XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1180 .modulemode = MODULEMODE_SWCTRL,
1183 .dev_attr = &mcspi1_dev_attr,
1187 /* mcspi2 dev_attr */
1188 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1189 .num_chipselect = 2,
1192 static struct omap_hwmod omap54xx_mcspi2_hwmod = {
1194 .class = &omap54xx_mcspi_hwmod_class,
1195 .clkdm_name = "l4per_clkdm",
1196 .main_clk = "func_48m_fclk",
1199 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1200 .context_offs = OMAP54XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1201 .modulemode = MODULEMODE_SWCTRL,
1204 .dev_attr = &mcspi2_dev_attr,
1208 /* mcspi3 dev_attr */
1209 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1210 .num_chipselect = 2,
1213 static struct omap_hwmod omap54xx_mcspi3_hwmod = {
1215 .class = &omap54xx_mcspi_hwmod_class,
1216 .clkdm_name = "l4per_clkdm",
1217 .main_clk = "func_48m_fclk",
1220 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1221 .context_offs = OMAP54XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1222 .modulemode = MODULEMODE_SWCTRL,
1225 .dev_attr = &mcspi3_dev_attr,
1229 /* mcspi4 dev_attr */
1230 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1231 .num_chipselect = 1,
1234 static struct omap_hwmod omap54xx_mcspi4_hwmod = {
1236 .class = &omap54xx_mcspi_hwmod_class,
1237 .clkdm_name = "l4per_clkdm",
1238 .main_clk = "func_48m_fclk",
1241 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1242 .context_offs = OMAP54XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1243 .modulemode = MODULEMODE_SWCTRL,
1246 .dev_attr = &mcspi4_dev_attr,
1251 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1254 static struct omap_hwmod_class_sysconfig omap54xx_mmc_sysc = {
1256 .sysc_offs = 0x0010,
1257 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1258 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1259 SYSC_HAS_SOFTRESET),
1260 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1261 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1262 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1263 .sysc_fields = &omap_hwmod_sysc_type2,
1266 static struct omap_hwmod_class omap54xx_mmc_hwmod_class = {
1268 .sysc = &omap54xx_mmc_sysc,
1272 static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1273 { .role = "32khz_clk", .clk = "mmc1_32khz_clk" },
1277 static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
1278 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1281 static struct omap_hwmod omap54xx_mmc1_hwmod = {
1283 .class = &omap54xx_mmc_hwmod_class,
1284 .clkdm_name = "l3init_clkdm",
1285 .main_clk = "mmc1_fclk",
1288 .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1289 .context_offs = OMAP54XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1290 .modulemode = MODULEMODE_SWCTRL,
1293 .opt_clks = mmc1_opt_clks,
1294 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1295 .dev_attr = &mmc1_dev_attr,
1299 static struct omap_hwmod omap54xx_mmc2_hwmod = {
1301 .class = &omap54xx_mmc_hwmod_class,
1302 .clkdm_name = "l3init_clkdm",
1303 .main_clk = "mmc2_fclk",
1306 .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1307 .context_offs = OMAP54XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1308 .modulemode = MODULEMODE_SWCTRL,
1314 static struct omap_hwmod omap54xx_mmc3_hwmod = {
1316 .class = &omap54xx_mmc_hwmod_class,
1317 .clkdm_name = "l4per_clkdm",
1318 .main_clk = "func_48m_fclk",
1321 .clkctrl_offs = OMAP54XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1322 .context_offs = OMAP54XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1323 .modulemode = MODULEMODE_SWCTRL,
1329 static struct omap_hwmod omap54xx_mmc4_hwmod = {
1331 .class = &omap54xx_mmc_hwmod_class,
1332 .clkdm_name = "l4per_clkdm",
1333 .main_clk = "func_48m_fclk",
1336 .clkctrl_offs = OMAP54XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1337 .context_offs = OMAP54XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1338 .modulemode = MODULEMODE_SWCTRL,
1344 static struct omap_hwmod omap54xx_mmc5_hwmod = {
1346 .class = &omap54xx_mmc_hwmod_class,
1347 .clkdm_name = "l4per_clkdm",
1348 .main_clk = "func_96m_fclk",
1351 .clkctrl_offs = OMAP54XX_CM_L4PER_MMC5_CLKCTRL_OFFSET,
1352 .context_offs = OMAP54XX_RM_L4PER_MMC5_CONTEXT_OFFSET,
1353 .modulemode = MODULEMODE_SWCTRL,
1360 * The memory management unit performs virtual to physical address translation
1361 * for its requestors.
1364 static struct omap_hwmod_class_sysconfig omap54xx_mmu_sysc = {
1366 .sysc_offs = 0x0010,
1367 .syss_offs = 0x0014,
1368 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1369 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1370 SYSS_HAS_RESET_STATUS),
1371 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1372 .sysc_fields = &omap_hwmod_sysc_type1,
1375 static struct omap_hwmod_class omap54xx_mmu_hwmod_class = {
1377 .sysc = &omap54xx_mmu_sysc,
1380 static struct omap_hwmod_rst_info omap54xx_mmu_dsp_resets[] = {
1381 { .name = "mmu_cache", .rst_shift = 1 },
1384 static struct omap_hwmod omap54xx_mmu_dsp_hwmod = {
1386 .class = &omap54xx_mmu_hwmod_class,
1387 .clkdm_name = "dsp_clkdm",
1388 .rst_lines = omap54xx_mmu_dsp_resets,
1389 .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_dsp_resets),
1390 .main_clk = "dpll_iva_h11x2_ck",
1393 .clkctrl_offs = OMAP54XX_CM_DSP_DSP_CLKCTRL_OFFSET,
1394 .rstctrl_offs = OMAP54XX_RM_DSP_RSTCTRL_OFFSET,
1395 .context_offs = OMAP54XX_RM_DSP_DSP_CONTEXT_OFFSET,
1396 .modulemode = MODULEMODE_HWCTRL,
1402 static struct omap_hwmod_rst_info omap54xx_mmu_ipu_resets[] = {
1403 { .name = "mmu_cache", .rst_shift = 2 },
1406 static struct omap_hwmod omap54xx_mmu_ipu_hwmod = {
1408 .class = &omap54xx_mmu_hwmod_class,
1409 .clkdm_name = "ipu_clkdm",
1410 .rst_lines = omap54xx_mmu_ipu_resets,
1411 .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_ipu_resets),
1412 .main_clk = "dpll_core_h22x2_ck",
1415 .clkctrl_offs = OMAP54XX_CM_IPU_IPU_CLKCTRL_OFFSET,
1416 .rstctrl_offs = OMAP54XX_RM_IPU_RSTCTRL_OFFSET,
1417 .context_offs = OMAP54XX_RM_IPU_IPU_CONTEXT_OFFSET,
1418 .modulemode = MODULEMODE_HWCTRL,
1428 static struct omap_hwmod_class omap54xx_mpu_hwmod_class = {
1433 static struct omap_hwmod omap54xx_mpu_hwmod = {
1435 .class = &omap54xx_mpu_hwmod_class,
1436 .clkdm_name = "mpu_clkdm",
1437 .flags = HWMOD_INIT_NO_IDLE,
1438 .main_clk = "dpll_mpu_m2_ck",
1441 .clkctrl_offs = OMAP54XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1442 .context_offs = OMAP54XX_RM_MPU_MPU_CONTEXT_OFFSET,
1449 * spinlock provides hardware assistance for synchronizing the processes
1450 * running on multiple processors
1453 static struct omap_hwmod_class_sysconfig omap54xx_spinlock_sysc = {
1455 .sysc_offs = 0x0010,
1456 .syss_offs = 0x0014,
1457 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1458 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1459 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1460 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1461 .sysc_fields = &omap_hwmod_sysc_type1,
1464 static struct omap_hwmod_class omap54xx_spinlock_hwmod_class = {
1466 .sysc = &omap54xx_spinlock_sysc,
1470 static struct omap_hwmod omap54xx_spinlock_hwmod = {
1472 .class = &omap54xx_spinlock_hwmod_class,
1473 .clkdm_name = "l4cfg_clkdm",
1476 .clkctrl_offs = OMAP54XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
1477 .context_offs = OMAP54XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
1484 * bridge to transform ocp interface protocol to scp (serial control port)
1488 static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc = {
1490 .sysc_offs = 0x0010,
1491 .syss_offs = 0x0014,
1492 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1493 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1494 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1495 .sysc_fields = &omap_hwmod_sysc_type1,
1498 static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
1500 .sysc = &omap54xx_ocp2scp_sysc,
1504 static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
1506 .class = &omap54xx_ocp2scp_hwmod_class,
1507 .clkdm_name = "l3init_clkdm",
1508 .main_clk = "l4_root_clk_div",
1511 .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1512 .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1513 .modulemode = MODULEMODE_HWCTRL,
1520 * general purpose timer module with accurate 1ms tick
1521 * This class contains several variants: ['timer_1ms', 'timer']
1524 static struct omap_hwmod_class_sysconfig omap54xx_timer_1ms_sysc = {
1526 .sysc_offs = 0x0010,
1527 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1528 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1529 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1531 .sysc_fields = &omap_hwmod_sysc_type2,
1534 static struct omap_hwmod_class omap54xx_timer_1ms_hwmod_class = {
1536 .sysc = &omap54xx_timer_1ms_sysc,
1539 static struct omap_hwmod_class_sysconfig omap54xx_timer_sysc = {
1541 .sysc_offs = 0x0010,
1542 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1543 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1544 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1546 .sysc_fields = &omap_hwmod_sysc_type2,
1549 static struct omap_hwmod_class omap54xx_timer_hwmod_class = {
1551 .sysc = &omap54xx_timer_sysc,
1555 static struct omap_hwmod omap54xx_timer1_hwmod = {
1557 .class = &omap54xx_timer_1ms_hwmod_class,
1558 .clkdm_name = "wkupaon_clkdm",
1559 .main_clk = "timer1_gfclk_mux",
1560 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1563 .clkctrl_offs = OMAP54XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
1564 .context_offs = OMAP54XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
1565 .modulemode = MODULEMODE_SWCTRL,
1571 static struct omap_hwmod omap54xx_timer2_hwmod = {
1573 .class = &omap54xx_timer_1ms_hwmod_class,
1574 .clkdm_name = "l4per_clkdm",
1575 .main_clk = "timer2_gfclk_mux",
1576 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1579 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
1580 .context_offs = OMAP54XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
1581 .modulemode = MODULEMODE_SWCTRL,
1587 static struct omap_hwmod omap54xx_timer3_hwmod = {
1589 .class = &omap54xx_timer_hwmod_class,
1590 .clkdm_name = "l4per_clkdm",
1591 .main_clk = "timer3_gfclk_mux",
1594 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
1595 .context_offs = OMAP54XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
1596 .modulemode = MODULEMODE_SWCTRL,
1602 static struct omap_hwmod omap54xx_timer4_hwmod = {
1604 .class = &omap54xx_timer_hwmod_class,
1605 .clkdm_name = "l4per_clkdm",
1606 .main_clk = "timer4_gfclk_mux",
1609 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
1610 .context_offs = OMAP54XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
1611 .modulemode = MODULEMODE_SWCTRL,
1617 static struct omap_hwmod omap54xx_timer5_hwmod = {
1619 .class = &omap54xx_timer_hwmod_class,
1620 .clkdm_name = "abe_clkdm",
1621 .main_clk = "timer5_gfclk_mux",
1624 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER5_CLKCTRL_OFFSET,
1625 .context_offs = OMAP54XX_RM_ABE_TIMER5_CONTEXT_OFFSET,
1626 .modulemode = MODULEMODE_SWCTRL,
1632 static struct omap_hwmod omap54xx_timer6_hwmod = {
1634 .class = &omap54xx_timer_hwmod_class,
1635 .clkdm_name = "abe_clkdm",
1636 .main_clk = "timer6_gfclk_mux",
1639 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER6_CLKCTRL_OFFSET,
1640 .context_offs = OMAP54XX_RM_ABE_TIMER6_CONTEXT_OFFSET,
1641 .modulemode = MODULEMODE_SWCTRL,
1647 static struct omap_hwmod omap54xx_timer7_hwmod = {
1649 .class = &omap54xx_timer_hwmod_class,
1650 .clkdm_name = "abe_clkdm",
1651 .main_clk = "timer7_gfclk_mux",
1654 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER7_CLKCTRL_OFFSET,
1655 .context_offs = OMAP54XX_RM_ABE_TIMER7_CONTEXT_OFFSET,
1656 .modulemode = MODULEMODE_SWCTRL,
1662 static struct omap_hwmod omap54xx_timer8_hwmod = {
1664 .class = &omap54xx_timer_hwmod_class,
1665 .clkdm_name = "abe_clkdm",
1666 .main_clk = "timer8_gfclk_mux",
1669 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER8_CLKCTRL_OFFSET,
1670 .context_offs = OMAP54XX_RM_ABE_TIMER8_CONTEXT_OFFSET,
1671 .modulemode = MODULEMODE_SWCTRL,
1677 static struct omap_hwmod omap54xx_timer9_hwmod = {
1679 .class = &omap54xx_timer_hwmod_class,
1680 .clkdm_name = "l4per_clkdm",
1681 .main_clk = "timer9_gfclk_mux",
1684 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
1685 .context_offs = OMAP54XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
1686 .modulemode = MODULEMODE_SWCTRL,
1692 static struct omap_hwmod omap54xx_timer10_hwmod = {
1694 .class = &omap54xx_timer_1ms_hwmod_class,
1695 .clkdm_name = "l4per_clkdm",
1696 .main_clk = "timer10_gfclk_mux",
1697 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1700 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
1701 .context_offs = OMAP54XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
1702 .modulemode = MODULEMODE_SWCTRL,
1708 static struct omap_hwmod omap54xx_timer11_hwmod = {
1710 .class = &omap54xx_timer_hwmod_class,
1711 .clkdm_name = "l4per_clkdm",
1712 .main_clk = "timer11_gfclk_mux",
1715 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
1716 .context_offs = OMAP54XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
1717 .modulemode = MODULEMODE_SWCTRL,
1724 * universal asynchronous receiver/transmitter (uart)
1727 static struct omap_hwmod_class_sysconfig omap54xx_uart_sysc = {
1729 .sysc_offs = 0x0054,
1730 .syss_offs = 0x0058,
1731 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1732 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1733 SYSS_HAS_RESET_STATUS),
1734 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1736 .sysc_fields = &omap_hwmod_sysc_type1,
1739 static struct omap_hwmod_class omap54xx_uart_hwmod_class = {
1741 .sysc = &omap54xx_uart_sysc,
1745 static struct omap_hwmod omap54xx_uart1_hwmod = {
1747 .class = &omap54xx_uart_hwmod_class,
1748 .clkdm_name = "l4per_clkdm",
1749 .flags = HWMOD_SWSUP_SIDLE_ACT,
1750 .main_clk = "func_48m_fclk",
1753 .clkctrl_offs = OMAP54XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
1754 .context_offs = OMAP54XX_RM_L4PER_UART1_CONTEXT_OFFSET,
1755 .modulemode = MODULEMODE_SWCTRL,
1761 static struct omap_hwmod omap54xx_uart2_hwmod = {
1763 .class = &omap54xx_uart_hwmod_class,
1764 .clkdm_name = "l4per_clkdm",
1765 .flags = HWMOD_SWSUP_SIDLE_ACT,
1766 .main_clk = "func_48m_fclk",
1769 .clkctrl_offs = OMAP54XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
1770 .context_offs = OMAP54XX_RM_L4PER_UART2_CONTEXT_OFFSET,
1771 .modulemode = MODULEMODE_SWCTRL,
1777 static struct omap_hwmod omap54xx_uart3_hwmod = {
1779 .class = &omap54xx_uart_hwmod_class,
1780 .clkdm_name = "l4per_clkdm",
1781 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
1782 .main_clk = "func_48m_fclk",
1785 .clkctrl_offs = OMAP54XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
1786 .context_offs = OMAP54XX_RM_L4PER_UART3_CONTEXT_OFFSET,
1787 .modulemode = MODULEMODE_SWCTRL,
1793 static struct omap_hwmod omap54xx_uart4_hwmod = {
1795 .class = &omap54xx_uart_hwmod_class,
1796 .clkdm_name = "l4per_clkdm",
1797 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
1798 .main_clk = "func_48m_fclk",
1801 .clkctrl_offs = OMAP54XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
1802 .context_offs = OMAP54XX_RM_L4PER_UART4_CONTEXT_OFFSET,
1803 .modulemode = MODULEMODE_SWCTRL,
1809 static struct omap_hwmod omap54xx_uart5_hwmod = {
1811 .class = &omap54xx_uart_hwmod_class,
1812 .clkdm_name = "l4per_clkdm",
1813 .flags = HWMOD_SWSUP_SIDLE_ACT,
1814 .main_clk = "func_48m_fclk",
1817 .clkctrl_offs = OMAP54XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
1818 .context_offs = OMAP54XX_RM_L4PER_UART5_CONTEXT_OFFSET,
1819 .modulemode = MODULEMODE_SWCTRL,
1825 static struct omap_hwmod omap54xx_uart6_hwmod = {
1827 .class = &omap54xx_uart_hwmod_class,
1828 .clkdm_name = "l4per_clkdm",
1829 .flags = HWMOD_SWSUP_SIDLE_ACT,
1830 .main_clk = "func_48m_fclk",
1833 .clkctrl_offs = OMAP54XX_CM_L4PER_UART6_CLKCTRL_OFFSET,
1834 .context_offs = OMAP54XX_RM_L4PER_UART6_CONTEXT_OFFSET,
1835 .modulemode = MODULEMODE_SWCTRL,
1841 * 'usb_host_hs' class
1842 * high-speed multi-port usb host controller
1845 static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc = {
1847 .sysc_offs = 0x0010,
1848 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1849 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1850 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1851 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1852 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1853 .sysc_fields = &omap_hwmod_sysc_type2,
1856 static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class = {
1857 .name = "usb_host_hs",
1858 .sysc = &omap54xx_usb_host_hs_sysc,
1861 static struct omap_hwmod omap54xx_usb_host_hs_hwmod = {
1862 .name = "usb_host_hs",
1863 .class = &omap54xx_usb_host_hs_hwmod_class,
1864 .clkdm_name = "l3init_clkdm",
1866 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1870 * In the following configuration :
1871 * - USBHOST module is set to smart-idle mode
1872 * - PRCM asserts idle_req to the USBHOST module ( This typically
1873 * happens when the system is going to a low power mode : all ports
1874 * have been suspended, the master part of the USBHOST module has
1875 * entered the standby state, and SW has cut the functional clocks)
1876 * - an USBHOST interrupt occurs before the module is able to answer
1877 * idle_ack, typically a remote wakeup IRQ.
1878 * Then the USB HOST module will enter a deadlock situation where it
1879 * is no more accessible nor functional.
1882 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1886 * Errata: USB host EHCI may stall when entering smart-standby mode
1890 * When the USBHOST module is set to smart-standby mode, and when it is
1891 * ready to enter the standby state (i.e. all ports are suspended and
1892 * all attached devices are in suspend mode), then it can wrongly assert
1893 * the Mstandby signal too early while there are still some residual OCP
1894 * transactions ongoing. If this condition occurs, the internal state
1895 * machine may go to an undefined state and the USB link may be stuck
1896 * upon the next resume.
1899 * Don't use smart standby; use only force standby,
1900 * hence HWMOD_SWSUP_MSTANDBY
1903 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1904 .main_clk = "l3init_60m_fclk",
1907 .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET,
1908 .context_offs = OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET,
1909 .modulemode = MODULEMODE_SWCTRL,
1915 * 'usb_tll_hs' class
1916 * usb_tll_hs module is the adapter on the usb_host_hs ports
1919 static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc = {
1921 .sysc_offs = 0x0010,
1922 .syss_offs = 0x0014,
1923 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1924 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1925 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1926 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1927 .sysc_fields = &omap_hwmod_sysc_type1,
1930 static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class = {
1931 .name = "usb_tll_hs",
1932 .sysc = &omap54xx_usb_tll_hs_sysc,
1935 static struct omap_hwmod omap54xx_usb_tll_hs_hwmod = {
1936 .name = "usb_tll_hs",
1937 .class = &omap54xx_usb_tll_hs_hwmod_class,
1938 .clkdm_name = "l3init_clkdm",
1939 .main_clk = "l4_root_clk_div",
1942 .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET,
1943 .context_offs = OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET,
1944 .modulemode = MODULEMODE_HWCTRL,
1950 * 'usb_otg_ss' class
1951 * 2.0 super speed (usb_otg_ss) controller
1954 static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc = {
1956 .sysc_offs = 0x0010,
1957 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
1958 SYSC_HAS_SIDLEMODE),
1959 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1960 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1961 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1962 .sysc_fields = &omap_hwmod_sysc_type2,
1965 static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class = {
1966 .name = "usb_otg_ss",
1967 .sysc = &omap54xx_usb_otg_ss_sysc,
1971 static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks[] = {
1972 { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" },
1975 static struct omap_hwmod omap54xx_usb_otg_ss_hwmod = {
1976 .name = "usb_otg_ss",
1977 .class = &omap54xx_usb_otg_ss_hwmod_class,
1978 .clkdm_name = "l3init_clkdm",
1979 .flags = HWMOD_SWSUP_SIDLE,
1980 .main_clk = "dpll_core_h13x2_ck",
1983 .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET,
1984 .context_offs = OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET,
1985 .modulemode = MODULEMODE_HWCTRL,
1988 .opt_clks = usb_otg_ss_opt_clks,
1989 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss_opt_clks),
1994 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1995 * overflow condition
1998 static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc = {
2000 .sysc_offs = 0x0010,
2001 .syss_offs = 0x0014,
2002 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2003 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2004 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2006 .sysc_fields = &omap_hwmod_sysc_type1,
2009 static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class = {
2011 .sysc = &omap54xx_wd_timer_sysc,
2012 .pre_shutdown = &omap2_wd_timer_disable,
2016 static struct omap_hwmod omap54xx_wd_timer2_hwmod = {
2017 .name = "wd_timer2",
2018 .class = &omap54xx_wd_timer_hwmod_class,
2019 .clkdm_name = "wkupaon_clkdm",
2020 .main_clk = "sys_32k_ck",
2023 .clkctrl_offs = OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
2024 .context_offs = OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
2025 .modulemode = MODULEMODE_SWCTRL,
2032 * bridge to transform ocp interface protocol to scp (serial control port)
2036 static struct omap_hwmod omap54xx_ocp2scp3_hwmod;
2037 /* l4_cfg -> ocp2scp3 */
2038 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp3 = {
2039 .master = &omap54xx_l4_cfg_hwmod,
2040 .slave = &omap54xx_ocp2scp3_hwmod,
2041 .clk = "l4_root_clk_div",
2042 .user = OCP_USER_MPU | OCP_USER_SDMA,
2045 static struct omap_hwmod omap54xx_ocp2scp3_hwmod = {
2047 .class = &omap54xx_ocp2scp_hwmod_class,
2048 .clkdm_name = "l3init_clkdm",
2051 .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
2052 .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
2053 .modulemode = MODULEMODE_HWCTRL,
2060 * sata: serial ata interface gen2 compliant ( 1 rx/ 1 tx)
2063 static struct omap_hwmod_class_sysconfig omap54xx_sata_sysc = {
2064 .sysc_offs = 0x0000,
2065 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
2066 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2067 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2068 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2069 .sysc_fields = &omap_hwmod_sysc_type2,
2072 static struct omap_hwmod_class omap54xx_sata_hwmod_class = {
2074 .sysc = &omap54xx_sata_sysc,
2078 static struct omap_hwmod omap54xx_sata_hwmod = {
2080 .class = &omap54xx_sata_hwmod_class,
2081 .clkdm_name = "l3init_clkdm",
2082 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2083 .main_clk = "func_48m_fclk",
2087 .clkctrl_offs = OMAP54XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
2088 .context_offs = OMAP54XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
2089 .modulemode = MODULEMODE_SWCTRL,
2094 /* l4_cfg -> sata */
2095 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__sata = {
2096 .master = &omap54xx_l4_cfg_hwmod,
2097 .slave = &omap54xx_sata_hwmod,
2098 .clk = "l3_iclk_div",
2099 .user = OCP_USER_MPU | OCP_USER_SDMA,
2106 /* l3_main_1 -> dmm */
2107 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm = {
2108 .master = &omap54xx_l3_main_1_hwmod,
2109 .slave = &omap54xx_dmm_hwmod,
2110 .clk = "l3_iclk_div",
2111 .user = OCP_USER_SDMA,
2114 /* l3_main_3 -> l3_instr */
2115 static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr = {
2116 .master = &omap54xx_l3_main_3_hwmod,
2117 .slave = &omap54xx_l3_instr_hwmod,
2118 .clk = "l3_iclk_div",
2119 .user = OCP_USER_MPU | OCP_USER_SDMA,
2122 /* l3_main_2 -> l3_main_1 */
2123 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1 = {
2124 .master = &omap54xx_l3_main_2_hwmod,
2125 .slave = &omap54xx_l3_main_1_hwmod,
2126 .clk = "l3_iclk_div",
2127 .user = OCP_USER_MPU | OCP_USER_SDMA,
2130 /* l4_cfg -> l3_main_1 */
2131 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1 = {
2132 .master = &omap54xx_l4_cfg_hwmod,
2133 .slave = &omap54xx_l3_main_1_hwmod,
2134 .clk = "l3_iclk_div",
2135 .user = OCP_USER_MPU | OCP_USER_SDMA,
2138 /* l4_cfg -> mmu_dsp */
2139 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mmu_dsp = {
2140 .master = &omap54xx_l4_cfg_hwmod,
2141 .slave = &omap54xx_mmu_dsp_hwmod,
2142 .clk = "l4_root_clk_div",
2143 .user = OCP_USER_MPU | OCP_USER_SDMA,
2146 /* mpu -> l3_main_1 */
2147 static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1 = {
2148 .master = &omap54xx_mpu_hwmod,
2149 .slave = &omap54xx_l3_main_1_hwmod,
2150 .clk = "l3_iclk_div",
2151 .user = OCP_USER_MPU,
2154 /* l3_main_1 -> l3_main_2 */
2155 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2 = {
2156 .master = &omap54xx_l3_main_1_hwmod,
2157 .slave = &omap54xx_l3_main_2_hwmod,
2158 .clk = "l3_iclk_div",
2159 .user = OCP_USER_MPU,
2162 /* l4_cfg -> l3_main_2 */
2163 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2 = {
2164 .master = &omap54xx_l4_cfg_hwmod,
2165 .slave = &omap54xx_l3_main_2_hwmod,
2166 .clk = "l3_iclk_div",
2167 .user = OCP_USER_MPU | OCP_USER_SDMA,
2170 /* l3_main_2 -> mmu_ipu */
2171 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__mmu_ipu = {
2172 .master = &omap54xx_l3_main_2_hwmod,
2173 .slave = &omap54xx_mmu_ipu_hwmod,
2174 .clk = "l3_iclk_div",
2175 .user = OCP_USER_MPU | OCP_USER_SDMA,
2178 /* l3_main_1 -> l3_main_3 */
2179 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3 = {
2180 .master = &omap54xx_l3_main_1_hwmod,
2181 .slave = &omap54xx_l3_main_3_hwmod,
2182 .clk = "l3_iclk_div",
2183 .user = OCP_USER_MPU,
2186 /* l3_main_2 -> l3_main_3 */
2187 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3 = {
2188 .master = &omap54xx_l3_main_2_hwmod,
2189 .slave = &omap54xx_l3_main_3_hwmod,
2190 .clk = "l3_iclk_div",
2191 .user = OCP_USER_MPU | OCP_USER_SDMA,
2194 /* l4_cfg -> l3_main_3 */
2195 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
2196 .master = &omap54xx_l4_cfg_hwmod,
2197 .slave = &omap54xx_l3_main_3_hwmod,
2198 .clk = "l3_iclk_div",
2199 .user = OCP_USER_MPU | OCP_USER_SDMA,
2202 /* l3_main_1 -> l4_abe */
2203 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe = {
2204 .master = &omap54xx_l3_main_1_hwmod,
2205 .slave = &omap54xx_l4_abe_hwmod,
2207 .user = OCP_USER_MPU | OCP_USER_SDMA,
2211 static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe = {
2212 .master = &omap54xx_mpu_hwmod,
2213 .slave = &omap54xx_l4_abe_hwmod,
2215 .user = OCP_USER_MPU | OCP_USER_SDMA,
2218 /* l3_main_1 -> l4_cfg */
2219 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg = {
2220 .master = &omap54xx_l3_main_1_hwmod,
2221 .slave = &omap54xx_l4_cfg_hwmod,
2222 .clk = "l4_root_clk_div",
2223 .user = OCP_USER_MPU | OCP_USER_SDMA,
2226 /* l3_main_2 -> l4_per */
2227 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per = {
2228 .master = &omap54xx_l3_main_2_hwmod,
2229 .slave = &omap54xx_l4_per_hwmod,
2230 .clk = "l4_root_clk_div",
2231 .user = OCP_USER_MPU | OCP_USER_SDMA,
2234 /* l3_main_1 -> l4_wkup */
2235 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup = {
2236 .master = &omap54xx_l3_main_1_hwmod,
2237 .slave = &omap54xx_l4_wkup_hwmod,
2238 .clk = "wkupaon_iclk_mux",
2239 .user = OCP_USER_MPU | OCP_USER_SDMA,
2242 /* mpu -> mpu_private */
2243 static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private = {
2244 .master = &omap54xx_mpu_hwmod,
2245 .slave = &omap54xx_mpu_private_hwmod,
2246 .clk = "l3_iclk_div",
2247 .user = OCP_USER_MPU | OCP_USER_SDMA,
2250 /* l4_wkup -> counter_32k */
2251 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k = {
2252 .master = &omap54xx_l4_wkup_hwmod,
2253 .slave = &omap54xx_counter_32k_hwmod,
2254 .clk = "wkupaon_iclk_mux",
2255 .user = OCP_USER_MPU | OCP_USER_SDMA,
2258 static struct omap_hwmod_addr_space omap54xx_dma_system_addrs[] = {
2260 .pa_start = 0x4a056000,
2261 .pa_end = 0x4a056fff,
2262 .flags = ADDR_TYPE_RT
2267 /* l4_cfg -> dma_system */
2268 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system = {
2269 .master = &omap54xx_l4_cfg_hwmod,
2270 .slave = &omap54xx_dma_system_hwmod,
2271 .clk = "l4_root_clk_div",
2272 .addr = omap54xx_dma_system_addrs,
2273 .user = OCP_USER_MPU | OCP_USER_SDMA,
2276 /* l4_abe -> dmic */
2277 static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic = {
2278 .master = &omap54xx_l4_abe_hwmod,
2279 .slave = &omap54xx_dmic_hwmod,
2281 .user = OCP_USER_MPU,
2284 /* l3_main_2 -> dss */
2285 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss = {
2286 .master = &omap54xx_l3_main_2_hwmod,
2287 .slave = &omap54xx_dss_hwmod,
2288 .clk = "l3_iclk_div",
2289 .user = OCP_USER_MPU | OCP_USER_SDMA,
2292 /* l3_main_2 -> dss_dispc */
2293 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dispc = {
2294 .master = &omap54xx_l3_main_2_hwmod,
2295 .slave = &omap54xx_dss_dispc_hwmod,
2296 .clk = "l3_iclk_div",
2297 .user = OCP_USER_MPU | OCP_USER_SDMA,
2300 /* l3_main_2 -> dss_dsi1_a */
2301 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_a = {
2302 .master = &omap54xx_l3_main_2_hwmod,
2303 .slave = &omap54xx_dss_dsi1_a_hwmod,
2304 .clk = "l3_iclk_div",
2305 .user = OCP_USER_MPU | OCP_USER_SDMA,
2308 /* l3_main_2 -> dss_dsi1_c */
2309 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_c = {
2310 .master = &omap54xx_l3_main_2_hwmod,
2311 .slave = &omap54xx_dss_dsi1_c_hwmod,
2312 .clk = "l3_iclk_div",
2313 .user = OCP_USER_MPU | OCP_USER_SDMA,
2316 /* l3_main_2 -> dss_hdmi */
2317 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_hdmi = {
2318 .master = &omap54xx_l3_main_2_hwmod,
2319 .slave = &omap54xx_dss_hdmi_hwmod,
2320 .clk = "l3_iclk_div",
2321 .user = OCP_USER_MPU | OCP_USER_SDMA,
2324 /* l3_main_2 -> dss_rfbi */
2325 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_rfbi = {
2326 .master = &omap54xx_l3_main_2_hwmod,
2327 .slave = &omap54xx_dss_rfbi_hwmod,
2328 .clk = "l3_iclk_div",
2329 .user = OCP_USER_MPU | OCP_USER_SDMA,
2333 static struct omap_hwmod_ocp_if omap54xx_mpu__emif1 = {
2334 .master = &omap54xx_mpu_hwmod,
2335 .slave = &omap54xx_emif1_hwmod,
2336 .clk = "dpll_core_h11x2_ck",
2337 .user = OCP_USER_MPU | OCP_USER_SDMA,
2341 static struct omap_hwmod_ocp_if omap54xx_mpu__emif2 = {
2342 .master = &omap54xx_mpu_hwmod,
2343 .slave = &omap54xx_emif2_hwmod,
2344 .clk = "dpll_core_h11x2_ck",
2345 .user = OCP_USER_MPU | OCP_USER_SDMA,
2348 /* l4_wkup -> gpio1 */
2349 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1 = {
2350 .master = &omap54xx_l4_wkup_hwmod,
2351 .slave = &omap54xx_gpio1_hwmod,
2352 .clk = "wkupaon_iclk_mux",
2353 .user = OCP_USER_MPU | OCP_USER_SDMA,
2356 /* l4_per -> gpio2 */
2357 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2 = {
2358 .master = &omap54xx_l4_per_hwmod,
2359 .slave = &omap54xx_gpio2_hwmod,
2360 .clk = "l4_root_clk_div",
2361 .user = OCP_USER_MPU | OCP_USER_SDMA,
2364 /* l4_per -> gpio3 */
2365 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3 = {
2366 .master = &omap54xx_l4_per_hwmod,
2367 .slave = &omap54xx_gpio3_hwmod,
2368 .clk = "l4_root_clk_div",
2369 .user = OCP_USER_MPU | OCP_USER_SDMA,
2372 /* l4_per -> gpio4 */
2373 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4 = {
2374 .master = &omap54xx_l4_per_hwmod,
2375 .slave = &omap54xx_gpio4_hwmod,
2376 .clk = "l4_root_clk_div",
2377 .user = OCP_USER_MPU | OCP_USER_SDMA,
2380 /* l4_per -> gpio5 */
2381 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5 = {
2382 .master = &omap54xx_l4_per_hwmod,
2383 .slave = &omap54xx_gpio5_hwmod,
2384 .clk = "l4_root_clk_div",
2385 .user = OCP_USER_MPU | OCP_USER_SDMA,
2388 /* l4_per -> gpio6 */
2389 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6 = {
2390 .master = &omap54xx_l4_per_hwmod,
2391 .slave = &omap54xx_gpio6_hwmod,
2392 .clk = "l4_root_clk_div",
2393 .user = OCP_USER_MPU | OCP_USER_SDMA,
2396 /* l4_per -> gpio7 */
2397 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7 = {
2398 .master = &omap54xx_l4_per_hwmod,
2399 .slave = &omap54xx_gpio7_hwmod,
2400 .clk = "l4_root_clk_div",
2401 .user = OCP_USER_MPU | OCP_USER_SDMA,
2404 /* l4_per -> gpio8 */
2405 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8 = {
2406 .master = &omap54xx_l4_per_hwmod,
2407 .slave = &omap54xx_gpio8_hwmod,
2408 .clk = "l4_root_clk_div",
2409 .user = OCP_USER_MPU | OCP_USER_SDMA,
2412 /* l4_per -> i2c1 */
2413 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1 = {
2414 .master = &omap54xx_l4_per_hwmod,
2415 .slave = &omap54xx_i2c1_hwmod,
2416 .clk = "l4_root_clk_div",
2417 .user = OCP_USER_MPU | OCP_USER_SDMA,
2420 /* l4_per -> i2c2 */
2421 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2 = {
2422 .master = &omap54xx_l4_per_hwmod,
2423 .slave = &omap54xx_i2c2_hwmod,
2424 .clk = "l4_root_clk_div",
2425 .user = OCP_USER_MPU | OCP_USER_SDMA,
2428 /* l4_per -> i2c3 */
2429 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3 = {
2430 .master = &omap54xx_l4_per_hwmod,
2431 .slave = &omap54xx_i2c3_hwmod,
2432 .clk = "l4_root_clk_div",
2433 .user = OCP_USER_MPU | OCP_USER_SDMA,
2436 /* l4_per -> i2c4 */
2437 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4 = {
2438 .master = &omap54xx_l4_per_hwmod,
2439 .slave = &omap54xx_i2c4_hwmod,
2440 .clk = "l4_root_clk_div",
2441 .user = OCP_USER_MPU | OCP_USER_SDMA,
2444 /* l4_per -> i2c5 */
2445 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5 = {
2446 .master = &omap54xx_l4_per_hwmod,
2447 .slave = &omap54xx_i2c5_hwmod,
2448 .clk = "l4_root_clk_div",
2449 .user = OCP_USER_MPU | OCP_USER_SDMA,
2452 /* l4_wkup -> kbd */
2453 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd = {
2454 .master = &omap54xx_l4_wkup_hwmod,
2455 .slave = &omap54xx_kbd_hwmod,
2456 .clk = "wkupaon_iclk_mux",
2457 .user = OCP_USER_MPU | OCP_USER_SDMA,
2460 /* l4_cfg -> mailbox */
2461 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox = {
2462 .master = &omap54xx_l4_cfg_hwmod,
2463 .slave = &omap54xx_mailbox_hwmod,
2464 .clk = "l4_root_clk_div",
2465 .user = OCP_USER_MPU | OCP_USER_SDMA,
2468 /* l4_abe -> mcbsp1 */
2469 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1 = {
2470 .master = &omap54xx_l4_abe_hwmod,
2471 .slave = &omap54xx_mcbsp1_hwmod,
2473 .user = OCP_USER_MPU,
2476 /* l4_abe -> mcbsp2 */
2477 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2 = {
2478 .master = &omap54xx_l4_abe_hwmod,
2479 .slave = &omap54xx_mcbsp2_hwmod,
2481 .user = OCP_USER_MPU,
2484 /* l4_abe -> mcbsp3 */
2485 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3 = {
2486 .master = &omap54xx_l4_abe_hwmod,
2487 .slave = &omap54xx_mcbsp3_hwmod,
2489 .user = OCP_USER_MPU,
2492 /* l4_abe -> mcpdm */
2493 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm = {
2494 .master = &omap54xx_l4_abe_hwmod,
2495 .slave = &omap54xx_mcpdm_hwmod,
2497 .user = OCP_USER_MPU,
2500 /* l4_per -> mcspi1 */
2501 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1 = {
2502 .master = &omap54xx_l4_per_hwmod,
2503 .slave = &omap54xx_mcspi1_hwmod,
2504 .clk = "l4_root_clk_div",
2505 .user = OCP_USER_MPU | OCP_USER_SDMA,
2508 /* l4_per -> mcspi2 */
2509 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2 = {
2510 .master = &omap54xx_l4_per_hwmod,
2511 .slave = &omap54xx_mcspi2_hwmod,
2512 .clk = "l4_root_clk_div",
2513 .user = OCP_USER_MPU | OCP_USER_SDMA,
2516 /* l4_per -> mcspi3 */
2517 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3 = {
2518 .master = &omap54xx_l4_per_hwmod,
2519 .slave = &omap54xx_mcspi3_hwmod,
2520 .clk = "l4_root_clk_div",
2521 .user = OCP_USER_MPU | OCP_USER_SDMA,
2524 /* l4_per -> mcspi4 */
2525 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4 = {
2526 .master = &omap54xx_l4_per_hwmod,
2527 .slave = &omap54xx_mcspi4_hwmod,
2528 .clk = "l4_root_clk_div",
2529 .user = OCP_USER_MPU | OCP_USER_SDMA,
2532 /* l4_per -> mmc1 */
2533 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1 = {
2534 .master = &omap54xx_l4_per_hwmod,
2535 .slave = &omap54xx_mmc1_hwmod,
2536 .clk = "l3_iclk_div",
2537 .user = OCP_USER_MPU | OCP_USER_SDMA,
2540 /* l4_per -> mmc2 */
2541 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2 = {
2542 .master = &omap54xx_l4_per_hwmod,
2543 .slave = &omap54xx_mmc2_hwmod,
2544 .clk = "l3_iclk_div",
2545 .user = OCP_USER_MPU | OCP_USER_SDMA,
2548 /* l4_per -> mmc3 */
2549 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3 = {
2550 .master = &omap54xx_l4_per_hwmod,
2551 .slave = &omap54xx_mmc3_hwmod,
2552 .clk = "l4_root_clk_div",
2553 .user = OCP_USER_MPU | OCP_USER_SDMA,
2556 /* l4_per -> mmc4 */
2557 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4 = {
2558 .master = &omap54xx_l4_per_hwmod,
2559 .slave = &omap54xx_mmc4_hwmod,
2560 .clk = "l4_root_clk_div",
2561 .user = OCP_USER_MPU | OCP_USER_SDMA,
2564 /* l4_per -> mmc5 */
2565 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5 = {
2566 .master = &omap54xx_l4_per_hwmod,
2567 .slave = &omap54xx_mmc5_hwmod,
2568 .clk = "l4_root_clk_div",
2569 .user = OCP_USER_MPU | OCP_USER_SDMA,
2573 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = {
2574 .master = &omap54xx_l4_cfg_hwmod,
2575 .slave = &omap54xx_mpu_hwmod,
2576 .clk = "l4_root_clk_div",
2577 .user = OCP_USER_MPU | OCP_USER_SDMA,
2580 /* l4_cfg -> spinlock */
2581 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock = {
2582 .master = &omap54xx_l4_cfg_hwmod,
2583 .slave = &omap54xx_spinlock_hwmod,
2584 .clk = "l4_root_clk_div",
2585 .user = OCP_USER_MPU | OCP_USER_SDMA,
2588 /* l4_cfg -> ocp2scp1 */
2589 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
2590 .master = &omap54xx_l4_cfg_hwmod,
2591 .slave = &omap54xx_ocp2scp1_hwmod,
2592 .clk = "l4_root_clk_div",
2593 .user = OCP_USER_MPU | OCP_USER_SDMA,
2596 /* l4_wkup -> timer1 */
2597 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
2598 .master = &omap54xx_l4_wkup_hwmod,
2599 .slave = &omap54xx_timer1_hwmod,
2600 .clk = "wkupaon_iclk_mux",
2601 .user = OCP_USER_MPU | OCP_USER_SDMA,
2604 /* l4_per -> timer2 */
2605 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2 = {
2606 .master = &omap54xx_l4_per_hwmod,
2607 .slave = &omap54xx_timer2_hwmod,
2608 .clk = "l4_root_clk_div",
2609 .user = OCP_USER_MPU | OCP_USER_SDMA,
2612 /* l4_per -> timer3 */
2613 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3 = {
2614 .master = &omap54xx_l4_per_hwmod,
2615 .slave = &omap54xx_timer3_hwmod,
2616 .clk = "l4_root_clk_div",
2617 .user = OCP_USER_MPU | OCP_USER_SDMA,
2620 /* l4_per -> timer4 */
2621 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4 = {
2622 .master = &omap54xx_l4_per_hwmod,
2623 .slave = &omap54xx_timer4_hwmod,
2624 .clk = "l4_root_clk_div",
2625 .user = OCP_USER_MPU | OCP_USER_SDMA,
2628 /* l4_abe -> timer5 */
2629 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5 = {
2630 .master = &omap54xx_l4_abe_hwmod,
2631 .slave = &omap54xx_timer5_hwmod,
2633 .user = OCP_USER_MPU,
2636 /* l4_abe -> timer6 */
2637 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6 = {
2638 .master = &omap54xx_l4_abe_hwmod,
2639 .slave = &omap54xx_timer6_hwmod,
2641 .user = OCP_USER_MPU,
2644 /* l4_abe -> timer7 */
2645 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7 = {
2646 .master = &omap54xx_l4_abe_hwmod,
2647 .slave = &omap54xx_timer7_hwmod,
2649 .user = OCP_USER_MPU,
2652 /* l4_abe -> timer8 */
2653 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8 = {
2654 .master = &omap54xx_l4_abe_hwmod,
2655 .slave = &omap54xx_timer8_hwmod,
2657 .user = OCP_USER_MPU,
2660 /* l4_per -> timer9 */
2661 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9 = {
2662 .master = &omap54xx_l4_per_hwmod,
2663 .slave = &omap54xx_timer9_hwmod,
2664 .clk = "l4_root_clk_div",
2665 .user = OCP_USER_MPU | OCP_USER_SDMA,
2668 /* l4_per -> timer10 */
2669 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10 = {
2670 .master = &omap54xx_l4_per_hwmod,
2671 .slave = &omap54xx_timer10_hwmod,
2672 .clk = "l4_root_clk_div",
2673 .user = OCP_USER_MPU | OCP_USER_SDMA,
2676 /* l4_per -> timer11 */
2677 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11 = {
2678 .master = &omap54xx_l4_per_hwmod,
2679 .slave = &omap54xx_timer11_hwmod,
2680 .clk = "l4_root_clk_div",
2681 .user = OCP_USER_MPU | OCP_USER_SDMA,
2684 /* l4_per -> uart1 */
2685 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1 = {
2686 .master = &omap54xx_l4_per_hwmod,
2687 .slave = &omap54xx_uart1_hwmod,
2688 .clk = "l4_root_clk_div",
2689 .user = OCP_USER_MPU | OCP_USER_SDMA,
2692 /* l4_per -> uart2 */
2693 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2 = {
2694 .master = &omap54xx_l4_per_hwmod,
2695 .slave = &omap54xx_uart2_hwmod,
2696 .clk = "l4_root_clk_div",
2697 .user = OCP_USER_MPU | OCP_USER_SDMA,
2700 /* l4_per -> uart3 */
2701 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3 = {
2702 .master = &omap54xx_l4_per_hwmod,
2703 .slave = &omap54xx_uart3_hwmod,
2704 .clk = "l4_root_clk_div",
2705 .user = OCP_USER_MPU | OCP_USER_SDMA,
2708 /* l4_per -> uart4 */
2709 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4 = {
2710 .master = &omap54xx_l4_per_hwmod,
2711 .slave = &omap54xx_uart4_hwmod,
2712 .clk = "l4_root_clk_div",
2713 .user = OCP_USER_MPU | OCP_USER_SDMA,
2716 /* l4_per -> uart5 */
2717 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5 = {
2718 .master = &omap54xx_l4_per_hwmod,
2719 .slave = &omap54xx_uart5_hwmod,
2720 .clk = "l4_root_clk_div",
2721 .user = OCP_USER_MPU | OCP_USER_SDMA,
2724 /* l4_per -> uart6 */
2725 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6 = {
2726 .master = &omap54xx_l4_per_hwmod,
2727 .slave = &omap54xx_uart6_hwmod,
2728 .clk = "l4_root_clk_div",
2729 .user = OCP_USER_MPU | OCP_USER_SDMA,
2732 /* l4_cfg -> usb_host_hs */
2733 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs = {
2734 .master = &omap54xx_l4_cfg_hwmod,
2735 .slave = &omap54xx_usb_host_hs_hwmod,
2736 .clk = "l3_iclk_div",
2737 .user = OCP_USER_MPU | OCP_USER_SDMA,
2740 /* l4_cfg -> usb_tll_hs */
2741 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs = {
2742 .master = &omap54xx_l4_cfg_hwmod,
2743 .slave = &omap54xx_usb_tll_hs_hwmod,
2744 .clk = "l4_root_clk_div",
2745 .user = OCP_USER_MPU | OCP_USER_SDMA,
2748 /* l4_cfg -> usb_otg_ss */
2749 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss = {
2750 .master = &omap54xx_l4_cfg_hwmod,
2751 .slave = &omap54xx_usb_otg_ss_hwmod,
2752 .clk = "dpll_core_h13x2_ck",
2753 .user = OCP_USER_MPU | OCP_USER_SDMA,
2756 /* l4_wkup -> wd_timer2 */
2757 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2 = {
2758 .master = &omap54xx_l4_wkup_hwmod,
2759 .slave = &omap54xx_wd_timer2_hwmod,
2760 .clk = "wkupaon_iclk_mux",
2761 .user = OCP_USER_MPU | OCP_USER_SDMA,
2764 static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
2765 &omap54xx_l3_main_1__dmm,
2766 &omap54xx_l3_main_3__l3_instr,
2767 &omap54xx_l3_main_2__l3_main_1,
2768 &omap54xx_l4_cfg__l3_main_1,
2769 &omap54xx_mpu__l3_main_1,
2770 &omap54xx_l3_main_1__l3_main_2,
2771 &omap54xx_l4_cfg__l3_main_2,
2772 &omap54xx_l3_main_1__l3_main_3,
2773 &omap54xx_l3_main_2__l3_main_3,
2774 &omap54xx_l4_cfg__l3_main_3,
2775 &omap54xx_l3_main_1__l4_abe,
2776 &omap54xx_mpu__l4_abe,
2777 &omap54xx_l3_main_1__l4_cfg,
2778 &omap54xx_l3_main_2__l4_per,
2779 &omap54xx_l3_main_1__l4_wkup,
2780 &omap54xx_mpu__mpu_private,
2781 &omap54xx_l4_wkup__counter_32k,
2782 &omap54xx_l4_cfg__dma_system,
2783 &omap54xx_l4_abe__dmic,
2784 &omap54xx_l4_cfg__mmu_dsp,
2785 &omap54xx_l3_main_2__dss,
2786 &omap54xx_l3_main_2__dss_dispc,
2787 &omap54xx_l3_main_2__dss_dsi1_a,
2788 &omap54xx_l3_main_2__dss_dsi1_c,
2789 &omap54xx_l3_main_2__dss_hdmi,
2790 &omap54xx_l3_main_2__dss_rfbi,
2791 &omap54xx_mpu__emif1,
2792 &omap54xx_mpu__emif2,
2793 &omap54xx_l4_wkup__gpio1,
2794 &omap54xx_l4_per__gpio2,
2795 &omap54xx_l4_per__gpio3,
2796 &omap54xx_l4_per__gpio4,
2797 &omap54xx_l4_per__gpio5,
2798 &omap54xx_l4_per__gpio6,
2799 &omap54xx_l4_per__gpio7,
2800 &omap54xx_l4_per__gpio8,
2801 &omap54xx_l4_per__i2c1,
2802 &omap54xx_l4_per__i2c2,
2803 &omap54xx_l4_per__i2c3,
2804 &omap54xx_l4_per__i2c4,
2805 &omap54xx_l4_per__i2c5,
2806 &omap54xx_l3_main_2__mmu_ipu,
2807 &omap54xx_l4_wkup__kbd,
2808 &omap54xx_l4_cfg__mailbox,
2809 &omap54xx_l4_abe__mcbsp1,
2810 &omap54xx_l4_abe__mcbsp2,
2811 &omap54xx_l4_abe__mcbsp3,
2812 &omap54xx_l4_abe__mcpdm,
2813 &omap54xx_l4_per__mcspi1,
2814 &omap54xx_l4_per__mcspi2,
2815 &omap54xx_l4_per__mcspi3,
2816 &omap54xx_l4_per__mcspi4,
2817 &omap54xx_l4_per__mmc1,
2818 &omap54xx_l4_per__mmc2,
2819 &omap54xx_l4_per__mmc3,
2820 &omap54xx_l4_per__mmc4,
2821 &omap54xx_l4_per__mmc5,
2822 &omap54xx_l4_cfg__mpu,
2823 &omap54xx_l4_cfg__spinlock,
2824 &omap54xx_l4_cfg__ocp2scp1,
2825 &omap54xx_l4_wkup__timer1,
2826 &omap54xx_l4_per__timer2,
2827 &omap54xx_l4_per__timer3,
2828 &omap54xx_l4_per__timer4,
2829 &omap54xx_l4_abe__timer5,
2830 &omap54xx_l4_abe__timer6,
2831 &omap54xx_l4_abe__timer7,
2832 &omap54xx_l4_abe__timer8,
2833 &omap54xx_l4_per__timer9,
2834 &omap54xx_l4_per__timer10,
2835 &omap54xx_l4_per__timer11,
2836 &omap54xx_l4_per__uart1,
2837 &omap54xx_l4_per__uart2,
2838 &omap54xx_l4_per__uart3,
2839 &omap54xx_l4_per__uart4,
2840 &omap54xx_l4_per__uart5,
2841 &omap54xx_l4_per__uart6,
2842 &omap54xx_l4_cfg__usb_host_hs,
2843 &omap54xx_l4_cfg__usb_tll_hs,
2844 &omap54xx_l4_cfg__usb_otg_ss,
2845 &omap54xx_l4_wkup__wd_timer2,
2846 &omap54xx_l4_cfg__ocp2scp3,
2847 &omap54xx_l4_cfg__sata,
2851 int __init omap54xx_hwmod_init(void)
2854 return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs);