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
,
422 .reset
= &omap2_wd_timer_reset
,
425 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
427 .class = &omap3xxx_wd_timer_hwmod_class
,
428 .main_clk
= "wdt2_fck",
432 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
433 .module_offs
= WKUP_MOD
,
435 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
439 * XXX: Use software supervised mode, HW supervised smartidle seems to
440 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
442 .flags
= HWMOD_SWSUP_SIDLE
,
446 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
448 .mpu_irqs
= omap2_uart1_mpu_irqs
,
449 .sdma_reqs
= omap2_uart1_sdma_reqs
,
450 .main_clk
= "uart1_fck",
453 .module_offs
= CORE_MOD
,
455 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
457 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
460 .class = &omap2_uart_class
,
464 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
466 .mpu_irqs
= omap2_uart2_mpu_irqs
,
467 .sdma_reqs
= omap2_uart2_sdma_reqs
,
468 .main_clk
= "uart2_fck",
471 .module_offs
= CORE_MOD
,
473 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
475 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
478 .class = &omap2_uart_class
,
482 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
484 .mpu_irqs
= omap2_uart3_mpu_irqs
,
485 .sdma_reqs
= omap2_uart3_sdma_reqs
,
486 .main_clk
= "uart3_fck",
489 .module_offs
= OMAP3430_PER_MOD
,
491 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
493 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
496 .class = &omap2_uart_class
,
500 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
501 { .irq
= INT_36XX_UART4_IRQ
, },
505 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
506 { .name
= "rx", .dma_req
= OMAP36XX_DMA_UART4_RX
, },
507 { .name
= "tx", .dma_req
= OMAP36XX_DMA_UART4_TX
, },
511 static struct omap_hwmod omap36xx_uart4_hwmod
= {
513 .mpu_irqs
= uart4_mpu_irqs
,
514 .sdma_reqs
= uart4_sdma_reqs
,
515 .main_clk
= "uart4_fck",
518 .module_offs
= OMAP3430_PER_MOD
,
520 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
522 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
525 .class = &omap2_uart_class
,
528 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs
[] = {
529 { .irq
= INT_35XX_UART4_IRQ
, },
533 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs
[] = {
534 { .name
= "rx", .dma_req
= AM35XX_DMA_UART4_RX
, },
535 { .name
= "tx", .dma_req
= AM35XX_DMA_UART4_TX
, },
539 static struct omap_hwmod am35xx_uart4_hwmod
= {
541 .mpu_irqs
= am35xx_uart4_mpu_irqs
,
542 .sdma_reqs
= am35xx_uart4_sdma_reqs
,
543 .main_clk
= "uart4_fck",
546 .module_offs
= CORE_MOD
,
548 .module_bit
= AM35XX_EN_UART4_SHIFT
,
550 .idlest_idle_bit
= AM35XX_ST_UART4_SHIFT
,
553 .class = &omap2_uart_class
,
556 static struct omap_hwmod_class i2c_class
= {
559 .rev
= OMAP_I2C_IP_VERSION_1
,
560 .reset
= &omap_i2c_reset
,
563 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
564 { .name
= "dispc", .dma_req
= 5 },
565 { .name
= "dsi1", .dma_req
= 74 },
570 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
572 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
573 * driver does not use these clocks.
575 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
576 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
577 /* required only on OMAP3430 */
578 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
581 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
583 .class = &omap2_dss_hwmod_class
,
584 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
585 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
589 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
590 .module_offs
= OMAP3430_DSS_MOD
,
592 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
595 .opt_clks
= dss_opt_clks
,
596 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
597 .flags
= HWMOD_NO_IDLEST
| HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
600 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
602 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
603 .class = &omap2_dss_hwmod_class
,
604 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
605 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
609 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
610 .module_offs
= OMAP3430_DSS_MOD
,
612 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
613 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
616 .opt_clks
= dss_opt_clks
,
617 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
625 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc
= {
629 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
630 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
632 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
633 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
634 .sysc_fields
= &omap_hwmod_sysc_type1
,
637 static struct omap_hwmod_class omap3_dispc_hwmod_class
= {
639 .sysc
= &omap3_dispc_sysc
,
642 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
644 .class = &omap3_dispc_hwmod_class
,
645 .mpu_irqs
= omap2_dispc_irqs
,
646 .main_clk
= "dss1_alwon_fck",
650 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
651 .module_offs
= OMAP3430_DSS_MOD
,
654 .flags
= HWMOD_NO_IDLEST
,
655 .dev_attr
= &omap2_3_dss_dispc_dev_attr
660 * display serial interface controller
663 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
667 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
673 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
674 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
677 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
679 .class = &omap3xxx_dsi_hwmod_class
,
680 .mpu_irqs
= omap3xxx_dsi1_irqs
,
681 .main_clk
= "dss1_alwon_fck",
685 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
686 .module_offs
= OMAP3430_DSS_MOD
,
689 .opt_clks
= dss_dsi1_opt_clks
,
690 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
691 .flags
= HWMOD_NO_IDLEST
,
694 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
695 { .role
= "ick", .clk
= "dss_ick" },
698 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
700 .class = &omap2_rfbi_hwmod_class
,
701 .main_clk
= "dss1_alwon_fck",
705 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
706 .module_offs
= OMAP3430_DSS_MOD
,
709 .opt_clks
= dss_rfbi_opt_clks
,
710 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
711 .flags
= HWMOD_NO_IDLEST
,
714 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
715 /* required only on OMAP3430 */
716 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
719 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
721 .class = &omap2_venc_hwmod_class
,
722 .main_clk
= "dss_tv_fck",
726 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
727 .module_offs
= OMAP3430_DSS_MOD
,
730 .opt_clks
= dss_venc_opt_clks
,
731 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
732 .flags
= HWMOD_NO_IDLEST
,
736 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
737 .fifo_depth
= 8, /* bytes */
738 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
739 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
740 OMAP_I2C_FLAG_BUS_SHIFT_2
,
743 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
745 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
746 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
747 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
748 .main_clk
= "i2c1_fck",
751 .module_offs
= CORE_MOD
,
753 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
755 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
759 .dev_attr
= &i2c1_dev_attr
,
763 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
764 .fifo_depth
= 8, /* bytes */
765 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
766 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
767 OMAP_I2C_FLAG_BUS_SHIFT_2
,
770 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
772 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
773 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
774 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
775 .main_clk
= "i2c2_fck",
778 .module_offs
= CORE_MOD
,
780 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
782 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
786 .dev_attr
= &i2c2_dev_attr
,
790 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
791 .fifo_depth
= 64, /* bytes */
792 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
793 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
794 OMAP_I2C_FLAG_BUS_SHIFT_2
,
797 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
798 { .irq
= INT_34XX_I2C3_IRQ
, },
802 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
803 { .name
= "tx", .dma_req
= OMAP34XX_DMA_I2C3_TX
},
804 { .name
= "rx", .dma_req
= OMAP34XX_DMA_I2C3_RX
},
808 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
810 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
811 .mpu_irqs
= i2c3_mpu_irqs
,
812 .sdma_reqs
= i2c3_sdma_reqs
,
813 .main_clk
= "i2c3_fck",
816 .module_offs
= CORE_MOD
,
818 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
820 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
824 .dev_attr
= &i2c3_dev_attr
,
829 * general purpose io module
832 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
836 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
837 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
838 SYSS_HAS_RESET_STATUS
),
839 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
840 .sysc_fields
= &omap_hwmod_sysc_type1
,
843 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
845 .sysc
= &omap3xxx_gpio_sysc
,
850 static struct omap_gpio_dev_attr gpio_dev_attr
= {
856 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
857 { .role
= "dbclk", .clk
= "gpio1_dbck", },
860 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
862 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
863 .mpu_irqs
= omap2_gpio1_irqs
,
864 .main_clk
= "gpio1_ick",
865 .opt_clks
= gpio1_opt_clks
,
866 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
870 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
871 .module_offs
= WKUP_MOD
,
873 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
876 .class = &omap3xxx_gpio_hwmod_class
,
877 .dev_attr
= &gpio_dev_attr
,
881 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
882 { .role
= "dbclk", .clk
= "gpio2_dbck", },
885 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
887 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
888 .mpu_irqs
= omap2_gpio2_irqs
,
889 .main_clk
= "gpio2_ick",
890 .opt_clks
= gpio2_opt_clks
,
891 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
895 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
896 .module_offs
= OMAP3430_PER_MOD
,
898 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
901 .class = &omap3xxx_gpio_hwmod_class
,
902 .dev_attr
= &gpio_dev_attr
,
906 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
907 { .role
= "dbclk", .clk
= "gpio3_dbck", },
910 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
912 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
913 .mpu_irqs
= omap2_gpio3_irqs
,
914 .main_clk
= "gpio3_ick",
915 .opt_clks
= gpio3_opt_clks
,
916 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
920 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
921 .module_offs
= OMAP3430_PER_MOD
,
923 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
926 .class = &omap3xxx_gpio_hwmod_class
,
927 .dev_attr
= &gpio_dev_attr
,
931 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
932 { .role
= "dbclk", .clk
= "gpio4_dbck", },
935 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
937 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
938 .mpu_irqs
= omap2_gpio4_irqs
,
939 .main_clk
= "gpio4_ick",
940 .opt_clks
= gpio4_opt_clks
,
941 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
945 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
946 .module_offs
= OMAP3430_PER_MOD
,
948 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
951 .class = &omap3xxx_gpio_hwmod_class
,
952 .dev_attr
= &gpio_dev_attr
,
956 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
957 { .irq
= 33 }, /* INT_34XX_GPIO_BANK5 */
961 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
962 { .role
= "dbclk", .clk
= "gpio5_dbck", },
965 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
967 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
968 .mpu_irqs
= omap3xxx_gpio5_irqs
,
969 .main_clk
= "gpio5_ick",
970 .opt_clks
= gpio5_opt_clks
,
971 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
975 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
976 .module_offs
= OMAP3430_PER_MOD
,
978 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
981 .class = &omap3xxx_gpio_hwmod_class
,
982 .dev_attr
= &gpio_dev_attr
,
986 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
987 { .irq
= 34 }, /* INT_34XX_GPIO_BANK6 */
991 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
992 { .role
= "dbclk", .clk
= "gpio6_dbck", },
995 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
997 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
998 .mpu_irqs
= omap3xxx_gpio6_irqs
,
999 .main_clk
= "gpio6_ick",
1000 .opt_clks
= gpio6_opt_clks
,
1001 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1005 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
1006 .module_offs
= OMAP3430_PER_MOD
,
1008 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
1011 .class = &omap3xxx_gpio_hwmod_class
,
1012 .dev_attr
= &gpio_dev_attr
,
1015 /* dma attributes */
1016 static struct omap_dma_dev_attr dma_dev_attr
= {
1017 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1018 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
1022 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
1024 .sysc_offs
= 0x002c,
1025 .syss_offs
= 0x0028,
1026 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1027 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1028 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
1029 SYSS_HAS_RESET_STATUS
),
1030 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1031 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1032 .sysc_fields
= &omap_hwmod_sysc_type1
,
1035 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
1037 .sysc
= &omap3xxx_dma_sysc
,
1041 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
1043 .class = &omap3xxx_dma_hwmod_class
,
1044 .mpu_irqs
= omap2_dma_system_irqs
,
1045 .main_clk
= "core_l3_ick",
1048 .module_offs
= CORE_MOD
,
1050 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
1052 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
1055 .dev_attr
= &dma_dev_attr
,
1056 .flags
= HWMOD_NO_IDLEST
,
1061 * multi channel buffered serial port controller
1064 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
1065 .sysc_offs
= 0x008c,
1066 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1067 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1068 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1069 .sysc_fields
= &omap_hwmod_sysc_type1
,
1073 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
1075 .sysc
= &omap3xxx_mcbsp_sysc
,
1076 .rev
= MCBSP_CONFIG_TYPE3
,
1080 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
1081 { .name
= "common", .irq
= 16 },
1082 { .name
= "tx", .irq
= 59 },
1083 { .name
= "rx", .irq
= 60 },
1087 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
1089 .class = &omap3xxx_mcbsp_hwmod_class
,
1090 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
1091 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
1092 .main_clk
= "mcbsp1_fck",
1096 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
1097 .module_offs
= CORE_MOD
,
1099 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
1105 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
1106 { .name
= "common", .irq
= 17 },
1107 { .name
= "tx", .irq
= 62 },
1108 { .name
= "rx", .irq
= 63 },
1112 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
1113 .sidetone
= "mcbsp2_sidetone",
1116 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
1118 .class = &omap3xxx_mcbsp_hwmod_class
,
1119 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
1120 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
1121 .main_clk
= "mcbsp2_fck",
1125 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1126 .module_offs
= OMAP3430_PER_MOD
,
1128 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1131 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
1135 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
1136 { .name
= "common", .irq
= 22 },
1137 { .name
= "tx", .irq
= 89 },
1138 { .name
= "rx", .irq
= 90 },
1142 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
1143 .sidetone
= "mcbsp3_sidetone",
1146 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
1148 .class = &omap3xxx_mcbsp_hwmod_class
,
1149 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
1150 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
1151 .main_clk
= "mcbsp3_fck",
1155 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1156 .module_offs
= OMAP3430_PER_MOD
,
1158 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1161 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
1165 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
1166 { .name
= "common", .irq
= 23 },
1167 { .name
= "tx", .irq
= 54 },
1168 { .name
= "rx", .irq
= 55 },
1172 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
1173 { .name
= "rx", .dma_req
= 20 },
1174 { .name
= "tx", .dma_req
= 19 },
1178 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
1180 .class = &omap3xxx_mcbsp_hwmod_class
,
1181 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
1182 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
1183 .main_clk
= "mcbsp4_fck",
1187 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
1188 .module_offs
= OMAP3430_PER_MOD
,
1190 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
1196 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
1197 { .name
= "common", .irq
= 27 },
1198 { .name
= "tx", .irq
= 81 },
1199 { .name
= "rx", .irq
= 82 },
1203 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
1204 { .name
= "rx", .dma_req
= 22 },
1205 { .name
= "tx", .dma_req
= 21 },
1209 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
1211 .class = &omap3xxx_mcbsp_hwmod_class
,
1212 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
1213 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
1214 .main_clk
= "mcbsp5_fck",
1218 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
1219 .module_offs
= CORE_MOD
,
1221 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
1226 /* 'mcbsp sidetone' class */
1227 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
1228 .sysc_offs
= 0x0010,
1229 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
1230 .sysc_fields
= &omap_hwmod_sysc_type1
,
1233 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
1234 .name
= "mcbsp_sidetone",
1235 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
1238 /* mcbsp2_sidetone */
1239 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
1240 { .name
= "irq", .irq
= 4 },
1244 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
1245 .name
= "mcbsp2_sidetone",
1246 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1247 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
1248 .main_clk
= "mcbsp2_fck",
1252 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1253 .module_offs
= OMAP3430_PER_MOD
,
1255 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1260 /* mcbsp3_sidetone */
1261 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
1262 { .name
= "irq", .irq
= 5 },
1266 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
1267 .name
= "mcbsp3_sidetone",
1268 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1269 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
1270 .main_clk
= "mcbsp3_fck",
1274 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1275 .module_offs
= OMAP3430_PER_MOD
,
1277 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1283 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
1287 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
1289 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
1290 .clockact
= CLOCKACT_TEST_ICLK
,
1291 .sysc_fields
= &omap34xx_sr_sysc_fields
,
1294 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
1295 .name
= "smartreflex",
1296 .sysc
= &omap34xx_sr_sysc
,
1300 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
1305 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
1307 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1308 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1310 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1313 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
1314 .name
= "smartreflex",
1315 .sysc
= &omap36xx_sr_sysc
,
1320 static struct omap_smartreflex_dev_attr sr1_dev_attr
= {
1321 .sensor_voltdm_name
= "mpu_iva",
1324 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs
[] = {
1329 static struct omap_hwmod omap34xx_sr1_hwmod
= {
1331 .class = &omap34xx_smartreflex_hwmod_class
,
1332 .main_clk
= "sr1_fck",
1336 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1337 .module_offs
= WKUP_MOD
,
1339 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1342 .dev_attr
= &sr1_dev_attr
,
1343 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1344 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1347 static struct omap_hwmod omap36xx_sr1_hwmod
= {
1349 .class = &omap36xx_smartreflex_hwmod_class
,
1350 .main_clk
= "sr1_fck",
1354 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1355 .module_offs
= WKUP_MOD
,
1357 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1360 .dev_attr
= &sr1_dev_attr
,
1361 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1365 static struct omap_smartreflex_dev_attr sr2_dev_attr
= {
1366 .sensor_voltdm_name
= "core",
1369 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs
[] = {
1374 static struct omap_hwmod omap34xx_sr2_hwmod
= {
1376 .class = &omap34xx_smartreflex_hwmod_class
,
1377 .main_clk
= "sr2_fck",
1381 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1382 .module_offs
= WKUP_MOD
,
1384 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1387 .dev_attr
= &sr2_dev_attr
,
1388 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1389 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1392 static struct omap_hwmod omap36xx_sr2_hwmod
= {
1394 .class = &omap36xx_smartreflex_hwmod_class
,
1395 .main_clk
= "sr2_fck",
1399 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1400 .module_offs
= WKUP_MOD
,
1402 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1405 .dev_attr
= &sr2_dev_attr
,
1406 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1411 * mailbox module allowing communication between the on-chip processors
1412 * using a queued mailbox-interrupt mechanism.
1415 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
1419 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1420 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1421 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1422 .sysc_fields
= &omap_hwmod_sysc_type1
,
1425 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
1427 .sysc
= &omap3xxx_mailbox_sysc
,
1430 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs
[] = {
1435 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
1437 .class = &omap3xxx_mailbox_hwmod_class
,
1438 .mpu_irqs
= omap3xxx_mailbox_irqs
,
1439 .main_clk
= "mailboxes_ick",
1443 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
1444 .module_offs
= CORE_MOD
,
1446 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
1453 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1457 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
1459 .sysc_offs
= 0x0010,
1460 .syss_offs
= 0x0014,
1461 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1462 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1463 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1464 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1465 .sysc_fields
= &omap_hwmod_sysc_type1
,
1468 static struct omap_hwmod_class omap34xx_mcspi_class
= {
1470 .sysc
= &omap34xx_mcspi_sysc
,
1471 .rev
= OMAP3_MCSPI_REV
,
1475 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1476 .num_chipselect
= 4,
1479 static struct omap_hwmod omap34xx_mcspi1
= {
1481 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
1482 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
1483 .main_clk
= "mcspi1_fck",
1486 .module_offs
= CORE_MOD
,
1488 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
1490 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
1493 .class = &omap34xx_mcspi_class
,
1494 .dev_attr
= &omap_mcspi1_dev_attr
,
1498 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
1499 .num_chipselect
= 2,
1502 static struct omap_hwmod omap34xx_mcspi2
= {
1504 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
1505 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
1506 .main_clk
= "mcspi2_fck",
1509 .module_offs
= CORE_MOD
,
1511 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
1513 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
1516 .class = &omap34xx_mcspi_class
,
1517 .dev_attr
= &omap_mcspi2_dev_attr
,
1521 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
1522 { .name
= "irq", .irq
= 91 }, /* 91 */
1526 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
1527 { .name
= "tx0", .dma_req
= 15 },
1528 { .name
= "rx0", .dma_req
= 16 },
1529 { .name
= "tx1", .dma_req
= 23 },
1530 { .name
= "rx1", .dma_req
= 24 },
1534 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
1535 .num_chipselect
= 2,
1538 static struct omap_hwmod omap34xx_mcspi3
= {
1540 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
1541 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
1542 .main_clk
= "mcspi3_fck",
1545 .module_offs
= CORE_MOD
,
1547 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
1549 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
1552 .class = &omap34xx_mcspi_class
,
1553 .dev_attr
= &omap_mcspi3_dev_attr
,
1557 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
1558 { .name
= "irq", .irq
= INT_34XX_SPI4_IRQ
}, /* 48 */
1562 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
1563 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
1564 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
1568 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
1569 .num_chipselect
= 1,
1572 static struct omap_hwmod omap34xx_mcspi4
= {
1574 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
1575 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
1576 .main_clk
= "mcspi4_fck",
1579 .module_offs
= CORE_MOD
,
1581 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
1583 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
1586 .class = &omap34xx_mcspi_class
,
1587 .dev_attr
= &omap_mcspi4_dev_attr
,
1591 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
1593 .sysc_offs
= 0x0404,
1594 .syss_offs
= 0x0408,
1595 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1596 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1598 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1599 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1600 .sysc_fields
= &omap_hwmod_sysc_type1
,
1603 static struct omap_hwmod_class usbotg_class
= {
1605 .sysc
= &omap3xxx_usbhsotg_sysc
,
1609 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
1611 { .name
= "mc", .irq
= 92 },
1612 { .name
= "dma", .irq
= 93 },
1616 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
1617 .name
= "usb_otg_hs",
1618 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
1619 .main_clk
= "hsotgusb_ick",
1623 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
1624 .module_offs
= CORE_MOD
,
1626 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
1627 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1630 .class = &usbotg_class
,
1633 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1634 * broken when autoidle is enabled
1635 * workaround is to disable the autoidle bit at module level.
1637 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
1638 | HWMOD_SWSUP_MSTANDBY
,
1642 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
1643 { .name
= "mc", .irq
= 71 },
1647 static struct omap_hwmod_class am35xx_usbotg_class
= {
1648 .name
= "am35xx_usbotg",
1651 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
1652 .name
= "am35x_otg_hs",
1653 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
1654 .main_clk
= "hsotgusb_fck",
1655 .class = &am35xx_usbotg_class
,
1656 .flags
= HWMOD_NO_IDLEST
,
1659 /* MMC/SD/SDIO common */
1660 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
1664 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1665 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1666 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1667 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1668 .sysc_fields
= &omap_hwmod_sysc_type1
,
1671 static struct omap_hwmod_class omap34xx_mmc_class
= {
1673 .sysc
= &omap34xx_mmc_sysc
,
1678 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
1683 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
1684 { .name
= "tx", .dma_req
= 61, },
1685 { .name
= "rx", .dma_req
= 62, },
1689 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
1690 { .role
= "dbck", .clk
= "omap_32k_fck", },
1693 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
1694 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1697 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1698 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr
= {
1699 .flags
= (OMAP_HSMMC_SUPPORTS_DUAL_VOLT
|
1700 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
),
1703 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod
= {
1705 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1706 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1707 .opt_clks
= omap34xx_mmc1_opt_clks
,
1708 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1709 .main_clk
= "mmchs1_fck",
1712 .module_offs
= CORE_MOD
,
1714 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1716 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1719 .dev_attr
= &mmc1_pre_es3_dev_attr
,
1720 .class = &omap34xx_mmc_class
,
1723 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod
= {
1725 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1726 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1727 .opt_clks
= omap34xx_mmc1_opt_clks
,
1728 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1729 .main_clk
= "mmchs1_fck",
1732 .module_offs
= CORE_MOD
,
1734 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1736 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1739 .dev_attr
= &mmc1_dev_attr
,
1740 .class = &omap34xx_mmc_class
,
1745 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
1746 { .irq
= INT_24XX_MMC2_IRQ
, },
1750 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
1751 { .name
= "tx", .dma_req
= 47, },
1752 { .name
= "rx", .dma_req
= 48, },
1756 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
1757 { .role
= "dbck", .clk
= "omap_32k_fck", },
1760 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1761 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr
= {
1762 .flags
= OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
,
1765 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod
= {
1767 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1768 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1769 .opt_clks
= omap34xx_mmc2_opt_clks
,
1770 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1771 .main_clk
= "mmchs2_fck",
1774 .module_offs
= CORE_MOD
,
1776 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1778 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1781 .dev_attr
= &mmc2_pre_es3_dev_attr
,
1782 .class = &omap34xx_mmc_class
,
1785 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod
= {
1787 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1788 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1789 .opt_clks
= omap34xx_mmc2_opt_clks
,
1790 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1791 .main_clk
= "mmchs2_fck",
1794 .module_offs
= CORE_MOD
,
1796 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1798 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1801 .class = &omap34xx_mmc_class
,
1806 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
1811 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
1812 { .name
= "tx", .dma_req
= 77, },
1813 { .name
= "rx", .dma_req
= 78, },
1817 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
1818 { .role
= "dbck", .clk
= "omap_32k_fck", },
1821 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
1823 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
1824 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
1825 .opt_clks
= omap34xx_mmc3_opt_clks
,
1826 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
1827 .main_clk
= "mmchs3_fck",
1831 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
1833 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
1836 .class = &omap34xx_mmc_class
,
1840 * 'usb_host_hs' class
1841 * high-speed multi-port usb host controller
1844 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc
= {
1846 .sysc_offs
= 0x0010,
1847 .syss_offs
= 0x0014,
1848 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1849 SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1850 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1851 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1852 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1853 .sysc_fields
= &omap_hwmod_sysc_type1
,
1856 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class
= {
1857 .name
= "usb_host_hs",
1858 .sysc
= &omap3xxx_usb_host_hs_sysc
,
1861 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks
[] = {
1862 { .role
= "ehci_logic_fck", .clk
= "usbhost_120m_fck", },
1865 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs
[] = {
1866 { .name
= "ohci-irq", .irq
= 76 },
1867 { .name
= "ehci-irq", .irq
= 77 },
1871 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod
= {
1872 .name
= "usb_host_hs",
1873 .class = &omap3xxx_usb_host_hs_hwmod_class
,
1874 .clkdm_name
= "l3_init_clkdm",
1875 .mpu_irqs
= omap3xxx_usb_host_hs_irqs
,
1876 .main_clk
= "usbhost_48m_fck",
1879 .module_offs
= OMAP3430ES2_USBHOST_MOD
,
1881 .module_bit
= OMAP3430ES2_EN_USBHOST1_SHIFT
,
1883 .idlest_idle_bit
= OMAP3430ES2_ST_USBHOST_IDLE_SHIFT
,
1884 .idlest_stdby_bit
= OMAP3430ES2_ST_USBHOST_STDBY_SHIFT
,
1887 .opt_clks
= omap3xxx_usb_host_hs_opt_clks
,
1888 .opt_clks_cnt
= ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks
),
1891 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1895 * In the following configuration :
1896 * - USBHOST module is set to smart-idle mode
1897 * - PRCM asserts idle_req to the USBHOST module ( This typically
1898 * happens when the system is going to a low power mode : all ports
1899 * have been suspended, the master part of the USBHOST module has
1900 * entered the standby state, and SW has cut the functional clocks)
1901 * - an USBHOST interrupt occurs before the module is able to answer
1902 * idle_ack, typically a remote wakeup IRQ.
1903 * Then the USB HOST module will enter a deadlock situation where it
1904 * is no more accessible nor functional.
1907 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1911 * Errata: USB host EHCI may stall when entering smart-standby mode
1915 * When the USBHOST module is set to smart-standby mode, and when it is
1916 * ready to enter the standby state (i.e. all ports are suspended and
1917 * all attached devices are in suspend mode), then it can wrongly assert
1918 * the Mstandby signal too early while there are still some residual OCP
1919 * transactions ongoing. If this condition occurs, the internal state
1920 * machine may go to an undefined state and the USB link may be stuck
1921 * upon the next resume.
1924 * Don't use smart standby; use only force standby,
1925 * hence HWMOD_SWSUP_MSTANDBY
1929 * During system boot; If the hwmod framework resets the module
1930 * the module will have smart idle settings; which can lead to deadlock
1931 * (above Errata Id:i660); so, dont reset the module during boot;
1932 * Use HWMOD_INIT_NO_RESET.
1935 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
|
1936 HWMOD_INIT_NO_RESET
,
1940 * 'usb_tll_hs' class
1941 * usb_tll_hs module is the adapter on the usb_host_hs ports
1943 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc
= {
1945 .sysc_offs
= 0x0010,
1946 .syss_offs
= 0x0014,
1947 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1948 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1950 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1951 .sysc_fields
= &omap_hwmod_sysc_type1
,
1954 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class
= {
1955 .name
= "usb_tll_hs",
1956 .sysc
= &omap3xxx_usb_tll_hs_sysc
,
1959 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs
[] = {
1960 { .name
= "tll-irq", .irq
= 78 },
1964 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod
= {
1965 .name
= "usb_tll_hs",
1966 .class = &omap3xxx_usb_tll_hs_hwmod_class
,
1967 .clkdm_name
= "l3_init_clkdm",
1968 .mpu_irqs
= omap3xxx_usb_tll_hs_irqs
,
1969 .main_clk
= "usbtll_fck",
1972 .module_offs
= CORE_MOD
,
1974 .module_bit
= OMAP3430ES2_EN_USBTLL_SHIFT
,
1976 .idlest_idle_bit
= OMAP3430ES2_ST_USBTLL_SHIFT
,
1981 static struct omap_hwmod omap3xxx_hdq1w_hwmod
= {
1983 .mpu_irqs
= omap2_hdq1w_mpu_irqs
,
1984 .main_clk
= "hdq_fck",
1987 .module_offs
= CORE_MOD
,
1989 .module_bit
= OMAP3430_EN_HDQ_SHIFT
,
1991 .idlest_idle_bit
= OMAP3430_ST_HDQ_SHIFT
,
1994 .class = &omap2_hdq1w_class
,
1998 * '32K sync counter' class
1999 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2001 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc
= {
2003 .sysc_offs
= 0x0004,
2004 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
2005 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
2006 .sysc_fields
= &omap_hwmod_sysc_type1
,
2009 static struct omap_hwmod_class omap3xxx_counter_hwmod_class
= {
2011 .sysc
= &omap3xxx_counter_sysc
,
2014 static struct omap_hwmod omap3xxx_counter_32k_hwmod
= {
2015 .name
= "counter_32k",
2016 .class = &omap3xxx_counter_hwmod_class
,
2017 .clkdm_name
= "wkup_clkdm",
2018 .flags
= HWMOD_SWSUP_SIDLE
,
2019 .main_clk
= "wkup_32k_fck",
2022 .module_offs
= WKUP_MOD
,
2024 .module_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2026 .idlest_idle_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2035 /* L3 -> L4_CORE interface */
2036 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
2037 .master
= &omap3xxx_l3_main_hwmod
,
2038 .slave
= &omap3xxx_l4_core_hwmod
,
2039 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2042 /* L3 -> L4_PER interface */
2043 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
2044 .master
= &omap3xxx_l3_main_hwmod
,
2045 .slave
= &omap3xxx_l4_per_hwmod
,
2046 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2049 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
2051 .pa_start
= 0x68000000,
2052 .pa_end
= 0x6800ffff,
2053 .flags
= ADDR_TYPE_RT
,
2058 /* MPU -> L3 interface */
2059 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
2060 .master
= &omap3xxx_mpu_hwmod
,
2061 .slave
= &omap3xxx_l3_main_hwmod
,
2062 .addr
= omap3xxx_l3_main_addrs
,
2063 .user
= OCP_USER_MPU
,
2067 static struct omap_hwmod_ocp_if omap3430es1_dss__l3
= {
2068 .master
= &omap3430es1_dss_core_hwmod
,
2069 .slave
= &omap3xxx_l3_main_hwmod
,
2070 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2073 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
2074 .master
= &omap3xxx_dss_core_hwmod
,
2075 .slave
= &omap3xxx_l3_main_hwmod
,
2078 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
2079 .flags
= OMAP_FIREWALL_L3
,
2082 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2085 /* l3_core -> usbhsotg interface */
2086 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
2087 .master
= &omap3xxx_usbhsotg_hwmod
,
2088 .slave
= &omap3xxx_l3_main_hwmod
,
2089 .clk
= "core_l3_ick",
2090 .user
= OCP_USER_MPU
,
2093 /* l3_core -> am35xx_usbhsotg interface */
2094 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
2095 .master
= &am35xx_usbhsotg_hwmod
,
2096 .slave
= &omap3xxx_l3_main_hwmod
,
2097 .clk
= "hsotgusb_ick",
2098 .user
= OCP_USER_MPU
,
2101 /* L4_CORE -> L4_WKUP interface */
2102 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
2103 .master
= &omap3xxx_l4_core_hwmod
,
2104 .slave
= &omap3xxx_l4_wkup_hwmod
,
2105 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2108 /* L4 CORE -> MMC1 interface */
2109 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1
= {
2110 .master
= &omap3xxx_l4_core_hwmod
,
2111 .slave
= &omap3xxx_pre_es3_mmc1_hwmod
,
2112 .clk
= "mmchs1_ick",
2113 .addr
= omap2430_mmc1_addr_space
,
2114 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2115 .flags
= OMAP_FIREWALL_L4
2118 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1
= {
2119 .master
= &omap3xxx_l4_core_hwmod
,
2120 .slave
= &omap3xxx_es3plus_mmc1_hwmod
,
2121 .clk
= "mmchs1_ick",
2122 .addr
= omap2430_mmc1_addr_space
,
2123 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2124 .flags
= OMAP_FIREWALL_L4
2127 /* L4 CORE -> MMC2 interface */
2128 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2
= {
2129 .master
= &omap3xxx_l4_core_hwmod
,
2130 .slave
= &omap3xxx_pre_es3_mmc2_hwmod
,
2131 .clk
= "mmchs2_ick",
2132 .addr
= omap2430_mmc2_addr_space
,
2133 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2134 .flags
= OMAP_FIREWALL_L4
2137 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2
= {
2138 .master
= &omap3xxx_l4_core_hwmod
,
2139 .slave
= &omap3xxx_es3plus_mmc2_hwmod
,
2140 .clk
= "mmchs2_ick",
2141 .addr
= omap2430_mmc2_addr_space
,
2142 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2143 .flags
= OMAP_FIREWALL_L4
2146 /* L4 CORE -> MMC3 interface */
2147 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
2149 .pa_start
= 0x480ad000,
2150 .pa_end
= 0x480ad1ff,
2151 .flags
= ADDR_TYPE_RT
,
2156 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
2157 .master
= &omap3xxx_l4_core_hwmod
,
2158 .slave
= &omap3xxx_mmc3_hwmod
,
2159 .clk
= "mmchs3_ick",
2160 .addr
= omap3xxx_mmc3_addr_space
,
2161 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2162 .flags
= OMAP_FIREWALL_L4
2165 /* L4 CORE -> UART1 interface */
2166 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
2168 .pa_start
= OMAP3_UART1_BASE
,
2169 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
2170 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2175 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
2176 .master
= &omap3xxx_l4_core_hwmod
,
2177 .slave
= &omap3xxx_uart1_hwmod
,
2179 .addr
= omap3xxx_uart1_addr_space
,
2180 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2183 /* L4 CORE -> UART2 interface */
2184 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
2186 .pa_start
= OMAP3_UART2_BASE
,
2187 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
2188 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2193 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
2194 .master
= &omap3xxx_l4_core_hwmod
,
2195 .slave
= &omap3xxx_uart2_hwmod
,
2197 .addr
= omap3xxx_uart2_addr_space
,
2198 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2201 /* L4 PER -> UART3 interface */
2202 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
2204 .pa_start
= OMAP3_UART3_BASE
,
2205 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
2206 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2211 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
2212 .master
= &omap3xxx_l4_per_hwmod
,
2213 .slave
= &omap3xxx_uart3_hwmod
,
2215 .addr
= omap3xxx_uart3_addr_space
,
2216 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2219 /* L4 PER -> UART4 interface */
2220 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space
[] = {
2222 .pa_start
= OMAP3_UART4_BASE
,
2223 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
2224 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2229 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4
= {
2230 .master
= &omap3xxx_l4_per_hwmod
,
2231 .slave
= &omap36xx_uart4_hwmod
,
2233 .addr
= omap36xx_uart4_addr_space
,
2234 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2237 /* AM35xx: L4 CORE -> UART4 interface */
2238 static struct omap_hwmod_addr_space am35xx_uart4_addr_space
[] = {
2240 .pa_start
= OMAP3_UART4_AM35XX_BASE
,
2241 .pa_end
= OMAP3_UART4_AM35XX_BASE
+ SZ_1K
- 1,
2242 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2247 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4
= {
2248 .master
= &omap3xxx_l4_core_hwmod
,
2249 .slave
= &am35xx_uart4_hwmod
,
2251 .addr
= am35xx_uart4_addr_space
,
2252 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2255 /* L4 CORE -> I2C1 interface */
2256 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
2257 .master
= &omap3xxx_l4_core_hwmod
,
2258 .slave
= &omap3xxx_i2c1_hwmod
,
2260 .addr
= omap2_i2c1_addr_space
,
2263 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
2265 .flags
= OMAP_FIREWALL_L4
,
2268 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2271 /* L4 CORE -> I2C2 interface */
2272 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
2273 .master
= &omap3xxx_l4_core_hwmod
,
2274 .slave
= &omap3xxx_i2c2_hwmod
,
2276 .addr
= omap2_i2c2_addr_space
,
2279 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
2281 .flags
= OMAP_FIREWALL_L4
,
2284 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2287 /* L4 CORE -> I2C3 interface */
2288 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
2290 .pa_start
= 0x48060000,
2291 .pa_end
= 0x48060000 + SZ_128
- 1,
2292 .flags
= ADDR_TYPE_RT
,
2297 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
2298 .master
= &omap3xxx_l4_core_hwmod
,
2299 .slave
= &omap3xxx_i2c3_hwmod
,
2301 .addr
= omap3xxx_i2c3_addr_space
,
2304 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
2306 .flags
= OMAP_FIREWALL_L4
,
2309 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2312 /* L4 CORE -> SR1 interface */
2313 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
2315 .pa_start
= OMAP34XX_SR1_BASE
,
2316 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
2317 .flags
= ADDR_TYPE_RT
,
2322 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1
= {
2323 .master
= &omap3xxx_l4_core_hwmod
,
2324 .slave
= &omap34xx_sr1_hwmod
,
2326 .addr
= omap3_sr1_addr_space
,
2327 .user
= OCP_USER_MPU
,
2330 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1
= {
2331 .master
= &omap3xxx_l4_core_hwmod
,
2332 .slave
= &omap36xx_sr1_hwmod
,
2334 .addr
= omap3_sr1_addr_space
,
2335 .user
= OCP_USER_MPU
,
2338 /* L4 CORE -> SR1 interface */
2339 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
2341 .pa_start
= OMAP34XX_SR2_BASE
,
2342 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
2343 .flags
= ADDR_TYPE_RT
,
2348 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2
= {
2349 .master
= &omap3xxx_l4_core_hwmod
,
2350 .slave
= &omap34xx_sr2_hwmod
,
2352 .addr
= omap3_sr2_addr_space
,
2353 .user
= OCP_USER_MPU
,
2356 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2
= {
2357 .master
= &omap3xxx_l4_core_hwmod
,
2358 .slave
= &omap36xx_sr2_hwmod
,
2360 .addr
= omap3_sr2_addr_space
,
2361 .user
= OCP_USER_MPU
,
2364 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
2366 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
2367 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
2368 .flags
= ADDR_TYPE_RT
2373 /* l4_core -> usbhsotg */
2374 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
2375 .master
= &omap3xxx_l4_core_hwmod
,
2376 .slave
= &omap3xxx_usbhsotg_hwmod
,
2378 .addr
= omap3xxx_usbhsotg_addrs
,
2379 .user
= OCP_USER_MPU
,
2382 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
2384 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
2385 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
2386 .flags
= ADDR_TYPE_RT
2391 /* l4_core -> usbhsotg */
2392 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
2393 .master
= &omap3xxx_l4_core_hwmod
,
2394 .slave
= &am35xx_usbhsotg_hwmod
,
2395 .clk
= "hsotgusb_ick",
2396 .addr
= am35xx_usbhsotg_addrs
,
2397 .user
= OCP_USER_MPU
,
2400 /* L4_WKUP -> L4_SEC interface */
2401 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec
= {
2402 .master
= &omap3xxx_l4_wkup_hwmod
,
2403 .slave
= &omap3xxx_l4_sec_hwmod
,
2404 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2407 /* IVA2 <- L3 interface */
2408 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
2409 .master
= &omap3xxx_l3_main_hwmod
,
2410 .slave
= &omap3xxx_iva_hwmod
,
2411 .clk
= "core_l3_ick",
2412 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2415 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
2417 .pa_start
= 0x48318000,
2418 .pa_end
= 0x48318000 + SZ_1K
- 1,
2419 .flags
= ADDR_TYPE_RT
2424 /* l4_wkup -> timer1 */
2425 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
2426 .master
= &omap3xxx_l4_wkup_hwmod
,
2427 .slave
= &omap3xxx_timer1_hwmod
,
2429 .addr
= omap3xxx_timer1_addrs
,
2430 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2433 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
2435 .pa_start
= 0x49032000,
2436 .pa_end
= 0x49032000 + SZ_1K
- 1,
2437 .flags
= ADDR_TYPE_RT
2442 /* l4_per -> timer2 */
2443 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
2444 .master
= &omap3xxx_l4_per_hwmod
,
2445 .slave
= &omap3xxx_timer2_hwmod
,
2447 .addr
= omap3xxx_timer2_addrs
,
2448 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2451 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
2453 .pa_start
= 0x49034000,
2454 .pa_end
= 0x49034000 + SZ_1K
- 1,
2455 .flags
= ADDR_TYPE_RT
2460 /* l4_per -> timer3 */
2461 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
2462 .master
= &omap3xxx_l4_per_hwmod
,
2463 .slave
= &omap3xxx_timer3_hwmod
,
2465 .addr
= omap3xxx_timer3_addrs
,
2466 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2469 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
2471 .pa_start
= 0x49036000,
2472 .pa_end
= 0x49036000 + SZ_1K
- 1,
2473 .flags
= ADDR_TYPE_RT
2478 /* l4_per -> timer4 */
2479 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
2480 .master
= &omap3xxx_l4_per_hwmod
,
2481 .slave
= &omap3xxx_timer4_hwmod
,
2483 .addr
= omap3xxx_timer4_addrs
,
2484 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2487 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
2489 .pa_start
= 0x49038000,
2490 .pa_end
= 0x49038000 + SZ_1K
- 1,
2491 .flags
= ADDR_TYPE_RT
2496 /* l4_per -> timer5 */
2497 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
2498 .master
= &omap3xxx_l4_per_hwmod
,
2499 .slave
= &omap3xxx_timer5_hwmod
,
2501 .addr
= omap3xxx_timer5_addrs
,
2502 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2505 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
2507 .pa_start
= 0x4903A000,
2508 .pa_end
= 0x4903A000 + SZ_1K
- 1,
2509 .flags
= ADDR_TYPE_RT
2514 /* l4_per -> timer6 */
2515 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
2516 .master
= &omap3xxx_l4_per_hwmod
,
2517 .slave
= &omap3xxx_timer6_hwmod
,
2519 .addr
= omap3xxx_timer6_addrs
,
2520 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2523 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
2525 .pa_start
= 0x4903C000,
2526 .pa_end
= 0x4903C000 + SZ_1K
- 1,
2527 .flags
= ADDR_TYPE_RT
2532 /* l4_per -> timer7 */
2533 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
2534 .master
= &omap3xxx_l4_per_hwmod
,
2535 .slave
= &omap3xxx_timer7_hwmod
,
2537 .addr
= omap3xxx_timer7_addrs
,
2538 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2541 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
2543 .pa_start
= 0x4903E000,
2544 .pa_end
= 0x4903E000 + SZ_1K
- 1,
2545 .flags
= ADDR_TYPE_RT
2550 /* l4_per -> timer8 */
2551 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
2552 .master
= &omap3xxx_l4_per_hwmod
,
2553 .slave
= &omap3xxx_timer8_hwmod
,
2555 .addr
= omap3xxx_timer8_addrs
,
2556 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2559 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
2561 .pa_start
= 0x49040000,
2562 .pa_end
= 0x49040000 + SZ_1K
- 1,
2563 .flags
= ADDR_TYPE_RT
2568 /* l4_per -> timer9 */
2569 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
2570 .master
= &omap3xxx_l4_per_hwmod
,
2571 .slave
= &omap3xxx_timer9_hwmod
,
2573 .addr
= omap3xxx_timer9_addrs
,
2574 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2577 /* l4_core -> timer10 */
2578 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
2579 .master
= &omap3xxx_l4_core_hwmod
,
2580 .slave
= &omap3xxx_timer10_hwmod
,
2582 .addr
= omap2_timer10_addrs
,
2583 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2586 /* l4_core -> timer11 */
2587 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
2588 .master
= &omap3xxx_l4_core_hwmod
,
2589 .slave
= &omap3xxx_timer11_hwmod
,
2591 .addr
= omap2_timer11_addrs
,
2592 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2595 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
2597 .pa_start
= 0x48304000,
2598 .pa_end
= 0x48304000 + SZ_1K
- 1,
2599 .flags
= ADDR_TYPE_RT
2604 /* l4_core -> timer12 */
2605 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12
= {
2606 .master
= &omap3xxx_l4_sec_hwmod
,
2607 .slave
= &omap3xxx_timer12_hwmod
,
2609 .addr
= omap3xxx_timer12_addrs
,
2610 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2613 /* l4_wkup -> wd_timer2 */
2614 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
2616 .pa_start
= 0x48314000,
2617 .pa_end
= 0x4831407f,
2618 .flags
= ADDR_TYPE_RT
2623 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
2624 .master
= &omap3xxx_l4_wkup_hwmod
,
2625 .slave
= &omap3xxx_wd_timer2_hwmod
,
2627 .addr
= omap3xxx_wd_timer2_addrs
,
2628 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2631 /* l4_core -> dss */
2632 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
2633 .master
= &omap3xxx_l4_core_hwmod
,
2634 .slave
= &omap3430es1_dss_core_hwmod
,
2636 .addr
= omap2_dss_addrs
,
2639 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
2640 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2641 .flags
= OMAP_FIREWALL_L4
,
2644 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2647 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
2648 .master
= &omap3xxx_l4_core_hwmod
,
2649 .slave
= &omap3xxx_dss_core_hwmod
,
2651 .addr
= omap2_dss_addrs
,
2654 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
2655 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2656 .flags
= OMAP_FIREWALL_L4
,
2659 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2662 /* l4_core -> dss_dispc */
2663 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
2664 .master
= &omap3xxx_l4_core_hwmod
,
2665 .slave
= &omap3xxx_dss_dispc_hwmod
,
2667 .addr
= omap2_dss_dispc_addrs
,
2670 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
2671 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2672 .flags
= OMAP_FIREWALL_L4
,
2675 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2678 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
2680 .pa_start
= 0x4804FC00,
2681 .pa_end
= 0x4804FFFF,
2682 .flags
= ADDR_TYPE_RT
2687 /* l4_core -> dss_dsi1 */
2688 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
2689 .master
= &omap3xxx_l4_core_hwmod
,
2690 .slave
= &omap3xxx_dss_dsi1_hwmod
,
2692 .addr
= omap3xxx_dss_dsi1_addrs
,
2695 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
2696 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2697 .flags
= OMAP_FIREWALL_L4
,
2700 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2703 /* l4_core -> dss_rfbi */
2704 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
2705 .master
= &omap3xxx_l4_core_hwmod
,
2706 .slave
= &omap3xxx_dss_rfbi_hwmod
,
2708 .addr
= omap2_dss_rfbi_addrs
,
2711 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
2712 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2713 .flags
= OMAP_FIREWALL_L4
,
2716 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2719 /* l4_core -> dss_venc */
2720 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
2721 .master
= &omap3xxx_l4_core_hwmod
,
2722 .slave
= &omap3xxx_dss_venc_hwmod
,
2724 .addr
= omap2_dss_venc_addrs
,
2727 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
2728 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2729 .flags
= OMAP_FIREWALL_L4
,
2732 .flags
= OCPIF_SWSUP_IDLE
,
2733 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2736 /* l4_wkup -> gpio1 */
2737 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
2739 .pa_start
= 0x48310000,
2740 .pa_end
= 0x483101ff,
2741 .flags
= ADDR_TYPE_RT
2746 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
2747 .master
= &omap3xxx_l4_wkup_hwmod
,
2748 .slave
= &omap3xxx_gpio1_hwmod
,
2749 .addr
= omap3xxx_gpio1_addrs
,
2750 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2753 /* l4_per -> gpio2 */
2754 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
2756 .pa_start
= 0x49050000,
2757 .pa_end
= 0x490501ff,
2758 .flags
= ADDR_TYPE_RT
2763 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
2764 .master
= &omap3xxx_l4_per_hwmod
,
2765 .slave
= &omap3xxx_gpio2_hwmod
,
2766 .addr
= omap3xxx_gpio2_addrs
,
2767 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2770 /* l4_per -> gpio3 */
2771 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
2773 .pa_start
= 0x49052000,
2774 .pa_end
= 0x490521ff,
2775 .flags
= ADDR_TYPE_RT
2780 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
2781 .master
= &omap3xxx_l4_per_hwmod
,
2782 .slave
= &omap3xxx_gpio3_hwmod
,
2783 .addr
= omap3xxx_gpio3_addrs
,
2784 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2787 /* l4_per -> gpio4 */
2788 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
2790 .pa_start
= 0x49054000,
2791 .pa_end
= 0x490541ff,
2792 .flags
= ADDR_TYPE_RT
2797 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
2798 .master
= &omap3xxx_l4_per_hwmod
,
2799 .slave
= &omap3xxx_gpio4_hwmod
,
2800 .addr
= omap3xxx_gpio4_addrs
,
2801 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2804 /* l4_per -> gpio5 */
2805 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
2807 .pa_start
= 0x49056000,
2808 .pa_end
= 0x490561ff,
2809 .flags
= ADDR_TYPE_RT
2814 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
2815 .master
= &omap3xxx_l4_per_hwmod
,
2816 .slave
= &omap3xxx_gpio5_hwmod
,
2817 .addr
= omap3xxx_gpio5_addrs
,
2818 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2821 /* l4_per -> gpio6 */
2822 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
2824 .pa_start
= 0x49058000,
2825 .pa_end
= 0x490581ff,
2826 .flags
= ADDR_TYPE_RT
2831 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
2832 .master
= &omap3xxx_l4_per_hwmod
,
2833 .slave
= &omap3xxx_gpio6_hwmod
,
2834 .addr
= omap3xxx_gpio6_addrs
,
2835 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2838 /* dma_system -> L3 */
2839 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
2840 .master
= &omap3xxx_dma_system_hwmod
,
2841 .slave
= &omap3xxx_l3_main_hwmod
,
2842 .clk
= "core_l3_ick",
2843 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2846 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
2848 .pa_start
= 0x48056000,
2849 .pa_end
= 0x48056fff,
2850 .flags
= ADDR_TYPE_RT
2855 /* l4_cfg -> dma_system */
2856 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
2857 .master
= &omap3xxx_l4_core_hwmod
,
2858 .slave
= &omap3xxx_dma_system_hwmod
,
2859 .clk
= "core_l4_ick",
2860 .addr
= omap3xxx_dma_system_addrs
,
2861 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2864 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
2867 .pa_start
= 0x48074000,
2868 .pa_end
= 0x480740ff,
2869 .flags
= ADDR_TYPE_RT
2874 /* l4_core -> mcbsp1 */
2875 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
2876 .master
= &omap3xxx_l4_core_hwmod
,
2877 .slave
= &omap3xxx_mcbsp1_hwmod
,
2878 .clk
= "mcbsp1_ick",
2879 .addr
= omap3xxx_mcbsp1_addrs
,
2880 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2883 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
2886 .pa_start
= 0x49022000,
2887 .pa_end
= 0x490220ff,
2888 .flags
= ADDR_TYPE_RT
2893 /* l4_per -> mcbsp2 */
2894 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
2895 .master
= &omap3xxx_l4_per_hwmod
,
2896 .slave
= &omap3xxx_mcbsp2_hwmod
,
2897 .clk
= "mcbsp2_ick",
2898 .addr
= omap3xxx_mcbsp2_addrs
,
2899 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2902 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
2905 .pa_start
= 0x49024000,
2906 .pa_end
= 0x490240ff,
2907 .flags
= ADDR_TYPE_RT
2912 /* l4_per -> mcbsp3 */
2913 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
2914 .master
= &omap3xxx_l4_per_hwmod
,
2915 .slave
= &omap3xxx_mcbsp3_hwmod
,
2916 .clk
= "mcbsp3_ick",
2917 .addr
= omap3xxx_mcbsp3_addrs
,
2918 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2921 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
2924 .pa_start
= 0x49026000,
2925 .pa_end
= 0x490260ff,
2926 .flags
= ADDR_TYPE_RT
2931 /* l4_per -> mcbsp4 */
2932 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
2933 .master
= &omap3xxx_l4_per_hwmod
,
2934 .slave
= &omap3xxx_mcbsp4_hwmod
,
2935 .clk
= "mcbsp4_ick",
2936 .addr
= omap3xxx_mcbsp4_addrs
,
2937 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2940 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
2943 .pa_start
= 0x48096000,
2944 .pa_end
= 0x480960ff,
2945 .flags
= ADDR_TYPE_RT
2950 /* l4_core -> mcbsp5 */
2951 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
2952 .master
= &omap3xxx_l4_core_hwmod
,
2953 .slave
= &omap3xxx_mcbsp5_hwmod
,
2954 .clk
= "mcbsp5_ick",
2955 .addr
= omap3xxx_mcbsp5_addrs
,
2956 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2959 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
2962 .pa_start
= 0x49028000,
2963 .pa_end
= 0x490280ff,
2964 .flags
= ADDR_TYPE_RT
2969 /* l4_per -> mcbsp2_sidetone */
2970 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
2971 .master
= &omap3xxx_l4_per_hwmod
,
2972 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
2973 .clk
= "mcbsp2_ick",
2974 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
2975 .user
= OCP_USER_MPU
,
2978 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
2981 .pa_start
= 0x4902A000,
2982 .pa_end
= 0x4902A0ff,
2983 .flags
= ADDR_TYPE_RT
2988 /* l4_per -> mcbsp3_sidetone */
2989 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
2990 .master
= &omap3xxx_l4_per_hwmod
,
2991 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
2992 .clk
= "mcbsp3_ick",
2993 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
2994 .user
= OCP_USER_MPU
,
2997 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs
[] = {
2999 .pa_start
= 0x48094000,
3000 .pa_end
= 0x480941ff,
3001 .flags
= ADDR_TYPE_RT
,
3006 /* l4_core -> mailbox */
3007 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
3008 .master
= &omap3xxx_l4_core_hwmod
,
3009 .slave
= &omap3xxx_mailbox_hwmod
,
3010 .addr
= omap3xxx_mailbox_addrs
,
3011 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3014 /* l4 core -> mcspi1 interface */
3015 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
3016 .master
= &omap3xxx_l4_core_hwmod
,
3017 .slave
= &omap34xx_mcspi1
,
3018 .clk
= "mcspi1_ick",
3019 .addr
= omap2_mcspi1_addr_space
,
3020 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3023 /* l4 core -> mcspi2 interface */
3024 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
3025 .master
= &omap3xxx_l4_core_hwmod
,
3026 .slave
= &omap34xx_mcspi2
,
3027 .clk
= "mcspi2_ick",
3028 .addr
= omap2_mcspi2_addr_space
,
3029 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3032 /* l4 core -> mcspi3 interface */
3033 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
3034 .master
= &omap3xxx_l4_core_hwmod
,
3035 .slave
= &omap34xx_mcspi3
,
3036 .clk
= "mcspi3_ick",
3037 .addr
= omap2430_mcspi3_addr_space
,
3038 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3041 /* l4 core -> mcspi4 interface */
3042 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
3044 .pa_start
= 0x480ba000,
3045 .pa_end
= 0x480ba0ff,
3046 .flags
= ADDR_TYPE_RT
,
3051 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
3052 .master
= &omap3xxx_l4_core_hwmod
,
3053 .slave
= &omap34xx_mcspi4
,
3054 .clk
= "mcspi4_ick",
3055 .addr
= omap34xx_mcspi4_addr_space
,
3056 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3059 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2
= {
3060 .master
= &omap3xxx_usb_host_hs_hwmod
,
3061 .slave
= &omap3xxx_l3_main_hwmod
,
3062 .clk
= "core_l3_ick",
3063 .user
= OCP_USER_MPU
,
3066 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs
[] = {
3069 .pa_start
= 0x48064000,
3070 .pa_end
= 0x480643ff,
3071 .flags
= ADDR_TYPE_RT
3075 .pa_start
= 0x48064400,
3076 .pa_end
= 0x480647ff,
3080 .pa_start
= 0x48064800,
3081 .pa_end
= 0x48064cff,
3086 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs
= {
3087 .master
= &omap3xxx_l4_core_hwmod
,
3088 .slave
= &omap3xxx_usb_host_hs_hwmod
,
3089 .clk
= "usbhost_ick",
3090 .addr
= omap3xxx_usb_host_hs_addrs
,
3091 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3094 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs
[] = {
3097 .pa_start
= 0x48062000,
3098 .pa_end
= 0x48062fff,
3099 .flags
= ADDR_TYPE_RT
3104 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs
= {
3105 .master
= &omap3xxx_l4_core_hwmod
,
3106 .slave
= &omap3xxx_usb_tll_hs_hwmod
,
3107 .clk
= "usbtll_ick",
3108 .addr
= omap3xxx_usb_tll_hs_addrs
,
3109 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3112 /* l4_core -> hdq1w interface */
3113 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w
= {
3114 .master
= &omap3xxx_l4_core_hwmod
,
3115 .slave
= &omap3xxx_hdq1w_hwmod
,
3117 .addr
= omap2_hdq1w_addr_space
,
3118 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3119 .flags
= OMAP_FIREWALL_L4
| OCPIF_SWSUP_IDLE
,
3122 /* l4_wkup -> 32ksync_counter */
3123 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs
[] = {
3125 .pa_start
= 0x48320000,
3126 .pa_end
= 0x4832001f,
3127 .flags
= ADDR_TYPE_RT
3132 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k
= {
3133 .master
= &omap3xxx_l4_wkup_hwmod
,
3134 .slave
= &omap3xxx_counter_32k_hwmod
,
3135 .clk
= "omap_32ksync_ick",
3136 .addr
= omap3xxx_counter_32k_addrs
,
3137 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3140 static struct omap_hwmod_ocp_if
*omap3xxx_hwmod_ocp_ifs
[] __initdata
= {
3141 &omap3xxx_l3_main__l4_core
,
3142 &omap3xxx_l3_main__l4_per
,
3143 &omap3xxx_mpu__l3_main
,
3144 &omap3xxx_l4_core__l4_wkup
,
3145 &omap3xxx_l4_core__mmc3
,
3146 &omap3_l4_core__uart1
,
3147 &omap3_l4_core__uart2
,
3148 &omap3_l4_per__uart3
,
3149 &omap3_l4_core__i2c1
,
3150 &omap3_l4_core__i2c2
,
3151 &omap3_l4_core__i2c3
,
3152 &omap3xxx_l4_wkup__l4_sec
,
3153 &omap3xxx_l4_wkup__timer1
,
3154 &omap3xxx_l4_per__timer2
,
3155 &omap3xxx_l4_per__timer3
,
3156 &omap3xxx_l4_per__timer4
,
3157 &omap3xxx_l4_per__timer5
,
3158 &omap3xxx_l4_per__timer6
,
3159 &omap3xxx_l4_per__timer7
,
3160 &omap3xxx_l4_per__timer8
,
3161 &omap3xxx_l4_per__timer9
,
3162 &omap3xxx_l4_core__timer10
,
3163 &omap3xxx_l4_core__timer11
,
3164 &omap3xxx_l4_wkup__wd_timer2
,
3165 &omap3xxx_l4_wkup__gpio1
,
3166 &omap3xxx_l4_per__gpio2
,
3167 &omap3xxx_l4_per__gpio3
,
3168 &omap3xxx_l4_per__gpio4
,
3169 &omap3xxx_l4_per__gpio5
,
3170 &omap3xxx_l4_per__gpio6
,
3171 &omap3xxx_dma_system__l3
,
3172 &omap3xxx_l4_core__dma_system
,
3173 &omap3xxx_l4_core__mcbsp1
,
3174 &omap3xxx_l4_per__mcbsp2
,
3175 &omap3xxx_l4_per__mcbsp3
,
3176 &omap3xxx_l4_per__mcbsp4
,
3177 &omap3xxx_l4_core__mcbsp5
,
3178 &omap3xxx_l4_per__mcbsp2_sidetone
,
3179 &omap3xxx_l4_per__mcbsp3_sidetone
,
3180 &omap34xx_l4_core__mcspi1
,
3181 &omap34xx_l4_core__mcspi2
,
3182 &omap34xx_l4_core__mcspi3
,
3183 &omap34xx_l4_core__mcspi4
,
3184 &omap3xxx_l4_wkup__counter_32k
,
3188 /* GP-only hwmod links */
3189 static struct omap_hwmod_ocp_if
*omap3xxx_gp_hwmod_ocp_ifs
[] __initdata
= {
3190 &omap3xxx_l4_sec__timer12
,
3194 /* 3430ES1-only hwmod links */
3195 static struct omap_hwmod_ocp_if
*omap3430es1_hwmod_ocp_ifs
[] __initdata
= {
3196 &omap3430es1_dss__l3
,
3197 &omap3430es1_l4_core__dss
,
3201 /* 3430ES2+-only hwmod links */
3202 static struct omap_hwmod_ocp_if
*omap3430es2plus_hwmod_ocp_ifs
[] __initdata
= {
3204 &omap3xxx_l4_core__dss
,
3205 &omap3xxx_usbhsotg__l3
,
3206 &omap3xxx_l4_core__usbhsotg
,
3207 &omap3xxx_usb_host_hs__l3_main_2
,
3208 &omap3xxx_l4_core__usb_host_hs
,
3209 &omap3xxx_l4_core__usb_tll_hs
,
3213 /* <= 3430ES3-only hwmod links */
3214 static struct omap_hwmod_ocp_if
*omap3430_pre_es3_hwmod_ocp_ifs
[] __initdata
= {
3215 &omap3xxx_l4_core__pre_es3_mmc1
,
3216 &omap3xxx_l4_core__pre_es3_mmc2
,
3220 /* 3430ES3+-only hwmod links */
3221 static struct omap_hwmod_ocp_if
*omap3430_es3plus_hwmod_ocp_ifs
[] __initdata
= {
3222 &omap3xxx_l4_core__es3plus_mmc1
,
3223 &omap3xxx_l4_core__es3plus_mmc2
,
3227 /* 34xx-only hwmod links (all ES revisions) */
3228 static struct omap_hwmod_ocp_if
*omap34xx_hwmod_ocp_ifs
[] __initdata
= {
3230 &omap34xx_l4_core__sr1
,
3231 &omap34xx_l4_core__sr2
,
3232 &omap3xxx_l4_core__mailbox
,
3233 &omap3xxx_l4_core__hdq1w
,
3237 /* 36xx-only hwmod links (all ES revisions) */
3238 static struct omap_hwmod_ocp_if
*omap36xx_hwmod_ocp_ifs
[] __initdata
= {
3240 &omap36xx_l4_per__uart4
,
3242 &omap3xxx_l4_core__dss
,
3243 &omap36xx_l4_core__sr1
,
3244 &omap36xx_l4_core__sr2
,
3245 &omap3xxx_usbhsotg__l3
,
3246 &omap3xxx_l4_core__usbhsotg
,
3247 &omap3xxx_l4_core__mailbox
,
3248 &omap3xxx_usb_host_hs__l3_main_2
,
3249 &omap3xxx_l4_core__usb_host_hs
,
3250 &omap3xxx_l4_core__usb_tll_hs
,
3251 &omap3xxx_l4_core__es3plus_mmc1
,
3252 &omap3xxx_l4_core__es3plus_mmc2
,
3253 &omap3xxx_l4_core__hdq1w
,
3257 static struct omap_hwmod_ocp_if
*am35xx_hwmod_ocp_ifs
[] __initdata
= {
3259 &omap3xxx_l4_core__dss
,
3260 &am35xx_usbhsotg__l3
,
3261 &am35xx_l4_core__usbhsotg
,
3262 &am35xx_l4_core__uart4
,
3263 &omap3xxx_usb_host_hs__l3_main_2
,
3264 &omap3xxx_l4_core__usb_host_hs
,
3265 &omap3xxx_l4_core__usb_tll_hs
,
3266 &omap3xxx_l4_core__es3plus_mmc1
,
3267 &omap3xxx_l4_core__es3plus_mmc2
,
3271 static struct omap_hwmod_ocp_if
*omap3xxx_dss_hwmod_ocp_ifs
[] __initdata
= {
3272 &omap3xxx_l4_core__dss_dispc
,
3273 &omap3xxx_l4_core__dss_dsi1
,
3274 &omap3xxx_l4_core__dss_rfbi
,
3275 &omap3xxx_l4_core__dss_venc
,
3279 int __init
omap3xxx_hwmod_init(void)
3282 struct omap_hwmod_ocp_if
**h
= NULL
;
3285 /* Register hwmod links common to all OMAP3 */
3286 r
= omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs
);
3290 /* Register GP-only hwmod links. */
3291 if (omap_type() == OMAP2_DEVICE_TYPE_GP
) {
3292 r
= omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs
);
3300 * Register hwmod links common to individual OMAP3 families, all
3301 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3302 * All possible revisions should be included in this conditional.
3304 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3305 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3306 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3307 h
= omap34xx_hwmod_ocp_ifs
;
3308 } else if (rev
== AM35XX_REV_ES1_0
|| rev
== AM35XX_REV_ES1_1
) {
3309 h
= am35xx_hwmod_ocp_ifs
;
3310 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3311 rev
== OMAP3630_REV_ES1_2
) {
3312 h
= omap36xx_hwmod_ocp_ifs
;
3314 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3318 r
= omap_hwmod_register_links(h
);
3323 * Register hwmod links specific to certain ES levels of a
3324 * particular family of silicon (e.g., 34xx ES1.0)
3327 if (rev
== OMAP3430_REV_ES1_0
) {
3328 h
= omap3430es1_hwmod_ocp_ifs
;
3329 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3330 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3331 rev
== OMAP3430_REV_ES3_1_2
) {
3332 h
= omap3430es2plus_hwmod_ocp_ifs
;
3336 r
= omap_hwmod_register_links(h
);
3342 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3343 rev
== OMAP3430_REV_ES2_1
) {
3344 h
= omap3430_pre_es3_hwmod_ocp_ifs
;
3345 } else if (rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3346 rev
== OMAP3430_REV_ES3_1_2
) {
3347 h
= omap3430_es3plus_hwmod_ocp_ifs
;
3351 r
= omap_hwmod_register_links(h
);
3356 * DSS code presumes that dss_core hwmod is handled first,
3357 * _before_ any other DSS related hwmods so register common
3358 * DSS hwmod links last to ensure that dss_core is already
3359 * registered. Otherwise some change things may happen, for
3360 * ex. if dispc is handled before dss_core and DSS is enabled
3361 * in bootloader DISPC will be reset with outputs enabled
3362 * which sometimes leads to unrecoverable L3 error. XXX The
3363 * long-term fix to this is to ensure hwmods are set up in
3364 * dependency order in the hwmod core code.
3366 r
= omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs
);