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 .clockact
= CLOCKACT_TEST_ICLK
,
843 .sysc_fields
= &omap_hwmod_sysc_type1
,
846 static struct omap_hwmod_class omap54xx_i2c_hwmod_class
= {
848 .sysc
= &omap54xx_i2c_sysc
,
849 .reset
= &omap_i2c_reset
,
850 .rev
= OMAP_I2C_IP_VERSION_2
,
854 static struct omap_i2c_dev_attr i2c_dev_attr
= {
855 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
859 static struct omap_hwmod omap54xx_i2c1_hwmod
= {
861 .class = &omap54xx_i2c_hwmod_class
,
862 .clkdm_name
= "l4per_clkdm",
863 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
864 .main_clk
= "func_96m_fclk",
867 .clkctrl_offs
= OMAP54XX_CM_L4PER_I2C1_CLKCTRL_OFFSET
,
868 .context_offs
= OMAP54XX_RM_L4PER_I2C1_CONTEXT_OFFSET
,
869 .modulemode
= MODULEMODE_SWCTRL
,
872 .dev_attr
= &i2c_dev_attr
,
876 static struct omap_hwmod omap54xx_i2c2_hwmod
= {
878 .class = &omap54xx_i2c_hwmod_class
,
879 .clkdm_name
= "l4per_clkdm",
880 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
881 .main_clk
= "func_96m_fclk",
884 .clkctrl_offs
= OMAP54XX_CM_L4PER_I2C2_CLKCTRL_OFFSET
,
885 .context_offs
= OMAP54XX_RM_L4PER_I2C2_CONTEXT_OFFSET
,
886 .modulemode
= MODULEMODE_SWCTRL
,
889 .dev_attr
= &i2c_dev_attr
,
893 static struct omap_hwmod omap54xx_i2c3_hwmod
= {
895 .class = &omap54xx_i2c_hwmod_class
,
896 .clkdm_name
= "l4per_clkdm",
897 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
898 .main_clk
= "func_96m_fclk",
901 .clkctrl_offs
= OMAP54XX_CM_L4PER_I2C3_CLKCTRL_OFFSET
,
902 .context_offs
= OMAP54XX_RM_L4PER_I2C3_CONTEXT_OFFSET
,
903 .modulemode
= MODULEMODE_SWCTRL
,
906 .dev_attr
= &i2c_dev_attr
,
910 static struct omap_hwmod omap54xx_i2c4_hwmod
= {
912 .class = &omap54xx_i2c_hwmod_class
,
913 .clkdm_name
= "l4per_clkdm",
914 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
915 .main_clk
= "func_96m_fclk",
918 .clkctrl_offs
= OMAP54XX_CM_L4PER_I2C4_CLKCTRL_OFFSET
,
919 .context_offs
= OMAP54XX_RM_L4PER_I2C4_CONTEXT_OFFSET
,
920 .modulemode
= MODULEMODE_SWCTRL
,
923 .dev_attr
= &i2c_dev_attr
,
927 static struct omap_hwmod omap54xx_i2c5_hwmod
= {
929 .class = &omap54xx_i2c_hwmod_class
,
930 .clkdm_name
= "l4per_clkdm",
931 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
932 .main_clk
= "func_96m_fclk",
935 .clkctrl_offs
= OMAP54XX_CM_L4PER_I2C5_CLKCTRL_OFFSET
,
936 .context_offs
= OMAP54XX_RM_L4PER_I2C5_CONTEXT_OFFSET
,
937 .modulemode
= MODULEMODE_SWCTRL
,
940 .dev_attr
= &i2c_dev_attr
,
945 * keyboard controller
948 static struct omap_hwmod_class_sysconfig omap54xx_kbd_sysc
= {
951 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
953 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
954 .sysc_fields
= &omap_hwmod_sysc_type1
,
957 static struct omap_hwmod_class omap54xx_kbd_hwmod_class
= {
959 .sysc
= &omap54xx_kbd_sysc
,
963 static struct omap_hwmod omap54xx_kbd_hwmod
= {
965 .class = &omap54xx_kbd_hwmod_class
,
966 .clkdm_name
= "wkupaon_clkdm",
967 .main_clk
= "sys_32k_ck",
970 .clkctrl_offs
= OMAP54XX_CM_WKUPAON_KBD_CLKCTRL_OFFSET
,
971 .context_offs
= OMAP54XX_RM_WKUPAON_KBD_CONTEXT_OFFSET
,
972 .modulemode
= MODULEMODE_SWCTRL
,
979 * mailbox module allowing communication between the on-chip processors using a
980 * queued mailbox-interrupt mechanism.
983 static struct omap_hwmod_class_sysconfig omap54xx_mailbox_sysc
= {
986 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
988 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
989 .sysc_fields
= &omap_hwmod_sysc_type2
,
992 static struct omap_hwmod_class omap54xx_mailbox_hwmod_class
= {
994 .sysc
= &omap54xx_mailbox_sysc
,
998 static struct omap_hwmod omap54xx_mailbox_hwmod
= {
1000 .class = &omap54xx_mailbox_hwmod_class
,
1001 .clkdm_name
= "l4cfg_clkdm",
1004 .clkctrl_offs
= OMAP54XX_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET
,
1005 .context_offs
= OMAP54XX_RM_L4CFG_MAILBOX_CONTEXT_OFFSET
,
1012 * multi channel buffered serial port controller
1015 static struct omap_hwmod_class_sysconfig omap54xx_mcbsp_sysc
= {
1016 .sysc_offs
= 0x008c,
1017 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1018 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1019 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1020 .sysc_fields
= &omap_hwmod_sysc_type1
,
1023 static struct omap_hwmod_class omap54xx_mcbsp_hwmod_class
= {
1025 .sysc
= &omap54xx_mcbsp_sysc
,
1026 .rev
= MCBSP_CONFIG_TYPE4
,
1030 static struct omap_hwmod_opt_clk mcbsp1_opt_clks
[] = {
1031 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1032 { .role
= "prcm_fck", .clk
= "mcbsp1_sync_mux_ck" },
1035 static struct omap_hwmod omap54xx_mcbsp1_hwmod
= {
1037 .class = &omap54xx_mcbsp_hwmod_class
,
1038 .clkdm_name
= "abe_clkdm",
1039 .main_clk
= "mcbsp1_gfclk",
1042 .clkctrl_offs
= OMAP54XX_CM_ABE_MCBSP1_CLKCTRL_OFFSET
,
1043 .context_offs
= OMAP54XX_RM_ABE_MCBSP1_CONTEXT_OFFSET
,
1044 .modulemode
= MODULEMODE_SWCTRL
,
1047 .opt_clks
= mcbsp1_opt_clks
,
1048 .opt_clks_cnt
= ARRAY_SIZE(mcbsp1_opt_clks
),
1052 static struct omap_hwmod_opt_clk mcbsp2_opt_clks
[] = {
1053 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1054 { .role
= "prcm_fck", .clk
= "mcbsp2_sync_mux_ck" },
1057 static struct omap_hwmod omap54xx_mcbsp2_hwmod
= {
1059 .class = &omap54xx_mcbsp_hwmod_class
,
1060 .clkdm_name
= "abe_clkdm",
1061 .main_clk
= "mcbsp2_gfclk",
1064 .clkctrl_offs
= OMAP54XX_CM_ABE_MCBSP2_CLKCTRL_OFFSET
,
1065 .context_offs
= OMAP54XX_RM_ABE_MCBSP2_CONTEXT_OFFSET
,
1066 .modulemode
= MODULEMODE_SWCTRL
,
1069 .opt_clks
= mcbsp2_opt_clks
,
1070 .opt_clks_cnt
= ARRAY_SIZE(mcbsp2_opt_clks
),
1074 static struct omap_hwmod_opt_clk mcbsp3_opt_clks
[] = {
1075 { .role
= "pad_fck", .clk
= "pad_clks_ck" },
1076 { .role
= "prcm_fck", .clk
= "mcbsp3_sync_mux_ck" },
1079 static struct omap_hwmod omap54xx_mcbsp3_hwmod
= {
1081 .class = &omap54xx_mcbsp_hwmod_class
,
1082 .clkdm_name
= "abe_clkdm",
1083 .main_clk
= "mcbsp3_gfclk",
1086 .clkctrl_offs
= OMAP54XX_CM_ABE_MCBSP3_CLKCTRL_OFFSET
,
1087 .context_offs
= OMAP54XX_RM_ABE_MCBSP3_CONTEXT_OFFSET
,
1088 .modulemode
= MODULEMODE_SWCTRL
,
1091 .opt_clks
= mcbsp3_opt_clks
,
1092 .opt_clks_cnt
= ARRAY_SIZE(mcbsp3_opt_clks
),
1097 * multi channel pdm controller (proprietary interface with phoenix power
1101 static struct omap_hwmod_class_sysconfig omap54xx_mcpdm_sysc
= {
1103 .sysc_offs
= 0x0010,
1104 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1105 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1106 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1108 .sysc_fields
= &omap_hwmod_sysc_type2
,
1111 static struct omap_hwmod_class omap54xx_mcpdm_hwmod_class
= {
1113 .sysc
= &omap54xx_mcpdm_sysc
,
1117 static struct omap_hwmod omap54xx_mcpdm_hwmod
= {
1119 .class = &omap54xx_mcpdm_hwmod_class
,
1120 .clkdm_name
= "abe_clkdm",
1122 * It's suspected that the McPDM requires an off-chip main
1123 * functional clock, controlled via I2C. This IP block is
1124 * currently reset very early during boot, before I2C is
1125 * available, so it doesn't seem that we have any choice in
1126 * the kernel other than to avoid resetting it. XXX This is
1127 * really a hardware issue workaround: every IP block should
1128 * be able to source its main functional clock from either
1129 * on-chip or off-chip sources. McPDM seems to be the only
1130 * current exception.
1133 .flags
= HWMOD_EXT_OPT_MAIN_CLK
| HWMOD_SWSUP_SIDLE
,
1134 .main_clk
= "pad_clks_ck",
1137 .clkctrl_offs
= OMAP54XX_CM_ABE_MCPDM_CLKCTRL_OFFSET
,
1138 .context_offs
= OMAP54XX_RM_ABE_MCPDM_CONTEXT_OFFSET
,
1139 .modulemode
= MODULEMODE_SWCTRL
,
1146 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1150 static struct omap_hwmod_class_sysconfig omap54xx_mcspi_sysc
= {
1152 .sysc_offs
= 0x0010,
1153 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1154 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1155 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1157 .sysc_fields
= &omap_hwmod_sysc_type2
,
1160 static struct omap_hwmod_class omap54xx_mcspi_hwmod_class
= {
1162 .sysc
= &omap54xx_mcspi_sysc
,
1163 .rev
= OMAP4_MCSPI_REV
,
1167 /* mcspi1 dev_attr */
1168 static struct omap2_mcspi_dev_attr mcspi1_dev_attr
= {
1169 .num_chipselect
= 4,
1172 static struct omap_hwmod omap54xx_mcspi1_hwmod
= {
1174 .class = &omap54xx_mcspi_hwmod_class
,
1175 .clkdm_name
= "l4per_clkdm",
1176 .main_clk
= "func_48m_fclk",
1179 .clkctrl_offs
= OMAP54XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET
,
1180 .context_offs
= OMAP54XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET
,
1181 .modulemode
= MODULEMODE_SWCTRL
,
1184 .dev_attr
= &mcspi1_dev_attr
,
1188 /* mcspi2 dev_attr */
1189 static struct omap2_mcspi_dev_attr mcspi2_dev_attr
= {
1190 .num_chipselect
= 2,
1193 static struct omap_hwmod omap54xx_mcspi2_hwmod
= {
1195 .class = &omap54xx_mcspi_hwmod_class
,
1196 .clkdm_name
= "l4per_clkdm",
1197 .main_clk
= "func_48m_fclk",
1200 .clkctrl_offs
= OMAP54XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET
,
1201 .context_offs
= OMAP54XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET
,
1202 .modulemode
= MODULEMODE_SWCTRL
,
1205 .dev_attr
= &mcspi2_dev_attr
,
1209 /* mcspi3 dev_attr */
1210 static struct omap2_mcspi_dev_attr mcspi3_dev_attr
= {
1211 .num_chipselect
= 2,
1214 static struct omap_hwmod omap54xx_mcspi3_hwmod
= {
1216 .class = &omap54xx_mcspi_hwmod_class
,
1217 .clkdm_name
= "l4per_clkdm",
1218 .main_clk
= "func_48m_fclk",
1221 .clkctrl_offs
= OMAP54XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET
,
1222 .context_offs
= OMAP54XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET
,
1223 .modulemode
= MODULEMODE_SWCTRL
,
1226 .dev_attr
= &mcspi3_dev_attr
,
1230 /* mcspi4 dev_attr */
1231 static struct omap2_mcspi_dev_attr mcspi4_dev_attr
= {
1232 .num_chipselect
= 1,
1235 static struct omap_hwmod omap54xx_mcspi4_hwmod
= {
1237 .class = &omap54xx_mcspi_hwmod_class
,
1238 .clkdm_name
= "l4per_clkdm",
1239 .main_clk
= "func_48m_fclk",
1242 .clkctrl_offs
= OMAP54XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET
,
1243 .context_offs
= OMAP54XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET
,
1244 .modulemode
= MODULEMODE_SWCTRL
,
1247 .dev_attr
= &mcspi4_dev_attr
,
1252 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1255 static struct omap_hwmod_class_sysconfig omap54xx_mmc_sysc
= {
1257 .sysc_offs
= 0x0010,
1258 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_MIDLEMODE
|
1259 SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1260 SYSC_HAS_SOFTRESET
),
1261 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1262 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1263 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1264 .sysc_fields
= &omap_hwmod_sysc_type2
,
1267 static struct omap_hwmod_class omap54xx_mmc_hwmod_class
= {
1269 .sysc
= &omap54xx_mmc_sysc
,
1273 static struct omap_hwmod_opt_clk mmc1_opt_clks
[] = {
1274 { .role
= "32khz_clk", .clk
= "mmc1_32khz_clk" },
1278 static struct omap_hsmmc_dev_attr mmc1_dev_attr
= {
1279 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1282 static struct omap_hwmod omap54xx_mmc1_hwmod
= {
1284 .class = &omap54xx_mmc_hwmod_class
,
1285 .clkdm_name
= "l3init_clkdm",
1286 .main_clk
= "mmc1_fclk",
1289 .clkctrl_offs
= OMAP54XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET
,
1290 .context_offs
= OMAP54XX_RM_L3INIT_MMC1_CONTEXT_OFFSET
,
1291 .modulemode
= MODULEMODE_SWCTRL
,
1294 .opt_clks
= mmc1_opt_clks
,
1295 .opt_clks_cnt
= ARRAY_SIZE(mmc1_opt_clks
),
1296 .dev_attr
= &mmc1_dev_attr
,
1300 static struct omap_hwmod omap54xx_mmc2_hwmod
= {
1302 .class = &omap54xx_mmc_hwmod_class
,
1303 .clkdm_name
= "l3init_clkdm",
1304 .main_clk
= "mmc2_fclk",
1307 .clkctrl_offs
= OMAP54XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET
,
1308 .context_offs
= OMAP54XX_RM_L3INIT_MMC2_CONTEXT_OFFSET
,
1309 .modulemode
= MODULEMODE_SWCTRL
,
1315 static struct omap_hwmod omap54xx_mmc3_hwmod
= {
1317 .class = &omap54xx_mmc_hwmod_class
,
1318 .clkdm_name
= "l4per_clkdm",
1319 .main_clk
= "func_48m_fclk",
1322 .clkctrl_offs
= OMAP54XX_CM_L4PER_MMC3_CLKCTRL_OFFSET
,
1323 .context_offs
= OMAP54XX_RM_L4PER_MMC3_CONTEXT_OFFSET
,
1324 .modulemode
= MODULEMODE_SWCTRL
,
1330 static struct omap_hwmod omap54xx_mmc4_hwmod
= {
1332 .class = &omap54xx_mmc_hwmod_class
,
1333 .clkdm_name
= "l4per_clkdm",
1334 .main_clk
= "func_48m_fclk",
1337 .clkctrl_offs
= OMAP54XX_CM_L4PER_MMC4_CLKCTRL_OFFSET
,
1338 .context_offs
= OMAP54XX_RM_L4PER_MMC4_CONTEXT_OFFSET
,
1339 .modulemode
= MODULEMODE_SWCTRL
,
1345 static struct omap_hwmod omap54xx_mmc5_hwmod
= {
1347 .class = &omap54xx_mmc_hwmod_class
,
1348 .clkdm_name
= "l4per_clkdm",
1349 .main_clk
= "func_96m_fclk",
1352 .clkctrl_offs
= OMAP54XX_CM_L4PER_MMC5_CLKCTRL_OFFSET
,
1353 .context_offs
= OMAP54XX_RM_L4PER_MMC5_CONTEXT_OFFSET
,
1354 .modulemode
= MODULEMODE_SWCTRL
,
1361 * The memory management unit performs virtual to physical address translation
1362 * for its requestors.
1365 static struct omap_hwmod_class_sysconfig omap54xx_mmu_sysc
= {
1367 .sysc_offs
= 0x0010,
1368 .syss_offs
= 0x0014,
1369 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1370 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1371 SYSS_HAS_RESET_STATUS
),
1372 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1373 .sysc_fields
= &omap_hwmod_sysc_type1
,
1376 static struct omap_hwmod_class omap54xx_mmu_hwmod_class
= {
1378 .sysc
= &omap54xx_mmu_sysc
,
1381 static struct omap_hwmod_rst_info omap54xx_mmu_dsp_resets
[] = {
1382 { .name
= "mmu_cache", .rst_shift
= 1 },
1385 static struct omap_hwmod omap54xx_mmu_dsp_hwmod
= {
1387 .class = &omap54xx_mmu_hwmod_class
,
1388 .clkdm_name
= "dsp_clkdm",
1389 .rst_lines
= omap54xx_mmu_dsp_resets
,
1390 .rst_lines_cnt
= ARRAY_SIZE(omap54xx_mmu_dsp_resets
),
1391 .main_clk
= "dpll_iva_h11x2_ck",
1394 .clkctrl_offs
= OMAP54XX_CM_DSP_DSP_CLKCTRL_OFFSET
,
1395 .rstctrl_offs
= OMAP54XX_RM_DSP_RSTCTRL_OFFSET
,
1396 .context_offs
= OMAP54XX_RM_DSP_DSP_CONTEXT_OFFSET
,
1397 .modulemode
= MODULEMODE_HWCTRL
,
1403 static struct omap_hwmod_rst_info omap54xx_mmu_ipu_resets
[] = {
1404 { .name
= "mmu_cache", .rst_shift
= 2 },
1407 static struct omap_hwmod omap54xx_mmu_ipu_hwmod
= {
1409 .class = &omap54xx_mmu_hwmod_class
,
1410 .clkdm_name
= "ipu_clkdm",
1411 .rst_lines
= omap54xx_mmu_ipu_resets
,
1412 .rst_lines_cnt
= ARRAY_SIZE(omap54xx_mmu_ipu_resets
),
1413 .main_clk
= "dpll_core_h22x2_ck",
1416 .clkctrl_offs
= OMAP54XX_CM_IPU_IPU_CLKCTRL_OFFSET
,
1417 .rstctrl_offs
= OMAP54XX_RM_IPU_RSTCTRL_OFFSET
,
1418 .context_offs
= OMAP54XX_RM_IPU_IPU_CONTEXT_OFFSET
,
1419 .modulemode
= MODULEMODE_HWCTRL
,
1429 static struct omap_hwmod_class omap54xx_mpu_hwmod_class
= {
1434 static struct omap_hwmod omap54xx_mpu_hwmod
= {
1436 .class = &omap54xx_mpu_hwmod_class
,
1437 .clkdm_name
= "mpu_clkdm",
1438 .flags
= HWMOD_INIT_NO_IDLE
,
1439 .main_clk
= "dpll_mpu_m2_ck",
1442 .clkctrl_offs
= OMAP54XX_CM_MPU_MPU_CLKCTRL_OFFSET
,
1443 .context_offs
= OMAP54XX_RM_MPU_MPU_CONTEXT_OFFSET
,
1450 * spinlock provides hardware assistance for synchronizing the processes
1451 * running on multiple processors
1454 static struct omap_hwmod_class_sysconfig omap54xx_spinlock_sysc
= {
1456 .sysc_offs
= 0x0010,
1457 .syss_offs
= 0x0014,
1458 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1459 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1460 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1461 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1462 .sysc_fields
= &omap_hwmod_sysc_type1
,
1465 static struct omap_hwmod_class omap54xx_spinlock_hwmod_class
= {
1467 .sysc
= &omap54xx_spinlock_sysc
,
1471 static struct omap_hwmod omap54xx_spinlock_hwmod
= {
1473 .class = &omap54xx_spinlock_hwmod_class
,
1474 .clkdm_name
= "l4cfg_clkdm",
1477 .clkctrl_offs
= OMAP54XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET
,
1478 .context_offs
= OMAP54XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET
,
1485 * bridge to transform ocp interface protocol to scp (serial control port)
1489 static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc
= {
1491 .sysc_offs
= 0x0010,
1492 .syss_offs
= 0x0014,
1493 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
1494 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1495 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1496 .sysc_fields
= &omap_hwmod_sysc_type1
,
1499 static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class
= {
1501 .sysc
= &omap54xx_ocp2scp_sysc
,
1505 static struct omap_hwmod omap54xx_ocp2scp1_hwmod
= {
1507 .class = &omap54xx_ocp2scp_hwmod_class
,
1508 .clkdm_name
= "l3init_clkdm",
1509 .main_clk
= "l4_root_clk_div",
1512 .clkctrl_offs
= OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET
,
1513 .context_offs
= OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET
,
1514 .modulemode
= MODULEMODE_HWCTRL
,
1521 * general purpose timer module with accurate 1ms tick
1522 * This class contains several variants: ['timer_1ms', 'timer']
1525 static struct omap_hwmod_class_sysconfig omap54xx_timer_1ms_sysc
= {
1527 .sysc_offs
= 0x0010,
1528 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1529 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1530 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1532 .sysc_fields
= &omap_hwmod_sysc_type2
,
1533 .clockact
= CLOCKACT_TEST_ICLK
,
1536 static struct omap_hwmod_class omap54xx_timer_1ms_hwmod_class
= {
1538 .sysc
= &omap54xx_timer_1ms_sysc
,
1541 static struct omap_hwmod_class_sysconfig omap54xx_timer_sysc
= {
1543 .sysc_offs
= 0x0010,
1544 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_RESET_STATUS
|
1545 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1546 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1548 .sysc_fields
= &omap_hwmod_sysc_type2
,
1551 static struct omap_hwmod_class omap54xx_timer_hwmod_class
= {
1553 .sysc
= &omap54xx_timer_sysc
,
1557 static struct omap_hwmod omap54xx_timer1_hwmod
= {
1559 .class = &omap54xx_timer_1ms_hwmod_class
,
1560 .clkdm_name
= "wkupaon_clkdm",
1561 .main_clk
= "timer1_gfclk_mux",
1562 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1565 .clkctrl_offs
= OMAP54XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET
,
1566 .context_offs
= OMAP54XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET
,
1567 .modulemode
= MODULEMODE_SWCTRL
,
1573 static struct omap_hwmod omap54xx_timer2_hwmod
= {
1575 .class = &omap54xx_timer_1ms_hwmod_class
,
1576 .clkdm_name
= "l4per_clkdm",
1577 .main_clk
= "timer2_gfclk_mux",
1578 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1581 .clkctrl_offs
= OMAP54XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET
,
1582 .context_offs
= OMAP54XX_RM_L4PER_TIMER2_CONTEXT_OFFSET
,
1583 .modulemode
= MODULEMODE_SWCTRL
,
1589 static struct omap_hwmod omap54xx_timer3_hwmod
= {
1591 .class = &omap54xx_timer_hwmod_class
,
1592 .clkdm_name
= "l4per_clkdm",
1593 .main_clk
= "timer3_gfclk_mux",
1596 .clkctrl_offs
= OMAP54XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET
,
1597 .context_offs
= OMAP54XX_RM_L4PER_TIMER3_CONTEXT_OFFSET
,
1598 .modulemode
= MODULEMODE_SWCTRL
,
1604 static struct omap_hwmod omap54xx_timer4_hwmod
= {
1606 .class = &omap54xx_timer_hwmod_class
,
1607 .clkdm_name
= "l4per_clkdm",
1608 .main_clk
= "timer4_gfclk_mux",
1611 .clkctrl_offs
= OMAP54XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET
,
1612 .context_offs
= OMAP54XX_RM_L4PER_TIMER4_CONTEXT_OFFSET
,
1613 .modulemode
= MODULEMODE_SWCTRL
,
1619 static struct omap_hwmod omap54xx_timer5_hwmod
= {
1621 .class = &omap54xx_timer_hwmod_class
,
1622 .clkdm_name
= "abe_clkdm",
1623 .main_clk
= "timer5_gfclk_mux",
1626 .clkctrl_offs
= OMAP54XX_CM_ABE_TIMER5_CLKCTRL_OFFSET
,
1627 .context_offs
= OMAP54XX_RM_ABE_TIMER5_CONTEXT_OFFSET
,
1628 .modulemode
= MODULEMODE_SWCTRL
,
1634 static struct omap_hwmod omap54xx_timer6_hwmod
= {
1636 .class = &omap54xx_timer_hwmod_class
,
1637 .clkdm_name
= "abe_clkdm",
1638 .main_clk
= "timer6_gfclk_mux",
1641 .clkctrl_offs
= OMAP54XX_CM_ABE_TIMER6_CLKCTRL_OFFSET
,
1642 .context_offs
= OMAP54XX_RM_ABE_TIMER6_CONTEXT_OFFSET
,
1643 .modulemode
= MODULEMODE_SWCTRL
,
1649 static struct omap_hwmod omap54xx_timer7_hwmod
= {
1651 .class = &omap54xx_timer_hwmod_class
,
1652 .clkdm_name
= "abe_clkdm",
1653 .main_clk
= "timer7_gfclk_mux",
1656 .clkctrl_offs
= OMAP54XX_CM_ABE_TIMER7_CLKCTRL_OFFSET
,
1657 .context_offs
= OMAP54XX_RM_ABE_TIMER7_CONTEXT_OFFSET
,
1658 .modulemode
= MODULEMODE_SWCTRL
,
1664 static struct omap_hwmod omap54xx_timer8_hwmod
= {
1666 .class = &omap54xx_timer_hwmod_class
,
1667 .clkdm_name
= "abe_clkdm",
1668 .main_clk
= "timer8_gfclk_mux",
1671 .clkctrl_offs
= OMAP54XX_CM_ABE_TIMER8_CLKCTRL_OFFSET
,
1672 .context_offs
= OMAP54XX_RM_ABE_TIMER8_CONTEXT_OFFSET
,
1673 .modulemode
= MODULEMODE_SWCTRL
,
1679 static struct omap_hwmod omap54xx_timer9_hwmod
= {
1681 .class = &omap54xx_timer_hwmod_class
,
1682 .clkdm_name
= "l4per_clkdm",
1683 .main_clk
= "timer9_gfclk_mux",
1686 .clkctrl_offs
= OMAP54XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET
,
1687 .context_offs
= OMAP54XX_RM_L4PER_TIMER9_CONTEXT_OFFSET
,
1688 .modulemode
= MODULEMODE_SWCTRL
,
1694 static struct omap_hwmod omap54xx_timer10_hwmod
= {
1696 .class = &omap54xx_timer_1ms_hwmod_class
,
1697 .clkdm_name
= "l4per_clkdm",
1698 .main_clk
= "timer10_gfclk_mux",
1699 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1702 .clkctrl_offs
= OMAP54XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET
,
1703 .context_offs
= OMAP54XX_RM_L4PER_TIMER10_CONTEXT_OFFSET
,
1704 .modulemode
= MODULEMODE_SWCTRL
,
1710 static struct omap_hwmod omap54xx_timer11_hwmod
= {
1712 .class = &omap54xx_timer_hwmod_class
,
1713 .clkdm_name
= "l4per_clkdm",
1714 .main_clk
= "timer11_gfclk_mux",
1717 .clkctrl_offs
= OMAP54XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET
,
1718 .context_offs
= OMAP54XX_RM_L4PER_TIMER11_CONTEXT_OFFSET
,
1719 .modulemode
= MODULEMODE_SWCTRL
,
1726 * universal asynchronous receiver/transmitter (uart)
1729 static struct omap_hwmod_class_sysconfig omap54xx_uart_sysc
= {
1731 .sysc_offs
= 0x0054,
1732 .syss_offs
= 0x0058,
1733 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
1734 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1735 SYSS_HAS_RESET_STATUS
),
1736 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1738 .sysc_fields
= &omap_hwmod_sysc_type1
,
1741 static struct omap_hwmod_class omap54xx_uart_hwmod_class
= {
1743 .sysc
= &omap54xx_uart_sysc
,
1747 static struct omap_hwmod omap54xx_uart1_hwmod
= {
1749 .class = &omap54xx_uart_hwmod_class
,
1750 .clkdm_name
= "l4per_clkdm",
1751 .main_clk
= "func_48m_fclk",
1754 .clkctrl_offs
= OMAP54XX_CM_L4PER_UART1_CLKCTRL_OFFSET
,
1755 .context_offs
= OMAP54XX_RM_L4PER_UART1_CONTEXT_OFFSET
,
1756 .modulemode
= MODULEMODE_SWCTRL
,
1762 static struct omap_hwmod omap54xx_uart2_hwmod
= {
1764 .class = &omap54xx_uart_hwmod_class
,
1765 .clkdm_name
= "l4per_clkdm",
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
,
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
,
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 .main_clk
= "func_48m_fclk",
1816 .clkctrl_offs
= OMAP54XX_CM_L4PER_UART5_CLKCTRL_OFFSET
,
1817 .context_offs
= OMAP54XX_RM_L4PER_UART5_CONTEXT_OFFSET
,
1818 .modulemode
= MODULEMODE_SWCTRL
,
1824 static struct omap_hwmod omap54xx_uart6_hwmod
= {
1826 .class = &omap54xx_uart_hwmod_class
,
1827 .clkdm_name
= "l4per_clkdm",
1828 .main_clk
= "func_48m_fclk",
1831 .clkctrl_offs
= OMAP54XX_CM_L4PER_UART6_CLKCTRL_OFFSET
,
1832 .context_offs
= OMAP54XX_RM_L4PER_UART6_CONTEXT_OFFSET
,
1833 .modulemode
= MODULEMODE_SWCTRL
,
1839 * 'usb_host_hs' class
1840 * high-speed multi-port usb host controller
1843 static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc
= {
1845 .sysc_offs
= 0x0010,
1846 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_RESET_STATUS
|
1847 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1848 SYSC_HAS_RESET_STATUS
),
1849 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1850 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1851 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1852 .sysc_fields
= &omap_hwmod_sysc_type2
,
1855 static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class
= {
1856 .name
= "usb_host_hs",
1857 .sysc
= &omap54xx_usb_host_hs_sysc
,
1860 static struct omap_hwmod omap54xx_usb_host_hs_hwmod
= {
1861 .name
= "usb_host_hs",
1862 .class = &omap54xx_usb_host_hs_hwmod_class
,
1863 .clkdm_name
= "l3init_clkdm",
1865 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1869 * In the following configuration :
1870 * - USBHOST module is set to smart-idle mode
1871 * - PRCM asserts idle_req to the USBHOST module ( This typically
1872 * happens when the system is going to a low power mode : all ports
1873 * have been suspended, the master part of the USBHOST module has
1874 * entered the standby state, and SW has cut the functional clocks)
1875 * - an USBHOST interrupt occurs before the module is able to answer
1876 * idle_ack, typically a remote wakeup IRQ.
1877 * Then the USB HOST module will enter a deadlock situation where it
1878 * is no more accessible nor functional.
1881 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1885 * Errata: USB host EHCI may stall when entering smart-standby mode
1889 * When the USBHOST module is set to smart-standby mode, and when it is
1890 * ready to enter the standby state (i.e. all ports are suspended and
1891 * all attached devices are in suspend mode), then it can wrongly assert
1892 * the Mstandby signal too early while there are still some residual OCP
1893 * transactions ongoing. If this condition occurs, the internal state
1894 * machine may go to an undefined state and the USB link may be stuck
1895 * upon the next resume.
1898 * Don't use smart standby; use only force standby,
1899 * hence HWMOD_SWSUP_MSTANDBY
1902 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1903 .main_clk
= "l3init_60m_fclk",
1906 .clkctrl_offs
= OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET
,
1907 .context_offs
= OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET
,
1908 .modulemode
= MODULEMODE_SWCTRL
,
1914 * 'usb_tll_hs' class
1915 * usb_tll_hs module is the adapter on the usb_host_hs ports
1918 static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc
= {
1920 .sysc_offs
= 0x0010,
1921 .syss_offs
= 0x0014,
1922 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1923 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1924 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1925 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1926 .sysc_fields
= &omap_hwmod_sysc_type1
,
1929 static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class
= {
1930 .name
= "usb_tll_hs",
1931 .sysc
= &omap54xx_usb_tll_hs_sysc
,
1934 static struct omap_hwmod omap54xx_usb_tll_hs_hwmod
= {
1935 .name
= "usb_tll_hs",
1936 .class = &omap54xx_usb_tll_hs_hwmod_class
,
1937 .clkdm_name
= "l3init_clkdm",
1938 .main_clk
= "l4_root_clk_div",
1941 .clkctrl_offs
= OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET
,
1942 .context_offs
= OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET
,
1943 .modulemode
= MODULEMODE_HWCTRL
,
1949 * 'usb_otg_ss' class
1950 * 2.0 super speed (usb_otg_ss) controller
1953 static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc
= {
1955 .sysc_offs
= 0x0010,
1956 .sysc_flags
= (SYSC_HAS_DMADISABLE
| SYSC_HAS_MIDLEMODE
|
1957 SYSC_HAS_SIDLEMODE
),
1958 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1959 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
1960 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
1961 .sysc_fields
= &omap_hwmod_sysc_type2
,
1964 static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class
= {
1965 .name
= "usb_otg_ss",
1966 .sysc
= &omap54xx_usb_otg_ss_sysc
,
1970 static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks
[] = {
1971 { .role
= "refclk960m", .clk
= "usb_otg_ss_refclk960m" },
1974 static struct omap_hwmod omap54xx_usb_otg_ss_hwmod
= {
1975 .name
= "usb_otg_ss",
1976 .class = &omap54xx_usb_otg_ss_hwmod_class
,
1977 .clkdm_name
= "l3init_clkdm",
1978 .flags
= HWMOD_SWSUP_SIDLE
,
1979 .main_clk
= "dpll_core_h13x2_ck",
1982 .clkctrl_offs
= OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET
,
1983 .context_offs
= OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET
,
1984 .modulemode
= MODULEMODE_HWCTRL
,
1987 .opt_clks
= usb_otg_ss_opt_clks
,
1988 .opt_clks_cnt
= ARRAY_SIZE(usb_otg_ss_opt_clks
),
1993 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1994 * overflow condition
1997 static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc
= {
1999 .sysc_offs
= 0x0010,
2000 .syss_offs
= 0x0014,
2001 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
2002 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2003 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2005 .sysc_fields
= &omap_hwmod_sysc_type1
,
2008 static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class
= {
2010 .sysc
= &omap54xx_wd_timer_sysc
,
2011 .pre_shutdown
= &omap2_wd_timer_disable
,
2015 static struct omap_hwmod omap54xx_wd_timer2_hwmod
= {
2016 .name
= "wd_timer2",
2017 .class = &omap54xx_wd_timer_hwmod_class
,
2018 .clkdm_name
= "wkupaon_clkdm",
2019 .main_clk
= "sys_32k_ck",
2022 .clkctrl_offs
= OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET
,
2023 .context_offs
= OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET
,
2024 .modulemode
= MODULEMODE_SWCTRL
,
2031 * bridge to transform ocp interface protocol to scp (serial control port)
2035 static struct omap_hwmod omap54xx_ocp2scp3_hwmod
;
2036 /* l4_cfg -> ocp2scp3 */
2037 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp3
= {
2038 .master
= &omap54xx_l4_cfg_hwmod
,
2039 .slave
= &omap54xx_ocp2scp3_hwmod
,
2040 .clk
= "l4_root_clk_div",
2041 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2044 static struct omap_hwmod omap54xx_ocp2scp3_hwmod
= {
2046 .class = &omap54xx_ocp2scp_hwmod_class
,
2047 .clkdm_name
= "l3init_clkdm",
2050 .clkctrl_offs
= OMAP54XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET
,
2051 .context_offs
= OMAP54XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET
,
2052 .modulemode
= MODULEMODE_HWCTRL
,
2059 * sata: serial ata interface gen2 compliant ( 1 rx/ 1 tx)
2062 static struct omap_hwmod_class_sysconfig omap54xx_sata_sysc
= {
2063 .sysc_offs
= 0x0000,
2064 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_SIDLEMODE
),
2065 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2066 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
2067 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
2068 .sysc_fields
= &omap_hwmod_sysc_type2
,
2071 static struct omap_hwmod_class omap54xx_sata_hwmod_class
= {
2073 .sysc
= &omap54xx_sata_sysc
,
2077 static struct omap_hwmod omap54xx_sata_hwmod
= {
2079 .class = &omap54xx_sata_hwmod_class
,
2080 .clkdm_name
= "l3init_clkdm",
2081 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
2082 .main_clk
= "func_48m_fclk",
2086 .clkctrl_offs
= OMAP54XX_CM_L3INIT_SATA_CLKCTRL_OFFSET
,
2087 .context_offs
= OMAP54XX_RM_L3INIT_SATA_CONTEXT_OFFSET
,
2088 .modulemode
= MODULEMODE_SWCTRL
,
2093 /* l4_cfg -> sata */
2094 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__sata
= {
2095 .master
= &omap54xx_l4_cfg_hwmod
,
2096 .slave
= &omap54xx_sata_hwmod
,
2097 .clk
= "l3_iclk_div",
2098 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2105 /* l3_main_1 -> dmm */
2106 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm
= {
2107 .master
= &omap54xx_l3_main_1_hwmod
,
2108 .slave
= &omap54xx_dmm_hwmod
,
2109 .clk
= "l3_iclk_div",
2110 .user
= OCP_USER_SDMA
,
2113 /* l3_main_3 -> l3_instr */
2114 static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr
= {
2115 .master
= &omap54xx_l3_main_3_hwmod
,
2116 .slave
= &omap54xx_l3_instr_hwmod
,
2117 .clk
= "l3_iclk_div",
2118 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2121 /* l3_main_2 -> l3_main_1 */
2122 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1
= {
2123 .master
= &omap54xx_l3_main_2_hwmod
,
2124 .slave
= &omap54xx_l3_main_1_hwmod
,
2125 .clk
= "l3_iclk_div",
2126 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2129 /* l4_cfg -> l3_main_1 */
2130 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1
= {
2131 .master
= &omap54xx_l4_cfg_hwmod
,
2132 .slave
= &omap54xx_l3_main_1_hwmod
,
2133 .clk
= "l3_iclk_div",
2134 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2137 /* l4_cfg -> mmu_dsp */
2138 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mmu_dsp
= {
2139 .master
= &omap54xx_l4_cfg_hwmod
,
2140 .slave
= &omap54xx_mmu_dsp_hwmod
,
2141 .clk
= "l4_root_clk_div",
2142 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2145 /* mpu -> l3_main_1 */
2146 static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1
= {
2147 .master
= &omap54xx_mpu_hwmod
,
2148 .slave
= &omap54xx_l3_main_1_hwmod
,
2149 .clk
= "l3_iclk_div",
2150 .user
= OCP_USER_MPU
,
2153 /* l3_main_1 -> l3_main_2 */
2154 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2
= {
2155 .master
= &omap54xx_l3_main_1_hwmod
,
2156 .slave
= &omap54xx_l3_main_2_hwmod
,
2157 .clk
= "l3_iclk_div",
2158 .user
= OCP_USER_MPU
,
2161 /* l4_cfg -> l3_main_2 */
2162 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2
= {
2163 .master
= &omap54xx_l4_cfg_hwmod
,
2164 .slave
= &omap54xx_l3_main_2_hwmod
,
2165 .clk
= "l3_iclk_div",
2166 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2169 /* l3_main_2 -> mmu_ipu */
2170 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__mmu_ipu
= {
2171 .master
= &omap54xx_l3_main_2_hwmod
,
2172 .slave
= &omap54xx_mmu_ipu_hwmod
,
2173 .clk
= "l3_iclk_div",
2174 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2177 /* l3_main_1 -> l3_main_3 */
2178 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3
= {
2179 .master
= &omap54xx_l3_main_1_hwmod
,
2180 .slave
= &omap54xx_l3_main_3_hwmod
,
2181 .clk
= "l3_iclk_div",
2182 .user
= OCP_USER_MPU
,
2185 /* l3_main_2 -> l3_main_3 */
2186 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3
= {
2187 .master
= &omap54xx_l3_main_2_hwmod
,
2188 .slave
= &omap54xx_l3_main_3_hwmod
,
2189 .clk
= "l3_iclk_div",
2190 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2193 /* l4_cfg -> l3_main_3 */
2194 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3
= {
2195 .master
= &omap54xx_l4_cfg_hwmod
,
2196 .slave
= &omap54xx_l3_main_3_hwmod
,
2197 .clk
= "l3_iclk_div",
2198 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2201 /* l3_main_1 -> l4_abe */
2202 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe
= {
2203 .master
= &omap54xx_l3_main_1_hwmod
,
2204 .slave
= &omap54xx_l4_abe_hwmod
,
2206 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2210 static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe
= {
2211 .master
= &omap54xx_mpu_hwmod
,
2212 .slave
= &omap54xx_l4_abe_hwmod
,
2214 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2217 /* l3_main_1 -> l4_cfg */
2218 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg
= {
2219 .master
= &omap54xx_l3_main_1_hwmod
,
2220 .slave
= &omap54xx_l4_cfg_hwmod
,
2221 .clk
= "l4_root_clk_div",
2222 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2225 /* l3_main_2 -> l4_per */
2226 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per
= {
2227 .master
= &omap54xx_l3_main_2_hwmod
,
2228 .slave
= &omap54xx_l4_per_hwmod
,
2229 .clk
= "l4_root_clk_div",
2230 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2233 /* l3_main_1 -> l4_wkup */
2234 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup
= {
2235 .master
= &omap54xx_l3_main_1_hwmod
,
2236 .slave
= &omap54xx_l4_wkup_hwmod
,
2237 .clk
= "wkupaon_iclk_mux",
2238 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2241 /* mpu -> mpu_private */
2242 static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private
= {
2243 .master
= &omap54xx_mpu_hwmod
,
2244 .slave
= &omap54xx_mpu_private_hwmod
,
2245 .clk
= "l3_iclk_div",
2246 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2249 /* l4_wkup -> counter_32k */
2250 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k
= {
2251 .master
= &omap54xx_l4_wkup_hwmod
,
2252 .slave
= &omap54xx_counter_32k_hwmod
,
2253 .clk
= "wkupaon_iclk_mux",
2254 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2257 static struct omap_hwmod_addr_space omap54xx_dma_system_addrs
[] = {
2259 .pa_start
= 0x4a056000,
2260 .pa_end
= 0x4a056fff,
2261 .flags
= ADDR_TYPE_RT
2266 /* l4_cfg -> dma_system */
2267 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system
= {
2268 .master
= &omap54xx_l4_cfg_hwmod
,
2269 .slave
= &omap54xx_dma_system_hwmod
,
2270 .clk
= "l4_root_clk_div",
2271 .addr
= omap54xx_dma_system_addrs
,
2272 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2275 /* l4_abe -> dmic */
2276 static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic
= {
2277 .master
= &omap54xx_l4_abe_hwmod
,
2278 .slave
= &omap54xx_dmic_hwmod
,
2280 .user
= OCP_USER_MPU
,
2283 /* l3_main_2 -> dss */
2284 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss
= {
2285 .master
= &omap54xx_l3_main_2_hwmod
,
2286 .slave
= &omap54xx_dss_hwmod
,
2287 .clk
= "l3_iclk_div",
2288 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2291 /* l3_main_2 -> dss_dispc */
2292 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dispc
= {
2293 .master
= &omap54xx_l3_main_2_hwmod
,
2294 .slave
= &omap54xx_dss_dispc_hwmod
,
2295 .clk
= "l3_iclk_div",
2296 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2299 /* l3_main_2 -> dss_dsi1_a */
2300 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_a
= {
2301 .master
= &omap54xx_l3_main_2_hwmod
,
2302 .slave
= &omap54xx_dss_dsi1_a_hwmod
,
2303 .clk
= "l3_iclk_div",
2304 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2307 /* l3_main_2 -> dss_dsi1_c */
2308 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_c
= {
2309 .master
= &omap54xx_l3_main_2_hwmod
,
2310 .slave
= &omap54xx_dss_dsi1_c_hwmod
,
2311 .clk
= "l3_iclk_div",
2312 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2315 /* l3_main_2 -> dss_hdmi */
2316 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_hdmi
= {
2317 .master
= &omap54xx_l3_main_2_hwmod
,
2318 .slave
= &omap54xx_dss_hdmi_hwmod
,
2319 .clk
= "l3_iclk_div",
2320 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2323 /* l3_main_2 -> dss_rfbi */
2324 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_rfbi
= {
2325 .master
= &omap54xx_l3_main_2_hwmod
,
2326 .slave
= &omap54xx_dss_rfbi_hwmod
,
2327 .clk
= "l3_iclk_div",
2328 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2332 static struct omap_hwmod_ocp_if omap54xx_mpu__emif1
= {
2333 .master
= &omap54xx_mpu_hwmod
,
2334 .slave
= &omap54xx_emif1_hwmod
,
2335 .clk
= "dpll_core_h11x2_ck",
2336 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2340 static struct omap_hwmod_ocp_if omap54xx_mpu__emif2
= {
2341 .master
= &omap54xx_mpu_hwmod
,
2342 .slave
= &omap54xx_emif2_hwmod
,
2343 .clk
= "dpll_core_h11x2_ck",
2344 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2347 /* l4_wkup -> gpio1 */
2348 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1
= {
2349 .master
= &omap54xx_l4_wkup_hwmod
,
2350 .slave
= &omap54xx_gpio1_hwmod
,
2351 .clk
= "wkupaon_iclk_mux",
2352 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2355 /* l4_per -> gpio2 */
2356 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2
= {
2357 .master
= &omap54xx_l4_per_hwmod
,
2358 .slave
= &omap54xx_gpio2_hwmod
,
2359 .clk
= "l4_root_clk_div",
2360 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2363 /* l4_per -> gpio3 */
2364 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3
= {
2365 .master
= &omap54xx_l4_per_hwmod
,
2366 .slave
= &omap54xx_gpio3_hwmod
,
2367 .clk
= "l4_root_clk_div",
2368 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2371 /* l4_per -> gpio4 */
2372 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4
= {
2373 .master
= &omap54xx_l4_per_hwmod
,
2374 .slave
= &omap54xx_gpio4_hwmod
,
2375 .clk
= "l4_root_clk_div",
2376 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2379 /* l4_per -> gpio5 */
2380 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5
= {
2381 .master
= &omap54xx_l4_per_hwmod
,
2382 .slave
= &omap54xx_gpio5_hwmod
,
2383 .clk
= "l4_root_clk_div",
2384 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2387 /* l4_per -> gpio6 */
2388 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6
= {
2389 .master
= &omap54xx_l4_per_hwmod
,
2390 .slave
= &omap54xx_gpio6_hwmod
,
2391 .clk
= "l4_root_clk_div",
2392 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2395 /* l4_per -> gpio7 */
2396 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7
= {
2397 .master
= &omap54xx_l4_per_hwmod
,
2398 .slave
= &omap54xx_gpio7_hwmod
,
2399 .clk
= "l4_root_clk_div",
2400 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2403 /* l4_per -> gpio8 */
2404 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8
= {
2405 .master
= &omap54xx_l4_per_hwmod
,
2406 .slave
= &omap54xx_gpio8_hwmod
,
2407 .clk
= "l4_root_clk_div",
2408 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2411 /* l4_per -> i2c1 */
2412 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1
= {
2413 .master
= &omap54xx_l4_per_hwmod
,
2414 .slave
= &omap54xx_i2c1_hwmod
,
2415 .clk
= "l4_root_clk_div",
2416 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2419 /* l4_per -> i2c2 */
2420 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2
= {
2421 .master
= &omap54xx_l4_per_hwmod
,
2422 .slave
= &omap54xx_i2c2_hwmod
,
2423 .clk
= "l4_root_clk_div",
2424 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2427 /* l4_per -> i2c3 */
2428 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3
= {
2429 .master
= &omap54xx_l4_per_hwmod
,
2430 .slave
= &omap54xx_i2c3_hwmod
,
2431 .clk
= "l4_root_clk_div",
2432 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2435 /* l4_per -> i2c4 */
2436 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4
= {
2437 .master
= &omap54xx_l4_per_hwmod
,
2438 .slave
= &omap54xx_i2c4_hwmod
,
2439 .clk
= "l4_root_clk_div",
2440 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2443 /* l4_per -> i2c5 */
2444 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5
= {
2445 .master
= &omap54xx_l4_per_hwmod
,
2446 .slave
= &omap54xx_i2c5_hwmod
,
2447 .clk
= "l4_root_clk_div",
2448 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2451 /* l4_wkup -> kbd */
2452 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd
= {
2453 .master
= &omap54xx_l4_wkup_hwmod
,
2454 .slave
= &omap54xx_kbd_hwmod
,
2455 .clk
= "wkupaon_iclk_mux",
2456 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2459 /* l4_cfg -> mailbox */
2460 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox
= {
2461 .master
= &omap54xx_l4_cfg_hwmod
,
2462 .slave
= &omap54xx_mailbox_hwmod
,
2463 .clk
= "l4_root_clk_div",
2464 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2467 /* l4_abe -> mcbsp1 */
2468 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1
= {
2469 .master
= &omap54xx_l4_abe_hwmod
,
2470 .slave
= &omap54xx_mcbsp1_hwmod
,
2472 .user
= OCP_USER_MPU
,
2475 /* l4_abe -> mcbsp2 */
2476 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2
= {
2477 .master
= &omap54xx_l4_abe_hwmod
,
2478 .slave
= &omap54xx_mcbsp2_hwmod
,
2480 .user
= OCP_USER_MPU
,
2483 /* l4_abe -> mcbsp3 */
2484 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3
= {
2485 .master
= &omap54xx_l4_abe_hwmod
,
2486 .slave
= &omap54xx_mcbsp3_hwmod
,
2488 .user
= OCP_USER_MPU
,
2491 /* l4_abe -> mcpdm */
2492 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm
= {
2493 .master
= &omap54xx_l4_abe_hwmod
,
2494 .slave
= &omap54xx_mcpdm_hwmod
,
2496 .user
= OCP_USER_MPU
,
2499 /* l4_per -> mcspi1 */
2500 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1
= {
2501 .master
= &omap54xx_l4_per_hwmod
,
2502 .slave
= &omap54xx_mcspi1_hwmod
,
2503 .clk
= "l4_root_clk_div",
2504 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2507 /* l4_per -> mcspi2 */
2508 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2
= {
2509 .master
= &omap54xx_l4_per_hwmod
,
2510 .slave
= &omap54xx_mcspi2_hwmod
,
2511 .clk
= "l4_root_clk_div",
2512 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2515 /* l4_per -> mcspi3 */
2516 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3
= {
2517 .master
= &omap54xx_l4_per_hwmod
,
2518 .slave
= &omap54xx_mcspi3_hwmod
,
2519 .clk
= "l4_root_clk_div",
2520 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2523 /* l4_per -> mcspi4 */
2524 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4
= {
2525 .master
= &omap54xx_l4_per_hwmod
,
2526 .slave
= &omap54xx_mcspi4_hwmod
,
2527 .clk
= "l4_root_clk_div",
2528 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2531 /* l4_per -> mmc1 */
2532 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1
= {
2533 .master
= &omap54xx_l4_per_hwmod
,
2534 .slave
= &omap54xx_mmc1_hwmod
,
2535 .clk
= "l3_iclk_div",
2536 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2539 /* l4_per -> mmc2 */
2540 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2
= {
2541 .master
= &omap54xx_l4_per_hwmod
,
2542 .slave
= &omap54xx_mmc2_hwmod
,
2543 .clk
= "l3_iclk_div",
2544 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2547 /* l4_per -> mmc3 */
2548 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3
= {
2549 .master
= &omap54xx_l4_per_hwmod
,
2550 .slave
= &omap54xx_mmc3_hwmod
,
2551 .clk
= "l4_root_clk_div",
2552 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2555 /* l4_per -> mmc4 */
2556 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4
= {
2557 .master
= &omap54xx_l4_per_hwmod
,
2558 .slave
= &omap54xx_mmc4_hwmod
,
2559 .clk
= "l4_root_clk_div",
2560 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2563 /* l4_per -> mmc5 */
2564 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5
= {
2565 .master
= &omap54xx_l4_per_hwmod
,
2566 .slave
= &omap54xx_mmc5_hwmod
,
2567 .clk
= "l4_root_clk_div",
2568 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2572 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu
= {
2573 .master
= &omap54xx_l4_cfg_hwmod
,
2574 .slave
= &omap54xx_mpu_hwmod
,
2575 .clk
= "l4_root_clk_div",
2576 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2579 /* l4_cfg -> spinlock */
2580 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock
= {
2581 .master
= &omap54xx_l4_cfg_hwmod
,
2582 .slave
= &omap54xx_spinlock_hwmod
,
2583 .clk
= "l4_root_clk_div",
2584 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2587 /* l4_cfg -> ocp2scp1 */
2588 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1
= {
2589 .master
= &omap54xx_l4_cfg_hwmod
,
2590 .slave
= &omap54xx_ocp2scp1_hwmod
,
2591 .clk
= "l4_root_clk_div",
2592 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2595 /* l4_wkup -> timer1 */
2596 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1
= {
2597 .master
= &omap54xx_l4_wkup_hwmod
,
2598 .slave
= &omap54xx_timer1_hwmod
,
2599 .clk
= "wkupaon_iclk_mux",
2600 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2603 /* l4_per -> timer2 */
2604 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2
= {
2605 .master
= &omap54xx_l4_per_hwmod
,
2606 .slave
= &omap54xx_timer2_hwmod
,
2607 .clk
= "l4_root_clk_div",
2608 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2611 /* l4_per -> timer3 */
2612 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3
= {
2613 .master
= &omap54xx_l4_per_hwmod
,
2614 .slave
= &omap54xx_timer3_hwmod
,
2615 .clk
= "l4_root_clk_div",
2616 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2619 /* l4_per -> timer4 */
2620 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4
= {
2621 .master
= &omap54xx_l4_per_hwmod
,
2622 .slave
= &omap54xx_timer4_hwmod
,
2623 .clk
= "l4_root_clk_div",
2624 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2627 /* l4_abe -> timer5 */
2628 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5
= {
2629 .master
= &omap54xx_l4_abe_hwmod
,
2630 .slave
= &omap54xx_timer5_hwmod
,
2632 .user
= OCP_USER_MPU
,
2635 /* l4_abe -> timer6 */
2636 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6
= {
2637 .master
= &omap54xx_l4_abe_hwmod
,
2638 .slave
= &omap54xx_timer6_hwmod
,
2640 .user
= OCP_USER_MPU
,
2643 /* l4_abe -> timer7 */
2644 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7
= {
2645 .master
= &omap54xx_l4_abe_hwmod
,
2646 .slave
= &omap54xx_timer7_hwmod
,
2648 .user
= OCP_USER_MPU
,
2651 /* l4_abe -> timer8 */
2652 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8
= {
2653 .master
= &omap54xx_l4_abe_hwmod
,
2654 .slave
= &omap54xx_timer8_hwmod
,
2656 .user
= OCP_USER_MPU
,
2659 /* l4_per -> timer9 */
2660 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9
= {
2661 .master
= &omap54xx_l4_per_hwmod
,
2662 .slave
= &omap54xx_timer9_hwmod
,
2663 .clk
= "l4_root_clk_div",
2664 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2667 /* l4_per -> timer10 */
2668 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10
= {
2669 .master
= &omap54xx_l4_per_hwmod
,
2670 .slave
= &omap54xx_timer10_hwmod
,
2671 .clk
= "l4_root_clk_div",
2672 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2675 /* l4_per -> timer11 */
2676 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11
= {
2677 .master
= &omap54xx_l4_per_hwmod
,
2678 .slave
= &omap54xx_timer11_hwmod
,
2679 .clk
= "l4_root_clk_div",
2680 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2683 /* l4_per -> uart1 */
2684 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1
= {
2685 .master
= &omap54xx_l4_per_hwmod
,
2686 .slave
= &omap54xx_uart1_hwmod
,
2687 .clk
= "l4_root_clk_div",
2688 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2691 /* l4_per -> uart2 */
2692 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2
= {
2693 .master
= &omap54xx_l4_per_hwmod
,
2694 .slave
= &omap54xx_uart2_hwmod
,
2695 .clk
= "l4_root_clk_div",
2696 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2699 /* l4_per -> uart3 */
2700 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3
= {
2701 .master
= &omap54xx_l4_per_hwmod
,
2702 .slave
= &omap54xx_uart3_hwmod
,
2703 .clk
= "l4_root_clk_div",
2704 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2707 /* l4_per -> uart4 */
2708 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4
= {
2709 .master
= &omap54xx_l4_per_hwmod
,
2710 .slave
= &omap54xx_uart4_hwmod
,
2711 .clk
= "l4_root_clk_div",
2712 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2715 /* l4_per -> uart5 */
2716 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5
= {
2717 .master
= &omap54xx_l4_per_hwmod
,
2718 .slave
= &omap54xx_uart5_hwmod
,
2719 .clk
= "l4_root_clk_div",
2720 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2723 /* l4_per -> uart6 */
2724 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6
= {
2725 .master
= &omap54xx_l4_per_hwmod
,
2726 .slave
= &omap54xx_uart6_hwmod
,
2727 .clk
= "l4_root_clk_div",
2728 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2731 /* l4_cfg -> usb_host_hs */
2732 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs
= {
2733 .master
= &omap54xx_l4_cfg_hwmod
,
2734 .slave
= &omap54xx_usb_host_hs_hwmod
,
2735 .clk
= "l3_iclk_div",
2736 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2739 /* l4_cfg -> usb_tll_hs */
2740 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs
= {
2741 .master
= &omap54xx_l4_cfg_hwmod
,
2742 .slave
= &omap54xx_usb_tll_hs_hwmod
,
2743 .clk
= "l4_root_clk_div",
2744 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2747 /* l4_cfg -> usb_otg_ss */
2748 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss
= {
2749 .master
= &omap54xx_l4_cfg_hwmod
,
2750 .slave
= &omap54xx_usb_otg_ss_hwmod
,
2751 .clk
= "dpll_core_h13x2_ck",
2752 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2755 /* l4_wkup -> wd_timer2 */
2756 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2
= {
2757 .master
= &omap54xx_l4_wkup_hwmod
,
2758 .slave
= &omap54xx_wd_timer2_hwmod
,
2759 .clk
= "wkupaon_iclk_mux",
2760 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2763 static struct omap_hwmod_ocp_if
*omap54xx_hwmod_ocp_ifs
[] __initdata
= {
2764 &omap54xx_l3_main_1__dmm
,
2765 &omap54xx_l3_main_3__l3_instr
,
2766 &omap54xx_l3_main_2__l3_main_1
,
2767 &omap54xx_l4_cfg__l3_main_1
,
2768 &omap54xx_mpu__l3_main_1
,
2769 &omap54xx_l3_main_1__l3_main_2
,
2770 &omap54xx_l4_cfg__l3_main_2
,
2771 &omap54xx_l3_main_1__l3_main_3
,
2772 &omap54xx_l3_main_2__l3_main_3
,
2773 &omap54xx_l4_cfg__l3_main_3
,
2774 &omap54xx_l3_main_1__l4_abe
,
2775 &omap54xx_mpu__l4_abe
,
2776 &omap54xx_l3_main_1__l4_cfg
,
2777 &omap54xx_l3_main_2__l4_per
,
2778 &omap54xx_l3_main_1__l4_wkup
,
2779 &omap54xx_mpu__mpu_private
,
2780 &omap54xx_l4_wkup__counter_32k
,
2781 &omap54xx_l4_cfg__dma_system
,
2782 &omap54xx_l4_abe__dmic
,
2783 &omap54xx_l4_cfg__mmu_dsp
,
2784 &omap54xx_l3_main_2__dss
,
2785 &omap54xx_l3_main_2__dss_dispc
,
2786 &omap54xx_l3_main_2__dss_dsi1_a
,
2787 &omap54xx_l3_main_2__dss_dsi1_c
,
2788 &omap54xx_l3_main_2__dss_hdmi
,
2789 &omap54xx_l3_main_2__dss_rfbi
,
2790 &omap54xx_mpu__emif1
,
2791 &omap54xx_mpu__emif2
,
2792 &omap54xx_l4_wkup__gpio1
,
2793 &omap54xx_l4_per__gpio2
,
2794 &omap54xx_l4_per__gpio3
,
2795 &omap54xx_l4_per__gpio4
,
2796 &omap54xx_l4_per__gpio5
,
2797 &omap54xx_l4_per__gpio6
,
2798 &omap54xx_l4_per__gpio7
,
2799 &omap54xx_l4_per__gpio8
,
2800 &omap54xx_l4_per__i2c1
,
2801 &omap54xx_l4_per__i2c2
,
2802 &omap54xx_l4_per__i2c3
,
2803 &omap54xx_l4_per__i2c4
,
2804 &omap54xx_l4_per__i2c5
,
2805 &omap54xx_l3_main_2__mmu_ipu
,
2806 &omap54xx_l4_wkup__kbd
,
2807 &omap54xx_l4_cfg__mailbox
,
2808 &omap54xx_l4_abe__mcbsp1
,
2809 &omap54xx_l4_abe__mcbsp2
,
2810 &omap54xx_l4_abe__mcbsp3
,
2811 &omap54xx_l4_abe__mcpdm
,
2812 &omap54xx_l4_per__mcspi1
,
2813 &omap54xx_l4_per__mcspi2
,
2814 &omap54xx_l4_per__mcspi3
,
2815 &omap54xx_l4_per__mcspi4
,
2816 &omap54xx_l4_per__mmc1
,
2817 &omap54xx_l4_per__mmc2
,
2818 &omap54xx_l4_per__mmc3
,
2819 &omap54xx_l4_per__mmc4
,
2820 &omap54xx_l4_per__mmc5
,
2821 &omap54xx_l4_cfg__mpu
,
2822 &omap54xx_l4_cfg__spinlock
,
2823 &omap54xx_l4_cfg__ocp2scp1
,
2824 &omap54xx_l4_wkup__timer1
,
2825 &omap54xx_l4_per__timer2
,
2826 &omap54xx_l4_per__timer3
,
2827 &omap54xx_l4_per__timer4
,
2828 &omap54xx_l4_abe__timer5
,
2829 &omap54xx_l4_abe__timer6
,
2830 &omap54xx_l4_abe__timer7
,
2831 &omap54xx_l4_abe__timer8
,
2832 &omap54xx_l4_per__timer9
,
2833 &omap54xx_l4_per__timer10
,
2834 &omap54xx_l4_per__timer11
,
2835 &omap54xx_l4_per__uart1
,
2836 &omap54xx_l4_per__uart2
,
2837 &omap54xx_l4_per__uart3
,
2838 &omap54xx_l4_per__uart4
,
2839 &omap54xx_l4_per__uart5
,
2840 &omap54xx_l4_per__uart6
,
2841 &omap54xx_l4_cfg__usb_host_hs
,
2842 &omap54xx_l4_cfg__usb_tll_hs
,
2843 &omap54xx_l4_cfg__usb_otg_ss
,
2844 &omap54xx_l4_wkup__wd_timer2
,
2845 &omap54xx_l4_cfg__ocp2scp3
,
2846 &omap54xx_l4_cfg__sata
,
2850 int __init
omap54xx_hwmod_init(void)
2853 return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs
);