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, },
540 * XXX AM35xx UART4 cannot complete its softreset without uart1_fck or
541 * uart2_fck being enabled. So we add uart1_fck as an optional clock,
542 * below, and set the HWMOD_CONTROL_OPT_CLKS_IN_RESET. This really
543 * should not be needed. The functional clock structure of the AM35xx
544 * UART4 is extremely unclear and opaque; it is unclear what the role
545 * of uart1/2_fck is for the UART4. Any clarification from either
546 * empirical testing or the AM3505/3517 hardware designers would be
549 static struct omap_hwmod_opt_clk am35xx_uart4_opt_clks[] = {
550 { .role = "softreset_uart1_fck", .clk = "uart1_fck" },
553 static struct omap_hwmod am35xx_uart4_hwmod = {
555 .mpu_irqs = am35xx_uart4_mpu_irqs,
556 .sdma_reqs = am35xx_uart4_sdma_reqs,
557 .main_clk = "uart4_fck",
560 .module_offs = CORE_MOD,
562 .module_bit = AM35XX_EN_UART4_SHIFT,
564 .idlest_idle_bit = AM35XX_ST_UART4_SHIFT,
567 .opt_clks = am35xx_uart4_opt_clks,
568 .opt_clks_cnt = ARRAY_SIZE(am35xx_uart4_opt_clks),
569 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
570 .class = &omap2_uart_class,
573 static struct omap_hwmod_class i2c_class = {
576 .rev = OMAP_I2C_IP_VERSION_1,
577 .reset = &omap_i2c_reset,
580 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs[] = {
581 { .name = "dispc", .dma_req = 5 },
582 { .name = "dsi1", .dma_req = 74 },
587 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
589 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
590 * driver does not use these clocks.
592 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
593 { .role = "tv_clk", .clk = "dss_tv_fck" },
594 /* required only on OMAP3430 */
595 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
598 static struct omap_hwmod omap3430es1_dss_core_hwmod = {
600 .class = &omap2_dss_hwmod_class,
601 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
602 .sdma_reqs = omap3xxx_dss_sdma_chs,
606 .module_bit = OMAP3430_EN_DSS1_SHIFT,
607 .module_offs = OMAP3430_DSS_MOD,
609 .idlest_stdby_bit = OMAP3430ES1_ST_DSS_SHIFT,
612 .opt_clks = dss_opt_clks,
613 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
614 .flags = HWMOD_NO_IDLEST | HWMOD_CONTROL_OPT_CLKS_IN_RESET,
617 static struct omap_hwmod omap3xxx_dss_core_hwmod = {
619 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
620 .class = &omap2_dss_hwmod_class,
621 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
622 .sdma_reqs = omap3xxx_dss_sdma_chs,
626 .module_bit = OMAP3430_EN_DSS1_SHIFT,
627 .module_offs = OMAP3430_DSS_MOD,
629 .idlest_idle_bit = OMAP3430ES2_ST_DSS_IDLE_SHIFT,
630 .idlest_stdby_bit = OMAP3430ES2_ST_DSS_STDBY_SHIFT,
633 .opt_clks = dss_opt_clks,
634 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
642 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc = {
646 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
647 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
649 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
650 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
651 .sysc_fields = &omap_hwmod_sysc_type1,
654 static struct omap_hwmod_class omap3_dispc_hwmod_class = {
656 .sysc = &omap3_dispc_sysc,
659 static struct omap_hwmod omap3xxx_dss_dispc_hwmod = {
661 .class = &omap3_dispc_hwmod_class,
662 .mpu_irqs = omap2_dispc_irqs,
663 .main_clk = "dss1_alwon_fck",
667 .module_bit = OMAP3430_EN_DSS1_SHIFT,
668 .module_offs = OMAP3430_DSS_MOD,
671 .flags = HWMOD_NO_IDLEST,
672 .dev_attr = &omap2_3_dss_dispc_dev_attr
677 * display serial interface controller
680 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = {
684 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = {
690 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
691 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
694 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod = {
696 .class = &omap3xxx_dsi_hwmod_class,
697 .mpu_irqs = omap3xxx_dsi1_irqs,
698 .main_clk = "dss1_alwon_fck",
702 .module_bit = OMAP3430_EN_DSS1_SHIFT,
703 .module_offs = OMAP3430_DSS_MOD,
706 .opt_clks = dss_dsi1_opt_clks,
707 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
708 .flags = HWMOD_NO_IDLEST,
711 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
712 { .role = "ick", .clk = "dss_ick" },
715 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod = {
717 .class = &omap2_rfbi_hwmod_class,
718 .main_clk = "dss1_alwon_fck",
722 .module_bit = OMAP3430_EN_DSS1_SHIFT,
723 .module_offs = OMAP3430_DSS_MOD,
726 .opt_clks = dss_rfbi_opt_clks,
727 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
728 .flags = HWMOD_NO_IDLEST,
731 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
732 /* required only on OMAP3430 */
733 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
736 static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
738 .class = &omap2_venc_hwmod_class,
739 .main_clk = "dss_tv_fck",
743 .module_bit = OMAP3430_EN_DSS1_SHIFT,
744 .module_offs = OMAP3430_DSS_MOD,
747 .opt_clks = dss_venc_opt_clks,
748 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
749 .flags = HWMOD_NO_IDLEST,
753 static struct omap_i2c_dev_attr i2c1_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_i2c1_hwmod = {
762 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
763 .mpu_irqs = omap2_i2c1_mpu_irqs,
764 .sdma_reqs = omap2_i2c1_sdma_reqs,
765 .main_clk = "i2c1_fck",
768 .module_offs = CORE_MOD,
770 .module_bit = OMAP3430_EN_I2C1_SHIFT,
772 .idlest_idle_bit = OMAP3430_ST_I2C1_SHIFT,
776 .dev_attr = &i2c1_dev_attr,
780 static struct omap_i2c_dev_attr i2c2_dev_attr = {
781 .fifo_depth = 8, /* 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 omap3xxx_i2c2_hwmod = {
789 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
790 .mpu_irqs = omap2_i2c2_mpu_irqs,
791 .sdma_reqs = omap2_i2c2_sdma_reqs,
792 .main_clk = "i2c2_fck",
795 .module_offs = CORE_MOD,
797 .module_bit = OMAP3430_EN_I2C2_SHIFT,
799 .idlest_idle_bit = OMAP3430_ST_I2C2_SHIFT,
803 .dev_attr = &i2c2_dev_attr,
807 static struct omap_i2c_dev_attr i2c3_dev_attr = {
808 .fifo_depth = 64, /* bytes */
809 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
810 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
811 OMAP_I2C_FLAG_BUS_SHIFT_2,
814 static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
815 { .irq = INT_34XX_I2C3_IRQ, },
819 static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = {
820 { .name = "tx", .dma_req = OMAP34XX_DMA_I2C3_TX },
821 { .name = "rx", .dma_req = OMAP34XX_DMA_I2C3_RX },
825 static struct omap_hwmod omap3xxx_i2c3_hwmod = {
827 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
828 .mpu_irqs = i2c3_mpu_irqs,
829 .sdma_reqs = i2c3_sdma_reqs,
830 .main_clk = "i2c3_fck",
833 .module_offs = CORE_MOD,
835 .module_bit = OMAP3430_EN_I2C3_SHIFT,
837 .idlest_idle_bit = OMAP3430_ST_I2C3_SHIFT,
841 .dev_attr = &i2c3_dev_attr,
846 * general purpose io module
849 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc = {
853 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
854 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
855 SYSS_HAS_RESET_STATUS),
856 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
857 .sysc_fields = &omap_hwmod_sysc_type1,
860 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class = {
862 .sysc = &omap3xxx_gpio_sysc,
867 static struct omap_gpio_dev_attr gpio_dev_attr = {
873 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
874 { .role = "dbclk", .clk = "gpio1_dbck", },
877 static struct omap_hwmod omap3xxx_gpio1_hwmod = {
879 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
880 .mpu_irqs = omap2_gpio1_irqs,
881 .main_clk = "gpio1_ick",
882 .opt_clks = gpio1_opt_clks,
883 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
887 .module_bit = OMAP3430_EN_GPIO1_SHIFT,
888 .module_offs = WKUP_MOD,
890 .idlest_idle_bit = OMAP3430_ST_GPIO1_SHIFT,
893 .class = &omap3xxx_gpio_hwmod_class,
894 .dev_attr = &gpio_dev_attr,
898 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
899 { .role = "dbclk", .clk = "gpio2_dbck", },
902 static struct omap_hwmod omap3xxx_gpio2_hwmod = {
904 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
905 .mpu_irqs = omap2_gpio2_irqs,
906 .main_clk = "gpio2_ick",
907 .opt_clks = gpio2_opt_clks,
908 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
912 .module_bit = OMAP3430_EN_GPIO2_SHIFT,
913 .module_offs = OMAP3430_PER_MOD,
915 .idlest_idle_bit = OMAP3430_ST_GPIO2_SHIFT,
918 .class = &omap3xxx_gpio_hwmod_class,
919 .dev_attr = &gpio_dev_attr,
923 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
924 { .role = "dbclk", .clk = "gpio3_dbck", },
927 static struct omap_hwmod omap3xxx_gpio3_hwmod = {
929 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
930 .mpu_irqs = omap2_gpio3_irqs,
931 .main_clk = "gpio3_ick",
932 .opt_clks = gpio3_opt_clks,
933 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
937 .module_bit = OMAP3430_EN_GPIO3_SHIFT,
938 .module_offs = OMAP3430_PER_MOD,
940 .idlest_idle_bit = OMAP3430_ST_GPIO3_SHIFT,
943 .class = &omap3xxx_gpio_hwmod_class,
944 .dev_attr = &gpio_dev_attr,
948 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
949 { .role = "dbclk", .clk = "gpio4_dbck", },
952 static struct omap_hwmod omap3xxx_gpio4_hwmod = {
954 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
955 .mpu_irqs = omap2_gpio4_irqs,
956 .main_clk = "gpio4_ick",
957 .opt_clks = gpio4_opt_clks,
958 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
962 .module_bit = OMAP3430_EN_GPIO4_SHIFT,
963 .module_offs = OMAP3430_PER_MOD,
965 .idlest_idle_bit = OMAP3430_ST_GPIO4_SHIFT,
968 .class = &omap3xxx_gpio_hwmod_class,
969 .dev_attr = &gpio_dev_attr,
973 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = {
974 { .irq = 33 }, /* INT_34XX_GPIO_BANK5 */
978 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
979 { .role = "dbclk", .clk = "gpio5_dbck", },
982 static struct omap_hwmod omap3xxx_gpio5_hwmod = {
984 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
985 .mpu_irqs = omap3xxx_gpio5_irqs,
986 .main_clk = "gpio5_ick",
987 .opt_clks = gpio5_opt_clks,
988 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
992 .module_bit = OMAP3430_EN_GPIO5_SHIFT,
993 .module_offs = OMAP3430_PER_MOD,
995 .idlest_idle_bit = OMAP3430_ST_GPIO5_SHIFT,
998 .class = &omap3xxx_gpio_hwmod_class,
999 .dev_attr = &gpio_dev_attr,
1003 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = {
1004 { .irq = 34 }, /* INT_34XX_GPIO_BANK6 */
1008 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1009 { .role = "dbclk", .clk = "gpio6_dbck", },
1012 static struct omap_hwmod omap3xxx_gpio6_hwmod = {
1014 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1015 .mpu_irqs = omap3xxx_gpio6_irqs,
1016 .main_clk = "gpio6_ick",
1017 .opt_clks = gpio6_opt_clks,
1018 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1022 .module_bit = OMAP3430_EN_GPIO6_SHIFT,
1023 .module_offs = OMAP3430_PER_MOD,
1025 .idlest_idle_bit = OMAP3430_ST_GPIO6_SHIFT,
1028 .class = &omap3xxx_gpio_hwmod_class,
1029 .dev_attr = &gpio_dev_attr,
1032 /* dma attributes */
1033 static struct omap_dma_dev_attr dma_dev_attr = {
1034 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1035 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1039 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc = {
1041 .sysc_offs = 0x002c,
1042 .syss_offs = 0x0028,
1043 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1044 SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
1045 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE |
1046 SYSS_HAS_RESET_STATUS),
1047 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1048 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1049 .sysc_fields = &omap_hwmod_sysc_type1,
1052 static struct omap_hwmod_class omap3xxx_dma_hwmod_class = {
1054 .sysc = &omap3xxx_dma_sysc,
1058 static struct omap_hwmod omap3xxx_dma_system_hwmod = {
1060 .class = &omap3xxx_dma_hwmod_class,
1061 .mpu_irqs = omap2_dma_system_irqs,
1062 .main_clk = "core_l3_ick",
1065 .module_offs = CORE_MOD,
1067 .module_bit = OMAP3430_ST_SDMA_SHIFT,
1069 .idlest_idle_bit = OMAP3430_ST_SDMA_SHIFT,
1072 .dev_attr = &dma_dev_attr,
1073 .flags = HWMOD_NO_IDLEST,
1078 * multi channel buffered serial port controller
1081 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc = {
1082 .sysc_offs = 0x008c,
1083 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1084 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1085 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1086 .sysc_fields = &omap_hwmod_sysc_type1,
1090 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = {
1092 .sysc = &omap3xxx_mcbsp_sysc,
1093 .rev = MCBSP_CONFIG_TYPE3,
1096 /* McBSP functional clock mapping */
1097 static struct omap_hwmod_opt_clk mcbsp15_opt_clks[] = {
1098 { .role = "pad_fck", .clk = "mcbsp_clks" },
1099 { .role = "prcm_fck", .clk = "core_96m_fck" },
1102 static struct omap_hwmod_opt_clk mcbsp234_opt_clks[] = {
1103 { .role = "pad_fck", .clk = "mcbsp_clks" },
1104 { .role = "prcm_fck", .clk = "per_96m_fck" },
1108 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = {
1109 { .name = "common", .irq = 16 },
1110 { .name = "tx", .irq = 59 },
1111 { .name = "rx", .irq = 60 },
1115 static struct omap_hwmod omap3xxx_mcbsp1_hwmod = {
1117 .class = &omap3xxx_mcbsp_hwmod_class,
1118 .mpu_irqs = omap3xxx_mcbsp1_irqs,
1119 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
1120 .main_clk = "mcbsp1_fck",
1124 .module_bit = OMAP3430_EN_MCBSP1_SHIFT,
1125 .module_offs = CORE_MOD,
1127 .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT,
1130 .opt_clks = mcbsp15_opt_clks,
1131 .opt_clks_cnt = ARRAY_SIZE(mcbsp15_opt_clks),
1135 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = {
1136 { .name = "common", .irq = 17 },
1137 { .name = "tx", .irq = 62 },
1138 { .name = "rx", .irq = 63 },
1142 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = {
1143 .sidetone = "mcbsp2_sidetone",
1146 static struct omap_hwmod omap3xxx_mcbsp2_hwmod = {
1148 .class = &omap3xxx_mcbsp_hwmod_class,
1149 .mpu_irqs = omap3xxx_mcbsp2_irqs,
1150 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
1151 .main_clk = "mcbsp2_fck",
1155 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
1156 .module_offs = OMAP3430_PER_MOD,
1158 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
1161 .opt_clks = mcbsp234_opt_clks,
1162 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1163 .dev_attr = &omap34xx_mcbsp2_dev_attr,
1167 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = {
1168 { .name = "common", .irq = 22 },
1169 { .name = "tx", .irq = 89 },
1170 { .name = "rx", .irq = 90 },
1174 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = {
1175 .sidetone = "mcbsp3_sidetone",
1178 static struct omap_hwmod omap3xxx_mcbsp3_hwmod = {
1180 .class = &omap3xxx_mcbsp_hwmod_class,
1181 .mpu_irqs = omap3xxx_mcbsp3_irqs,
1182 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
1183 .main_clk = "mcbsp3_fck",
1187 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
1188 .module_offs = OMAP3430_PER_MOD,
1190 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
1193 .opt_clks = mcbsp234_opt_clks,
1194 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1195 .dev_attr = &omap34xx_mcbsp3_dev_attr,
1199 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = {
1200 { .name = "common", .irq = 23 },
1201 { .name = "tx", .irq = 54 },
1202 { .name = "rx", .irq = 55 },
1206 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = {
1207 { .name = "rx", .dma_req = 20 },
1208 { .name = "tx", .dma_req = 19 },
1212 static struct omap_hwmod omap3xxx_mcbsp4_hwmod = {
1214 .class = &omap3xxx_mcbsp_hwmod_class,
1215 .mpu_irqs = omap3xxx_mcbsp4_irqs,
1216 .sdma_reqs = omap3xxx_mcbsp4_sdma_chs,
1217 .main_clk = "mcbsp4_fck",
1221 .module_bit = OMAP3430_EN_MCBSP4_SHIFT,
1222 .module_offs = OMAP3430_PER_MOD,
1224 .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT,
1227 .opt_clks = mcbsp234_opt_clks,
1228 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1232 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = {
1233 { .name = "common", .irq = 27 },
1234 { .name = "tx", .irq = 81 },
1235 { .name = "rx", .irq = 82 },
1239 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = {
1240 { .name = "rx", .dma_req = 22 },
1241 { .name = "tx", .dma_req = 21 },
1245 static struct omap_hwmod omap3xxx_mcbsp5_hwmod = {
1247 .class = &omap3xxx_mcbsp_hwmod_class,
1248 .mpu_irqs = omap3xxx_mcbsp5_irqs,
1249 .sdma_reqs = omap3xxx_mcbsp5_sdma_chs,
1250 .main_clk = "mcbsp5_fck",
1254 .module_bit = OMAP3430_EN_MCBSP5_SHIFT,
1255 .module_offs = CORE_MOD,
1257 .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT,
1260 .opt_clks = mcbsp15_opt_clks,
1261 .opt_clks_cnt = ARRAY_SIZE(mcbsp15_opt_clks),
1264 /* 'mcbsp sidetone' class */
1265 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc = {
1266 .sysc_offs = 0x0010,
1267 .sysc_flags = SYSC_HAS_AUTOIDLE,
1268 .sysc_fields = &omap_hwmod_sysc_type1,
1271 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = {
1272 .name = "mcbsp_sidetone",
1273 .sysc = &omap3xxx_mcbsp_sidetone_sysc,
1276 /* mcbsp2_sidetone */
1277 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = {
1278 { .name = "irq", .irq = 4 },
1282 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = {
1283 .name = "mcbsp2_sidetone",
1284 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
1285 .mpu_irqs = omap3xxx_mcbsp2_sidetone_irqs,
1286 .main_clk = "mcbsp2_fck",
1290 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
1291 .module_offs = OMAP3430_PER_MOD,
1293 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
1298 /* mcbsp3_sidetone */
1299 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = {
1300 { .name = "irq", .irq = 5 },
1304 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = {
1305 .name = "mcbsp3_sidetone",
1306 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
1307 .mpu_irqs = omap3xxx_mcbsp3_sidetone_irqs,
1308 .main_clk = "mcbsp3_fck",
1312 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
1313 .module_offs = OMAP3430_PER_MOD,
1315 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
1321 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields = {
1325 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc = {
1327 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_NO_CACHE),
1328 .clockact = CLOCKACT_TEST_ICLK,
1329 .sysc_fields = &omap34xx_sr_sysc_fields,
1332 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class = {
1333 .name = "smartreflex",
1334 .sysc = &omap34xx_sr_sysc,
1338 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields = {
1343 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc = {
1345 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1346 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
1348 .sysc_fields = &omap36xx_sr_sysc_fields,
1351 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class = {
1352 .name = "smartreflex",
1353 .sysc = &omap36xx_sr_sysc,
1358 static struct omap_smartreflex_dev_attr sr1_dev_attr = {
1359 .sensor_voltdm_name = "mpu_iva",
1362 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = {
1367 static struct omap_hwmod omap34xx_sr1_hwmod = {
1369 .class = &omap34xx_smartreflex_hwmod_class,
1370 .main_clk = "sr1_fck",
1374 .module_bit = OMAP3430_EN_SR1_SHIFT,
1375 .module_offs = WKUP_MOD,
1377 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
1380 .dev_attr = &sr1_dev_attr,
1381 .mpu_irqs = omap3_smartreflex_mpu_irqs,
1382 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1385 static struct omap_hwmod omap36xx_sr1_hwmod = {
1387 .class = &omap36xx_smartreflex_hwmod_class,
1388 .main_clk = "sr1_fck",
1392 .module_bit = OMAP3430_EN_SR1_SHIFT,
1393 .module_offs = WKUP_MOD,
1395 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
1398 .dev_attr = &sr1_dev_attr,
1399 .mpu_irqs = omap3_smartreflex_mpu_irqs,
1403 static struct omap_smartreflex_dev_attr sr2_dev_attr = {
1404 .sensor_voltdm_name = "core",
1407 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = {
1412 static struct omap_hwmod omap34xx_sr2_hwmod = {
1414 .class = &omap34xx_smartreflex_hwmod_class,
1415 .main_clk = "sr2_fck",
1419 .module_bit = OMAP3430_EN_SR2_SHIFT,
1420 .module_offs = WKUP_MOD,
1422 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
1425 .dev_attr = &sr2_dev_attr,
1426 .mpu_irqs = omap3_smartreflex_core_irqs,
1427 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1430 static struct omap_hwmod omap36xx_sr2_hwmod = {
1432 .class = &omap36xx_smartreflex_hwmod_class,
1433 .main_clk = "sr2_fck",
1437 .module_bit = OMAP3430_EN_SR2_SHIFT,
1438 .module_offs = WKUP_MOD,
1440 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
1443 .dev_attr = &sr2_dev_attr,
1444 .mpu_irqs = omap3_smartreflex_core_irqs,
1449 * mailbox module allowing communication between the on-chip processors
1450 * using a queued mailbox-interrupt mechanism.
1453 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc = {
1457 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1458 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1459 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1460 .sysc_fields = &omap_hwmod_sysc_type1,
1463 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = {
1465 .sysc = &omap3xxx_mailbox_sysc,
1468 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = {
1473 static struct omap_hwmod omap3xxx_mailbox_hwmod = {
1475 .class = &omap3xxx_mailbox_hwmod_class,
1476 .mpu_irqs = omap3xxx_mailbox_irqs,
1477 .main_clk = "mailboxes_ick",
1481 .module_bit = OMAP3430_EN_MAILBOXES_SHIFT,
1482 .module_offs = CORE_MOD,
1484 .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT,
1491 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1495 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc = {
1497 .sysc_offs = 0x0010,
1498 .syss_offs = 0x0014,
1499 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1500 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1501 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1503 .sysc_fields = &omap_hwmod_sysc_type1,
1506 static struct omap_hwmod_class omap34xx_mcspi_class = {
1508 .sysc = &omap34xx_mcspi_sysc,
1509 .rev = OMAP3_MCSPI_REV,
1513 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1514 .num_chipselect = 4,
1517 static struct omap_hwmod omap34xx_mcspi1 = {
1519 .mpu_irqs = omap2_mcspi1_mpu_irqs,
1520 .sdma_reqs = omap2_mcspi1_sdma_reqs,
1521 .main_clk = "mcspi1_fck",
1524 .module_offs = CORE_MOD,
1526 .module_bit = OMAP3430_EN_MCSPI1_SHIFT,
1528 .idlest_idle_bit = OMAP3430_ST_MCSPI1_SHIFT,
1531 .class = &omap34xx_mcspi_class,
1532 .dev_attr = &omap_mcspi1_dev_attr,
1536 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1537 .num_chipselect = 2,
1540 static struct omap_hwmod omap34xx_mcspi2 = {
1542 .mpu_irqs = omap2_mcspi2_mpu_irqs,
1543 .sdma_reqs = omap2_mcspi2_sdma_reqs,
1544 .main_clk = "mcspi2_fck",
1547 .module_offs = CORE_MOD,
1549 .module_bit = OMAP3430_EN_MCSPI2_SHIFT,
1551 .idlest_idle_bit = OMAP3430_ST_MCSPI2_SHIFT,
1554 .class = &omap34xx_mcspi_class,
1555 .dev_attr = &omap_mcspi2_dev_attr,
1559 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = {
1560 { .name = "irq", .irq = 91 }, /* 91 */
1564 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = {
1565 { .name = "tx0", .dma_req = 15 },
1566 { .name = "rx0", .dma_req = 16 },
1567 { .name = "tx1", .dma_req = 23 },
1568 { .name = "rx1", .dma_req = 24 },
1572 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1573 .num_chipselect = 2,
1576 static struct omap_hwmod omap34xx_mcspi3 = {
1578 .mpu_irqs = omap34xx_mcspi3_mpu_irqs,
1579 .sdma_reqs = omap34xx_mcspi3_sdma_reqs,
1580 .main_clk = "mcspi3_fck",
1583 .module_offs = CORE_MOD,
1585 .module_bit = OMAP3430_EN_MCSPI3_SHIFT,
1587 .idlest_idle_bit = OMAP3430_ST_MCSPI3_SHIFT,
1590 .class = &omap34xx_mcspi_class,
1591 .dev_attr = &omap_mcspi3_dev_attr,
1595 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = {
1596 { .name = "irq", .irq = INT_34XX_SPI4_IRQ }, /* 48 */
1600 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = {
1601 { .name = "tx0", .dma_req = 70 }, /* DMA_SPI4_TX0 */
1602 { .name = "rx0", .dma_req = 71 }, /* DMA_SPI4_RX0 */
1606 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr = {
1607 .num_chipselect = 1,
1610 static struct omap_hwmod omap34xx_mcspi4 = {
1612 .mpu_irqs = omap34xx_mcspi4_mpu_irqs,
1613 .sdma_reqs = omap34xx_mcspi4_sdma_reqs,
1614 .main_clk = "mcspi4_fck",
1617 .module_offs = CORE_MOD,
1619 .module_bit = OMAP3430_EN_MCSPI4_SHIFT,
1621 .idlest_idle_bit = OMAP3430_ST_MCSPI4_SHIFT,
1624 .class = &omap34xx_mcspi_class,
1625 .dev_attr = &omap_mcspi4_dev_attr,
1629 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc = {
1631 .sysc_offs = 0x0404,
1632 .syss_offs = 0x0408,
1633 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1634 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1636 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1637 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1638 .sysc_fields = &omap_hwmod_sysc_type1,
1641 static struct omap_hwmod_class usbotg_class = {
1643 .sysc = &omap3xxx_usbhsotg_sysc,
1647 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = {
1649 { .name = "mc", .irq = 92 },
1650 { .name = "dma", .irq = 93 },
1654 static struct omap_hwmod omap3xxx_usbhsotg_hwmod = {
1655 .name = "usb_otg_hs",
1656 .mpu_irqs = omap3xxx_usbhsotg_mpu_irqs,
1657 .main_clk = "hsotgusb_ick",
1661 .module_bit = OMAP3430_EN_HSOTGUSB_SHIFT,
1662 .module_offs = CORE_MOD,
1664 .idlest_idle_bit = OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT,
1665 .idlest_stdby_bit = OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1668 .class = &usbotg_class,
1671 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1672 * broken when autoidle is enabled
1673 * workaround is to disable the autoidle bit at module level.
1675 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1676 | HWMOD_SWSUP_MSTANDBY,
1680 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = {
1681 { .name = "mc", .irq = 71 },
1685 static struct omap_hwmod_class am35xx_usbotg_class = {
1686 .name = "am35xx_usbotg",
1689 static struct omap_hwmod am35xx_usbhsotg_hwmod = {
1690 .name = "am35x_otg_hs",
1691 .mpu_irqs = am35xx_usbhsotg_mpu_irqs,
1692 .main_clk = "hsotgusb_fck",
1693 .class = &am35xx_usbotg_class,
1694 .flags = HWMOD_NO_IDLEST,
1697 /* MMC/SD/SDIO common */
1698 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc = {
1702 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1703 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1704 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1705 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1706 .sysc_fields = &omap_hwmod_sysc_type1,
1709 static struct omap_hwmod_class omap34xx_mmc_class = {
1711 .sysc = &omap34xx_mmc_sysc,
1716 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = {
1721 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = {
1722 { .name = "tx", .dma_req = 61, },
1723 { .name = "rx", .dma_req = 62, },
1727 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks[] = {
1728 { .role = "dbck", .clk = "omap_32k_fck", },
1731 static struct omap_mmc_dev_attr mmc1_dev_attr = {
1732 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1735 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1736 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr = {
1737 .flags = (OMAP_HSMMC_SUPPORTS_DUAL_VOLT |
1738 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ),
1741 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod = {
1743 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
1744 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
1745 .opt_clks = omap34xx_mmc1_opt_clks,
1746 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
1747 .main_clk = "mmchs1_fck",
1750 .module_offs = CORE_MOD,
1752 .module_bit = OMAP3430_EN_MMC1_SHIFT,
1754 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
1757 .dev_attr = &mmc1_pre_es3_dev_attr,
1758 .class = &omap34xx_mmc_class,
1761 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod = {
1763 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
1764 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
1765 .opt_clks = omap34xx_mmc1_opt_clks,
1766 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
1767 .main_clk = "mmchs1_fck",
1770 .module_offs = CORE_MOD,
1772 .module_bit = OMAP3430_EN_MMC1_SHIFT,
1774 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
1777 .dev_attr = &mmc1_dev_attr,
1778 .class = &omap34xx_mmc_class,
1783 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = {
1784 { .irq = INT_24XX_MMC2_IRQ, },
1788 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = {
1789 { .name = "tx", .dma_req = 47, },
1790 { .name = "rx", .dma_req = 48, },
1794 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks[] = {
1795 { .role = "dbck", .clk = "omap_32k_fck", },
1798 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1799 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr = {
1800 .flags = OMAP_HSMMC_BROKEN_MULTIBLOCK_READ,
1803 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod = {
1805 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
1806 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
1807 .opt_clks = omap34xx_mmc2_opt_clks,
1808 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
1809 .main_clk = "mmchs2_fck",
1812 .module_offs = CORE_MOD,
1814 .module_bit = OMAP3430_EN_MMC2_SHIFT,
1816 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
1819 .dev_attr = &mmc2_pre_es3_dev_attr,
1820 .class = &omap34xx_mmc_class,
1823 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod = {
1825 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
1826 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
1827 .opt_clks = omap34xx_mmc2_opt_clks,
1828 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
1829 .main_clk = "mmchs2_fck",
1832 .module_offs = CORE_MOD,
1834 .module_bit = OMAP3430_EN_MMC2_SHIFT,
1836 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
1839 .class = &omap34xx_mmc_class,
1844 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = {
1849 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = {
1850 { .name = "tx", .dma_req = 77, },
1851 { .name = "rx", .dma_req = 78, },
1855 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks[] = {
1856 { .role = "dbck", .clk = "omap_32k_fck", },
1859 static struct omap_hwmod omap3xxx_mmc3_hwmod = {
1861 .mpu_irqs = omap34xx_mmc3_mpu_irqs,
1862 .sdma_reqs = omap34xx_mmc3_sdma_reqs,
1863 .opt_clks = omap34xx_mmc3_opt_clks,
1864 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc3_opt_clks),
1865 .main_clk = "mmchs3_fck",
1869 .module_bit = OMAP3430_EN_MMC3_SHIFT,
1871 .idlest_idle_bit = OMAP3430_ST_MMC3_SHIFT,
1874 .class = &omap34xx_mmc_class,
1878 * 'usb_host_hs' class
1879 * high-speed multi-port usb host controller
1882 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc = {
1884 .sysc_offs = 0x0010,
1885 .syss_offs = 0x0014,
1886 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
1887 SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
1888 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1889 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1890 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1891 .sysc_fields = &omap_hwmod_sysc_type1,
1894 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class = {
1895 .name = "usb_host_hs",
1896 .sysc = &omap3xxx_usb_host_hs_sysc,
1899 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks[] = {
1900 { .role = "ehci_logic_fck", .clk = "usbhost_120m_fck", },
1903 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = {
1904 { .name = "ohci-irq", .irq = 76 },
1905 { .name = "ehci-irq", .irq = 77 },
1909 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = {
1910 .name = "usb_host_hs",
1911 .class = &omap3xxx_usb_host_hs_hwmod_class,
1912 .clkdm_name = "l3_init_clkdm",
1913 .mpu_irqs = omap3xxx_usb_host_hs_irqs,
1914 .main_clk = "usbhost_48m_fck",
1917 .module_offs = OMAP3430ES2_USBHOST_MOD,
1919 .module_bit = OMAP3430ES2_EN_USBHOST1_SHIFT,
1921 .idlest_idle_bit = OMAP3430ES2_ST_USBHOST_IDLE_SHIFT,
1922 .idlest_stdby_bit = OMAP3430ES2_ST_USBHOST_STDBY_SHIFT,
1925 .opt_clks = omap3xxx_usb_host_hs_opt_clks,
1926 .opt_clks_cnt = ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks),
1929 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1933 * In the following configuration :
1934 * - USBHOST module is set to smart-idle mode
1935 * - PRCM asserts idle_req to the USBHOST module ( This typically
1936 * happens when the system is going to a low power mode : all ports
1937 * have been suspended, the master part of the USBHOST module has
1938 * entered the standby state, and SW has cut the functional clocks)
1939 * - an USBHOST interrupt occurs before the module is able to answer
1940 * idle_ack, typically a remote wakeup IRQ.
1941 * Then the USB HOST module will enter a deadlock situation where it
1942 * is no more accessible nor functional.
1945 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1949 * Errata: USB host EHCI may stall when entering smart-standby mode
1953 * When the USBHOST module is set to smart-standby mode, and when it is
1954 * ready to enter the standby state (i.e. all ports are suspended and
1955 * all attached devices are in suspend mode), then it can wrongly assert
1956 * the Mstandby signal too early while there are still some residual OCP
1957 * transactions ongoing. If this condition occurs, the internal state
1958 * machine may go to an undefined state and the USB link may be stuck
1959 * upon the next resume.
1962 * Don't use smart standby; use only force standby,
1963 * hence HWMOD_SWSUP_MSTANDBY
1967 * During system boot; If the hwmod framework resets the module
1968 * the module will have smart idle settings; which can lead to deadlock
1969 * (above Errata Id:i660); so, dont reset the module during boot;
1970 * Use HWMOD_INIT_NO_RESET.
1973 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
1974 HWMOD_INIT_NO_RESET,
1978 * 'usb_tll_hs' class
1979 * usb_tll_hs module is the adapter on the usb_host_hs ports
1981 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc = {
1983 .sysc_offs = 0x0010,
1984 .syss_offs = 0x0014,
1985 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1986 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1988 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1989 .sysc_fields = &omap_hwmod_sysc_type1,
1992 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class = {
1993 .name = "usb_tll_hs",
1994 .sysc = &omap3xxx_usb_tll_hs_sysc,
1997 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = {
1998 { .name = "tll-irq", .irq = 78 },
2002 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = {
2003 .name = "usb_tll_hs",
2004 .class = &omap3xxx_usb_tll_hs_hwmod_class,
2005 .clkdm_name = "l3_init_clkdm",
2006 .mpu_irqs = omap3xxx_usb_tll_hs_irqs,
2007 .main_clk = "usbtll_fck",
2010 .module_offs = CORE_MOD,
2012 .module_bit = OMAP3430ES2_EN_USBTLL_SHIFT,
2014 .idlest_idle_bit = OMAP3430ES2_ST_USBTLL_SHIFT,
2019 static struct omap_hwmod omap3xxx_hdq1w_hwmod = {
2021 .mpu_irqs = omap2_hdq1w_mpu_irqs,
2022 .main_clk = "hdq_fck",
2025 .module_offs = CORE_MOD,
2027 .module_bit = OMAP3430_EN_HDQ_SHIFT,
2029 .idlest_idle_bit = OMAP3430_ST_HDQ_SHIFT,
2032 .class = &omap2_hdq1w_class,
2036 * '32K sync counter' class
2037 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2039 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc = {
2041 .sysc_offs = 0x0004,
2042 .sysc_flags = SYSC_HAS_SIDLEMODE,
2043 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
2044 .sysc_fields = &omap_hwmod_sysc_type1,
2047 static struct omap_hwmod_class omap3xxx_counter_hwmod_class = {
2049 .sysc = &omap3xxx_counter_sysc,
2052 static struct omap_hwmod omap3xxx_counter_32k_hwmod = {
2053 .name = "counter_32k",
2054 .class = &omap3xxx_counter_hwmod_class,
2055 .clkdm_name = "wkup_clkdm",
2056 .flags = HWMOD_SWSUP_SIDLE,
2057 .main_clk = "wkup_32k_fck",
2060 .module_offs = WKUP_MOD,
2062 .module_bit = OMAP3430_ST_32KSYNC_SHIFT,
2064 .idlest_idle_bit = OMAP3430_ST_32KSYNC_SHIFT,
2073 /* L3 -> L4_CORE interface */
2074 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
2075 .master = &omap3xxx_l3_main_hwmod,
2076 .slave = &omap3xxx_l4_core_hwmod,
2077 .user = OCP_USER_MPU | OCP_USER_SDMA,
2080 /* L3 -> L4_PER interface */
2081 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = {
2082 .master = &omap3xxx_l3_main_hwmod,
2083 .slave = &omap3xxx_l4_per_hwmod,
2084 .user = OCP_USER_MPU | OCP_USER_SDMA,
2087 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs[] = {
2089 .pa_start = 0x68000000,
2090 .pa_end = 0x6800ffff,
2091 .flags = ADDR_TYPE_RT,
2096 /* MPU -> L3 interface */
2097 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = {
2098 .master = &omap3xxx_mpu_hwmod,
2099 .slave = &omap3xxx_l3_main_hwmod,
2100 .addr = omap3xxx_l3_main_addrs,
2101 .user = OCP_USER_MPU,
2105 static struct omap_hwmod_ocp_if omap3430es1_dss__l3 = {
2106 .master = &omap3430es1_dss_core_hwmod,
2107 .slave = &omap3xxx_l3_main_hwmod,
2108 .user = OCP_USER_MPU | OCP_USER_SDMA,
2111 static struct omap_hwmod_ocp_if omap3xxx_dss__l3 = {
2112 .master = &omap3xxx_dss_core_hwmod,
2113 .slave = &omap3xxx_l3_main_hwmod,
2116 .l3_perm_bit = OMAP3_L3_CORE_FW_INIT_ID_DSS,
2117 .flags = OMAP_FIREWALL_L3,
2120 .user = OCP_USER_MPU | OCP_USER_SDMA,
2123 /* l3_core -> usbhsotg interface */
2124 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3 = {
2125 .master = &omap3xxx_usbhsotg_hwmod,
2126 .slave = &omap3xxx_l3_main_hwmod,
2127 .clk = "core_l3_ick",
2128 .user = OCP_USER_MPU,
2131 /* l3_core -> am35xx_usbhsotg interface */
2132 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3 = {
2133 .master = &am35xx_usbhsotg_hwmod,
2134 .slave = &omap3xxx_l3_main_hwmod,
2135 .clk = "hsotgusb_ick",
2136 .user = OCP_USER_MPU,
2139 /* L4_CORE -> L4_WKUP interface */
2140 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
2141 .master = &omap3xxx_l4_core_hwmod,
2142 .slave = &omap3xxx_l4_wkup_hwmod,
2143 .user = OCP_USER_MPU | OCP_USER_SDMA,
2146 /* L4 CORE -> MMC1 interface */
2147 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1 = {
2148 .master = &omap3xxx_l4_core_hwmod,
2149 .slave = &omap3xxx_pre_es3_mmc1_hwmod,
2150 .clk = "mmchs1_ick",
2151 .addr = omap2430_mmc1_addr_space,
2152 .user = OCP_USER_MPU | OCP_USER_SDMA,
2153 .flags = OMAP_FIREWALL_L4
2156 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1 = {
2157 .master = &omap3xxx_l4_core_hwmod,
2158 .slave = &omap3xxx_es3plus_mmc1_hwmod,
2159 .clk = "mmchs1_ick",
2160 .addr = omap2430_mmc1_addr_space,
2161 .user = OCP_USER_MPU | OCP_USER_SDMA,
2162 .flags = OMAP_FIREWALL_L4
2165 /* L4 CORE -> MMC2 interface */
2166 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2 = {
2167 .master = &omap3xxx_l4_core_hwmod,
2168 .slave = &omap3xxx_pre_es3_mmc2_hwmod,
2169 .clk = "mmchs2_ick",
2170 .addr = omap2430_mmc2_addr_space,
2171 .user = OCP_USER_MPU | OCP_USER_SDMA,
2172 .flags = OMAP_FIREWALL_L4
2175 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2 = {
2176 .master = &omap3xxx_l4_core_hwmod,
2177 .slave = &omap3xxx_es3plus_mmc2_hwmod,
2178 .clk = "mmchs2_ick",
2179 .addr = omap2430_mmc2_addr_space,
2180 .user = OCP_USER_MPU | OCP_USER_SDMA,
2181 .flags = OMAP_FIREWALL_L4
2184 /* L4 CORE -> MMC3 interface */
2185 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space[] = {
2187 .pa_start = 0x480ad000,
2188 .pa_end = 0x480ad1ff,
2189 .flags = ADDR_TYPE_RT,
2194 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3 = {
2195 .master = &omap3xxx_l4_core_hwmod,
2196 .slave = &omap3xxx_mmc3_hwmod,
2197 .clk = "mmchs3_ick",
2198 .addr = omap3xxx_mmc3_addr_space,
2199 .user = OCP_USER_MPU | OCP_USER_SDMA,
2200 .flags = OMAP_FIREWALL_L4
2203 /* L4 CORE -> UART1 interface */
2204 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = {
2206 .pa_start = OMAP3_UART1_BASE,
2207 .pa_end = OMAP3_UART1_BASE + SZ_8K - 1,
2208 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2213 static struct omap_hwmod_ocp_if omap3_l4_core__uart1 = {
2214 .master = &omap3xxx_l4_core_hwmod,
2215 .slave = &omap3xxx_uart1_hwmod,
2217 .addr = omap3xxx_uart1_addr_space,
2218 .user = OCP_USER_MPU | OCP_USER_SDMA,
2221 /* L4 CORE -> UART2 interface */
2222 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space[] = {
2224 .pa_start = OMAP3_UART2_BASE,
2225 .pa_end = OMAP3_UART2_BASE + SZ_1K - 1,
2226 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2231 static struct omap_hwmod_ocp_if omap3_l4_core__uart2 = {
2232 .master = &omap3xxx_l4_core_hwmod,
2233 .slave = &omap3xxx_uart2_hwmod,
2235 .addr = omap3xxx_uart2_addr_space,
2236 .user = OCP_USER_MPU | OCP_USER_SDMA,
2239 /* L4 PER -> UART3 interface */
2240 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space[] = {
2242 .pa_start = OMAP3_UART3_BASE,
2243 .pa_end = OMAP3_UART3_BASE + SZ_1K - 1,
2244 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2249 static struct omap_hwmod_ocp_if omap3_l4_per__uart3 = {
2250 .master = &omap3xxx_l4_per_hwmod,
2251 .slave = &omap3xxx_uart3_hwmod,
2253 .addr = omap3xxx_uart3_addr_space,
2254 .user = OCP_USER_MPU | OCP_USER_SDMA,
2257 /* L4 PER -> UART4 interface */
2258 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space[] = {
2260 .pa_start = OMAP3_UART4_BASE,
2261 .pa_end = OMAP3_UART4_BASE + SZ_1K - 1,
2262 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2267 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4 = {
2268 .master = &omap3xxx_l4_per_hwmod,
2269 .slave = &omap36xx_uart4_hwmod,
2271 .addr = omap36xx_uart4_addr_space,
2272 .user = OCP_USER_MPU | OCP_USER_SDMA,
2275 /* AM35xx: L4 CORE -> UART4 interface */
2276 static struct omap_hwmod_addr_space am35xx_uart4_addr_space[] = {
2278 .pa_start = OMAP3_UART4_AM35XX_BASE,
2279 .pa_end = OMAP3_UART4_AM35XX_BASE + SZ_1K - 1,
2280 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2285 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4 = {
2286 .master = &omap3xxx_l4_core_hwmod,
2287 .slave = &am35xx_uart4_hwmod,
2289 .addr = am35xx_uart4_addr_space,
2290 .user = OCP_USER_MPU | OCP_USER_SDMA,
2293 /* L4 CORE -> I2C1 interface */
2294 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1 = {
2295 .master = &omap3xxx_l4_core_hwmod,
2296 .slave = &omap3xxx_i2c1_hwmod,
2298 .addr = omap2_i2c1_addr_space,
2301 .l4_fw_region = OMAP3_L4_CORE_FW_I2C1_REGION,
2303 .flags = OMAP_FIREWALL_L4,
2306 .user = OCP_USER_MPU | OCP_USER_SDMA,
2309 /* L4 CORE -> I2C2 interface */
2310 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2 = {
2311 .master = &omap3xxx_l4_core_hwmod,
2312 .slave = &omap3xxx_i2c2_hwmod,
2314 .addr = omap2_i2c2_addr_space,
2317 .l4_fw_region = OMAP3_L4_CORE_FW_I2C2_REGION,
2319 .flags = OMAP_FIREWALL_L4,
2322 .user = OCP_USER_MPU | OCP_USER_SDMA,
2325 /* L4 CORE -> I2C3 interface */
2326 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space[] = {
2328 .pa_start = 0x48060000,
2329 .pa_end = 0x48060000 + SZ_128 - 1,
2330 .flags = ADDR_TYPE_RT,
2335 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3 = {
2336 .master = &omap3xxx_l4_core_hwmod,
2337 .slave = &omap3xxx_i2c3_hwmod,
2339 .addr = omap3xxx_i2c3_addr_space,
2342 .l4_fw_region = OMAP3_L4_CORE_FW_I2C3_REGION,
2344 .flags = OMAP_FIREWALL_L4,
2347 .user = OCP_USER_MPU | OCP_USER_SDMA,
2350 /* L4 CORE -> SR1 interface */
2351 static struct omap_hwmod_addr_space omap3_sr1_addr_space[] = {
2353 .pa_start = OMAP34XX_SR1_BASE,
2354 .pa_end = OMAP34XX_SR1_BASE + SZ_1K - 1,
2355 .flags = ADDR_TYPE_RT,
2360 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1 = {
2361 .master = &omap3xxx_l4_core_hwmod,
2362 .slave = &omap34xx_sr1_hwmod,
2364 .addr = omap3_sr1_addr_space,
2365 .user = OCP_USER_MPU,
2368 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1 = {
2369 .master = &omap3xxx_l4_core_hwmod,
2370 .slave = &omap36xx_sr1_hwmod,
2372 .addr = omap3_sr1_addr_space,
2373 .user = OCP_USER_MPU,
2376 /* L4 CORE -> SR1 interface */
2377 static struct omap_hwmod_addr_space omap3_sr2_addr_space[] = {
2379 .pa_start = OMAP34XX_SR2_BASE,
2380 .pa_end = OMAP34XX_SR2_BASE + SZ_1K - 1,
2381 .flags = ADDR_TYPE_RT,
2386 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2 = {
2387 .master = &omap3xxx_l4_core_hwmod,
2388 .slave = &omap34xx_sr2_hwmod,
2390 .addr = omap3_sr2_addr_space,
2391 .user = OCP_USER_MPU,
2394 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2 = {
2395 .master = &omap3xxx_l4_core_hwmod,
2396 .slave = &omap36xx_sr2_hwmod,
2398 .addr = omap3_sr2_addr_space,
2399 .user = OCP_USER_MPU,
2402 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs[] = {
2404 .pa_start = OMAP34XX_HSUSB_OTG_BASE,
2405 .pa_end = OMAP34XX_HSUSB_OTG_BASE + SZ_4K - 1,
2406 .flags = ADDR_TYPE_RT
2411 /* l4_core -> usbhsotg */
2412 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg = {
2413 .master = &omap3xxx_l4_core_hwmod,
2414 .slave = &omap3xxx_usbhsotg_hwmod,
2416 .addr = omap3xxx_usbhsotg_addrs,
2417 .user = OCP_USER_MPU,
2420 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs[] = {
2422 .pa_start = AM35XX_IPSS_USBOTGSS_BASE,
2423 .pa_end = AM35XX_IPSS_USBOTGSS_BASE + SZ_4K - 1,
2424 .flags = ADDR_TYPE_RT
2429 /* l4_core -> usbhsotg */
2430 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg = {
2431 .master = &omap3xxx_l4_core_hwmod,
2432 .slave = &am35xx_usbhsotg_hwmod,
2433 .clk = "hsotgusb_ick",
2434 .addr = am35xx_usbhsotg_addrs,
2435 .user = OCP_USER_MPU,
2438 /* L4_WKUP -> L4_SEC interface */
2439 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec = {
2440 .master = &omap3xxx_l4_wkup_hwmod,
2441 .slave = &omap3xxx_l4_sec_hwmod,
2442 .user = OCP_USER_MPU | OCP_USER_SDMA,
2445 /* IVA2 <- L3 interface */
2446 static struct omap_hwmod_ocp_if omap3xxx_l3__iva = {
2447 .master = &omap3xxx_l3_main_hwmod,
2448 .slave = &omap3xxx_iva_hwmod,
2449 .clk = "core_l3_ick",
2450 .user = OCP_USER_MPU | OCP_USER_SDMA,
2453 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs[] = {
2455 .pa_start = 0x48318000,
2456 .pa_end = 0x48318000 + SZ_1K - 1,
2457 .flags = ADDR_TYPE_RT
2462 /* l4_wkup -> timer1 */
2463 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1 = {
2464 .master = &omap3xxx_l4_wkup_hwmod,
2465 .slave = &omap3xxx_timer1_hwmod,
2467 .addr = omap3xxx_timer1_addrs,
2468 .user = OCP_USER_MPU | OCP_USER_SDMA,
2471 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs[] = {
2473 .pa_start = 0x49032000,
2474 .pa_end = 0x49032000 + SZ_1K - 1,
2475 .flags = ADDR_TYPE_RT
2480 /* l4_per -> timer2 */
2481 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2 = {
2482 .master = &omap3xxx_l4_per_hwmod,
2483 .slave = &omap3xxx_timer2_hwmod,
2485 .addr = omap3xxx_timer2_addrs,
2486 .user = OCP_USER_MPU | OCP_USER_SDMA,
2489 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs[] = {
2491 .pa_start = 0x49034000,
2492 .pa_end = 0x49034000 + SZ_1K - 1,
2493 .flags = ADDR_TYPE_RT
2498 /* l4_per -> timer3 */
2499 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3 = {
2500 .master = &omap3xxx_l4_per_hwmod,
2501 .slave = &omap3xxx_timer3_hwmod,
2503 .addr = omap3xxx_timer3_addrs,
2504 .user = OCP_USER_MPU | OCP_USER_SDMA,
2507 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs[] = {
2509 .pa_start = 0x49036000,
2510 .pa_end = 0x49036000 + SZ_1K - 1,
2511 .flags = ADDR_TYPE_RT
2516 /* l4_per -> timer4 */
2517 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4 = {
2518 .master = &omap3xxx_l4_per_hwmod,
2519 .slave = &omap3xxx_timer4_hwmod,
2521 .addr = omap3xxx_timer4_addrs,
2522 .user = OCP_USER_MPU | OCP_USER_SDMA,
2525 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs[] = {
2527 .pa_start = 0x49038000,
2528 .pa_end = 0x49038000 + SZ_1K - 1,
2529 .flags = ADDR_TYPE_RT
2534 /* l4_per -> timer5 */
2535 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5 = {
2536 .master = &omap3xxx_l4_per_hwmod,
2537 .slave = &omap3xxx_timer5_hwmod,
2539 .addr = omap3xxx_timer5_addrs,
2540 .user = OCP_USER_MPU | OCP_USER_SDMA,
2543 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs[] = {
2545 .pa_start = 0x4903A000,
2546 .pa_end = 0x4903A000 + SZ_1K - 1,
2547 .flags = ADDR_TYPE_RT
2552 /* l4_per -> timer6 */
2553 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6 = {
2554 .master = &omap3xxx_l4_per_hwmod,
2555 .slave = &omap3xxx_timer6_hwmod,
2557 .addr = omap3xxx_timer6_addrs,
2558 .user = OCP_USER_MPU | OCP_USER_SDMA,
2561 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs[] = {
2563 .pa_start = 0x4903C000,
2564 .pa_end = 0x4903C000 + SZ_1K - 1,
2565 .flags = ADDR_TYPE_RT
2570 /* l4_per -> timer7 */
2571 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7 = {
2572 .master = &omap3xxx_l4_per_hwmod,
2573 .slave = &omap3xxx_timer7_hwmod,
2575 .addr = omap3xxx_timer7_addrs,
2576 .user = OCP_USER_MPU | OCP_USER_SDMA,
2579 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs[] = {
2581 .pa_start = 0x4903E000,
2582 .pa_end = 0x4903E000 + SZ_1K - 1,
2583 .flags = ADDR_TYPE_RT
2588 /* l4_per -> timer8 */
2589 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8 = {
2590 .master = &omap3xxx_l4_per_hwmod,
2591 .slave = &omap3xxx_timer8_hwmod,
2593 .addr = omap3xxx_timer8_addrs,
2594 .user = OCP_USER_MPU | OCP_USER_SDMA,
2597 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs[] = {
2599 .pa_start = 0x49040000,
2600 .pa_end = 0x49040000 + SZ_1K - 1,
2601 .flags = ADDR_TYPE_RT
2606 /* l4_per -> timer9 */
2607 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9 = {
2608 .master = &omap3xxx_l4_per_hwmod,
2609 .slave = &omap3xxx_timer9_hwmod,
2611 .addr = omap3xxx_timer9_addrs,
2612 .user = OCP_USER_MPU | OCP_USER_SDMA,
2615 /* l4_core -> timer10 */
2616 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10 = {
2617 .master = &omap3xxx_l4_core_hwmod,
2618 .slave = &omap3xxx_timer10_hwmod,
2620 .addr = omap2_timer10_addrs,
2621 .user = OCP_USER_MPU | OCP_USER_SDMA,
2624 /* l4_core -> timer11 */
2625 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11 = {
2626 .master = &omap3xxx_l4_core_hwmod,
2627 .slave = &omap3xxx_timer11_hwmod,
2629 .addr = omap2_timer11_addrs,
2630 .user = OCP_USER_MPU | OCP_USER_SDMA,
2633 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs[] = {
2635 .pa_start = 0x48304000,
2636 .pa_end = 0x48304000 + SZ_1K - 1,
2637 .flags = ADDR_TYPE_RT
2642 /* l4_core -> timer12 */
2643 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12 = {
2644 .master = &omap3xxx_l4_sec_hwmod,
2645 .slave = &omap3xxx_timer12_hwmod,
2647 .addr = omap3xxx_timer12_addrs,
2648 .user = OCP_USER_MPU | OCP_USER_SDMA,
2651 /* l4_wkup -> wd_timer2 */
2652 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs[] = {
2654 .pa_start = 0x48314000,
2655 .pa_end = 0x4831407f,
2656 .flags = ADDR_TYPE_RT
2661 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2 = {
2662 .master = &omap3xxx_l4_wkup_hwmod,
2663 .slave = &omap3xxx_wd_timer2_hwmod,
2665 .addr = omap3xxx_wd_timer2_addrs,
2666 .user = OCP_USER_MPU | OCP_USER_SDMA,
2669 /* l4_core -> dss */
2670 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss = {
2671 .master = &omap3xxx_l4_core_hwmod,
2672 .slave = &omap3430es1_dss_core_hwmod,
2674 .addr = omap2_dss_addrs,
2677 .l4_fw_region = OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION,
2678 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2679 .flags = OMAP_FIREWALL_L4,
2682 .user = OCP_USER_MPU | OCP_USER_SDMA,
2685 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss = {
2686 .master = &omap3xxx_l4_core_hwmod,
2687 .slave = &omap3xxx_dss_core_hwmod,
2689 .addr = omap2_dss_addrs,
2692 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_CORE_REGION,
2693 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2694 .flags = OMAP_FIREWALL_L4,
2697 .user = OCP_USER_MPU | OCP_USER_SDMA,
2700 /* l4_core -> dss_dispc */
2701 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc = {
2702 .master = &omap3xxx_l4_core_hwmod,
2703 .slave = &omap3xxx_dss_dispc_hwmod,
2705 .addr = omap2_dss_dispc_addrs,
2708 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DISPC_REGION,
2709 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2710 .flags = OMAP_FIREWALL_L4,
2713 .user = OCP_USER_MPU | OCP_USER_SDMA,
2716 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs[] = {
2718 .pa_start = 0x4804FC00,
2719 .pa_end = 0x4804FFFF,
2720 .flags = ADDR_TYPE_RT
2725 /* l4_core -> dss_dsi1 */
2726 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1 = {
2727 .master = &omap3xxx_l4_core_hwmod,
2728 .slave = &omap3xxx_dss_dsi1_hwmod,
2730 .addr = omap3xxx_dss_dsi1_addrs,
2733 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DSI_REGION,
2734 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2735 .flags = OMAP_FIREWALL_L4,
2738 .user = OCP_USER_MPU | OCP_USER_SDMA,
2741 /* l4_core -> dss_rfbi */
2742 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi = {
2743 .master = &omap3xxx_l4_core_hwmod,
2744 .slave = &omap3xxx_dss_rfbi_hwmod,
2746 .addr = omap2_dss_rfbi_addrs,
2749 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_RFBI_REGION,
2750 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP ,
2751 .flags = OMAP_FIREWALL_L4,
2754 .user = OCP_USER_MPU | OCP_USER_SDMA,
2757 /* l4_core -> dss_venc */
2758 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc = {
2759 .master = &omap3xxx_l4_core_hwmod,
2760 .slave = &omap3xxx_dss_venc_hwmod,
2762 .addr = omap2_dss_venc_addrs,
2765 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_VENC_REGION,
2766 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2767 .flags = OMAP_FIREWALL_L4,
2770 .flags = OCPIF_SWSUP_IDLE,
2771 .user = OCP_USER_MPU | OCP_USER_SDMA,
2774 /* l4_wkup -> gpio1 */
2775 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs[] = {
2777 .pa_start = 0x48310000,
2778 .pa_end = 0x483101ff,
2779 .flags = ADDR_TYPE_RT
2784 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1 = {
2785 .master = &omap3xxx_l4_wkup_hwmod,
2786 .slave = &omap3xxx_gpio1_hwmod,
2787 .addr = omap3xxx_gpio1_addrs,
2788 .user = OCP_USER_MPU | OCP_USER_SDMA,
2791 /* l4_per -> gpio2 */
2792 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs[] = {
2794 .pa_start = 0x49050000,
2795 .pa_end = 0x490501ff,
2796 .flags = ADDR_TYPE_RT
2801 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2 = {
2802 .master = &omap3xxx_l4_per_hwmod,
2803 .slave = &omap3xxx_gpio2_hwmod,
2804 .addr = omap3xxx_gpio2_addrs,
2805 .user = OCP_USER_MPU | OCP_USER_SDMA,
2808 /* l4_per -> gpio3 */
2809 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs[] = {
2811 .pa_start = 0x49052000,
2812 .pa_end = 0x490521ff,
2813 .flags = ADDR_TYPE_RT
2818 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3 = {
2819 .master = &omap3xxx_l4_per_hwmod,
2820 .slave = &omap3xxx_gpio3_hwmod,
2821 .addr = omap3xxx_gpio3_addrs,
2822 .user = OCP_USER_MPU | OCP_USER_SDMA,
2825 /* l4_per -> gpio4 */
2826 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs[] = {
2828 .pa_start = 0x49054000,
2829 .pa_end = 0x490541ff,
2830 .flags = ADDR_TYPE_RT
2835 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4 = {
2836 .master = &omap3xxx_l4_per_hwmod,
2837 .slave = &omap3xxx_gpio4_hwmod,
2838 .addr = omap3xxx_gpio4_addrs,
2839 .user = OCP_USER_MPU | OCP_USER_SDMA,
2842 /* l4_per -> gpio5 */
2843 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs[] = {
2845 .pa_start = 0x49056000,
2846 .pa_end = 0x490561ff,
2847 .flags = ADDR_TYPE_RT
2852 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5 = {
2853 .master = &omap3xxx_l4_per_hwmod,
2854 .slave = &omap3xxx_gpio5_hwmod,
2855 .addr = omap3xxx_gpio5_addrs,
2856 .user = OCP_USER_MPU | OCP_USER_SDMA,
2859 /* l4_per -> gpio6 */
2860 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs[] = {
2862 .pa_start = 0x49058000,
2863 .pa_end = 0x490581ff,
2864 .flags = ADDR_TYPE_RT
2869 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6 = {
2870 .master = &omap3xxx_l4_per_hwmod,
2871 .slave = &omap3xxx_gpio6_hwmod,
2872 .addr = omap3xxx_gpio6_addrs,
2873 .user = OCP_USER_MPU | OCP_USER_SDMA,
2876 /* dma_system -> L3 */
2877 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3 = {
2878 .master = &omap3xxx_dma_system_hwmod,
2879 .slave = &omap3xxx_l3_main_hwmod,
2880 .clk = "core_l3_ick",
2881 .user = OCP_USER_MPU | OCP_USER_SDMA,
2884 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs[] = {
2886 .pa_start = 0x48056000,
2887 .pa_end = 0x48056fff,
2888 .flags = ADDR_TYPE_RT
2893 /* l4_cfg -> dma_system */
2894 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system = {
2895 .master = &omap3xxx_l4_core_hwmod,
2896 .slave = &omap3xxx_dma_system_hwmod,
2897 .clk = "core_l4_ick",
2898 .addr = omap3xxx_dma_system_addrs,
2899 .user = OCP_USER_MPU | OCP_USER_SDMA,
2902 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs[] = {
2905 .pa_start = 0x48074000,
2906 .pa_end = 0x480740ff,
2907 .flags = ADDR_TYPE_RT
2912 /* l4_core -> mcbsp1 */
2913 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1 = {
2914 .master = &omap3xxx_l4_core_hwmod,
2915 .slave = &omap3xxx_mcbsp1_hwmod,
2916 .clk = "mcbsp1_ick",
2917 .addr = omap3xxx_mcbsp1_addrs,
2918 .user = OCP_USER_MPU | OCP_USER_SDMA,
2921 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs[] = {
2924 .pa_start = 0x49022000,
2925 .pa_end = 0x490220ff,
2926 .flags = ADDR_TYPE_RT
2931 /* l4_per -> mcbsp2 */
2932 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2 = {
2933 .master = &omap3xxx_l4_per_hwmod,
2934 .slave = &omap3xxx_mcbsp2_hwmod,
2935 .clk = "mcbsp2_ick",
2936 .addr = omap3xxx_mcbsp2_addrs,
2937 .user = OCP_USER_MPU | OCP_USER_SDMA,
2940 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs[] = {
2943 .pa_start = 0x49024000,
2944 .pa_end = 0x490240ff,
2945 .flags = ADDR_TYPE_RT
2950 /* l4_per -> mcbsp3 */
2951 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3 = {
2952 .master = &omap3xxx_l4_per_hwmod,
2953 .slave = &omap3xxx_mcbsp3_hwmod,
2954 .clk = "mcbsp3_ick",
2955 .addr = omap3xxx_mcbsp3_addrs,
2956 .user = OCP_USER_MPU | OCP_USER_SDMA,
2959 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs[] = {
2962 .pa_start = 0x49026000,
2963 .pa_end = 0x490260ff,
2964 .flags = ADDR_TYPE_RT
2969 /* l4_per -> mcbsp4 */
2970 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4 = {
2971 .master = &omap3xxx_l4_per_hwmod,
2972 .slave = &omap3xxx_mcbsp4_hwmod,
2973 .clk = "mcbsp4_ick",
2974 .addr = omap3xxx_mcbsp4_addrs,
2975 .user = OCP_USER_MPU | OCP_USER_SDMA,
2978 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs[] = {
2981 .pa_start = 0x48096000,
2982 .pa_end = 0x480960ff,
2983 .flags = ADDR_TYPE_RT
2988 /* l4_core -> mcbsp5 */
2989 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5 = {
2990 .master = &omap3xxx_l4_core_hwmod,
2991 .slave = &omap3xxx_mcbsp5_hwmod,
2992 .clk = "mcbsp5_ick",
2993 .addr = omap3xxx_mcbsp5_addrs,
2994 .user = OCP_USER_MPU | OCP_USER_SDMA,
2997 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs[] = {
3000 .pa_start = 0x49028000,
3001 .pa_end = 0x490280ff,
3002 .flags = ADDR_TYPE_RT
3007 /* l4_per -> mcbsp2_sidetone */
3008 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone = {
3009 .master = &omap3xxx_l4_per_hwmod,
3010 .slave = &omap3xxx_mcbsp2_sidetone_hwmod,
3011 .clk = "mcbsp2_ick",
3012 .addr = omap3xxx_mcbsp2_sidetone_addrs,
3013 .user = OCP_USER_MPU,
3016 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs[] = {
3019 .pa_start = 0x4902A000,
3020 .pa_end = 0x4902A0ff,
3021 .flags = ADDR_TYPE_RT
3026 /* l4_per -> mcbsp3_sidetone */
3027 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = {
3028 .master = &omap3xxx_l4_per_hwmod,
3029 .slave = &omap3xxx_mcbsp3_sidetone_hwmod,
3030 .clk = "mcbsp3_ick",
3031 .addr = omap3xxx_mcbsp3_sidetone_addrs,
3032 .user = OCP_USER_MPU,
3035 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = {
3037 .pa_start = 0x48094000,
3038 .pa_end = 0x480941ff,
3039 .flags = ADDR_TYPE_RT,
3044 /* l4_core -> mailbox */
3045 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = {
3046 .master = &omap3xxx_l4_core_hwmod,
3047 .slave = &omap3xxx_mailbox_hwmod,
3048 .addr = omap3xxx_mailbox_addrs,
3049 .user = OCP_USER_MPU | OCP_USER_SDMA,
3052 /* l4 core -> mcspi1 interface */
3053 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1 = {
3054 .master = &omap3xxx_l4_core_hwmod,
3055 .slave = &omap34xx_mcspi1,
3056 .clk = "mcspi1_ick",
3057 .addr = omap2_mcspi1_addr_space,
3058 .user = OCP_USER_MPU | OCP_USER_SDMA,
3061 /* l4 core -> mcspi2 interface */
3062 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2 = {
3063 .master = &omap3xxx_l4_core_hwmod,
3064 .slave = &omap34xx_mcspi2,
3065 .clk = "mcspi2_ick",
3066 .addr = omap2_mcspi2_addr_space,
3067 .user = OCP_USER_MPU | OCP_USER_SDMA,
3070 /* l4 core -> mcspi3 interface */
3071 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3 = {
3072 .master = &omap3xxx_l4_core_hwmod,
3073 .slave = &omap34xx_mcspi3,
3074 .clk = "mcspi3_ick",
3075 .addr = omap2430_mcspi3_addr_space,
3076 .user = OCP_USER_MPU | OCP_USER_SDMA,
3079 /* l4 core -> mcspi4 interface */
3080 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space[] = {
3082 .pa_start = 0x480ba000,
3083 .pa_end = 0x480ba0ff,
3084 .flags = ADDR_TYPE_RT,
3089 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4 = {
3090 .master = &omap3xxx_l4_core_hwmod,
3091 .slave = &omap34xx_mcspi4,
3092 .clk = "mcspi4_ick",
3093 .addr = omap34xx_mcspi4_addr_space,
3094 .user = OCP_USER_MPU | OCP_USER_SDMA,
3097 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2 = {
3098 .master = &omap3xxx_usb_host_hs_hwmod,
3099 .slave = &omap3xxx_l3_main_hwmod,
3100 .clk = "core_l3_ick",
3101 .user = OCP_USER_MPU,
3104 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs[] = {
3107 .pa_start = 0x48064000,
3108 .pa_end = 0x480643ff,
3109 .flags = ADDR_TYPE_RT
3113 .pa_start = 0x48064400,
3114 .pa_end = 0x480647ff,
3118 .pa_start = 0x48064800,
3119 .pa_end = 0x48064cff,
3124 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs = {
3125 .master = &omap3xxx_l4_core_hwmod,
3126 .slave = &omap3xxx_usb_host_hs_hwmod,
3127 .clk = "usbhost_ick",
3128 .addr = omap3xxx_usb_host_hs_addrs,
3129 .user = OCP_USER_MPU | OCP_USER_SDMA,
3132 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs[] = {
3135 .pa_start = 0x48062000,
3136 .pa_end = 0x48062fff,
3137 .flags = ADDR_TYPE_RT
3142 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs = {
3143 .master = &omap3xxx_l4_core_hwmod,
3144 .slave = &omap3xxx_usb_tll_hs_hwmod,
3145 .clk = "usbtll_ick",
3146 .addr = omap3xxx_usb_tll_hs_addrs,
3147 .user = OCP_USER_MPU | OCP_USER_SDMA,
3150 /* l4_core -> hdq1w interface */
3151 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w = {
3152 .master = &omap3xxx_l4_core_hwmod,
3153 .slave = &omap3xxx_hdq1w_hwmod,
3155 .addr = omap2_hdq1w_addr_space,
3156 .user = OCP_USER_MPU | OCP_USER_SDMA,
3157 .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE,
3160 /* l4_wkup -> 32ksync_counter */
3161 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs[] = {
3163 .pa_start = 0x48320000,
3164 .pa_end = 0x4832001f,
3165 .flags = ADDR_TYPE_RT
3170 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k = {
3171 .master = &omap3xxx_l4_wkup_hwmod,
3172 .slave = &omap3xxx_counter_32k_hwmod,
3173 .clk = "omap_32ksync_ick",
3174 .addr = omap3xxx_counter_32k_addrs,
3175 .user = OCP_USER_MPU | OCP_USER_SDMA,
3178 /* am35xx has Davinci MDIO & EMAC */
3179 static struct omap_hwmod_class am35xx_mdio_class = {
3180 .name = "davinci_mdio",
3183 static struct omap_hwmod am35xx_mdio_hwmod = {
3184 .name = "davinci_mdio",
3185 .class = &am35xx_mdio_class,
3186 .flags = HWMOD_NO_IDLEST,
3190 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3191 * but this will probably require some additional hwmod core support,
3192 * so is left as a future to-do item.
3194 static struct omap_hwmod_ocp_if am35xx_mdio__l3 = {
3195 .master = &am35xx_mdio_hwmod,
3196 .slave = &omap3xxx_l3_main_hwmod,
3198 .user = OCP_USER_MPU,
3201 static struct omap_hwmod_addr_space am35xx_mdio_addrs[] = {
3203 .pa_start = AM35XX_IPSS_MDIO_BASE,
3204 .pa_end = AM35XX_IPSS_MDIO_BASE + SZ_4K - 1,
3205 .flags = ADDR_TYPE_RT,
3210 /* l4_core -> davinci mdio */
3212 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3213 * but this will probably require some additional hwmod core support,
3214 * so is left as a future to-do item.
3216 static struct omap_hwmod_ocp_if am35xx_l4_core__mdio = {
3217 .master = &omap3xxx_l4_core_hwmod,
3218 .slave = &am35xx_mdio_hwmod,
3220 .addr = am35xx_mdio_addrs,
3221 .user = OCP_USER_MPU,
3224 static struct omap_hwmod_irq_info am35xx_emac_mpu_irqs[] = {
3225 { .name = "rxthresh", .irq = INT_35XX_EMAC_C0_RXTHRESH_IRQ },
3226 { .name = "rx_pulse", .irq = INT_35XX_EMAC_C0_RX_PULSE_IRQ },
3227 { .name = "tx_pulse", .irq = INT_35XX_EMAC_C0_TX_PULSE_IRQ },
3228 { .name = "misc_pulse", .irq = INT_35XX_EMAC_C0_MISC_PULSE_IRQ },
3232 static struct omap_hwmod_class am35xx_emac_class = {
3233 .name = "davinci_emac",
3236 static struct omap_hwmod am35xx_emac_hwmod = {
3237 .name = "davinci_emac",
3238 .mpu_irqs = am35xx_emac_mpu_irqs,
3239 .class = &am35xx_emac_class,
3240 .flags = HWMOD_NO_IDLEST,
3243 /* l3_core -> davinci emac interface */
3245 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3246 * but this will probably require some additional hwmod core support,
3247 * so is left as a future to-do item.
3249 static struct omap_hwmod_ocp_if am35xx_emac__l3 = {
3250 .master = &am35xx_emac_hwmod,
3251 .slave = &omap3xxx_l3_main_hwmod,
3253 .user = OCP_USER_MPU,
3256 static struct omap_hwmod_addr_space am35xx_emac_addrs[] = {
3258 .pa_start = AM35XX_IPSS_EMAC_BASE,
3259 .pa_end = AM35XX_IPSS_EMAC_BASE + 0x30000 - 1,
3260 .flags = ADDR_TYPE_RT,
3265 /* l4_core -> davinci emac */
3267 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3268 * but this will probably require some additional hwmod core support,
3269 * so is left as a future to-do item.
3271 static struct omap_hwmod_ocp_if am35xx_l4_core__emac = {
3272 .master = &omap3xxx_l4_core_hwmod,
3273 .slave = &am35xx_emac_hwmod,
3275 .addr = am35xx_emac_addrs,
3276 .user = OCP_USER_MPU,
3279 static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
3280 &omap3xxx_l3_main__l4_core,
3281 &omap3xxx_l3_main__l4_per,
3282 &omap3xxx_mpu__l3_main,
3283 &omap3xxx_l4_core__l4_wkup,
3284 &omap3xxx_l4_core__mmc3,
3285 &omap3_l4_core__uart1,
3286 &omap3_l4_core__uart2,
3287 &omap3_l4_per__uart3,
3288 &omap3_l4_core__i2c1,
3289 &omap3_l4_core__i2c2,
3290 &omap3_l4_core__i2c3,
3291 &omap3xxx_l4_wkup__l4_sec,
3292 &omap3xxx_l4_wkup__timer1,
3293 &omap3xxx_l4_per__timer2,
3294 &omap3xxx_l4_per__timer3,
3295 &omap3xxx_l4_per__timer4,
3296 &omap3xxx_l4_per__timer5,
3297 &omap3xxx_l4_per__timer6,
3298 &omap3xxx_l4_per__timer7,
3299 &omap3xxx_l4_per__timer8,
3300 &omap3xxx_l4_per__timer9,
3301 &omap3xxx_l4_core__timer10,
3302 &omap3xxx_l4_core__timer11,
3303 &omap3xxx_l4_wkup__wd_timer2,
3304 &omap3xxx_l4_wkup__gpio1,
3305 &omap3xxx_l4_per__gpio2,
3306 &omap3xxx_l4_per__gpio3,
3307 &omap3xxx_l4_per__gpio4,
3308 &omap3xxx_l4_per__gpio5,
3309 &omap3xxx_l4_per__gpio6,
3310 &omap3xxx_dma_system__l3,
3311 &omap3xxx_l4_core__dma_system,
3312 &omap3xxx_l4_core__mcbsp1,
3313 &omap3xxx_l4_per__mcbsp2,
3314 &omap3xxx_l4_per__mcbsp3,
3315 &omap3xxx_l4_per__mcbsp4,
3316 &omap3xxx_l4_core__mcbsp5,
3317 &omap3xxx_l4_per__mcbsp2_sidetone,
3318 &omap3xxx_l4_per__mcbsp3_sidetone,
3319 &omap34xx_l4_core__mcspi1,
3320 &omap34xx_l4_core__mcspi2,
3321 &omap34xx_l4_core__mcspi3,
3322 &omap34xx_l4_core__mcspi4,
3323 &omap3xxx_l4_wkup__counter_32k,
3327 /* GP-only hwmod links */
3328 static struct omap_hwmod_ocp_if *omap3xxx_gp_hwmod_ocp_ifs[] __initdata = {
3329 &omap3xxx_l4_sec__timer12,
3333 /* 3430ES1-only hwmod links */
3334 static struct omap_hwmod_ocp_if *omap3430es1_hwmod_ocp_ifs[] __initdata = {
3335 &omap3430es1_dss__l3,
3336 &omap3430es1_l4_core__dss,
3340 /* 3430ES2+-only hwmod links */
3341 static struct omap_hwmod_ocp_if *omap3430es2plus_hwmod_ocp_ifs[] __initdata = {
3343 &omap3xxx_l4_core__dss,
3344 &omap3xxx_usbhsotg__l3,
3345 &omap3xxx_l4_core__usbhsotg,
3346 &omap3xxx_usb_host_hs__l3_main_2,
3347 &omap3xxx_l4_core__usb_host_hs,
3348 &omap3xxx_l4_core__usb_tll_hs,
3352 /* <= 3430ES3-only hwmod links */
3353 static struct omap_hwmod_ocp_if *omap3430_pre_es3_hwmod_ocp_ifs[] __initdata = {
3354 &omap3xxx_l4_core__pre_es3_mmc1,
3355 &omap3xxx_l4_core__pre_es3_mmc2,
3359 /* 3430ES3+-only hwmod links */
3360 static struct omap_hwmod_ocp_if *omap3430_es3plus_hwmod_ocp_ifs[] __initdata = {
3361 &omap3xxx_l4_core__es3plus_mmc1,
3362 &omap3xxx_l4_core__es3plus_mmc2,
3366 /* 34xx-only hwmod links (all ES revisions) */
3367 static struct omap_hwmod_ocp_if *omap34xx_hwmod_ocp_ifs[] __initdata = {
3369 &omap34xx_l4_core__sr1,
3370 &omap34xx_l4_core__sr2,
3371 &omap3xxx_l4_core__mailbox,
3372 &omap3xxx_l4_core__hdq1w,
3376 /* 36xx-only hwmod links (all ES revisions) */
3377 static struct omap_hwmod_ocp_if *omap36xx_hwmod_ocp_ifs[] __initdata = {
3379 &omap36xx_l4_per__uart4,
3381 &omap3xxx_l4_core__dss,
3382 &omap36xx_l4_core__sr1,
3383 &omap36xx_l4_core__sr2,
3384 &omap3xxx_usbhsotg__l3,
3385 &omap3xxx_l4_core__usbhsotg,
3386 &omap3xxx_l4_core__mailbox,
3387 &omap3xxx_usb_host_hs__l3_main_2,
3388 &omap3xxx_l4_core__usb_host_hs,
3389 &omap3xxx_l4_core__usb_tll_hs,
3390 &omap3xxx_l4_core__es3plus_mmc1,
3391 &omap3xxx_l4_core__es3plus_mmc2,
3392 &omap3xxx_l4_core__hdq1w,
3396 static struct omap_hwmod_ocp_if *am35xx_hwmod_ocp_ifs[] __initdata = {
3398 &omap3xxx_l4_core__dss,
3399 &am35xx_usbhsotg__l3,
3400 &am35xx_l4_core__usbhsotg,
3401 &am35xx_l4_core__uart4,
3402 &omap3xxx_usb_host_hs__l3_main_2,
3403 &omap3xxx_l4_core__usb_host_hs,
3404 &omap3xxx_l4_core__usb_tll_hs,
3405 &omap3xxx_l4_core__es3plus_mmc1,
3406 &omap3xxx_l4_core__es3plus_mmc2,
3408 &am35xx_l4_core__mdio,
3410 &am35xx_l4_core__emac,
3414 static struct omap_hwmod_ocp_if *omap3xxx_dss_hwmod_ocp_ifs[] __initdata = {
3415 &omap3xxx_l4_core__dss_dispc,
3416 &omap3xxx_l4_core__dss_dsi1,
3417 &omap3xxx_l4_core__dss_rfbi,
3418 &omap3xxx_l4_core__dss_venc,
3422 int __init omap3xxx_hwmod_init(void)
3425 struct omap_hwmod_ocp_if **h = NULL;
3430 /* Register hwmod links common to all OMAP3 */
3431 r = omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs);
3435 /* Register GP-only hwmod links. */
3436 if (omap_type() == OMAP2_DEVICE_TYPE_GP) {
3437 r = omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs);
3445 * Register hwmod links common to individual OMAP3 families, all
3446 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3447 * All possible revisions should be included in this conditional.
3449 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3450 rev == OMAP3430_REV_ES2_1 || rev == OMAP3430_REV_ES3_0 ||
3451 rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) {
3452 h = omap34xx_hwmod_ocp_ifs;
3453 } else if (rev == AM35XX_REV_ES1_0 || rev == AM35XX_REV_ES1_1) {
3454 h = am35xx_hwmod_ocp_ifs;
3455 } else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 ||
3456 rev == OMAP3630_REV_ES1_2) {
3457 h = omap36xx_hwmod_ocp_ifs;
3459 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3463 r = omap_hwmod_register_links(h);
3468 * Register hwmod links specific to certain ES levels of a
3469 * particular family of silicon (e.g., 34xx ES1.0)
3472 if (rev == OMAP3430_REV_ES1_0) {
3473 h = omap3430es1_hwmod_ocp_ifs;
3474 } else if (rev == OMAP3430_REV_ES2_0 || rev == OMAP3430_REV_ES2_1 ||
3475 rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3476 rev == OMAP3430_REV_ES3_1_2) {
3477 h = omap3430es2plus_hwmod_ocp_ifs;
3481 r = omap_hwmod_register_links(h);
3487 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3488 rev == OMAP3430_REV_ES2_1) {
3489 h = omap3430_pre_es3_hwmod_ocp_ifs;
3490 } else if (rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3491 rev == OMAP3430_REV_ES3_1_2) {
3492 h = omap3430_es3plus_hwmod_ocp_ifs;
3496 r = omap_hwmod_register_links(h);
3501 * DSS code presumes that dss_core hwmod is handled first,
3502 * _before_ any other DSS related hwmods so register common
3503 * DSS hwmod links last to ensure that dss_core is already
3504 * registered. Otherwise some change things may happen, for
3505 * ex. if dispc is handled before dss_core and DSS is enabled
3506 * in bootloader DISPC will be reset with outputs enabled
3507 * which sometimes leads to unrecoverable L3 error. XXX The
3508 * long-term fix to this is to ensure hwmods are set up in
3509 * dependency order in the hwmod core code.
3511 r = omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs);