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 <plat/omap_hwmod.h>
18 #include <mach/irqs.h>
21 #include <plat/serial.h>
22 #include <plat/l3_3xxx.h>
23 #include <plat/l4_3xxx.h>
25 #include <plat/gpio.h>
27 #include <plat/mcbsp.h>
28 #include <plat/mcspi.h>
29 #include <plat/dmtimer.h>
31 #include "omap_hwmod_common_data.h"
33 #include "smartreflex.h"
34 #include "prm-regbits-34xx.h"
35 #include "cm-regbits-34xx.h"
37 #include <mach/am35xx.h>
40 * OMAP3xxx hardware module integration data
42 * All of the data in this section should be autogeneratable from the
43 * TI hardware database or other technical documentation. Data that
44 * is driver-specific or driver-kernel integration-specific belongs
53 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs
[] = {
54 { .irq
= INT_34XX_L3_DBG_IRQ
},
55 { .irq
= INT_34XX_L3_APP_IRQ
},
59 static struct omap_hwmod omap3xxx_l3_main_hwmod
= {
61 .class = &l3_hwmod_class
,
62 .mpu_irqs
= omap3xxx_l3_main_irqs
,
63 .flags
= HWMOD_NO_IDLEST
,
67 static struct omap_hwmod omap3xxx_l4_core_hwmod
= {
69 .class = &l4_hwmod_class
,
70 .flags
= HWMOD_NO_IDLEST
,
74 static struct omap_hwmod omap3xxx_l4_per_hwmod
= {
76 .class = &l4_hwmod_class
,
77 .flags
= HWMOD_NO_IDLEST
,
81 static struct omap_hwmod omap3xxx_l4_wkup_hwmod
= {
83 .class = &l4_hwmod_class
,
84 .flags
= HWMOD_NO_IDLEST
,
88 static struct omap_hwmod omap3xxx_l4_sec_hwmod
= {
90 .class = &l4_hwmod_class
,
91 .flags
= HWMOD_NO_IDLEST
,
95 static struct omap_hwmod omap3xxx_mpu_hwmod
= {
97 .class = &mpu_hwmod_class
,
98 .main_clk
= "arm_fck",
102 static struct omap_hwmod_rst_info omap3xxx_iva_resets
[] = {
103 { .name
= "logic", .rst_shift
= 0 },
104 { .name
= "seq0", .rst_shift
= 1 },
105 { .name
= "seq1", .rst_shift
= 2 },
108 static struct omap_hwmod omap3xxx_iva_hwmod
= {
110 .class = &iva_hwmod_class
,
111 .clkdm_name
= "iva2_clkdm",
112 .rst_lines
= omap3xxx_iva_resets
,
113 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_iva_resets
),
114 .main_clk
= "iva2_ck",
118 static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc
= {
122 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
123 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
124 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
),
125 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
126 .sysc_fields
= &omap_hwmod_sysc_type1
,
129 static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class
= {
131 .sysc
= &omap3xxx_timer_1ms_sysc
,
132 .rev
= OMAP_TIMER_IP_VERSION_1
,
135 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc
= {
139 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
140 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
141 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
142 .sysc_fields
= &omap_hwmod_sysc_type1
,
145 static struct omap_hwmod_class omap3xxx_timer_hwmod_class
= {
147 .sysc
= &omap3xxx_timer_sysc
,
148 .rev
= OMAP_TIMER_IP_VERSION_1
,
151 /* secure timers dev attribute */
152 static struct omap_timer_capability_dev_attr capability_secure_dev_attr
= {
153 .timer_capability
= OMAP_TIMER_SECURE
,
156 /* always-on timers dev attribute */
157 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
158 .timer_capability
= OMAP_TIMER_ALWON
,
161 /* pwm timers dev attribute */
162 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
163 .timer_capability
= OMAP_TIMER_HAS_PWM
,
167 static struct omap_hwmod omap3xxx_timer1_hwmod
= {
169 .mpu_irqs
= omap2_timer1_mpu_irqs
,
170 .main_clk
= "gpt1_fck",
174 .module_bit
= OMAP3430_EN_GPT1_SHIFT
,
175 .module_offs
= WKUP_MOD
,
177 .idlest_idle_bit
= OMAP3430_ST_GPT1_SHIFT
,
180 .dev_attr
= &capability_alwon_dev_attr
,
181 .class = &omap3xxx_timer_1ms_hwmod_class
,
185 static struct omap_hwmod omap3xxx_timer2_hwmod
= {
187 .mpu_irqs
= omap2_timer2_mpu_irqs
,
188 .main_clk
= "gpt2_fck",
192 .module_bit
= OMAP3430_EN_GPT2_SHIFT
,
193 .module_offs
= OMAP3430_PER_MOD
,
195 .idlest_idle_bit
= OMAP3430_ST_GPT2_SHIFT
,
198 .dev_attr
= &capability_alwon_dev_attr
,
199 .class = &omap3xxx_timer_1ms_hwmod_class
,
203 static struct omap_hwmod omap3xxx_timer3_hwmod
= {
205 .mpu_irqs
= omap2_timer3_mpu_irqs
,
206 .main_clk
= "gpt3_fck",
210 .module_bit
= OMAP3430_EN_GPT3_SHIFT
,
211 .module_offs
= OMAP3430_PER_MOD
,
213 .idlest_idle_bit
= OMAP3430_ST_GPT3_SHIFT
,
216 .dev_attr
= &capability_alwon_dev_attr
,
217 .class = &omap3xxx_timer_hwmod_class
,
221 static struct omap_hwmod omap3xxx_timer4_hwmod
= {
223 .mpu_irqs
= omap2_timer4_mpu_irqs
,
224 .main_clk
= "gpt4_fck",
228 .module_bit
= OMAP3430_EN_GPT4_SHIFT
,
229 .module_offs
= OMAP3430_PER_MOD
,
231 .idlest_idle_bit
= OMAP3430_ST_GPT4_SHIFT
,
234 .dev_attr
= &capability_alwon_dev_attr
,
235 .class = &omap3xxx_timer_hwmod_class
,
239 static struct omap_hwmod omap3xxx_timer5_hwmod
= {
241 .mpu_irqs
= omap2_timer5_mpu_irqs
,
242 .main_clk
= "gpt5_fck",
246 .module_bit
= OMAP3430_EN_GPT5_SHIFT
,
247 .module_offs
= OMAP3430_PER_MOD
,
249 .idlest_idle_bit
= OMAP3430_ST_GPT5_SHIFT
,
252 .dev_attr
= &capability_alwon_dev_attr
,
253 .class = &omap3xxx_timer_hwmod_class
,
257 static struct omap_hwmod omap3xxx_timer6_hwmod
= {
259 .mpu_irqs
= omap2_timer6_mpu_irqs
,
260 .main_clk
= "gpt6_fck",
264 .module_bit
= OMAP3430_EN_GPT6_SHIFT
,
265 .module_offs
= OMAP3430_PER_MOD
,
267 .idlest_idle_bit
= OMAP3430_ST_GPT6_SHIFT
,
270 .dev_attr
= &capability_alwon_dev_attr
,
271 .class = &omap3xxx_timer_hwmod_class
,
275 static struct omap_hwmod omap3xxx_timer7_hwmod
= {
277 .mpu_irqs
= omap2_timer7_mpu_irqs
,
278 .main_clk
= "gpt7_fck",
282 .module_bit
= OMAP3430_EN_GPT7_SHIFT
,
283 .module_offs
= OMAP3430_PER_MOD
,
285 .idlest_idle_bit
= OMAP3430_ST_GPT7_SHIFT
,
288 .dev_attr
= &capability_alwon_dev_attr
,
289 .class = &omap3xxx_timer_hwmod_class
,
293 static struct omap_hwmod omap3xxx_timer8_hwmod
= {
295 .mpu_irqs
= omap2_timer8_mpu_irqs
,
296 .main_clk
= "gpt8_fck",
300 .module_bit
= OMAP3430_EN_GPT8_SHIFT
,
301 .module_offs
= OMAP3430_PER_MOD
,
303 .idlest_idle_bit
= OMAP3430_ST_GPT8_SHIFT
,
306 .dev_attr
= &capability_pwm_dev_attr
,
307 .class = &omap3xxx_timer_hwmod_class
,
311 static struct omap_hwmod omap3xxx_timer9_hwmod
= {
313 .mpu_irqs
= omap2_timer9_mpu_irqs
,
314 .main_clk
= "gpt9_fck",
318 .module_bit
= OMAP3430_EN_GPT9_SHIFT
,
319 .module_offs
= OMAP3430_PER_MOD
,
321 .idlest_idle_bit
= OMAP3430_ST_GPT9_SHIFT
,
324 .dev_attr
= &capability_pwm_dev_attr
,
325 .class = &omap3xxx_timer_hwmod_class
,
329 static struct omap_hwmod omap3xxx_timer10_hwmod
= {
331 .mpu_irqs
= omap2_timer10_mpu_irqs
,
332 .main_clk
= "gpt10_fck",
336 .module_bit
= OMAP3430_EN_GPT10_SHIFT
,
337 .module_offs
= CORE_MOD
,
339 .idlest_idle_bit
= OMAP3430_ST_GPT10_SHIFT
,
342 .dev_attr
= &capability_pwm_dev_attr
,
343 .class = &omap3xxx_timer_1ms_hwmod_class
,
347 static struct omap_hwmod omap3xxx_timer11_hwmod
= {
349 .mpu_irqs
= omap2_timer11_mpu_irqs
,
350 .main_clk
= "gpt11_fck",
354 .module_bit
= OMAP3430_EN_GPT11_SHIFT
,
355 .module_offs
= CORE_MOD
,
357 .idlest_idle_bit
= OMAP3430_ST_GPT11_SHIFT
,
360 .dev_attr
= &capability_pwm_dev_attr
,
361 .class = &omap3xxx_timer_hwmod_class
,
365 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs
[] = {
370 static struct omap_hwmod omap3xxx_timer12_hwmod
= {
372 .mpu_irqs
= omap3xxx_timer12_mpu_irqs
,
373 .main_clk
= "gpt12_fck",
377 .module_bit
= OMAP3430_EN_GPT12_SHIFT
,
378 .module_offs
= WKUP_MOD
,
380 .idlest_idle_bit
= OMAP3430_ST_GPT12_SHIFT
,
383 .dev_attr
= &capability_secure_dev_attr
,
384 .class = &omap3xxx_timer_hwmod_class
,
389 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
393 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc
= {
397 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_EMUFREE
|
398 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
399 SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
400 SYSS_HAS_RESET_STATUS
),
401 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
402 .sysc_fields
= &omap_hwmod_sysc_type1
,
406 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
410 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
411 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
412 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
413 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
414 .clockact
= CLOCKACT_TEST_ICLK
,
415 .sysc_fields
= &omap_hwmod_sysc_type1
,
418 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class
= {
420 .sysc
= &omap3xxx_wd_timer_sysc
,
421 .pre_shutdown
= &omap2_wd_timer_disable
424 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
426 .class = &omap3xxx_wd_timer_hwmod_class
,
427 .main_clk
= "wdt2_fck",
431 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
432 .module_offs
= WKUP_MOD
,
434 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
438 * XXX: Use software supervised mode, HW supervised smartidle seems to
439 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
441 .flags
= HWMOD_SWSUP_SIDLE
,
445 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
447 .mpu_irqs
= omap2_uart1_mpu_irqs
,
448 .sdma_reqs
= omap2_uart1_sdma_reqs
,
449 .main_clk
= "uart1_fck",
452 .module_offs
= CORE_MOD
,
454 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
456 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
459 .class = &omap2_uart_class
,
463 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
465 .mpu_irqs
= omap2_uart2_mpu_irqs
,
466 .sdma_reqs
= omap2_uart2_sdma_reqs
,
467 .main_clk
= "uart2_fck",
470 .module_offs
= CORE_MOD
,
472 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
474 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
477 .class = &omap2_uart_class
,
481 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
483 .mpu_irqs
= omap2_uart3_mpu_irqs
,
484 .sdma_reqs
= omap2_uart3_sdma_reqs
,
485 .main_clk
= "uart3_fck",
488 .module_offs
= OMAP3430_PER_MOD
,
490 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
492 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
495 .class = &omap2_uart_class
,
499 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
500 { .irq
= INT_36XX_UART4_IRQ
, },
504 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
505 { .name
= "rx", .dma_req
= OMAP36XX_DMA_UART4_RX
, },
506 { .name
= "tx", .dma_req
= OMAP36XX_DMA_UART4_TX
, },
510 static struct omap_hwmod omap36xx_uart4_hwmod
= {
512 .mpu_irqs
= uart4_mpu_irqs
,
513 .sdma_reqs
= uart4_sdma_reqs
,
514 .main_clk
= "uart4_fck",
517 .module_offs
= OMAP3430_PER_MOD
,
519 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
521 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
524 .class = &omap2_uart_class
,
527 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs
[] = {
528 { .irq
= INT_35XX_UART4_IRQ
, },
531 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs
[] = {
532 { .name
= "rx", .dma_req
= AM35XX_DMA_UART4_RX
, },
533 { .name
= "tx", .dma_req
= AM35XX_DMA_UART4_TX
, },
536 static struct omap_hwmod am35xx_uart4_hwmod
= {
538 .mpu_irqs
= am35xx_uart4_mpu_irqs
,
539 .sdma_reqs
= am35xx_uart4_sdma_reqs
,
540 .main_clk
= "uart4_fck",
543 .module_offs
= CORE_MOD
,
545 .module_bit
= OMAP3430_EN_UART4_SHIFT
,
547 .idlest_idle_bit
= OMAP3430_EN_UART4_SHIFT
,
550 .class = &omap2_uart_class
,
553 static struct omap_hwmod_class i2c_class
= {
556 .rev
= OMAP_I2C_IP_VERSION_1
,
557 .reset
= &omap_i2c_reset
,
560 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
561 { .name
= "dispc", .dma_req
= 5 },
562 { .name
= "dsi1", .dma_req
= 74 },
567 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
569 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
570 * driver does not use these clocks.
572 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
573 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
574 /* required only on OMAP3430 */
575 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
578 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
580 .class = &omap2_dss_hwmod_class
,
581 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
582 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
586 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
587 .module_offs
= OMAP3430_DSS_MOD
,
589 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
592 .opt_clks
= dss_opt_clks
,
593 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
594 .flags
= HWMOD_NO_IDLEST
| HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
597 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
599 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
600 .class = &omap2_dss_hwmod_class
,
601 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
602 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
606 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
607 .module_offs
= OMAP3430_DSS_MOD
,
609 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
610 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
613 .opt_clks
= dss_opt_clks
,
614 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
622 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc
= {
626 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
627 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
629 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
630 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
631 .sysc_fields
= &omap_hwmod_sysc_type1
,
634 static struct omap_hwmod_class omap3_dispc_hwmod_class
= {
636 .sysc
= &omap3_dispc_sysc
,
639 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
641 .class = &omap3_dispc_hwmod_class
,
642 .mpu_irqs
= omap2_dispc_irqs
,
643 .main_clk
= "dss1_alwon_fck",
647 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
648 .module_offs
= OMAP3430_DSS_MOD
,
651 .flags
= HWMOD_NO_IDLEST
,
652 .dev_attr
= &omap2_3_dss_dispc_dev_attr
657 * display serial interface controller
660 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
664 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
670 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
671 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
674 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
676 .class = &omap3xxx_dsi_hwmod_class
,
677 .mpu_irqs
= omap3xxx_dsi1_irqs
,
678 .main_clk
= "dss1_alwon_fck",
682 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
683 .module_offs
= OMAP3430_DSS_MOD
,
686 .opt_clks
= dss_dsi1_opt_clks
,
687 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
688 .flags
= HWMOD_NO_IDLEST
,
691 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
692 { .role
= "ick", .clk
= "dss_ick" },
695 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
697 .class = &omap2_rfbi_hwmod_class
,
698 .main_clk
= "dss1_alwon_fck",
702 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
703 .module_offs
= OMAP3430_DSS_MOD
,
706 .opt_clks
= dss_rfbi_opt_clks
,
707 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
708 .flags
= HWMOD_NO_IDLEST
,
711 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
712 /* required only on OMAP3430 */
713 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
716 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
718 .class = &omap2_venc_hwmod_class
,
719 .main_clk
= "dss_tv_fck",
723 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
724 .module_offs
= OMAP3430_DSS_MOD
,
727 .opt_clks
= dss_venc_opt_clks
,
728 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
729 .flags
= HWMOD_NO_IDLEST
,
733 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
734 .fifo_depth
= 8, /* bytes */
735 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
736 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
737 OMAP_I2C_FLAG_BUS_SHIFT_2
,
740 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
742 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
743 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
744 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
745 .main_clk
= "i2c1_fck",
748 .module_offs
= CORE_MOD
,
750 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
752 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
756 .dev_attr
= &i2c1_dev_attr
,
760 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
761 .fifo_depth
= 8, /* bytes */
762 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
763 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
764 OMAP_I2C_FLAG_BUS_SHIFT_2
,
767 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
769 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
770 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
771 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
772 .main_clk
= "i2c2_fck",
775 .module_offs
= CORE_MOD
,
777 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
779 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
783 .dev_attr
= &i2c2_dev_attr
,
787 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
788 .fifo_depth
= 64, /* bytes */
789 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
790 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
791 OMAP_I2C_FLAG_BUS_SHIFT_2
,
794 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
795 { .irq
= INT_34XX_I2C3_IRQ
, },
799 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
800 { .name
= "tx", .dma_req
= OMAP34XX_DMA_I2C3_TX
},
801 { .name
= "rx", .dma_req
= OMAP34XX_DMA_I2C3_RX
},
805 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
807 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
808 .mpu_irqs
= i2c3_mpu_irqs
,
809 .sdma_reqs
= i2c3_sdma_reqs
,
810 .main_clk
= "i2c3_fck",
813 .module_offs
= CORE_MOD
,
815 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
817 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
821 .dev_attr
= &i2c3_dev_attr
,
826 * general purpose io module
829 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
833 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
834 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
835 SYSS_HAS_RESET_STATUS
),
836 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
837 .sysc_fields
= &omap_hwmod_sysc_type1
,
840 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
842 .sysc
= &omap3xxx_gpio_sysc
,
847 static struct omap_gpio_dev_attr gpio_dev_attr
= {
853 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
854 { .role
= "dbclk", .clk
= "gpio1_dbck", },
857 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
859 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
860 .mpu_irqs
= omap2_gpio1_irqs
,
861 .main_clk
= "gpio1_ick",
862 .opt_clks
= gpio1_opt_clks
,
863 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
867 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
868 .module_offs
= WKUP_MOD
,
870 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
873 .class = &omap3xxx_gpio_hwmod_class
,
874 .dev_attr
= &gpio_dev_attr
,
878 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
879 { .role
= "dbclk", .clk
= "gpio2_dbck", },
882 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
884 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
885 .mpu_irqs
= omap2_gpio2_irqs
,
886 .main_clk
= "gpio2_ick",
887 .opt_clks
= gpio2_opt_clks
,
888 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
892 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
893 .module_offs
= OMAP3430_PER_MOD
,
895 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
898 .class = &omap3xxx_gpio_hwmod_class
,
899 .dev_attr
= &gpio_dev_attr
,
903 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
904 { .role
= "dbclk", .clk
= "gpio3_dbck", },
907 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
909 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
910 .mpu_irqs
= omap2_gpio3_irqs
,
911 .main_clk
= "gpio3_ick",
912 .opt_clks
= gpio3_opt_clks
,
913 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
917 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
918 .module_offs
= OMAP3430_PER_MOD
,
920 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
923 .class = &omap3xxx_gpio_hwmod_class
,
924 .dev_attr
= &gpio_dev_attr
,
928 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
929 { .role
= "dbclk", .clk
= "gpio4_dbck", },
932 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
934 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
935 .mpu_irqs
= omap2_gpio4_irqs
,
936 .main_clk
= "gpio4_ick",
937 .opt_clks
= gpio4_opt_clks
,
938 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
942 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
943 .module_offs
= OMAP3430_PER_MOD
,
945 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
948 .class = &omap3xxx_gpio_hwmod_class
,
949 .dev_attr
= &gpio_dev_attr
,
953 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
954 { .irq
= 33 }, /* INT_34XX_GPIO_BANK5 */
958 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
959 { .role
= "dbclk", .clk
= "gpio5_dbck", },
962 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
964 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
965 .mpu_irqs
= omap3xxx_gpio5_irqs
,
966 .main_clk
= "gpio5_ick",
967 .opt_clks
= gpio5_opt_clks
,
968 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
972 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
973 .module_offs
= OMAP3430_PER_MOD
,
975 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
978 .class = &omap3xxx_gpio_hwmod_class
,
979 .dev_attr
= &gpio_dev_attr
,
983 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
984 { .irq
= 34 }, /* INT_34XX_GPIO_BANK6 */
988 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
989 { .role
= "dbclk", .clk
= "gpio6_dbck", },
992 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
994 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
995 .mpu_irqs
= omap3xxx_gpio6_irqs
,
996 .main_clk
= "gpio6_ick",
997 .opt_clks
= gpio6_opt_clks
,
998 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1002 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
1003 .module_offs
= OMAP3430_PER_MOD
,
1005 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
1008 .class = &omap3xxx_gpio_hwmod_class
,
1009 .dev_attr
= &gpio_dev_attr
,
1012 /* dma attributes */
1013 static struct omap_dma_dev_attr dma_dev_attr
= {
1014 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1015 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
1019 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
1021 .sysc_offs
= 0x002c,
1022 .syss_offs
= 0x0028,
1023 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1024 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1025 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
1026 SYSS_HAS_RESET_STATUS
),
1027 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1028 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1029 .sysc_fields
= &omap_hwmod_sysc_type1
,
1032 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
1034 .sysc
= &omap3xxx_dma_sysc
,
1038 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
1040 .class = &omap3xxx_dma_hwmod_class
,
1041 .mpu_irqs
= omap2_dma_system_irqs
,
1042 .main_clk
= "core_l3_ick",
1045 .module_offs
= CORE_MOD
,
1047 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
1049 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
1052 .dev_attr
= &dma_dev_attr
,
1053 .flags
= HWMOD_NO_IDLEST
,
1058 * multi channel buffered serial port controller
1061 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
1062 .sysc_offs
= 0x008c,
1063 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1064 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1065 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1066 .sysc_fields
= &omap_hwmod_sysc_type1
,
1070 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
1072 .sysc
= &omap3xxx_mcbsp_sysc
,
1073 .rev
= MCBSP_CONFIG_TYPE3
,
1077 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
1078 { .name
= "irq", .irq
= 16 },
1079 { .name
= "tx", .irq
= 59 },
1080 { .name
= "rx", .irq
= 60 },
1084 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
1086 .class = &omap3xxx_mcbsp_hwmod_class
,
1087 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
1088 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
1089 .main_clk
= "mcbsp1_fck",
1093 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
1094 .module_offs
= CORE_MOD
,
1096 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
1102 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
1103 { .name
= "irq", .irq
= 17 },
1104 { .name
= "tx", .irq
= 62 },
1105 { .name
= "rx", .irq
= 63 },
1109 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
1110 .sidetone
= "mcbsp2_sidetone",
1113 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
1115 .class = &omap3xxx_mcbsp_hwmod_class
,
1116 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
1117 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
1118 .main_clk
= "mcbsp2_fck",
1122 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1123 .module_offs
= OMAP3430_PER_MOD
,
1125 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1128 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
1132 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
1133 { .name
= "irq", .irq
= 22 },
1134 { .name
= "tx", .irq
= 89 },
1135 { .name
= "rx", .irq
= 90 },
1139 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
1140 .sidetone
= "mcbsp3_sidetone",
1143 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
1145 .class = &omap3xxx_mcbsp_hwmod_class
,
1146 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
1147 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
1148 .main_clk
= "mcbsp3_fck",
1152 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1153 .module_offs
= OMAP3430_PER_MOD
,
1155 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1158 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
1162 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
1163 { .name
= "irq", .irq
= 23 },
1164 { .name
= "tx", .irq
= 54 },
1165 { .name
= "rx", .irq
= 55 },
1169 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
1170 { .name
= "rx", .dma_req
= 20 },
1171 { .name
= "tx", .dma_req
= 19 },
1175 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
1177 .class = &omap3xxx_mcbsp_hwmod_class
,
1178 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
1179 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
1180 .main_clk
= "mcbsp4_fck",
1184 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
1185 .module_offs
= OMAP3430_PER_MOD
,
1187 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
1193 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
1194 { .name
= "irq", .irq
= 27 },
1195 { .name
= "tx", .irq
= 81 },
1196 { .name
= "rx", .irq
= 82 },
1200 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
1201 { .name
= "rx", .dma_req
= 22 },
1202 { .name
= "tx", .dma_req
= 21 },
1206 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
1208 .class = &omap3xxx_mcbsp_hwmod_class
,
1209 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
1210 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
1211 .main_clk
= "mcbsp5_fck",
1215 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
1216 .module_offs
= CORE_MOD
,
1218 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
1223 /* 'mcbsp sidetone' class */
1224 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
1225 .sysc_offs
= 0x0010,
1226 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
1227 .sysc_fields
= &omap_hwmod_sysc_type1
,
1230 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
1231 .name
= "mcbsp_sidetone",
1232 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
1235 /* mcbsp2_sidetone */
1236 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
1237 { .name
= "irq", .irq
= 4 },
1241 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
1242 .name
= "mcbsp2_sidetone",
1243 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1244 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
1245 .main_clk
= "mcbsp2_fck",
1249 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1250 .module_offs
= OMAP3430_PER_MOD
,
1252 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1257 /* mcbsp3_sidetone */
1258 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
1259 { .name
= "irq", .irq
= 5 },
1263 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
1264 .name
= "mcbsp3_sidetone",
1265 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1266 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
1267 .main_clk
= "mcbsp3_fck",
1271 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1272 .module_offs
= OMAP3430_PER_MOD
,
1274 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1280 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
1284 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
1286 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
1287 .clockact
= CLOCKACT_TEST_ICLK
,
1288 .sysc_fields
= &omap34xx_sr_sysc_fields
,
1291 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
1292 .name
= "smartreflex",
1293 .sysc
= &omap34xx_sr_sysc
,
1297 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
1302 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
1304 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1305 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1307 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1310 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
1311 .name
= "smartreflex",
1312 .sysc
= &omap36xx_sr_sysc
,
1317 static struct omap_smartreflex_dev_attr sr1_dev_attr
= {
1318 .sensor_voltdm_name
= "mpu_iva",
1321 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs
[] = {
1326 static struct omap_hwmod omap34xx_sr1_hwmod
= {
1328 .class = &omap34xx_smartreflex_hwmod_class
,
1329 .main_clk
= "sr1_fck",
1333 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1334 .module_offs
= WKUP_MOD
,
1336 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1339 .dev_attr
= &sr1_dev_attr
,
1340 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1341 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1344 static struct omap_hwmod omap36xx_sr1_hwmod
= {
1346 .class = &omap36xx_smartreflex_hwmod_class
,
1347 .main_clk
= "sr1_fck",
1351 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1352 .module_offs
= WKUP_MOD
,
1354 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1357 .dev_attr
= &sr1_dev_attr
,
1358 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1362 static struct omap_smartreflex_dev_attr sr2_dev_attr
= {
1363 .sensor_voltdm_name
= "core",
1366 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs
[] = {
1371 static struct omap_hwmod omap34xx_sr2_hwmod
= {
1373 .class = &omap34xx_smartreflex_hwmod_class
,
1374 .main_clk
= "sr2_fck",
1378 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1379 .module_offs
= WKUP_MOD
,
1381 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1384 .dev_attr
= &sr2_dev_attr
,
1385 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1386 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1389 static struct omap_hwmod omap36xx_sr2_hwmod
= {
1391 .class = &omap36xx_smartreflex_hwmod_class
,
1392 .main_clk
= "sr2_fck",
1396 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1397 .module_offs
= WKUP_MOD
,
1399 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1402 .dev_attr
= &sr2_dev_attr
,
1403 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1408 * mailbox module allowing communication between the on-chip processors
1409 * using a queued mailbox-interrupt mechanism.
1412 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
1416 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1417 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1418 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1419 .sysc_fields
= &omap_hwmod_sysc_type1
,
1422 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
1424 .sysc
= &omap3xxx_mailbox_sysc
,
1427 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs
[] = {
1432 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
1434 .class = &omap3xxx_mailbox_hwmod_class
,
1435 .mpu_irqs
= omap3xxx_mailbox_irqs
,
1436 .main_clk
= "mailboxes_ick",
1440 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
1441 .module_offs
= CORE_MOD
,
1443 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
1450 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1454 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
1456 .sysc_offs
= 0x0010,
1457 .syss_offs
= 0x0014,
1458 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1459 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1460 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1461 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1462 .sysc_fields
= &omap_hwmod_sysc_type1
,
1465 static struct omap_hwmod_class omap34xx_mcspi_class
= {
1467 .sysc
= &omap34xx_mcspi_sysc
,
1468 .rev
= OMAP3_MCSPI_REV
,
1472 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1473 .num_chipselect
= 4,
1476 static struct omap_hwmod omap34xx_mcspi1
= {
1478 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
1479 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
1480 .main_clk
= "mcspi1_fck",
1483 .module_offs
= CORE_MOD
,
1485 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
1487 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
1490 .class = &omap34xx_mcspi_class
,
1491 .dev_attr
= &omap_mcspi1_dev_attr
,
1495 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
1496 .num_chipselect
= 2,
1499 static struct omap_hwmod omap34xx_mcspi2
= {
1501 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
1502 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
1503 .main_clk
= "mcspi2_fck",
1506 .module_offs
= CORE_MOD
,
1508 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
1510 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
1513 .class = &omap34xx_mcspi_class
,
1514 .dev_attr
= &omap_mcspi2_dev_attr
,
1518 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
1519 { .name
= "irq", .irq
= 91 }, /* 91 */
1523 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
1524 { .name
= "tx0", .dma_req
= 15 },
1525 { .name
= "rx0", .dma_req
= 16 },
1526 { .name
= "tx1", .dma_req
= 23 },
1527 { .name
= "rx1", .dma_req
= 24 },
1531 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
1532 .num_chipselect
= 2,
1535 static struct omap_hwmod omap34xx_mcspi3
= {
1537 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
1538 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
1539 .main_clk
= "mcspi3_fck",
1542 .module_offs
= CORE_MOD
,
1544 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
1546 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
1549 .class = &omap34xx_mcspi_class
,
1550 .dev_attr
= &omap_mcspi3_dev_attr
,
1554 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
1555 { .name
= "irq", .irq
= INT_34XX_SPI4_IRQ
}, /* 48 */
1559 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
1560 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
1561 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
1565 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
1566 .num_chipselect
= 1,
1569 static struct omap_hwmod omap34xx_mcspi4
= {
1571 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
1572 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
1573 .main_clk
= "mcspi4_fck",
1576 .module_offs
= CORE_MOD
,
1578 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
1580 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
1583 .class = &omap34xx_mcspi_class
,
1584 .dev_attr
= &omap_mcspi4_dev_attr
,
1588 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
1590 .sysc_offs
= 0x0404,
1591 .syss_offs
= 0x0408,
1592 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1593 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1595 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1596 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1597 .sysc_fields
= &omap_hwmod_sysc_type1
,
1600 static struct omap_hwmod_class usbotg_class
= {
1602 .sysc
= &omap3xxx_usbhsotg_sysc
,
1606 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
1608 { .name
= "mc", .irq
= 92 },
1609 { .name
= "dma", .irq
= 93 },
1613 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
1614 .name
= "usb_otg_hs",
1615 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
1616 .main_clk
= "hsotgusb_ick",
1620 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
1621 .module_offs
= CORE_MOD
,
1623 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
1624 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1627 .class = &usbotg_class
,
1630 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1631 * broken when autoidle is enabled
1632 * workaround is to disable the autoidle bit at module level.
1634 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
1635 | HWMOD_SWSUP_MSTANDBY
,
1639 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
1641 { .name
= "mc", .irq
= 71 },
1645 static struct omap_hwmod_class am35xx_usbotg_class
= {
1646 .name
= "am35xx_usbotg",
1650 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
1651 .name
= "am35x_otg_hs",
1652 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
1658 .class = &am35xx_usbotg_class
,
1661 /* MMC/SD/SDIO common */
1662 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
1666 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1667 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1668 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1669 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1670 .sysc_fields
= &omap_hwmod_sysc_type1
,
1673 static struct omap_hwmod_class omap34xx_mmc_class
= {
1675 .sysc
= &omap34xx_mmc_sysc
,
1680 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
1685 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
1686 { .name
= "tx", .dma_req
= 61, },
1687 { .name
= "rx", .dma_req
= 62, },
1691 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
1692 { .role
= "dbck", .clk
= "omap_32k_fck", },
1695 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
1696 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1699 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1700 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr
= {
1701 .flags
= (OMAP_HSMMC_SUPPORTS_DUAL_VOLT
|
1702 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
),
1705 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod
= {
1707 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1708 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1709 .opt_clks
= omap34xx_mmc1_opt_clks
,
1710 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1711 .main_clk
= "mmchs1_fck",
1714 .module_offs
= CORE_MOD
,
1716 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1718 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1721 .dev_attr
= &mmc1_pre_es3_dev_attr
,
1722 .class = &omap34xx_mmc_class
,
1725 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod
= {
1727 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1728 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1729 .opt_clks
= omap34xx_mmc1_opt_clks
,
1730 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1731 .main_clk
= "mmchs1_fck",
1734 .module_offs
= CORE_MOD
,
1736 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1738 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1741 .dev_attr
= &mmc1_dev_attr
,
1742 .class = &omap34xx_mmc_class
,
1747 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
1748 { .irq
= INT_24XX_MMC2_IRQ
, },
1752 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
1753 { .name
= "tx", .dma_req
= 47, },
1754 { .name
= "rx", .dma_req
= 48, },
1758 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
1759 { .role
= "dbck", .clk
= "omap_32k_fck", },
1762 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1763 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr
= {
1764 .flags
= OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
,
1767 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod
= {
1769 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1770 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1771 .opt_clks
= omap34xx_mmc2_opt_clks
,
1772 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1773 .main_clk
= "mmchs2_fck",
1776 .module_offs
= CORE_MOD
,
1778 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1780 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1783 .dev_attr
= &mmc2_pre_es3_dev_attr
,
1784 .class = &omap34xx_mmc_class
,
1787 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod
= {
1789 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1790 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1791 .opt_clks
= omap34xx_mmc2_opt_clks
,
1792 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1793 .main_clk
= "mmchs2_fck",
1796 .module_offs
= CORE_MOD
,
1798 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1800 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1803 .class = &omap34xx_mmc_class
,
1808 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
1813 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
1814 { .name
= "tx", .dma_req
= 77, },
1815 { .name
= "rx", .dma_req
= 78, },
1819 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
1820 { .role
= "dbck", .clk
= "omap_32k_fck", },
1823 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
1825 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
1826 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
1827 .opt_clks
= omap34xx_mmc3_opt_clks
,
1828 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
1829 .main_clk
= "mmchs3_fck",
1833 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
1835 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
1838 .class = &omap34xx_mmc_class
,
1842 * 'usb_host_hs' class
1843 * high-speed multi-port usb host controller
1846 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc
= {
1848 .sysc_offs
= 0x0010,
1849 .syss_offs
= 0x0014,
1850 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1851 SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1852 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1853 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1854 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1855 .sysc_fields
= &omap_hwmod_sysc_type1
,
1858 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class
= {
1859 .name
= "usb_host_hs",
1860 .sysc
= &omap3xxx_usb_host_hs_sysc
,
1863 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks
[] = {
1864 { .role
= "ehci_logic_fck", .clk
= "usbhost_120m_fck", },
1867 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs
[] = {
1868 { .name
= "ohci-irq", .irq
= 76 },
1869 { .name
= "ehci-irq", .irq
= 77 },
1873 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod
= {
1874 .name
= "usb_host_hs",
1875 .class = &omap3xxx_usb_host_hs_hwmod_class
,
1876 .clkdm_name
= "l3_init_clkdm",
1877 .mpu_irqs
= omap3xxx_usb_host_hs_irqs
,
1878 .main_clk
= "usbhost_48m_fck",
1881 .module_offs
= OMAP3430ES2_USBHOST_MOD
,
1883 .module_bit
= OMAP3430ES2_EN_USBHOST1_SHIFT
,
1885 .idlest_idle_bit
= OMAP3430ES2_ST_USBHOST_IDLE_SHIFT
,
1886 .idlest_stdby_bit
= OMAP3430ES2_ST_USBHOST_STDBY_SHIFT
,
1889 .opt_clks
= omap3xxx_usb_host_hs_opt_clks
,
1890 .opt_clks_cnt
= ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks
),
1893 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1897 * In the following configuration :
1898 * - USBHOST module is set to smart-idle mode
1899 * - PRCM asserts idle_req to the USBHOST module ( This typically
1900 * happens when the system is going to a low power mode : all ports
1901 * have been suspended, the master part of the USBHOST module has
1902 * entered the standby state, and SW has cut the functional clocks)
1903 * - an USBHOST interrupt occurs before the module is able to answer
1904 * idle_ack, typically a remote wakeup IRQ.
1905 * Then the USB HOST module will enter a deadlock situation where it
1906 * is no more accessible nor functional.
1909 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1913 * Errata: USB host EHCI may stall when entering smart-standby mode
1917 * When the USBHOST module is set to smart-standby mode, and when it is
1918 * ready to enter the standby state (i.e. all ports are suspended and
1919 * all attached devices are in suspend mode), then it can wrongly assert
1920 * the Mstandby signal too early while there are still some residual OCP
1921 * transactions ongoing. If this condition occurs, the internal state
1922 * machine may go to an undefined state and the USB link may be stuck
1923 * upon the next resume.
1926 * Don't use smart standby; use only force standby,
1927 * hence HWMOD_SWSUP_MSTANDBY
1931 * During system boot; If the hwmod framework resets the module
1932 * the module will have smart idle settings; which can lead to deadlock
1933 * (above Errata Id:i660); so, dont reset the module during boot;
1934 * Use HWMOD_INIT_NO_RESET.
1937 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
|
1938 HWMOD_INIT_NO_RESET
,
1942 * 'usb_tll_hs' class
1943 * usb_tll_hs module is the adapter on the usb_host_hs ports
1945 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc
= {
1947 .sysc_offs
= 0x0010,
1948 .syss_offs
= 0x0014,
1949 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1950 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1952 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1953 .sysc_fields
= &omap_hwmod_sysc_type1
,
1956 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class
= {
1957 .name
= "usb_tll_hs",
1958 .sysc
= &omap3xxx_usb_tll_hs_sysc
,
1961 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs
[] = {
1962 { .name
= "tll-irq", .irq
= 78 },
1966 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod
= {
1967 .name
= "usb_tll_hs",
1968 .class = &omap3xxx_usb_tll_hs_hwmod_class
,
1969 .clkdm_name
= "l3_init_clkdm",
1970 .mpu_irqs
= omap3xxx_usb_tll_hs_irqs
,
1971 .main_clk
= "usbtll_fck",
1974 .module_offs
= CORE_MOD
,
1976 .module_bit
= OMAP3430ES2_EN_USBTLL_SHIFT
,
1978 .idlest_idle_bit
= OMAP3430ES2_ST_USBTLL_SHIFT
,
1987 /* L3 -> L4_CORE interface */
1988 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
1989 .master
= &omap3xxx_l3_main_hwmod
,
1990 .slave
= &omap3xxx_l4_core_hwmod
,
1991 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1994 /* L3 -> L4_PER interface */
1995 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
1996 .master
= &omap3xxx_l3_main_hwmod
,
1997 .slave
= &omap3xxx_l4_per_hwmod
,
1998 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2001 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
2003 .pa_start
= 0x68000000,
2004 .pa_end
= 0x6800ffff,
2005 .flags
= ADDR_TYPE_RT
,
2010 /* MPU -> L3 interface */
2011 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
2012 .master
= &omap3xxx_mpu_hwmod
,
2013 .slave
= &omap3xxx_l3_main_hwmod
,
2014 .addr
= omap3xxx_l3_main_addrs
,
2015 .user
= OCP_USER_MPU
,
2019 static struct omap_hwmod_ocp_if omap3430es1_dss__l3
= {
2020 .master
= &omap3430es1_dss_core_hwmod
,
2021 .slave
= &omap3xxx_l3_main_hwmod
,
2022 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2025 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
2026 .master
= &omap3xxx_dss_core_hwmod
,
2027 .slave
= &omap3xxx_l3_main_hwmod
,
2030 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
2031 .flags
= OMAP_FIREWALL_L3
,
2034 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2037 /* l3_core -> usbhsotg interface */
2038 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
2039 .master
= &omap3xxx_usbhsotg_hwmod
,
2040 .slave
= &omap3xxx_l3_main_hwmod
,
2041 .clk
= "core_l3_ick",
2042 .user
= OCP_USER_MPU
,
2045 /* l3_core -> am35xx_usbhsotg interface */
2046 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
2047 .master
= &am35xx_usbhsotg_hwmod
,
2048 .slave
= &omap3xxx_l3_main_hwmod
,
2049 .clk
= "core_l3_ick",
2050 .user
= OCP_USER_MPU
,
2052 /* L4_CORE -> L4_WKUP interface */
2053 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
2054 .master
= &omap3xxx_l4_core_hwmod
,
2055 .slave
= &omap3xxx_l4_wkup_hwmod
,
2056 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2059 /* L4 CORE -> MMC1 interface */
2060 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1
= {
2061 .master
= &omap3xxx_l4_core_hwmod
,
2062 .slave
= &omap3xxx_pre_es3_mmc1_hwmod
,
2063 .clk
= "mmchs1_ick",
2064 .addr
= omap2430_mmc1_addr_space
,
2065 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2066 .flags
= OMAP_FIREWALL_L4
2069 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1
= {
2070 .master
= &omap3xxx_l4_core_hwmod
,
2071 .slave
= &omap3xxx_es3plus_mmc1_hwmod
,
2072 .clk
= "mmchs1_ick",
2073 .addr
= omap2430_mmc1_addr_space
,
2074 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2075 .flags
= OMAP_FIREWALL_L4
2078 /* L4 CORE -> MMC2 interface */
2079 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2
= {
2080 .master
= &omap3xxx_l4_core_hwmod
,
2081 .slave
= &omap3xxx_pre_es3_mmc2_hwmod
,
2082 .clk
= "mmchs2_ick",
2083 .addr
= omap2430_mmc2_addr_space
,
2084 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2085 .flags
= OMAP_FIREWALL_L4
2088 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2
= {
2089 .master
= &omap3xxx_l4_core_hwmod
,
2090 .slave
= &omap3xxx_es3plus_mmc2_hwmod
,
2091 .clk
= "mmchs2_ick",
2092 .addr
= omap2430_mmc2_addr_space
,
2093 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2094 .flags
= OMAP_FIREWALL_L4
2097 /* L4 CORE -> MMC3 interface */
2098 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
2100 .pa_start
= 0x480ad000,
2101 .pa_end
= 0x480ad1ff,
2102 .flags
= ADDR_TYPE_RT
,
2107 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
2108 .master
= &omap3xxx_l4_core_hwmod
,
2109 .slave
= &omap3xxx_mmc3_hwmod
,
2110 .clk
= "mmchs3_ick",
2111 .addr
= omap3xxx_mmc3_addr_space
,
2112 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2113 .flags
= OMAP_FIREWALL_L4
2116 /* L4 CORE -> UART1 interface */
2117 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
2119 .pa_start
= OMAP3_UART1_BASE
,
2120 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
2121 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2126 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
2127 .master
= &omap3xxx_l4_core_hwmod
,
2128 .slave
= &omap3xxx_uart1_hwmod
,
2130 .addr
= omap3xxx_uart1_addr_space
,
2131 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2134 /* L4 CORE -> UART2 interface */
2135 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
2137 .pa_start
= OMAP3_UART2_BASE
,
2138 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
2139 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2144 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
2145 .master
= &omap3xxx_l4_core_hwmod
,
2146 .slave
= &omap3xxx_uart2_hwmod
,
2148 .addr
= omap3xxx_uart2_addr_space
,
2149 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2152 /* L4 PER -> UART3 interface */
2153 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
2155 .pa_start
= OMAP3_UART3_BASE
,
2156 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
2157 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2162 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
2163 .master
= &omap3xxx_l4_per_hwmod
,
2164 .slave
= &omap3xxx_uart3_hwmod
,
2166 .addr
= omap3xxx_uart3_addr_space
,
2167 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2170 /* L4 PER -> UART4 interface */
2171 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space
[] = {
2173 .pa_start
= OMAP3_UART4_BASE
,
2174 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
2175 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2180 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4
= {
2181 .master
= &omap3xxx_l4_per_hwmod
,
2182 .slave
= &omap36xx_uart4_hwmod
,
2184 .addr
= omap36xx_uart4_addr_space
,
2185 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2188 /* AM35xx: L4 CORE -> UART4 interface */
2189 static struct omap_hwmod_addr_space am35xx_uart4_addr_space
[] = {
2191 .pa_start
= OMAP3_UART4_AM35XX_BASE
,
2192 .pa_end
= OMAP3_UART4_AM35XX_BASE
+ SZ_1K
- 1,
2193 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2197 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4
= {
2198 .master
= &omap3xxx_l4_core_hwmod
,
2199 .slave
= &am35xx_uart4_hwmod
,
2201 .addr
= am35xx_uart4_addr_space
,
2202 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2205 /* L4 CORE -> I2C1 interface */
2206 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
2207 .master
= &omap3xxx_l4_core_hwmod
,
2208 .slave
= &omap3xxx_i2c1_hwmod
,
2210 .addr
= omap2_i2c1_addr_space
,
2213 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
2215 .flags
= OMAP_FIREWALL_L4
,
2218 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2221 /* L4 CORE -> I2C2 interface */
2222 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
2223 .master
= &omap3xxx_l4_core_hwmod
,
2224 .slave
= &omap3xxx_i2c2_hwmod
,
2226 .addr
= omap2_i2c2_addr_space
,
2229 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
2231 .flags
= OMAP_FIREWALL_L4
,
2234 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2237 /* L4 CORE -> I2C3 interface */
2238 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
2240 .pa_start
= 0x48060000,
2241 .pa_end
= 0x48060000 + SZ_128
- 1,
2242 .flags
= ADDR_TYPE_RT
,
2247 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
2248 .master
= &omap3xxx_l4_core_hwmod
,
2249 .slave
= &omap3xxx_i2c3_hwmod
,
2251 .addr
= omap3xxx_i2c3_addr_space
,
2254 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
2256 .flags
= OMAP_FIREWALL_L4
,
2259 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2262 /* L4 CORE -> SR1 interface */
2263 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
2265 .pa_start
= OMAP34XX_SR1_BASE
,
2266 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
2267 .flags
= ADDR_TYPE_RT
,
2272 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1
= {
2273 .master
= &omap3xxx_l4_core_hwmod
,
2274 .slave
= &omap34xx_sr1_hwmod
,
2276 .addr
= omap3_sr1_addr_space
,
2277 .user
= OCP_USER_MPU
,
2280 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1
= {
2281 .master
= &omap3xxx_l4_core_hwmod
,
2282 .slave
= &omap36xx_sr1_hwmod
,
2284 .addr
= omap3_sr1_addr_space
,
2285 .user
= OCP_USER_MPU
,
2288 /* L4 CORE -> SR1 interface */
2289 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
2291 .pa_start
= OMAP34XX_SR2_BASE
,
2292 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
2293 .flags
= ADDR_TYPE_RT
,
2298 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2
= {
2299 .master
= &omap3xxx_l4_core_hwmod
,
2300 .slave
= &omap34xx_sr2_hwmod
,
2302 .addr
= omap3_sr2_addr_space
,
2303 .user
= OCP_USER_MPU
,
2306 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2
= {
2307 .master
= &omap3xxx_l4_core_hwmod
,
2308 .slave
= &omap36xx_sr2_hwmod
,
2310 .addr
= omap3_sr2_addr_space
,
2311 .user
= OCP_USER_MPU
,
2314 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
2316 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
2317 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
2318 .flags
= ADDR_TYPE_RT
2323 /* l4_core -> usbhsotg */
2324 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
2325 .master
= &omap3xxx_l4_core_hwmod
,
2326 .slave
= &omap3xxx_usbhsotg_hwmod
,
2328 .addr
= omap3xxx_usbhsotg_addrs
,
2329 .user
= OCP_USER_MPU
,
2332 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
2334 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
2335 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
2336 .flags
= ADDR_TYPE_RT
2341 /* l4_core -> usbhsotg */
2342 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
2343 .master
= &omap3xxx_l4_core_hwmod
,
2344 .slave
= &am35xx_usbhsotg_hwmod
,
2346 .addr
= am35xx_usbhsotg_addrs
,
2347 .user
= OCP_USER_MPU
,
2350 /* L4_WKUP -> L4_SEC interface */
2351 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec
= {
2352 .master
= &omap3xxx_l4_wkup_hwmod
,
2353 .slave
= &omap3xxx_l4_sec_hwmod
,
2354 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2357 /* IVA2 <- L3 interface */
2358 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
2359 .master
= &omap3xxx_l3_main_hwmod
,
2360 .slave
= &omap3xxx_iva_hwmod
,
2361 .clk
= "core_l3_ick",
2362 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2365 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
2367 .pa_start
= 0x48318000,
2368 .pa_end
= 0x48318000 + SZ_1K
- 1,
2369 .flags
= ADDR_TYPE_RT
2374 /* l4_wkup -> timer1 */
2375 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
2376 .master
= &omap3xxx_l4_wkup_hwmod
,
2377 .slave
= &omap3xxx_timer1_hwmod
,
2379 .addr
= omap3xxx_timer1_addrs
,
2380 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2383 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
2385 .pa_start
= 0x49032000,
2386 .pa_end
= 0x49032000 + SZ_1K
- 1,
2387 .flags
= ADDR_TYPE_RT
2392 /* l4_per -> timer2 */
2393 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
2394 .master
= &omap3xxx_l4_per_hwmod
,
2395 .slave
= &omap3xxx_timer2_hwmod
,
2397 .addr
= omap3xxx_timer2_addrs
,
2398 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2401 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
2403 .pa_start
= 0x49034000,
2404 .pa_end
= 0x49034000 + SZ_1K
- 1,
2405 .flags
= ADDR_TYPE_RT
2410 /* l4_per -> timer3 */
2411 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
2412 .master
= &omap3xxx_l4_per_hwmod
,
2413 .slave
= &omap3xxx_timer3_hwmod
,
2415 .addr
= omap3xxx_timer3_addrs
,
2416 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2419 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
2421 .pa_start
= 0x49036000,
2422 .pa_end
= 0x49036000 + SZ_1K
- 1,
2423 .flags
= ADDR_TYPE_RT
2428 /* l4_per -> timer4 */
2429 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
2430 .master
= &omap3xxx_l4_per_hwmod
,
2431 .slave
= &omap3xxx_timer4_hwmod
,
2433 .addr
= omap3xxx_timer4_addrs
,
2434 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2437 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
2439 .pa_start
= 0x49038000,
2440 .pa_end
= 0x49038000 + SZ_1K
- 1,
2441 .flags
= ADDR_TYPE_RT
2446 /* l4_per -> timer5 */
2447 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
2448 .master
= &omap3xxx_l4_per_hwmod
,
2449 .slave
= &omap3xxx_timer5_hwmod
,
2451 .addr
= omap3xxx_timer5_addrs
,
2452 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2455 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
2457 .pa_start
= 0x4903A000,
2458 .pa_end
= 0x4903A000 + SZ_1K
- 1,
2459 .flags
= ADDR_TYPE_RT
2464 /* l4_per -> timer6 */
2465 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
2466 .master
= &omap3xxx_l4_per_hwmod
,
2467 .slave
= &omap3xxx_timer6_hwmod
,
2469 .addr
= omap3xxx_timer6_addrs
,
2470 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2473 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
2475 .pa_start
= 0x4903C000,
2476 .pa_end
= 0x4903C000 + SZ_1K
- 1,
2477 .flags
= ADDR_TYPE_RT
2482 /* l4_per -> timer7 */
2483 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
2484 .master
= &omap3xxx_l4_per_hwmod
,
2485 .slave
= &omap3xxx_timer7_hwmod
,
2487 .addr
= omap3xxx_timer7_addrs
,
2488 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2491 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
2493 .pa_start
= 0x4903E000,
2494 .pa_end
= 0x4903E000 + SZ_1K
- 1,
2495 .flags
= ADDR_TYPE_RT
2500 /* l4_per -> timer8 */
2501 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
2502 .master
= &omap3xxx_l4_per_hwmod
,
2503 .slave
= &omap3xxx_timer8_hwmod
,
2505 .addr
= omap3xxx_timer8_addrs
,
2506 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2509 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
2511 .pa_start
= 0x49040000,
2512 .pa_end
= 0x49040000 + SZ_1K
- 1,
2513 .flags
= ADDR_TYPE_RT
2518 /* l4_per -> timer9 */
2519 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
2520 .master
= &omap3xxx_l4_per_hwmod
,
2521 .slave
= &omap3xxx_timer9_hwmod
,
2523 .addr
= omap3xxx_timer9_addrs
,
2524 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2527 /* l4_core -> timer10 */
2528 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
2529 .master
= &omap3xxx_l4_core_hwmod
,
2530 .slave
= &omap3xxx_timer10_hwmod
,
2532 .addr
= omap2_timer10_addrs
,
2533 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2536 /* l4_core -> timer11 */
2537 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
2538 .master
= &omap3xxx_l4_core_hwmod
,
2539 .slave
= &omap3xxx_timer11_hwmod
,
2541 .addr
= omap2_timer11_addrs
,
2542 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2545 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
2547 .pa_start
= 0x48304000,
2548 .pa_end
= 0x48304000 + SZ_1K
- 1,
2549 .flags
= ADDR_TYPE_RT
2554 /* l4_core -> timer12 */
2555 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12
= {
2556 .master
= &omap3xxx_l4_sec_hwmod
,
2557 .slave
= &omap3xxx_timer12_hwmod
,
2559 .addr
= omap3xxx_timer12_addrs
,
2560 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2563 /* l4_wkup -> wd_timer2 */
2564 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
2566 .pa_start
= 0x48314000,
2567 .pa_end
= 0x4831407f,
2568 .flags
= ADDR_TYPE_RT
2573 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
2574 .master
= &omap3xxx_l4_wkup_hwmod
,
2575 .slave
= &omap3xxx_wd_timer2_hwmod
,
2577 .addr
= omap3xxx_wd_timer2_addrs
,
2578 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2581 /* l4_core -> dss */
2582 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
2583 .master
= &omap3xxx_l4_core_hwmod
,
2584 .slave
= &omap3430es1_dss_core_hwmod
,
2586 .addr
= omap2_dss_addrs
,
2589 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
2590 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2591 .flags
= OMAP_FIREWALL_L4
,
2594 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2597 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
2598 .master
= &omap3xxx_l4_core_hwmod
,
2599 .slave
= &omap3xxx_dss_core_hwmod
,
2601 .addr
= omap2_dss_addrs
,
2604 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
2605 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2606 .flags
= OMAP_FIREWALL_L4
,
2609 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2612 /* l4_core -> dss_dispc */
2613 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
2614 .master
= &omap3xxx_l4_core_hwmod
,
2615 .slave
= &omap3xxx_dss_dispc_hwmod
,
2617 .addr
= omap2_dss_dispc_addrs
,
2620 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
2621 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2622 .flags
= OMAP_FIREWALL_L4
,
2625 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2628 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
2630 .pa_start
= 0x4804FC00,
2631 .pa_end
= 0x4804FFFF,
2632 .flags
= ADDR_TYPE_RT
2637 /* l4_core -> dss_dsi1 */
2638 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
2639 .master
= &omap3xxx_l4_core_hwmod
,
2640 .slave
= &omap3xxx_dss_dsi1_hwmod
,
2642 .addr
= omap3xxx_dss_dsi1_addrs
,
2645 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
2646 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2647 .flags
= OMAP_FIREWALL_L4
,
2650 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2653 /* l4_core -> dss_rfbi */
2654 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
2655 .master
= &omap3xxx_l4_core_hwmod
,
2656 .slave
= &omap3xxx_dss_rfbi_hwmod
,
2658 .addr
= omap2_dss_rfbi_addrs
,
2661 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
2662 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2663 .flags
= OMAP_FIREWALL_L4
,
2666 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2669 /* l4_core -> dss_venc */
2670 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
2671 .master
= &omap3xxx_l4_core_hwmod
,
2672 .slave
= &omap3xxx_dss_venc_hwmod
,
2674 .addr
= omap2_dss_venc_addrs
,
2677 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
2678 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2679 .flags
= OMAP_FIREWALL_L4
,
2682 .flags
= OCPIF_SWSUP_IDLE
,
2683 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2686 /* l4_wkup -> gpio1 */
2687 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
2689 .pa_start
= 0x48310000,
2690 .pa_end
= 0x483101ff,
2691 .flags
= ADDR_TYPE_RT
2696 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
2697 .master
= &omap3xxx_l4_wkup_hwmod
,
2698 .slave
= &omap3xxx_gpio1_hwmod
,
2699 .addr
= omap3xxx_gpio1_addrs
,
2700 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2703 /* l4_per -> gpio2 */
2704 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
2706 .pa_start
= 0x49050000,
2707 .pa_end
= 0x490501ff,
2708 .flags
= ADDR_TYPE_RT
2713 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
2714 .master
= &omap3xxx_l4_per_hwmod
,
2715 .slave
= &omap3xxx_gpio2_hwmod
,
2716 .addr
= omap3xxx_gpio2_addrs
,
2717 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2720 /* l4_per -> gpio3 */
2721 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
2723 .pa_start
= 0x49052000,
2724 .pa_end
= 0x490521ff,
2725 .flags
= ADDR_TYPE_RT
2730 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
2731 .master
= &omap3xxx_l4_per_hwmod
,
2732 .slave
= &omap3xxx_gpio3_hwmod
,
2733 .addr
= omap3xxx_gpio3_addrs
,
2734 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2737 /* l4_per -> gpio4 */
2738 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
2740 .pa_start
= 0x49054000,
2741 .pa_end
= 0x490541ff,
2742 .flags
= ADDR_TYPE_RT
2747 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
2748 .master
= &omap3xxx_l4_per_hwmod
,
2749 .slave
= &omap3xxx_gpio4_hwmod
,
2750 .addr
= omap3xxx_gpio4_addrs
,
2751 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2754 /* l4_per -> gpio5 */
2755 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
2757 .pa_start
= 0x49056000,
2758 .pa_end
= 0x490561ff,
2759 .flags
= ADDR_TYPE_RT
2764 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
2765 .master
= &omap3xxx_l4_per_hwmod
,
2766 .slave
= &omap3xxx_gpio5_hwmod
,
2767 .addr
= omap3xxx_gpio5_addrs
,
2768 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2771 /* l4_per -> gpio6 */
2772 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
2774 .pa_start
= 0x49058000,
2775 .pa_end
= 0x490581ff,
2776 .flags
= ADDR_TYPE_RT
2781 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
2782 .master
= &omap3xxx_l4_per_hwmod
,
2783 .slave
= &omap3xxx_gpio6_hwmod
,
2784 .addr
= omap3xxx_gpio6_addrs
,
2785 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2788 /* dma_system -> L3 */
2789 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
2790 .master
= &omap3xxx_dma_system_hwmod
,
2791 .slave
= &omap3xxx_l3_main_hwmod
,
2792 .clk
= "core_l3_ick",
2793 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2796 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
2798 .pa_start
= 0x48056000,
2799 .pa_end
= 0x48056fff,
2800 .flags
= ADDR_TYPE_RT
2805 /* l4_cfg -> dma_system */
2806 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
2807 .master
= &omap3xxx_l4_core_hwmod
,
2808 .slave
= &omap3xxx_dma_system_hwmod
,
2809 .clk
= "core_l4_ick",
2810 .addr
= omap3xxx_dma_system_addrs
,
2811 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2814 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
2817 .pa_start
= 0x48074000,
2818 .pa_end
= 0x480740ff,
2819 .flags
= ADDR_TYPE_RT
2824 /* l4_core -> mcbsp1 */
2825 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
2826 .master
= &omap3xxx_l4_core_hwmod
,
2827 .slave
= &omap3xxx_mcbsp1_hwmod
,
2828 .clk
= "mcbsp1_ick",
2829 .addr
= omap3xxx_mcbsp1_addrs
,
2830 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2833 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
2836 .pa_start
= 0x49022000,
2837 .pa_end
= 0x490220ff,
2838 .flags
= ADDR_TYPE_RT
2843 /* l4_per -> mcbsp2 */
2844 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
2845 .master
= &omap3xxx_l4_per_hwmod
,
2846 .slave
= &omap3xxx_mcbsp2_hwmod
,
2847 .clk
= "mcbsp2_ick",
2848 .addr
= omap3xxx_mcbsp2_addrs
,
2849 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2852 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
2855 .pa_start
= 0x49024000,
2856 .pa_end
= 0x490240ff,
2857 .flags
= ADDR_TYPE_RT
2862 /* l4_per -> mcbsp3 */
2863 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
2864 .master
= &omap3xxx_l4_per_hwmod
,
2865 .slave
= &omap3xxx_mcbsp3_hwmod
,
2866 .clk
= "mcbsp3_ick",
2867 .addr
= omap3xxx_mcbsp3_addrs
,
2868 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2871 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
2874 .pa_start
= 0x49026000,
2875 .pa_end
= 0x490260ff,
2876 .flags
= ADDR_TYPE_RT
2881 /* l4_per -> mcbsp4 */
2882 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
2883 .master
= &omap3xxx_l4_per_hwmod
,
2884 .slave
= &omap3xxx_mcbsp4_hwmod
,
2885 .clk
= "mcbsp4_ick",
2886 .addr
= omap3xxx_mcbsp4_addrs
,
2887 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2890 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
2893 .pa_start
= 0x48096000,
2894 .pa_end
= 0x480960ff,
2895 .flags
= ADDR_TYPE_RT
2900 /* l4_core -> mcbsp5 */
2901 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
2902 .master
= &omap3xxx_l4_core_hwmod
,
2903 .slave
= &omap3xxx_mcbsp5_hwmod
,
2904 .clk
= "mcbsp5_ick",
2905 .addr
= omap3xxx_mcbsp5_addrs
,
2906 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2909 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
2912 .pa_start
= 0x49028000,
2913 .pa_end
= 0x490280ff,
2914 .flags
= ADDR_TYPE_RT
2919 /* l4_per -> mcbsp2_sidetone */
2920 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
2921 .master
= &omap3xxx_l4_per_hwmod
,
2922 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
2923 .clk
= "mcbsp2_ick",
2924 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
2925 .user
= OCP_USER_MPU
,
2928 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
2931 .pa_start
= 0x4902A000,
2932 .pa_end
= 0x4902A0ff,
2933 .flags
= ADDR_TYPE_RT
2938 /* l4_per -> mcbsp3_sidetone */
2939 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
2940 .master
= &omap3xxx_l4_per_hwmod
,
2941 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
2942 .clk
= "mcbsp3_ick",
2943 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
2944 .user
= OCP_USER_MPU
,
2947 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs
[] = {
2949 .pa_start
= 0x48094000,
2950 .pa_end
= 0x480941ff,
2951 .flags
= ADDR_TYPE_RT
,
2956 /* l4_core -> mailbox */
2957 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
2958 .master
= &omap3xxx_l4_core_hwmod
,
2959 .slave
= &omap3xxx_mailbox_hwmod
,
2960 .addr
= omap3xxx_mailbox_addrs
,
2961 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2964 /* l4 core -> mcspi1 interface */
2965 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
2966 .master
= &omap3xxx_l4_core_hwmod
,
2967 .slave
= &omap34xx_mcspi1
,
2968 .clk
= "mcspi1_ick",
2969 .addr
= omap2_mcspi1_addr_space
,
2970 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2973 /* l4 core -> mcspi2 interface */
2974 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
2975 .master
= &omap3xxx_l4_core_hwmod
,
2976 .slave
= &omap34xx_mcspi2
,
2977 .clk
= "mcspi2_ick",
2978 .addr
= omap2_mcspi2_addr_space
,
2979 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2982 /* l4 core -> mcspi3 interface */
2983 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
2984 .master
= &omap3xxx_l4_core_hwmod
,
2985 .slave
= &omap34xx_mcspi3
,
2986 .clk
= "mcspi3_ick",
2987 .addr
= omap2430_mcspi3_addr_space
,
2988 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2991 /* l4 core -> mcspi4 interface */
2992 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
2994 .pa_start
= 0x480ba000,
2995 .pa_end
= 0x480ba0ff,
2996 .flags
= ADDR_TYPE_RT
,
3001 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
3002 .master
= &omap3xxx_l4_core_hwmod
,
3003 .slave
= &omap34xx_mcspi4
,
3004 .clk
= "mcspi4_ick",
3005 .addr
= omap34xx_mcspi4_addr_space
,
3006 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3009 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2
= {
3010 .master
= &omap3xxx_usb_host_hs_hwmod
,
3011 .slave
= &omap3xxx_l3_main_hwmod
,
3012 .clk
= "core_l3_ick",
3013 .user
= OCP_USER_MPU
,
3016 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs
[] = {
3019 .pa_start
= 0x48064000,
3020 .pa_end
= 0x480643ff,
3021 .flags
= ADDR_TYPE_RT
3025 .pa_start
= 0x48064400,
3026 .pa_end
= 0x480647ff,
3030 .pa_start
= 0x48064800,
3031 .pa_end
= 0x48064cff,
3036 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs
= {
3037 .master
= &omap3xxx_l4_core_hwmod
,
3038 .slave
= &omap3xxx_usb_host_hs_hwmod
,
3039 .clk
= "usbhost_ick",
3040 .addr
= omap3xxx_usb_host_hs_addrs
,
3041 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3044 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs
[] = {
3047 .pa_start
= 0x48062000,
3048 .pa_end
= 0x48062fff,
3049 .flags
= ADDR_TYPE_RT
3054 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs
= {
3055 .master
= &omap3xxx_l4_core_hwmod
,
3056 .slave
= &omap3xxx_usb_tll_hs_hwmod
,
3057 .clk
= "usbtll_ick",
3058 .addr
= omap3xxx_usb_tll_hs_addrs
,
3059 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3062 static struct omap_hwmod_ocp_if
*omap3xxx_hwmod_ocp_ifs
[] __initdata
= {
3063 &omap3xxx_l3_main__l4_core
,
3064 &omap3xxx_l3_main__l4_per
,
3065 &omap3xxx_mpu__l3_main
,
3066 &omap3xxx_l4_core__l4_wkup
,
3067 &omap3xxx_l4_core__mmc3
,
3068 &omap3_l4_core__uart1
,
3069 &omap3_l4_core__uart2
,
3070 &omap3_l4_per__uart3
,
3071 &omap3_l4_core__i2c1
,
3072 &omap3_l4_core__i2c2
,
3073 &omap3_l4_core__i2c3
,
3074 &omap3xxx_l4_wkup__l4_sec
,
3075 &omap3xxx_l4_wkup__timer1
,
3076 &omap3xxx_l4_per__timer2
,
3077 &omap3xxx_l4_per__timer3
,
3078 &omap3xxx_l4_per__timer4
,
3079 &omap3xxx_l4_per__timer5
,
3080 &omap3xxx_l4_per__timer6
,
3081 &omap3xxx_l4_per__timer7
,
3082 &omap3xxx_l4_per__timer8
,
3083 &omap3xxx_l4_per__timer9
,
3084 &omap3xxx_l4_core__timer10
,
3085 &omap3xxx_l4_core__timer11
,
3086 &omap3xxx_l4_wkup__wd_timer2
,
3087 &omap3xxx_l4_wkup__gpio1
,
3088 &omap3xxx_l4_per__gpio2
,
3089 &omap3xxx_l4_per__gpio3
,
3090 &omap3xxx_l4_per__gpio4
,
3091 &omap3xxx_l4_per__gpio5
,
3092 &omap3xxx_l4_per__gpio6
,
3093 &omap3xxx_dma_system__l3
,
3094 &omap3xxx_l4_core__dma_system
,
3095 &omap3xxx_l4_core__mcbsp1
,
3096 &omap3xxx_l4_per__mcbsp2
,
3097 &omap3xxx_l4_per__mcbsp3
,
3098 &omap3xxx_l4_per__mcbsp4
,
3099 &omap3xxx_l4_core__mcbsp5
,
3100 &omap3xxx_l4_per__mcbsp2_sidetone
,
3101 &omap3xxx_l4_per__mcbsp3_sidetone
,
3102 &omap34xx_l4_core__mcspi1
,
3103 &omap34xx_l4_core__mcspi2
,
3104 &omap34xx_l4_core__mcspi3
,
3105 &omap34xx_l4_core__mcspi4
,
3109 /* GP-only hwmod links */
3110 static struct omap_hwmod_ocp_if
*omap3xxx_gp_hwmod_ocp_ifs
[] __initdata
= {
3111 &omap3xxx_l4_sec__timer12
,
3115 /* 3430ES1-only hwmod links */
3116 static struct omap_hwmod_ocp_if
*omap3430es1_hwmod_ocp_ifs
[] __initdata
= {
3117 &omap3430es1_dss__l3
,
3118 &omap3430es1_l4_core__dss
,
3122 /* 3430ES2+-only hwmod links */
3123 static struct omap_hwmod_ocp_if
*omap3430es2plus_hwmod_ocp_ifs
[] __initdata
= {
3125 &omap3xxx_l4_core__dss
,
3126 &omap3xxx_usbhsotg__l3
,
3127 &omap3xxx_l4_core__usbhsotg
,
3128 &omap3xxx_usb_host_hs__l3_main_2
,
3129 &omap3xxx_l4_core__usb_host_hs
,
3130 &omap3xxx_l4_core__usb_tll_hs
,
3134 /* <= 3430ES3-only hwmod links */
3135 static struct omap_hwmod_ocp_if
*omap3430_pre_es3_hwmod_ocp_ifs
[] __initdata
= {
3136 &omap3xxx_l4_core__pre_es3_mmc1
,
3137 &omap3xxx_l4_core__pre_es3_mmc2
,
3141 /* 3430ES3+-only hwmod links */
3142 static struct omap_hwmod_ocp_if
*omap3430_es3plus_hwmod_ocp_ifs
[] __initdata
= {
3143 &omap3xxx_l4_core__es3plus_mmc1
,
3144 &omap3xxx_l4_core__es3plus_mmc2
,
3148 /* 34xx-only hwmod links (all ES revisions) */
3149 static struct omap_hwmod_ocp_if
*omap34xx_hwmod_ocp_ifs
[] __initdata
= {
3151 &omap34xx_l4_core__sr1
,
3152 &omap34xx_l4_core__sr2
,
3153 &omap3xxx_l4_core__mailbox
,
3157 /* 36xx-only hwmod links (all ES revisions) */
3158 static struct omap_hwmod_ocp_if
*omap36xx_hwmod_ocp_ifs
[] __initdata
= {
3160 &omap36xx_l4_per__uart4
,
3162 &omap3xxx_l4_core__dss
,
3163 &omap36xx_l4_core__sr1
,
3164 &omap36xx_l4_core__sr2
,
3165 &omap3xxx_usbhsotg__l3
,
3166 &omap3xxx_l4_core__usbhsotg
,
3167 &omap3xxx_l4_core__mailbox
,
3168 &omap3xxx_usb_host_hs__l3_main_2
,
3169 &omap3xxx_l4_core__usb_host_hs
,
3170 &omap3xxx_l4_core__usb_tll_hs
,
3171 &omap3xxx_l4_core__es3plus_mmc1
,
3172 &omap3xxx_l4_core__es3plus_mmc2
,
3176 static struct omap_hwmod_ocp_if
*am35xx_hwmod_ocp_ifs
[] __initdata
= {
3178 &omap3xxx_l4_core__dss
,
3179 &am35xx_usbhsotg__l3
,
3180 &am35xx_l4_core__usbhsotg
,
3181 &am35xx_l4_core__uart4
,
3182 &omap3xxx_usb_host_hs__l3_main_2
,
3183 &omap3xxx_l4_core__usb_host_hs
,
3184 &omap3xxx_l4_core__usb_tll_hs
,
3185 &omap3xxx_l4_core__es3plus_mmc1
,
3186 &omap3xxx_l4_core__es3plus_mmc2
,
3190 static struct omap_hwmod_ocp_if
*omap3xxx_dss_hwmod_ocp_ifs
[] __initdata
= {
3191 &omap3xxx_l4_core__dss_dispc
,
3192 &omap3xxx_l4_core__dss_dsi1
,
3193 &omap3xxx_l4_core__dss_rfbi
,
3194 &omap3xxx_l4_core__dss_venc
,
3198 int __init
omap3xxx_hwmod_init(void)
3201 struct omap_hwmod_ocp_if
**h
= NULL
;
3204 /* Register hwmod links common to all OMAP3 */
3205 r
= omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs
);
3209 /* Register GP-only hwmod links. */
3210 if (omap_type() == OMAP2_DEVICE_TYPE_GP
) {
3211 r
= omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs
);
3219 * Register hwmod links common to individual OMAP3 families, all
3220 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3221 * All possible revisions should be included in this conditional.
3223 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3224 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3225 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3226 h
= omap34xx_hwmod_ocp_ifs
;
3227 } else if (rev
== OMAP3517_REV_ES1_0
|| rev
== OMAP3517_REV_ES1_1
) {
3228 h
= am35xx_hwmod_ocp_ifs
;
3229 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3230 rev
== OMAP3630_REV_ES1_2
) {
3231 h
= omap36xx_hwmod_ocp_ifs
;
3233 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3237 r
= omap_hwmod_register_links(h
);
3242 * Register hwmod links specific to certain ES levels of a
3243 * particular family of silicon (e.g., 34xx ES1.0)
3246 if (rev
== OMAP3430_REV_ES1_0
) {
3247 h
= omap3430es1_hwmod_ocp_ifs
;
3248 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3249 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3250 rev
== OMAP3430_REV_ES3_1_2
) {
3251 h
= omap3430es2plus_hwmod_ocp_ifs
;
3255 r
= omap_hwmod_register_links(h
);
3261 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3262 rev
== OMAP3430_REV_ES2_1
) {
3263 h
= omap3430_pre_es3_hwmod_ocp_ifs
;
3264 } else if (rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3265 rev
== OMAP3430_REV_ES3_1_2
) {
3266 h
= omap3430_es3plus_hwmod_ocp_ifs
;
3270 r
= omap_hwmod_register_links(h
);
3275 * DSS code presumes that dss_core hwmod is handled first,
3276 * _before_ any other DSS related hwmods so register common
3277 * DSS hwmod links last to ensure that dss_core is already
3278 * registered. Otherwise some change things may happen, for
3279 * ex. if dispc is handled before dss_core and DSS is enabled
3280 * in bootloader DISPC will be reset with outputs enabled
3281 * which sometimes leads to unrecoverable L3 error. XXX The
3282 * long-term fix to this is to ensure hwmods are set up in
3283 * dependency order in the hwmod core code.
3285 r
= omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs
);