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
17 #include <linux/power/smartreflex.h>
18 #include <linux/platform_data/gpio-omap.h>
20 #include <plat/omap_hwmod.h>
22 #include <plat/serial.h>
27 #include <linux/platform_data/asoc-ti-mcbsp.h>
28 #include <linux/platform_data/spi-omap2-mcspi.h>
29 #include <plat/dmtimer.h>
30 #include <plat/iommu.h>
35 #include "omap_hwmod_common_data.h"
36 #include "prm-regbits-34xx.h"
37 #include "cm-regbits-34xx.h"
41 * OMAP3xxx hardware module integration data
43 * All of the data in this section should be autogeneratable from the
44 * TI hardware database or other technical documentation. Data that
45 * is driver-specific or driver-kernel integration-specific belongs
54 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs
[] = {
55 { .irq
= 9 + OMAP_INTC_START
, },
56 { .irq
= 10 + OMAP_INTC_START
, },
60 static struct omap_hwmod omap3xxx_l3_main_hwmod
= {
62 .class = &l3_hwmod_class
,
63 .mpu_irqs
= omap3xxx_l3_main_irqs
,
64 .flags
= HWMOD_NO_IDLEST
,
68 static struct omap_hwmod omap3xxx_l4_core_hwmod
= {
70 .class = &l4_hwmod_class
,
71 .flags
= HWMOD_NO_IDLEST
,
75 static struct omap_hwmod omap3xxx_l4_per_hwmod
= {
77 .class = &l4_hwmod_class
,
78 .flags
= HWMOD_NO_IDLEST
,
82 static struct omap_hwmod omap3xxx_l4_wkup_hwmod
= {
84 .class = &l4_hwmod_class
,
85 .flags
= HWMOD_NO_IDLEST
,
89 static struct omap_hwmod omap3xxx_l4_sec_hwmod
= {
91 .class = &l4_hwmod_class
,
92 .flags
= HWMOD_NO_IDLEST
,
96 static struct omap_hwmod_irq_info omap3xxx_mpu_irqs
[] = {
97 { .name
= "pmu", .irq
= 3 + OMAP_INTC_START
},
101 static struct omap_hwmod omap3xxx_mpu_hwmod
= {
103 .mpu_irqs
= omap3xxx_mpu_irqs
,
104 .class = &mpu_hwmod_class
,
105 .main_clk
= "arm_fck",
109 static struct omap_hwmod_rst_info omap3xxx_iva_resets
[] = {
110 { .name
= "logic", .rst_shift
= 0, .st_shift
= 8 },
111 { .name
= "seq0", .rst_shift
= 1, .st_shift
= 9 },
112 { .name
= "seq1", .rst_shift
= 2, .st_shift
= 10 },
115 static struct omap_hwmod omap3xxx_iva_hwmod
= {
117 .class = &iva_hwmod_class
,
118 .clkdm_name
= "iva2_clkdm",
119 .rst_lines
= omap3xxx_iva_resets
,
120 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_iva_resets
),
121 .main_clk
= "iva2_ck",
124 .module_offs
= OMAP3430_IVA2_MOD
,
126 .module_bit
= OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT
,
128 .idlest_idle_bit
= OMAP3430_ST_IVA2_SHIFT
,
135 * debug and emulation sub system
138 static struct omap_hwmod_class omap3xxx_debugss_hwmod_class
= {
143 static struct omap_hwmod omap3xxx_debugss_hwmod
= {
145 .class = &omap3xxx_debugss_hwmod_class
,
146 .clkdm_name
= "emu_clkdm",
147 .main_clk
= "emu_src_ck",
148 .flags
= HWMOD_NO_IDLEST
,
152 static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc
= {
156 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
157 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
158 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
),
159 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
160 .sysc_fields
= &omap_hwmod_sysc_type1
,
163 static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class
= {
165 .sysc
= &omap3xxx_timer_1ms_sysc
,
168 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc
= {
172 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
173 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
174 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
175 .sysc_fields
= &omap_hwmod_sysc_type1
,
178 static struct omap_hwmod_class omap3xxx_timer_hwmod_class
= {
180 .sysc
= &omap3xxx_timer_sysc
,
183 /* secure timers dev attribute */
184 static struct omap_timer_capability_dev_attr capability_secure_dev_attr
= {
185 .timer_capability
= OMAP_TIMER_ALWON
| OMAP_TIMER_SECURE
,
188 /* always-on timers dev attribute */
189 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
190 .timer_capability
= OMAP_TIMER_ALWON
,
193 /* pwm timers dev attribute */
194 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
195 .timer_capability
= OMAP_TIMER_HAS_PWM
,
198 /* timers with DSP interrupt dev attribute */
199 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr
= {
200 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
,
203 /* pwm timers with DSP interrupt dev attribute */
204 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr
= {
205 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
| OMAP_TIMER_HAS_PWM
,
209 static struct omap_hwmod omap3xxx_timer1_hwmod
= {
211 .mpu_irqs
= omap2_timer1_mpu_irqs
,
212 .main_clk
= "gpt1_fck",
216 .module_bit
= OMAP3430_EN_GPT1_SHIFT
,
217 .module_offs
= WKUP_MOD
,
219 .idlest_idle_bit
= OMAP3430_ST_GPT1_SHIFT
,
222 .dev_attr
= &capability_alwon_dev_attr
,
223 .class = &omap3xxx_timer_1ms_hwmod_class
,
227 static struct omap_hwmod omap3xxx_timer2_hwmod
= {
229 .mpu_irqs
= omap2_timer2_mpu_irqs
,
230 .main_clk
= "gpt2_fck",
234 .module_bit
= OMAP3430_EN_GPT2_SHIFT
,
235 .module_offs
= OMAP3430_PER_MOD
,
237 .idlest_idle_bit
= OMAP3430_ST_GPT2_SHIFT
,
240 .class = &omap3xxx_timer_1ms_hwmod_class
,
244 static struct omap_hwmod omap3xxx_timer3_hwmod
= {
246 .mpu_irqs
= omap2_timer3_mpu_irqs
,
247 .main_clk
= "gpt3_fck",
251 .module_bit
= OMAP3430_EN_GPT3_SHIFT
,
252 .module_offs
= OMAP3430_PER_MOD
,
254 .idlest_idle_bit
= OMAP3430_ST_GPT3_SHIFT
,
257 .class = &omap3xxx_timer_hwmod_class
,
261 static struct omap_hwmod omap3xxx_timer4_hwmod
= {
263 .mpu_irqs
= omap2_timer4_mpu_irqs
,
264 .main_clk
= "gpt4_fck",
268 .module_bit
= OMAP3430_EN_GPT4_SHIFT
,
269 .module_offs
= OMAP3430_PER_MOD
,
271 .idlest_idle_bit
= OMAP3430_ST_GPT4_SHIFT
,
274 .class = &omap3xxx_timer_hwmod_class
,
278 static struct omap_hwmod omap3xxx_timer5_hwmod
= {
280 .mpu_irqs
= omap2_timer5_mpu_irqs
,
281 .main_clk
= "gpt5_fck",
285 .module_bit
= OMAP3430_EN_GPT5_SHIFT
,
286 .module_offs
= OMAP3430_PER_MOD
,
288 .idlest_idle_bit
= OMAP3430_ST_GPT5_SHIFT
,
291 .dev_attr
= &capability_dsp_dev_attr
,
292 .class = &omap3xxx_timer_hwmod_class
,
296 static struct omap_hwmod omap3xxx_timer6_hwmod
= {
298 .mpu_irqs
= omap2_timer6_mpu_irqs
,
299 .main_clk
= "gpt6_fck",
303 .module_bit
= OMAP3430_EN_GPT6_SHIFT
,
304 .module_offs
= OMAP3430_PER_MOD
,
306 .idlest_idle_bit
= OMAP3430_ST_GPT6_SHIFT
,
309 .dev_attr
= &capability_dsp_dev_attr
,
310 .class = &omap3xxx_timer_hwmod_class
,
314 static struct omap_hwmod omap3xxx_timer7_hwmod
= {
316 .mpu_irqs
= omap2_timer7_mpu_irqs
,
317 .main_clk
= "gpt7_fck",
321 .module_bit
= OMAP3430_EN_GPT7_SHIFT
,
322 .module_offs
= OMAP3430_PER_MOD
,
324 .idlest_idle_bit
= OMAP3430_ST_GPT7_SHIFT
,
327 .dev_attr
= &capability_dsp_dev_attr
,
328 .class = &omap3xxx_timer_hwmod_class
,
332 static struct omap_hwmod omap3xxx_timer8_hwmod
= {
334 .mpu_irqs
= omap2_timer8_mpu_irqs
,
335 .main_clk
= "gpt8_fck",
339 .module_bit
= OMAP3430_EN_GPT8_SHIFT
,
340 .module_offs
= OMAP3430_PER_MOD
,
342 .idlest_idle_bit
= OMAP3430_ST_GPT8_SHIFT
,
345 .dev_attr
= &capability_dsp_pwm_dev_attr
,
346 .class = &omap3xxx_timer_hwmod_class
,
350 static struct omap_hwmod omap3xxx_timer9_hwmod
= {
352 .mpu_irqs
= omap2_timer9_mpu_irqs
,
353 .main_clk
= "gpt9_fck",
357 .module_bit
= OMAP3430_EN_GPT9_SHIFT
,
358 .module_offs
= OMAP3430_PER_MOD
,
360 .idlest_idle_bit
= OMAP3430_ST_GPT9_SHIFT
,
363 .dev_attr
= &capability_pwm_dev_attr
,
364 .class = &omap3xxx_timer_hwmod_class
,
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_1ms_hwmod_class
,
386 static struct omap_hwmod omap3xxx_timer11_hwmod
= {
388 .mpu_irqs
= omap2_timer11_mpu_irqs
,
389 .main_clk
= "gpt11_fck",
393 .module_bit
= OMAP3430_EN_GPT11_SHIFT
,
394 .module_offs
= CORE_MOD
,
396 .idlest_idle_bit
= OMAP3430_ST_GPT11_SHIFT
,
399 .dev_attr
= &capability_pwm_dev_attr
,
400 .class = &omap3xxx_timer_hwmod_class
,
404 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs
[] = {
405 { .irq
= 95 + OMAP_INTC_START
, },
409 static struct omap_hwmod omap3xxx_timer12_hwmod
= {
411 .mpu_irqs
= omap3xxx_timer12_mpu_irqs
,
412 .main_clk
= "gpt12_fck",
416 .module_bit
= OMAP3430_EN_GPT12_SHIFT
,
417 .module_offs
= WKUP_MOD
,
419 .idlest_idle_bit
= OMAP3430_ST_GPT12_SHIFT
,
422 .dev_attr
= &capability_secure_dev_attr
,
423 .class = &omap3xxx_timer_hwmod_class
,
428 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
432 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc
= {
436 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_EMUFREE
|
437 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
438 SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
439 SYSS_HAS_RESET_STATUS
),
440 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
441 .sysc_fields
= &omap_hwmod_sysc_type1
,
445 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
449 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
450 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
451 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
452 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
453 .clockact
= CLOCKACT_TEST_ICLK
,
454 .sysc_fields
= &omap_hwmod_sysc_type1
,
457 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class
= {
459 .sysc
= &omap3xxx_wd_timer_sysc
,
460 .pre_shutdown
= &omap2_wd_timer_disable
,
461 .reset
= &omap2_wd_timer_reset
,
464 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
466 .class = &omap3xxx_wd_timer_hwmod_class
,
467 .main_clk
= "wdt2_fck",
471 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
472 .module_offs
= WKUP_MOD
,
474 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
478 * XXX: Use software supervised mode, HW supervised smartidle seems to
479 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
481 .flags
= HWMOD_SWSUP_SIDLE
,
485 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
487 .mpu_irqs
= omap2_uart1_mpu_irqs
,
488 .sdma_reqs
= omap2_uart1_sdma_reqs
,
489 .main_clk
= "uart1_fck",
492 .module_offs
= CORE_MOD
,
494 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
496 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
499 .class = &omap2_uart_class
,
503 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
505 .mpu_irqs
= omap2_uart2_mpu_irqs
,
506 .sdma_reqs
= omap2_uart2_sdma_reqs
,
507 .main_clk
= "uart2_fck",
510 .module_offs
= CORE_MOD
,
512 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
514 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
517 .class = &omap2_uart_class
,
521 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
523 .mpu_irqs
= omap2_uart3_mpu_irqs
,
524 .sdma_reqs
= omap2_uart3_sdma_reqs
,
525 .main_clk
= "uart3_fck",
528 .module_offs
= OMAP3430_PER_MOD
,
530 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
532 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
535 .class = &omap2_uart_class
,
539 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
540 { .irq
= 80 + OMAP_INTC_START
, },
544 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
545 { .name
= "rx", .dma_req
= OMAP36XX_DMA_UART4_RX
, },
546 { .name
= "tx", .dma_req
= OMAP36XX_DMA_UART4_TX
, },
550 static struct omap_hwmod omap36xx_uart4_hwmod
= {
552 .mpu_irqs
= uart4_mpu_irqs
,
553 .sdma_reqs
= uart4_sdma_reqs
,
554 .main_clk
= "uart4_fck",
557 .module_offs
= OMAP3430_PER_MOD
,
559 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
561 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
564 .class = &omap2_uart_class
,
567 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs
[] = {
568 { .irq
= 84 + OMAP_INTC_START
, },
572 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs
[] = {
573 { .name
= "rx", .dma_req
= AM35XX_DMA_UART4_RX
, },
574 { .name
= "tx", .dma_req
= AM35XX_DMA_UART4_TX
, },
579 * XXX AM35xx UART4 cannot complete its softreset without uart1_fck or
580 * uart2_fck being enabled. So we add uart1_fck as an optional clock,
581 * below, and set the HWMOD_CONTROL_OPT_CLKS_IN_RESET. This really
582 * should not be needed. The functional clock structure of the AM35xx
583 * UART4 is extremely unclear and opaque; it is unclear what the role
584 * of uart1/2_fck is for the UART4. Any clarification from either
585 * empirical testing or the AM3505/3517 hardware designers would be
588 static struct omap_hwmod_opt_clk am35xx_uart4_opt_clks
[] = {
589 { .role
= "softreset_uart1_fck", .clk
= "uart1_fck" },
592 static struct omap_hwmod am35xx_uart4_hwmod
= {
594 .mpu_irqs
= am35xx_uart4_mpu_irqs
,
595 .sdma_reqs
= am35xx_uart4_sdma_reqs
,
596 .main_clk
= "uart4_fck",
599 .module_offs
= CORE_MOD
,
601 .module_bit
= AM35XX_EN_UART4_SHIFT
,
603 .idlest_idle_bit
= AM35XX_ST_UART4_SHIFT
,
606 .opt_clks
= am35xx_uart4_opt_clks
,
607 .opt_clks_cnt
= ARRAY_SIZE(am35xx_uart4_opt_clks
),
608 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
609 .class = &omap2_uart_class
,
612 static struct omap_hwmod_class i2c_class
= {
615 .rev
= OMAP_I2C_IP_VERSION_1
,
616 .reset
= &omap_i2c_reset
,
619 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
620 { .name
= "dispc", .dma_req
= 5 },
621 { .name
= "dsi1", .dma_req
= 74 },
626 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
628 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
629 * driver does not use these clocks.
631 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
632 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
633 /* required only on OMAP3430 */
634 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
637 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
639 .class = &omap2_dss_hwmod_class
,
640 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
641 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
645 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
646 .module_offs
= OMAP3430_DSS_MOD
,
648 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
651 .opt_clks
= dss_opt_clks
,
652 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
653 .flags
= HWMOD_NO_IDLEST
| HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
656 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
658 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
659 .class = &omap2_dss_hwmod_class
,
660 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
661 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
665 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
666 .module_offs
= OMAP3430_DSS_MOD
,
668 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
669 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
672 .opt_clks
= dss_opt_clks
,
673 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
681 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc
= {
685 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
686 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
688 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
689 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
690 .sysc_fields
= &omap_hwmod_sysc_type1
,
693 static struct omap_hwmod_class omap3_dispc_hwmod_class
= {
695 .sysc
= &omap3_dispc_sysc
,
698 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
700 .class = &omap3_dispc_hwmod_class
,
701 .mpu_irqs
= omap2_dispc_irqs
,
702 .main_clk
= "dss1_alwon_fck",
706 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
707 .module_offs
= OMAP3430_DSS_MOD
,
710 .flags
= HWMOD_NO_IDLEST
,
711 .dev_attr
= &omap2_3_dss_dispc_dev_attr
716 * display serial interface controller
719 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
723 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
724 { .irq
= 25 + OMAP_INTC_START
, },
729 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
730 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
733 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
735 .class = &omap3xxx_dsi_hwmod_class
,
736 .mpu_irqs
= omap3xxx_dsi1_irqs
,
737 .main_clk
= "dss1_alwon_fck",
741 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
742 .module_offs
= OMAP3430_DSS_MOD
,
745 .opt_clks
= dss_dsi1_opt_clks
,
746 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
747 .flags
= HWMOD_NO_IDLEST
,
750 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
751 { .role
= "ick", .clk
= "dss_ick" },
754 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
756 .class = &omap2_rfbi_hwmod_class
,
757 .main_clk
= "dss1_alwon_fck",
761 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
762 .module_offs
= OMAP3430_DSS_MOD
,
765 .opt_clks
= dss_rfbi_opt_clks
,
766 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
767 .flags
= HWMOD_NO_IDLEST
,
770 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
771 /* required only on OMAP3430 */
772 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
775 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
777 .class = &omap2_venc_hwmod_class
,
778 .main_clk
= "dss_tv_fck",
782 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
783 .module_offs
= OMAP3430_DSS_MOD
,
786 .opt_clks
= dss_venc_opt_clks
,
787 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
788 .flags
= HWMOD_NO_IDLEST
,
792 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
793 .fifo_depth
= 8, /* bytes */
794 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
795 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
796 OMAP_I2C_FLAG_BUS_SHIFT_2
,
799 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
801 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
802 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
803 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
804 .main_clk
= "i2c1_fck",
807 .module_offs
= CORE_MOD
,
809 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
811 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
815 .dev_attr
= &i2c1_dev_attr
,
819 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
820 .fifo_depth
= 8, /* bytes */
821 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
822 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
823 OMAP_I2C_FLAG_BUS_SHIFT_2
,
826 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
828 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
829 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
830 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
831 .main_clk
= "i2c2_fck",
834 .module_offs
= CORE_MOD
,
836 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
838 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
842 .dev_attr
= &i2c2_dev_attr
,
846 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
847 .fifo_depth
= 64, /* bytes */
848 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
849 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
850 OMAP_I2C_FLAG_BUS_SHIFT_2
,
853 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
854 { .irq
= 61 + OMAP_INTC_START
, },
858 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
859 { .name
= "tx", .dma_req
= OMAP34XX_DMA_I2C3_TX
},
860 { .name
= "rx", .dma_req
= OMAP34XX_DMA_I2C3_RX
},
864 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
866 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
867 .mpu_irqs
= i2c3_mpu_irqs
,
868 .sdma_reqs
= i2c3_sdma_reqs
,
869 .main_clk
= "i2c3_fck",
872 .module_offs
= CORE_MOD
,
874 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
876 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
880 .dev_attr
= &i2c3_dev_attr
,
885 * general purpose io module
888 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
892 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
893 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
894 SYSS_HAS_RESET_STATUS
),
895 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
896 .sysc_fields
= &omap_hwmod_sysc_type1
,
899 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
901 .sysc
= &omap3xxx_gpio_sysc
,
906 static struct omap_gpio_dev_attr gpio_dev_attr
= {
912 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
913 { .role
= "dbclk", .clk
= "gpio1_dbck", },
916 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
918 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
919 .mpu_irqs
= omap2_gpio1_irqs
,
920 .main_clk
= "gpio1_ick",
921 .opt_clks
= gpio1_opt_clks
,
922 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
926 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
927 .module_offs
= WKUP_MOD
,
929 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
932 .class = &omap3xxx_gpio_hwmod_class
,
933 .dev_attr
= &gpio_dev_attr
,
937 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
938 { .role
= "dbclk", .clk
= "gpio2_dbck", },
941 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
943 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
944 .mpu_irqs
= omap2_gpio2_irqs
,
945 .main_clk
= "gpio2_ick",
946 .opt_clks
= gpio2_opt_clks
,
947 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
951 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
952 .module_offs
= OMAP3430_PER_MOD
,
954 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
957 .class = &omap3xxx_gpio_hwmod_class
,
958 .dev_attr
= &gpio_dev_attr
,
962 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
963 { .role
= "dbclk", .clk
= "gpio3_dbck", },
966 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
968 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
969 .mpu_irqs
= omap2_gpio3_irqs
,
970 .main_clk
= "gpio3_ick",
971 .opt_clks
= gpio3_opt_clks
,
972 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
976 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
977 .module_offs
= OMAP3430_PER_MOD
,
979 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
982 .class = &omap3xxx_gpio_hwmod_class
,
983 .dev_attr
= &gpio_dev_attr
,
987 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
988 { .role
= "dbclk", .clk
= "gpio4_dbck", },
991 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
993 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
994 .mpu_irqs
= omap2_gpio4_irqs
,
995 .main_clk
= "gpio4_ick",
996 .opt_clks
= gpio4_opt_clks
,
997 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1001 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
1002 .module_offs
= OMAP3430_PER_MOD
,
1004 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
1007 .class = &omap3xxx_gpio_hwmod_class
,
1008 .dev_attr
= &gpio_dev_attr
,
1012 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
1013 { .irq
= 33 + OMAP_INTC_START
, }, /* INT_34XX_GPIO_BANK5 */
1017 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1018 { .role
= "dbclk", .clk
= "gpio5_dbck", },
1021 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
1023 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1024 .mpu_irqs
= omap3xxx_gpio5_irqs
,
1025 .main_clk
= "gpio5_ick",
1026 .opt_clks
= gpio5_opt_clks
,
1027 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1031 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
1032 .module_offs
= OMAP3430_PER_MOD
,
1034 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
1037 .class = &omap3xxx_gpio_hwmod_class
,
1038 .dev_attr
= &gpio_dev_attr
,
1042 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
1043 { .irq
= 34 + OMAP_INTC_START
, }, /* INT_34XX_GPIO_BANK6 */
1047 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
1048 { .role
= "dbclk", .clk
= "gpio6_dbck", },
1051 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
1053 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1054 .mpu_irqs
= omap3xxx_gpio6_irqs
,
1055 .main_clk
= "gpio6_ick",
1056 .opt_clks
= gpio6_opt_clks
,
1057 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1061 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
1062 .module_offs
= OMAP3430_PER_MOD
,
1064 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
1067 .class = &omap3xxx_gpio_hwmod_class
,
1068 .dev_attr
= &gpio_dev_attr
,
1071 /* dma attributes */
1072 static struct omap_dma_dev_attr dma_dev_attr
= {
1073 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1074 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
1078 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
1080 .sysc_offs
= 0x002c,
1081 .syss_offs
= 0x0028,
1082 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1083 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1084 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
1085 SYSS_HAS_RESET_STATUS
),
1086 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1087 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1088 .sysc_fields
= &omap_hwmod_sysc_type1
,
1091 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
1093 .sysc
= &omap3xxx_dma_sysc
,
1097 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
1099 .class = &omap3xxx_dma_hwmod_class
,
1100 .mpu_irqs
= omap2_dma_system_irqs
,
1101 .main_clk
= "core_l3_ick",
1104 .module_offs
= CORE_MOD
,
1106 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
1108 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
1111 .dev_attr
= &dma_dev_attr
,
1112 .flags
= HWMOD_NO_IDLEST
,
1117 * multi channel buffered serial port controller
1120 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
1121 .sysc_offs
= 0x008c,
1122 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1123 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1124 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1125 .sysc_fields
= &omap_hwmod_sysc_type1
,
1129 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
1131 .sysc
= &omap3xxx_mcbsp_sysc
,
1132 .rev
= MCBSP_CONFIG_TYPE3
,
1135 /* McBSP functional clock mapping */
1136 static struct omap_hwmod_opt_clk mcbsp15_opt_clks
[] = {
1137 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1138 { .role
= "prcm_fck", .clk
= "core_96m_fck" },
1141 static struct omap_hwmod_opt_clk mcbsp234_opt_clks
[] = {
1142 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1143 { .role
= "prcm_fck", .clk
= "per_96m_fck" },
1147 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
1148 { .name
= "common", .irq
= 16 + OMAP_INTC_START
, },
1149 { .name
= "tx", .irq
= 59 + OMAP_INTC_START
, },
1150 { .name
= "rx", .irq
= 60 + OMAP_INTC_START
, },
1154 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
1156 .class = &omap3xxx_mcbsp_hwmod_class
,
1157 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
1158 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
1159 .main_clk
= "mcbsp1_fck",
1163 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
1164 .module_offs
= CORE_MOD
,
1166 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
1169 .opt_clks
= mcbsp15_opt_clks
,
1170 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1174 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
1175 { .name
= "common", .irq
= 17 + OMAP_INTC_START
, },
1176 { .name
= "tx", .irq
= 62 + OMAP_INTC_START
, },
1177 { .name
= "rx", .irq
= 63 + OMAP_INTC_START
, },
1181 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
1182 .sidetone
= "mcbsp2_sidetone",
1185 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
1187 .class = &omap3xxx_mcbsp_hwmod_class
,
1188 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
1189 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
1190 .main_clk
= "mcbsp2_fck",
1194 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1195 .module_offs
= OMAP3430_PER_MOD
,
1197 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1200 .opt_clks
= mcbsp234_opt_clks
,
1201 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1202 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
1206 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
1207 { .name
= "common", .irq
= 22 + OMAP_INTC_START
, },
1208 { .name
= "tx", .irq
= 89 + OMAP_INTC_START
, },
1209 { .name
= "rx", .irq
= 90 + OMAP_INTC_START
, },
1213 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
1214 .sidetone
= "mcbsp3_sidetone",
1217 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
1219 .class = &omap3xxx_mcbsp_hwmod_class
,
1220 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
1221 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
1222 .main_clk
= "mcbsp3_fck",
1226 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1227 .module_offs
= OMAP3430_PER_MOD
,
1229 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1232 .opt_clks
= mcbsp234_opt_clks
,
1233 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1234 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
1238 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
1239 { .name
= "common", .irq
= 23 + OMAP_INTC_START
, },
1240 { .name
= "tx", .irq
= 54 + OMAP_INTC_START
, },
1241 { .name
= "rx", .irq
= 55 + OMAP_INTC_START
, },
1245 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
1246 { .name
= "rx", .dma_req
= 20 },
1247 { .name
= "tx", .dma_req
= 19 },
1251 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
1253 .class = &omap3xxx_mcbsp_hwmod_class
,
1254 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
1255 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
1256 .main_clk
= "mcbsp4_fck",
1260 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
1261 .module_offs
= OMAP3430_PER_MOD
,
1263 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
1266 .opt_clks
= mcbsp234_opt_clks
,
1267 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1271 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
1272 { .name
= "common", .irq
= 27 + OMAP_INTC_START
, },
1273 { .name
= "tx", .irq
= 81 + OMAP_INTC_START
, },
1274 { .name
= "rx", .irq
= 82 + OMAP_INTC_START
, },
1278 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
1279 { .name
= "rx", .dma_req
= 22 },
1280 { .name
= "tx", .dma_req
= 21 },
1284 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
1286 .class = &omap3xxx_mcbsp_hwmod_class
,
1287 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
1288 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
1289 .main_clk
= "mcbsp5_fck",
1293 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
1294 .module_offs
= CORE_MOD
,
1296 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
1299 .opt_clks
= mcbsp15_opt_clks
,
1300 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1303 /* 'mcbsp sidetone' class */
1304 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
1305 .sysc_offs
= 0x0010,
1306 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
1307 .sysc_fields
= &omap_hwmod_sysc_type1
,
1310 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
1311 .name
= "mcbsp_sidetone",
1312 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
1315 /* mcbsp2_sidetone */
1316 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
1317 { .name
= "irq", .irq
= 4 + OMAP_INTC_START
, },
1321 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
1322 .name
= "mcbsp2_sidetone",
1323 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1324 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
1325 .main_clk
= "mcbsp2_fck",
1329 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1330 .module_offs
= OMAP3430_PER_MOD
,
1332 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1337 /* mcbsp3_sidetone */
1338 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
1339 { .name
= "irq", .irq
= 5 + OMAP_INTC_START
, },
1343 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
1344 .name
= "mcbsp3_sidetone",
1345 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1346 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
1347 .main_clk
= "mcbsp3_fck",
1351 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1352 .module_offs
= OMAP3430_PER_MOD
,
1354 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1360 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
1364 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
1366 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
1367 .clockact
= CLOCKACT_TEST_ICLK
,
1368 .sysc_fields
= &omap34xx_sr_sysc_fields
,
1371 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
1372 .name
= "smartreflex",
1373 .sysc
= &omap34xx_sr_sysc
,
1377 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
1382 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
1384 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1385 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1387 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1390 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
1391 .name
= "smartreflex",
1392 .sysc
= &omap36xx_sr_sysc
,
1397 static struct omap_smartreflex_dev_attr sr1_dev_attr
= {
1398 .sensor_voltdm_name
= "mpu_iva",
1401 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs
[] = {
1402 { .irq
= 18 + OMAP_INTC_START
, },
1406 static struct omap_hwmod omap34xx_sr1_hwmod
= {
1407 .name
= "smartreflex_mpu_iva",
1408 .class = &omap34xx_smartreflex_hwmod_class
,
1409 .main_clk
= "sr1_fck",
1413 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1414 .module_offs
= WKUP_MOD
,
1416 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1419 .dev_attr
= &sr1_dev_attr
,
1420 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1421 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1424 static struct omap_hwmod omap36xx_sr1_hwmod
= {
1425 .name
= "smartreflex_mpu_iva",
1426 .class = &omap36xx_smartreflex_hwmod_class
,
1427 .main_clk
= "sr1_fck",
1431 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1432 .module_offs
= WKUP_MOD
,
1434 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1437 .dev_attr
= &sr1_dev_attr
,
1438 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1442 static struct omap_smartreflex_dev_attr sr2_dev_attr
= {
1443 .sensor_voltdm_name
= "core",
1446 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs
[] = {
1447 { .irq
= 19 + OMAP_INTC_START
, },
1451 static struct omap_hwmod omap34xx_sr2_hwmod
= {
1452 .name
= "smartreflex_core",
1453 .class = &omap34xx_smartreflex_hwmod_class
,
1454 .main_clk
= "sr2_fck",
1458 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1459 .module_offs
= WKUP_MOD
,
1461 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1464 .dev_attr
= &sr2_dev_attr
,
1465 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1466 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1469 static struct omap_hwmod omap36xx_sr2_hwmod
= {
1470 .name
= "smartreflex_core",
1471 .class = &omap36xx_smartreflex_hwmod_class
,
1472 .main_clk
= "sr2_fck",
1476 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1477 .module_offs
= WKUP_MOD
,
1479 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1482 .dev_attr
= &sr2_dev_attr
,
1483 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1488 * mailbox module allowing communication between the on-chip processors
1489 * using a queued mailbox-interrupt mechanism.
1492 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
1496 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1497 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1498 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1499 .sysc_fields
= &omap_hwmod_sysc_type1
,
1502 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
1504 .sysc
= &omap3xxx_mailbox_sysc
,
1507 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs
[] = {
1508 { .irq
= 26 + OMAP_INTC_START
, },
1512 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
1514 .class = &omap3xxx_mailbox_hwmod_class
,
1515 .mpu_irqs
= omap3xxx_mailbox_irqs
,
1516 .main_clk
= "mailboxes_ick",
1520 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
1521 .module_offs
= CORE_MOD
,
1523 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
1530 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1534 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
1536 .sysc_offs
= 0x0010,
1537 .syss_offs
= 0x0014,
1538 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1539 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1540 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1541 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1542 .sysc_fields
= &omap_hwmod_sysc_type1
,
1545 static struct omap_hwmod_class omap34xx_mcspi_class
= {
1547 .sysc
= &omap34xx_mcspi_sysc
,
1548 .rev
= OMAP3_MCSPI_REV
,
1552 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1553 .num_chipselect
= 4,
1556 static struct omap_hwmod omap34xx_mcspi1
= {
1558 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
1559 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
1560 .main_clk
= "mcspi1_fck",
1563 .module_offs
= CORE_MOD
,
1565 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
1567 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
1570 .class = &omap34xx_mcspi_class
,
1571 .dev_attr
= &omap_mcspi1_dev_attr
,
1575 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
1576 .num_chipselect
= 2,
1579 static struct omap_hwmod omap34xx_mcspi2
= {
1581 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
1582 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
1583 .main_clk
= "mcspi2_fck",
1586 .module_offs
= CORE_MOD
,
1588 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
1590 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
1593 .class = &omap34xx_mcspi_class
,
1594 .dev_attr
= &omap_mcspi2_dev_attr
,
1598 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
1599 { .name
= "irq", .irq
= 91 + OMAP_INTC_START
, }, /* 91 */
1603 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
1604 { .name
= "tx0", .dma_req
= 15 },
1605 { .name
= "rx0", .dma_req
= 16 },
1606 { .name
= "tx1", .dma_req
= 23 },
1607 { .name
= "rx1", .dma_req
= 24 },
1611 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
1612 .num_chipselect
= 2,
1615 static struct omap_hwmod omap34xx_mcspi3
= {
1617 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
1618 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
1619 .main_clk
= "mcspi3_fck",
1622 .module_offs
= CORE_MOD
,
1624 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
1626 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
1629 .class = &omap34xx_mcspi_class
,
1630 .dev_attr
= &omap_mcspi3_dev_attr
,
1634 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
1635 { .name
= "irq", .irq
= 48 + OMAP_INTC_START
, },
1639 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
1640 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
1641 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
1645 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
1646 .num_chipselect
= 1,
1649 static struct omap_hwmod omap34xx_mcspi4
= {
1651 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
1652 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
1653 .main_clk
= "mcspi4_fck",
1656 .module_offs
= CORE_MOD
,
1658 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
1660 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
1663 .class = &omap34xx_mcspi_class
,
1664 .dev_attr
= &omap_mcspi4_dev_attr
,
1668 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
1670 .sysc_offs
= 0x0404,
1671 .syss_offs
= 0x0408,
1672 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1673 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1675 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1676 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1677 .sysc_fields
= &omap_hwmod_sysc_type1
,
1680 static struct omap_hwmod_class usbotg_class
= {
1682 .sysc
= &omap3xxx_usbhsotg_sysc
,
1686 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
1688 { .name
= "mc", .irq
= 92 + OMAP_INTC_START
, },
1689 { .name
= "dma", .irq
= 93 + OMAP_INTC_START
, },
1693 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
1694 .name
= "usb_otg_hs",
1695 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
1696 .main_clk
= "hsotgusb_ick",
1700 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
1701 .module_offs
= CORE_MOD
,
1703 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
1704 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1707 .class = &usbotg_class
,
1710 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1711 * broken when autoidle is enabled
1712 * workaround is to disable the autoidle bit at module level.
1714 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
1715 | HWMOD_SWSUP_MSTANDBY
,
1719 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
1720 { .name
= "mc", .irq
= 71 + OMAP_INTC_START
, },
1724 static struct omap_hwmod_class am35xx_usbotg_class
= {
1725 .name
= "am35xx_usbotg",
1728 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
1729 .name
= "am35x_otg_hs",
1730 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
1731 .main_clk
= "hsotgusb_fck",
1732 .class = &am35xx_usbotg_class
,
1733 .flags
= HWMOD_NO_IDLEST
,
1736 /* MMC/SD/SDIO common */
1737 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
1741 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1742 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1743 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1744 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1745 .sysc_fields
= &omap_hwmod_sysc_type1
,
1748 static struct omap_hwmod_class omap34xx_mmc_class
= {
1750 .sysc
= &omap34xx_mmc_sysc
,
1755 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
1756 { .irq
= 83 + OMAP_INTC_START
, },
1760 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
1761 { .name
= "tx", .dma_req
= 61, },
1762 { .name
= "rx", .dma_req
= 62, },
1766 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
1767 { .role
= "dbck", .clk
= "omap_32k_fck", },
1770 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
1771 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1774 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1775 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr
= {
1776 .flags
= (OMAP_HSMMC_SUPPORTS_DUAL_VOLT
|
1777 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
),
1780 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod
= {
1782 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1783 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1784 .opt_clks
= omap34xx_mmc1_opt_clks
,
1785 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1786 .main_clk
= "mmchs1_fck",
1789 .module_offs
= CORE_MOD
,
1791 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1793 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1796 .dev_attr
= &mmc1_pre_es3_dev_attr
,
1797 .class = &omap34xx_mmc_class
,
1800 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod
= {
1802 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1803 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1804 .opt_clks
= omap34xx_mmc1_opt_clks
,
1805 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1806 .main_clk
= "mmchs1_fck",
1809 .module_offs
= CORE_MOD
,
1811 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1813 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1816 .dev_attr
= &mmc1_dev_attr
,
1817 .class = &omap34xx_mmc_class
,
1822 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
1823 { .irq
= 86 + OMAP_INTC_START
, },
1827 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
1828 { .name
= "tx", .dma_req
= 47, },
1829 { .name
= "rx", .dma_req
= 48, },
1833 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
1834 { .role
= "dbck", .clk
= "omap_32k_fck", },
1837 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1838 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr
= {
1839 .flags
= OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
,
1842 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod
= {
1844 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1845 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1846 .opt_clks
= omap34xx_mmc2_opt_clks
,
1847 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1848 .main_clk
= "mmchs2_fck",
1851 .module_offs
= CORE_MOD
,
1853 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1855 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1858 .dev_attr
= &mmc2_pre_es3_dev_attr
,
1859 .class = &omap34xx_mmc_class
,
1862 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod
= {
1864 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1865 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1866 .opt_clks
= omap34xx_mmc2_opt_clks
,
1867 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1868 .main_clk
= "mmchs2_fck",
1871 .module_offs
= CORE_MOD
,
1873 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1875 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1878 .class = &omap34xx_mmc_class
,
1883 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
1884 { .irq
= 94 + OMAP_INTC_START
, },
1888 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
1889 { .name
= "tx", .dma_req
= 77, },
1890 { .name
= "rx", .dma_req
= 78, },
1894 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
1895 { .role
= "dbck", .clk
= "omap_32k_fck", },
1898 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
1900 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
1901 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
1902 .opt_clks
= omap34xx_mmc3_opt_clks
,
1903 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
1904 .main_clk
= "mmchs3_fck",
1908 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
1910 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
1913 .class = &omap34xx_mmc_class
,
1917 * 'usb_host_hs' class
1918 * high-speed multi-port usb host controller
1921 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc
= {
1923 .sysc_offs
= 0x0010,
1924 .syss_offs
= 0x0014,
1925 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1926 SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1927 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1928 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1929 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1930 .sysc_fields
= &omap_hwmod_sysc_type1
,
1933 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class
= {
1934 .name
= "usb_host_hs",
1935 .sysc
= &omap3xxx_usb_host_hs_sysc
,
1938 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks
[] = {
1939 { .role
= "ehci_logic_fck", .clk
= "usbhost_120m_fck", },
1942 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs
[] = {
1943 { .name
= "ohci-irq", .irq
= 76 + OMAP_INTC_START
, },
1944 { .name
= "ehci-irq", .irq
= 77 + OMAP_INTC_START
, },
1948 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod
= {
1949 .name
= "usb_host_hs",
1950 .class = &omap3xxx_usb_host_hs_hwmod_class
,
1951 .clkdm_name
= "l3_init_clkdm",
1952 .mpu_irqs
= omap3xxx_usb_host_hs_irqs
,
1953 .main_clk
= "usbhost_48m_fck",
1956 .module_offs
= OMAP3430ES2_USBHOST_MOD
,
1958 .module_bit
= OMAP3430ES2_EN_USBHOST1_SHIFT
,
1960 .idlest_idle_bit
= OMAP3430ES2_ST_USBHOST_IDLE_SHIFT
,
1961 .idlest_stdby_bit
= OMAP3430ES2_ST_USBHOST_STDBY_SHIFT
,
1964 .opt_clks
= omap3xxx_usb_host_hs_opt_clks
,
1965 .opt_clks_cnt
= ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks
),
1968 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1972 * In the following configuration :
1973 * - USBHOST module is set to smart-idle mode
1974 * - PRCM asserts idle_req to the USBHOST module ( This typically
1975 * happens when the system is going to a low power mode : all ports
1976 * have been suspended, the master part of the USBHOST module has
1977 * entered the standby state, and SW has cut the functional clocks)
1978 * - an USBHOST interrupt occurs before the module is able to answer
1979 * idle_ack, typically a remote wakeup IRQ.
1980 * Then the USB HOST module will enter a deadlock situation where it
1981 * is no more accessible nor functional.
1984 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1988 * Errata: USB host EHCI may stall when entering smart-standby mode
1992 * When the USBHOST module is set to smart-standby mode, and when it is
1993 * ready to enter the standby state (i.e. all ports are suspended and
1994 * all attached devices are in suspend mode), then it can wrongly assert
1995 * the Mstandby signal too early while there are still some residual OCP
1996 * transactions ongoing. If this condition occurs, the internal state
1997 * machine may go to an undefined state and the USB link may be stuck
1998 * upon the next resume.
2001 * Don't use smart standby; use only force standby,
2002 * hence HWMOD_SWSUP_MSTANDBY
2006 * During system boot; If the hwmod framework resets the module
2007 * the module will have smart idle settings; which can lead to deadlock
2008 * (above Errata Id:i660); so, dont reset the module during boot;
2009 * Use HWMOD_INIT_NO_RESET.
2012 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
|
2013 HWMOD_INIT_NO_RESET
,
2017 * 'usb_tll_hs' class
2018 * usb_tll_hs module is the adapter on the usb_host_hs ports
2020 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc
= {
2022 .sysc_offs
= 0x0010,
2023 .syss_offs
= 0x0014,
2024 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2025 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
2027 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2028 .sysc_fields
= &omap_hwmod_sysc_type1
,
2031 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class
= {
2032 .name
= "usb_tll_hs",
2033 .sysc
= &omap3xxx_usb_tll_hs_sysc
,
2036 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs
[] = {
2037 { .name
= "tll-irq", .irq
= 78 + OMAP_INTC_START
, },
2041 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod
= {
2042 .name
= "usb_tll_hs",
2043 .class = &omap3xxx_usb_tll_hs_hwmod_class
,
2044 .clkdm_name
= "l3_init_clkdm",
2045 .mpu_irqs
= omap3xxx_usb_tll_hs_irqs
,
2046 .main_clk
= "usbtll_fck",
2049 .module_offs
= CORE_MOD
,
2051 .module_bit
= OMAP3430ES2_EN_USBTLL_SHIFT
,
2053 .idlest_idle_bit
= OMAP3430ES2_ST_USBTLL_SHIFT
,
2058 static struct omap_hwmod omap3xxx_hdq1w_hwmod
= {
2060 .mpu_irqs
= omap2_hdq1w_mpu_irqs
,
2061 .main_clk
= "hdq_fck",
2064 .module_offs
= CORE_MOD
,
2066 .module_bit
= OMAP3430_EN_HDQ_SHIFT
,
2068 .idlest_idle_bit
= OMAP3430_ST_HDQ_SHIFT
,
2071 .class = &omap2_hdq1w_class
,
2075 static struct omap_hwmod_rst_info omap3xxx_sad2d_resets
[] = {
2076 { .name
= "rst_modem_pwron_sw", .rst_shift
= 0 },
2077 { .name
= "rst_modem_sw", .rst_shift
= 1 },
2080 static struct omap_hwmod_class omap3xxx_sad2d_class
= {
2084 static struct omap_hwmod omap3xxx_sad2d_hwmod
= {
2086 .rst_lines
= omap3xxx_sad2d_resets
,
2087 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_sad2d_resets
),
2088 .main_clk
= "sad2d_ick",
2091 .module_offs
= CORE_MOD
,
2093 .module_bit
= OMAP3430_EN_SAD2D_SHIFT
,
2095 .idlest_idle_bit
= OMAP3430_ST_SAD2D_SHIFT
,
2098 .class = &omap3xxx_sad2d_class
,
2102 * '32K sync counter' class
2103 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2105 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc
= {
2107 .sysc_offs
= 0x0004,
2108 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
2109 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
2110 .sysc_fields
= &omap_hwmod_sysc_type1
,
2113 static struct omap_hwmod_class omap3xxx_counter_hwmod_class
= {
2115 .sysc
= &omap3xxx_counter_sysc
,
2118 static struct omap_hwmod omap3xxx_counter_32k_hwmod
= {
2119 .name
= "counter_32k",
2120 .class = &omap3xxx_counter_hwmod_class
,
2121 .clkdm_name
= "wkup_clkdm",
2122 .flags
= HWMOD_SWSUP_SIDLE
,
2123 .main_clk
= "wkup_32k_fck",
2126 .module_offs
= WKUP_MOD
,
2128 .module_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2130 .idlest_idle_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2137 * general purpose memory controller
2140 static struct omap_hwmod_class_sysconfig omap3xxx_gpmc_sysc
= {
2142 .sysc_offs
= 0x0010,
2143 .syss_offs
= 0x0014,
2144 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
2145 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2146 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2147 .sysc_fields
= &omap_hwmod_sysc_type1
,
2150 static struct omap_hwmod_class omap3xxx_gpmc_hwmod_class
= {
2152 .sysc
= &omap3xxx_gpmc_sysc
,
2155 static struct omap_hwmod_irq_info omap3xxx_gpmc_irqs
[] = {
2160 static struct omap_hwmod omap3xxx_gpmc_hwmod
= {
2162 .class = &omap3xxx_gpmc_hwmod_class
,
2163 .clkdm_name
= "core_l3_clkdm",
2164 .mpu_irqs
= omap3xxx_gpmc_irqs
,
2165 .main_clk
= "gpmc_fck",
2167 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
2168 * block. It is not being added due to any known bugs with
2169 * resetting the GPMC IP block, but rather because any timings
2170 * set by the bootloader are not being correctly programmed by
2171 * the kernel from the board file or DT data.
2172 * HWMOD_INIT_NO_RESET should be removed ASAP.
2174 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
|
2182 /* L3 -> L4_CORE interface */
2183 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
2184 .master
= &omap3xxx_l3_main_hwmod
,
2185 .slave
= &omap3xxx_l4_core_hwmod
,
2186 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2189 /* L3 -> L4_PER interface */
2190 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
2191 .master
= &omap3xxx_l3_main_hwmod
,
2192 .slave
= &omap3xxx_l4_per_hwmod
,
2193 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2196 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
2198 .pa_start
= 0x68000000,
2199 .pa_end
= 0x6800ffff,
2200 .flags
= ADDR_TYPE_RT
,
2205 /* MPU -> L3 interface */
2206 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
2207 .master
= &omap3xxx_mpu_hwmod
,
2208 .slave
= &omap3xxx_l3_main_hwmod
,
2209 .addr
= omap3xxx_l3_main_addrs
,
2210 .user
= OCP_USER_MPU
,
2213 static struct omap_hwmod_addr_space omap3xxx_l4_emu_addrs
[] = {
2215 .pa_start
= 0x54000000,
2216 .pa_end
= 0x547fffff,
2217 .flags
= ADDR_TYPE_RT
,
2223 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_debugss
= {
2224 .master
= &omap3xxx_l3_main_hwmod
,
2225 .slave
= &omap3xxx_debugss_hwmod
,
2226 .addr
= omap3xxx_l4_emu_addrs
,
2227 .user
= OCP_USER_MPU
,
2231 static struct omap_hwmod_ocp_if omap3430es1_dss__l3
= {
2232 .master
= &omap3430es1_dss_core_hwmod
,
2233 .slave
= &omap3xxx_l3_main_hwmod
,
2234 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2237 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
2238 .master
= &omap3xxx_dss_core_hwmod
,
2239 .slave
= &omap3xxx_l3_main_hwmod
,
2242 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
2243 .flags
= OMAP_FIREWALL_L3
,
2246 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2249 /* l3_core -> usbhsotg interface */
2250 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
2251 .master
= &omap3xxx_usbhsotg_hwmod
,
2252 .slave
= &omap3xxx_l3_main_hwmod
,
2253 .clk
= "core_l3_ick",
2254 .user
= OCP_USER_MPU
,
2257 /* l3_core -> am35xx_usbhsotg interface */
2258 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
2259 .master
= &am35xx_usbhsotg_hwmod
,
2260 .slave
= &omap3xxx_l3_main_hwmod
,
2261 .clk
= "hsotgusb_ick",
2262 .user
= OCP_USER_MPU
,
2265 /* l3_core -> sad2d interface */
2266 static struct omap_hwmod_ocp_if omap3xxx_sad2d__l3
= {
2267 .master
= &omap3xxx_sad2d_hwmod
,
2268 .slave
= &omap3xxx_l3_main_hwmod
,
2269 .clk
= "core_l3_ick",
2270 .user
= OCP_USER_MPU
,
2273 /* L4_CORE -> L4_WKUP interface */
2274 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
2275 .master
= &omap3xxx_l4_core_hwmod
,
2276 .slave
= &omap3xxx_l4_wkup_hwmod
,
2277 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2280 /* L4 CORE -> MMC1 interface */
2281 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1
= {
2282 .master
= &omap3xxx_l4_core_hwmod
,
2283 .slave
= &omap3xxx_pre_es3_mmc1_hwmod
,
2284 .clk
= "mmchs1_ick",
2285 .addr
= omap2430_mmc1_addr_space
,
2286 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2287 .flags
= OMAP_FIREWALL_L4
2290 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1
= {
2291 .master
= &omap3xxx_l4_core_hwmod
,
2292 .slave
= &omap3xxx_es3plus_mmc1_hwmod
,
2293 .clk
= "mmchs1_ick",
2294 .addr
= omap2430_mmc1_addr_space
,
2295 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2296 .flags
= OMAP_FIREWALL_L4
2299 /* L4 CORE -> MMC2 interface */
2300 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2
= {
2301 .master
= &omap3xxx_l4_core_hwmod
,
2302 .slave
= &omap3xxx_pre_es3_mmc2_hwmod
,
2303 .clk
= "mmchs2_ick",
2304 .addr
= omap2430_mmc2_addr_space
,
2305 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2306 .flags
= OMAP_FIREWALL_L4
2309 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2
= {
2310 .master
= &omap3xxx_l4_core_hwmod
,
2311 .slave
= &omap3xxx_es3plus_mmc2_hwmod
,
2312 .clk
= "mmchs2_ick",
2313 .addr
= omap2430_mmc2_addr_space
,
2314 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2315 .flags
= OMAP_FIREWALL_L4
2318 /* L4 CORE -> MMC3 interface */
2319 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
2321 .pa_start
= 0x480ad000,
2322 .pa_end
= 0x480ad1ff,
2323 .flags
= ADDR_TYPE_RT
,
2328 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
2329 .master
= &omap3xxx_l4_core_hwmod
,
2330 .slave
= &omap3xxx_mmc3_hwmod
,
2331 .clk
= "mmchs3_ick",
2332 .addr
= omap3xxx_mmc3_addr_space
,
2333 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2334 .flags
= OMAP_FIREWALL_L4
2337 /* L4 CORE -> UART1 interface */
2338 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
2340 .pa_start
= OMAP3_UART1_BASE
,
2341 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
2342 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2347 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
2348 .master
= &omap3xxx_l4_core_hwmod
,
2349 .slave
= &omap3xxx_uart1_hwmod
,
2351 .addr
= omap3xxx_uart1_addr_space
,
2352 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2355 /* L4 CORE -> UART2 interface */
2356 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
2358 .pa_start
= OMAP3_UART2_BASE
,
2359 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
2360 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2365 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
2366 .master
= &omap3xxx_l4_core_hwmod
,
2367 .slave
= &omap3xxx_uart2_hwmod
,
2369 .addr
= omap3xxx_uart2_addr_space
,
2370 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2373 /* L4 PER -> UART3 interface */
2374 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
2376 .pa_start
= OMAP3_UART3_BASE
,
2377 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
2378 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2383 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
2384 .master
= &omap3xxx_l4_per_hwmod
,
2385 .slave
= &omap3xxx_uart3_hwmod
,
2387 .addr
= omap3xxx_uart3_addr_space
,
2388 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2391 /* L4 PER -> UART4 interface */
2392 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space
[] = {
2394 .pa_start
= OMAP3_UART4_BASE
,
2395 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
2396 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2401 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4
= {
2402 .master
= &omap3xxx_l4_per_hwmod
,
2403 .slave
= &omap36xx_uart4_hwmod
,
2405 .addr
= omap36xx_uart4_addr_space
,
2406 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2409 /* AM35xx: L4 CORE -> UART4 interface */
2410 static struct omap_hwmod_addr_space am35xx_uart4_addr_space
[] = {
2412 .pa_start
= OMAP3_UART4_AM35XX_BASE
,
2413 .pa_end
= OMAP3_UART4_AM35XX_BASE
+ SZ_1K
- 1,
2414 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2419 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4
= {
2420 .master
= &omap3xxx_l4_core_hwmod
,
2421 .slave
= &am35xx_uart4_hwmod
,
2423 .addr
= am35xx_uart4_addr_space
,
2424 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2427 /* L4 CORE -> I2C1 interface */
2428 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
2429 .master
= &omap3xxx_l4_core_hwmod
,
2430 .slave
= &omap3xxx_i2c1_hwmod
,
2432 .addr
= omap2_i2c1_addr_space
,
2435 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
2437 .flags
= OMAP_FIREWALL_L4
,
2440 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2443 /* L4 CORE -> I2C2 interface */
2444 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
2445 .master
= &omap3xxx_l4_core_hwmod
,
2446 .slave
= &omap3xxx_i2c2_hwmod
,
2448 .addr
= omap2_i2c2_addr_space
,
2451 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
2453 .flags
= OMAP_FIREWALL_L4
,
2456 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2459 /* L4 CORE -> I2C3 interface */
2460 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
2462 .pa_start
= 0x48060000,
2463 .pa_end
= 0x48060000 + SZ_128
- 1,
2464 .flags
= ADDR_TYPE_RT
,
2469 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
2470 .master
= &omap3xxx_l4_core_hwmod
,
2471 .slave
= &omap3xxx_i2c3_hwmod
,
2473 .addr
= omap3xxx_i2c3_addr_space
,
2476 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
2478 .flags
= OMAP_FIREWALL_L4
,
2481 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2484 /* L4 CORE -> SR1 interface */
2485 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
2487 .pa_start
= OMAP34XX_SR1_BASE
,
2488 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
2489 .flags
= ADDR_TYPE_RT
,
2494 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1
= {
2495 .master
= &omap3xxx_l4_core_hwmod
,
2496 .slave
= &omap34xx_sr1_hwmod
,
2498 .addr
= omap3_sr1_addr_space
,
2499 .user
= OCP_USER_MPU
,
2502 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1
= {
2503 .master
= &omap3xxx_l4_core_hwmod
,
2504 .slave
= &omap36xx_sr1_hwmod
,
2506 .addr
= omap3_sr1_addr_space
,
2507 .user
= OCP_USER_MPU
,
2510 /* L4 CORE -> SR1 interface */
2511 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
2513 .pa_start
= OMAP34XX_SR2_BASE
,
2514 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
2515 .flags
= ADDR_TYPE_RT
,
2520 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2
= {
2521 .master
= &omap3xxx_l4_core_hwmod
,
2522 .slave
= &omap34xx_sr2_hwmod
,
2524 .addr
= omap3_sr2_addr_space
,
2525 .user
= OCP_USER_MPU
,
2528 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2
= {
2529 .master
= &omap3xxx_l4_core_hwmod
,
2530 .slave
= &omap36xx_sr2_hwmod
,
2532 .addr
= omap3_sr2_addr_space
,
2533 .user
= OCP_USER_MPU
,
2536 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
2538 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
2539 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
2540 .flags
= ADDR_TYPE_RT
2545 /* l4_core -> usbhsotg */
2546 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
2547 .master
= &omap3xxx_l4_core_hwmod
,
2548 .slave
= &omap3xxx_usbhsotg_hwmod
,
2550 .addr
= omap3xxx_usbhsotg_addrs
,
2551 .user
= OCP_USER_MPU
,
2554 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
2556 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
2557 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
2558 .flags
= ADDR_TYPE_RT
2563 /* l4_core -> usbhsotg */
2564 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
2565 .master
= &omap3xxx_l4_core_hwmod
,
2566 .slave
= &am35xx_usbhsotg_hwmod
,
2567 .clk
= "hsotgusb_ick",
2568 .addr
= am35xx_usbhsotg_addrs
,
2569 .user
= OCP_USER_MPU
,
2572 /* L4_WKUP -> L4_SEC interface */
2573 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec
= {
2574 .master
= &omap3xxx_l4_wkup_hwmod
,
2575 .slave
= &omap3xxx_l4_sec_hwmod
,
2576 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2579 /* IVA2 <- L3 interface */
2580 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
2581 .master
= &omap3xxx_l3_main_hwmod
,
2582 .slave
= &omap3xxx_iva_hwmod
,
2583 .clk
= "core_l3_ick",
2584 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2587 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
2589 .pa_start
= 0x48318000,
2590 .pa_end
= 0x48318000 + SZ_1K
- 1,
2591 .flags
= ADDR_TYPE_RT
2596 /* l4_wkup -> timer1 */
2597 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
2598 .master
= &omap3xxx_l4_wkup_hwmod
,
2599 .slave
= &omap3xxx_timer1_hwmod
,
2601 .addr
= omap3xxx_timer1_addrs
,
2602 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2605 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
2607 .pa_start
= 0x49032000,
2608 .pa_end
= 0x49032000 + SZ_1K
- 1,
2609 .flags
= ADDR_TYPE_RT
2614 /* l4_per -> timer2 */
2615 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
2616 .master
= &omap3xxx_l4_per_hwmod
,
2617 .slave
= &omap3xxx_timer2_hwmod
,
2619 .addr
= omap3xxx_timer2_addrs
,
2620 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2623 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
2625 .pa_start
= 0x49034000,
2626 .pa_end
= 0x49034000 + SZ_1K
- 1,
2627 .flags
= ADDR_TYPE_RT
2632 /* l4_per -> timer3 */
2633 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
2634 .master
= &omap3xxx_l4_per_hwmod
,
2635 .slave
= &omap3xxx_timer3_hwmod
,
2637 .addr
= omap3xxx_timer3_addrs
,
2638 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2641 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
2643 .pa_start
= 0x49036000,
2644 .pa_end
= 0x49036000 + SZ_1K
- 1,
2645 .flags
= ADDR_TYPE_RT
2650 /* l4_per -> timer4 */
2651 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
2652 .master
= &omap3xxx_l4_per_hwmod
,
2653 .slave
= &omap3xxx_timer4_hwmod
,
2655 .addr
= omap3xxx_timer4_addrs
,
2656 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2659 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
2661 .pa_start
= 0x49038000,
2662 .pa_end
= 0x49038000 + SZ_1K
- 1,
2663 .flags
= ADDR_TYPE_RT
2668 /* l4_per -> timer5 */
2669 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
2670 .master
= &omap3xxx_l4_per_hwmod
,
2671 .slave
= &omap3xxx_timer5_hwmod
,
2673 .addr
= omap3xxx_timer5_addrs
,
2674 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2677 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
2679 .pa_start
= 0x4903A000,
2680 .pa_end
= 0x4903A000 + SZ_1K
- 1,
2681 .flags
= ADDR_TYPE_RT
2686 /* l4_per -> timer6 */
2687 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
2688 .master
= &omap3xxx_l4_per_hwmod
,
2689 .slave
= &omap3xxx_timer6_hwmod
,
2691 .addr
= omap3xxx_timer6_addrs
,
2692 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2695 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
2697 .pa_start
= 0x4903C000,
2698 .pa_end
= 0x4903C000 + SZ_1K
- 1,
2699 .flags
= ADDR_TYPE_RT
2704 /* l4_per -> timer7 */
2705 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
2706 .master
= &omap3xxx_l4_per_hwmod
,
2707 .slave
= &omap3xxx_timer7_hwmod
,
2709 .addr
= omap3xxx_timer7_addrs
,
2710 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2713 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
2715 .pa_start
= 0x4903E000,
2716 .pa_end
= 0x4903E000 + SZ_1K
- 1,
2717 .flags
= ADDR_TYPE_RT
2722 /* l4_per -> timer8 */
2723 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
2724 .master
= &omap3xxx_l4_per_hwmod
,
2725 .slave
= &omap3xxx_timer8_hwmod
,
2727 .addr
= omap3xxx_timer8_addrs
,
2728 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2731 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
2733 .pa_start
= 0x49040000,
2734 .pa_end
= 0x49040000 + SZ_1K
- 1,
2735 .flags
= ADDR_TYPE_RT
2740 /* l4_per -> timer9 */
2741 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
2742 .master
= &omap3xxx_l4_per_hwmod
,
2743 .slave
= &omap3xxx_timer9_hwmod
,
2745 .addr
= omap3xxx_timer9_addrs
,
2746 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2749 /* l4_core -> timer10 */
2750 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
2751 .master
= &omap3xxx_l4_core_hwmod
,
2752 .slave
= &omap3xxx_timer10_hwmod
,
2754 .addr
= omap2_timer10_addrs
,
2755 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2758 /* l4_core -> timer11 */
2759 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
2760 .master
= &omap3xxx_l4_core_hwmod
,
2761 .slave
= &omap3xxx_timer11_hwmod
,
2763 .addr
= omap2_timer11_addrs
,
2764 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2767 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
2769 .pa_start
= 0x48304000,
2770 .pa_end
= 0x48304000 + SZ_1K
- 1,
2771 .flags
= ADDR_TYPE_RT
2776 /* l4_core -> timer12 */
2777 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12
= {
2778 .master
= &omap3xxx_l4_sec_hwmod
,
2779 .slave
= &omap3xxx_timer12_hwmod
,
2781 .addr
= omap3xxx_timer12_addrs
,
2782 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2785 /* l4_wkup -> wd_timer2 */
2786 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
2788 .pa_start
= 0x48314000,
2789 .pa_end
= 0x4831407f,
2790 .flags
= ADDR_TYPE_RT
2795 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
2796 .master
= &omap3xxx_l4_wkup_hwmod
,
2797 .slave
= &omap3xxx_wd_timer2_hwmod
,
2799 .addr
= omap3xxx_wd_timer2_addrs
,
2800 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2803 /* l4_core -> dss */
2804 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
2805 .master
= &omap3xxx_l4_core_hwmod
,
2806 .slave
= &omap3430es1_dss_core_hwmod
,
2808 .addr
= omap2_dss_addrs
,
2811 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
2812 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2813 .flags
= OMAP_FIREWALL_L4
,
2816 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2819 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
2820 .master
= &omap3xxx_l4_core_hwmod
,
2821 .slave
= &omap3xxx_dss_core_hwmod
,
2823 .addr
= omap2_dss_addrs
,
2826 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
2827 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2828 .flags
= OMAP_FIREWALL_L4
,
2831 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2834 /* l4_core -> dss_dispc */
2835 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
2836 .master
= &omap3xxx_l4_core_hwmod
,
2837 .slave
= &omap3xxx_dss_dispc_hwmod
,
2839 .addr
= omap2_dss_dispc_addrs
,
2842 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
2843 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2844 .flags
= OMAP_FIREWALL_L4
,
2847 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2850 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
2852 .pa_start
= 0x4804FC00,
2853 .pa_end
= 0x4804FFFF,
2854 .flags
= ADDR_TYPE_RT
2859 /* l4_core -> dss_dsi1 */
2860 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
2861 .master
= &omap3xxx_l4_core_hwmod
,
2862 .slave
= &omap3xxx_dss_dsi1_hwmod
,
2864 .addr
= omap3xxx_dss_dsi1_addrs
,
2867 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
2868 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2869 .flags
= OMAP_FIREWALL_L4
,
2872 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2875 /* l4_core -> dss_rfbi */
2876 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
2877 .master
= &omap3xxx_l4_core_hwmod
,
2878 .slave
= &omap3xxx_dss_rfbi_hwmod
,
2880 .addr
= omap2_dss_rfbi_addrs
,
2883 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
2884 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2885 .flags
= OMAP_FIREWALL_L4
,
2888 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2891 /* l4_core -> dss_venc */
2892 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
2893 .master
= &omap3xxx_l4_core_hwmod
,
2894 .slave
= &omap3xxx_dss_venc_hwmod
,
2896 .addr
= omap2_dss_venc_addrs
,
2899 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
2900 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2901 .flags
= OMAP_FIREWALL_L4
,
2904 .flags
= OCPIF_SWSUP_IDLE
,
2905 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2908 /* l4_wkup -> gpio1 */
2909 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
2911 .pa_start
= 0x48310000,
2912 .pa_end
= 0x483101ff,
2913 .flags
= ADDR_TYPE_RT
2918 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
2919 .master
= &omap3xxx_l4_wkup_hwmod
,
2920 .slave
= &omap3xxx_gpio1_hwmod
,
2921 .addr
= omap3xxx_gpio1_addrs
,
2922 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2925 /* l4_per -> gpio2 */
2926 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
2928 .pa_start
= 0x49050000,
2929 .pa_end
= 0x490501ff,
2930 .flags
= ADDR_TYPE_RT
2935 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
2936 .master
= &omap3xxx_l4_per_hwmod
,
2937 .slave
= &omap3xxx_gpio2_hwmod
,
2938 .addr
= omap3xxx_gpio2_addrs
,
2939 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2942 /* l4_per -> gpio3 */
2943 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
2945 .pa_start
= 0x49052000,
2946 .pa_end
= 0x490521ff,
2947 .flags
= ADDR_TYPE_RT
2952 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
2953 .master
= &omap3xxx_l4_per_hwmod
,
2954 .slave
= &omap3xxx_gpio3_hwmod
,
2955 .addr
= omap3xxx_gpio3_addrs
,
2956 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2961 * The memory management unit performs virtual to physical address translation
2962 * for its requestors.
2965 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
2969 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2970 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2971 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2972 .sysc_fields
= &omap_hwmod_sysc_type1
,
2975 static struct omap_hwmod_class omap3xxx_mmu_hwmod_class
= {
2982 static struct omap_mmu_dev_attr mmu_isp_dev_attr
= {
2984 .da_end
= 0xfffff000,
2985 .nr_tlb_entries
= 8,
2988 static struct omap_hwmod omap3xxx_mmu_isp_hwmod
;
2989 static struct omap_hwmod_irq_info omap3xxx_mmu_isp_irqs
[] = {
2994 static struct omap_hwmod_addr_space omap3xxx_mmu_isp_addrs
[] = {
2996 .pa_start
= 0x480bd400,
2997 .pa_end
= 0x480bd47f,
2998 .flags
= ADDR_TYPE_RT
,
3003 /* l4_core -> mmu isp */
3004 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmu_isp
= {
3005 .master
= &omap3xxx_l4_core_hwmod
,
3006 .slave
= &omap3xxx_mmu_isp_hwmod
,
3007 .addr
= omap3xxx_mmu_isp_addrs
,
3008 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3011 static struct omap_hwmod omap3xxx_mmu_isp_hwmod
= {
3013 .class = &omap3xxx_mmu_hwmod_class
,
3014 .mpu_irqs
= omap3xxx_mmu_isp_irqs
,
3015 .main_clk
= "cam_ick",
3016 .dev_attr
= &mmu_isp_dev_attr
,
3017 .flags
= HWMOD_NO_IDLEST
,
3020 #ifdef CONFIG_OMAP_IOMMU_IVA2
3024 static struct omap_mmu_dev_attr mmu_iva_dev_attr
= {
3025 .da_start
= 0x11000000,
3026 .da_end
= 0xfffff000,
3027 .nr_tlb_entries
= 32,
3030 static struct omap_hwmod omap3xxx_mmu_iva_hwmod
;
3031 static struct omap_hwmod_irq_info omap3xxx_mmu_iva_irqs
[] = {
3036 static struct omap_hwmod_rst_info omap3xxx_mmu_iva_resets
[] = {
3037 { .name
= "mmu", .rst_shift
= 1, .st_shift
= 9 },
3040 static struct omap_hwmod_addr_space omap3xxx_mmu_iva_addrs
[] = {
3042 .pa_start
= 0x5d000000,
3043 .pa_end
= 0x5d00007f,
3044 .flags
= ADDR_TYPE_RT
,
3049 /* l3_main -> iva mmu */
3050 static struct omap_hwmod_ocp_if omap3xxx_l3_main__mmu_iva
= {
3051 .master
= &omap3xxx_l3_main_hwmod
,
3052 .slave
= &omap3xxx_mmu_iva_hwmod
,
3053 .addr
= omap3xxx_mmu_iva_addrs
,
3054 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3057 static struct omap_hwmod omap3xxx_mmu_iva_hwmod
= {
3059 .class = &omap3xxx_mmu_hwmod_class
,
3060 .mpu_irqs
= omap3xxx_mmu_iva_irqs
,
3061 .rst_lines
= omap3xxx_mmu_iva_resets
,
3062 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_mmu_iva_resets
),
3063 .main_clk
= "iva2_ck",
3066 .module_offs
= OMAP3430_IVA2_MOD
,
3069 .dev_attr
= &mmu_iva_dev_attr
,
3070 .flags
= HWMOD_NO_IDLEST
,
3075 /* l4_per -> gpio4 */
3076 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
3078 .pa_start
= 0x49054000,
3079 .pa_end
= 0x490541ff,
3080 .flags
= ADDR_TYPE_RT
3085 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
3086 .master
= &omap3xxx_l4_per_hwmod
,
3087 .slave
= &omap3xxx_gpio4_hwmod
,
3088 .addr
= omap3xxx_gpio4_addrs
,
3089 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3092 /* l4_per -> gpio5 */
3093 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
3095 .pa_start
= 0x49056000,
3096 .pa_end
= 0x490561ff,
3097 .flags
= ADDR_TYPE_RT
3102 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
3103 .master
= &omap3xxx_l4_per_hwmod
,
3104 .slave
= &omap3xxx_gpio5_hwmod
,
3105 .addr
= omap3xxx_gpio5_addrs
,
3106 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3109 /* l4_per -> gpio6 */
3110 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
3112 .pa_start
= 0x49058000,
3113 .pa_end
= 0x490581ff,
3114 .flags
= ADDR_TYPE_RT
3119 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
3120 .master
= &omap3xxx_l4_per_hwmod
,
3121 .slave
= &omap3xxx_gpio6_hwmod
,
3122 .addr
= omap3xxx_gpio6_addrs
,
3123 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3126 /* dma_system -> L3 */
3127 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
3128 .master
= &omap3xxx_dma_system_hwmod
,
3129 .slave
= &omap3xxx_l3_main_hwmod
,
3130 .clk
= "core_l3_ick",
3131 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3134 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
3136 .pa_start
= 0x48056000,
3137 .pa_end
= 0x48056fff,
3138 .flags
= ADDR_TYPE_RT
3143 /* l4_cfg -> dma_system */
3144 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
3145 .master
= &omap3xxx_l4_core_hwmod
,
3146 .slave
= &omap3xxx_dma_system_hwmod
,
3147 .clk
= "core_l4_ick",
3148 .addr
= omap3xxx_dma_system_addrs
,
3149 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3152 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
3155 .pa_start
= 0x48074000,
3156 .pa_end
= 0x480740ff,
3157 .flags
= ADDR_TYPE_RT
3162 /* l4_core -> mcbsp1 */
3163 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
3164 .master
= &omap3xxx_l4_core_hwmod
,
3165 .slave
= &omap3xxx_mcbsp1_hwmod
,
3166 .clk
= "mcbsp1_ick",
3167 .addr
= omap3xxx_mcbsp1_addrs
,
3168 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3171 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
3174 .pa_start
= 0x49022000,
3175 .pa_end
= 0x490220ff,
3176 .flags
= ADDR_TYPE_RT
3181 /* l4_per -> mcbsp2 */
3182 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
3183 .master
= &omap3xxx_l4_per_hwmod
,
3184 .slave
= &omap3xxx_mcbsp2_hwmod
,
3185 .clk
= "mcbsp2_ick",
3186 .addr
= omap3xxx_mcbsp2_addrs
,
3187 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3190 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
3193 .pa_start
= 0x49024000,
3194 .pa_end
= 0x490240ff,
3195 .flags
= ADDR_TYPE_RT
3200 /* l4_per -> mcbsp3 */
3201 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
3202 .master
= &omap3xxx_l4_per_hwmod
,
3203 .slave
= &omap3xxx_mcbsp3_hwmod
,
3204 .clk
= "mcbsp3_ick",
3205 .addr
= omap3xxx_mcbsp3_addrs
,
3206 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3209 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
3212 .pa_start
= 0x49026000,
3213 .pa_end
= 0x490260ff,
3214 .flags
= ADDR_TYPE_RT
3219 /* l4_per -> mcbsp4 */
3220 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
3221 .master
= &omap3xxx_l4_per_hwmod
,
3222 .slave
= &omap3xxx_mcbsp4_hwmod
,
3223 .clk
= "mcbsp4_ick",
3224 .addr
= omap3xxx_mcbsp4_addrs
,
3225 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3228 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
3231 .pa_start
= 0x48096000,
3232 .pa_end
= 0x480960ff,
3233 .flags
= ADDR_TYPE_RT
3238 /* l4_core -> mcbsp5 */
3239 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
3240 .master
= &omap3xxx_l4_core_hwmod
,
3241 .slave
= &omap3xxx_mcbsp5_hwmod
,
3242 .clk
= "mcbsp5_ick",
3243 .addr
= omap3xxx_mcbsp5_addrs
,
3244 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3247 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
3250 .pa_start
= 0x49028000,
3251 .pa_end
= 0x490280ff,
3252 .flags
= ADDR_TYPE_RT
3257 /* l4_per -> mcbsp2_sidetone */
3258 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
3259 .master
= &omap3xxx_l4_per_hwmod
,
3260 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
3261 .clk
= "mcbsp2_ick",
3262 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
3263 .user
= OCP_USER_MPU
,
3266 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
3269 .pa_start
= 0x4902A000,
3270 .pa_end
= 0x4902A0ff,
3271 .flags
= ADDR_TYPE_RT
3276 /* l4_per -> mcbsp3_sidetone */
3277 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
3278 .master
= &omap3xxx_l4_per_hwmod
,
3279 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
3280 .clk
= "mcbsp3_ick",
3281 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
3282 .user
= OCP_USER_MPU
,
3285 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs
[] = {
3287 .pa_start
= 0x48094000,
3288 .pa_end
= 0x480941ff,
3289 .flags
= ADDR_TYPE_RT
,
3294 /* l4_core -> mailbox */
3295 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
3296 .master
= &omap3xxx_l4_core_hwmod
,
3297 .slave
= &omap3xxx_mailbox_hwmod
,
3298 .addr
= omap3xxx_mailbox_addrs
,
3299 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3302 /* l4 core -> mcspi1 interface */
3303 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
3304 .master
= &omap3xxx_l4_core_hwmod
,
3305 .slave
= &omap34xx_mcspi1
,
3306 .clk
= "mcspi1_ick",
3307 .addr
= omap2_mcspi1_addr_space
,
3308 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3311 /* l4 core -> mcspi2 interface */
3312 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
3313 .master
= &omap3xxx_l4_core_hwmod
,
3314 .slave
= &omap34xx_mcspi2
,
3315 .clk
= "mcspi2_ick",
3316 .addr
= omap2_mcspi2_addr_space
,
3317 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3320 /* l4 core -> mcspi3 interface */
3321 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
3322 .master
= &omap3xxx_l4_core_hwmod
,
3323 .slave
= &omap34xx_mcspi3
,
3324 .clk
= "mcspi3_ick",
3325 .addr
= omap2430_mcspi3_addr_space
,
3326 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3329 /* l4 core -> mcspi4 interface */
3330 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
3332 .pa_start
= 0x480ba000,
3333 .pa_end
= 0x480ba0ff,
3334 .flags
= ADDR_TYPE_RT
,
3339 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
3340 .master
= &omap3xxx_l4_core_hwmod
,
3341 .slave
= &omap34xx_mcspi4
,
3342 .clk
= "mcspi4_ick",
3343 .addr
= omap34xx_mcspi4_addr_space
,
3344 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3347 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2
= {
3348 .master
= &omap3xxx_usb_host_hs_hwmod
,
3349 .slave
= &omap3xxx_l3_main_hwmod
,
3350 .clk
= "core_l3_ick",
3351 .user
= OCP_USER_MPU
,
3354 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs
[] = {
3357 .pa_start
= 0x48064000,
3358 .pa_end
= 0x480643ff,
3359 .flags
= ADDR_TYPE_RT
3363 .pa_start
= 0x48064400,
3364 .pa_end
= 0x480647ff,
3368 .pa_start
= 0x48064800,
3369 .pa_end
= 0x48064cff,
3374 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs
= {
3375 .master
= &omap3xxx_l4_core_hwmod
,
3376 .slave
= &omap3xxx_usb_host_hs_hwmod
,
3377 .clk
= "usbhost_ick",
3378 .addr
= omap3xxx_usb_host_hs_addrs
,
3379 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3382 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs
[] = {
3385 .pa_start
= 0x48062000,
3386 .pa_end
= 0x48062fff,
3387 .flags
= ADDR_TYPE_RT
3392 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs
= {
3393 .master
= &omap3xxx_l4_core_hwmod
,
3394 .slave
= &omap3xxx_usb_tll_hs_hwmod
,
3395 .clk
= "usbtll_ick",
3396 .addr
= omap3xxx_usb_tll_hs_addrs
,
3397 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3400 /* l4_core -> hdq1w interface */
3401 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w
= {
3402 .master
= &omap3xxx_l4_core_hwmod
,
3403 .slave
= &omap3xxx_hdq1w_hwmod
,
3405 .addr
= omap2_hdq1w_addr_space
,
3406 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3407 .flags
= OMAP_FIREWALL_L4
| OCPIF_SWSUP_IDLE
,
3410 /* l4_wkup -> 32ksync_counter */
3411 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs
[] = {
3413 .pa_start
= 0x48320000,
3414 .pa_end
= 0x4832001f,
3415 .flags
= ADDR_TYPE_RT
3420 static struct omap_hwmod_addr_space omap3xxx_gpmc_addrs
[] = {
3422 .pa_start
= 0x6e000000,
3423 .pa_end
= 0x6e000fff,
3424 .flags
= ADDR_TYPE_RT
3429 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k
= {
3430 .master
= &omap3xxx_l4_wkup_hwmod
,
3431 .slave
= &omap3xxx_counter_32k_hwmod
,
3432 .clk
= "omap_32ksync_ick",
3433 .addr
= omap3xxx_counter_32k_addrs
,
3434 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3437 /* am35xx has Davinci MDIO & EMAC */
3438 static struct omap_hwmod_class am35xx_mdio_class
= {
3439 .name
= "davinci_mdio",
3442 static struct omap_hwmod am35xx_mdio_hwmod
= {
3443 .name
= "davinci_mdio",
3444 .class = &am35xx_mdio_class
,
3445 .flags
= HWMOD_NO_IDLEST
,
3449 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3450 * but this will probably require some additional hwmod core support,
3451 * so is left as a future to-do item.
3453 static struct omap_hwmod_ocp_if am35xx_mdio__l3
= {
3454 .master
= &am35xx_mdio_hwmod
,
3455 .slave
= &omap3xxx_l3_main_hwmod
,
3457 .user
= OCP_USER_MPU
,
3460 static struct omap_hwmod_addr_space am35xx_mdio_addrs
[] = {
3462 .pa_start
= AM35XX_IPSS_MDIO_BASE
,
3463 .pa_end
= AM35XX_IPSS_MDIO_BASE
+ SZ_4K
- 1,
3464 .flags
= ADDR_TYPE_RT
,
3469 /* l4_core -> davinci mdio */
3471 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3472 * but this will probably require some additional hwmod core support,
3473 * so is left as a future to-do item.
3475 static struct omap_hwmod_ocp_if am35xx_l4_core__mdio
= {
3476 .master
= &omap3xxx_l4_core_hwmod
,
3477 .slave
= &am35xx_mdio_hwmod
,
3479 .addr
= am35xx_mdio_addrs
,
3480 .user
= OCP_USER_MPU
,
3483 static struct omap_hwmod_irq_info am35xx_emac_mpu_irqs
[] = {
3484 { .name
= "rxthresh", .irq
= 67 + OMAP_INTC_START
, },
3485 { .name
= "rx_pulse", .irq
= 68 + OMAP_INTC_START
, },
3486 { .name
= "tx_pulse", .irq
= 69 + OMAP_INTC_START
},
3487 { .name
= "misc_pulse", .irq
= 70 + OMAP_INTC_START
},
3491 static struct omap_hwmod_class am35xx_emac_class
= {
3492 .name
= "davinci_emac",
3495 static struct omap_hwmod am35xx_emac_hwmod
= {
3496 .name
= "davinci_emac",
3497 .mpu_irqs
= am35xx_emac_mpu_irqs
,
3498 .class = &am35xx_emac_class
,
3499 .flags
= HWMOD_NO_IDLEST
,
3502 /* l3_core -> davinci emac interface */
3504 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3505 * but this will probably require some additional hwmod core support,
3506 * so is left as a future to-do item.
3508 static struct omap_hwmod_ocp_if am35xx_emac__l3
= {
3509 .master
= &am35xx_emac_hwmod
,
3510 .slave
= &omap3xxx_l3_main_hwmod
,
3512 .user
= OCP_USER_MPU
,
3515 static struct omap_hwmod_addr_space am35xx_emac_addrs
[] = {
3517 .pa_start
= AM35XX_IPSS_EMAC_BASE
,
3518 .pa_end
= AM35XX_IPSS_EMAC_BASE
+ 0x30000 - 1,
3519 .flags
= ADDR_TYPE_RT
,
3524 /* l4_core -> davinci emac */
3526 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3527 * but this will probably require some additional hwmod core support,
3528 * so is left as a future to-do item.
3530 static struct omap_hwmod_ocp_if am35xx_l4_core__emac
= {
3531 .master
= &omap3xxx_l4_core_hwmod
,
3532 .slave
= &am35xx_emac_hwmod
,
3534 .addr
= am35xx_emac_addrs
,
3535 .user
= OCP_USER_MPU
,
3538 static struct omap_hwmod_ocp_if omap3xxx_l3_main__gpmc
= {
3539 .master
= &omap3xxx_l3_main_hwmod
,
3540 .slave
= &omap3xxx_gpmc_hwmod
,
3541 .clk
= "core_l3_ick",
3542 .addr
= omap3xxx_gpmc_addrs
,
3543 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3546 static struct omap_hwmod_ocp_if
*omap3xxx_hwmod_ocp_ifs
[] __initdata
= {
3547 &omap3xxx_l3_main__l4_core
,
3548 &omap3xxx_l3_main__l4_per
,
3549 &omap3xxx_mpu__l3_main
,
3550 &omap3xxx_l3_main__l4_debugss
,
3551 &omap3xxx_l4_core__l4_wkup
,
3552 &omap3xxx_l4_core__mmc3
,
3553 &omap3_l4_core__uart1
,
3554 &omap3_l4_core__uart2
,
3555 &omap3_l4_per__uart3
,
3556 &omap3_l4_core__i2c1
,
3557 &omap3_l4_core__i2c2
,
3558 &omap3_l4_core__i2c3
,
3559 &omap3xxx_l4_wkup__l4_sec
,
3560 &omap3xxx_l4_wkup__timer1
,
3561 &omap3xxx_l4_per__timer2
,
3562 &omap3xxx_l4_per__timer3
,
3563 &omap3xxx_l4_per__timer4
,
3564 &omap3xxx_l4_per__timer5
,
3565 &omap3xxx_l4_per__timer6
,
3566 &omap3xxx_l4_per__timer7
,
3567 &omap3xxx_l4_per__timer8
,
3568 &omap3xxx_l4_per__timer9
,
3569 &omap3xxx_l4_core__timer10
,
3570 &omap3xxx_l4_core__timer11
,
3571 &omap3xxx_l4_wkup__wd_timer2
,
3572 &omap3xxx_l4_wkup__gpio1
,
3573 &omap3xxx_l4_per__gpio2
,
3574 &omap3xxx_l4_per__gpio3
,
3575 &omap3xxx_l4_per__gpio4
,
3576 &omap3xxx_l4_per__gpio5
,
3577 &omap3xxx_l4_per__gpio6
,
3578 &omap3xxx_dma_system__l3
,
3579 &omap3xxx_l4_core__dma_system
,
3580 &omap3xxx_l4_core__mcbsp1
,
3581 &omap3xxx_l4_per__mcbsp2
,
3582 &omap3xxx_l4_per__mcbsp3
,
3583 &omap3xxx_l4_per__mcbsp4
,
3584 &omap3xxx_l4_core__mcbsp5
,
3585 &omap3xxx_l4_per__mcbsp2_sidetone
,
3586 &omap3xxx_l4_per__mcbsp3_sidetone
,
3587 &omap34xx_l4_core__mcspi1
,
3588 &omap34xx_l4_core__mcspi2
,
3589 &omap34xx_l4_core__mcspi3
,
3590 &omap34xx_l4_core__mcspi4
,
3591 &omap3xxx_l4_wkup__counter_32k
,
3592 &omap3xxx_l3_main__gpmc
,
3596 /* GP-only hwmod links */
3597 static struct omap_hwmod_ocp_if
*omap3xxx_gp_hwmod_ocp_ifs
[] __initdata
= {
3598 &omap3xxx_l4_sec__timer12
,
3602 /* 3430ES1-only hwmod links */
3603 static struct omap_hwmod_ocp_if
*omap3430es1_hwmod_ocp_ifs
[] __initdata
= {
3604 &omap3430es1_dss__l3
,
3605 &omap3430es1_l4_core__dss
,
3609 /* 3430ES2+-only hwmod links */
3610 static struct omap_hwmod_ocp_if
*omap3430es2plus_hwmod_ocp_ifs
[] __initdata
= {
3612 &omap3xxx_l4_core__dss
,
3613 &omap3xxx_usbhsotg__l3
,
3614 &omap3xxx_l4_core__usbhsotg
,
3615 &omap3xxx_usb_host_hs__l3_main_2
,
3616 &omap3xxx_l4_core__usb_host_hs
,
3617 &omap3xxx_l4_core__usb_tll_hs
,
3621 /* <= 3430ES3-only hwmod links */
3622 static struct omap_hwmod_ocp_if
*omap3430_pre_es3_hwmod_ocp_ifs
[] __initdata
= {
3623 &omap3xxx_l4_core__pre_es3_mmc1
,
3624 &omap3xxx_l4_core__pre_es3_mmc2
,
3628 /* 3430ES3+-only hwmod links */
3629 static struct omap_hwmod_ocp_if
*omap3430_es3plus_hwmod_ocp_ifs
[] __initdata
= {
3630 &omap3xxx_l4_core__es3plus_mmc1
,
3631 &omap3xxx_l4_core__es3plus_mmc2
,
3635 /* 34xx-only hwmod links (all ES revisions) */
3636 static struct omap_hwmod_ocp_if
*omap34xx_hwmod_ocp_ifs
[] __initdata
= {
3638 &omap34xx_l4_core__sr1
,
3639 &omap34xx_l4_core__sr2
,
3640 &omap3xxx_l4_core__mailbox
,
3641 &omap3xxx_l4_core__hdq1w
,
3642 &omap3xxx_sad2d__l3
,
3643 &omap3xxx_l4_core__mmu_isp
,
3644 #ifdef CONFIG_OMAP_IOMMU_IVA2
3645 &omap3xxx_l3_main__mmu_iva
,
3650 /* 36xx-only hwmod links (all ES revisions) */
3651 static struct omap_hwmod_ocp_if
*omap36xx_hwmod_ocp_ifs
[] __initdata
= {
3653 &omap36xx_l4_per__uart4
,
3655 &omap3xxx_l4_core__dss
,
3656 &omap36xx_l4_core__sr1
,
3657 &omap36xx_l4_core__sr2
,
3658 &omap3xxx_usbhsotg__l3
,
3659 &omap3xxx_l4_core__usbhsotg
,
3660 &omap3xxx_l4_core__mailbox
,
3661 &omap3xxx_usb_host_hs__l3_main_2
,
3662 &omap3xxx_l4_core__usb_host_hs
,
3663 &omap3xxx_l4_core__usb_tll_hs
,
3664 &omap3xxx_l4_core__es3plus_mmc1
,
3665 &omap3xxx_l4_core__es3plus_mmc2
,
3666 &omap3xxx_l4_core__hdq1w
,
3667 &omap3xxx_sad2d__l3
,
3668 &omap3xxx_l4_core__mmu_isp
,
3669 #ifdef CONFIG_OMAP_IOMMU_IVA2
3670 &omap3xxx_l3_main__mmu_iva
,
3675 static struct omap_hwmod_ocp_if
*am35xx_hwmod_ocp_ifs
[] __initdata
= {
3677 &omap3xxx_l4_core__dss
,
3678 &am35xx_usbhsotg__l3
,
3679 &am35xx_l4_core__usbhsotg
,
3680 &am35xx_l4_core__uart4
,
3681 &omap3xxx_usb_host_hs__l3_main_2
,
3682 &omap3xxx_l4_core__usb_host_hs
,
3683 &omap3xxx_l4_core__usb_tll_hs
,
3684 &omap3xxx_l4_core__es3plus_mmc1
,
3685 &omap3xxx_l4_core__es3plus_mmc2
,
3686 &omap3xxx_l4_core__hdq1w
,
3688 &am35xx_l4_core__mdio
,
3690 &am35xx_l4_core__emac
,
3694 static struct omap_hwmod_ocp_if
*omap3xxx_dss_hwmod_ocp_ifs
[] __initdata
= {
3695 &omap3xxx_l4_core__dss_dispc
,
3696 &omap3xxx_l4_core__dss_dsi1
,
3697 &omap3xxx_l4_core__dss_rfbi
,
3698 &omap3xxx_l4_core__dss_venc
,
3702 int __init
omap3xxx_hwmod_init(void)
3705 struct omap_hwmod_ocp_if
**h
= NULL
;
3710 /* Register hwmod links common to all OMAP3 */
3711 r
= omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs
);
3715 /* Register GP-only hwmod links. */
3716 if (omap_type() == OMAP2_DEVICE_TYPE_GP
) {
3717 r
= omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs
);
3725 * Register hwmod links common to individual OMAP3 families, all
3726 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3727 * All possible revisions should be included in this conditional.
3729 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3730 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3731 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3732 h
= omap34xx_hwmod_ocp_ifs
;
3733 } else if (rev
== AM35XX_REV_ES1_0
|| rev
== AM35XX_REV_ES1_1
) {
3734 h
= am35xx_hwmod_ocp_ifs
;
3735 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3736 rev
== OMAP3630_REV_ES1_2
) {
3737 h
= omap36xx_hwmod_ocp_ifs
;
3739 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3743 r
= omap_hwmod_register_links(h
);
3748 * Register hwmod links specific to certain ES levels of a
3749 * particular family of silicon (e.g., 34xx ES1.0)
3752 if (rev
== OMAP3430_REV_ES1_0
) {
3753 h
= omap3430es1_hwmod_ocp_ifs
;
3754 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3755 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3756 rev
== OMAP3430_REV_ES3_1_2
) {
3757 h
= omap3430es2plus_hwmod_ocp_ifs
;
3761 r
= omap_hwmod_register_links(h
);
3767 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3768 rev
== OMAP3430_REV_ES2_1
) {
3769 h
= omap3430_pre_es3_hwmod_ocp_ifs
;
3770 } else if (rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3771 rev
== OMAP3430_REV_ES3_1_2
) {
3772 h
= omap3430_es3plus_hwmod_ocp_ifs
;
3776 r
= omap_hwmod_register_links(h
);
3781 * DSS code presumes that dss_core hwmod is handled first,
3782 * _before_ any other DSS related hwmods so register common
3783 * DSS hwmod links last to ensure that dss_core is already
3784 * registered. Otherwise some change things may happen, for
3785 * ex. if dispc is handled before dss_core and DSS is enabled
3786 * in bootloader DISPC will be reset with outputs enabled
3787 * which sometimes leads to unrecoverable L3 error. XXX The
3788 * long-term fix to this is to ensure hwmods are set up in
3789 * dependency order in the hwmod core code.
3791 r
= omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs
);