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
,
134 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc
= {
138 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
139 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
140 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
141 .sysc_fields
= &omap_hwmod_sysc_type1
,
144 static struct omap_hwmod_class omap3xxx_timer_hwmod_class
= {
146 .sysc
= &omap3xxx_timer_sysc
,
149 /* secure timers dev attribute */
150 static struct omap_timer_capability_dev_attr capability_secure_dev_attr
= {
151 .timer_capability
= OMAP_TIMER_ALWON
| OMAP_TIMER_SECURE
,
154 /* always-on timers dev attribute */
155 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
156 .timer_capability
= OMAP_TIMER_ALWON
,
159 /* pwm timers dev attribute */
160 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
161 .timer_capability
= OMAP_TIMER_HAS_PWM
,
165 static struct omap_hwmod omap3xxx_timer1_hwmod
= {
167 .mpu_irqs
= omap2_timer1_mpu_irqs
,
168 .main_clk
= "gpt1_fck",
172 .module_bit
= OMAP3430_EN_GPT1_SHIFT
,
173 .module_offs
= WKUP_MOD
,
175 .idlest_idle_bit
= OMAP3430_ST_GPT1_SHIFT
,
178 .dev_attr
= &capability_alwon_dev_attr
,
179 .class = &omap3xxx_timer_1ms_hwmod_class
,
183 static struct omap_hwmod omap3xxx_timer2_hwmod
= {
185 .mpu_irqs
= omap2_timer2_mpu_irqs
,
186 .main_clk
= "gpt2_fck",
190 .module_bit
= OMAP3430_EN_GPT2_SHIFT
,
191 .module_offs
= OMAP3430_PER_MOD
,
193 .idlest_idle_bit
= OMAP3430_ST_GPT2_SHIFT
,
196 .class = &omap3xxx_timer_1ms_hwmod_class
,
200 static struct omap_hwmod omap3xxx_timer3_hwmod
= {
202 .mpu_irqs
= omap2_timer3_mpu_irqs
,
203 .main_clk
= "gpt3_fck",
207 .module_bit
= OMAP3430_EN_GPT3_SHIFT
,
208 .module_offs
= OMAP3430_PER_MOD
,
210 .idlest_idle_bit
= OMAP3430_ST_GPT3_SHIFT
,
213 .class = &omap3xxx_timer_hwmod_class
,
217 static struct omap_hwmod omap3xxx_timer4_hwmod
= {
219 .mpu_irqs
= omap2_timer4_mpu_irqs
,
220 .main_clk
= "gpt4_fck",
224 .module_bit
= OMAP3430_EN_GPT4_SHIFT
,
225 .module_offs
= OMAP3430_PER_MOD
,
227 .idlest_idle_bit
= OMAP3430_ST_GPT4_SHIFT
,
230 .class = &omap3xxx_timer_hwmod_class
,
234 static struct omap_hwmod omap3xxx_timer5_hwmod
= {
236 .mpu_irqs
= omap2_timer5_mpu_irqs
,
237 .main_clk
= "gpt5_fck",
241 .module_bit
= OMAP3430_EN_GPT5_SHIFT
,
242 .module_offs
= OMAP3430_PER_MOD
,
244 .idlest_idle_bit
= OMAP3430_ST_GPT5_SHIFT
,
247 .class = &omap3xxx_timer_hwmod_class
,
251 static struct omap_hwmod omap3xxx_timer6_hwmod
= {
253 .mpu_irqs
= omap2_timer6_mpu_irqs
,
254 .main_clk
= "gpt6_fck",
258 .module_bit
= OMAP3430_EN_GPT6_SHIFT
,
259 .module_offs
= OMAP3430_PER_MOD
,
261 .idlest_idle_bit
= OMAP3430_ST_GPT6_SHIFT
,
264 .class = &omap3xxx_timer_hwmod_class
,
268 static struct omap_hwmod omap3xxx_timer7_hwmod
= {
270 .mpu_irqs
= omap2_timer7_mpu_irqs
,
271 .main_clk
= "gpt7_fck",
275 .module_bit
= OMAP3430_EN_GPT7_SHIFT
,
276 .module_offs
= OMAP3430_PER_MOD
,
278 .idlest_idle_bit
= OMAP3430_ST_GPT7_SHIFT
,
281 .class = &omap3xxx_timer_hwmod_class
,
285 static struct omap_hwmod omap3xxx_timer8_hwmod
= {
287 .mpu_irqs
= omap2_timer8_mpu_irqs
,
288 .main_clk
= "gpt8_fck",
292 .module_bit
= OMAP3430_EN_GPT8_SHIFT
,
293 .module_offs
= OMAP3430_PER_MOD
,
295 .idlest_idle_bit
= OMAP3430_ST_GPT8_SHIFT
,
298 .dev_attr
= &capability_pwm_dev_attr
,
299 .class = &omap3xxx_timer_hwmod_class
,
303 static struct omap_hwmod omap3xxx_timer9_hwmod
= {
305 .mpu_irqs
= omap2_timer9_mpu_irqs
,
306 .main_clk
= "gpt9_fck",
310 .module_bit
= OMAP3430_EN_GPT9_SHIFT
,
311 .module_offs
= OMAP3430_PER_MOD
,
313 .idlest_idle_bit
= OMAP3430_ST_GPT9_SHIFT
,
316 .dev_attr
= &capability_pwm_dev_attr
,
317 .class = &omap3xxx_timer_hwmod_class
,
321 static struct omap_hwmod omap3xxx_timer10_hwmod
= {
323 .mpu_irqs
= omap2_timer10_mpu_irqs
,
324 .main_clk
= "gpt10_fck",
328 .module_bit
= OMAP3430_EN_GPT10_SHIFT
,
329 .module_offs
= CORE_MOD
,
331 .idlest_idle_bit
= OMAP3430_ST_GPT10_SHIFT
,
334 .dev_attr
= &capability_pwm_dev_attr
,
335 .class = &omap3xxx_timer_1ms_hwmod_class
,
339 static struct omap_hwmod omap3xxx_timer11_hwmod
= {
341 .mpu_irqs
= omap2_timer11_mpu_irqs
,
342 .main_clk
= "gpt11_fck",
346 .module_bit
= OMAP3430_EN_GPT11_SHIFT
,
347 .module_offs
= CORE_MOD
,
349 .idlest_idle_bit
= OMAP3430_ST_GPT11_SHIFT
,
352 .dev_attr
= &capability_pwm_dev_attr
,
353 .class = &omap3xxx_timer_hwmod_class
,
357 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs
[] = {
362 static struct omap_hwmod omap3xxx_timer12_hwmod
= {
364 .mpu_irqs
= omap3xxx_timer12_mpu_irqs
,
365 .main_clk
= "gpt12_fck",
369 .module_bit
= OMAP3430_EN_GPT12_SHIFT
,
370 .module_offs
= WKUP_MOD
,
372 .idlest_idle_bit
= OMAP3430_ST_GPT12_SHIFT
,
375 .dev_attr
= &capability_secure_dev_attr
,
376 .class = &omap3xxx_timer_hwmod_class
,
381 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
385 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc
= {
389 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_EMUFREE
|
390 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
391 SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
392 SYSS_HAS_RESET_STATUS
),
393 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
394 .sysc_fields
= &omap_hwmod_sysc_type1
,
398 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
402 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
403 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
404 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
405 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
406 .clockact
= CLOCKACT_TEST_ICLK
,
407 .sysc_fields
= &omap_hwmod_sysc_type1
,
410 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class
= {
412 .sysc
= &omap3xxx_wd_timer_sysc
,
413 .pre_shutdown
= &omap2_wd_timer_disable
,
414 .reset
= &omap2_wd_timer_reset
,
417 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
419 .class = &omap3xxx_wd_timer_hwmod_class
,
420 .main_clk
= "wdt2_fck",
424 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
425 .module_offs
= WKUP_MOD
,
427 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
431 * XXX: Use software supervised mode, HW supervised smartidle seems to
432 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
434 .flags
= HWMOD_SWSUP_SIDLE
,
438 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
440 .mpu_irqs
= omap2_uart1_mpu_irqs
,
441 .sdma_reqs
= omap2_uart1_sdma_reqs
,
442 .main_clk
= "uart1_fck",
445 .module_offs
= CORE_MOD
,
447 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
449 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
452 .class = &omap2_uart_class
,
456 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
458 .mpu_irqs
= omap2_uart2_mpu_irqs
,
459 .sdma_reqs
= omap2_uart2_sdma_reqs
,
460 .main_clk
= "uart2_fck",
463 .module_offs
= CORE_MOD
,
465 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
467 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
470 .class = &omap2_uart_class
,
474 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
476 .mpu_irqs
= omap2_uart3_mpu_irqs
,
477 .sdma_reqs
= omap2_uart3_sdma_reqs
,
478 .main_clk
= "uart3_fck",
481 .module_offs
= OMAP3430_PER_MOD
,
483 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
485 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
488 .class = &omap2_uart_class
,
492 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
493 { .irq
= INT_36XX_UART4_IRQ
, },
497 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
498 { .name
= "rx", .dma_req
= OMAP36XX_DMA_UART4_RX
, },
499 { .name
= "tx", .dma_req
= OMAP36XX_DMA_UART4_TX
, },
503 static struct omap_hwmod omap36xx_uart4_hwmod
= {
505 .mpu_irqs
= uart4_mpu_irqs
,
506 .sdma_reqs
= uart4_sdma_reqs
,
507 .main_clk
= "uart4_fck",
510 .module_offs
= OMAP3430_PER_MOD
,
512 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
514 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
517 .class = &omap2_uart_class
,
520 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs
[] = {
521 { .irq
= INT_35XX_UART4_IRQ
, },
524 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs
[] = {
525 { .name
= "rx", .dma_req
= AM35XX_DMA_UART4_RX
, },
526 { .name
= "tx", .dma_req
= AM35XX_DMA_UART4_TX
, },
529 static struct omap_hwmod am35xx_uart4_hwmod
= {
531 .mpu_irqs
= am35xx_uart4_mpu_irqs
,
532 .sdma_reqs
= am35xx_uart4_sdma_reqs
,
533 .main_clk
= "uart4_fck",
536 .module_offs
= CORE_MOD
,
538 .module_bit
= OMAP3430_EN_UART4_SHIFT
,
540 .idlest_idle_bit
= OMAP3430_EN_UART4_SHIFT
,
543 .class = &omap2_uart_class
,
546 static struct omap_hwmod_class i2c_class
= {
549 .rev
= OMAP_I2C_IP_VERSION_1
,
550 .reset
= &omap_i2c_reset
,
553 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
554 { .name
= "dispc", .dma_req
= 5 },
555 { .name
= "dsi1", .dma_req
= 74 },
560 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
562 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
563 * driver does not use these clocks.
565 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
566 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
567 /* required only on OMAP3430 */
568 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
571 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
573 .class = &omap2_dss_hwmod_class
,
574 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
575 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
579 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
580 .module_offs
= OMAP3430_DSS_MOD
,
582 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
585 .opt_clks
= dss_opt_clks
,
586 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
587 .flags
= HWMOD_NO_IDLEST
| HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
590 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
592 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
593 .class = &omap2_dss_hwmod_class
,
594 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
595 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
599 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
600 .module_offs
= OMAP3430_DSS_MOD
,
602 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
603 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
606 .opt_clks
= dss_opt_clks
,
607 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
615 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc
= {
619 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
620 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
622 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
623 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
624 .sysc_fields
= &omap_hwmod_sysc_type1
,
627 static struct omap_hwmod_class omap3_dispc_hwmod_class
= {
629 .sysc
= &omap3_dispc_sysc
,
632 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
634 .class = &omap3_dispc_hwmod_class
,
635 .mpu_irqs
= omap2_dispc_irqs
,
636 .main_clk
= "dss1_alwon_fck",
640 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
641 .module_offs
= OMAP3430_DSS_MOD
,
644 .flags
= HWMOD_NO_IDLEST
,
645 .dev_attr
= &omap2_3_dss_dispc_dev_attr
650 * display serial interface controller
653 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
657 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
663 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
664 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
667 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
669 .class = &omap3xxx_dsi_hwmod_class
,
670 .mpu_irqs
= omap3xxx_dsi1_irqs
,
671 .main_clk
= "dss1_alwon_fck",
675 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
676 .module_offs
= OMAP3430_DSS_MOD
,
679 .opt_clks
= dss_dsi1_opt_clks
,
680 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
681 .flags
= HWMOD_NO_IDLEST
,
684 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
685 { .role
= "ick", .clk
= "dss_ick" },
688 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
690 .class = &omap2_rfbi_hwmod_class
,
691 .main_clk
= "dss1_alwon_fck",
695 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
696 .module_offs
= OMAP3430_DSS_MOD
,
699 .opt_clks
= dss_rfbi_opt_clks
,
700 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
701 .flags
= HWMOD_NO_IDLEST
,
704 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
705 /* required only on OMAP3430 */
706 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
709 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
711 .class = &omap2_venc_hwmod_class
,
712 .main_clk
= "dss_tv_fck",
716 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
717 .module_offs
= OMAP3430_DSS_MOD
,
720 .opt_clks
= dss_venc_opt_clks
,
721 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
722 .flags
= HWMOD_NO_IDLEST
,
726 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
727 .fifo_depth
= 8, /* bytes */
728 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
729 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
730 OMAP_I2C_FLAG_BUS_SHIFT_2
,
733 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
735 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
736 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
737 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
738 .main_clk
= "i2c1_fck",
741 .module_offs
= CORE_MOD
,
743 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
745 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
749 .dev_attr
= &i2c1_dev_attr
,
753 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
754 .fifo_depth
= 8, /* bytes */
755 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
756 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
757 OMAP_I2C_FLAG_BUS_SHIFT_2
,
760 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
762 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
763 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
764 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
765 .main_clk
= "i2c2_fck",
768 .module_offs
= CORE_MOD
,
770 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
772 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
776 .dev_attr
= &i2c2_dev_attr
,
780 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
781 .fifo_depth
= 64, /* bytes */
782 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
783 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
784 OMAP_I2C_FLAG_BUS_SHIFT_2
,
787 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
788 { .irq
= INT_34XX_I2C3_IRQ
, },
792 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
793 { .name
= "tx", .dma_req
= OMAP34XX_DMA_I2C3_TX
},
794 { .name
= "rx", .dma_req
= OMAP34XX_DMA_I2C3_RX
},
798 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
800 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
801 .mpu_irqs
= i2c3_mpu_irqs
,
802 .sdma_reqs
= i2c3_sdma_reqs
,
803 .main_clk
= "i2c3_fck",
806 .module_offs
= CORE_MOD
,
808 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
810 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
814 .dev_attr
= &i2c3_dev_attr
,
819 * general purpose io module
822 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
826 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
827 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
828 SYSS_HAS_RESET_STATUS
),
829 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
830 .sysc_fields
= &omap_hwmod_sysc_type1
,
833 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
835 .sysc
= &omap3xxx_gpio_sysc
,
840 static struct omap_gpio_dev_attr gpio_dev_attr
= {
846 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
847 { .role
= "dbclk", .clk
= "gpio1_dbck", },
850 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
852 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
853 .mpu_irqs
= omap2_gpio1_irqs
,
854 .main_clk
= "gpio1_ick",
855 .opt_clks
= gpio1_opt_clks
,
856 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
860 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
861 .module_offs
= WKUP_MOD
,
863 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
866 .class = &omap3xxx_gpio_hwmod_class
,
867 .dev_attr
= &gpio_dev_attr
,
871 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
872 { .role
= "dbclk", .clk
= "gpio2_dbck", },
875 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
877 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
878 .mpu_irqs
= omap2_gpio2_irqs
,
879 .main_clk
= "gpio2_ick",
880 .opt_clks
= gpio2_opt_clks
,
881 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
885 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
886 .module_offs
= OMAP3430_PER_MOD
,
888 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
891 .class = &omap3xxx_gpio_hwmod_class
,
892 .dev_attr
= &gpio_dev_attr
,
896 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
897 { .role
= "dbclk", .clk
= "gpio3_dbck", },
900 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
902 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
903 .mpu_irqs
= omap2_gpio3_irqs
,
904 .main_clk
= "gpio3_ick",
905 .opt_clks
= gpio3_opt_clks
,
906 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
910 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
911 .module_offs
= OMAP3430_PER_MOD
,
913 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
916 .class = &omap3xxx_gpio_hwmod_class
,
917 .dev_attr
= &gpio_dev_attr
,
921 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
922 { .role
= "dbclk", .clk
= "gpio4_dbck", },
925 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
927 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
928 .mpu_irqs
= omap2_gpio4_irqs
,
929 .main_clk
= "gpio4_ick",
930 .opt_clks
= gpio4_opt_clks
,
931 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
935 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
936 .module_offs
= OMAP3430_PER_MOD
,
938 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
941 .class = &omap3xxx_gpio_hwmod_class
,
942 .dev_attr
= &gpio_dev_attr
,
946 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
947 { .irq
= 33 }, /* INT_34XX_GPIO_BANK5 */
951 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
952 { .role
= "dbclk", .clk
= "gpio5_dbck", },
955 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
957 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
958 .mpu_irqs
= omap3xxx_gpio5_irqs
,
959 .main_clk
= "gpio5_ick",
960 .opt_clks
= gpio5_opt_clks
,
961 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
965 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
966 .module_offs
= OMAP3430_PER_MOD
,
968 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
971 .class = &omap3xxx_gpio_hwmod_class
,
972 .dev_attr
= &gpio_dev_attr
,
976 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
977 { .irq
= 34 }, /* INT_34XX_GPIO_BANK6 */
981 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
982 { .role
= "dbclk", .clk
= "gpio6_dbck", },
985 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
987 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
988 .mpu_irqs
= omap3xxx_gpio6_irqs
,
989 .main_clk
= "gpio6_ick",
990 .opt_clks
= gpio6_opt_clks
,
991 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
995 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
996 .module_offs
= OMAP3430_PER_MOD
,
998 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
1001 .class = &omap3xxx_gpio_hwmod_class
,
1002 .dev_attr
= &gpio_dev_attr
,
1005 /* dma attributes */
1006 static struct omap_dma_dev_attr dma_dev_attr
= {
1007 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1008 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
1012 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
1014 .sysc_offs
= 0x002c,
1015 .syss_offs
= 0x0028,
1016 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1017 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1018 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
1019 SYSS_HAS_RESET_STATUS
),
1020 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1021 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1022 .sysc_fields
= &omap_hwmod_sysc_type1
,
1025 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
1027 .sysc
= &omap3xxx_dma_sysc
,
1031 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
1033 .class = &omap3xxx_dma_hwmod_class
,
1034 .mpu_irqs
= omap2_dma_system_irqs
,
1035 .main_clk
= "core_l3_ick",
1038 .module_offs
= CORE_MOD
,
1040 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
1042 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
1045 .dev_attr
= &dma_dev_attr
,
1046 .flags
= HWMOD_NO_IDLEST
,
1051 * multi channel buffered serial port controller
1054 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
1055 .sysc_offs
= 0x008c,
1056 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1057 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1058 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1059 .sysc_fields
= &omap_hwmod_sysc_type1
,
1063 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
1065 .sysc
= &omap3xxx_mcbsp_sysc
,
1066 .rev
= MCBSP_CONFIG_TYPE3
,
1069 /* McBSP functional clock mapping */
1070 static struct omap_hwmod_opt_clk mcbsp15_opt_clks
[] = {
1071 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1072 { .role
= "prcm_fck", .clk
= "core_96m_fck" },
1075 static struct omap_hwmod_opt_clk mcbsp234_opt_clks
[] = {
1076 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1077 { .role
= "prcm_fck", .clk
= "per_96m_fck" },
1081 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
1082 { .name
= "common", .irq
= 16 },
1083 { .name
= "tx", .irq
= 59 },
1084 { .name
= "rx", .irq
= 60 },
1088 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
1090 .class = &omap3xxx_mcbsp_hwmod_class
,
1091 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
1092 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
1093 .main_clk
= "mcbsp1_fck",
1097 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
1098 .module_offs
= CORE_MOD
,
1100 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
1103 .opt_clks
= mcbsp15_opt_clks
,
1104 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1108 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
1109 { .name
= "common", .irq
= 17 },
1110 { .name
= "tx", .irq
= 62 },
1111 { .name
= "rx", .irq
= 63 },
1115 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
1116 .sidetone
= "mcbsp2_sidetone",
1119 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
1121 .class = &omap3xxx_mcbsp_hwmod_class
,
1122 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
1123 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
1124 .main_clk
= "mcbsp2_fck",
1128 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1129 .module_offs
= OMAP3430_PER_MOD
,
1131 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1134 .opt_clks
= mcbsp234_opt_clks
,
1135 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1136 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
1140 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
1141 { .name
= "common", .irq
= 22 },
1142 { .name
= "tx", .irq
= 89 },
1143 { .name
= "rx", .irq
= 90 },
1147 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
1148 .sidetone
= "mcbsp3_sidetone",
1151 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
1153 .class = &omap3xxx_mcbsp_hwmod_class
,
1154 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
1155 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
1156 .main_clk
= "mcbsp3_fck",
1160 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1161 .module_offs
= OMAP3430_PER_MOD
,
1163 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1166 .opt_clks
= mcbsp234_opt_clks
,
1167 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1168 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
1172 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
1173 { .name
= "common", .irq
= 23 },
1174 { .name
= "tx", .irq
= 54 },
1175 { .name
= "rx", .irq
= 55 },
1179 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
1180 { .name
= "rx", .dma_req
= 20 },
1181 { .name
= "tx", .dma_req
= 19 },
1185 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
1187 .class = &omap3xxx_mcbsp_hwmod_class
,
1188 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
1189 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
1190 .main_clk
= "mcbsp4_fck",
1194 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
1195 .module_offs
= OMAP3430_PER_MOD
,
1197 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
1200 .opt_clks
= mcbsp234_opt_clks
,
1201 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1205 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
1206 { .name
= "common", .irq
= 27 },
1207 { .name
= "tx", .irq
= 81 },
1208 { .name
= "rx", .irq
= 82 },
1212 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
1213 { .name
= "rx", .dma_req
= 22 },
1214 { .name
= "tx", .dma_req
= 21 },
1218 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
1220 .class = &omap3xxx_mcbsp_hwmod_class
,
1221 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
1222 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
1223 .main_clk
= "mcbsp5_fck",
1227 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
1228 .module_offs
= CORE_MOD
,
1230 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
1233 .opt_clks
= mcbsp15_opt_clks
,
1234 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1237 /* 'mcbsp sidetone' class */
1238 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
1239 .sysc_offs
= 0x0010,
1240 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
1241 .sysc_fields
= &omap_hwmod_sysc_type1
,
1244 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
1245 .name
= "mcbsp_sidetone",
1246 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
1249 /* mcbsp2_sidetone */
1250 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
1251 { .name
= "irq", .irq
= 4 },
1255 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
1256 .name
= "mcbsp2_sidetone",
1257 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1258 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
1259 .main_clk
= "mcbsp2_fck",
1263 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1264 .module_offs
= OMAP3430_PER_MOD
,
1266 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1271 /* mcbsp3_sidetone */
1272 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
1273 { .name
= "irq", .irq
= 5 },
1277 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
1278 .name
= "mcbsp3_sidetone",
1279 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1280 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
1281 .main_clk
= "mcbsp3_fck",
1285 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1286 .module_offs
= OMAP3430_PER_MOD
,
1288 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1294 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
1298 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
1300 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
1301 .clockact
= CLOCKACT_TEST_ICLK
,
1302 .sysc_fields
= &omap34xx_sr_sysc_fields
,
1305 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
1306 .name
= "smartreflex",
1307 .sysc
= &omap34xx_sr_sysc
,
1311 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
1316 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
1318 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1319 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1321 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1324 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
1325 .name
= "smartreflex",
1326 .sysc
= &omap36xx_sr_sysc
,
1331 static struct omap_smartreflex_dev_attr sr1_dev_attr
= {
1332 .sensor_voltdm_name
= "mpu_iva",
1335 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs
[] = {
1340 static struct omap_hwmod omap34xx_sr1_hwmod
= {
1342 .class = &omap34xx_smartreflex_hwmod_class
,
1343 .main_clk
= "sr1_fck",
1347 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1348 .module_offs
= WKUP_MOD
,
1350 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1353 .dev_attr
= &sr1_dev_attr
,
1354 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1355 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1358 static struct omap_hwmod omap36xx_sr1_hwmod
= {
1360 .class = &omap36xx_smartreflex_hwmod_class
,
1361 .main_clk
= "sr1_fck",
1365 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1366 .module_offs
= WKUP_MOD
,
1368 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1371 .dev_attr
= &sr1_dev_attr
,
1372 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1376 static struct omap_smartreflex_dev_attr sr2_dev_attr
= {
1377 .sensor_voltdm_name
= "core",
1380 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs
[] = {
1385 static struct omap_hwmod omap34xx_sr2_hwmod
= {
1387 .class = &omap34xx_smartreflex_hwmod_class
,
1388 .main_clk
= "sr2_fck",
1392 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1393 .module_offs
= WKUP_MOD
,
1395 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1398 .dev_attr
= &sr2_dev_attr
,
1399 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1400 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1403 static struct omap_hwmod omap36xx_sr2_hwmod
= {
1405 .class = &omap36xx_smartreflex_hwmod_class
,
1406 .main_clk
= "sr2_fck",
1410 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1411 .module_offs
= WKUP_MOD
,
1413 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1416 .dev_attr
= &sr2_dev_attr
,
1417 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1422 * mailbox module allowing communication between the on-chip processors
1423 * using a queued mailbox-interrupt mechanism.
1426 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
1430 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1431 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1432 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1433 .sysc_fields
= &omap_hwmod_sysc_type1
,
1436 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
1438 .sysc
= &omap3xxx_mailbox_sysc
,
1441 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs
[] = {
1446 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
1448 .class = &omap3xxx_mailbox_hwmod_class
,
1449 .mpu_irqs
= omap3xxx_mailbox_irqs
,
1450 .main_clk
= "mailboxes_ick",
1454 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
1455 .module_offs
= CORE_MOD
,
1457 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
1464 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1468 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
1470 .sysc_offs
= 0x0010,
1471 .syss_offs
= 0x0014,
1472 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1473 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1474 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1475 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1476 .sysc_fields
= &omap_hwmod_sysc_type1
,
1479 static struct omap_hwmod_class omap34xx_mcspi_class
= {
1481 .sysc
= &omap34xx_mcspi_sysc
,
1482 .rev
= OMAP3_MCSPI_REV
,
1486 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1487 .num_chipselect
= 4,
1490 static struct omap_hwmod omap34xx_mcspi1
= {
1492 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
1493 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
1494 .main_clk
= "mcspi1_fck",
1497 .module_offs
= CORE_MOD
,
1499 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
1501 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
1504 .class = &omap34xx_mcspi_class
,
1505 .dev_attr
= &omap_mcspi1_dev_attr
,
1509 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
1510 .num_chipselect
= 2,
1513 static struct omap_hwmod omap34xx_mcspi2
= {
1515 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
1516 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
1517 .main_clk
= "mcspi2_fck",
1520 .module_offs
= CORE_MOD
,
1522 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
1524 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
1527 .class = &omap34xx_mcspi_class
,
1528 .dev_attr
= &omap_mcspi2_dev_attr
,
1532 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
1533 { .name
= "irq", .irq
= 91 }, /* 91 */
1537 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
1538 { .name
= "tx0", .dma_req
= 15 },
1539 { .name
= "rx0", .dma_req
= 16 },
1540 { .name
= "tx1", .dma_req
= 23 },
1541 { .name
= "rx1", .dma_req
= 24 },
1545 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
1546 .num_chipselect
= 2,
1549 static struct omap_hwmod omap34xx_mcspi3
= {
1551 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
1552 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
1553 .main_clk
= "mcspi3_fck",
1556 .module_offs
= CORE_MOD
,
1558 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
1560 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
1563 .class = &omap34xx_mcspi_class
,
1564 .dev_attr
= &omap_mcspi3_dev_attr
,
1568 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
1569 { .name
= "irq", .irq
= INT_34XX_SPI4_IRQ
}, /* 48 */
1573 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
1574 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
1575 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
1579 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
1580 .num_chipselect
= 1,
1583 static struct omap_hwmod omap34xx_mcspi4
= {
1585 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
1586 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
1587 .main_clk
= "mcspi4_fck",
1590 .module_offs
= CORE_MOD
,
1592 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
1594 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
1597 .class = &omap34xx_mcspi_class
,
1598 .dev_attr
= &omap_mcspi4_dev_attr
,
1602 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
1604 .sysc_offs
= 0x0404,
1605 .syss_offs
= 0x0408,
1606 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1607 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1609 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1610 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1611 .sysc_fields
= &omap_hwmod_sysc_type1
,
1614 static struct omap_hwmod_class usbotg_class
= {
1616 .sysc
= &omap3xxx_usbhsotg_sysc
,
1620 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
1622 { .name
= "mc", .irq
= 92 },
1623 { .name
= "dma", .irq
= 93 },
1627 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
1628 .name
= "usb_otg_hs",
1629 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
1630 .main_clk
= "hsotgusb_ick",
1634 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
1635 .module_offs
= CORE_MOD
,
1637 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
1638 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1641 .class = &usbotg_class
,
1644 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1645 * broken when autoidle is enabled
1646 * workaround is to disable the autoidle bit at module level.
1648 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
1649 | HWMOD_SWSUP_MSTANDBY
,
1653 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
1655 { .name
= "mc", .irq
= 71 },
1659 static struct omap_hwmod_class am35xx_usbotg_class
= {
1660 .name
= "am35xx_usbotg",
1664 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
1665 .name
= "am35x_otg_hs",
1666 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
1672 .class = &am35xx_usbotg_class
,
1675 /* MMC/SD/SDIO common */
1676 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
1680 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1681 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1682 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1683 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1684 .sysc_fields
= &omap_hwmod_sysc_type1
,
1687 static struct omap_hwmod_class omap34xx_mmc_class
= {
1689 .sysc
= &omap34xx_mmc_sysc
,
1694 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
1699 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
1700 { .name
= "tx", .dma_req
= 61, },
1701 { .name
= "rx", .dma_req
= 62, },
1705 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
1706 { .role
= "dbck", .clk
= "omap_32k_fck", },
1709 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
1710 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1713 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1714 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr
= {
1715 .flags
= (OMAP_HSMMC_SUPPORTS_DUAL_VOLT
|
1716 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
),
1719 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod
= {
1721 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1722 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1723 .opt_clks
= omap34xx_mmc1_opt_clks
,
1724 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1725 .main_clk
= "mmchs1_fck",
1728 .module_offs
= CORE_MOD
,
1730 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1732 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1735 .dev_attr
= &mmc1_pre_es3_dev_attr
,
1736 .class = &omap34xx_mmc_class
,
1739 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod
= {
1741 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1742 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1743 .opt_clks
= omap34xx_mmc1_opt_clks
,
1744 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1745 .main_clk
= "mmchs1_fck",
1748 .module_offs
= CORE_MOD
,
1750 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1752 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1755 .dev_attr
= &mmc1_dev_attr
,
1756 .class = &omap34xx_mmc_class
,
1761 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
1762 { .irq
= INT_24XX_MMC2_IRQ
, },
1766 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
1767 { .name
= "tx", .dma_req
= 47, },
1768 { .name
= "rx", .dma_req
= 48, },
1772 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
1773 { .role
= "dbck", .clk
= "omap_32k_fck", },
1776 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1777 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr
= {
1778 .flags
= OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
,
1781 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod
= {
1783 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1784 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1785 .opt_clks
= omap34xx_mmc2_opt_clks
,
1786 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1787 .main_clk
= "mmchs2_fck",
1790 .module_offs
= CORE_MOD
,
1792 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1794 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1797 .dev_attr
= &mmc2_pre_es3_dev_attr
,
1798 .class = &omap34xx_mmc_class
,
1801 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod
= {
1803 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1804 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1805 .opt_clks
= omap34xx_mmc2_opt_clks
,
1806 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1807 .main_clk
= "mmchs2_fck",
1810 .module_offs
= CORE_MOD
,
1812 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1814 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1817 .class = &omap34xx_mmc_class
,
1822 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
1827 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
1828 { .name
= "tx", .dma_req
= 77, },
1829 { .name
= "rx", .dma_req
= 78, },
1833 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
1834 { .role
= "dbck", .clk
= "omap_32k_fck", },
1837 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
1839 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
1840 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
1841 .opt_clks
= omap34xx_mmc3_opt_clks
,
1842 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
1843 .main_clk
= "mmchs3_fck",
1847 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
1849 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
1852 .class = &omap34xx_mmc_class
,
1856 * 'usb_host_hs' class
1857 * high-speed multi-port usb host controller
1860 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc
= {
1862 .sysc_offs
= 0x0010,
1863 .syss_offs
= 0x0014,
1864 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1865 SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1866 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1867 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1868 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1869 .sysc_fields
= &omap_hwmod_sysc_type1
,
1872 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class
= {
1873 .name
= "usb_host_hs",
1874 .sysc
= &omap3xxx_usb_host_hs_sysc
,
1877 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks
[] = {
1878 { .role
= "ehci_logic_fck", .clk
= "usbhost_120m_fck", },
1881 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs
[] = {
1882 { .name
= "ohci-irq", .irq
= 76 },
1883 { .name
= "ehci-irq", .irq
= 77 },
1887 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod
= {
1888 .name
= "usb_host_hs",
1889 .class = &omap3xxx_usb_host_hs_hwmod_class
,
1890 .clkdm_name
= "l3_init_clkdm",
1891 .mpu_irqs
= omap3xxx_usb_host_hs_irqs
,
1892 .main_clk
= "usbhost_48m_fck",
1895 .module_offs
= OMAP3430ES2_USBHOST_MOD
,
1897 .module_bit
= OMAP3430ES2_EN_USBHOST1_SHIFT
,
1899 .idlest_idle_bit
= OMAP3430ES2_ST_USBHOST_IDLE_SHIFT
,
1900 .idlest_stdby_bit
= OMAP3430ES2_ST_USBHOST_STDBY_SHIFT
,
1903 .opt_clks
= omap3xxx_usb_host_hs_opt_clks
,
1904 .opt_clks_cnt
= ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks
),
1907 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1911 * In the following configuration :
1912 * - USBHOST module is set to smart-idle mode
1913 * - PRCM asserts idle_req to the USBHOST module ( This typically
1914 * happens when the system is going to a low power mode : all ports
1915 * have been suspended, the master part of the USBHOST module has
1916 * entered the standby state, and SW has cut the functional clocks)
1917 * - an USBHOST interrupt occurs before the module is able to answer
1918 * idle_ack, typically a remote wakeup IRQ.
1919 * Then the USB HOST module will enter a deadlock situation where it
1920 * is no more accessible nor functional.
1923 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1927 * Errata: USB host EHCI may stall when entering smart-standby mode
1931 * When the USBHOST module is set to smart-standby mode, and when it is
1932 * ready to enter the standby state (i.e. all ports are suspended and
1933 * all attached devices are in suspend mode), then it can wrongly assert
1934 * the Mstandby signal too early while there are still some residual OCP
1935 * transactions ongoing. If this condition occurs, the internal state
1936 * machine may go to an undefined state and the USB link may be stuck
1937 * upon the next resume.
1940 * Don't use smart standby; use only force standby,
1941 * hence HWMOD_SWSUP_MSTANDBY
1945 * During system boot; If the hwmod framework resets the module
1946 * the module will have smart idle settings; which can lead to deadlock
1947 * (above Errata Id:i660); so, dont reset the module during boot;
1948 * Use HWMOD_INIT_NO_RESET.
1951 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
|
1952 HWMOD_INIT_NO_RESET
,
1956 * 'usb_tll_hs' class
1957 * usb_tll_hs module is the adapter on the usb_host_hs ports
1959 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc
= {
1961 .sysc_offs
= 0x0010,
1962 .syss_offs
= 0x0014,
1963 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1964 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1966 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1967 .sysc_fields
= &omap_hwmod_sysc_type1
,
1970 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class
= {
1971 .name
= "usb_tll_hs",
1972 .sysc
= &omap3xxx_usb_tll_hs_sysc
,
1975 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs
[] = {
1976 { .name
= "tll-irq", .irq
= 78 },
1980 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod
= {
1981 .name
= "usb_tll_hs",
1982 .class = &omap3xxx_usb_tll_hs_hwmod_class
,
1983 .clkdm_name
= "l3_init_clkdm",
1984 .mpu_irqs
= omap3xxx_usb_tll_hs_irqs
,
1985 .main_clk
= "usbtll_fck",
1988 .module_offs
= CORE_MOD
,
1990 .module_bit
= OMAP3430ES2_EN_USBTLL_SHIFT
,
1992 .idlest_idle_bit
= OMAP3430ES2_ST_USBTLL_SHIFT
,
1997 static struct omap_hwmod omap3xxx_hdq1w_hwmod
= {
1999 .mpu_irqs
= omap2_hdq1w_mpu_irqs
,
2000 .main_clk
= "hdq_fck",
2003 .module_offs
= CORE_MOD
,
2005 .module_bit
= OMAP3430_EN_HDQ_SHIFT
,
2007 .idlest_idle_bit
= OMAP3430_ST_HDQ_SHIFT
,
2010 .class = &omap2_hdq1w_class
,
2014 * '32K sync counter' class
2015 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2017 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc
= {
2019 .sysc_offs
= 0x0004,
2020 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
2021 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
2022 .sysc_fields
= &omap_hwmod_sysc_type1
,
2025 static struct omap_hwmod_class omap3xxx_counter_hwmod_class
= {
2027 .sysc
= &omap3xxx_counter_sysc
,
2030 static struct omap_hwmod omap3xxx_counter_32k_hwmod
= {
2031 .name
= "counter_32k",
2032 .class = &omap3xxx_counter_hwmod_class
,
2033 .clkdm_name
= "wkup_clkdm",
2034 .flags
= HWMOD_SWSUP_SIDLE
,
2035 .main_clk
= "wkup_32k_fck",
2038 .module_offs
= WKUP_MOD
,
2040 .module_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2042 .idlest_idle_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2051 /* L3 -> L4_CORE interface */
2052 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
2053 .master
= &omap3xxx_l3_main_hwmod
,
2054 .slave
= &omap3xxx_l4_core_hwmod
,
2055 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2058 /* L3 -> L4_PER interface */
2059 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
2060 .master
= &omap3xxx_l3_main_hwmod
,
2061 .slave
= &omap3xxx_l4_per_hwmod
,
2062 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2065 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
2067 .pa_start
= 0x68000000,
2068 .pa_end
= 0x6800ffff,
2069 .flags
= ADDR_TYPE_RT
,
2074 /* MPU -> L3 interface */
2075 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
2076 .master
= &omap3xxx_mpu_hwmod
,
2077 .slave
= &omap3xxx_l3_main_hwmod
,
2078 .addr
= omap3xxx_l3_main_addrs
,
2079 .user
= OCP_USER_MPU
,
2083 static struct omap_hwmod_ocp_if omap3430es1_dss__l3
= {
2084 .master
= &omap3430es1_dss_core_hwmod
,
2085 .slave
= &omap3xxx_l3_main_hwmod
,
2086 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2089 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
2090 .master
= &omap3xxx_dss_core_hwmod
,
2091 .slave
= &omap3xxx_l3_main_hwmod
,
2094 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
2095 .flags
= OMAP_FIREWALL_L3
,
2098 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2101 /* l3_core -> usbhsotg interface */
2102 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
2103 .master
= &omap3xxx_usbhsotg_hwmod
,
2104 .slave
= &omap3xxx_l3_main_hwmod
,
2105 .clk
= "core_l3_ick",
2106 .user
= OCP_USER_MPU
,
2109 /* l3_core -> am35xx_usbhsotg interface */
2110 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
2111 .master
= &am35xx_usbhsotg_hwmod
,
2112 .slave
= &omap3xxx_l3_main_hwmod
,
2113 .clk
= "core_l3_ick",
2114 .user
= OCP_USER_MPU
,
2116 /* L4_CORE -> L4_WKUP interface */
2117 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
2118 .master
= &omap3xxx_l4_core_hwmod
,
2119 .slave
= &omap3xxx_l4_wkup_hwmod
,
2120 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2123 /* L4 CORE -> MMC1 interface */
2124 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1
= {
2125 .master
= &omap3xxx_l4_core_hwmod
,
2126 .slave
= &omap3xxx_pre_es3_mmc1_hwmod
,
2127 .clk
= "mmchs1_ick",
2128 .addr
= omap2430_mmc1_addr_space
,
2129 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2130 .flags
= OMAP_FIREWALL_L4
2133 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1
= {
2134 .master
= &omap3xxx_l4_core_hwmod
,
2135 .slave
= &omap3xxx_es3plus_mmc1_hwmod
,
2136 .clk
= "mmchs1_ick",
2137 .addr
= omap2430_mmc1_addr_space
,
2138 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2139 .flags
= OMAP_FIREWALL_L4
2142 /* L4 CORE -> MMC2 interface */
2143 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2
= {
2144 .master
= &omap3xxx_l4_core_hwmod
,
2145 .slave
= &omap3xxx_pre_es3_mmc2_hwmod
,
2146 .clk
= "mmchs2_ick",
2147 .addr
= omap2430_mmc2_addr_space
,
2148 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2149 .flags
= OMAP_FIREWALL_L4
2152 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2
= {
2153 .master
= &omap3xxx_l4_core_hwmod
,
2154 .slave
= &omap3xxx_es3plus_mmc2_hwmod
,
2155 .clk
= "mmchs2_ick",
2156 .addr
= omap2430_mmc2_addr_space
,
2157 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2158 .flags
= OMAP_FIREWALL_L4
2161 /* L4 CORE -> MMC3 interface */
2162 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
2164 .pa_start
= 0x480ad000,
2165 .pa_end
= 0x480ad1ff,
2166 .flags
= ADDR_TYPE_RT
,
2171 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
2172 .master
= &omap3xxx_l4_core_hwmod
,
2173 .slave
= &omap3xxx_mmc3_hwmod
,
2174 .clk
= "mmchs3_ick",
2175 .addr
= omap3xxx_mmc3_addr_space
,
2176 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2177 .flags
= OMAP_FIREWALL_L4
2180 /* L4 CORE -> UART1 interface */
2181 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
2183 .pa_start
= OMAP3_UART1_BASE
,
2184 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
2185 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2190 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
2191 .master
= &omap3xxx_l4_core_hwmod
,
2192 .slave
= &omap3xxx_uart1_hwmod
,
2194 .addr
= omap3xxx_uart1_addr_space
,
2195 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2198 /* L4 CORE -> UART2 interface */
2199 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
2201 .pa_start
= OMAP3_UART2_BASE
,
2202 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
2203 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2208 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
2209 .master
= &omap3xxx_l4_core_hwmod
,
2210 .slave
= &omap3xxx_uart2_hwmod
,
2212 .addr
= omap3xxx_uart2_addr_space
,
2213 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2216 /* L4 PER -> UART3 interface */
2217 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
2219 .pa_start
= OMAP3_UART3_BASE
,
2220 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
2221 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2226 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
2227 .master
= &omap3xxx_l4_per_hwmod
,
2228 .slave
= &omap3xxx_uart3_hwmod
,
2230 .addr
= omap3xxx_uart3_addr_space
,
2231 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2234 /* L4 PER -> UART4 interface */
2235 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space
[] = {
2237 .pa_start
= OMAP3_UART4_BASE
,
2238 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
2239 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2244 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4
= {
2245 .master
= &omap3xxx_l4_per_hwmod
,
2246 .slave
= &omap36xx_uart4_hwmod
,
2248 .addr
= omap36xx_uart4_addr_space
,
2249 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2252 /* AM35xx: L4 CORE -> UART4 interface */
2253 static struct omap_hwmod_addr_space am35xx_uart4_addr_space
[] = {
2255 .pa_start
= OMAP3_UART4_AM35XX_BASE
,
2256 .pa_end
= OMAP3_UART4_AM35XX_BASE
+ SZ_1K
- 1,
2257 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2261 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4
= {
2262 .master
= &omap3xxx_l4_core_hwmod
,
2263 .slave
= &am35xx_uart4_hwmod
,
2265 .addr
= am35xx_uart4_addr_space
,
2266 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2269 /* L4 CORE -> I2C1 interface */
2270 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
2271 .master
= &omap3xxx_l4_core_hwmod
,
2272 .slave
= &omap3xxx_i2c1_hwmod
,
2274 .addr
= omap2_i2c1_addr_space
,
2277 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
2279 .flags
= OMAP_FIREWALL_L4
,
2282 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2285 /* L4 CORE -> I2C2 interface */
2286 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
2287 .master
= &omap3xxx_l4_core_hwmod
,
2288 .slave
= &omap3xxx_i2c2_hwmod
,
2290 .addr
= omap2_i2c2_addr_space
,
2293 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
2295 .flags
= OMAP_FIREWALL_L4
,
2298 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2301 /* L4 CORE -> I2C3 interface */
2302 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
2304 .pa_start
= 0x48060000,
2305 .pa_end
= 0x48060000 + SZ_128
- 1,
2306 .flags
= ADDR_TYPE_RT
,
2311 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
2312 .master
= &omap3xxx_l4_core_hwmod
,
2313 .slave
= &omap3xxx_i2c3_hwmod
,
2315 .addr
= omap3xxx_i2c3_addr_space
,
2318 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
2320 .flags
= OMAP_FIREWALL_L4
,
2323 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2326 /* L4 CORE -> SR1 interface */
2327 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
2329 .pa_start
= OMAP34XX_SR1_BASE
,
2330 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
2331 .flags
= ADDR_TYPE_RT
,
2336 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1
= {
2337 .master
= &omap3xxx_l4_core_hwmod
,
2338 .slave
= &omap34xx_sr1_hwmod
,
2340 .addr
= omap3_sr1_addr_space
,
2341 .user
= OCP_USER_MPU
,
2344 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1
= {
2345 .master
= &omap3xxx_l4_core_hwmod
,
2346 .slave
= &omap36xx_sr1_hwmod
,
2348 .addr
= omap3_sr1_addr_space
,
2349 .user
= OCP_USER_MPU
,
2352 /* L4 CORE -> SR1 interface */
2353 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
2355 .pa_start
= OMAP34XX_SR2_BASE
,
2356 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
2357 .flags
= ADDR_TYPE_RT
,
2362 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2
= {
2363 .master
= &omap3xxx_l4_core_hwmod
,
2364 .slave
= &omap34xx_sr2_hwmod
,
2366 .addr
= omap3_sr2_addr_space
,
2367 .user
= OCP_USER_MPU
,
2370 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2
= {
2371 .master
= &omap3xxx_l4_core_hwmod
,
2372 .slave
= &omap36xx_sr2_hwmod
,
2374 .addr
= omap3_sr2_addr_space
,
2375 .user
= OCP_USER_MPU
,
2378 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
2380 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
2381 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
2382 .flags
= ADDR_TYPE_RT
2387 /* l4_core -> usbhsotg */
2388 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
2389 .master
= &omap3xxx_l4_core_hwmod
,
2390 .slave
= &omap3xxx_usbhsotg_hwmod
,
2392 .addr
= omap3xxx_usbhsotg_addrs
,
2393 .user
= OCP_USER_MPU
,
2396 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
2398 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
2399 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
2400 .flags
= ADDR_TYPE_RT
2405 /* l4_core -> usbhsotg */
2406 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
2407 .master
= &omap3xxx_l4_core_hwmod
,
2408 .slave
= &am35xx_usbhsotg_hwmod
,
2410 .addr
= am35xx_usbhsotg_addrs
,
2411 .user
= OCP_USER_MPU
,
2414 /* L4_WKUP -> L4_SEC interface */
2415 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec
= {
2416 .master
= &omap3xxx_l4_wkup_hwmod
,
2417 .slave
= &omap3xxx_l4_sec_hwmod
,
2418 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2421 /* IVA2 <- L3 interface */
2422 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
2423 .master
= &omap3xxx_l3_main_hwmod
,
2424 .slave
= &omap3xxx_iva_hwmod
,
2425 .clk
= "core_l3_ick",
2426 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2429 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
2431 .pa_start
= 0x48318000,
2432 .pa_end
= 0x48318000 + SZ_1K
- 1,
2433 .flags
= ADDR_TYPE_RT
2438 /* l4_wkup -> timer1 */
2439 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
2440 .master
= &omap3xxx_l4_wkup_hwmod
,
2441 .slave
= &omap3xxx_timer1_hwmod
,
2443 .addr
= omap3xxx_timer1_addrs
,
2444 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2447 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
2449 .pa_start
= 0x49032000,
2450 .pa_end
= 0x49032000 + SZ_1K
- 1,
2451 .flags
= ADDR_TYPE_RT
2456 /* l4_per -> timer2 */
2457 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
2458 .master
= &omap3xxx_l4_per_hwmod
,
2459 .slave
= &omap3xxx_timer2_hwmod
,
2461 .addr
= omap3xxx_timer2_addrs
,
2462 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2465 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
2467 .pa_start
= 0x49034000,
2468 .pa_end
= 0x49034000 + SZ_1K
- 1,
2469 .flags
= ADDR_TYPE_RT
2474 /* l4_per -> timer3 */
2475 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
2476 .master
= &omap3xxx_l4_per_hwmod
,
2477 .slave
= &omap3xxx_timer3_hwmod
,
2479 .addr
= omap3xxx_timer3_addrs
,
2480 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2483 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
2485 .pa_start
= 0x49036000,
2486 .pa_end
= 0x49036000 + SZ_1K
- 1,
2487 .flags
= ADDR_TYPE_RT
2492 /* l4_per -> timer4 */
2493 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
2494 .master
= &omap3xxx_l4_per_hwmod
,
2495 .slave
= &omap3xxx_timer4_hwmod
,
2497 .addr
= omap3xxx_timer4_addrs
,
2498 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2501 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
2503 .pa_start
= 0x49038000,
2504 .pa_end
= 0x49038000 + SZ_1K
- 1,
2505 .flags
= ADDR_TYPE_RT
2510 /* l4_per -> timer5 */
2511 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
2512 .master
= &omap3xxx_l4_per_hwmod
,
2513 .slave
= &omap3xxx_timer5_hwmod
,
2515 .addr
= omap3xxx_timer5_addrs
,
2516 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2519 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
2521 .pa_start
= 0x4903A000,
2522 .pa_end
= 0x4903A000 + SZ_1K
- 1,
2523 .flags
= ADDR_TYPE_RT
2528 /* l4_per -> timer6 */
2529 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
2530 .master
= &omap3xxx_l4_per_hwmod
,
2531 .slave
= &omap3xxx_timer6_hwmod
,
2533 .addr
= omap3xxx_timer6_addrs
,
2534 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2537 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
2539 .pa_start
= 0x4903C000,
2540 .pa_end
= 0x4903C000 + SZ_1K
- 1,
2541 .flags
= ADDR_TYPE_RT
2546 /* l4_per -> timer7 */
2547 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
2548 .master
= &omap3xxx_l4_per_hwmod
,
2549 .slave
= &omap3xxx_timer7_hwmod
,
2551 .addr
= omap3xxx_timer7_addrs
,
2552 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2555 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
2557 .pa_start
= 0x4903E000,
2558 .pa_end
= 0x4903E000 + SZ_1K
- 1,
2559 .flags
= ADDR_TYPE_RT
2564 /* l4_per -> timer8 */
2565 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
2566 .master
= &omap3xxx_l4_per_hwmod
,
2567 .slave
= &omap3xxx_timer8_hwmod
,
2569 .addr
= omap3xxx_timer8_addrs
,
2570 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2573 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
2575 .pa_start
= 0x49040000,
2576 .pa_end
= 0x49040000 + SZ_1K
- 1,
2577 .flags
= ADDR_TYPE_RT
2582 /* l4_per -> timer9 */
2583 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
2584 .master
= &omap3xxx_l4_per_hwmod
,
2585 .slave
= &omap3xxx_timer9_hwmod
,
2587 .addr
= omap3xxx_timer9_addrs
,
2588 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2591 /* l4_core -> timer10 */
2592 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
2593 .master
= &omap3xxx_l4_core_hwmod
,
2594 .slave
= &omap3xxx_timer10_hwmod
,
2596 .addr
= omap2_timer10_addrs
,
2597 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2600 /* l4_core -> timer11 */
2601 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
2602 .master
= &omap3xxx_l4_core_hwmod
,
2603 .slave
= &omap3xxx_timer11_hwmod
,
2605 .addr
= omap2_timer11_addrs
,
2606 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2609 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
2611 .pa_start
= 0x48304000,
2612 .pa_end
= 0x48304000 + SZ_1K
- 1,
2613 .flags
= ADDR_TYPE_RT
2618 /* l4_core -> timer12 */
2619 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12
= {
2620 .master
= &omap3xxx_l4_sec_hwmod
,
2621 .slave
= &omap3xxx_timer12_hwmod
,
2623 .addr
= omap3xxx_timer12_addrs
,
2624 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2627 /* l4_wkup -> wd_timer2 */
2628 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
2630 .pa_start
= 0x48314000,
2631 .pa_end
= 0x4831407f,
2632 .flags
= ADDR_TYPE_RT
2637 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
2638 .master
= &omap3xxx_l4_wkup_hwmod
,
2639 .slave
= &omap3xxx_wd_timer2_hwmod
,
2641 .addr
= omap3xxx_wd_timer2_addrs
,
2642 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2645 /* l4_core -> dss */
2646 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
2647 .master
= &omap3xxx_l4_core_hwmod
,
2648 .slave
= &omap3430es1_dss_core_hwmod
,
2650 .addr
= omap2_dss_addrs
,
2653 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
2654 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2655 .flags
= OMAP_FIREWALL_L4
,
2658 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2661 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
2662 .master
= &omap3xxx_l4_core_hwmod
,
2663 .slave
= &omap3xxx_dss_core_hwmod
,
2665 .addr
= omap2_dss_addrs
,
2668 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
2669 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2670 .flags
= OMAP_FIREWALL_L4
,
2673 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2676 /* l4_core -> dss_dispc */
2677 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
2678 .master
= &omap3xxx_l4_core_hwmod
,
2679 .slave
= &omap3xxx_dss_dispc_hwmod
,
2681 .addr
= omap2_dss_dispc_addrs
,
2684 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
2685 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2686 .flags
= OMAP_FIREWALL_L4
,
2689 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2692 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
2694 .pa_start
= 0x4804FC00,
2695 .pa_end
= 0x4804FFFF,
2696 .flags
= ADDR_TYPE_RT
2701 /* l4_core -> dss_dsi1 */
2702 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
2703 .master
= &omap3xxx_l4_core_hwmod
,
2704 .slave
= &omap3xxx_dss_dsi1_hwmod
,
2706 .addr
= omap3xxx_dss_dsi1_addrs
,
2709 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
2710 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2711 .flags
= OMAP_FIREWALL_L4
,
2714 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2717 /* l4_core -> dss_rfbi */
2718 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
2719 .master
= &omap3xxx_l4_core_hwmod
,
2720 .slave
= &omap3xxx_dss_rfbi_hwmod
,
2722 .addr
= omap2_dss_rfbi_addrs
,
2725 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
2726 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2727 .flags
= OMAP_FIREWALL_L4
,
2730 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2733 /* l4_core -> dss_venc */
2734 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
2735 .master
= &omap3xxx_l4_core_hwmod
,
2736 .slave
= &omap3xxx_dss_venc_hwmod
,
2738 .addr
= omap2_dss_venc_addrs
,
2741 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
2742 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2743 .flags
= OMAP_FIREWALL_L4
,
2746 .flags
= OCPIF_SWSUP_IDLE
,
2747 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2750 /* l4_wkup -> gpio1 */
2751 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
2753 .pa_start
= 0x48310000,
2754 .pa_end
= 0x483101ff,
2755 .flags
= ADDR_TYPE_RT
2760 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
2761 .master
= &omap3xxx_l4_wkup_hwmod
,
2762 .slave
= &omap3xxx_gpio1_hwmod
,
2763 .addr
= omap3xxx_gpio1_addrs
,
2764 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2767 /* l4_per -> gpio2 */
2768 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
2770 .pa_start
= 0x49050000,
2771 .pa_end
= 0x490501ff,
2772 .flags
= ADDR_TYPE_RT
2777 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
2778 .master
= &omap3xxx_l4_per_hwmod
,
2779 .slave
= &omap3xxx_gpio2_hwmod
,
2780 .addr
= omap3xxx_gpio2_addrs
,
2781 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2784 /* l4_per -> gpio3 */
2785 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
2787 .pa_start
= 0x49052000,
2788 .pa_end
= 0x490521ff,
2789 .flags
= ADDR_TYPE_RT
2794 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
2795 .master
= &omap3xxx_l4_per_hwmod
,
2796 .slave
= &omap3xxx_gpio3_hwmod
,
2797 .addr
= omap3xxx_gpio3_addrs
,
2798 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2801 /* l4_per -> gpio4 */
2802 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
2804 .pa_start
= 0x49054000,
2805 .pa_end
= 0x490541ff,
2806 .flags
= ADDR_TYPE_RT
2811 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
2812 .master
= &omap3xxx_l4_per_hwmod
,
2813 .slave
= &omap3xxx_gpio4_hwmod
,
2814 .addr
= omap3xxx_gpio4_addrs
,
2815 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2818 /* l4_per -> gpio5 */
2819 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
2821 .pa_start
= 0x49056000,
2822 .pa_end
= 0x490561ff,
2823 .flags
= ADDR_TYPE_RT
2828 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
2829 .master
= &omap3xxx_l4_per_hwmod
,
2830 .slave
= &omap3xxx_gpio5_hwmod
,
2831 .addr
= omap3xxx_gpio5_addrs
,
2832 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2835 /* l4_per -> gpio6 */
2836 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
2838 .pa_start
= 0x49058000,
2839 .pa_end
= 0x490581ff,
2840 .flags
= ADDR_TYPE_RT
2845 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
2846 .master
= &omap3xxx_l4_per_hwmod
,
2847 .slave
= &omap3xxx_gpio6_hwmod
,
2848 .addr
= omap3xxx_gpio6_addrs
,
2849 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2852 /* dma_system -> L3 */
2853 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
2854 .master
= &omap3xxx_dma_system_hwmod
,
2855 .slave
= &omap3xxx_l3_main_hwmod
,
2856 .clk
= "core_l3_ick",
2857 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2860 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
2862 .pa_start
= 0x48056000,
2863 .pa_end
= 0x48056fff,
2864 .flags
= ADDR_TYPE_RT
2869 /* l4_cfg -> dma_system */
2870 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
2871 .master
= &omap3xxx_l4_core_hwmod
,
2872 .slave
= &omap3xxx_dma_system_hwmod
,
2873 .clk
= "core_l4_ick",
2874 .addr
= omap3xxx_dma_system_addrs
,
2875 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2878 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
2881 .pa_start
= 0x48074000,
2882 .pa_end
= 0x480740ff,
2883 .flags
= ADDR_TYPE_RT
2888 /* l4_core -> mcbsp1 */
2889 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
2890 .master
= &omap3xxx_l4_core_hwmod
,
2891 .slave
= &omap3xxx_mcbsp1_hwmod
,
2892 .clk
= "mcbsp1_ick",
2893 .addr
= omap3xxx_mcbsp1_addrs
,
2894 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2897 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
2900 .pa_start
= 0x49022000,
2901 .pa_end
= 0x490220ff,
2902 .flags
= ADDR_TYPE_RT
2907 /* l4_per -> mcbsp2 */
2908 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
2909 .master
= &omap3xxx_l4_per_hwmod
,
2910 .slave
= &omap3xxx_mcbsp2_hwmod
,
2911 .clk
= "mcbsp2_ick",
2912 .addr
= omap3xxx_mcbsp2_addrs
,
2913 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2916 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
2919 .pa_start
= 0x49024000,
2920 .pa_end
= 0x490240ff,
2921 .flags
= ADDR_TYPE_RT
2926 /* l4_per -> mcbsp3 */
2927 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
2928 .master
= &omap3xxx_l4_per_hwmod
,
2929 .slave
= &omap3xxx_mcbsp3_hwmod
,
2930 .clk
= "mcbsp3_ick",
2931 .addr
= omap3xxx_mcbsp3_addrs
,
2932 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2935 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
2938 .pa_start
= 0x49026000,
2939 .pa_end
= 0x490260ff,
2940 .flags
= ADDR_TYPE_RT
2945 /* l4_per -> mcbsp4 */
2946 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
2947 .master
= &omap3xxx_l4_per_hwmod
,
2948 .slave
= &omap3xxx_mcbsp4_hwmod
,
2949 .clk
= "mcbsp4_ick",
2950 .addr
= omap3xxx_mcbsp4_addrs
,
2951 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2954 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
2957 .pa_start
= 0x48096000,
2958 .pa_end
= 0x480960ff,
2959 .flags
= ADDR_TYPE_RT
2964 /* l4_core -> mcbsp5 */
2965 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
2966 .master
= &omap3xxx_l4_core_hwmod
,
2967 .slave
= &omap3xxx_mcbsp5_hwmod
,
2968 .clk
= "mcbsp5_ick",
2969 .addr
= omap3xxx_mcbsp5_addrs
,
2970 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2973 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
2976 .pa_start
= 0x49028000,
2977 .pa_end
= 0x490280ff,
2978 .flags
= ADDR_TYPE_RT
2983 /* l4_per -> mcbsp2_sidetone */
2984 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
2985 .master
= &omap3xxx_l4_per_hwmod
,
2986 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
2987 .clk
= "mcbsp2_ick",
2988 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
2989 .user
= OCP_USER_MPU
,
2992 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
2995 .pa_start
= 0x4902A000,
2996 .pa_end
= 0x4902A0ff,
2997 .flags
= ADDR_TYPE_RT
3002 /* l4_per -> mcbsp3_sidetone */
3003 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
3004 .master
= &omap3xxx_l4_per_hwmod
,
3005 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
3006 .clk
= "mcbsp3_ick",
3007 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
3008 .user
= OCP_USER_MPU
,
3011 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs
[] = {
3013 .pa_start
= 0x48094000,
3014 .pa_end
= 0x480941ff,
3015 .flags
= ADDR_TYPE_RT
,
3020 /* l4_core -> mailbox */
3021 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
3022 .master
= &omap3xxx_l4_core_hwmod
,
3023 .slave
= &omap3xxx_mailbox_hwmod
,
3024 .addr
= omap3xxx_mailbox_addrs
,
3025 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3028 /* l4 core -> mcspi1 interface */
3029 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
3030 .master
= &omap3xxx_l4_core_hwmod
,
3031 .slave
= &omap34xx_mcspi1
,
3032 .clk
= "mcspi1_ick",
3033 .addr
= omap2_mcspi1_addr_space
,
3034 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3037 /* l4 core -> mcspi2 interface */
3038 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
3039 .master
= &omap3xxx_l4_core_hwmod
,
3040 .slave
= &omap34xx_mcspi2
,
3041 .clk
= "mcspi2_ick",
3042 .addr
= omap2_mcspi2_addr_space
,
3043 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3046 /* l4 core -> mcspi3 interface */
3047 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
3048 .master
= &omap3xxx_l4_core_hwmod
,
3049 .slave
= &omap34xx_mcspi3
,
3050 .clk
= "mcspi3_ick",
3051 .addr
= omap2430_mcspi3_addr_space
,
3052 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3055 /* l4 core -> mcspi4 interface */
3056 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
3058 .pa_start
= 0x480ba000,
3059 .pa_end
= 0x480ba0ff,
3060 .flags
= ADDR_TYPE_RT
,
3065 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
3066 .master
= &omap3xxx_l4_core_hwmod
,
3067 .slave
= &omap34xx_mcspi4
,
3068 .clk
= "mcspi4_ick",
3069 .addr
= omap34xx_mcspi4_addr_space
,
3070 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3073 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2
= {
3074 .master
= &omap3xxx_usb_host_hs_hwmod
,
3075 .slave
= &omap3xxx_l3_main_hwmod
,
3076 .clk
= "core_l3_ick",
3077 .user
= OCP_USER_MPU
,
3080 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs
[] = {
3083 .pa_start
= 0x48064000,
3084 .pa_end
= 0x480643ff,
3085 .flags
= ADDR_TYPE_RT
3089 .pa_start
= 0x48064400,
3090 .pa_end
= 0x480647ff,
3094 .pa_start
= 0x48064800,
3095 .pa_end
= 0x48064cff,
3100 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs
= {
3101 .master
= &omap3xxx_l4_core_hwmod
,
3102 .slave
= &omap3xxx_usb_host_hs_hwmod
,
3103 .clk
= "usbhost_ick",
3104 .addr
= omap3xxx_usb_host_hs_addrs
,
3105 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3108 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs
[] = {
3111 .pa_start
= 0x48062000,
3112 .pa_end
= 0x48062fff,
3113 .flags
= ADDR_TYPE_RT
3118 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs
= {
3119 .master
= &omap3xxx_l4_core_hwmod
,
3120 .slave
= &omap3xxx_usb_tll_hs_hwmod
,
3121 .clk
= "usbtll_ick",
3122 .addr
= omap3xxx_usb_tll_hs_addrs
,
3123 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3126 /* l4_core -> hdq1w interface */
3127 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w
= {
3128 .master
= &omap3xxx_l4_core_hwmod
,
3129 .slave
= &omap3xxx_hdq1w_hwmod
,
3131 .addr
= omap2_hdq1w_addr_space
,
3132 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3133 .flags
= OMAP_FIREWALL_L4
| OCPIF_SWSUP_IDLE
,
3136 /* l4_wkup -> 32ksync_counter */
3137 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs
[] = {
3139 .pa_start
= 0x48320000,
3140 .pa_end
= 0x4832001f,
3141 .flags
= ADDR_TYPE_RT
3146 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k
= {
3147 .master
= &omap3xxx_l4_wkup_hwmod
,
3148 .slave
= &omap3xxx_counter_32k_hwmod
,
3149 .clk
= "omap_32ksync_ick",
3150 .addr
= omap3xxx_counter_32k_addrs
,
3151 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3154 static struct omap_hwmod_ocp_if
*omap3xxx_hwmod_ocp_ifs
[] __initdata
= {
3155 &omap3xxx_l3_main__l4_core
,
3156 &omap3xxx_l3_main__l4_per
,
3157 &omap3xxx_mpu__l3_main
,
3158 &omap3xxx_l4_core__l4_wkup
,
3159 &omap3xxx_l4_core__mmc3
,
3160 &omap3_l4_core__uart1
,
3161 &omap3_l4_core__uart2
,
3162 &omap3_l4_per__uart3
,
3163 &omap3_l4_core__i2c1
,
3164 &omap3_l4_core__i2c2
,
3165 &omap3_l4_core__i2c3
,
3166 &omap3xxx_l4_wkup__l4_sec
,
3167 &omap3xxx_l4_wkup__timer1
,
3168 &omap3xxx_l4_per__timer2
,
3169 &omap3xxx_l4_per__timer3
,
3170 &omap3xxx_l4_per__timer4
,
3171 &omap3xxx_l4_per__timer5
,
3172 &omap3xxx_l4_per__timer6
,
3173 &omap3xxx_l4_per__timer7
,
3174 &omap3xxx_l4_per__timer8
,
3175 &omap3xxx_l4_per__timer9
,
3176 &omap3xxx_l4_core__timer10
,
3177 &omap3xxx_l4_core__timer11
,
3178 &omap3xxx_l4_wkup__wd_timer2
,
3179 &omap3xxx_l4_wkup__gpio1
,
3180 &omap3xxx_l4_per__gpio2
,
3181 &omap3xxx_l4_per__gpio3
,
3182 &omap3xxx_l4_per__gpio4
,
3183 &omap3xxx_l4_per__gpio5
,
3184 &omap3xxx_l4_per__gpio6
,
3185 &omap3xxx_dma_system__l3
,
3186 &omap3xxx_l4_core__dma_system
,
3187 &omap3xxx_l4_core__mcbsp1
,
3188 &omap3xxx_l4_per__mcbsp2
,
3189 &omap3xxx_l4_per__mcbsp3
,
3190 &omap3xxx_l4_per__mcbsp4
,
3191 &omap3xxx_l4_core__mcbsp5
,
3192 &omap3xxx_l4_per__mcbsp2_sidetone
,
3193 &omap3xxx_l4_per__mcbsp3_sidetone
,
3194 &omap34xx_l4_core__mcspi1
,
3195 &omap34xx_l4_core__mcspi2
,
3196 &omap34xx_l4_core__mcspi3
,
3197 &omap34xx_l4_core__mcspi4
,
3198 &omap3xxx_l4_wkup__counter_32k
,
3202 /* GP-only hwmod links */
3203 static struct omap_hwmod_ocp_if
*omap3xxx_gp_hwmod_ocp_ifs
[] __initdata
= {
3204 &omap3xxx_l4_sec__timer12
,
3208 /* 3430ES1-only hwmod links */
3209 static struct omap_hwmod_ocp_if
*omap3430es1_hwmod_ocp_ifs
[] __initdata
= {
3210 &omap3430es1_dss__l3
,
3211 &omap3430es1_l4_core__dss
,
3215 /* 3430ES2+-only hwmod links */
3216 static struct omap_hwmod_ocp_if
*omap3430es2plus_hwmod_ocp_ifs
[] __initdata
= {
3218 &omap3xxx_l4_core__dss
,
3219 &omap3xxx_usbhsotg__l3
,
3220 &omap3xxx_l4_core__usbhsotg
,
3221 &omap3xxx_usb_host_hs__l3_main_2
,
3222 &omap3xxx_l4_core__usb_host_hs
,
3223 &omap3xxx_l4_core__usb_tll_hs
,
3227 /* <= 3430ES3-only hwmod links */
3228 static struct omap_hwmod_ocp_if
*omap3430_pre_es3_hwmod_ocp_ifs
[] __initdata
= {
3229 &omap3xxx_l4_core__pre_es3_mmc1
,
3230 &omap3xxx_l4_core__pre_es3_mmc2
,
3234 /* 3430ES3+-only hwmod links */
3235 static struct omap_hwmod_ocp_if
*omap3430_es3plus_hwmod_ocp_ifs
[] __initdata
= {
3236 &omap3xxx_l4_core__es3plus_mmc1
,
3237 &omap3xxx_l4_core__es3plus_mmc2
,
3241 /* 34xx-only hwmod links (all ES revisions) */
3242 static struct omap_hwmod_ocp_if
*omap34xx_hwmod_ocp_ifs
[] __initdata
= {
3244 &omap34xx_l4_core__sr1
,
3245 &omap34xx_l4_core__sr2
,
3246 &omap3xxx_l4_core__mailbox
,
3247 &omap3xxx_l4_core__hdq1w
,
3251 /* 36xx-only hwmod links (all ES revisions) */
3252 static struct omap_hwmod_ocp_if
*omap36xx_hwmod_ocp_ifs
[] __initdata
= {
3254 &omap36xx_l4_per__uart4
,
3256 &omap3xxx_l4_core__dss
,
3257 &omap36xx_l4_core__sr1
,
3258 &omap36xx_l4_core__sr2
,
3259 &omap3xxx_usbhsotg__l3
,
3260 &omap3xxx_l4_core__usbhsotg
,
3261 &omap3xxx_l4_core__mailbox
,
3262 &omap3xxx_usb_host_hs__l3_main_2
,
3263 &omap3xxx_l4_core__usb_host_hs
,
3264 &omap3xxx_l4_core__usb_tll_hs
,
3265 &omap3xxx_l4_core__es3plus_mmc1
,
3266 &omap3xxx_l4_core__es3plus_mmc2
,
3267 &omap3xxx_l4_core__hdq1w
,
3271 static struct omap_hwmod_ocp_if
*am35xx_hwmod_ocp_ifs
[] __initdata
= {
3273 &omap3xxx_l4_core__dss
,
3274 &am35xx_usbhsotg__l3
,
3275 &am35xx_l4_core__usbhsotg
,
3276 &am35xx_l4_core__uart4
,
3277 &omap3xxx_usb_host_hs__l3_main_2
,
3278 &omap3xxx_l4_core__usb_host_hs
,
3279 &omap3xxx_l4_core__usb_tll_hs
,
3280 &omap3xxx_l4_core__es3plus_mmc1
,
3281 &omap3xxx_l4_core__es3plus_mmc2
,
3285 static struct omap_hwmod_ocp_if
*omap3xxx_dss_hwmod_ocp_ifs
[] __initdata
= {
3286 &omap3xxx_l4_core__dss_dispc
,
3287 &omap3xxx_l4_core__dss_dsi1
,
3288 &omap3xxx_l4_core__dss_rfbi
,
3289 &omap3xxx_l4_core__dss_venc
,
3293 int __init
omap3xxx_hwmod_init(void)
3296 struct omap_hwmod_ocp_if
**h
= NULL
;
3301 /* Register hwmod links common to all OMAP3 */
3302 r
= omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs
);
3306 /* Register GP-only hwmod links. */
3307 if (omap_type() == OMAP2_DEVICE_TYPE_GP
) {
3308 r
= omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs
);
3316 * Register hwmod links common to individual OMAP3 families, all
3317 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3318 * All possible revisions should be included in this conditional.
3320 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3321 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3322 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3323 h
= omap34xx_hwmod_ocp_ifs
;
3324 } else if (rev
== AM35XX_REV_ES1_0
|| rev
== AM35XX_REV_ES1_1
) {
3325 h
= am35xx_hwmod_ocp_ifs
;
3326 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3327 rev
== OMAP3630_REV_ES1_2
) {
3328 h
= omap36xx_hwmod_ocp_ifs
;
3330 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3334 r
= omap_hwmod_register_links(h
);
3339 * Register hwmod links specific to certain ES levels of a
3340 * particular family of silicon (e.g., 34xx ES1.0)
3343 if (rev
== OMAP3430_REV_ES1_0
) {
3344 h
= omap3430es1_hwmod_ocp_ifs
;
3345 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3346 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3347 rev
== OMAP3430_REV_ES3_1_2
) {
3348 h
= omap3430es2plus_hwmod_ocp_ifs
;
3352 r
= omap_hwmod_register_links(h
);
3358 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3359 rev
== OMAP3430_REV_ES2_1
) {
3360 h
= omap3430_pre_es3_hwmod_ocp_ifs
;
3361 } else if (rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3362 rev
== OMAP3430_REV_ES3_1_2
) {
3363 h
= omap3430_es3plus_hwmod_ocp_ifs
;
3367 r
= omap_hwmod_register_links(h
);
3372 * DSS code presumes that dss_core hwmod is handled first,
3373 * _before_ any other DSS related hwmods so register common
3374 * DSS hwmod links last to ensure that dss_core is already
3375 * registered. Otherwise some change things may happen, for
3376 * ex. if dispc is handled before dss_core and DSS is enabled
3377 * in bootloader DISPC will be reset with outputs enabled
3378 * which sometimes leads to unrecoverable L3 error. XXX The
3379 * long-term fix to this is to ensure hwmods are set up in
3380 * dependency order in the hwmod core code.
3382 r
= omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs
);