2 * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
4 * Copyright (C) 2009-2011 Nokia Corporation
5 * Copyright (C) 2012 Texas Instruments, Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * The data in this file should be completely autogeneratable from
13 * the TI hardware database or other technical documentation.
15 * XXX these should be marked initdata for multi-OMAP kernels
17 #include <linux/power/smartreflex.h>
18 #include <linux/platform_data/gpio-omap.h>
20 #include <plat/omap_hwmod.h>
22 #include <plat/serial.h>
23 #include <plat/l3_3xxx.h>
24 #include <plat/l4_3xxx.h>
27 #include <plat/mcbsp.h>
28 #include <plat/mcspi.h>
29 #include <plat/dmtimer.h>
30 #include <plat/iommu.h>
32 #include <mach/am35xx.h>
35 #include "omap_hwmod_common_data.h"
36 #include "prm-regbits-34xx.h"
37 #include "cm-regbits-34xx.h"
41 * OMAP3xxx hardware module integration data
43 * All of the data in this section should be autogeneratable from the
44 * TI hardware database or other technical documentation. Data that
45 * is driver-specific or driver-kernel integration-specific belongs
54 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = {
55 { .irq = 9 + OMAP_INTC_START, },
56 { .irq = 10 + OMAP_INTC_START, },
60 static struct omap_hwmod omap3xxx_l3_main_hwmod = {
62 .class = &l3_hwmod_class,
63 .mpu_irqs = omap3xxx_l3_main_irqs,
64 .flags = HWMOD_NO_IDLEST,
68 static struct omap_hwmod omap3xxx_l4_core_hwmod = {
70 .class = &l4_hwmod_class,
71 .flags = HWMOD_NO_IDLEST,
75 static struct omap_hwmod omap3xxx_l4_per_hwmod = {
77 .class = &l4_hwmod_class,
78 .flags = HWMOD_NO_IDLEST,
82 static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
84 .class = &l4_hwmod_class,
85 .flags = HWMOD_NO_IDLEST,
89 static struct omap_hwmod omap3xxx_l4_sec_hwmod = {
91 .class = &l4_hwmod_class,
92 .flags = HWMOD_NO_IDLEST,
96 static struct omap_hwmod omap3xxx_mpu_hwmod = {
98 .class = &mpu_hwmod_class,
99 .main_clk = "arm_fck",
103 static struct omap_hwmod_rst_info omap3xxx_iva_resets[] = {
104 { .name = "logic", .rst_shift = 0, .st_shift = 8 },
105 { .name = "seq0", .rst_shift = 1, .st_shift = 9 },
106 { .name = "seq1", .rst_shift = 2, .st_shift = 10 },
109 static struct omap_hwmod omap3xxx_iva_hwmod = {
111 .class = &iva_hwmod_class,
112 .clkdm_name = "iva2_clkdm",
113 .rst_lines = omap3xxx_iva_resets,
114 .rst_lines_cnt = ARRAY_SIZE(omap3xxx_iva_resets),
115 .main_clk = "iva2_ck",
118 .module_offs = OMAP3430_IVA2_MOD,
120 .module_bit = OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT,
122 .idlest_idle_bit = OMAP3430_ST_IVA2_SHIFT,
128 static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc = {
132 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
133 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
134 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE),
135 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
136 .sysc_fields = &omap_hwmod_sysc_type1,
139 static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class = {
141 .sysc = &omap3xxx_timer_1ms_sysc,
144 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc = {
148 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
149 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
150 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
151 .sysc_fields = &omap_hwmod_sysc_type1,
154 static struct omap_hwmod_class omap3xxx_timer_hwmod_class = {
156 .sysc = &omap3xxx_timer_sysc,
159 /* secure timers dev attribute */
160 static struct omap_timer_capability_dev_attr capability_secure_dev_attr = {
161 .timer_capability = OMAP_TIMER_ALWON | OMAP_TIMER_SECURE,
164 /* always-on timers dev attribute */
165 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
166 .timer_capability = OMAP_TIMER_ALWON,
169 /* pwm timers dev attribute */
170 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
171 .timer_capability = OMAP_TIMER_HAS_PWM,
175 static struct omap_hwmod omap3xxx_timer1_hwmod = {
177 .mpu_irqs = omap2_timer1_mpu_irqs,
178 .main_clk = "gpt1_fck",
182 .module_bit = OMAP3430_EN_GPT1_SHIFT,
183 .module_offs = WKUP_MOD,
185 .idlest_idle_bit = OMAP3430_ST_GPT1_SHIFT,
188 .dev_attr = &capability_alwon_dev_attr,
189 .class = &omap3xxx_timer_1ms_hwmod_class,
193 static struct omap_hwmod omap3xxx_timer2_hwmod = {
195 .mpu_irqs = omap2_timer2_mpu_irqs,
196 .main_clk = "gpt2_fck",
200 .module_bit = OMAP3430_EN_GPT2_SHIFT,
201 .module_offs = OMAP3430_PER_MOD,
203 .idlest_idle_bit = OMAP3430_ST_GPT2_SHIFT,
206 .class = &omap3xxx_timer_1ms_hwmod_class,
210 static struct omap_hwmod omap3xxx_timer3_hwmod = {
212 .mpu_irqs = omap2_timer3_mpu_irqs,
213 .main_clk = "gpt3_fck",
217 .module_bit = OMAP3430_EN_GPT3_SHIFT,
218 .module_offs = OMAP3430_PER_MOD,
220 .idlest_idle_bit = OMAP3430_ST_GPT3_SHIFT,
223 .class = &omap3xxx_timer_hwmod_class,
227 static struct omap_hwmod omap3xxx_timer4_hwmod = {
229 .mpu_irqs = omap2_timer4_mpu_irqs,
230 .main_clk = "gpt4_fck",
234 .module_bit = OMAP3430_EN_GPT4_SHIFT,
235 .module_offs = OMAP3430_PER_MOD,
237 .idlest_idle_bit = OMAP3430_ST_GPT4_SHIFT,
240 .class = &omap3xxx_timer_hwmod_class,
244 static struct omap_hwmod omap3xxx_timer5_hwmod = {
246 .mpu_irqs = omap2_timer5_mpu_irqs,
247 .main_clk = "gpt5_fck",
251 .module_bit = OMAP3430_EN_GPT5_SHIFT,
252 .module_offs = OMAP3430_PER_MOD,
254 .idlest_idle_bit = OMAP3430_ST_GPT5_SHIFT,
257 .class = &omap3xxx_timer_hwmod_class,
261 static struct omap_hwmod omap3xxx_timer6_hwmod = {
263 .mpu_irqs = omap2_timer6_mpu_irqs,
264 .main_clk = "gpt6_fck",
268 .module_bit = OMAP3430_EN_GPT6_SHIFT,
269 .module_offs = OMAP3430_PER_MOD,
271 .idlest_idle_bit = OMAP3430_ST_GPT6_SHIFT,
274 .class = &omap3xxx_timer_hwmod_class,
278 static struct omap_hwmod omap3xxx_timer7_hwmod = {
280 .mpu_irqs = omap2_timer7_mpu_irqs,
281 .main_clk = "gpt7_fck",
285 .module_bit = OMAP3430_EN_GPT7_SHIFT,
286 .module_offs = OMAP3430_PER_MOD,
288 .idlest_idle_bit = OMAP3430_ST_GPT7_SHIFT,
291 .class = &omap3xxx_timer_hwmod_class,
295 static struct omap_hwmod omap3xxx_timer8_hwmod = {
297 .mpu_irqs = omap2_timer8_mpu_irqs,
298 .main_clk = "gpt8_fck",
302 .module_bit = OMAP3430_EN_GPT8_SHIFT,
303 .module_offs = OMAP3430_PER_MOD,
305 .idlest_idle_bit = OMAP3430_ST_GPT8_SHIFT,
308 .dev_attr = &capability_pwm_dev_attr,
309 .class = &omap3xxx_timer_hwmod_class,
313 static struct omap_hwmod omap3xxx_timer9_hwmod = {
315 .mpu_irqs = omap2_timer9_mpu_irqs,
316 .main_clk = "gpt9_fck",
320 .module_bit = OMAP3430_EN_GPT9_SHIFT,
321 .module_offs = OMAP3430_PER_MOD,
323 .idlest_idle_bit = OMAP3430_ST_GPT9_SHIFT,
326 .dev_attr = &capability_pwm_dev_attr,
327 .class = &omap3xxx_timer_hwmod_class,
331 static struct omap_hwmod omap3xxx_timer10_hwmod = {
333 .mpu_irqs = omap2_timer10_mpu_irqs,
334 .main_clk = "gpt10_fck",
338 .module_bit = OMAP3430_EN_GPT10_SHIFT,
339 .module_offs = CORE_MOD,
341 .idlest_idle_bit = OMAP3430_ST_GPT10_SHIFT,
344 .dev_attr = &capability_pwm_dev_attr,
345 .class = &omap3xxx_timer_1ms_hwmod_class,
349 static struct omap_hwmod omap3xxx_timer11_hwmod = {
351 .mpu_irqs = omap2_timer11_mpu_irqs,
352 .main_clk = "gpt11_fck",
356 .module_bit = OMAP3430_EN_GPT11_SHIFT,
357 .module_offs = CORE_MOD,
359 .idlest_idle_bit = OMAP3430_ST_GPT11_SHIFT,
362 .dev_attr = &capability_pwm_dev_attr,
363 .class = &omap3xxx_timer_hwmod_class,
367 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs[] = {
368 { .irq = 95 + OMAP_INTC_START, },
372 static struct omap_hwmod omap3xxx_timer12_hwmod = {
374 .mpu_irqs = omap3xxx_timer12_mpu_irqs,
375 .main_clk = "gpt12_fck",
379 .module_bit = OMAP3430_EN_GPT12_SHIFT,
380 .module_offs = WKUP_MOD,
382 .idlest_idle_bit = OMAP3430_ST_GPT12_SHIFT,
385 .dev_attr = &capability_secure_dev_attr,
386 .class = &omap3xxx_timer_hwmod_class,
391 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
395 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc = {
399 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
400 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
401 SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
402 SYSS_HAS_RESET_STATUS),
403 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
404 .sysc_fields = &omap_hwmod_sysc_type1,
408 static struct omap_hwmod_class_sysconfig i2c_sysc = {
412 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
413 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
414 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
415 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
416 .clockact = CLOCKACT_TEST_ICLK,
417 .sysc_fields = &omap_hwmod_sysc_type1,
420 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class = {
422 .sysc = &omap3xxx_wd_timer_sysc,
423 .pre_shutdown = &omap2_wd_timer_disable,
424 .reset = &omap2_wd_timer_reset,
427 static struct omap_hwmod omap3xxx_wd_timer2_hwmod = {
429 .class = &omap3xxx_wd_timer_hwmod_class,
430 .main_clk = "wdt2_fck",
434 .module_bit = OMAP3430_EN_WDT2_SHIFT,
435 .module_offs = WKUP_MOD,
437 .idlest_idle_bit = OMAP3430_ST_WDT2_SHIFT,
441 * XXX: Use software supervised mode, HW supervised smartidle seems to
442 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
444 .flags = HWMOD_SWSUP_SIDLE,
448 static struct omap_hwmod omap3xxx_uart1_hwmod = {
450 .mpu_irqs = omap2_uart1_mpu_irqs,
451 .sdma_reqs = omap2_uart1_sdma_reqs,
452 .main_clk = "uart1_fck",
455 .module_offs = CORE_MOD,
457 .module_bit = OMAP3430_EN_UART1_SHIFT,
459 .idlest_idle_bit = OMAP3430_EN_UART1_SHIFT,
462 .class = &omap2_uart_class,
466 static struct omap_hwmod omap3xxx_uart2_hwmod = {
468 .mpu_irqs = omap2_uart2_mpu_irqs,
469 .sdma_reqs = omap2_uart2_sdma_reqs,
470 .main_clk = "uart2_fck",
473 .module_offs = CORE_MOD,
475 .module_bit = OMAP3430_EN_UART2_SHIFT,
477 .idlest_idle_bit = OMAP3430_EN_UART2_SHIFT,
480 .class = &omap2_uart_class,
484 static struct omap_hwmod omap3xxx_uart3_hwmod = {
486 .mpu_irqs = omap2_uart3_mpu_irqs,
487 .sdma_reqs = omap2_uart3_sdma_reqs,
488 .main_clk = "uart3_fck",
491 .module_offs = OMAP3430_PER_MOD,
493 .module_bit = OMAP3430_EN_UART3_SHIFT,
495 .idlest_idle_bit = OMAP3430_EN_UART3_SHIFT,
498 .class = &omap2_uart_class,
502 static struct omap_hwmod_irq_info uart4_mpu_irqs[] = {
503 { .irq = 80 + OMAP_INTC_START, },
507 static struct omap_hwmod_dma_info uart4_sdma_reqs[] = {
508 { .name = "rx", .dma_req = OMAP36XX_DMA_UART4_RX, },
509 { .name = "tx", .dma_req = OMAP36XX_DMA_UART4_TX, },
513 static struct omap_hwmod omap36xx_uart4_hwmod = {
515 .mpu_irqs = uart4_mpu_irqs,
516 .sdma_reqs = uart4_sdma_reqs,
517 .main_clk = "uart4_fck",
520 .module_offs = OMAP3430_PER_MOD,
522 .module_bit = OMAP3630_EN_UART4_SHIFT,
524 .idlest_idle_bit = OMAP3630_EN_UART4_SHIFT,
527 .class = &omap2_uart_class,
530 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs[] = {
531 { .irq = 84 + OMAP_INTC_START, },
535 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs[] = {
536 { .name = "rx", .dma_req = AM35XX_DMA_UART4_RX, },
537 { .name = "tx", .dma_req = AM35XX_DMA_UART4_TX, },
542 * XXX AM35xx UART4 cannot complete its softreset without uart1_fck or
543 * uart2_fck being enabled. So we add uart1_fck as an optional clock,
544 * below, and set the HWMOD_CONTROL_OPT_CLKS_IN_RESET. This really
545 * should not be needed. The functional clock structure of the AM35xx
546 * UART4 is extremely unclear and opaque; it is unclear what the role
547 * of uart1/2_fck is for the UART4. Any clarification from either
548 * empirical testing or the AM3505/3517 hardware designers would be
551 static struct omap_hwmod_opt_clk am35xx_uart4_opt_clks[] = {
552 { .role = "softreset_uart1_fck", .clk = "uart1_fck" },
555 static struct omap_hwmod am35xx_uart4_hwmod = {
557 .mpu_irqs = am35xx_uart4_mpu_irqs,
558 .sdma_reqs = am35xx_uart4_sdma_reqs,
559 .main_clk = "uart4_fck",
562 .module_offs = CORE_MOD,
564 .module_bit = AM35XX_EN_UART4_SHIFT,
566 .idlest_idle_bit = AM35XX_ST_UART4_SHIFT,
569 .opt_clks = am35xx_uart4_opt_clks,
570 .opt_clks_cnt = ARRAY_SIZE(am35xx_uart4_opt_clks),
571 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
572 .class = &omap2_uart_class,
575 static struct omap_hwmod_class i2c_class = {
578 .rev = OMAP_I2C_IP_VERSION_1,
579 .reset = &omap_i2c_reset,
582 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs[] = {
583 { .name = "dispc", .dma_req = 5 },
584 { .name = "dsi1", .dma_req = 74 },
589 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
591 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
592 * driver does not use these clocks.
594 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
595 { .role = "tv_clk", .clk = "dss_tv_fck" },
596 /* required only on OMAP3430 */
597 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
600 static struct omap_hwmod omap3430es1_dss_core_hwmod = {
602 .class = &omap2_dss_hwmod_class,
603 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
604 .sdma_reqs = omap3xxx_dss_sdma_chs,
608 .module_bit = OMAP3430_EN_DSS1_SHIFT,
609 .module_offs = OMAP3430_DSS_MOD,
611 .idlest_stdby_bit = OMAP3430ES1_ST_DSS_SHIFT,
614 .opt_clks = dss_opt_clks,
615 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
616 .flags = HWMOD_NO_IDLEST | HWMOD_CONTROL_OPT_CLKS_IN_RESET,
619 static struct omap_hwmod omap3xxx_dss_core_hwmod = {
621 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
622 .class = &omap2_dss_hwmod_class,
623 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
624 .sdma_reqs = omap3xxx_dss_sdma_chs,
628 .module_bit = OMAP3430_EN_DSS1_SHIFT,
629 .module_offs = OMAP3430_DSS_MOD,
631 .idlest_idle_bit = OMAP3430ES2_ST_DSS_IDLE_SHIFT,
632 .idlest_stdby_bit = OMAP3430ES2_ST_DSS_STDBY_SHIFT,
635 .opt_clks = dss_opt_clks,
636 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
644 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc = {
648 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
649 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
651 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
652 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
653 .sysc_fields = &omap_hwmod_sysc_type1,
656 static struct omap_hwmod_class omap3_dispc_hwmod_class = {
658 .sysc = &omap3_dispc_sysc,
661 static struct omap_hwmod omap3xxx_dss_dispc_hwmod = {
663 .class = &omap3_dispc_hwmod_class,
664 .mpu_irqs = omap2_dispc_irqs,
665 .main_clk = "dss1_alwon_fck",
669 .module_bit = OMAP3430_EN_DSS1_SHIFT,
670 .module_offs = OMAP3430_DSS_MOD,
673 .flags = HWMOD_NO_IDLEST,
674 .dev_attr = &omap2_3_dss_dispc_dev_attr
679 * display serial interface controller
682 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = {
686 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = {
687 { .irq = 25 + OMAP_INTC_START, },
692 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
693 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
696 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod = {
698 .class = &omap3xxx_dsi_hwmod_class,
699 .mpu_irqs = omap3xxx_dsi1_irqs,
700 .main_clk = "dss1_alwon_fck",
704 .module_bit = OMAP3430_EN_DSS1_SHIFT,
705 .module_offs = OMAP3430_DSS_MOD,
708 .opt_clks = dss_dsi1_opt_clks,
709 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
710 .flags = HWMOD_NO_IDLEST,
713 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
714 { .role = "ick", .clk = "dss_ick" },
717 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod = {
719 .class = &omap2_rfbi_hwmod_class,
720 .main_clk = "dss1_alwon_fck",
724 .module_bit = OMAP3430_EN_DSS1_SHIFT,
725 .module_offs = OMAP3430_DSS_MOD,
728 .opt_clks = dss_rfbi_opt_clks,
729 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
730 .flags = HWMOD_NO_IDLEST,
733 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
734 /* required only on OMAP3430 */
735 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
738 static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
740 .class = &omap2_venc_hwmod_class,
741 .main_clk = "dss_tv_fck",
745 .module_bit = OMAP3430_EN_DSS1_SHIFT,
746 .module_offs = OMAP3430_DSS_MOD,
749 .opt_clks = dss_venc_opt_clks,
750 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
751 .flags = HWMOD_NO_IDLEST,
755 static struct omap_i2c_dev_attr i2c1_dev_attr = {
756 .fifo_depth = 8, /* bytes */
757 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
758 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
759 OMAP_I2C_FLAG_BUS_SHIFT_2,
762 static struct omap_hwmod omap3xxx_i2c1_hwmod = {
764 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
765 .mpu_irqs = omap2_i2c1_mpu_irqs,
766 .sdma_reqs = omap2_i2c1_sdma_reqs,
767 .main_clk = "i2c1_fck",
770 .module_offs = CORE_MOD,
772 .module_bit = OMAP3430_EN_I2C1_SHIFT,
774 .idlest_idle_bit = OMAP3430_ST_I2C1_SHIFT,
778 .dev_attr = &i2c1_dev_attr,
782 static struct omap_i2c_dev_attr i2c2_dev_attr = {
783 .fifo_depth = 8, /* bytes */
784 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
785 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
786 OMAP_I2C_FLAG_BUS_SHIFT_2,
789 static struct omap_hwmod omap3xxx_i2c2_hwmod = {
791 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
792 .mpu_irqs = omap2_i2c2_mpu_irqs,
793 .sdma_reqs = omap2_i2c2_sdma_reqs,
794 .main_clk = "i2c2_fck",
797 .module_offs = CORE_MOD,
799 .module_bit = OMAP3430_EN_I2C2_SHIFT,
801 .idlest_idle_bit = OMAP3430_ST_I2C2_SHIFT,
805 .dev_attr = &i2c2_dev_attr,
809 static struct omap_i2c_dev_attr i2c3_dev_attr = {
810 .fifo_depth = 64, /* bytes */
811 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
812 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
813 OMAP_I2C_FLAG_BUS_SHIFT_2,
816 static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
817 { .irq = 61 + OMAP_INTC_START, },
821 static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = {
822 { .name = "tx", .dma_req = OMAP34XX_DMA_I2C3_TX },
823 { .name = "rx", .dma_req = OMAP34XX_DMA_I2C3_RX },
827 static struct omap_hwmod omap3xxx_i2c3_hwmod = {
829 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
830 .mpu_irqs = i2c3_mpu_irqs,
831 .sdma_reqs = i2c3_sdma_reqs,
832 .main_clk = "i2c3_fck",
835 .module_offs = CORE_MOD,
837 .module_bit = OMAP3430_EN_I2C3_SHIFT,
839 .idlest_idle_bit = OMAP3430_ST_I2C3_SHIFT,
843 .dev_attr = &i2c3_dev_attr,
848 * general purpose io module
851 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc = {
855 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
856 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
857 SYSS_HAS_RESET_STATUS),
858 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
859 .sysc_fields = &omap_hwmod_sysc_type1,
862 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class = {
864 .sysc = &omap3xxx_gpio_sysc,
869 static struct omap_gpio_dev_attr gpio_dev_attr = {
875 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
876 { .role = "dbclk", .clk = "gpio1_dbck", },
879 static struct omap_hwmod omap3xxx_gpio1_hwmod = {
881 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
882 .mpu_irqs = omap2_gpio1_irqs,
883 .main_clk = "gpio1_ick",
884 .opt_clks = gpio1_opt_clks,
885 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
889 .module_bit = OMAP3430_EN_GPIO1_SHIFT,
890 .module_offs = WKUP_MOD,
892 .idlest_idle_bit = OMAP3430_ST_GPIO1_SHIFT,
895 .class = &omap3xxx_gpio_hwmod_class,
896 .dev_attr = &gpio_dev_attr,
900 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
901 { .role = "dbclk", .clk = "gpio2_dbck", },
904 static struct omap_hwmod omap3xxx_gpio2_hwmod = {
906 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
907 .mpu_irqs = omap2_gpio2_irqs,
908 .main_clk = "gpio2_ick",
909 .opt_clks = gpio2_opt_clks,
910 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
914 .module_bit = OMAP3430_EN_GPIO2_SHIFT,
915 .module_offs = OMAP3430_PER_MOD,
917 .idlest_idle_bit = OMAP3430_ST_GPIO2_SHIFT,
920 .class = &omap3xxx_gpio_hwmod_class,
921 .dev_attr = &gpio_dev_attr,
925 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
926 { .role = "dbclk", .clk = "gpio3_dbck", },
929 static struct omap_hwmod omap3xxx_gpio3_hwmod = {
931 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
932 .mpu_irqs = omap2_gpio3_irqs,
933 .main_clk = "gpio3_ick",
934 .opt_clks = gpio3_opt_clks,
935 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
939 .module_bit = OMAP3430_EN_GPIO3_SHIFT,
940 .module_offs = OMAP3430_PER_MOD,
942 .idlest_idle_bit = OMAP3430_ST_GPIO3_SHIFT,
945 .class = &omap3xxx_gpio_hwmod_class,
946 .dev_attr = &gpio_dev_attr,
950 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
951 { .role = "dbclk", .clk = "gpio4_dbck", },
954 static struct omap_hwmod omap3xxx_gpio4_hwmod = {
956 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
957 .mpu_irqs = omap2_gpio4_irqs,
958 .main_clk = "gpio4_ick",
959 .opt_clks = gpio4_opt_clks,
960 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
964 .module_bit = OMAP3430_EN_GPIO4_SHIFT,
965 .module_offs = OMAP3430_PER_MOD,
967 .idlest_idle_bit = OMAP3430_ST_GPIO4_SHIFT,
970 .class = &omap3xxx_gpio_hwmod_class,
971 .dev_attr = &gpio_dev_attr,
975 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = {
976 { .irq = 33 + OMAP_INTC_START, }, /* INT_34XX_GPIO_BANK5 */
980 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
981 { .role = "dbclk", .clk = "gpio5_dbck", },
984 static struct omap_hwmod omap3xxx_gpio5_hwmod = {
986 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
987 .mpu_irqs = omap3xxx_gpio5_irqs,
988 .main_clk = "gpio5_ick",
989 .opt_clks = gpio5_opt_clks,
990 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
994 .module_bit = OMAP3430_EN_GPIO5_SHIFT,
995 .module_offs = OMAP3430_PER_MOD,
997 .idlest_idle_bit = OMAP3430_ST_GPIO5_SHIFT,
1000 .class = &omap3xxx_gpio_hwmod_class,
1001 .dev_attr = &gpio_dev_attr,
1005 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = {
1006 { .irq = 34 + OMAP_INTC_START, }, /* INT_34XX_GPIO_BANK6 */
1010 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1011 { .role = "dbclk", .clk = "gpio6_dbck", },
1014 static struct omap_hwmod omap3xxx_gpio6_hwmod = {
1016 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1017 .mpu_irqs = omap3xxx_gpio6_irqs,
1018 .main_clk = "gpio6_ick",
1019 .opt_clks = gpio6_opt_clks,
1020 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1024 .module_bit = OMAP3430_EN_GPIO6_SHIFT,
1025 .module_offs = OMAP3430_PER_MOD,
1027 .idlest_idle_bit = OMAP3430_ST_GPIO6_SHIFT,
1030 .class = &omap3xxx_gpio_hwmod_class,
1031 .dev_attr = &gpio_dev_attr,
1034 /* dma attributes */
1035 static struct omap_dma_dev_attr dma_dev_attr = {
1036 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1037 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1041 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc = {
1043 .sysc_offs = 0x002c,
1044 .syss_offs = 0x0028,
1045 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1046 SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
1047 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE |
1048 SYSS_HAS_RESET_STATUS),
1049 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1050 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1051 .sysc_fields = &omap_hwmod_sysc_type1,
1054 static struct omap_hwmod_class omap3xxx_dma_hwmod_class = {
1056 .sysc = &omap3xxx_dma_sysc,
1060 static struct omap_hwmod omap3xxx_dma_system_hwmod = {
1062 .class = &omap3xxx_dma_hwmod_class,
1063 .mpu_irqs = omap2_dma_system_irqs,
1064 .main_clk = "core_l3_ick",
1067 .module_offs = CORE_MOD,
1069 .module_bit = OMAP3430_ST_SDMA_SHIFT,
1071 .idlest_idle_bit = OMAP3430_ST_SDMA_SHIFT,
1074 .dev_attr = &dma_dev_attr,
1075 .flags = HWMOD_NO_IDLEST,
1080 * multi channel buffered serial port controller
1083 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc = {
1084 .sysc_offs = 0x008c,
1085 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1086 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1087 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1088 .sysc_fields = &omap_hwmod_sysc_type1,
1092 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = {
1094 .sysc = &omap3xxx_mcbsp_sysc,
1095 .rev = MCBSP_CONFIG_TYPE3,
1098 /* McBSP functional clock mapping */
1099 static struct omap_hwmod_opt_clk mcbsp15_opt_clks[] = {
1100 { .role = "pad_fck", .clk = "mcbsp_clks" },
1101 { .role = "prcm_fck", .clk = "core_96m_fck" },
1104 static struct omap_hwmod_opt_clk mcbsp234_opt_clks[] = {
1105 { .role = "pad_fck", .clk = "mcbsp_clks" },
1106 { .role = "prcm_fck", .clk = "per_96m_fck" },
1110 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = {
1111 { .name = "common", .irq = 16 + OMAP_INTC_START, },
1112 { .name = "tx", .irq = 59 + OMAP_INTC_START, },
1113 { .name = "rx", .irq = 60 + OMAP_INTC_START, },
1117 static struct omap_hwmod omap3xxx_mcbsp1_hwmod = {
1119 .class = &omap3xxx_mcbsp_hwmod_class,
1120 .mpu_irqs = omap3xxx_mcbsp1_irqs,
1121 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
1122 .main_clk = "mcbsp1_fck",
1126 .module_bit = OMAP3430_EN_MCBSP1_SHIFT,
1127 .module_offs = CORE_MOD,
1129 .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT,
1132 .opt_clks = mcbsp15_opt_clks,
1133 .opt_clks_cnt = ARRAY_SIZE(mcbsp15_opt_clks),
1137 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = {
1138 { .name = "common", .irq = 17 + OMAP_INTC_START, },
1139 { .name = "tx", .irq = 62 + OMAP_INTC_START, },
1140 { .name = "rx", .irq = 63 + OMAP_INTC_START, },
1144 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = {
1145 .sidetone = "mcbsp2_sidetone",
1148 static struct omap_hwmod omap3xxx_mcbsp2_hwmod = {
1150 .class = &omap3xxx_mcbsp_hwmod_class,
1151 .mpu_irqs = omap3xxx_mcbsp2_irqs,
1152 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
1153 .main_clk = "mcbsp2_fck",
1157 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
1158 .module_offs = OMAP3430_PER_MOD,
1160 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
1163 .opt_clks = mcbsp234_opt_clks,
1164 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1165 .dev_attr = &omap34xx_mcbsp2_dev_attr,
1169 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = {
1170 { .name = "common", .irq = 22 + OMAP_INTC_START, },
1171 { .name = "tx", .irq = 89 + OMAP_INTC_START, },
1172 { .name = "rx", .irq = 90 + OMAP_INTC_START, },
1176 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = {
1177 .sidetone = "mcbsp3_sidetone",
1180 static struct omap_hwmod omap3xxx_mcbsp3_hwmod = {
1182 .class = &omap3xxx_mcbsp_hwmod_class,
1183 .mpu_irqs = omap3xxx_mcbsp3_irqs,
1184 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
1185 .main_clk = "mcbsp3_fck",
1189 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
1190 .module_offs = OMAP3430_PER_MOD,
1192 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
1195 .opt_clks = mcbsp234_opt_clks,
1196 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1197 .dev_attr = &omap34xx_mcbsp3_dev_attr,
1201 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = {
1202 { .name = "common", .irq = 23 + OMAP_INTC_START, },
1203 { .name = "tx", .irq = 54 + OMAP_INTC_START, },
1204 { .name = "rx", .irq = 55 + OMAP_INTC_START, },
1208 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = {
1209 { .name = "rx", .dma_req = 20 },
1210 { .name = "tx", .dma_req = 19 },
1214 static struct omap_hwmod omap3xxx_mcbsp4_hwmod = {
1216 .class = &omap3xxx_mcbsp_hwmod_class,
1217 .mpu_irqs = omap3xxx_mcbsp4_irqs,
1218 .sdma_reqs = omap3xxx_mcbsp4_sdma_chs,
1219 .main_clk = "mcbsp4_fck",
1223 .module_bit = OMAP3430_EN_MCBSP4_SHIFT,
1224 .module_offs = OMAP3430_PER_MOD,
1226 .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT,
1229 .opt_clks = mcbsp234_opt_clks,
1230 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1234 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = {
1235 { .name = "common", .irq = 27 + OMAP_INTC_START, },
1236 { .name = "tx", .irq = 81 + OMAP_INTC_START, },
1237 { .name = "rx", .irq = 82 + OMAP_INTC_START, },
1241 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = {
1242 { .name = "rx", .dma_req = 22 },
1243 { .name = "tx", .dma_req = 21 },
1247 static struct omap_hwmod omap3xxx_mcbsp5_hwmod = {
1249 .class = &omap3xxx_mcbsp_hwmod_class,
1250 .mpu_irqs = omap3xxx_mcbsp5_irqs,
1251 .sdma_reqs = omap3xxx_mcbsp5_sdma_chs,
1252 .main_clk = "mcbsp5_fck",
1256 .module_bit = OMAP3430_EN_MCBSP5_SHIFT,
1257 .module_offs = CORE_MOD,
1259 .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT,
1262 .opt_clks = mcbsp15_opt_clks,
1263 .opt_clks_cnt = ARRAY_SIZE(mcbsp15_opt_clks),
1266 /* 'mcbsp sidetone' class */
1267 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc = {
1268 .sysc_offs = 0x0010,
1269 .sysc_flags = SYSC_HAS_AUTOIDLE,
1270 .sysc_fields = &omap_hwmod_sysc_type1,
1273 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = {
1274 .name = "mcbsp_sidetone",
1275 .sysc = &omap3xxx_mcbsp_sidetone_sysc,
1278 /* mcbsp2_sidetone */
1279 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = {
1280 { .name = "irq", .irq = 4 + OMAP_INTC_START, },
1284 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = {
1285 .name = "mcbsp2_sidetone",
1286 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
1287 .mpu_irqs = omap3xxx_mcbsp2_sidetone_irqs,
1288 .main_clk = "mcbsp2_fck",
1292 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
1293 .module_offs = OMAP3430_PER_MOD,
1295 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
1300 /* mcbsp3_sidetone */
1301 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = {
1302 { .name = "irq", .irq = 5 + OMAP_INTC_START, },
1306 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = {
1307 .name = "mcbsp3_sidetone",
1308 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
1309 .mpu_irqs = omap3xxx_mcbsp3_sidetone_irqs,
1310 .main_clk = "mcbsp3_fck",
1314 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
1315 .module_offs = OMAP3430_PER_MOD,
1317 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
1323 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields = {
1327 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc = {
1329 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_NO_CACHE),
1330 .clockact = CLOCKACT_TEST_ICLK,
1331 .sysc_fields = &omap34xx_sr_sysc_fields,
1334 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class = {
1335 .name = "smartreflex",
1336 .sysc = &omap34xx_sr_sysc,
1340 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields = {
1345 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc = {
1347 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1348 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
1350 .sysc_fields = &omap36xx_sr_sysc_fields,
1353 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class = {
1354 .name = "smartreflex",
1355 .sysc = &omap36xx_sr_sysc,
1360 static struct omap_smartreflex_dev_attr sr1_dev_attr = {
1361 .sensor_voltdm_name = "mpu_iva",
1364 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = {
1365 { .irq = 18 + OMAP_INTC_START, },
1369 static struct omap_hwmod omap34xx_sr1_hwmod = {
1370 .name = "smartreflex_mpu_iva",
1371 .class = &omap34xx_smartreflex_hwmod_class,
1372 .main_clk = "sr1_fck",
1376 .module_bit = OMAP3430_EN_SR1_SHIFT,
1377 .module_offs = WKUP_MOD,
1379 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
1382 .dev_attr = &sr1_dev_attr,
1383 .mpu_irqs = omap3_smartreflex_mpu_irqs,
1384 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1387 static struct omap_hwmod omap36xx_sr1_hwmod = {
1388 .name = "smartreflex_mpu_iva",
1389 .class = &omap36xx_smartreflex_hwmod_class,
1390 .main_clk = "sr1_fck",
1394 .module_bit = OMAP3430_EN_SR1_SHIFT,
1395 .module_offs = WKUP_MOD,
1397 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
1400 .dev_attr = &sr1_dev_attr,
1401 .mpu_irqs = omap3_smartreflex_mpu_irqs,
1405 static struct omap_smartreflex_dev_attr sr2_dev_attr = {
1406 .sensor_voltdm_name = "core",
1409 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = {
1410 { .irq = 19 + OMAP_INTC_START, },
1414 static struct omap_hwmod omap34xx_sr2_hwmod = {
1415 .name = "smartreflex_core",
1416 .class = &omap34xx_smartreflex_hwmod_class,
1417 .main_clk = "sr2_fck",
1421 .module_bit = OMAP3430_EN_SR2_SHIFT,
1422 .module_offs = WKUP_MOD,
1424 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
1427 .dev_attr = &sr2_dev_attr,
1428 .mpu_irqs = omap3_smartreflex_core_irqs,
1429 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1432 static struct omap_hwmod omap36xx_sr2_hwmod = {
1433 .name = "smartreflex_core",
1434 .class = &omap36xx_smartreflex_hwmod_class,
1435 .main_clk = "sr2_fck",
1439 .module_bit = OMAP3430_EN_SR2_SHIFT,
1440 .module_offs = WKUP_MOD,
1442 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
1445 .dev_attr = &sr2_dev_attr,
1446 .mpu_irqs = omap3_smartreflex_core_irqs,
1451 * mailbox module allowing communication between the on-chip processors
1452 * using a queued mailbox-interrupt mechanism.
1455 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc = {
1459 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1460 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1461 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1462 .sysc_fields = &omap_hwmod_sysc_type1,
1465 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = {
1467 .sysc = &omap3xxx_mailbox_sysc,
1470 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = {
1471 { .irq = 26 + OMAP_INTC_START, },
1475 static struct omap_hwmod omap3xxx_mailbox_hwmod = {
1477 .class = &omap3xxx_mailbox_hwmod_class,
1478 .mpu_irqs = omap3xxx_mailbox_irqs,
1479 .main_clk = "mailboxes_ick",
1483 .module_bit = OMAP3430_EN_MAILBOXES_SHIFT,
1484 .module_offs = CORE_MOD,
1486 .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT,
1493 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1497 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc = {
1499 .sysc_offs = 0x0010,
1500 .syss_offs = 0x0014,
1501 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1502 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1503 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1504 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1505 .sysc_fields = &omap_hwmod_sysc_type1,
1508 static struct omap_hwmod_class omap34xx_mcspi_class = {
1510 .sysc = &omap34xx_mcspi_sysc,
1511 .rev = OMAP3_MCSPI_REV,
1515 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1516 .num_chipselect = 4,
1519 static struct omap_hwmod omap34xx_mcspi1 = {
1521 .mpu_irqs = omap2_mcspi1_mpu_irqs,
1522 .sdma_reqs = omap2_mcspi1_sdma_reqs,
1523 .main_clk = "mcspi1_fck",
1526 .module_offs = CORE_MOD,
1528 .module_bit = OMAP3430_EN_MCSPI1_SHIFT,
1530 .idlest_idle_bit = OMAP3430_ST_MCSPI1_SHIFT,
1533 .class = &omap34xx_mcspi_class,
1534 .dev_attr = &omap_mcspi1_dev_attr,
1538 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1539 .num_chipselect = 2,
1542 static struct omap_hwmod omap34xx_mcspi2 = {
1544 .mpu_irqs = omap2_mcspi2_mpu_irqs,
1545 .sdma_reqs = omap2_mcspi2_sdma_reqs,
1546 .main_clk = "mcspi2_fck",
1549 .module_offs = CORE_MOD,
1551 .module_bit = OMAP3430_EN_MCSPI2_SHIFT,
1553 .idlest_idle_bit = OMAP3430_ST_MCSPI2_SHIFT,
1556 .class = &omap34xx_mcspi_class,
1557 .dev_attr = &omap_mcspi2_dev_attr,
1561 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = {
1562 { .name = "irq", .irq = 91 + OMAP_INTC_START, }, /* 91 */
1566 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = {
1567 { .name = "tx0", .dma_req = 15 },
1568 { .name = "rx0", .dma_req = 16 },
1569 { .name = "tx1", .dma_req = 23 },
1570 { .name = "rx1", .dma_req = 24 },
1574 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1575 .num_chipselect = 2,
1578 static struct omap_hwmod omap34xx_mcspi3 = {
1580 .mpu_irqs = omap34xx_mcspi3_mpu_irqs,
1581 .sdma_reqs = omap34xx_mcspi3_sdma_reqs,
1582 .main_clk = "mcspi3_fck",
1585 .module_offs = CORE_MOD,
1587 .module_bit = OMAP3430_EN_MCSPI3_SHIFT,
1589 .idlest_idle_bit = OMAP3430_ST_MCSPI3_SHIFT,
1592 .class = &omap34xx_mcspi_class,
1593 .dev_attr = &omap_mcspi3_dev_attr,
1597 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = {
1598 { .name = "irq", .irq = 48 + OMAP_INTC_START, },
1602 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = {
1603 { .name = "tx0", .dma_req = 70 }, /* DMA_SPI4_TX0 */
1604 { .name = "rx0", .dma_req = 71 }, /* DMA_SPI4_RX0 */
1608 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr = {
1609 .num_chipselect = 1,
1612 static struct omap_hwmod omap34xx_mcspi4 = {
1614 .mpu_irqs = omap34xx_mcspi4_mpu_irqs,
1615 .sdma_reqs = omap34xx_mcspi4_sdma_reqs,
1616 .main_clk = "mcspi4_fck",
1619 .module_offs = CORE_MOD,
1621 .module_bit = OMAP3430_EN_MCSPI4_SHIFT,
1623 .idlest_idle_bit = OMAP3430_ST_MCSPI4_SHIFT,
1626 .class = &omap34xx_mcspi_class,
1627 .dev_attr = &omap_mcspi4_dev_attr,
1631 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc = {
1633 .sysc_offs = 0x0404,
1634 .syss_offs = 0x0408,
1635 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1636 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1638 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1639 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1640 .sysc_fields = &omap_hwmod_sysc_type1,
1643 static struct omap_hwmod_class usbotg_class = {
1645 .sysc = &omap3xxx_usbhsotg_sysc,
1649 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = {
1651 { .name = "mc", .irq = 92 + OMAP_INTC_START, },
1652 { .name = "dma", .irq = 93 + OMAP_INTC_START, },
1656 static struct omap_hwmod omap3xxx_usbhsotg_hwmod = {
1657 .name = "usb_otg_hs",
1658 .mpu_irqs = omap3xxx_usbhsotg_mpu_irqs,
1659 .main_clk = "hsotgusb_ick",
1663 .module_bit = OMAP3430_EN_HSOTGUSB_SHIFT,
1664 .module_offs = CORE_MOD,
1666 .idlest_idle_bit = OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT,
1667 .idlest_stdby_bit = OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1670 .class = &usbotg_class,
1673 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1674 * broken when autoidle is enabled
1675 * workaround is to disable the autoidle bit at module level.
1677 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1678 | HWMOD_SWSUP_MSTANDBY,
1682 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = {
1683 { .name = "mc", .irq = 71 + OMAP_INTC_START, },
1687 static struct omap_hwmod_class am35xx_usbotg_class = {
1688 .name = "am35xx_usbotg",
1691 static struct omap_hwmod am35xx_usbhsotg_hwmod = {
1692 .name = "am35x_otg_hs",
1693 .mpu_irqs = am35xx_usbhsotg_mpu_irqs,
1694 .main_clk = "hsotgusb_fck",
1695 .class = &am35xx_usbotg_class,
1696 .flags = HWMOD_NO_IDLEST,
1699 /* MMC/SD/SDIO common */
1700 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc = {
1704 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1705 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1706 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1707 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1708 .sysc_fields = &omap_hwmod_sysc_type1,
1711 static struct omap_hwmod_class omap34xx_mmc_class = {
1713 .sysc = &omap34xx_mmc_sysc,
1718 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = {
1719 { .irq = 83 + OMAP_INTC_START, },
1723 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = {
1724 { .name = "tx", .dma_req = 61, },
1725 { .name = "rx", .dma_req = 62, },
1729 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks[] = {
1730 { .role = "dbck", .clk = "omap_32k_fck", },
1733 static struct omap_mmc_dev_attr mmc1_dev_attr = {
1734 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1737 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1738 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr = {
1739 .flags = (OMAP_HSMMC_SUPPORTS_DUAL_VOLT |
1740 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ),
1743 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod = {
1745 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
1746 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
1747 .opt_clks = omap34xx_mmc1_opt_clks,
1748 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
1749 .main_clk = "mmchs1_fck",
1752 .module_offs = CORE_MOD,
1754 .module_bit = OMAP3430_EN_MMC1_SHIFT,
1756 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
1759 .dev_attr = &mmc1_pre_es3_dev_attr,
1760 .class = &omap34xx_mmc_class,
1763 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod = {
1765 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
1766 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
1767 .opt_clks = omap34xx_mmc1_opt_clks,
1768 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
1769 .main_clk = "mmchs1_fck",
1772 .module_offs = CORE_MOD,
1774 .module_bit = OMAP3430_EN_MMC1_SHIFT,
1776 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
1779 .dev_attr = &mmc1_dev_attr,
1780 .class = &omap34xx_mmc_class,
1785 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = {
1786 { .irq = 86 + OMAP_INTC_START, },
1790 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = {
1791 { .name = "tx", .dma_req = 47, },
1792 { .name = "rx", .dma_req = 48, },
1796 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks[] = {
1797 { .role = "dbck", .clk = "omap_32k_fck", },
1800 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1801 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr = {
1802 .flags = OMAP_HSMMC_BROKEN_MULTIBLOCK_READ,
1805 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod = {
1807 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
1808 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
1809 .opt_clks = omap34xx_mmc2_opt_clks,
1810 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
1811 .main_clk = "mmchs2_fck",
1814 .module_offs = CORE_MOD,
1816 .module_bit = OMAP3430_EN_MMC2_SHIFT,
1818 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
1821 .dev_attr = &mmc2_pre_es3_dev_attr,
1822 .class = &omap34xx_mmc_class,
1825 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod = {
1827 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
1828 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
1829 .opt_clks = omap34xx_mmc2_opt_clks,
1830 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
1831 .main_clk = "mmchs2_fck",
1834 .module_offs = CORE_MOD,
1836 .module_bit = OMAP3430_EN_MMC2_SHIFT,
1838 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
1841 .class = &omap34xx_mmc_class,
1846 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = {
1847 { .irq = 94 + OMAP_INTC_START, },
1851 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = {
1852 { .name = "tx", .dma_req = 77, },
1853 { .name = "rx", .dma_req = 78, },
1857 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks[] = {
1858 { .role = "dbck", .clk = "omap_32k_fck", },
1861 static struct omap_hwmod omap3xxx_mmc3_hwmod = {
1863 .mpu_irqs = omap34xx_mmc3_mpu_irqs,
1864 .sdma_reqs = omap34xx_mmc3_sdma_reqs,
1865 .opt_clks = omap34xx_mmc3_opt_clks,
1866 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc3_opt_clks),
1867 .main_clk = "mmchs3_fck",
1871 .module_bit = OMAP3430_EN_MMC3_SHIFT,
1873 .idlest_idle_bit = OMAP3430_ST_MMC3_SHIFT,
1876 .class = &omap34xx_mmc_class,
1880 * 'usb_host_hs' class
1881 * high-speed multi-port usb host controller
1884 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc = {
1886 .sysc_offs = 0x0010,
1887 .syss_offs = 0x0014,
1888 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
1889 SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
1890 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1891 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1892 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1893 .sysc_fields = &omap_hwmod_sysc_type1,
1896 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class = {
1897 .name = "usb_host_hs",
1898 .sysc = &omap3xxx_usb_host_hs_sysc,
1901 static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks[] = {
1902 { .role = "ehci_logic_fck", .clk = "usbhost_120m_fck", },
1905 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = {
1906 { .name = "ohci-irq", .irq = 76 + OMAP_INTC_START, },
1907 { .name = "ehci-irq", .irq = 77 + OMAP_INTC_START, },
1911 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = {
1912 .name = "usb_host_hs",
1913 .class = &omap3xxx_usb_host_hs_hwmod_class,
1914 .clkdm_name = "l3_init_clkdm",
1915 .mpu_irqs = omap3xxx_usb_host_hs_irqs,
1916 .main_clk = "usbhost_48m_fck",
1919 .module_offs = OMAP3430ES2_USBHOST_MOD,
1921 .module_bit = OMAP3430ES2_EN_USBHOST1_SHIFT,
1923 .idlest_idle_bit = OMAP3430ES2_ST_USBHOST_IDLE_SHIFT,
1924 .idlest_stdby_bit = OMAP3430ES2_ST_USBHOST_STDBY_SHIFT,
1927 .opt_clks = omap3xxx_usb_host_hs_opt_clks,
1928 .opt_clks_cnt = ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks),
1931 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1935 * In the following configuration :
1936 * - USBHOST module is set to smart-idle mode
1937 * - PRCM asserts idle_req to the USBHOST module ( This typically
1938 * happens when the system is going to a low power mode : all ports
1939 * have been suspended, the master part of the USBHOST module has
1940 * entered the standby state, and SW has cut the functional clocks)
1941 * - an USBHOST interrupt occurs before the module is able to answer
1942 * idle_ack, typically a remote wakeup IRQ.
1943 * Then the USB HOST module will enter a deadlock situation where it
1944 * is no more accessible nor functional.
1947 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1951 * Errata: USB host EHCI may stall when entering smart-standby mode
1955 * When the USBHOST module is set to smart-standby mode, and when it is
1956 * ready to enter the standby state (i.e. all ports are suspended and
1957 * all attached devices are in suspend mode), then it can wrongly assert
1958 * the Mstandby signal too early while there are still some residual OCP
1959 * transactions ongoing. If this condition occurs, the internal state
1960 * machine may go to an undefined state and the USB link may be stuck
1961 * upon the next resume.
1964 * Don't use smart standby; use only force standby,
1965 * hence HWMOD_SWSUP_MSTANDBY
1969 * During system boot; If the hwmod framework resets the module
1970 * the module will have smart idle settings; which can lead to deadlock
1971 * (above Errata Id:i660); so, dont reset the module during boot;
1972 * Use HWMOD_INIT_NO_RESET.
1975 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
1976 HWMOD_INIT_NO_RESET,
1980 * 'usb_tll_hs' class
1981 * usb_tll_hs module is the adapter on the usb_host_hs ports
1983 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc = {
1985 .sysc_offs = 0x0010,
1986 .syss_offs = 0x0014,
1987 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1988 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1990 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1991 .sysc_fields = &omap_hwmod_sysc_type1,
1994 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class = {
1995 .name = "usb_tll_hs",
1996 .sysc = &omap3xxx_usb_tll_hs_sysc,
1999 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = {
2000 { .name = "tll-irq", .irq = 78 + OMAP_INTC_START, },
2004 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = {
2005 .name = "usb_tll_hs",
2006 .class = &omap3xxx_usb_tll_hs_hwmod_class,
2007 .clkdm_name = "l3_init_clkdm",
2008 .mpu_irqs = omap3xxx_usb_tll_hs_irqs,
2009 .main_clk = "usbtll_fck",
2012 .module_offs = CORE_MOD,
2014 .module_bit = OMAP3430ES2_EN_USBTLL_SHIFT,
2016 .idlest_idle_bit = OMAP3430ES2_ST_USBTLL_SHIFT,
2021 static struct omap_hwmod omap3xxx_hdq1w_hwmod = {
2023 .mpu_irqs = omap2_hdq1w_mpu_irqs,
2024 .main_clk = "hdq_fck",
2027 .module_offs = CORE_MOD,
2029 .module_bit = OMAP3430_EN_HDQ_SHIFT,
2031 .idlest_idle_bit = OMAP3430_ST_HDQ_SHIFT,
2034 .class = &omap2_hdq1w_class,
2038 static struct omap_hwmod_rst_info omap3xxx_sad2d_resets[] = {
2039 { .name = "rst_modem_pwron_sw", .rst_shift = 0 },
2040 { .name = "rst_modem_sw", .rst_shift = 1 },
2043 static struct omap_hwmod_class omap3xxx_sad2d_class = {
2047 static struct omap_hwmod omap3xxx_sad2d_hwmod = {
2049 .rst_lines = omap3xxx_sad2d_resets,
2050 .rst_lines_cnt = ARRAY_SIZE(omap3xxx_sad2d_resets),
2051 .main_clk = "sad2d_ick",
2054 .module_offs = CORE_MOD,
2056 .module_bit = OMAP3430_EN_SAD2D_SHIFT,
2058 .idlest_idle_bit = OMAP3430_ST_SAD2D_SHIFT,
2061 .class = &omap3xxx_sad2d_class,
2065 * '32K sync counter' class
2066 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2068 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc = {
2070 .sysc_offs = 0x0004,
2071 .sysc_flags = SYSC_HAS_SIDLEMODE,
2072 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
2073 .sysc_fields = &omap_hwmod_sysc_type1,
2076 static struct omap_hwmod_class omap3xxx_counter_hwmod_class = {
2078 .sysc = &omap3xxx_counter_sysc,
2081 static struct omap_hwmod omap3xxx_counter_32k_hwmod = {
2082 .name = "counter_32k",
2083 .class = &omap3xxx_counter_hwmod_class,
2084 .clkdm_name = "wkup_clkdm",
2085 .flags = HWMOD_SWSUP_SIDLE,
2086 .main_clk = "wkup_32k_fck",
2089 .module_offs = WKUP_MOD,
2091 .module_bit = OMAP3430_ST_32KSYNC_SHIFT,
2093 .idlest_idle_bit = OMAP3430_ST_32KSYNC_SHIFT,
2100 * general purpose memory controller
2103 static struct omap_hwmod_class_sysconfig omap3xxx_gpmc_sysc = {
2105 .sysc_offs = 0x0010,
2106 .syss_offs = 0x0014,
2107 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2108 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2109 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2110 .sysc_fields = &omap_hwmod_sysc_type1,
2113 static struct omap_hwmod_class omap3xxx_gpmc_hwmod_class = {
2115 .sysc = &omap3xxx_gpmc_sysc,
2118 static struct omap_hwmod_irq_info omap3xxx_gpmc_irqs[] = {
2123 static struct omap_hwmod omap3xxx_gpmc_hwmod = {
2125 .class = &omap3xxx_gpmc_hwmod_class,
2126 .clkdm_name = "core_l3_clkdm",
2127 .mpu_irqs = omap3xxx_gpmc_irqs,
2128 .main_clk = "gpmc_fck",
2130 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
2131 * block. It is not being added due to any known bugs with
2132 * resetting the GPMC IP block, but rather because any timings
2133 * set by the bootloader are not being correctly programmed by
2134 * the kernel from the board file or DT data.
2135 * HWMOD_INIT_NO_RESET should be removed ASAP.
2137 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET |
2145 /* L3 -> L4_CORE interface */
2146 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
2147 .master = &omap3xxx_l3_main_hwmod,
2148 .slave = &omap3xxx_l4_core_hwmod,
2149 .user = OCP_USER_MPU | OCP_USER_SDMA,
2152 /* L3 -> L4_PER interface */
2153 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = {
2154 .master = &omap3xxx_l3_main_hwmod,
2155 .slave = &omap3xxx_l4_per_hwmod,
2156 .user = OCP_USER_MPU | OCP_USER_SDMA,
2159 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs[] = {
2161 .pa_start = 0x68000000,
2162 .pa_end = 0x6800ffff,
2163 .flags = ADDR_TYPE_RT,
2168 /* MPU -> L3 interface */
2169 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = {
2170 .master = &omap3xxx_mpu_hwmod,
2171 .slave = &omap3xxx_l3_main_hwmod,
2172 .addr = omap3xxx_l3_main_addrs,
2173 .user = OCP_USER_MPU,
2177 static struct omap_hwmod_ocp_if omap3430es1_dss__l3 = {
2178 .master = &omap3430es1_dss_core_hwmod,
2179 .slave = &omap3xxx_l3_main_hwmod,
2180 .user = OCP_USER_MPU | OCP_USER_SDMA,
2183 static struct omap_hwmod_ocp_if omap3xxx_dss__l3 = {
2184 .master = &omap3xxx_dss_core_hwmod,
2185 .slave = &omap3xxx_l3_main_hwmod,
2188 .l3_perm_bit = OMAP3_L3_CORE_FW_INIT_ID_DSS,
2189 .flags = OMAP_FIREWALL_L3,
2192 .user = OCP_USER_MPU | OCP_USER_SDMA,
2195 /* l3_core -> usbhsotg interface */
2196 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3 = {
2197 .master = &omap3xxx_usbhsotg_hwmod,
2198 .slave = &omap3xxx_l3_main_hwmod,
2199 .clk = "core_l3_ick",
2200 .user = OCP_USER_MPU,
2203 /* l3_core -> am35xx_usbhsotg interface */
2204 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3 = {
2205 .master = &am35xx_usbhsotg_hwmod,
2206 .slave = &omap3xxx_l3_main_hwmod,
2207 .clk = "hsotgusb_ick",
2208 .user = OCP_USER_MPU,
2211 /* l3_core -> sad2d interface */
2212 static struct omap_hwmod_ocp_if omap3xxx_sad2d__l3 = {
2213 .master = &omap3xxx_sad2d_hwmod,
2214 .slave = &omap3xxx_l3_main_hwmod,
2215 .clk = "core_l3_ick",
2216 .user = OCP_USER_MPU,
2219 /* L4_CORE -> L4_WKUP interface */
2220 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
2221 .master = &omap3xxx_l4_core_hwmod,
2222 .slave = &omap3xxx_l4_wkup_hwmod,
2223 .user = OCP_USER_MPU | OCP_USER_SDMA,
2226 /* L4 CORE -> MMC1 interface */
2227 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1 = {
2228 .master = &omap3xxx_l4_core_hwmod,
2229 .slave = &omap3xxx_pre_es3_mmc1_hwmod,
2230 .clk = "mmchs1_ick",
2231 .addr = omap2430_mmc1_addr_space,
2232 .user = OCP_USER_MPU | OCP_USER_SDMA,
2233 .flags = OMAP_FIREWALL_L4
2236 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1 = {
2237 .master = &omap3xxx_l4_core_hwmod,
2238 .slave = &omap3xxx_es3plus_mmc1_hwmod,
2239 .clk = "mmchs1_ick",
2240 .addr = omap2430_mmc1_addr_space,
2241 .user = OCP_USER_MPU | OCP_USER_SDMA,
2242 .flags = OMAP_FIREWALL_L4
2245 /* L4 CORE -> MMC2 interface */
2246 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2 = {
2247 .master = &omap3xxx_l4_core_hwmod,
2248 .slave = &omap3xxx_pre_es3_mmc2_hwmod,
2249 .clk = "mmchs2_ick",
2250 .addr = omap2430_mmc2_addr_space,
2251 .user = OCP_USER_MPU | OCP_USER_SDMA,
2252 .flags = OMAP_FIREWALL_L4
2255 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2 = {
2256 .master = &omap3xxx_l4_core_hwmod,
2257 .slave = &omap3xxx_es3plus_mmc2_hwmod,
2258 .clk = "mmchs2_ick",
2259 .addr = omap2430_mmc2_addr_space,
2260 .user = OCP_USER_MPU | OCP_USER_SDMA,
2261 .flags = OMAP_FIREWALL_L4
2264 /* L4 CORE -> MMC3 interface */
2265 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space[] = {
2267 .pa_start = 0x480ad000,
2268 .pa_end = 0x480ad1ff,
2269 .flags = ADDR_TYPE_RT,
2274 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3 = {
2275 .master = &omap3xxx_l4_core_hwmod,
2276 .slave = &omap3xxx_mmc3_hwmod,
2277 .clk = "mmchs3_ick",
2278 .addr = omap3xxx_mmc3_addr_space,
2279 .user = OCP_USER_MPU | OCP_USER_SDMA,
2280 .flags = OMAP_FIREWALL_L4
2283 /* L4 CORE -> UART1 interface */
2284 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = {
2286 .pa_start = OMAP3_UART1_BASE,
2287 .pa_end = OMAP3_UART1_BASE + SZ_8K - 1,
2288 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2293 static struct omap_hwmod_ocp_if omap3_l4_core__uart1 = {
2294 .master = &omap3xxx_l4_core_hwmod,
2295 .slave = &omap3xxx_uart1_hwmod,
2297 .addr = omap3xxx_uart1_addr_space,
2298 .user = OCP_USER_MPU | OCP_USER_SDMA,
2301 /* L4 CORE -> UART2 interface */
2302 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space[] = {
2304 .pa_start = OMAP3_UART2_BASE,
2305 .pa_end = OMAP3_UART2_BASE + SZ_1K - 1,
2306 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2311 static struct omap_hwmod_ocp_if omap3_l4_core__uart2 = {
2312 .master = &omap3xxx_l4_core_hwmod,
2313 .slave = &omap3xxx_uart2_hwmod,
2315 .addr = omap3xxx_uart2_addr_space,
2316 .user = OCP_USER_MPU | OCP_USER_SDMA,
2319 /* L4 PER -> UART3 interface */
2320 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space[] = {
2322 .pa_start = OMAP3_UART3_BASE,
2323 .pa_end = OMAP3_UART3_BASE + SZ_1K - 1,
2324 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2329 static struct omap_hwmod_ocp_if omap3_l4_per__uart3 = {
2330 .master = &omap3xxx_l4_per_hwmod,
2331 .slave = &omap3xxx_uart3_hwmod,
2333 .addr = omap3xxx_uart3_addr_space,
2334 .user = OCP_USER_MPU | OCP_USER_SDMA,
2337 /* L4 PER -> UART4 interface */
2338 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space[] = {
2340 .pa_start = OMAP3_UART4_BASE,
2341 .pa_end = OMAP3_UART4_BASE + SZ_1K - 1,
2342 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2347 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4 = {
2348 .master = &omap3xxx_l4_per_hwmod,
2349 .slave = &omap36xx_uart4_hwmod,
2351 .addr = omap36xx_uart4_addr_space,
2352 .user = OCP_USER_MPU | OCP_USER_SDMA,
2355 /* AM35xx: L4 CORE -> UART4 interface */
2356 static struct omap_hwmod_addr_space am35xx_uart4_addr_space[] = {
2358 .pa_start = OMAP3_UART4_AM35XX_BASE,
2359 .pa_end = OMAP3_UART4_AM35XX_BASE + SZ_1K - 1,
2360 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
2365 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4 = {
2366 .master = &omap3xxx_l4_core_hwmod,
2367 .slave = &am35xx_uart4_hwmod,
2369 .addr = am35xx_uart4_addr_space,
2370 .user = OCP_USER_MPU | OCP_USER_SDMA,
2373 /* L4 CORE -> I2C1 interface */
2374 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1 = {
2375 .master = &omap3xxx_l4_core_hwmod,
2376 .slave = &omap3xxx_i2c1_hwmod,
2378 .addr = omap2_i2c1_addr_space,
2381 .l4_fw_region = OMAP3_L4_CORE_FW_I2C1_REGION,
2383 .flags = OMAP_FIREWALL_L4,
2386 .user = OCP_USER_MPU | OCP_USER_SDMA,
2389 /* L4 CORE -> I2C2 interface */
2390 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2 = {
2391 .master = &omap3xxx_l4_core_hwmod,
2392 .slave = &omap3xxx_i2c2_hwmod,
2394 .addr = omap2_i2c2_addr_space,
2397 .l4_fw_region = OMAP3_L4_CORE_FW_I2C2_REGION,
2399 .flags = OMAP_FIREWALL_L4,
2402 .user = OCP_USER_MPU | OCP_USER_SDMA,
2405 /* L4 CORE -> I2C3 interface */
2406 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space[] = {
2408 .pa_start = 0x48060000,
2409 .pa_end = 0x48060000 + SZ_128 - 1,
2410 .flags = ADDR_TYPE_RT,
2415 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3 = {
2416 .master = &omap3xxx_l4_core_hwmod,
2417 .slave = &omap3xxx_i2c3_hwmod,
2419 .addr = omap3xxx_i2c3_addr_space,
2422 .l4_fw_region = OMAP3_L4_CORE_FW_I2C3_REGION,
2424 .flags = OMAP_FIREWALL_L4,
2427 .user = OCP_USER_MPU | OCP_USER_SDMA,
2430 /* L4 CORE -> SR1 interface */
2431 static struct omap_hwmod_addr_space omap3_sr1_addr_space[] = {
2433 .pa_start = OMAP34XX_SR1_BASE,
2434 .pa_end = OMAP34XX_SR1_BASE + SZ_1K - 1,
2435 .flags = ADDR_TYPE_RT,
2440 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1 = {
2441 .master = &omap3xxx_l4_core_hwmod,
2442 .slave = &omap34xx_sr1_hwmod,
2444 .addr = omap3_sr1_addr_space,
2445 .user = OCP_USER_MPU,
2448 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1 = {
2449 .master = &omap3xxx_l4_core_hwmod,
2450 .slave = &omap36xx_sr1_hwmod,
2452 .addr = omap3_sr1_addr_space,
2453 .user = OCP_USER_MPU,
2456 /* L4 CORE -> SR1 interface */
2457 static struct omap_hwmod_addr_space omap3_sr2_addr_space[] = {
2459 .pa_start = OMAP34XX_SR2_BASE,
2460 .pa_end = OMAP34XX_SR2_BASE + SZ_1K - 1,
2461 .flags = ADDR_TYPE_RT,
2466 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2 = {
2467 .master = &omap3xxx_l4_core_hwmod,
2468 .slave = &omap34xx_sr2_hwmod,
2470 .addr = omap3_sr2_addr_space,
2471 .user = OCP_USER_MPU,
2474 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2 = {
2475 .master = &omap3xxx_l4_core_hwmod,
2476 .slave = &omap36xx_sr2_hwmod,
2478 .addr = omap3_sr2_addr_space,
2479 .user = OCP_USER_MPU,
2482 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs[] = {
2484 .pa_start = OMAP34XX_HSUSB_OTG_BASE,
2485 .pa_end = OMAP34XX_HSUSB_OTG_BASE + SZ_4K - 1,
2486 .flags = ADDR_TYPE_RT
2491 /* l4_core -> usbhsotg */
2492 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg = {
2493 .master = &omap3xxx_l4_core_hwmod,
2494 .slave = &omap3xxx_usbhsotg_hwmod,
2496 .addr = omap3xxx_usbhsotg_addrs,
2497 .user = OCP_USER_MPU,
2500 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs[] = {
2502 .pa_start = AM35XX_IPSS_USBOTGSS_BASE,
2503 .pa_end = AM35XX_IPSS_USBOTGSS_BASE + SZ_4K - 1,
2504 .flags = ADDR_TYPE_RT
2509 /* l4_core -> usbhsotg */
2510 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg = {
2511 .master = &omap3xxx_l4_core_hwmod,
2512 .slave = &am35xx_usbhsotg_hwmod,
2513 .clk = "hsotgusb_ick",
2514 .addr = am35xx_usbhsotg_addrs,
2515 .user = OCP_USER_MPU,
2518 /* L4_WKUP -> L4_SEC interface */
2519 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec = {
2520 .master = &omap3xxx_l4_wkup_hwmod,
2521 .slave = &omap3xxx_l4_sec_hwmod,
2522 .user = OCP_USER_MPU | OCP_USER_SDMA,
2525 /* IVA2 <- L3 interface */
2526 static struct omap_hwmod_ocp_if omap3xxx_l3__iva = {
2527 .master = &omap3xxx_l3_main_hwmod,
2528 .slave = &omap3xxx_iva_hwmod,
2529 .clk = "core_l3_ick",
2530 .user = OCP_USER_MPU | OCP_USER_SDMA,
2533 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs[] = {
2535 .pa_start = 0x48318000,
2536 .pa_end = 0x48318000 + SZ_1K - 1,
2537 .flags = ADDR_TYPE_RT
2542 /* l4_wkup -> timer1 */
2543 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1 = {
2544 .master = &omap3xxx_l4_wkup_hwmod,
2545 .slave = &omap3xxx_timer1_hwmod,
2547 .addr = omap3xxx_timer1_addrs,
2548 .user = OCP_USER_MPU | OCP_USER_SDMA,
2551 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs[] = {
2553 .pa_start = 0x49032000,
2554 .pa_end = 0x49032000 + SZ_1K - 1,
2555 .flags = ADDR_TYPE_RT
2560 /* l4_per -> timer2 */
2561 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2 = {
2562 .master = &omap3xxx_l4_per_hwmod,
2563 .slave = &omap3xxx_timer2_hwmod,
2565 .addr = omap3xxx_timer2_addrs,
2566 .user = OCP_USER_MPU | OCP_USER_SDMA,
2569 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs[] = {
2571 .pa_start = 0x49034000,
2572 .pa_end = 0x49034000 + SZ_1K - 1,
2573 .flags = ADDR_TYPE_RT
2578 /* l4_per -> timer3 */
2579 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3 = {
2580 .master = &omap3xxx_l4_per_hwmod,
2581 .slave = &omap3xxx_timer3_hwmod,
2583 .addr = omap3xxx_timer3_addrs,
2584 .user = OCP_USER_MPU | OCP_USER_SDMA,
2587 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs[] = {
2589 .pa_start = 0x49036000,
2590 .pa_end = 0x49036000 + SZ_1K - 1,
2591 .flags = ADDR_TYPE_RT
2596 /* l4_per -> timer4 */
2597 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4 = {
2598 .master = &omap3xxx_l4_per_hwmod,
2599 .slave = &omap3xxx_timer4_hwmod,
2601 .addr = omap3xxx_timer4_addrs,
2602 .user = OCP_USER_MPU | OCP_USER_SDMA,
2605 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs[] = {
2607 .pa_start = 0x49038000,
2608 .pa_end = 0x49038000 + SZ_1K - 1,
2609 .flags = ADDR_TYPE_RT
2614 /* l4_per -> timer5 */
2615 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5 = {
2616 .master = &omap3xxx_l4_per_hwmod,
2617 .slave = &omap3xxx_timer5_hwmod,
2619 .addr = omap3xxx_timer5_addrs,
2620 .user = OCP_USER_MPU | OCP_USER_SDMA,
2623 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs[] = {
2625 .pa_start = 0x4903A000,
2626 .pa_end = 0x4903A000 + SZ_1K - 1,
2627 .flags = ADDR_TYPE_RT
2632 /* l4_per -> timer6 */
2633 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6 = {
2634 .master = &omap3xxx_l4_per_hwmod,
2635 .slave = &omap3xxx_timer6_hwmod,
2637 .addr = omap3xxx_timer6_addrs,
2638 .user = OCP_USER_MPU | OCP_USER_SDMA,
2641 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs[] = {
2643 .pa_start = 0x4903C000,
2644 .pa_end = 0x4903C000 + SZ_1K - 1,
2645 .flags = ADDR_TYPE_RT
2650 /* l4_per -> timer7 */
2651 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7 = {
2652 .master = &omap3xxx_l4_per_hwmod,
2653 .slave = &omap3xxx_timer7_hwmod,
2655 .addr = omap3xxx_timer7_addrs,
2656 .user = OCP_USER_MPU | OCP_USER_SDMA,
2659 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs[] = {
2661 .pa_start = 0x4903E000,
2662 .pa_end = 0x4903E000 + SZ_1K - 1,
2663 .flags = ADDR_TYPE_RT
2668 /* l4_per -> timer8 */
2669 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8 = {
2670 .master = &omap3xxx_l4_per_hwmod,
2671 .slave = &omap3xxx_timer8_hwmod,
2673 .addr = omap3xxx_timer8_addrs,
2674 .user = OCP_USER_MPU | OCP_USER_SDMA,
2677 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs[] = {
2679 .pa_start = 0x49040000,
2680 .pa_end = 0x49040000 + SZ_1K - 1,
2681 .flags = ADDR_TYPE_RT
2686 /* l4_per -> timer9 */
2687 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9 = {
2688 .master = &omap3xxx_l4_per_hwmod,
2689 .slave = &omap3xxx_timer9_hwmod,
2691 .addr = omap3xxx_timer9_addrs,
2692 .user = OCP_USER_MPU | OCP_USER_SDMA,
2695 /* l4_core -> timer10 */
2696 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10 = {
2697 .master = &omap3xxx_l4_core_hwmod,
2698 .slave = &omap3xxx_timer10_hwmod,
2700 .addr = omap2_timer10_addrs,
2701 .user = OCP_USER_MPU | OCP_USER_SDMA,
2704 /* l4_core -> timer11 */
2705 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11 = {
2706 .master = &omap3xxx_l4_core_hwmod,
2707 .slave = &omap3xxx_timer11_hwmod,
2709 .addr = omap2_timer11_addrs,
2710 .user = OCP_USER_MPU | OCP_USER_SDMA,
2713 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs[] = {
2715 .pa_start = 0x48304000,
2716 .pa_end = 0x48304000 + SZ_1K - 1,
2717 .flags = ADDR_TYPE_RT
2722 /* l4_core -> timer12 */
2723 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12 = {
2724 .master = &omap3xxx_l4_sec_hwmod,
2725 .slave = &omap3xxx_timer12_hwmod,
2727 .addr = omap3xxx_timer12_addrs,
2728 .user = OCP_USER_MPU | OCP_USER_SDMA,
2731 /* l4_wkup -> wd_timer2 */
2732 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs[] = {
2734 .pa_start = 0x48314000,
2735 .pa_end = 0x4831407f,
2736 .flags = ADDR_TYPE_RT
2741 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2 = {
2742 .master = &omap3xxx_l4_wkup_hwmod,
2743 .slave = &omap3xxx_wd_timer2_hwmod,
2745 .addr = omap3xxx_wd_timer2_addrs,
2746 .user = OCP_USER_MPU | OCP_USER_SDMA,
2749 /* l4_core -> dss */
2750 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss = {
2751 .master = &omap3xxx_l4_core_hwmod,
2752 .slave = &omap3430es1_dss_core_hwmod,
2754 .addr = omap2_dss_addrs,
2757 .l4_fw_region = OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION,
2758 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2759 .flags = OMAP_FIREWALL_L4,
2762 .user = OCP_USER_MPU | OCP_USER_SDMA,
2765 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss = {
2766 .master = &omap3xxx_l4_core_hwmod,
2767 .slave = &omap3xxx_dss_core_hwmod,
2769 .addr = omap2_dss_addrs,
2772 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_CORE_REGION,
2773 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2774 .flags = OMAP_FIREWALL_L4,
2777 .user = OCP_USER_MPU | OCP_USER_SDMA,
2780 /* l4_core -> dss_dispc */
2781 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc = {
2782 .master = &omap3xxx_l4_core_hwmod,
2783 .slave = &omap3xxx_dss_dispc_hwmod,
2785 .addr = omap2_dss_dispc_addrs,
2788 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DISPC_REGION,
2789 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2790 .flags = OMAP_FIREWALL_L4,
2793 .user = OCP_USER_MPU | OCP_USER_SDMA,
2796 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs[] = {
2798 .pa_start = 0x4804FC00,
2799 .pa_end = 0x4804FFFF,
2800 .flags = ADDR_TYPE_RT
2805 /* l4_core -> dss_dsi1 */
2806 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1 = {
2807 .master = &omap3xxx_l4_core_hwmod,
2808 .slave = &omap3xxx_dss_dsi1_hwmod,
2810 .addr = omap3xxx_dss_dsi1_addrs,
2813 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DSI_REGION,
2814 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2815 .flags = OMAP_FIREWALL_L4,
2818 .user = OCP_USER_MPU | OCP_USER_SDMA,
2821 /* l4_core -> dss_rfbi */
2822 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi = {
2823 .master = &omap3xxx_l4_core_hwmod,
2824 .slave = &omap3xxx_dss_rfbi_hwmod,
2826 .addr = omap2_dss_rfbi_addrs,
2829 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_RFBI_REGION,
2830 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP ,
2831 .flags = OMAP_FIREWALL_L4,
2834 .user = OCP_USER_MPU | OCP_USER_SDMA,
2837 /* l4_core -> dss_venc */
2838 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc = {
2839 .master = &omap3xxx_l4_core_hwmod,
2840 .slave = &omap3xxx_dss_venc_hwmod,
2842 .addr = omap2_dss_venc_addrs,
2845 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_VENC_REGION,
2846 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
2847 .flags = OMAP_FIREWALL_L4,
2850 .flags = OCPIF_SWSUP_IDLE,
2851 .user = OCP_USER_MPU | OCP_USER_SDMA,
2854 /* l4_wkup -> gpio1 */
2855 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs[] = {
2857 .pa_start = 0x48310000,
2858 .pa_end = 0x483101ff,
2859 .flags = ADDR_TYPE_RT
2864 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1 = {
2865 .master = &omap3xxx_l4_wkup_hwmod,
2866 .slave = &omap3xxx_gpio1_hwmod,
2867 .addr = omap3xxx_gpio1_addrs,
2868 .user = OCP_USER_MPU | OCP_USER_SDMA,
2871 /* l4_per -> gpio2 */
2872 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs[] = {
2874 .pa_start = 0x49050000,
2875 .pa_end = 0x490501ff,
2876 .flags = ADDR_TYPE_RT
2881 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2 = {
2882 .master = &omap3xxx_l4_per_hwmod,
2883 .slave = &omap3xxx_gpio2_hwmod,
2884 .addr = omap3xxx_gpio2_addrs,
2885 .user = OCP_USER_MPU | OCP_USER_SDMA,
2888 /* l4_per -> gpio3 */
2889 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs[] = {
2891 .pa_start = 0x49052000,
2892 .pa_end = 0x490521ff,
2893 .flags = ADDR_TYPE_RT
2898 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3 = {
2899 .master = &omap3xxx_l4_per_hwmod,
2900 .slave = &omap3xxx_gpio3_hwmod,
2901 .addr = omap3xxx_gpio3_addrs,
2902 .user = OCP_USER_MPU | OCP_USER_SDMA,
2907 * The memory management unit performs virtual to physical address translation
2908 * for its requestors.
2911 static struct omap_hwmod_class_sysconfig mmu_sysc = {
2915 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2916 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2917 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2918 .sysc_fields = &omap_hwmod_sysc_type1,
2921 static struct omap_hwmod_class omap3xxx_mmu_hwmod_class = {
2928 static struct omap_mmu_dev_attr mmu_isp_dev_attr = {
2930 .da_end = 0xfffff000,
2931 .nr_tlb_entries = 8,
2934 static struct omap_hwmod omap3xxx_mmu_isp_hwmod;
2935 static struct omap_hwmod_irq_info omap3xxx_mmu_isp_irqs[] = {
2940 static struct omap_hwmod_addr_space omap3xxx_mmu_isp_addrs[] = {
2942 .pa_start = 0x480bd400,
2943 .pa_end = 0x480bd47f,
2944 .flags = ADDR_TYPE_RT,
2949 /* l4_core -> mmu isp */
2950 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmu_isp = {
2951 .master = &omap3xxx_l4_core_hwmod,
2952 .slave = &omap3xxx_mmu_isp_hwmod,
2953 .addr = omap3xxx_mmu_isp_addrs,
2954 .user = OCP_USER_MPU | OCP_USER_SDMA,
2957 static struct omap_hwmod omap3xxx_mmu_isp_hwmod = {
2959 .class = &omap3xxx_mmu_hwmod_class,
2960 .mpu_irqs = omap3xxx_mmu_isp_irqs,
2961 .main_clk = "cam_ick",
2962 .dev_attr = &mmu_isp_dev_attr,
2963 .flags = HWMOD_NO_IDLEST,
2966 #ifdef CONFIG_OMAP_IOMMU_IVA2
2970 static struct omap_mmu_dev_attr mmu_iva_dev_attr = {
2971 .da_start = 0x11000000,
2972 .da_end = 0xfffff000,
2973 .nr_tlb_entries = 32,
2976 static struct omap_hwmod omap3xxx_mmu_iva_hwmod;
2977 static struct omap_hwmod_irq_info omap3xxx_mmu_iva_irqs[] = {
2982 static struct omap_hwmod_rst_info omap3xxx_mmu_iva_resets[] = {
2983 { .name = "mmu", .rst_shift = 1, .st_shift = 9 },
2986 static struct omap_hwmod_addr_space omap3xxx_mmu_iva_addrs[] = {
2988 .pa_start = 0x5d000000,
2989 .pa_end = 0x5d00007f,
2990 .flags = ADDR_TYPE_RT,
2995 /* l3_main -> iva mmu */
2996 static struct omap_hwmod_ocp_if omap3xxx_l3_main__mmu_iva = {
2997 .master = &omap3xxx_l3_main_hwmod,
2998 .slave = &omap3xxx_mmu_iva_hwmod,
2999 .addr = omap3xxx_mmu_iva_addrs,
3000 .user = OCP_USER_MPU | OCP_USER_SDMA,
3003 static struct omap_hwmod omap3xxx_mmu_iva_hwmod = {
3005 .class = &omap3xxx_mmu_hwmod_class,
3006 .mpu_irqs = omap3xxx_mmu_iva_irqs,
3007 .rst_lines = omap3xxx_mmu_iva_resets,
3008 .rst_lines_cnt = ARRAY_SIZE(omap3xxx_mmu_iva_resets),
3009 .main_clk = "iva2_ck",
3012 .module_offs = OMAP3430_IVA2_MOD,
3015 .dev_attr = &mmu_iva_dev_attr,
3016 .flags = HWMOD_NO_IDLEST,
3021 /* l4_per -> gpio4 */
3022 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs[] = {
3024 .pa_start = 0x49054000,
3025 .pa_end = 0x490541ff,
3026 .flags = ADDR_TYPE_RT
3031 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4 = {
3032 .master = &omap3xxx_l4_per_hwmod,
3033 .slave = &omap3xxx_gpio4_hwmod,
3034 .addr = omap3xxx_gpio4_addrs,
3035 .user = OCP_USER_MPU | OCP_USER_SDMA,
3038 /* l4_per -> gpio5 */
3039 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs[] = {
3041 .pa_start = 0x49056000,
3042 .pa_end = 0x490561ff,
3043 .flags = ADDR_TYPE_RT
3048 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5 = {
3049 .master = &omap3xxx_l4_per_hwmod,
3050 .slave = &omap3xxx_gpio5_hwmod,
3051 .addr = omap3xxx_gpio5_addrs,
3052 .user = OCP_USER_MPU | OCP_USER_SDMA,
3055 /* l4_per -> gpio6 */
3056 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs[] = {
3058 .pa_start = 0x49058000,
3059 .pa_end = 0x490581ff,
3060 .flags = ADDR_TYPE_RT
3065 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6 = {
3066 .master = &omap3xxx_l4_per_hwmod,
3067 .slave = &omap3xxx_gpio6_hwmod,
3068 .addr = omap3xxx_gpio6_addrs,
3069 .user = OCP_USER_MPU | OCP_USER_SDMA,
3072 /* dma_system -> L3 */
3073 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3 = {
3074 .master = &omap3xxx_dma_system_hwmod,
3075 .slave = &omap3xxx_l3_main_hwmod,
3076 .clk = "core_l3_ick",
3077 .user = OCP_USER_MPU | OCP_USER_SDMA,
3080 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs[] = {
3082 .pa_start = 0x48056000,
3083 .pa_end = 0x48056fff,
3084 .flags = ADDR_TYPE_RT
3089 /* l4_cfg -> dma_system */
3090 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system = {
3091 .master = &omap3xxx_l4_core_hwmod,
3092 .slave = &omap3xxx_dma_system_hwmod,
3093 .clk = "core_l4_ick",
3094 .addr = omap3xxx_dma_system_addrs,
3095 .user = OCP_USER_MPU | OCP_USER_SDMA,
3098 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs[] = {
3101 .pa_start = 0x48074000,
3102 .pa_end = 0x480740ff,
3103 .flags = ADDR_TYPE_RT
3108 /* l4_core -> mcbsp1 */
3109 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1 = {
3110 .master = &omap3xxx_l4_core_hwmod,
3111 .slave = &omap3xxx_mcbsp1_hwmod,
3112 .clk = "mcbsp1_ick",
3113 .addr = omap3xxx_mcbsp1_addrs,
3114 .user = OCP_USER_MPU | OCP_USER_SDMA,
3117 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs[] = {
3120 .pa_start = 0x49022000,
3121 .pa_end = 0x490220ff,
3122 .flags = ADDR_TYPE_RT
3127 /* l4_per -> mcbsp2 */
3128 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2 = {
3129 .master = &omap3xxx_l4_per_hwmod,
3130 .slave = &omap3xxx_mcbsp2_hwmod,
3131 .clk = "mcbsp2_ick",
3132 .addr = omap3xxx_mcbsp2_addrs,
3133 .user = OCP_USER_MPU | OCP_USER_SDMA,
3136 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs[] = {
3139 .pa_start = 0x49024000,
3140 .pa_end = 0x490240ff,
3141 .flags = ADDR_TYPE_RT
3146 /* l4_per -> mcbsp3 */
3147 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3 = {
3148 .master = &omap3xxx_l4_per_hwmod,
3149 .slave = &omap3xxx_mcbsp3_hwmod,
3150 .clk = "mcbsp3_ick",
3151 .addr = omap3xxx_mcbsp3_addrs,
3152 .user = OCP_USER_MPU | OCP_USER_SDMA,
3155 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs[] = {
3158 .pa_start = 0x49026000,
3159 .pa_end = 0x490260ff,
3160 .flags = ADDR_TYPE_RT
3165 /* l4_per -> mcbsp4 */
3166 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4 = {
3167 .master = &omap3xxx_l4_per_hwmod,
3168 .slave = &omap3xxx_mcbsp4_hwmod,
3169 .clk = "mcbsp4_ick",
3170 .addr = omap3xxx_mcbsp4_addrs,
3171 .user = OCP_USER_MPU | OCP_USER_SDMA,
3174 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs[] = {
3177 .pa_start = 0x48096000,
3178 .pa_end = 0x480960ff,
3179 .flags = ADDR_TYPE_RT
3184 /* l4_core -> mcbsp5 */
3185 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5 = {
3186 .master = &omap3xxx_l4_core_hwmod,
3187 .slave = &omap3xxx_mcbsp5_hwmod,
3188 .clk = "mcbsp5_ick",
3189 .addr = omap3xxx_mcbsp5_addrs,
3190 .user = OCP_USER_MPU | OCP_USER_SDMA,
3193 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs[] = {
3196 .pa_start = 0x49028000,
3197 .pa_end = 0x490280ff,
3198 .flags = ADDR_TYPE_RT
3203 /* l4_per -> mcbsp2_sidetone */
3204 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone = {
3205 .master = &omap3xxx_l4_per_hwmod,
3206 .slave = &omap3xxx_mcbsp2_sidetone_hwmod,
3207 .clk = "mcbsp2_ick",
3208 .addr = omap3xxx_mcbsp2_sidetone_addrs,
3209 .user = OCP_USER_MPU,
3212 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs[] = {
3215 .pa_start = 0x4902A000,
3216 .pa_end = 0x4902A0ff,
3217 .flags = ADDR_TYPE_RT
3222 /* l4_per -> mcbsp3_sidetone */
3223 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = {
3224 .master = &omap3xxx_l4_per_hwmod,
3225 .slave = &omap3xxx_mcbsp3_sidetone_hwmod,
3226 .clk = "mcbsp3_ick",
3227 .addr = omap3xxx_mcbsp3_sidetone_addrs,
3228 .user = OCP_USER_MPU,
3231 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = {
3233 .pa_start = 0x48094000,
3234 .pa_end = 0x480941ff,
3235 .flags = ADDR_TYPE_RT,
3240 /* l4_core -> mailbox */
3241 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = {
3242 .master = &omap3xxx_l4_core_hwmod,
3243 .slave = &omap3xxx_mailbox_hwmod,
3244 .addr = omap3xxx_mailbox_addrs,
3245 .user = OCP_USER_MPU | OCP_USER_SDMA,
3248 /* l4 core -> mcspi1 interface */
3249 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1 = {
3250 .master = &omap3xxx_l4_core_hwmod,
3251 .slave = &omap34xx_mcspi1,
3252 .clk = "mcspi1_ick",
3253 .addr = omap2_mcspi1_addr_space,
3254 .user = OCP_USER_MPU | OCP_USER_SDMA,
3257 /* l4 core -> mcspi2 interface */
3258 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2 = {
3259 .master = &omap3xxx_l4_core_hwmod,
3260 .slave = &omap34xx_mcspi2,
3261 .clk = "mcspi2_ick",
3262 .addr = omap2_mcspi2_addr_space,
3263 .user = OCP_USER_MPU | OCP_USER_SDMA,
3266 /* l4 core -> mcspi3 interface */
3267 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3 = {
3268 .master = &omap3xxx_l4_core_hwmod,
3269 .slave = &omap34xx_mcspi3,
3270 .clk = "mcspi3_ick",
3271 .addr = omap2430_mcspi3_addr_space,
3272 .user = OCP_USER_MPU | OCP_USER_SDMA,
3275 /* l4 core -> mcspi4 interface */
3276 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space[] = {
3278 .pa_start = 0x480ba000,
3279 .pa_end = 0x480ba0ff,
3280 .flags = ADDR_TYPE_RT,
3285 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4 = {
3286 .master = &omap3xxx_l4_core_hwmod,
3287 .slave = &omap34xx_mcspi4,
3288 .clk = "mcspi4_ick",
3289 .addr = omap34xx_mcspi4_addr_space,
3290 .user = OCP_USER_MPU | OCP_USER_SDMA,
3293 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2 = {
3294 .master = &omap3xxx_usb_host_hs_hwmod,
3295 .slave = &omap3xxx_l3_main_hwmod,
3296 .clk = "core_l3_ick",
3297 .user = OCP_USER_MPU,
3300 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs[] = {
3303 .pa_start = 0x48064000,
3304 .pa_end = 0x480643ff,
3305 .flags = ADDR_TYPE_RT
3309 .pa_start = 0x48064400,
3310 .pa_end = 0x480647ff,
3314 .pa_start = 0x48064800,
3315 .pa_end = 0x48064cff,
3320 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs = {
3321 .master = &omap3xxx_l4_core_hwmod,
3322 .slave = &omap3xxx_usb_host_hs_hwmod,
3323 .clk = "usbhost_ick",
3324 .addr = omap3xxx_usb_host_hs_addrs,
3325 .user = OCP_USER_MPU | OCP_USER_SDMA,
3328 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs[] = {
3331 .pa_start = 0x48062000,
3332 .pa_end = 0x48062fff,
3333 .flags = ADDR_TYPE_RT
3338 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs = {
3339 .master = &omap3xxx_l4_core_hwmod,
3340 .slave = &omap3xxx_usb_tll_hs_hwmod,
3341 .clk = "usbtll_ick",
3342 .addr = omap3xxx_usb_tll_hs_addrs,
3343 .user = OCP_USER_MPU | OCP_USER_SDMA,
3346 /* l4_core -> hdq1w interface */
3347 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w = {
3348 .master = &omap3xxx_l4_core_hwmod,
3349 .slave = &omap3xxx_hdq1w_hwmod,
3351 .addr = omap2_hdq1w_addr_space,
3352 .user = OCP_USER_MPU | OCP_USER_SDMA,
3353 .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE,
3356 /* l4_wkup -> 32ksync_counter */
3357 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs[] = {
3359 .pa_start = 0x48320000,
3360 .pa_end = 0x4832001f,
3361 .flags = ADDR_TYPE_RT
3366 static struct omap_hwmod_addr_space omap3xxx_gpmc_addrs[] = {
3368 .pa_start = 0x6e000000,
3369 .pa_end = 0x6e000fff,
3370 .flags = ADDR_TYPE_RT
3375 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k = {
3376 .master = &omap3xxx_l4_wkup_hwmod,
3377 .slave = &omap3xxx_counter_32k_hwmod,
3378 .clk = "omap_32ksync_ick",
3379 .addr = omap3xxx_counter_32k_addrs,
3380 .user = OCP_USER_MPU | OCP_USER_SDMA,
3383 /* am35xx has Davinci MDIO & EMAC */
3384 static struct omap_hwmod_class am35xx_mdio_class = {
3385 .name = "davinci_mdio",
3388 static struct omap_hwmod am35xx_mdio_hwmod = {
3389 .name = "davinci_mdio",
3390 .class = &am35xx_mdio_class,
3391 .flags = HWMOD_NO_IDLEST,
3395 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3396 * but this will probably require some additional hwmod core support,
3397 * so is left as a future to-do item.
3399 static struct omap_hwmod_ocp_if am35xx_mdio__l3 = {
3400 .master = &am35xx_mdio_hwmod,
3401 .slave = &omap3xxx_l3_main_hwmod,
3403 .user = OCP_USER_MPU,
3406 static struct omap_hwmod_addr_space am35xx_mdio_addrs[] = {
3408 .pa_start = AM35XX_IPSS_MDIO_BASE,
3409 .pa_end = AM35XX_IPSS_MDIO_BASE + SZ_4K - 1,
3410 .flags = ADDR_TYPE_RT,
3415 /* l4_core -> davinci mdio */
3417 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3418 * but this will probably require some additional hwmod core support,
3419 * so is left as a future to-do item.
3421 static struct omap_hwmod_ocp_if am35xx_l4_core__mdio = {
3422 .master = &omap3xxx_l4_core_hwmod,
3423 .slave = &am35xx_mdio_hwmod,
3425 .addr = am35xx_mdio_addrs,
3426 .user = OCP_USER_MPU,
3429 static struct omap_hwmod_irq_info am35xx_emac_mpu_irqs[] = {
3430 { .name = "rxthresh", .irq = 67 + OMAP_INTC_START, },
3431 { .name = "rx_pulse", .irq = 68 + OMAP_INTC_START, },
3432 { .name = "tx_pulse", .irq = 69 + OMAP_INTC_START },
3433 { .name = "misc_pulse", .irq = 70 + OMAP_INTC_START },
3437 static struct omap_hwmod_class am35xx_emac_class = {
3438 .name = "davinci_emac",
3441 static struct omap_hwmod am35xx_emac_hwmod = {
3442 .name = "davinci_emac",
3443 .mpu_irqs = am35xx_emac_mpu_irqs,
3444 .class = &am35xx_emac_class,
3445 .flags = HWMOD_NO_IDLEST,
3448 /* l3_core -> davinci emac interface */
3450 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3451 * but this will probably require some additional hwmod core support,
3452 * so is left as a future to-do item.
3454 static struct omap_hwmod_ocp_if am35xx_emac__l3 = {
3455 .master = &am35xx_emac_hwmod,
3456 .slave = &omap3xxx_l3_main_hwmod,
3458 .user = OCP_USER_MPU,
3461 static struct omap_hwmod_addr_space am35xx_emac_addrs[] = {
3463 .pa_start = AM35XX_IPSS_EMAC_BASE,
3464 .pa_end = AM35XX_IPSS_EMAC_BASE + 0x30000 - 1,
3465 .flags = ADDR_TYPE_RT,
3470 /* l4_core -> davinci emac */
3472 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3473 * but this will probably require some additional hwmod core support,
3474 * so is left as a future to-do item.
3476 static struct omap_hwmod_ocp_if am35xx_l4_core__emac = {
3477 .master = &omap3xxx_l4_core_hwmod,
3478 .slave = &am35xx_emac_hwmod,
3480 .addr = am35xx_emac_addrs,
3481 .user = OCP_USER_MPU,
3484 static struct omap_hwmod_ocp_if omap3xxx_l3_main__gpmc = {
3485 .master = &omap3xxx_l3_main_hwmod,
3486 .slave = &omap3xxx_gpmc_hwmod,
3487 .clk = "core_l3_ick",
3488 .addr = omap3xxx_gpmc_addrs,
3489 .user = OCP_USER_MPU | OCP_USER_SDMA,
3492 static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
3493 &omap3xxx_l3_main__l4_core,
3494 &omap3xxx_l3_main__l4_per,
3495 &omap3xxx_mpu__l3_main,
3496 &omap3xxx_l4_core__l4_wkup,
3497 &omap3xxx_l4_core__mmc3,
3498 &omap3_l4_core__uart1,
3499 &omap3_l4_core__uart2,
3500 &omap3_l4_per__uart3,
3501 &omap3_l4_core__i2c1,
3502 &omap3_l4_core__i2c2,
3503 &omap3_l4_core__i2c3,
3504 &omap3xxx_l4_wkup__l4_sec,
3505 &omap3xxx_l4_wkup__timer1,
3506 &omap3xxx_l4_per__timer2,
3507 &omap3xxx_l4_per__timer3,
3508 &omap3xxx_l4_per__timer4,
3509 &omap3xxx_l4_per__timer5,
3510 &omap3xxx_l4_per__timer6,
3511 &omap3xxx_l4_per__timer7,
3512 &omap3xxx_l4_per__timer8,
3513 &omap3xxx_l4_per__timer9,
3514 &omap3xxx_l4_core__timer10,
3515 &omap3xxx_l4_core__timer11,
3516 &omap3xxx_l4_wkup__wd_timer2,
3517 &omap3xxx_l4_wkup__gpio1,
3518 &omap3xxx_l4_per__gpio2,
3519 &omap3xxx_l4_per__gpio3,
3520 &omap3xxx_l4_per__gpio4,
3521 &omap3xxx_l4_per__gpio5,
3522 &omap3xxx_l4_per__gpio6,
3523 &omap3xxx_dma_system__l3,
3524 &omap3xxx_l4_core__dma_system,
3525 &omap3xxx_l4_core__mcbsp1,
3526 &omap3xxx_l4_per__mcbsp2,
3527 &omap3xxx_l4_per__mcbsp3,
3528 &omap3xxx_l4_per__mcbsp4,
3529 &omap3xxx_l4_core__mcbsp5,
3530 &omap3xxx_l4_per__mcbsp2_sidetone,
3531 &omap3xxx_l4_per__mcbsp3_sidetone,
3532 &omap34xx_l4_core__mcspi1,
3533 &omap34xx_l4_core__mcspi2,
3534 &omap34xx_l4_core__mcspi3,
3535 &omap34xx_l4_core__mcspi4,
3536 &omap3xxx_l4_wkup__counter_32k,
3537 &omap3xxx_l3_main__gpmc,
3541 /* GP-only hwmod links */
3542 static struct omap_hwmod_ocp_if *omap3xxx_gp_hwmod_ocp_ifs[] __initdata = {
3543 &omap3xxx_l4_sec__timer12,
3547 /* 3430ES1-only hwmod links */
3548 static struct omap_hwmod_ocp_if *omap3430es1_hwmod_ocp_ifs[] __initdata = {
3549 &omap3430es1_dss__l3,
3550 &omap3430es1_l4_core__dss,
3554 /* 3430ES2+-only hwmod links */
3555 static struct omap_hwmod_ocp_if *omap3430es2plus_hwmod_ocp_ifs[] __initdata = {
3557 &omap3xxx_l4_core__dss,
3558 &omap3xxx_usbhsotg__l3,
3559 &omap3xxx_l4_core__usbhsotg,
3560 &omap3xxx_usb_host_hs__l3_main_2,
3561 &omap3xxx_l4_core__usb_host_hs,
3562 &omap3xxx_l4_core__usb_tll_hs,
3566 /* <= 3430ES3-only hwmod links */
3567 static struct omap_hwmod_ocp_if *omap3430_pre_es3_hwmod_ocp_ifs[] __initdata = {
3568 &omap3xxx_l4_core__pre_es3_mmc1,
3569 &omap3xxx_l4_core__pre_es3_mmc2,
3573 /* 3430ES3+-only hwmod links */
3574 static struct omap_hwmod_ocp_if *omap3430_es3plus_hwmod_ocp_ifs[] __initdata = {
3575 &omap3xxx_l4_core__es3plus_mmc1,
3576 &omap3xxx_l4_core__es3plus_mmc2,
3580 /* 34xx-only hwmod links (all ES revisions) */
3581 static struct omap_hwmod_ocp_if *omap34xx_hwmod_ocp_ifs[] __initdata = {
3583 &omap34xx_l4_core__sr1,
3584 &omap34xx_l4_core__sr2,
3585 &omap3xxx_l4_core__mailbox,
3586 &omap3xxx_l4_core__hdq1w,
3587 &omap3xxx_sad2d__l3,
3588 &omap3xxx_l4_core__mmu_isp,
3589 #ifdef CONFIG_OMAP_IOMMU_IVA2
3590 &omap3xxx_l3_main__mmu_iva,
3595 /* 36xx-only hwmod links (all ES revisions) */
3596 static struct omap_hwmod_ocp_if *omap36xx_hwmod_ocp_ifs[] __initdata = {
3598 &omap36xx_l4_per__uart4,
3600 &omap3xxx_l4_core__dss,
3601 &omap36xx_l4_core__sr1,
3602 &omap36xx_l4_core__sr2,
3603 &omap3xxx_usbhsotg__l3,
3604 &omap3xxx_l4_core__usbhsotg,
3605 &omap3xxx_l4_core__mailbox,
3606 &omap3xxx_usb_host_hs__l3_main_2,
3607 &omap3xxx_l4_core__usb_host_hs,
3608 &omap3xxx_l4_core__usb_tll_hs,
3609 &omap3xxx_l4_core__es3plus_mmc1,
3610 &omap3xxx_l4_core__es3plus_mmc2,
3611 &omap3xxx_l4_core__hdq1w,
3612 &omap3xxx_sad2d__l3,
3613 &omap3xxx_l4_core__mmu_isp,
3614 #ifdef CONFIG_OMAP_IOMMU_IVA2
3615 &omap3xxx_l3_main__mmu_iva,
3620 static struct omap_hwmod_ocp_if *am35xx_hwmod_ocp_ifs[] __initdata = {
3622 &omap3xxx_l4_core__dss,
3623 &am35xx_usbhsotg__l3,
3624 &am35xx_l4_core__usbhsotg,
3625 &am35xx_l4_core__uart4,
3626 &omap3xxx_usb_host_hs__l3_main_2,
3627 &omap3xxx_l4_core__usb_host_hs,
3628 &omap3xxx_l4_core__usb_tll_hs,
3629 &omap3xxx_l4_core__es3plus_mmc1,
3630 &omap3xxx_l4_core__es3plus_mmc2,
3632 &am35xx_l4_core__mdio,
3634 &am35xx_l4_core__emac,
3638 static struct omap_hwmod_ocp_if *omap3xxx_dss_hwmod_ocp_ifs[] __initdata = {
3639 &omap3xxx_l4_core__dss_dispc,
3640 &omap3xxx_l4_core__dss_dsi1,
3641 &omap3xxx_l4_core__dss_rfbi,
3642 &omap3xxx_l4_core__dss_venc,
3646 int __init omap3xxx_hwmod_init(void)
3649 struct omap_hwmod_ocp_if **h = NULL;
3654 /* Register hwmod links common to all OMAP3 */
3655 r = omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs);
3659 /* Register GP-only hwmod links. */
3660 if (omap_type() == OMAP2_DEVICE_TYPE_GP) {
3661 r = omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs);
3669 * Register hwmod links common to individual OMAP3 families, all
3670 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3671 * All possible revisions should be included in this conditional.
3673 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3674 rev == OMAP3430_REV_ES2_1 || rev == OMAP3430_REV_ES3_0 ||
3675 rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) {
3676 h = omap34xx_hwmod_ocp_ifs;
3677 } else if (rev == AM35XX_REV_ES1_0 || rev == AM35XX_REV_ES1_1) {
3678 h = am35xx_hwmod_ocp_ifs;
3679 } else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 ||
3680 rev == OMAP3630_REV_ES1_2) {
3681 h = omap36xx_hwmod_ocp_ifs;
3683 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3687 r = omap_hwmod_register_links(h);
3692 * Register hwmod links specific to certain ES levels of a
3693 * particular family of silicon (e.g., 34xx ES1.0)
3696 if (rev == OMAP3430_REV_ES1_0) {
3697 h = omap3430es1_hwmod_ocp_ifs;
3698 } else if (rev == OMAP3430_REV_ES2_0 || rev == OMAP3430_REV_ES2_1 ||
3699 rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3700 rev == OMAP3430_REV_ES3_1_2) {
3701 h = omap3430es2plus_hwmod_ocp_ifs;
3705 r = omap_hwmod_register_links(h);
3711 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3712 rev == OMAP3430_REV_ES2_1) {
3713 h = omap3430_pre_es3_hwmod_ocp_ifs;
3714 } else if (rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3715 rev == OMAP3430_REV_ES3_1_2) {
3716 h = omap3430_es3plus_hwmod_ocp_ifs;
3720 r = omap_hwmod_register_links(h);
3725 * DSS code presumes that dss_core hwmod is handled first,
3726 * _before_ any other DSS related hwmods so register common
3727 * DSS hwmod links last to ensure that dss_core is already
3728 * registered. Otherwise some change things may happen, for
3729 * ex. if dispc is handled before dss_core and DSS is enabled
3730 * in bootloader DISPC will be reset with outputs enabled
3731 * which sometimes leads to unrecoverable L3 error. XXX The
3732 * long-term fix to this is to ensure hwmods are set up in
3733 * dependency order in the hwmod core code.
3735 r = omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs);