2 * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
4 * Copyright (C) 2009-2011 Nokia Corporation
5 * Copyright (C) 2012 Texas Instruments, Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * The data in this file should be completely autogeneratable from
13 * the TI hardware database or other technical documentation.
15 * XXX these should be marked initdata for multi-OMAP kernels
18 #include <linux/i2c-omap.h>
19 #include <linux/power/smartreflex.h>
20 #include <linux/platform_data/gpio-omap.h>
22 #include <linux/omap-dma.h>
25 #include <linux/platform_data/asoc-ti-mcbsp.h>
26 #include <linux/platform_data/spi-omap2-mcspi.h>
27 #include <linux/platform_data/iommu-omap.h>
28 #include <linux/platform_data/mailbox-omap.h>
29 #include <plat/dmtimer.h>
34 #include "omap_hwmod.h"
35 #include "omap_hwmod_common_data.h"
36 #include "prm-regbits-34xx.h"
37 #include "cm-regbits-34xx.h"
45 * OMAP3xxx hardware module integration data
47 * All of the data in this section should be autogeneratable from the
48 * TI hardware database or other technical documentation. Data that
49 * is driver-specific or driver-kernel integration-specific belongs
58 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs
[] = {
59 { .irq
= 9 + OMAP_INTC_START
, },
60 { .irq
= 10 + OMAP_INTC_START
, },
64 static struct omap_hwmod omap3xxx_l3_main_hwmod
= {
66 .class = &l3_hwmod_class
,
67 .mpu_irqs
= omap3xxx_l3_main_irqs
,
68 .flags
= HWMOD_NO_IDLEST
,
72 static struct omap_hwmod omap3xxx_l4_core_hwmod
= {
74 .class = &l4_hwmod_class
,
75 .flags
= HWMOD_NO_IDLEST
,
79 static struct omap_hwmod omap3xxx_l4_per_hwmod
= {
81 .class = &l4_hwmod_class
,
82 .flags
= HWMOD_NO_IDLEST
,
86 static struct omap_hwmod omap3xxx_l4_wkup_hwmod
= {
88 .class = &l4_hwmod_class
,
89 .flags
= HWMOD_NO_IDLEST
,
93 static struct omap_hwmod omap3xxx_l4_sec_hwmod
= {
95 .class = &l4_hwmod_class
,
96 .flags
= HWMOD_NO_IDLEST
,
100 static struct omap_hwmod_irq_info omap3xxx_mpu_irqs
[] = {
101 { .name
= "pmu", .irq
= 3 + OMAP_INTC_START
},
105 static struct omap_hwmod omap3xxx_mpu_hwmod
= {
107 .mpu_irqs
= omap3xxx_mpu_irqs
,
108 .class = &mpu_hwmod_class
,
109 .main_clk
= "arm_fck",
113 static struct omap_hwmod_rst_info omap3xxx_iva_resets
[] = {
114 { .name
= "logic", .rst_shift
= 0, .st_shift
= 8 },
115 { .name
= "seq0", .rst_shift
= 1, .st_shift
= 9 },
116 { .name
= "seq1", .rst_shift
= 2, .st_shift
= 10 },
119 static struct omap_hwmod omap3xxx_iva_hwmod
= {
121 .class = &iva_hwmod_class
,
122 .clkdm_name
= "iva2_clkdm",
123 .rst_lines
= omap3xxx_iva_resets
,
124 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_iva_resets
),
125 .main_clk
= "iva2_ck",
128 .module_offs
= OMAP3430_IVA2_MOD
,
130 .module_bit
= OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT
,
132 .idlest_idle_bit
= OMAP3430_ST_IVA2_SHIFT
,
139 * debug and emulation sub system
142 static struct omap_hwmod_class omap3xxx_debugss_hwmod_class
= {
147 static struct omap_hwmod omap3xxx_debugss_hwmod
= {
149 .class = &omap3xxx_debugss_hwmod_class
,
150 .clkdm_name
= "emu_clkdm",
151 .main_clk
= "emu_src_ck",
152 .flags
= HWMOD_NO_IDLEST
,
156 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc
= {
160 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
161 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
162 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
163 SYSS_HAS_RESET_STATUS
),
164 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
165 .clockact
= CLOCKACT_TEST_ICLK
,
166 .sysc_fields
= &omap_hwmod_sysc_type1
,
169 static struct omap_hwmod_class omap3xxx_timer_hwmod_class
= {
171 .sysc
= &omap3xxx_timer_sysc
,
174 /* secure timers dev attribute */
175 static struct omap_timer_capability_dev_attr capability_secure_dev_attr
= {
176 .timer_capability
= OMAP_TIMER_ALWON
| OMAP_TIMER_SECURE
,
179 /* always-on timers dev attribute */
180 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
181 .timer_capability
= OMAP_TIMER_ALWON
,
184 /* pwm timers dev attribute */
185 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
186 .timer_capability
= OMAP_TIMER_HAS_PWM
,
189 /* timers with DSP interrupt dev attribute */
190 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr
= {
191 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
,
194 /* pwm timers with DSP interrupt dev attribute */
195 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr
= {
196 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
| OMAP_TIMER_HAS_PWM
,
200 static struct omap_hwmod omap3xxx_timer1_hwmod
= {
202 .mpu_irqs
= omap2_timer1_mpu_irqs
,
203 .main_clk
= "gpt1_fck",
207 .module_bit
= OMAP3430_EN_GPT1_SHIFT
,
208 .module_offs
= WKUP_MOD
,
210 .idlest_idle_bit
= OMAP3430_ST_GPT1_SHIFT
,
213 .dev_attr
= &capability_alwon_dev_attr
,
214 .class = &omap3xxx_timer_hwmod_class
,
215 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
219 static struct omap_hwmod omap3xxx_timer2_hwmod
= {
221 .mpu_irqs
= omap2_timer2_mpu_irqs
,
222 .main_clk
= "gpt2_fck",
226 .module_bit
= OMAP3430_EN_GPT2_SHIFT
,
227 .module_offs
= OMAP3430_PER_MOD
,
229 .idlest_idle_bit
= OMAP3430_ST_GPT2_SHIFT
,
232 .class = &omap3xxx_timer_hwmod_class
,
233 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
237 static struct omap_hwmod omap3xxx_timer3_hwmod
= {
239 .mpu_irqs
= omap2_timer3_mpu_irqs
,
240 .main_clk
= "gpt3_fck",
244 .module_bit
= OMAP3430_EN_GPT3_SHIFT
,
245 .module_offs
= OMAP3430_PER_MOD
,
247 .idlest_idle_bit
= OMAP3430_ST_GPT3_SHIFT
,
250 .class = &omap3xxx_timer_hwmod_class
,
251 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
255 static struct omap_hwmod omap3xxx_timer4_hwmod
= {
257 .mpu_irqs
= omap2_timer4_mpu_irqs
,
258 .main_clk
= "gpt4_fck",
262 .module_bit
= OMAP3430_EN_GPT4_SHIFT
,
263 .module_offs
= OMAP3430_PER_MOD
,
265 .idlest_idle_bit
= OMAP3430_ST_GPT4_SHIFT
,
268 .class = &omap3xxx_timer_hwmod_class
,
269 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
273 static struct omap_hwmod omap3xxx_timer5_hwmod
= {
275 .mpu_irqs
= omap2_timer5_mpu_irqs
,
276 .main_clk
= "gpt5_fck",
280 .module_bit
= OMAP3430_EN_GPT5_SHIFT
,
281 .module_offs
= OMAP3430_PER_MOD
,
283 .idlest_idle_bit
= OMAP3430_ST_GPT5_SHIFT
,
286 .dev_attr
= &capability_dsp_dev_attr
,
287 .class = &omap3xxx_timer_hwmod_class
,
288 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
292 static struct omap_hwmod omap3xxx_timer6_hwmod
= {
294 .mpu_irqs
= omap2_timer6_mpu_irqs
,
295 .main_clk
= "gpt6_fck",
299 .module_bit
= OMAP3430_EN_GPT6_SHIFT
,
300 .module_offs
= OMAP3430_PER_MOD
,
302 .idlest_idle_bit
= OMAP3430_ST_GPT6_SHIFT
,
305 .dev_attr
= &capability_dsp_dev_attr
,
306 .class = &omap3xxx_timer_hwmod_class
,
307 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
311 static struct omap_hwmod omap3xxx_timer7_hwmod
= {
313 .mpu_irqs
= omap2_timer7_mpu_irqs
,
314 .main_clk
= "gpt7_fck",
318 .module_bit
= OMAP3430_EN_GPT7_SHIFT
,
319 .module_offs
= OMAP3430_PER_MOD
,
321 .idlest_idle_bit
= OMAP3430_ST_GPT7_SHIFT
,
324 .dev_attr
= &capability_dsp_dev_attr
,
325 .class = &omap3xxx_timer_hwmod_class
,
326 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
330 static struct omap_hwmod omap3xxx_timer8_hwmod
= {
332 .mpu_irqs
= omap2_timer8_mpu_irqs
,
333 .main_clk
= "gpt8_fck",
337 .module_bit
= OMAP3430_EN_GPT8_SHIFT
,
338 .module_offs
= OMAP3430_PER_MOD
,
340 .idlest_idle_bit
= OMAP3430_ST_GPT8_SHIFT
,
343 .dev_attr
= &capability_dsp_pwm_dev_attr
,
344 .class = &omap3xxx_timer_hwmod_class
,
345 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
349 static struct omap_hwmod omap3xxx_timer9_hwmod
= {
351 .mpu_irqs
= omap2_timer9_mpu_irqs
,
352 .main_clk
= "gpt9_fck",
356 .module_bit
= OMAP3430_EN_GPT9_SHIFT
,
357 .module_offs
= OMAP3430_PER_MOD
,
359 .idlest_idle_bit
= OMAP3430_ST_GPT9_SHIFT
,
362 .dev_attr
= &capability_pwm_dev_attr
,
363 .class = &omap3xxx_timer_hwmod_class
,
364 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
368 static struct omap_hwmod omap3xxx_timer10_hwmod
= {
370 .mpu_irqs
= omap2_timer10_mpu_irqs
,
371 .main_clk
= "gpt10_fck",
375 .module_bit
= OMAP3430_EN_GPT10_SHIFT
,
376 .module_offs
= CORE_MOD
,
378 .idlest_idle_bit
= OMAP3430_ST_GPT10_SHIFT
,
381 .dev_attr
= &capability_pwm_dev_attr
,
382 .class = &omap3xxx_timer_hwmod_class
,
383 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
387 static struct omap_hwmod omap3xxx_timer11_hwmod
= {
389 .mpu_irqs
= omap2_timer11_mpu_irqs
,
390 .main_clk
= "gpt11_fck",
394 .module_bit
= OMAP3430_EN_GPT11_SHIFT
,
395 .module_offs
= CORE_MOD
,
397 .idlest_idle_bit
= OMAP3430_ST_GPT11_SHIFT
,
400 .dev_attr
= &capability_pwm_dev_attr
,
401 .class = &omap3xxx_timer_hwmod_class
,
402 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
406 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs
[] = {
407 { .irq
= 95 + OMAP_INTC_START
, },
411 static struct omap_hwmod omap3xxx_timer12_hwmod
= {
413 .mpu_irqs
= omap3xxx_timer12_mpu_irqs
,
414 .main_clk
= "gpt12_fck",
418 .module_bit
= OMAP3430_EN_GPT12_SHIFT
,
419 .module_offs
= WKUP_MOD
,
421 .idlest_idle_bit
= OMAP3430_ST_GPT12_SHIFT
,
424 .dev_attr
= &capability_secure_dev_attr
,
425 .class = &omap3xxx_timer_hwmod_class
,
426 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
431 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
435 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc
= {
439 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_EMUFREE
|
440 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
441 SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
442 SYSS_HAS_RESET_STATUS
),
443 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
444 .sysc_fields
= &omap_hwmod_sysc_type1
,
448 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
452 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
453 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
454 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
455 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
456 .clockact
= CLOCKACT_TEST_ICLK
,
457 .sysc_fields
= &omap_hwmod_sysc_type1
,
460 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class
= {
462 .sysc
= &omap3xxx_wd_timer_sysc
,
463 .pre_shutdown
= &omap2_wd_timer_disable
,
464 .reset
= &omap2_wd_timer_reset
,
467 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
469 .class = &omap3xxx_wd_timer_hwmod_class
,
470 .main_clk
= "wdt2_fck",
474 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
475 .module_offs
= WKUP_MOD
,
477 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
481 * XXX: Use software supervised mode, HW supervised smartidle seems to
482 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
484 .flags
= HWMOD_SWSUP_SIDLE
,
488 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
490 .mpu_irqs
= omap2_uart1_mpu_irqs
,
491 .sdma_reqs
= omap2_uart1_sdma_reqs
,
492 .main_clk
= "uart1_fck",
493 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
496 .module_offs
= CORE_MOD
,
498 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
500 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
503 .class = &omap2_uart_class
,
507 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
509 .mpu_irqs
= omap2_uart2_mpu_irqs
,
510 .sdma_reqs
= omap2_uart2_sdma_reqs
,
511 .main_clk
= "uart2_fck",
512 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
515 .module_offs
= CORE_MOD
,
517 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
519 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
522 .class = &omap2_uart_class
,
526 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
528 .mpu_irqs
= omap2_uart3_mpu_irqs
,
529 .sdma_reqs
= omap2_uart3_sdma_reqs
,
530 .main_clk
= "uart3_fck",
531 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
534 .module_offs
= OMAP3430_PER_MOD
,
536 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
538 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
541 .class = &omap2_uart_class
,
545 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
546 { .irq
= 80 + OMAP_INTC_START
, },
550 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
551 { .name
= "rx", .dma_req
= 82, },
552 { .name
= "tx", .dma_req
= 81, },
556 static struct omap_hwmod omap36xx_uart4_hwmod
= {
558 .mpu_irqs
= uart4_mpu_irqs
,
559 .sdma_reqs
= uart4_sdma_reqs
,
560 .main_clk
= "uart4_fck",
561 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
564 .module_offs
= OMAP3430_PER_MOD
,
566 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
568 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
571 .class = &omap2_uart_class
,
574 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs
[] = {
575 { .irq
= 84 + OMAP_INTC_START
, },
579 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs
[] = {
580 { .name
= "rx", .dma_req
= 55, },
581 { .name
= "tx", .dma_req
= 54, },
586 * XXX AM35xx UART4 cannot complete its softreset without uart1_fck or
587 * uart2_fck being enabled. So we add uart1_fck as an optional clock,
588 * below, and set the HWMOD_CONTROL_OPT_CLKS_IN_RESET. This really
589 * should not be needed. The functional clock structure of the AM35xx
590 * UART4 is extremely unclear and opaque; it is unclear what the role
591 * of uart1/2_fck is for the UART4. Any clarification from either
592 * empirical testing or the AM3505/3517 hardware designers would be
595 static struct omap_hwmod_opt_clk am35xx_uart4_opt_clks
[] = {
596 { .role
= "softreset_uart1_fck", .clk
= "uart1_fck" },
599 static struct omap_hwmod am35xx_uart4_hwmod
= {
601 .mpu_irqs
= am35xx_uart4_mpu_irqs
,
602 .sdma_reqs
= am35xx_uart4_sdma_reqs
,
603 .main_clk
= "uart4_fck",
606 .module_offs
= CORE_MOD
,
608 .module_bit
= AM35XX_EN_UART4_SHIFT
,
610 .idlest_idle_bit
= AM35XX_ST_UART4_SHIFT
,
613 .opt_clks
= am35xx_uart4_opt_clks
,
614 .opt_clks_cnt
= ARRAY_SIZE(am35xx_uart4_opt_clks
),
615 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
616 .class = &omap2_uart_class
,
619 static struct omap_hwmod_class i2c_class
= {
622 .rev
= OMAP_I2C_IP_VERSION_1
,
623 .reset
= &omap_i2c_reset
,
626 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
627 { .name
= "dispc", .dma_req
= 5 },
628 { .name
= "dsi1", .dma_req
= 74 },
633 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
635 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
636 * driver does not use these clocks.
638 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
639 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
640 /* required only on OMAP3430 */
641 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
644 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
646 .class = &omap2_dss_hwmod_class
,
647 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
648 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
652 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
653 .module_offs
= OMAP3430_DSS_MOD
,
655 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
658 .opt_clks
= dss_opt_clks
,
659 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
660 .flags
= HWMOD_NO_IDLEST
| HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
663 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
665 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
666 .class = &omap2_dss_hwmod_class
,
667 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
668 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
672 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
673 .module_offs
= OMAP3430_DSS_MOD
,
675 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
676 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
679 .opt_clks
= dss_opt_clks
,
680 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
688 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc
= {
692 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
693 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
695 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
696 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
697 .sysc_fields
= &omap_hwmod_sysc_type1
,
700 static struct omap_hwmod_class omap3_dispc_hwmod_class
= {
702 .sysc
= &omap3_dispc_sysc
,
705 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
707 .class = &omap3_dispc_hwmod_class
,
708 .mpu_irqs
= omap2_dispc_irqs
,
709 .main_clk
= "dss1_alwon_fck",
713 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
714 .module_offs
= OMAP3430_DSS_MOD
,
717 .flags
= HWMOD_NO_IDLEST
,
718 .dev_attr
= &omap2_3_dss_dispc_dev_attr
723 * display serial interface controller
726 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
730 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
731 { .irq
= 25 + OMAP_INTC_START
, },
736 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
737 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
740 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
742 .class = &omap3xxx_dsi_hwmod_class
,
743 .mpu_irqs
= omap3xxx_dsi1_irqs
,
744 .main_clk
= "dss1_alwon_fck",
748 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
749 .module_offs
= OMAP3430_DSS_MOD
,
752 .opt_clks
= dss_dsi1_opt_clks
,
753 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
754 .flags
= HWMOD_NO_IDLEST
,
757 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
758 { .role
= "ick", .clk
= "dss_ick" },
761 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
763 .class = &omap2_rfbi_hwmod_class
,
764 .main_clk
= "dss1_alwon_fck",
768 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
769 .module_offs
= OMAP3430_DSS_MOD
,
772 .opt_clks
= dss_rfbi_opt_clks
,
773 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
774 .flags
= HWMOD_NO_IDLEST
,
777 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
778 /* required only on OMAP3430 */
779 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
782 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
784 .class = &omap2_venc_hwmod_class
,
785 .main_clk
= "dss_tv_fck",
789 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
790 .module_offs
= OMAP3430_DSS_MOD
,
793 .opt_clks
= dss_venc_opt_clks
,
794 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
795 .flags
= HWMOD_NO_IDLEST
,
799 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
800 .fifo_depth
= 8, /* bytes */
801 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_2
,
804 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
806 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
807 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
808 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
809 .main_clk
= "i2c1_fck",
812 .module_offs
= CORE_MOD
,
814 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
816 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
820 .dev_attr
= &i2c1_dev_attr
,
824 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
825 .fifo_depth
= 8, /* bytes */
826 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_2
,
829 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
831 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
832 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
833 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
834 .main_clk
= "i2c2_fck",
837 .module_offs
= CORE_MOD
,
839 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
841 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
845 .dev_attr
= &i2c2_dev_attr
,
849 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
850 .fifo_depth
= 64, /* bytes */
851 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_2
,
854 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
855 { .irq
= 61 + OMAP_INTC_START
, },
859 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
860 { .name
= "tx", .dma_req
= 25 },
861 { .name
= "rx", .dma_req
= 26 },
865 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
867 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
868 .mpu_irqs
= i2c3_mpu_irqs
,
869 .sdma_reqs
= i2c3_sdma_reqs
,
870 .main_clk
= "i2c3_fck",
873 .module_offs
= CORE_MOD
,
875 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
877 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
881 .dev_attr
= &i2c3_dev_attr
,
886 * general purpose io module
889 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
893 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
894 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
895 SYSS_HAS_RESET_STATUS
),
896 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
897 .sysc_fields
= &omap_hwmod_sysc_type1
,
900 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
902 .sysc
= &omap3xxx_gpio_sysc
,
907 static struct omap_gpio_dev_attr gpio_dev_attr
= {
913 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
914 { .role
= "dbclk", .clk
= "gpio1_dbck", },
917 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
919 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
920 .mpu_irqs
= omap2_gpio1_irqs
,
921 .main_clk
= "gpio1_ick",
922 .opt_clks
= gpio1_opt_clks
,
923 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
927 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
928 .module_offs
= WKUP_MOD
,
930 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
933 .class = &omap3xxx_gpio_hwmod_class
,
934 .dev_attr
= &gpio_dev_attr
,
938 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
939 { .role
= "dbclk", .clk
= "gpio2_dbck", },
942 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
944 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
945 .mpu_irqs
= omap2_gpio2_irqs
,
946 .main_clk
= "gpio2_ick",
947 .opt_clks
= gpio2_opt_clks
,
948 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
952 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
953 .module_offs
= OMAP3430_PER_MOD
,
955 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
958 .class = &omap3xxx_gpio_hwmod_class
,
959 .dev_attr
= &gpio_dev_attr
,
963 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
964 { .role
= "dbclk", .clk
= "gpio3_dbck", },
967 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
969 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
970 .mpu_irqs
= omap2_gpio3_irqs
,
971 .main_clk
= "gpio3_ick",
972 .opt_clks
= gpio3_opt_clks
,
973 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
977 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
978 .module_offs
= OMAP3430_PER_MOD
,
980 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
983 .class = &omap3xxx_gpio_hwmod_class
,
984 .dev_attr
= &gpio_dev_attr
,
988 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
989 { .role
= "dbclk", .clk
= "gpio4_dbck", },
992 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
994 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
995 .mpu_irqs
= omap2_gpio4_irqs
,
996 .main_clk
= "gpio4_ick",
997 .opt_clks
= gpio4_opt_clks
,
998 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1002 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
1003 .module_offs
= OMAP3430_PER_MOD
,
1005 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
1008 .class = &omap3xxx_gpio_hwmod_class
,
1009 .dev_attr
= &gpio_dev_attr
,
1013 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
1014 { .irq
= 33 + OMAP_INTC_START
, }, /* INT_34XX_GPIO_BANK5 */
1018 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1019 { .role
= "dbclk", .clk
= "gpio5_dbck", },
1022 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
1024 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1025 .mpu_irqs
= omap3xxx_gpio5_irqs
,
1026 .main_clk
= "gpio5_ick",
1027 .opt_clks
= gpio5_opt_clks
,
1028 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1032 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
1033 .module_offs
= OMAP3430_PER_MOD
,
1035 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
1038 .class = &omap3xxx_gpio_hwmod_class
,
1039 .dev_attr
= &gpio_dev_attr
,
1043 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
1044 { .irq
= 34 + OMAP_INTC_START
, }, /* INT_34XX_GPIO_BANK6 */
1048 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
1049 { .role
= "dbclk", .clk
= "gpio6_dbck", },
1052 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
1054 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1055 .mpu_irqs
= omap3xxx_gpio6_irqs
,
1056 .main_clk
= "gpio6_ick",
1057 .opt_clks
= gpio6_opt_clks
,
1058 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1062 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
1063 .module_offs
= OMAP3430_PER_MOD
,
1065 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
1068 .class = &omap3xxx_gpio_hwmod_class
,
1069 .dev_attr
= &gpio_dev_attr
,
1072 /* dma attributes */
1073 static struct omap_dma_dev_attr dma_dev_attr
= {
1074 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1075 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
1079 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
1081 .sysc_offs
= 0x002c,
1082 .syss_offs
= 0x0028,
1083 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1084 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1085 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
1086 SYSS_HAS_RESET_STATUS
),
1087 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1088 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1089 .sysc_fields
= &omap_hwmod_sysc_type1
,
1092 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
1094 .sysc
= &omap3xxx_dma_sysc
,
1098 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
1100 .class = &omap3xxx_dma_hwmod_class
,
1101 .mpu_irqs
= omap2_dma_system_irqs
,
1102 .main_clk
= "core_l3_ick",
1105 .module_offs
= CORE_MOD
,
1107 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
1109 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
1112 .dev_attr
= &dma_dev_attr
,
1113 .flags
= HWMOD_NO_IDLEST
,
1118 * multi channel buffered serial port controller
1121 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
1122 .sysc_offs
= 0x008c,
1123 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1124 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1125 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1126 .sysc_fields
= &omap_hwmod_sysc_type1
,
1130 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
1132 .sysc
= &omap3xxx_mcbsp_sysc
,
1133 .rev
= MCBSP_CONFIG_TYPE3
,
1136 /* McBSP functional clock mapping */
1137 static struct omap_hwmod_opt_clk mcbsp15_opt_clks
[] = {
1138 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1139 { .role
= "prcm_fck", .clk
= "core_96m_fck" },
1142 static struct omap_hwmod_opt_clk mcbsp234_opt_clks
[] = {
1143 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1144 { .role
= "prcm_fck", .clk
= "per_96m_fck" },
1148 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
1149 { .name
= "common", .irq
= 16 + OMAP_INTC_START
, },
1150 { .name
= "tx", .irq
= 59 + OMAP_INTC_START
, },
1151 { .name
= "rx", .irq
= 60 + OMAP_INTC_START
, },
1155 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
1157 .class = &omap3xxx_mcbsp_hwmod_class
,
1158 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
1159 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
1160 .main_clk
= "mcbsp1_fck",
1164 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
1165 .module_offs
= CORE_MOD
,
1167 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
1170 .opt_clks
= mcbsp15_opt_clks
,
1171 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1175 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
1176 { .name
= "common", .irq
= 17 + OMAP_INTC_START
, },
1177 { .name
= "tx", .irq
= 62 + OMAP_INTC_START
, },
1178 { .name
= "rx", .irq
= 63 + OMAP_INTC_START
, },
1182 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
1183 .sidetone
= "mcbsp2_sidetone",
1186 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
1188 .class = &omap3xxx_mcbsp_hwmod_class
,
1189 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
1190 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
1191 .main_clk
= "mcbsp2_fck",
1195 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1196 .module_offs
= OMAP3430_PER_MOD
,
1198 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1201 .opt_clks
= mcbsp234_opt_clks
,
1202 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1203 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
1207 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
1208 { .name
= "common", .irq
= 22 + OMAP_INTC_START
, },
1209 { .name
= "tx", .irq
= 89 + OMAP_INTC_START
, },
1210 { .name
= "rx", .irq
= 90 + OMAP_INTC_START
, },
1214 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
1215 .sidetone
= "mcbsp3_sidetone",
1218 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
1220 .class = &omap3xxx_mcbsp_hwmod_class
,
1221 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
1222 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
1223 .main_clk
= "mcbsp3_fck",
1227 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1228 .module_offs
= OMAP3430_PER_MOD
,
1230 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1233 .opt_clks
= mcbsp234_opt_clks
,
1234 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1235 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
1239 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
1240 { .name
= "common", .irq
= 23 + OMAP_INTC_START
, },
1241 { .name
= "tx", .irq
= 54 + OMAP_INTC_START
, },
1242 { .name
= "rx", .irq
= 55 + OMAP_INTC_START
, },
1246 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
1247 { .name
= "rx", .dma_req
= 20 },
1248 { .name
= "tx", .dma_req
= 19 },
1252 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
1254 .class = &omap3xxx_mcbsp_hwmod_class
,
1255 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
1256 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
1257 .main_clk
= "mcbsp4_fck",
1261 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
1262 .module_offs
= OMAP3430_PER_MOD
,
1264 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
1267 .opt_clks
= mcbsp234_opt_clks
,
1268 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1272 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
1273 { .name
= "common", .irq
= 27 + OMAP_INTC_START
, },
1274 { .name
= "tx", .irq
= 81 + OMAP_INTC_START
, },
1275 { .name
= "rx", .irq
= 82 + OMAP_INTC_START
, },
1279 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
1280 { .name
= "rx", .dma_req
= 22 },
1281 { .name
= "tx", .dma_req
= 21 },
1285 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
1287 .class = &omap3xxx_mcbsp_hwmod_class
,
1288 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
1289 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
1290 .main_clk
= "mcbsp5_fck",
1294 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
1295 .module_offs
= CORE_MOD
,
1297 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
1300 .opt_clks
= mcbsp15_opt_clks
,
1301 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1304 /* 'mcbsp sidetone' class */
1305 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
1306 .sysc_offs
= 0x0010,
1307 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
1308 .sysc_fields
= &omap_hwmod_sysc_type1
,
1311 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
1312 .name
= "mcbsp_sidetone",
1313 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
1316 /* mcbsp2_sidetone */
1317 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
1318 { .name
= "irq", .irq
= 4 + OMAP_INTC_START
, },
1322 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
1323 .name
= "mcbsp2_sidetone",
1324 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1325 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
1326 .main_clk
= "mcbsp2_fck",
1330 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1331 .module_offs
= OMAP3430_PER_MOD
,
1333 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1338 /* mcbsp3_sidetone */
1339 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
1340 { .name
= "irq", .irq
= 5 + OMAP_INTC_START
, },
1344 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
1345 .name
= "mcbsp3_sidetone",
1346 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1347 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
1348 .main_clk
= "mcbsp3_fck",
1352 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1353 .module_offs
= OMAP3430_PER_MOD
,
1355 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1361 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
1365 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
1367 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
1368 .clockact
= CLOCKACT_TEST_ICLK
,
1369 .sysc_fields
= &omap34xx_sr_sysc_fields
,
1372 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
1373 .name
= "smartreflex",
1374 .sysc
= &omap34xx_sr_sysc
,
1378 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
1383 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
1385 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1386 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1388 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1391 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
1392 .name
= "smartreflex",
1393 .sysc
= &omap36xx_sr_sysc
,
1398 static struct omap_smartreflex_dev_attr sr1_dev_attr
= {
1399 .sensor_voltdm_name
= "mpu_iva",
1402 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs
[] = {
1403 { .irq
= 18 + OMAP_INTC_START
, },
1407 static struct omap_hwmod omap34xx_sr1_hwmod
= {
1408 .name
= "smartreflex_mpu_iva",
1409 .class = &omap34xx_smartreflex_hwmod_class
,
1410 .main_clk
= "sr1_fck",
1414 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1415 .module_offs
= WKUP_MOD
,
1417 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1420 .dev_attr
= &sr1_dev_attr
,
1421 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1422 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1425 static struct omap_hwmod omap36xx_sr1_hwmod
= {
1426 .name
= "smartreflex_mpu_iva",
1427 .class = &omap36xx_smartreflex_hwmod_class
,
1428 .main_clk
= "sr1_fck",
1432 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1433 .module_offs
= WKUP_MOD
,
1435 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1438 .dev_attr
= &sr1_dev_attr
,
1439 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1443 static struct omap_smartreflex_dev_attr sr2_dev_attr
= {
1444 .sensor_voltdm_name
= "core",
1447 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs
[] = {
1448 { .irq
= 19 + OMAP_INTC_START
, },
1452 static struct omap_hwmod omap34xx_sr2_hwmod
= {
1453 .name
= "smartreflex_core",
1454 .class = &omap34xx_smartreflex_hwmod_class
,
1455 .main_clk
= "sr2_fck",
1459 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1460 .module_offs
= WKUP_MOD
,
1462 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1465 .dev_attr
= &sr2_dev_attr
,
1466 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1467 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1470 static struct omap_hwmod omap36xx_sr2_hwmod
= {
1471 .name
= "smartreflex_core",
1472 .class = &omap36xx_smartreflex_hwmod_class
,
1473 .main_clk
= "sr2_fck",
1477 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1478 .module_offs
= WKUP_MOD
,
1480 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1483 .dev_attr
= &sr2_dev_attr
,
1484 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1489 * mailbox module allowing communication between the on-chip processors
1490 * using a queued mailbox-interrupt mechanism.
1493 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
1497 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1498 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1499 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1500 .sysc_fields
= &omap_hwmod_sysc_type1
,
1503 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
1505 .sysc
= &omap3xxx_mailbox_sysc
,
1508 static struct omap_mbox_dev_info omap3xxx_mailbox_info
[] = {
1509 { .name
= "dsp", .tx_id
= 0, .rx_id
= 1 },
1512 static struct omap_mbox_pdata omap3xxx_mailbox_attrs
= {
1515 .info_cnt
= ARRAY_SIZE(omap3xxx_mailbox_info
),
1516 .info
= omap3xxx_mailbox_info
,
1519 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs
[] = {
1520 { .irq
= 26 + OMAP_INTC_START
, },
1524 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
1526 .class = &omap3xxx_mailbox_hwmod_class
,
1527 .mpu_irqs
= omap3xxx_mailbox_irqs
,
1528 .main_clk
= "mailboxes_ick",
1532 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
1533 .module_offs
= CORE_MOD
,
1535 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
1538 .dev_attr
= &omap3xxx_mailbox_attrs
,
1543 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1547 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
1549 .sysc_offs
= 0x0010,
1550 .syss_offs
= 0x0014,
1551 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1552 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1553 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1554 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1555 .sysc_fields
= &omap_hwmod_sysc_type1
,
1558 static struct omap_hwmod_class omap34xx_mcspi_class
= {
1560 .sysc
= &omap34xx_mcspi_sysc
,
1561 .rev
= OMAP3_MCSPI_REV
,
1565 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1566 .num_chipselect
= 4,
1569 static struct omap_hwmod omap34xx_mcspi1
= {
1571 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
1572 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
1573 .main_clk
= "mcspi1_fck",
1576 .module_offs
= CORE_MOD
,
1578 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
1580 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
1583 .class = &omap34xx_mcspi_class
,
1584 .dev_attr
= &omap_mcspi1_dev_attr
,
1588 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
1589 .num_chipselect
= 2,
1592 static struct omap_hwmod omap34xx_mcspi2
= {
1594 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
1595 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
1596 .main_clk
= "mcspi2_fck",
1599 .module_offs
= CORE_MOD
,
1601 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
1603 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
1606 .class = &omap34xx_mcspi_class
,
1607 .dev_attr
= &omap_mcspi2_dev_attr
,
1611 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
1612 { .name
= "irq", .irq
= 91 + OMAP_INTC_START
, }, /* 91 */
1616 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
1617 { .name
= "tx0", .dma_req
= 15 },
1618 { .name
= "rx0", .dma_req
= 16 },
1619 { .name
= "tx1", .dma_req
= 23 },
1620 { .name
= "rx1", .dma_req
= 24 },
1624 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
1625 .num_chipselect
= 2,
1628 static struct omap_hwmod omap34xx_mcspi3
= {
1630 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
1631 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
1632 .main_clk
= "mcspi3_fck",
1635 .module_offs
= CORE_MOD
,
1637 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
1639 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
1642 .class = &omap34xx_mcspi_class
,
1643 .dev_attr
= &omap_mcspi3_dev_attr
,
1647 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
1648 { .name
= "irq", .irq
= 48 + OMAP_INTC_START
, },
1652 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
1653 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
1654 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
1658 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
1659 .num_chipselect
= 1,
1662 static struct omap_hwmod omap34xx_mcspi4
= {
1664 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
1665 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
1666 .main_clk
= "mcspi4_fck",
1669 .module_offs
= CORE_MOD
,
1671 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
1673 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
1676 .class = &omap34xx_mcspi_class
,
1677 .dev_attr
= &omap_mcspi4_dev_attr
,
1681 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
1683 .sysc_offs
= 0x0404,
1684 .syss_offs
= 0x0408,
1685 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1686 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1688 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1689 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1690 .sysc_fields
= &omap_hwmod_sysc_type1
,
1693 static struct omap_hwmod_class usbotg_class
= {
1695 .sysc
= &omap3xxx_usbhsotg_sysc
,
1699 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
1701 { .name
= "mc", .irq
= 92 + OMAP_INTC_START
, },
1702 { .name
= "dma", .irq
= 93 + OMAP_INTC_START
, },
1706 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
1707 .name
= "usb_otg_hs",
1708 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
1709 .main_clk
= "hsotgusb_ick",
1713 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
1714 .module_offs
= CORE_MOD
,
1716 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
1717 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1720 .class = &usbotg_class
,
1723 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1724 * broken when autoidle is enabled
1725 * workaround is to disable the autoidle bit at module level.
1727 * Enabling the device in any other MIDLEMODE setting but force-idle
1728 * causes core_pwrdm not enter idle states at least on OMAP3630.
1729 * Note that musb has OTG_FORCESTDBY register that controls MSTANDBY
1730 * signal when MIDLEMODE is set to force-idle.
1732 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
1733 | HWMOD_FORCE_MSTANDBY
,
1737 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
1738 { .name
= "mc", .irq
= 71 + OMAP_INTC_START
, },
1742 static struct omap_hwmod_class am35xx_usbotg_class
= {
1743 .name
= "am35xx_usbotg",
1746 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
1747 .name
= "am35x_otg_hs",
1748 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
1749 .main_clk
= "hsotgusb_fck",
1750 .class = &am35xx_usbotg_class
,
1751 .flags
= HWMOD_NO_IDLEST
,
1754 /* MMC/SD/SDIO common */
1755 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
1759 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1760 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1761 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1762 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1763 .sysc_fields
= &omap_hwmod_sysc_type1
,
1766 static struct omap_hwmod_class omap34xx_mmc_class
= {
1768 .sysc
= &omap34xx_mmc_sysc
,
1773 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
1774 { .irq
= 83 + OMAP_INTC_START
, },
1778 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
1779 { .name
= "tx", .dma_req
= 61, },
1780 { .name
= "rx", .dma_req
= 62, },
1784 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
1785 { .role
= "dbck", .clk
= "omap_32k_fck", },
1788 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
1789 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1792 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1793 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr
= {
1794 .flags
= (OMAP_HSMMC_SUPPORTS_DUAL_VOLT
|
1795 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
),
1798 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod
= {
1800 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1801 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1802 .opt_clks
= omap34xx_mmc1_opt_clks
,
1803 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1804 .main_clk
= "mmchs1_fck",
1807 .module_offs
= CORE_MOD
,
1809 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1811 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1814 .dev_attr
= &mmc1_pre_es3_dev_attr
,
1815 .class = &omap34xx_mmc_class
,
1818 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod
= {
1820 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1821 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1822 .opt_clks
= omap34xx_mmc1_opt_clks
,
1823 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1824 .main_clk
= "mmchs1_fck",
1827 .module_offs
= CORE_MOD
,
1829 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1831 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1834 .dev_attr
= &mmc1_dev_attr
,
1835 .class = &omap34xx_mmc_class
,
1840 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
1841 { .irq
= 86 + OMAP_INTC_START
, },
1845 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
1846 { .name
= "tx", .dma_req
= 47, },
1847 { .name
= "rx", .dma_req
= 48, },
1851 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
1852 { .role
= "dbck", .clk
= "omap_32k_fck", },
1855 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1856 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr
= {
1857 .flags
= OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
,
1860 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod
= {
1862 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1863 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1864 .opt_clks
= omap34xx_mmc2_opt_clks
,
1865 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1866 .main_clk
= "mmchs2_fck",
1869 .module_offs
= CORE_MOD
,
1871 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1873 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1876 .dev_attr
= &mmc2_pre_es3_dev_attr
,
1877 .class = &omap34xx_mmc_class
,
1880 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod
= {
1882 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1883 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1884 .opt_clks
= omap34xx_mmc2_opt_clks
,
1885 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1886 .main_clk
= "mmchs2_fck",
1889 .module_offs
= CORE_MOD
,
1891 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1893 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1896 .class = &omap34xx_mmc_class
,
1901 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
1902 { .irq
= 94 + OMAP_INTC_START
, },
1906 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
1907 { .name
= "tx", .dma_req
= 77, },
1908 { .name
= "rx", .dma_req
= 78, },
1912 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
1913 { .role
= "dbck", .clk
= "omap_32k_fck", },
1916 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
1918 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
1919 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
1920 .opt_clks
= omap34xx_mmc3_opt_clks
,
1921 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
1922 .main_clk
= "mmchs3_fck",
1926 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
1928 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
1931 .class = &omap34xx_mmc_class
,
1935 * 'usb_host_hs' class
1936 * high-speed multi-port usb host controller
1939 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc
= {
1941 .sysc_offs
= 0x0010,
1942 .syss_offs
= 0x0014,
1943 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1944 SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1945 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1946 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1947 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1948 .sysc_fields
= &omap_hwmod_sysc_type1
,
1951 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class
= {
1952 .name
= "usb_host_hs",
1953 .sysc
= &omap3xxx_usb_host_hs_sysc
,
1956 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks
[] = {
1957 { .role
= "ehci_logic_fck", .clk
= "usbhost_120m_fck", },
1960 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs
[] = {
1961 { .name
= "ohci-irq", .irq
= 76 + OMAP_INTC_START
, },
1962 { .name
= "ehci-irq", .irq
= 77 + OMAP_INTC_START
, },
1966 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod
= {
1967 .name
= "usb_host_hs",
1968 .class = &omap3xxx_usb_host_hs_hwmod_class
,
1969 .clkdm_name
= "l3_init_clkdm",
1970 .mpu_irqs
= omap3xxx_usb_host_hs_irqs
,
1971 .main_clk
= "usbhost_48m_fck",
1974 .module_offs
= OMAP3430ES2_USBHOST_MOD
,
1976 .module_bit
= OMAP3430ES2_EN_USBHOST1_SHIFT
,
1978 .idlest_idle_bit
= OMAP3430ES2_ST_USBHOST_IDLE_SHIFT
,
1979 .idlest_stdby_bit
= OMAP3430ES2_ST_USBHOST_STDBY_SHIFT
,
1982 .opt_clks
= omap3xxx_usb_host_hs_opt_clks
,
1983 .opt_clks_cnt
= ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks
),
1986 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1990 * In the following configuration :
1991 * - USBHOST module is set to smart-idle mode
1992 * - PRCM asserts idle_req to the USBHOST module ( This typically
1993 * happens when the system is going to a low power mode : all ports
1994 * have been suspended, the master part of the USBHOST module has
1995 * entered the standby state, and SW has cut the functional clocks)
1996 * - an USBHOST interrupt occurs before the module is able to answer
1997 * idle_ack, typically a remote wakeup IRQ.
1998 * Then the USB HOST module will enter a deadlock situation where it
1999 * is no more accessible nor functional.
2002 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2006 * Errata: USB host EHCI may stall when entering smart-standby mode
2010 * When the USBHOST module is set to smart-standby mode, and when it is
2011 * ready to enter the standby state (i.e. all ports are suspended and
2012 * all attached devices are in suspend mode), then it can wrongly assert
2013 * the Mstandby signal too early while there are still some residual OCP
2014 * transactions ongoing. If this condition occurs, the internal state
2015 * machine may go to an undefined state and the USB link may be stuck
2016 * upon the next resume.
2019 * Don't use smart standby; use only force standby,
2020 * hence HWMOD_SWSUP_MSTANDBY
2024 * During system boot; If the hwmod framework resets the module
2025 * the module will have smart idle settings; which can lead to deadlock
2026 * (above Errata Id:i660); so, dont reset the module during boot;
2027 * Use HWMOD_INIT_NO_RESET.
2030 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
|
2031 HWMOD_INIT_NO_RESET
,
2035 * 'usb_tll_hs' class
2036 * usb_tll_hs module is the adapter on the usb_host_hs ports
2038 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc
= {
2040 .sysc_offs
= 0x0010,
2041 .syss_offs
= 0x0014,
2042 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2043 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
2045 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2046 .sysc_fields
= &omap_hwmod_sysc_type1
,
2049 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class
= {
2050 .name
= "usb_tll_hs",
2051 .sysc
= &omap3xxx_usb_tll_hs_sysc
,
2054 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs
[] = {
2055 { .name
= "tll-irq", .irq
= 78 + OMAP_INTC_START
, },
2059 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod
= {
2060 .name
= "usb_tll_hs",
2061 .class = &omap3xxx_usb_tll_hs_hwmod_class
,
2062 .clkdm_name
= "l3_init_clkdm",
2063 .mpu_irqs
= omap3xxx_usb_tll_hs_irqs
,
2064 .main_clk
= "usbtll_fck",
2067 .module_offs
= CORE_MOD
,
2069 .module_bit
= OMAP3430ES2_EN_USBTLL_SHIFT
,
2071 .idlest_idle_bit
= OMAP3430ES2_ST_USBTLL_SHIFT
,
2076 static struct omap_hwmod omap3xxx_hdq1w_hwmod
= {
2078 .mpu_irqs
= omap2_hdq1w_mpu_irqs
,
2079 .main_clk
= "hdq_fck",
2082 .module_offs
= CORE_MOD
,
2084 .module_bit
= OMAP3430_EN_HDQ_SHIFT
,
2086 .idlest_idle_bit
= OMAP3430_ST_HDQ_SHIFT
,
2089 .class = &omap2_hdq1w_class
,
2093 static struct omap_hwmod_rst_info omap3xxx_sad2d_resets
[] = {
2094 { .name
= "rst_modem_pwron_sw", .rst_shift
= 0 },
2095 { .name
= "rst_modem_sw", .rst_shift
= 1 },
2098 static struct omap_hwmod_class omap3xxx_sad2d_class
= {
2102 static struct omap_hwmod omap3xxx_sad2d_hwmod
= {
2104 .rst_lines
= omap3xxx_sad2d_resets
,
2105 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_sad2d_resets
),
2106 .main_clk
= "sad2d_ick",
2109 .module_offs
= CORE_MOD
,
2111 .module_bit
= OMAP3430_EN_SAD2D_SHIFT
,
2113 .idlest_idle_bit
= OMAP3430_ST_SAD2D_SHIFT
,
2116 .class = &omap3xxx_sad2d_class
,
2120 * '32K sync counter' class
2121 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2123 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc
= {
2125 .sysc_offs
= 0x0004,
2126 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
2127 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
2128 .sysc_fields
= &omap_hwmod_sysc_type1
,
2131 static struct omap_hwmod_class omap3xxx_counter_hwmod_class
= {
2133 .sysc
= &omap3xxx_counter_sysc
,
2136 static struct omap_hwmod omap3xxx_counter_32k_hwmod
= {
2137 .name
= "counter_32k",
2138 .class = &omap3xxx_counter_hwmod_class
,
2139 .clkdm_name
= "wkup_clkdm",
2140 .flags
= HWMOD_SWSUP_SIDLE
,
2141 .main_clk
= "wkup_32k_fck",
2144 .module_offs
= WKUP_MOD
,
2146 .module_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2148 .idlest_idle_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2155 * general purpose memory controller
2158 static struct omap_hwmod_class_sysconfig omap3xxx_gpmc_sysc
= {
2160 .sysc_offs
= 0x0010,
2161 .syss_offs
= 0x0014,
2162 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
2163 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2164 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2165 .sysc_fields
= &omap_hwmod_sysc_type1
,
2168 static struct omap_hwmod_class omap3xxx_gpmc_hwmod_class
= {
2170 .sysc
= &omap3xxx_gpmc_sysc
,
2173 static struct omap_hwmod_irq_info omap3xxx_gpmc_irqs
[] = {
2178 static struct omap_hwmod omap3xxx_gpmc_hwmod
= {
2180 .class = &omap3xxx_gpmc_hwmod_class
,
2181 .clkdm_name
= "core_l3_clkdm",
2182 .mpu_irqs
= omap3xxx_gpmc_irqs
,
2183 .main_clk
= "gpmc_fck",
2185 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
2186 * block. It is not being added due to any known bugs with
2187 * resetting the GPMC IP block, but rather because any timings
2188 * set by the bootloader are not being correctly programmed by
2189 * the kernel from the board file or DT data.
2190 * HWMOD_INIT_NO_RESET should be removed ASAP.
2192 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
|
2200 /* L3 -> L4_CORE interface */
2201 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
2202 .master
= &omap3xxx_l3_main_hwmod
,
2203 .slave
= &omap3xxx_l4_core_hwmod
,
2204 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2207 /* L3 -> L4_PER interface */
2208 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
2209 .master
= &omap3xxx_l3_main_hwmod
,
2210 .slave
= &omap3xxx_l4_per_hwmod
,
2211 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2214 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
2216 .pa_start
= 0x68000000,
2217 .pa_end
= 0x6800ffff,
2218 .flags
= ADDR_TYPE_RT
,
2223 /* MPU -> L3 interface */
2224 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
2225 .master
= &omap3xxx_mpu_hwmod
,
2226 .slave
= &omap3xxx_l3_main_hwmod
,
2227 .addr
= omap3xxx_l3_main_addrs
,
2228 .user
= OCP_USER_MPU
,
2231 static struct omap_hwmod_addr_space omap3xxx_l4_emu_addrs
[] = {
2233 .pa_start
= 0x54000000,
2234 .pa_end
= 0x547fffff,
2235 .flags
= ADDR_TYPE_RT
,
2241 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_debugss
= {
2242 .master
= &omap3xxx_l3_main_hwmod
,
2243 .slave
= &omap3xxx_debugss_hwmod
,
2244 .addr
= omap3xxx_l4_emu_addrs
,
2245 .user
= OCP_USER_MPU
,
2249 static struct omap_hwmod_ocp_if omap3430es1_dss__l3
= {
2250 .master
= &omap3430es1_dss_core_hwmod
,
2251 .slave
= &omap3xxx_l3_main_hwmod
,
2252 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2255 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
2256 .master
= &omap3xxx_dss_core_hwmod
,
2257 .slave
= &omap3xxx_l3_main_hwmod
,
2260 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
2261 .flags
= OMAP_FIREWALL_L3
,
2264 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2267 /* l3_core -> usbhsotg interface */
2268 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
2269 .master
= &omap3xxx_usbhsotg_hwmod
,
2270 .slave
= &omap3xxx_l3_main_hwmod
,
2271 .clk
= "core_l3_ick",
2272 .user
= OCP_USER_MPU
,
2275 /* l3_core -> am35xx_usbhsotg interface */
2276 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
2277 .master
= &am35xx_usbhsotg_hwmod
,
2278 .slave
= &omap3xxx_l3_main_hwmod
,
2279 .clk
= "hsotgusb_ick",
2280 .user
= OCP_USER_MPU
,
2283 /* l3_core -> sad2d interface */
2284 static struct omap_hwmod_ocp_if omap3xxx_sad2d__l3
= {
2285 .master
= &omap3xxx_sad2d_hwmod
,
2286 .slave
= &omap3xxx_l3_main_hwmod
,
2287 .clk
= "core_l3_ick",
2288 .user
= OCP_USER_MPU
,
2291 /* L4_CORE -> L4_WKUP interface */
2292 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
2293 .master
= &omap3xxx_l4_core_hwmod
,
2294 .slave
= &omap3xxx_l4_wkup_hwmod
,
2295 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2298 /* L4 CORE -> MMC1 interface */
2299 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1
= {
2300 .master
= &omap3xxx_l4_core_hwmod
,
2301 .slave
= &omap3xxx_pre_es3_mmc1_hwmod
,
2302 .clk
= "mmchs1_ick",
2303 .addr
= omap2430_mmc1_addr_space
,
2304 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2305 .flags
= OMAP_FIREWALL_L4
2308 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1
= {
2309 .master
= &omap3xxx_l4_core_hwmod
,
2310 .slave
= &omap3xxx_es3plus_mmc1_hwmod
,
2311 .clk
= "mmchs1_ick",
2312 .addr
= omap2430_mmc1_addr_space
,
2313 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2314 .flags
= OMAP_FIREWALL_L4
2317 /* L4 CORE -> MMC2 interface */
2318 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2
= {
2319 .master
= &omap3xxx_l4_core_hwmod
,
2320 .slave
= &omap3xxx_pre_es3_mmc2_hwmod
,
2321 .clk
= "mmchs2_ick",
2322 .addr
= omap2430_mmc2_addr_space
,
2323 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2324 .flags
= OMAP_FIREWALL_L4
2327 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2
= {
2328 .master
= &omap3xxx_l4_core_hwmod
,
2329 .slave
= &omap3xxx_es3plus_mmc2_hwmod
,
2330 .clk
= "mmchs2_ick",
2331 .addr
= omap2430_mmc2_addr_space
,
2332 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2333 .flags
= OMAP_FIREWALL_L4
2336 /* L4 CORE -> MMC3 interface */
2337 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
2339 .pa_start
= 0x480ad000,
2340 .pa_end
= 0x480ad1ff,
2341 .flags
= ADDR_TYPE_RT
,
2346 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
2347 .master
= &omap3xxx_l4_core_hwmod
,
2348 .slave
= &omap3xxx_mmc3_hwmod
,
2349 .clk
= "mmchs3_ick",
2350 .addr
= omap3xxx_mmc3_addr_space
,
2351 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2352 .flags
= OMAP_FIREWALL_L4
2355 /* L4 CORE -> UART1 interface */
2356 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
2358 .pa_start
= OMAP3_UART1_BASE
,
2359 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
2360 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2365 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
2366 .master
= &omap3xxx_l4_core_hwmod
,
2367 .slave
= &omap3xxx_uart1_hwmod
,
2369 .addr
= omap3xxx_uart1_addr_space
,
2370 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2373 /* L4 CORE -> UART2 interface */
2374 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
2376 .pa_start
= OMAP3_UART2_BASE
,
2377 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
2378 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2383 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
2384 .master
= &omap3xxx_l4_core_hwmod
,
2385 .slave
= &omap3xxx_uart2_hwmod
,
2387 .addr
= omap3xxx_uart2_addr_space
,
2388 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2391 /* L4 PER -> UART3 interface */
2392 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
2394 .pa_start
= OMAP3_UART3_BASE
,
2395 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
2396 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2401 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
2402 .master
= &omap3xxx_l4_per_hwmod
,
2403 .slave
= &omap3xxx_uart3_hwmod
,
2405 .addr
= omap3xxx_uart3_addr_space
,
2406 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2409 /* L4 PER -> UART4 interface */
2410 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space
[] = {
2412 .pa_start
= OMAP3_UART4_BASE
,
2413 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
2414 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2419 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4
= {
2420 .master
= &omap3xxx_l4_per_hwmod
,
2421 .slave
= &omap36xx_uart4_hwmod
,
2423 .addr
= omap36xx_uart4_addr_space
,
2424 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2427 /* AM35xx: L4 CORE -> UART4 interface */
2428 static struct omap_hwmod_addr_space am35xx_uart4_addr_space
[] = {
2430 .pa_start
= OMAP3_UART4_AM35XX_BASE
,
2431 .pa_end
= OMAP3_UART4_AM35XX_BASE
+ SZ_1K
- 1,
2432 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2437 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4
= {
2438 .master
= &omap3xxx_l4_core_hwmod
,
2439 .slave
= &am35xx_uart4_hwmod
,
2441 .addr
= am35xx_uart4_addr_space
,
2442 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2445 /* L4 CORE -> I2C1 interface */
2446 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
2447 .master
= &omap3xxx_l4_core_hwmod
,
2448 .slave
= &omap3xxx_i2c1_hwmod
,
2450 .addr
= omap2_i2c1_addr_space
,
2453 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
2455 .flags
= OMAP_FIREWALL_L4
,
2458 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2461 /* L4 CORE -> I2C2 interface */
2462 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
2463 .master
= &omap3xxx_l4_core_hwmod
,
2464 .slave
= &omap3xxx_i2c2_hwmod
,
2466 .addr
= omap2_i2c2_addr_space
,
2469 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
2471 .flags
= OMAP_FIREWALL_L4
,
2474 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2477 /* L4 CORE -> I2C3 interface */
2478 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
2480 .pa_start
= 0x48060000,
2481 .pa_end
= 0x48060000 + SZ_128
- 1,
2482 .flags
= ADDR_TYPE_RT
,
2487 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
2488 .master
= &omap3xxx_l4_core_hwmod
,
2489 .slave
= &omap3xxx_i2c3_hwmod
,
2491 .addr
= omap3xxx_i2c3_addr_space
,
2494 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
2496 .flags
= OMAP_FIREWALL_L4
,
2499 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2502 /* L4 CORE -> SR1 interface */
2503 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
2505 .pa_start
= OMAP34XX_SR1_BASE
,
2506 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
2507 .flags
= ADDR_TYPE_RT
,
2512 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1
= {
2513 .master
= &omap3xxx_l4_core_hwmod
,
2514 .slave
= &omap34xx_sr1_hwmod
,
2516 .addr
= omap3_sr1_addr_space
,
2517 .user
= OCP_USER_MPU
,
2520 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1
= {
2521 .master
= &omap3xxx_l4_core_hwmod
,
2522 .slave
= &omap36xx_sr1_hwmod
,
2524 .addr
= omap3_sr1_addr_space
,
2525 .user
= OCP_USER_MPU
,
2528 /* L4 CORE -> SR1 interface */
2529 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
2531 .pa_start
= OMAP34XX_SR2_BASE
,
2532 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
2533 .flags
= ADDR_TYPE_RT
,
2538 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2
= {
2539 .master
= &omap3xxx_l4_core_hwmod
,
2540 .slave
= &omap34xx_sr2_hwmod
,
2542 .addr
= omap3_sr2_addr_space
,
2543 .user
= OCP_USER_MPU
,
2546 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2
= {
2547 .master
= &omap3xxx_l4_core_hwmod
,
2548 .slave
= &omap36xx_sr2_hwmod
,
2550 .addr
= omap3_sr2_addr_space
,
2551 .user
= OCP_USER_MPU
,
2554 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
2556 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
2557 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
2558 .flags
= ADDR_TYPE_RT
2563 /* l4_core -> usbhsotg */
2564 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
2565 .master
= &omap3xxx_l4_core_hwmod
,
2566 .slave
= &omap3xxx_usbhsotg_hwmod
,
2568 .addr
= omap3xxx_usbhsotg_addrs
,
2569 .user
= OCP_USER_MPU
,
2572 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
2574 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
2575 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
2576 .flags
= ADDR_TYPE_RT
2581 /* l4_core -> usbhsotg */
2582 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
2583 .master
= &omap3xxx_l4_core_hwmod
,
2584 .slave
= &am35xx_usbhsotg_hwmod
,
2585 .clk
= "hsotgusb_ick",
2586 .addr
= am35xx_usbhsotg_addrs
,
2587 .user
= OCP_USER_MPU
,
2590 /* L4_WKUP -> L4_SEC interface */
2591 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec
= {
2592 .master
= &omap3xxx_l4_wkup_hwmod
,
2593 .slave
= &omap3xxx_l4_sec_hwmod
,
2594 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2597 /* IVA2 <- L3 interface */
2598 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
2599 .master
= &omap3xxx_l3_main_hwmod
,
2600 .slave
= &omap3xxx_iva_hwmod
,
2601 .clk
= "core_l3_ick",
2602 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2605 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
2607 .pa_start
= 0x48318000,
2608 .pa_end
= 0x48318000 + SZ_1K
- 1,
2609 .flags
= ADDR_TYPE_RT
2614 /* l4_wkup -> timer1 */
2615 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
2616 .master
= &omap3xxx_l4_wkup_hwmod
,
2617 .slave
= &omap3xxx_timer1_hwmod
,
2619 .addr
= omap3xxx_timer1_addrs
,
2620 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2623 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
2625 .pa_start
= 0x49032000,
2626 .pa_end
= 0x49032000 + SZ_1K
- 1,
2627 .flags
= ADDR_TYPE_RT
2632 /* l4_per -> timer2 */
2633 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
2634 .master
= &omap3xxx_l4_per_hwmod
,
2635 .slave
= &omap3xxx_timer2_hwmod
,
2637 .addr
= omap3xxx_timer2_addrs
,
2638 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2641 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
2643 .pa_start
= 0x49034000,
2644 .pa_end
= 0x49034000 + SZ_1K
- 1,
2645 .flags
= ADDR_TYPE_RT
2650 /* l4_per -> timer3 */
2651 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
2652 .master
= &omap3xxx_l4_per_hwmod
,
2653 .slave
= &omap3xxx_timer3_hwmod
,
2655 .addr
= omap3xxx_timer3_addrs
,
2656 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2659 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
2661 .pa_start
= 0x49036000,
2662 .pa_end
= 0x49036000 + SZ_1K
- 1,
2663 .flags
= ADDR_TYPE_RT
2668 /* l4_per -> timer4 */
2669 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
2670 .master
= &omap3xxx_l4_per_hwmod
,
2671 .slave
= &omap3xxx_timer4_hwmod
,
2673 .addr
= omap3xxx_timer4_addrs
,
2674 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2677 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
2679 .pa_start
= 0x49038000,
2680 .pa_end
= 0x49038000 + SZ_1K
- 1,
2681 .flags
= ADDR_TYPE_RT
2686 /* l4_per -> timer5 */
2687 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
2688 .master
= &omap3xxx_l4_per_hwmod
,
2689 .slave
= &omap3xxx_timer5_hwmod
,
2691 .addr
= omap3xxx_timer5_addrs
,
2692 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2695 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
2697 .pa_start
= 0x4903A000,
2698 .pa_end
= 0x4903A000 + SZ_1K
- 1,
2699 .flags
= ADDR_TYPE_RT
2704 /* l4_per -> timer6 */
2705 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
2706 .master
= &omap3xxx_l4_per_hwmod
,
2707 .slave
= &omap3xxx_timer6_hwmod
,
2709 .addr
= omap3xxx_timer6_addrs
,
2710 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2713 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
2715 .pa_start
= 0x4903C000,
2716 .pa_end
= 0x4903C000 + SZ_1K
- 1,
2717 .flags
= ADDR_TYPE_RT
2722 /* l4_per -> timer7 */
2723 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
2724 .master
= &omap3xxx_l4_per_hwmod
,
2725 .slave
= &omap3xxx_timer7_hwmod
,
2727 .addr
= omap3xxx_timer7_addrs
,
2728 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2731 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
2733 .pa_start
= 0x4903E000,
2734 .pa_end
= 0x4903E000 + SZ_1K
- 1,
2735 .flags
= ADDR_TYPE_RT
2740 /* l4_per -> timer8 */
2741 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
2742 .master
= &omap3xxx_l4_per_hwmod
,
2743 .slave
= &omap3xxx_timer8_hwmod
,
2745 .addr
= omap3xxx_timer8_addrs
,
2746 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2749 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
2751 .pa_start
= 0x49040000,
2752 .pa_end
= 0x49040000 + SZ_1K
- 1,
2753 .flags
= ADDR_TYPE_RT
2758 /* l4_per -> timer9 */
2759 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
2760 .master
= &omap3xxx_l4_per_hwmod
,
2761 .slave
= &omap3xxx_timer9_hwmod
,
2763 .addr
= omap3xxx_timer9_addrs
,
2764 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2767 /* l4_core -> timer10 */
2768 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
2769 .master
= &omap3xxx_l4_core_hwmod
,
2770 .slave
= &omap3xxx_timer10_hwmod
,
2772 .addr
= omap2_timer10_addrs
,
2773 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2776 /* l4_core -> timer11 */
2777 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
2778 .master
= &omap3xxx_l4_core_hwmod
,
2779 .slave
= &omap3xxx_timer11_hwmod
,
2781 .addr
= omap2_timer11_addrs
,
2782 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2785 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
2787 .pa_start
= 0x48304000,
2788 .pa_end
= 0x48304000 + SZ_1K
- 1,
2789 .flags
= ADDR_TYPE_RT
2794 /* l4_core -> timer12 */
2795 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12
= {
2796 .master
= &omap3xxx_l4_sec_hwmod
,
2797 .slave
= &omap3xxx_timer12_hwmod
,
2799 .addr
= omap3xxx_timer12_addrs
,
2800 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2803 /* l4_wkup -> wd_timer2 */
2804 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
2806 .pa_start
= 0x48314000,
2807 .pa_end
= 0x4831407f,
2808 .flags
= ADDR_TYPE_RT
2813 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
2814 .master
= &omap3xxx_l4_wkup_hwmod
,
2815 .slave
= &omap3xxx_wd_timer2_hwmod
,
2817 .addr
= omap3xxx_wd_timer2_addrs
,
2818 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2821 /* l4_core -> dss */
2822 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
2823 .master
= &omap3xxx_l4_core_hwmod
,
2824 .slave
= &omap3430es1_dss_core_hwmod
,
2826 .addr
= omap2_dss_addrs
,
2829 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
2830 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2831 .flags
= OMAP_FIREWALL_L4
,
2834 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2837 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
2838 .master
= &omap3xxx_l4_core_hwmod
,
2839 .slave
= &omap3xxx_dss_core_hwmod
,
2841 .addr
= omap2_dss_addrs
,
2844 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
2845 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2846 .flags
= OMAP_FIREWALL_L4
,
2849 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2852 /* l4_core -> dss_dispc */
2853 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
2854 .master
= &omap3xxx_l4_core_hwmod
,
2855 .slave
= &omap3xxx_dss_dispc_hwmod
,
2857 .addr
= omap2_dss_dispc_addrs
,
2860 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
2861 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2862 .flags
= OMAP_FIREWALL_L4
,
2865 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2868 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
2870 .pa_start
= 0x4804FC00,
2871 .pa_end
= 0x4804FFFF,
2872 .flags
= ADDR_TYPE_RT
2877 /* l4_core -> dss_dsi1 */
2878 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
2879 .master
= &omap3xxx_l4_core_hwmod
,
2880 .slave
= &omap3xxx_dss_dsi1_hwmod
,
2882 .addr
= omap3xxx_dss_dsi1_addrs
,
2885 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
2886 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2887 .flags
= OMAP_FIREWALL_L4
,
2890 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2893 /* l4_core -> dss_rfbi */
2894 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
2895 .master
= &omap3xxx_l4_core_hwmod
,
2896 .slave
= &omap3xxx_dss_rfbi_hwmod
,
2898 .addr
= omap2_dss_rfbi_addrs
,
2901 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
2902 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2903 .flags
= OMAP_FIREWALL_L4
,
2906 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2909 /* l4_core -> dss_venc */
2910 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
2911 .master
= &omap3xxx_l4_core_hwmod
,
2912 .slave
= &omap3xxx_dss_venc_hwmod
,
2914 .addr
= omap2_dss_venc_addrs
,
2917 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
2918 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2919 .flags
= OMAP_FIREWALL_L4
,
2922 .flags
= OCPIF_SWSUP_IDLE
,
2923 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2926 /* l4_wkup -> gpio1 */
2927 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
2929 .pa_start
= 0x48310000,
2930 .pa_end
= 0x483101ff,
2931 .flags
= ADDR_TYPE_RT
2936 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
2937 .master
= &omap3xxx_l4_wkup_hwmod
,
2938 .slave
= &omap3xxx_gpio1_hwmod
,
2939 .addr
= omap3xxx_gpio1_addrs
,
2940 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2943 /* l4_per -> gpio2 */
2944 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
2946 .pa_start
= 0x49050000,
2947 .pa_end
= 0x490501ff,
2948 .flags
= ADDR_TYPE_RT
2953 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
2954 .master
= &omap3xxx_l4_per_hwmod
,
2955 .slave
= &omap3xxx_gpio2_hwmod
,
2956 .addr
= omap3xxx_gpio2_addrs
,
2957 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2960 /* l4_per -> gpio3 */
2961 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
2963 .pa_start
= 0x49052000,
2964 .pa_end
= 0x490521ff,
2965 .flags
= ADDR_TYPE_RT
2970 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
2971 .master
= &omap3xxx_l4_per_hwmod
,
2972 .slave
= &omap3xxx_gpio3_hwmod
,
2973 .addr
= omap3xxx_gpio3_addrs
,
2974 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2979 * The memory management unit performs virtual to physical address translation
2980 * for its requestors.
2983 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
2987 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2988 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2989 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2990 .sysc_fields
= &omap_hwmod_sysc_type1
,
2993 static struct omap_hwmod_class omap3xxx_mmu_hwmod_class
= {
3000 static struct omap_mmu_dev_attr mmu_isp_dev_attr
= {
3002 .da_end
= 0xfffff000,
3003 .nr_tlb_entries
= 8,
3006 static struct omap_hwmod omap3xxx_mmu_isp_hwmod
;
3007 static struct omap_hwmod_irq_info omap3xxx_mmu_isp_irqs
[] = {
3012 static struct omap_hwmod_addr_space omap3xxx_mmu_isp_addrs
[] = {
3014 .pa_start
= 0x480bd400,
3015 .pa_end
= 0x480bd47f,
3016 .flags
= ADDR_TYPE_RT
,
3021 /* l4_core -> mmu isp */
3022 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmu_isp
= {
3023 .master
= &omap3xxx_l4_core_hwmod
,
3024 .slave
= &omap3xxx_mmu_isp_hwmod
,
3025 .addr
= omap3xxx_mmu_isp_addrs
,
3026 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3029 static struct omap_hwmod omap3xxx_mmu_isp_hwmod
= {
3031 .class = &omap3xxx_mmu_hwmod_class
,
3032 .mpu_irqs
= omap3xxx_mmu_isp_irqs
,
3033 .main_clk
= "cam_ick",
3034 .dev_attr
= &mmu_isp_dev_attr
,
3035 .flags
= HWMOD_NO_IDLEST
,
3038 #ifdef CONFIG_OMAP_IOMMU_IVA2
3042 static struct omap_mmu_dev_attr mmu_iva_dev_attr
= {
3043 .da_start
= 0x11000000,
3044 .da_end
= 0xfffff000,
3045 .nr_tlb_entries
= 32,
3048 static struct omap_hwmod omap3xxx_mmu_iva_hwmod
;
3049 static struct omap_hwmod_irq_info omap3xxx_mmu_iva_irqs
[] = {
3054 static struct omap_hwmod_rst_info omap3xxx_mmu_iva_resets
[] = {
3055 { .name
= "mmu", .rst_shift
= 1, .st_shift
= 9 },
3058 static struct omap_hwmod_addr_space omap3xxx_mmu_iva_addrs
[] = {
3060 .pa_start
= 0x5d000000,
3061 .pa_end
= 0x5d00007f,
3062 .flags
= ADDR_TYPE_RT
,
3067 /* l3_main -> iva mmu */
3068 static struct omap_hwmod_ocp_if omap3xxx_l3_main__mmu_iva
= {
3069 .master
= &omap3xxx_l3_main_hwmod
,
3070 .slave
= &omap3xxx_mmu_iva_hwmod
,
3071 .addr
= omap3xxx_mmu_iva_addrs
,
3072 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3075 static struct omap_hwmod omap3xxx_mmu_iva_hwmod
= {
3077 .class = &omap3xxx_mmu_hwmod_class
,
3078 .mpu_irqs
= omap3xxx_mmu_iva_irqs
,
3079 .rst_lines
= omap3xxx_mmu_iva_resets
,
3080 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_mmu_iva_resets
),
3081 .main_clk
= "iva2_ck",
3084 .module_offs
= OMAP3430_IVA2_MOD
,
3087 .dev_attr
= &mmu_iva_dev_attr
,
3088 .flags
= HWMOD_NO_IDLEST
,
3093 /* l4_per -> gpio4 */
3094 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
3096 .pa_start
= 0x49054000,
3097 .pa_end
= 0x490541ff,
3098 .flags
= ADDR_TYPE_RT
3103 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
3104 .master
= &omap3xxx_l4_per_hwmod
,
3105 .slave
= &omap3xxx_gpio4_hwmod
,
3106 .addr
= omap3xxx_gpio4_addrs
,
3107 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3110 /* l4_per -> gpio5 */
3111 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
3113 .pa_start
= 0x49056000,
3114 .pa_end
= 0x490561ff,
3115 .flags
= ADDR_TYPE_RT
3120 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
3121 .master
= &omap3xxx_l4_per_hwmod
,
3122 .slave
= &omap3xxx_gpio5_hwmod
,
3123 .addr
= omap3xxx_gpio5_addrs
,
3124 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3127 /* l4_per -> gpio6 */
3128 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
3130 .pa_start
= 0x49058000,
3131 .pa_end
= 0x490581ff,
3132 .flags
= ADDR_TYPE_RT
3137 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
3138 .master
= &omap3xxx_l4_per_hwmod
,
3139 .slave
= &omap3xxx_gpio6_hwmod
,
3140 .addr
= omap3xxx_gpio6_addrs
,
3141 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3144 /* dma_system -> L3 */
3145 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
3146 .master
= &omap3xxx_dma_system_hwmod
,
3147 .slave
= &omap3xxx_l3_main_hwmod
,
3148 .clk
= "core_l3_ick",
3149 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3152 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
3154 .pa_start
= 0x48056000,
3155 .pa_end
= 0x48056fff,
3156 .flags
= ADDR_TYPE_RT
3161 /* l4_cfg -> dma_system */
3162 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
3163 .master
= &omap3xxx_l4_core_hwmod
,
3164 .slave
= &omap3xxx_dma_system_hwmod
,
3165 .clk
= "core_l4_ick",
3166 .addr
= omap3xxx_dma_system_addrs
,
3167 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3170 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
3173 .pa_start
= 0x48074000,
3174 .pa_end
= 0x480740ff,
3175 .flags
= ADDR_TYPE_RT
3180 /* l4_core -> mcbsp1 */
3181 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
3182 .master
= &omap3xxx_l4_core_hwmod
,
3183 .slave
= &omap3xxx_mcbsp1_hwmod
,
3184 .clk
= "mcbsp1_ick",
3185 .addr
= omap3xxx_mcbsp1_addrs
,
3186 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3189 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
3192 .pa_start
= 0x49022000,
3193 .pa_end
= 0x490220ff,
3194 .flags
= ADDR_TYPE_RT
3199 /* l4_per -> mcbsp2 */
3200 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
3201 .master
= &omap3xxx_l4_per_hwmod
,
3202 .slave
= &omap3xxx_mcbsp2_hwmod
,
3203 .clk
= "mcbsp2_ick",
3204 .addr
= omap3xxx_mcbsp2_addrs
,
3205 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3208 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
3211 .pa_start
= 0x49024000,
3212 .pa_end
= 0x490240ff,
3213 .flags
= ADDR_TYPE_RT
3218 /* l4_per -> mcbsp3 */
3219 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
3220 .master
= &omap3xxx_l4_per_hwmod
,
3221 .slave
= &omap3xxx_mcbsp3_hwmod
,
3222 .clk
= "mcbsp3_ick",
3223 .addr
= omap3xxx_mcbsp3_addrs
,
3224 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3227 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
3230 .pa_start
= 0x49026000,
3231 .pa_end
= 0x490260ff,
3232 .flags
= ADDR_TYPE_RT
3237 /* l4_per -> mcbsp4 */
3238 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
3239 .master
= &omap3xxx_l4_per_hwmod
,
3240 .slave
= &omap3xxx_mcbsp4_hwmod
,
3241 .clk
= "mcbsp4_ick",
3242 .addr
= omap3xxx_mcbsp4_addrs
,
3243 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3246 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
3249 .pa_start
= 0x48096000,
3250 .pa_end
= 0x480960ff,
3251 .flags
= ADDR_TYPE_RT
3256 /* l4_core -> mcbsp5 */
3257 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
3258 .master
= &omap3xxx_l4_core_hwmod
,
3259 .slave
= &omap3xxx_mcbsp5_hwmod
,
3260 .clk
= "mcbsp5_ick",
3261 .addr
= omap3xxx_mcbsp5_addrs
,
3262 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3265 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
3268 .pa_start
= 0x49028000,
3269 .pa_end
= 0x490280ff,
3270 .flags
= ADDR_TYPE_RT
3275 /* l4_per -> mcbsp2_sidetone */
3276 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
3277 .master
= &omap3xxx_l4_per_hwmod
,
3278 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
3279 .clk
= "mcbsp2_ick",
3280 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
3281 .user
= OCP_USER_MPU
,
3284 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
3287 .pa_start
= 0x4902A000,
3288 .pa_end
= 0x4902A0ff,
3289 .flags
= ADDR_TYPE_RT
3294 /* l4_per -> mcbsp3_sidetone */
3295 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
3296 .master
= &omap3xxx_l4_per_hwmod
,
3297 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
3298 .clk
= "mcbsp3_ick",
3299 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
3300 .user
= OCP_USER_MPU
,
3303 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs
[] = {
3305 .pa_start
= 0x48094000,
3306 .pa_end
= 0x480941ff,
3307 .flags
= ADDR_TYPE_RT
,
3312 /* l4_core -> mailbox */
3313 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
3314 .master
= &omap3xxx_l4_core_hwmod
,
3315 .slave
= &omap3xxx_mailbox_hwmod
,
3316 .addr
= omap3xxx_mailbox_addrs
,
3317 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3320 /* l4 core -> mcspi1 interface */
3321 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
3322 .master
= &omap3xxx_l4_core_hwmod
,
3323 .slave
= &omap34xx_mcspi1
,
3324 .clk
= "mcspi1_ick",
3325 .addr
= omap2_mcspi1_addr_space
,
3326 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3329 /* l4 core -> mcspi2 interface */
3330 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
3331 .master
= &omap3xxx_l4_core_hwmod
,
3332 .slave
= &omap34xx_mcspi2
,
3333 .clk
= "mcspi2_ick",
3334 .addr
= omap2_mcspi2_addr_space
,
3335 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3338 /* l4 core -> mcspi3 interface */
3339 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
3340 .master
= &omap3xxx_l4_core_hwmod
,
3341 .slave
= &omap34xx_mcspi3
,
3342 .clk
= "mcspi3_ick",
3343 .addr
= omap2430_mcspi3_addr_space
,
3344 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3347 /* l4 core -> mcspi4 interface */
3348 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
3350 .pa_start
= 0x480ba000,
3351 .pa_end
= 0x480ba0ff,
3352 .flags
= ADDR_TYPE_RT
,
3357 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
3358 .master
= &omap3xxx_l4_core_hwmod
,
3359 .slave
= &omap34xx_mcspi4
,
3360 .clk
= "mcspi4_ick",
3361 .addr
= omap34xx_mcspi4_addr_space
,
3362 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3365 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2
= {
3366 .master
= &omap3xxx_usb_host_hs_hwmod
,
3367 .slave
= &omap3xxx_l3_main_hwmod
,
3368 .clk
= "core_l3_ick",
3369 .user
= OCP_USER_MPU
,
3372 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs
[] = {
3375 .pa_start
= 0x48064000,
3376 .pa_end
= 0x480643ff,
3377 .flags
= ADDR_TYPE_RT
3381 .pa_start
= 0x48064400,
3382 .pa_end
= 0x480647ff,
3386 .pa_start
= 0x48064800,
3387 .pa_end
= 0x48064cff,
3392 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs
= {
3393 .master
= &omap3xxx_l4_core_hwmod
,
3394 .slave
= &omap3xxx_usb_host_hs_hwmod
,
3395 .clk
= "usbhost_ick",
3396 .addr
= omap3xxx_usb_host_hs_addrs
,
3397 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3400 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs
[] = {
3403 .pa_start
= 0x48062000,
3404 .pa_end
= 0x48062fff,
3405 .flags
= ADDR_TYPE_RT
3410 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs
= {
3411 .master
= &omap3xxx_l4_core_hwmod
,
3412 .slave
= &omap3xxx_usb_tll_hs_hwmod
,
3413 .clk
= "usbtll_ick",
3414 .addr
= omap3xxx_usb_tll_hs_addrs
,
3415 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3418 /* l4_core -> hdq1w interface */
3419 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w
= {
3420 .master
= &omap3xxx_l4_core_hwmod
,
3421 .slave
= &omap3xxx_hdq1w_hwmod
,
3423 .addr
= omap2_hdq1w_addr_space
,
3424 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3425 .flags
= OMAP_FIREWALL_L4
| OCPIF_SWSUP_IDLE
,
3428 /* l4_wkup -> 32ksync_counter */
3429 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs
[] = {
3431 .pa_start
= 0x48320000,
3432 .pa_end
= 0x4832001f,
3433 .flags
= ADDR_TYPE_RT
3438 static struct omap_hwmod_addr_space omap3xxx_gpmc_addrs
[] = {
3440 .pa_start
= 0x6e000000,
3441 .pa_end
= 0x6e000fff,
3442 .flags
= ADDR_TYPE_RT
3447 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k
= {
3448 .master
= &omap3xxx_l4_wkup_hwmod
,
3449 .slave
= &omap3xxx_counter_32k_hwmod
,
3450 .clk
= "omap_32ksync_ick",
3451 .addr
= omap3xxx_counter_32k_addrs
,
3452 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3455 /* am35xx has Davinci MDIO & EMAC */
3456 static struct omap_hwmod_class am35xx_mdio_class
= {
3457 .name
= "davinci_mdio",
3460 static struct omap_hwmod am35xx_mdio_hwmod
= {
3461 .name
= "davinci_mdio",
3462 .class = &am35xx_mdio_class
,
3463 .flags
= HWMOD_NO_IDLEST
,
3467 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3468 * but this will probably require some additional hwmod core support,
3469 * so is left as a future to-do item.
3471 static struct omap_hwmod_ocp_if am35xx_mdio__l3
= {
3472 .master
= &am35xx_mdio_hwmod
,
3473 .slave
= &omap3xxx_l3_main_hwmod
,
3475 .user
= OCP_USER_MPU
,
3478 static struct omap_hwmod_addr_space am35xx_mdio_addrs
[] = {
3480 .pa_start
= AM35XX_IPSS_MDIO_BASE
,
3481 .pa_end
= AM35XX_IPSS_MDIO_BASE
+ SZ_4K
- 1,
3482 .flags
= ADDR_TYPE_RT
,
3487 /* l4_core -> davinci mdio */
3489 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3490 * but this will probably require some additional hwmod core support,
3491 * so is left as a future to-do item.
3493 static struct omap_hwmod_ocp_if am35xx_l4_core__mdio
= {
3494 .master
= &omap3xxx_l4_core_hwmod
,
3495 .slave
= &am35xx_mdio_hwmod
,
3497 .addr
= am35xx_mdio_addrs
,
3498 .user
= OCP_USER_MPU
,
3501 static struct omap_hwmod_irq_info am35xx_emac_mpu_irqs
[] = {
3502 { .name
= "rxthresh", .irq
= 67 + OMAP_INTC_START
, },
3503 { .name
= "rx_pulse", .irq
= 68 + OMAP_INTC_START
, },
3504 { .name
= "tx_pulse", .irq
= 69 + OMAP_INTC_START
},
3505 { .name
= "misc_pulse", .irq
= 70 + OMAP_INTC_START
},
3509 static struct omap_hwmod_class am35xx_emac_class
= {
3510 .name
= "davinci_emac",
3513 static struct omap_hwmod am35xx_emac_hwmod
= {
3514 .name
= "davinci_emac",
3515 .mpu_irqs
= am35xx_emac_mpu_irqs
,
3516 .class = &am35xx_emac_class
,
3518 * According to Mark Greer, the MPU will not return from WFI
3519 * when the EMAC signals an interrupt.
3520 * http://www.spinics.net/lists/arm-kernel/msg174734.html
3522 .flags
= (HWMOD_NO_IDLEST
| HWMOD_BLOCK_WFI
),
3525 /* l3_core -> davinci emac interface */
3527 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3528 * but this will probably require some additional hwmod core support,
3529 * so is left as a future to-do item.
3531 static struct omap_hwmod_ocp_if am35xx_emac__l3
= {
3532 .master
= &am35xx_emac_hwmod
,
3533 .slave
= &omap3xxx_l3_main_hwmod
,
3535 .user
= OCP_USER_MPU
,
3538 static struct omap_hwmod_addr_space am35xx_emac_addrs
[] = {
3540 .pa_start
= AM35XX_IPSS_EMAC_BASE
,
3541 .pa_end
= AM35XX_IPSS_EMAC_BASE
+ 0x30000 - 1,
3542 .flags
= ADDR_TYPE_RT
,
3547 /* l4_core -> davinci emac */
3549 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3550 * but this will probably require some additional hwmod core support,
3551 * so is left as a future to-do item.
3553 static struct omap_hwmod_ocp_if am35xx_l4_core__emac
= {
3554 .master
= &omap3xxx_l4_core_hwmod
,
3555 .slave
= &am35xx_emac_hwmod
,
3557 .addr
= am35xx_emac_addrs
,
3558 .user
= OCP_USER_MPU
,
3561 static struct omap_hwmod_ocp_if omap3xxx_l3_main__gpmc
= {
3562 .master
= &omap3xxx_l3_main_hwmod
,
3563 .slave
= &omap3xxx_gpmc_hwmod
,
3564 .clk
= "core_l3_ick",
3565 .addr
= omap3xxx_gpmc_addrs
,
3566 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3569 /* l4_core -> SHAM2 (SHA1/MD5) (similar to omap24xx) */
3570 static struct omap_hwmod_sysc_fields omap3_sham_sysc_fields
= {
3573 .autoidle_shift
= 0,
3576 static struct omap_hwmod_class_sysconfig omap3_sham_sysc
= {
3580 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
3581 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
3582 .sysc_fields
= &omap3_sham_sysc_fields
,
3585 static struct omap_hwmod_class omap3xxx_sham_class
= {
3587 .sysc
= &omap3_sham_sysc
,
3590 static struct omap_hwmod_irq_info omap3_sham_mpu_irqs
[] = {
3591 { .irq
= 49 + OMAP_INTC_START
, },
3595 static struct omap_hwmod_dma_info omap3_sham_sdma_reqs
[] = {
3596 { .name
= "rx", .dma_req
= 69, },
3600 static struct omap_hwmod omap3xxx_sham_hwmod
= {
3602 .mpu_irqs
= omap3_sham_mpu_irqs
,
3603 .sdma_reqs
= omap3_sham_sdma_reqs
,
3604 .main_clk
= "sha12_ick",
3607 .module_offs
= CORE_MOD
,
3609 .module_bit
= OMAP3430_EN_SHA12_SHIFT
,
3611 .idlest_idle_bit
= OMAP3430_ST_SHA12_SHIFT
,
3614 .class = &omap3xxx_sham_class
,
3617 static struct omap_hwmod_addr_space omap3xxx_sham_addrs
[] = {
3619 .pa_start
= 0x480c3000,
3620 .pa_end
= 0x480c3000 + 0x64 - 1,
3621 .flags
= ADDR_TYPE_RT
3626 static struct omap_hwmod_ocp_if omap3xxx_l4_core__sham
= {
3627 .master
= &omap3xxx_l4_core_hwmod
,
3628 .slave
= &omap3xxx_sham_hwmod
,
3630 .addr
= omap3xxx_sham_addrs
,
3631 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3634 /* l4_core -> AES */
3635 static struct omap_hwmod_sysc_fields omap3xxx_aes_sysc_fields
= {
3638 .autoidle_shift
= 0,
3641 static struct omap_hwmod_class_sysconfig omap3_aes_sysc
= {
3645 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
3646 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
3647 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3648 .sysc_fields
= &omap3xxx_aes_sysc_fields
,
3651 static struct omap_hwmod_class omap3xxx_aes_class
= {
3653 .sysc
= &omap3_aes_sysc
,
3656 static struct omap_hwmod_dma_info omap3_aes_sdma_reqs
[] = {
3657 { .name
= "tx", .dma_req
= 65, },
3658 { .name
= "rx", .dma_req
= 66, },
3662 static struct omap_hwmod omap3xxx_aes_hwmod
= {
3664 .sdma_reqs
= omap3_aes_sdma_reqs
,
3665 .main_clk
= "aes2_ick",
3668 .module_offs
= CORE_MOD
,
3670 .module_bit
= OMAP3430_EN_AES2_SHIFT
,
3672 .idlest_idle_bit
= OMAP3430_ST_AES2_SHIFT
,
3675 .class = &omap3xxx_aes_class
,
3678 static struct omap_hwmod_addr_space omap3xxx_aes_addrs
[] = {
3680 .pa_start
= 0x480c5000,
3681 .pa_end
= 0x480c5000 + 0x50 - 1,
3682 .flags
= ADDR_TYPE_RT
3687 static struct omap_hwmod_ocp_if omap3xxx_l4_core__aes
= {
3688 .master
= &omap3xxx_l4_core_hwmod
,
3689 .slave
= &omap3xxx_aes_hwmod
,
3691 .addr
= omap3xxx_aes_addrs
,
3692 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3695 static struct omap_hwmod_ocp_if
*omap3xxx_hwmod_ocp_ifs
[] __initdata
= {
3696 &omap3xxx_l3_main__l4_core
,
3697 &omap3xxx_l3_main__l4_per
,
3698 &omap3xxx_mpu__l3_main
,
3699 &omap3xxx_l3_main__l4_debugss
,
3700 &omap3xxx_l4_core__l4_wkup
,
3701 &omap3xxx_l4_core__mmc3
,
3702 &omap3_l4_core__uart1
,
3703 &omap3_l4_core__uart2
,
3704 &omap3_l4_per__uart3
,
3705 &omap3_l4_core__i2c1
,
3706 &omap3_l4_core__i2c2
,
3707 &omap3_l4_core__i2c3
,
3708 &omap3xxx_l4_wkup__l4_sec
,
3709 &omap3xxx_l4_wkup__timer1
,
3710 &omap3xxx_l4_per__timer2
,
3711 &omap3xxx_l4_per__timer3
,
3712 &omap3xxx_l4_per__timer4
,
3713 &omap3xxx_l4_per__timer5
,
3714 &omap3xxx_l4_per__timer6
,
3715 &omap3xxx_l4_per__timer7
,
3716 &omap3xxx_l4_per__timer8
,
3717 &omap3xxx_l4_per__timer9
,
3718 &omap3xxx_l4_core__timer10
,
3719 &omap3xxx_l4_core__timer11
,
3720 &omap3xxx_l4_wkup__wd_timer2
,
3721 &omap3xxx_l4_wkup__gpio1
,
3722 &omap3xxx_l4_per__gpio2
,
3723 &omap3xxx_l4_per__gpio3
,
3724 &omap3xxx_l4_per__gpio4
,
3725 &omap3xxx_l4_per__gpio5
,
3726 &omap3xxx_l4_per__gpio6
,
3727 &omap3xxx_dma_system__l3
,
3728 &omap3xxx_l4_core__dma_system
,
3729 &omap3xxx_l4_core__mcbsp1
,
3730 &omap3xxx_l4_per__mcbsp2
,
3731 &omap3xxx_l4_per__mcbsp3
,
3732 &omap3xxx_l4_per__mcbsp4
,
3733 &omap3xxx_l4_core__mcbsp5
,
3734 &omap3xxx_l4_per__mcbsp2_sidetone
,
3735 &omap3xxx_l4_per__mcbsp3_sidetone
,
3736 &omap34xx_l4_core__mcspi1
,
3737 &omap34xx_l4_core__mcspi2
,
3738 &omap34xx_l4_core__mcspi3
,
3739 &omap34xx_l4_core__mcspi4
,
3740 &omap3xxx_l4_wkup__counter_32k
,
3741 &omap3xxx_l3_main__gpmc
,
3745 /* GP-only hwmod links */
3746 static struct omap_hwmod_ocp_if
*omap34xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3747 &omap3xxx_l4_sec__timer12
,
3748 &omap3xxx_l4_core__sham
,
3749 &omap3xxx_l4_core__aes
,
3753 static struct omap_hwmod_ocp_if
*omap36xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3754 &omap3xxx_l4_sec__timer12
,
3755 &omap3xxx_l4_core__sham
,
3756 &omap3xxx_l4_core__aes
,
3760 static struct omap_hwmod_ocp_if
*am35xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3761 &omap3xxx_l4_sec__timer12
,
3763 * Apparently the SHA/MD5 and AES accelerator IP blocks are
3764 * only present on some AM35xx chips, and no one knows which
3766 * http://www.spinics.net/lists/arm-kernel/msg215466.html So
3767 * if you need these IP blocks on an AM35xx, try uncommenting
3768 * the following lines.
3770 /* &omap3xxx_l4_core__sham, */
3771 /* &omap3xxx_l4_core__aes, */
3775 /* 3430ES1-only hwmod links */
3776 static struct omap_hwmod_ocp_if
*omap3430es1_hwmod_ocp_ifs
[] __initdata
= {
3777 &omap3430es1_dss__l3
,
3778 &omap3430es1_l4_core__dss
,
3782 /* 3430ES2+-only hwmod links */
3783 static struct omap_hwmod_ocp_if
*omap3430es2plus_hwmod_ocp_ifs
[] __initdata
= {
3785 &omap3xxx_l4_core__dss
,
3786 &omap3xxx_usbhsotg__l3
,
3787 &omap3xxx_l4_core__usbhsotg
,
3788 &omap3xxx_usb_host_hs__l3_main_2
,
3789 &omap3xxx_l4_core__usb_host_hs
,
3790 &omap3xxx_l4_core__usb_tll_hs
,
3794 /* <= 3430ES3-only hwmod links */
3795 static struct omap_hwmod_ocp_if
*omap3430_pre_es3_hwmod_ocp_ifs
[] __initdata
= {
3796 &omap3xxx_l4_core__pre_es3_mmc1
,
3797 &omap3xxx_l4_core__pre_es3_mmc2
,
3801 /* 3430ES3+-only hwmod links */
3802 static struct omap_hwmod_ocp_if
*omap3430_es3plus_hwmod_ocp_ifs
[] __initdata
= {
3803 &omap3xxx_l4_core__es3plus_mmc1
,
3804 &omap3xxx_l4_core__es3plus_mmc2
,
3808 /* 34xx-only hwmod links (all ES revisions) */
3809 static struct omap_hwmod_ocp_if
*omap34xx_hwmod_ocp_ifs
[] __initdata
= {
3811 &omap34xx_l4_core__sr1
,
3812 &omap34xx_l4_core__sr2
,
3813 &omap3xxx_l4_core__mailbox
,
3814 &omap3xxx_l4_core__hdq1w
,
3815 &omap3xxx_sad2d__l3
,
3816 &omap3xxx_l4_core__mmu_isp
,
3817 #ifdef CONFIG_OMAP_IOMMU_IVA2
3818 &omap3xxx_l3_main__mmu_iva
,
3823 /* 36xx-only hwmod links (all ES revisions) */
3824 static struct omap_hwmod_ocp_if
*omap36xx_hwmod_ocp_ifs
[] __initdata
= {
3826 &omap36xx_l4_per__uart4
,
3828 &omap3xxx_l4_core__dss
,
3829 &omap36xx_l4_core__sr1
,
3830 &omap36xx_l4_core__sr2
,
3831 &omap3xxx_usbhsotg__l3
,
3832 &omap3xxx_l4_core__usbhsotg
,
3833 &omap3xxx_l4_core__mailbox
,
3834 &omap3xxx_usb_host_hs__l3_main_2
,
3835 &omap3xxx_l4_core__usb_host_hs
,
3836 &omap3xxx_l4_core__usb_tll_hs
,
3837 &omap3xxx_l4_core__es3plus_mmc1
,
3838 &omap3xxx_l4_core__es3plus_mmc2
,
3839 &omap3xxx_l4_core__hdq1w
,
3840 &omap3xxx_sad2d__l3
,
3841 &omap3xxx_l4_core__mmu_isp
,
3842 #ifdef CONFIG_OMAP_IOMMU_IVA2
3843 &omap3xxx_l3_main__mmu_iva
,
3848 static struct omap_hwmod_ocp_if
*am35xx_hwmod_ocp_ifs
[] __initdata
= {
3850 &omap3xxx_l4_core__dss
,
3851 &am35xx_usbhsotg__l3
,
3852 &am35xx_l4_core__usbhsotg
,
3853 &am35xx_l4_core__uart4
,
3854 &omap3xxx_usb_host_hs__l3_main_2
,
3855 &omap3xxx_l4_core__usb_host_hs
,
3856 &omap3xxx_l4_core__usb_tll_hs
,
3857 &omap3xxx_l4_core__es3plus_mmc1
,
3858 &omap3xxx_l4_core__es3plus_mmc2
,
3859 &omap3xxx_l4_core__hdq1w
,
3861 &am35xx_l4_core__mdio
,
3863 &am35xx_l4_core__emac
,
3867 static struct omap_hwmod_ocp_if
*omap3xxx_dss_hwmod_ocp_ifs
[] __initdata
= {
3868 &omap3xxx_l4_core__dss_dispc
,
3869 &omap3xxx_l4_core__dss_dsi1
,
3870 &omap3xxx_l4_core__dss_rfbi
,
3871 &omap3xxx_l4_core__dss_venc
,
3875 int __init
omap3xxx_hwmod_init(void)
3878 struct omap_hwmod_ocp_if
**h
= NULL
, **h_gp
= NULL
;
3883 /* Register hwmod links common to all OMAP3 */
3884 r
= omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs
);
3891 * Register hwmod links common to individual OMAP3 families, all
3892 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3893 * All possible revisions should be included in this conditional.
3895 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3896 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3897 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3898 h
= omap34xx_hwmod_ocp_ifs
;
3899 h_gp
= omap34xx_gp_hwmod_ocp_ifs
;
3900 } else if (rev
== AM35XX_REV_ES1_0
|| rev
== AM35XX_REV_ES1_1
) {
3901 h
= am35xx_hwmod_ocp_ifs
;
3902 h_gp
= am35xx_gp_hwmod_ocp_ifs
;
3903 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3904 rev
== OMAP3630_REV_ES1_2
) {
3905 h
= omap36xx_hwmod_ocp_ifs
;
3906 h_gp
= omap36xx_gp_hwmod_ocp_ifs
;
3908 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3912 r
= omap_hwmod_register_links(h
);
3916 /* Register GP-only hwmod links. */
3917 if (h_gp
&& omap_type() == OMAP2_DEVICE_TYPE_GP
) {
3918 r
= omap_hwmod_register_links(h_gp
);
3925 * Register hwmod links specific to certain ES levels of a
3926 * particular family of silicon (e.g., 34xx ES1.0)
3929 if (rev
== OMAP3430_REV_ES1_0
) {
3930 h
= omap3430es1_hwmod_ocp_ifs
;
3931 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3932 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3933 rev
== OMAP3430_REV_ES3_1_2
) {
3934 h
= omap3430es2plus_hwmod_ocp_ifs
;
3938 r
= omap_hwmod_register_links(h
);
3944 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3945 rev
== OMAP3430_REV_ES2_1
) {
3946 h
= omap3430_pre_es3_hwmod_ocp_ifs
;
3947 } else if (rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3948 rev
== OMAP3430_REV_ES3_1_2
) {
3949 h
= omap3430_es3plus_hwmod_ocp_ifs
;
3953 r
= omap_hwmod_register_links(h
);
3958 * DSS code presumes that dss_core hwmod is handled first,
3959 * _before_ any other DSS related hwmods so register common
3960 * DSS hwmod links last to ensure that dss_core is already
3961 * registered. Otherwise some change things may happen, for
3962 * ex. if dispc is handled before dss_core and DSS is enabled
3963 * in bootloader DISPC will be reset with outputs enabled
3964 * which sometimes leads to unrecoverable L3 error. XXX The
3965 * long-term fix to this is to ensure hwmods are set up in
3966 * dependency order in the hwmod core code.
3968 r
= omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs
);