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
18 #include <linux/i2c-omap.h>
19 #include <linux/power/smartreflex.h>
20 #include <linux/platform_data/gpio-omap.h>
21 #include <linux/platform_data/hsmmc-omap.h>
23 #include <linux/omap-dma.h>
26 #include <linux/platform_data/asoc-ti-mcbsp.h>
27 #include <linux/platform_data/spi-omap2-mcspi.h>
28 #include <plat/dmtimer.h>
31 #include "omap_hwmod.h"
32 #include "omap_hwmod_common_data.h"
33 #include "prm-regbits-34xx.h"
34 #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
49 #define AM35XX_IPSS_USBOTGSS_BASE 0x5C040000
56 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs
[] = {
57 { .irq
= 9 + OMAP_INTC_START
, },
58 { .irq
= 10 + OMAP_INTC_START
, },
62 static struct omap_hwmod omap3xxx_l3_main_hwmod
= {
64 .class = &l3_hwmod_class
,
65 .mpu_irqs
= omap3xxx_l3_main_irqs
,
66 .flags
= HWMOD_NO_IDLEST
,
70 static struct omap_hwmod omap3xxx_l4_core_hwmod
= {
72 .class = &l4_hwmod_class
,
73 .flags
= HWMOD_NO_IDLEST
,
77 static struct omap_hwmod omap3xxx_l4_per_hwmod
= {
79 .class = &l4_hwmod_class
,
80 .flags
= HWMOD_NO_IDLEST
,
84 static struct omap_hwmod omap3xxx_l4_wkup_hwmod
= {
86 .class = &l4_hwmod_class
,
87 .flags
= HWMOD_NO_IDLEST
,
91 static struct omap_hwmod omap3xxx_l4_sec_hwmod
= {
93 .class = &l4_hwmod_class
,
94 .flags
= HWMOD_NO_IDLEST
,
98 static struct omap_hwmod_irq_info omap3xxx_mpu_irqs
[] = {
99 { .name
= "pmu", .irq
= 3 + OMAP_INTC_START
},
103 static struct omap_hwmod omap3xxx_mpu_hwmod
= {
105 .mpu_irqs
= omap3xxx_mpu_irqs
,
106 .class = &mpu_hwmod_class
,
107 .main_clk
= "arm_fck",
111 static struct omap_hwmod_rst_info omap3xxx_iva_resets
[] = {
112 { .name
= "logic", .rst_shift
= 0, .st_shift
= 8 },
113 { .name
= "seq0", .rst_shift
= 1, .st_shift
= 9 },
114 { .name
= "seq1", .rst_shift
= 2, .st_shift
= 10 },
117 static struct omap_hwmod omap3xxx_iva_hwmod
= {
119 .class = &iva_hwmod_class
,
120 .clkdm_name
= "iva2_clkdm",
121 .rst_lines
= omap3xxx_iva_resets
,
122 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_iva_resets
),
123 .main_clk
= "iva2_ck",
126 .module_offs
= OMAP3430_IVA2_MOD
,
128 .module_bit
= OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT
,
130 .idlest_idle_bit
= OMAP3430_ST_IVA2_SHIFT
,
137 * debug and emulation sub system
140 static struct omap_hwmod_class omap3xxx_debugss_hwmod_class
= {
145 static struct omap_hwmod omap3xxx_debugss_hwmod
= {
147 .class = &omap3xxx_debugss_hwmod_class
,
148 .clkdm_name
= "emu_clkdm",
149 .main_clk
= "emu_src_ck",
150 .flags
= HWMOD_NO_IDLEST
,
154 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc
= {
158 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
159 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
160 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
161 SYSS_HAS_RESET_STATUS
),
162 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
163 .clockact
= CLOCKACT_TEST_ICLK
,
164 .sysc_fields
= &omap_hwmod_sysc_type1
,
167 static struct omap_hwmod_class omap3xxx_timer_hwmod_class
= {
169 .sysc
= &omap3xxx_timer_sysc
,
172 /* secure timers dev attribute */
173 static struct omap_timer_capability_dev_attr capability_secure_dev_attr
= {
174 .timer_capability
= OMAP_TIMER_ALWON
| OMAP_TIMER_SECURE
,
177 /* always-on timers dev attribute */
178 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
179 .timer_capability
= OMAP_TIMER_ALWON
,
182 /* pwm timers dev attribute */
183 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
184 .timer_capability
= OMAP_TIMER_HAS_PWM
,
187 /* timers with DSP interrupt dev attribute */
188 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr
= {
189 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
,
192 /* pwm timers with DSP interrupt dev attribute */
193 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr
= {
194 .timer_capability
= OMAP_TIMER_HAS_DSP_IRQ
| OMAP_TIMER_HAS_PWM
,
198 static struct omap_hwmod omap3xxx_timer1_hwmod
= {
200 .mpu_irqs
= omap2_timer1_mpu_irqs
,
201 .main_clk
= "gpt1_fck",
205 .module_bit
= OMAP3430_EN_GPT1_SHIFT
,
206 .module_offs
= WKUP_MOD
,
208 .idlest_idle_bit
= OMAP3430_ST_GPT1_SHIFT
,
211 .dev_attr
= &capability_alwon_dev_attr
,
212 .class = &omap3xxx_timer_hwmod_class
,
213 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
217 static struct omap_hwmod omap3xxx_timer2_hwmod
= {
219 .mpu_irqs
= omap2_timer2_mpu_irqs
,
220 .main_clk
= "gpt2_fck",
224 .module_bit
= OMAP3430_EN_GPT2_SHIFT
,
225 .module_offs
= OMAP3430_PER_MOD
,
227 .idlest_idle_bit
= OMAP3430_ST_GPT2_SHIFT
,
230 .class = &omap3xxx_timer_hwmod_class
,
231 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
235 static struct omap_hwmod omap3xxx_timer3_hwmod
= {
237 .mpu_irqs
= omap2_timer3_mpu_irqs
,
238 .main_clk
= "gpt3_fck",
242 .module_bit
= OMAP3430_EN_GPT3_SHIFT
,
243 .module_offs
= OMAP3430_PER_MOD
,
245 .idlest_idle_bit
= OMAP3430_ST_GPT3_SHIFT
,
248 .class = &omap3xxx_timer_hwmod_class
,
249 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
253 static struct omap_hwmod omap3xxx_timer4_hwmod
= {
255 .mpu_irqs
= omap2_timer4_mpu_irqs
,
256 .main_clk
= "gpt4_fck",
260 .module_bit
= OMAP3430_EN_GPT4_SHIFT
,
261 .module_offs
= OMAP3430_PER_MOD
,
263 .idlest_idle_bit
= OMAP3430_ST_GPT4_SHIFT
,
266 .class = &omap3xxx_timer_hwmod_class
,
267 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
271 static struct omap_hwmod omap3xxx_timer5_hwmod
= {
273 .mpu_irqs
= omap2_timer5_mpu_irqs
,
274 .main_clk
= "gpt5_fck",
278 .module_bit
= OMAP3430_EN_GPT5_SHIFT
,
279 .module_offs
= OMAP3430_PER_MOD
,
281 .idlest_idle_bit
= OMAP3430_ST_GPT5_SHIFT
,
284 .dev_attr
= &capability_dsp_dev_attr
,
285 .class = &omap3xxx_timer_hwmod_class
,
286 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
290 static struct omap_hwmod omap3xxx_timer6_hwmod
= {
292 .mpu_irqs
= omap2_timer6_mpu_irqs
,
293 .main_clk
= "gpt6_fck",
297 .module_bit
= OMAP3430_EN_GPT6_SHIFT
,
298 .module_offs
= OMAP3430_PER_MOD
,
300 .idlest_idle_bit
= OMAP3430_ST_GPT6_SHIFT
,
303 .dev_attr
= &capability_dsp_dev_attr
,
304 .class = &omap3xxx_timer_hwmod_class
,
305 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
309 static struct omap_hwmod omap3xxx_timer7_hwmod
= {
311 .mpu_irqs
= omap2_timer7_mpu_irqs
,
312 .main_clk
= "gpt7_fck",
316 .module_bit
= OMAP3430_EN_GPT7_SHIFT
,
317 .module_offs
= OMAP3430_PER_MOD
,
319 .idlest_idle_bit
= OMAP3430_ST_GPT7_SHIFT
,
322 .dev_attr
= &capability_dsp_dev_attr
,
323 .class = &omap3xxx_timer_hwmod_class
,
324 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
328 static struct omap_hwmod omap3xxx_timer8_hwmod
= {
330 .mpu_irqs
= omap2_timer8_mpu_irqs
,
331 .main_clk
= "gpt8_fck",
335 .module_bit
= OMAP3430_EN_GPT8_SHIFT
,
336 .module_offs
= OMAP3430_PER_MOD
,
338 .idlest_idle_bit
= OMAP3430_ST_GPT8_SHIFT
,
341 .dev_attr
= &capability_dsp_pwm_dev_attr
,
342 .class = &omap3xxx_timer_hwmod_class
,
343 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
347 static struct omap_hwmod omap3xxx_timer9_hwmod
= {
349 .mpu_irqs
= omap2_timer9_mpu_irqs
,
350 .main_clk
= "gpt9_fck",
354 .module_bit
= OMAP3430_EN_GPT9_SHIFT
,
355 .module_offs
= OMAP3430_PER_MOD
,
357 .idlest_idle_bit
= OMAP3430_ST_GPT9_SHIFT
,
360 .dev_attr
= &capability_pwm_dev_attr
,
361 .class = &omap3xxx_timer_hwmod_class
,
362 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
366 static struct omap_hwmod omap3xxx_timer10_hwmod
= {
368 .mpu_irqs
= omap2_timer10_mpu_irqs
,
369 .main_clk
= "gpt10_fck",
373 .module_bit
= OMAP3430_EN_GPT10_SHIFT
,
374 .module_offs
= CORE_MOD
,
376 .idlest_idle_bit
= OMAP3430_ST_GPT10_SHIFT
,
379 .dev_attr
= &capability_pwm_dev_attr
,
380 .class = &omap3xxx_timer_hwmod_class
,
381 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
385 static struct omap_hwmod omap3xxx_timer11_hwmod
= {
387 .mpu_irqs
= omap2_timer11_mpu_irqs
,
388 .main_clk
= "gpt11_fck",
392 .module_bit
= OMAP3430_EN_GPT11_SHIFT
,
393 .module_offs
= CORE_MOD
,
395 .idlest_idle_bit
= OMAP3430_ST_GPT11_SHIFT
,
398 .dev_attr
= &capability_pwm_dev_attr
,
399 .class = &omap3xxx_timer_hwmod_class
,
400 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
404 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs
[] = {
405 { .irq
= 95 + OMAP_INTC_START
, },
409 static struct omap_hwmod omap3xxx_timer12_hwmod
= {
411 .mpu_irqs
= omap3xxx_timer12_mpu_irqs
,
412 .main_clk
= "gpt12_fck",
416 .module_bit
= OMAP3430_EN_GPT12_SHIFT
,
417 .module_offs
= WKUP_MOD
,
419 .idlest_idle_bit
= OMAP3430_ST_GPT12_SHIFT
,
422 .dev_attr
= &capability_secure_dev_attr
,
423 .class = &omap3xxx_timer_hwmod_class
,
424 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
429 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
433 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc
= {
437 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_EMUFREE
|
438 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
439 SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
440 SYSS_HAS_RESET_STATUS
),
441 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
442 .sysc_fields
= &omap_hwmod_sysc_type1
,
446 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
450 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
451 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
452 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
453 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
454 .clockact
= CLOCKACT_TEST_ICLK
,
455 .sysc_fields
= &omap_hwmod_sysc_type1
,
458 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class
= {
460 .sysc
= &omap3xxx_wd_timer_sysc
,
461 .pre_shutdown
= &omap2_wd_timer_disable
,
462 .reset
= &omap2_wd_timer_reset
,
465 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
467 .class = &omap3xxx_wd_timer_hwmod_class
,
468 .main_clk
= "wdt2_fck",
472 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
473 .module_offs
= WKUP_MOD
,
475 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
479 * XXX: Use software supervised mode, HW supervised smartidle seems to
480 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
482 .flags
= HWMOD_SWSUP_SIDLE
,
486 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
488 .mpu_irqs
= omap2_uart1_mpu_irqs
,
489 .sdma_reqs
= omap2_uart1_sdma_reqs
,
490 .main_clk
= "uart1_fck",
491 .flags
= DEBUG_TI81XXUART1_FLAGS
| HWMOD_SWSUP_SIDLE
,
494 .module_offs
= CORE_MOD
,
496 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
498 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
501 .class = &omap2_uart_class
,
505 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
507 .mpu_irqs
= omap2_uart2_mpu_irqs
,
508 .sdma_reqs
= omap2_uart2_sdma_reqs
,
509 .main_clk
= "uart2_fck",
510 .flags
= DEBUG_TI81XXUART2_FLAGS
| HWMOD_SWSUP_SIDLE
,
513 .module_offs
= CORE_MOD
,
515 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
517 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
520 .class = &omap2_uart_class
,
524 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
526 .mpu_irqs
= omap2_uart3_mpu_irqs
,
527 .sdma_reqs
= omap2_uart3_sdma_reqs
,
528 .main_clk
= "uart3_fck",
529 .flags
= DEBUG_OMAP3UART3_FLAGS
| DEBUG_TI81XXUART3_FLAGS
|
533 .module_offs
= OMAP3430_PER_MOD
,
535 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
537 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
540 .class = &omap2_uart_class
,
544 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
545 { .irq
= 80 + OMAP_INTC_START
, },
549 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
550 { .name
= "rx", .dma_req
= 82, },
551 { .name
= "tx", .dma_req
= 81, },
555 static struct omap_hwmod omap36xx_uart4_hwmod
= {
557 .mpu_irqs
= uart4_mpu_irqs
,
558 .sdma_reqs
= uart4_sdma_reqs
,
559 .main_clk
= "uart4_fck",
560 .flags
= DEBUG_OMAP3UART4_FLAGS
| HWMOD_SWSUP_SIDLE
,
563 .module_offs
= OMAP3430_PER_MOD
,
565 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
567 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
570 .class = &omap2_uart_class
,
573 static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs
[] = {
574 { .irq
= 84 + OMAP_INTC_START
, },
578 static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs
[] = {
579 { .name
= "rx", .dma_req
= 55, },
580 { .name
= "tx", .dma_req
= 54, },
585 * XXX AM35xx UART4 cannot complete its softreset without uart1_fck or
586 * uart2_fck being enabled. So we add uart1_fck as an optional clock,
587 * below, and set the HWMOD_CONTROL_OPT_CLKS_IN_RESET. This really
588 * should not be needed. The functional clock structure of the AM35xx
589 * UART4 is extremely unclear and opaque; it is unclear what the role
590 * of uart1/2_fck is for the UART4. Any clarification from either
591 * empirical testing or the AM3505/3517 hardware designers would be
594 static struct omap_hwmod_opt_clk am35xx_uart4_opt_clks
[] = {
595 { .role
= "softreset_uart1_fck", .clk
= "uart1_fck" },
598 static struct omap_hwmod am35xx_uart4_hwmod
= {
600 .mpu_irqs
= am35xx_uart4_mpu_irqs
,
601 .sdma_reqs
= am35xx_uart4_sdma_reqs
,
602 .main_clk
= "uart4_fck",
605 .module_offs
= CORE_MOD
,
607 .module_bit
= AM35XX_EN_UART4_SHIFT
,
609 .idlest_idle_bit
= AM35XX_ST_UART4_SHIFT
,
612 .opt_clks
= am35xx_uart4_opt_clks
,
613 .opt_clks_cnt
= ARRAY_SIZE(am35xx_uart4_opt_clks
),
614 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
615 .class = &omap2_uart_class
,
618 static struct omap_hwmod_class i2c_class
= {
621 .rev
= OMAP_I2C_IP_VERSION_1
,
622 .reset
= &omap_i2c_reset
,
625 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
626 { .name
= "dispc", .dma_req
= 5 },
627 { .name
= "dsi1", .dma_req
= 74 },
632 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
634 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
635 * driver does not use these clocks.
637 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
638 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
639 /* required only on OMAP3430 */
640 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
643 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
645 .class = &omap2_dss_hwmod_class
,
646 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
647 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
651 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
652 .module_offs
= OMAP3430_DSS_MOD
,
654 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
657 .opt_clks
= dss_opt_clks
,
658 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
659 .flags
= HWMOD_NO_IDLEST
| HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
662 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
664 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
665 .class = &omap2_dss_hwmod_class
,
666 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
667 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
671 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
672 .module_offs
= OMAP3430_DSS_MOD
,
674 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
675 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
678 .opt_clks
= dss_opt_clks
,
679 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
687 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc
= {
691 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
692 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
694 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
695 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
696 .sysc_fields
= &omap_hwmod_sysc_type1
,
699 static struct omap_hwmod_class omap3_dispc_hwmod_class
= {
701 .sysc
= &omap3_dispc_sysc
,
704 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
706 .class = &omap3_dispc_hwmod_class
,
707 .mpu_irqs
= omap2_dispc_irqs
,
708 .main_clk
= "dss1_alwon_fck",
712 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
713 .module_offs
= OMAP3430_DSS_MOD
,
716 .flags
= HWMOD_NO_IDLEST
,
717 .dev_attr
= &omap2_3_dss_dispc_dev_attr
722 * display serial interface controller
725 static struct omap_hwmod_class_sysconfig omap3xxx_dsi_sysc
= {
729 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
730 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
731 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
732 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
733 .sysc_fields
= &omap_hwmod_sysc_type1
,
736 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
738 .sysc
= &omap3xxx_dsi_sysc
,
741 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
742 { .irq
= 25 + OMAP_INTC_START
, },
747 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks
[] = {
748 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
751 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
753 .class = &omap3xxx_dsi_hwmod_class
,
754 .mpu_irqs
= omap3xxx_dsi1_irqs
,
755 .main_clk
= "dss1_alwon_fck",
759 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
760 .module_offs
= OMAP3430_DSS_MOD
,
763 .opt_clks
= dss_dsi1_opt_clks
,
764 .opt_clks_cnt
= ARRAY_SIZE(dss_dsi1_opt_clks
),
765 .flags
= HWMOD_NO_IDLEST
,
768 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks
[] = {
769 { .role
= "ick", .clk
= "dss_ick" },
772 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
774 .class = &omap2_rfbi_hwmod_class
,
775 .main_clk
= "dss1_alwon_fck",
779 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
780 .module_offs
= OMAP3430_DSS_MOD
,
783 .opt_clks
= dss_rfbi_opt_clks
,
784 .opt_clks_cnt
= ARRAY_SIZE(dss_rfbi_opt_clks
),
785 .flags
= HWMOD_NO_IDLEST
,
788 static struct omap_hwmod_opt_clk dss_venc_opt_clks
[] = {
789 /* required only on OMAP3430 */
790 { .role
= "tv_dac_clk", .clk
= "dss_96m_fck" },
793 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
795 .class = &omap2_venc_hwmod_class
,
796 .main_clk
= "dss_tv_fck",
800 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
801 .module_offs
= OMAP3430_DSS_MOD
,
804 .opt_clks
= dss_venc_opt_clks
,
805 .opt_clks_cnt
= ARRAY_SIZE(dss_venc_opt_clks
),
806 .flags
= HWMOD_NO_IDLEST
,
810 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
811 .fifo_depth
= 8, /* bytes */
812 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_2
,
815 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
817 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
818 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
819 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
820 .main_clk
= "i2c1_fck",
823 .module_offs
= CORE_MOD
,
825 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
827 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
831 .dev_attr
= &i2c1_dev_attr
,
835 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
836 .fifo_depth
= 8, /* bytes */
837 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_2
,
840 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
842 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
843 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
844 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
845 .main_clk
= "i2c2_fck",
848 .module_offs
= CORE_MOD
,
850 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
852 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
856 .dev_attr
= &i2c2_dev_attr
,
860 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
861 .fifo_depth
= 64, /* bytes */
862 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_2
,
865 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
866 { .irq
= 61 + OMAP_INTC_START
, },
870 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
871 { .name
= "tx", .dma_req
= 25 },
872 { .name
= "rx", .dma_req
= 26 },
876 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
878 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
879 .mpu_irqs
= i2c3_mpu_irqs
,
880 .sdma_reqs
= i2c3_sdma_reqs
,
881 .main_clk
= "i2c3_fck",
884 .module_offs
= CORE_MOD
,
886 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
888 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
892 .dev_attr
= &i2c3_dev_attr
,
897 * general purpose io module
900 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
904 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
905 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
906 SYSS_HAS_RESET_STATUS
),
907 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
908 .sysc_fields
= &omap_hwmod_sysc_type1
,
911 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
913 .sysc
= &omap3xxx_gpio_sysc
,
918 static struct omap_gpio_dev_attr gpio_dev_attr
= {
924 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
925 { .role
= "dbclk", .clk
= "gpio1_dbck", },
928 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
930 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
931 .mpu_irqs
= omap2_gpio1_irqs
,
932 .main_clk
= "gpio1_ick",
933 .opt_clks
= gpio1_opt_clks
,
934 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
938 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
939 .module_offs
= WKUP_MOD
,
941 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
944 .class = &omap3xxx_gpio_hwmod_class
,
945 .dev_attr
= &gpio_dev_attr
,
949 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
950 { .role
= "dbclk", .clk
= "gpio2_dbck", },
953 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
955 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
956 .mpu_irqs
= omap2_gpio2_irqs
,
957 .main_clk
= "gpio2_ick",
958 .opt_clks
= gpio2_opt_clks
,
959 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
963 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
964 .module_offs
= OMAP3430_PER_MOD
,
966 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
969 .class = &omap3xxx_gpio_hwmod_class
,
970 .dev_attr
= &gpio_dev_attr
,
974 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
975 { .role
= "dbclk", .clk
= "gpio3_dbck", },
978 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
980 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
981 .mpu_irqs
= omap2_gpio3_irqs
,
982 .main_clk
= "gpio3_ick",
983 .opt_clks
= gpio3_opt_clks
,
984 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
988 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
989 .module_offs
= OMAP3430_PER_MOD
,
991 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
994 .class = &omap3xxx_gpio_hwmod_class
,
995 .dev_attr
= &gpio_dev_attr
,
999 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
1000 { .role
= "dbclk", .clk
= "gpio4_dbck", },
1003 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
1005 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1006 .mpu_irqs
= omap2_gpio4_irqs
,
1007 .main_clk
= "gpio4_ick",
1008 .opt_clks
= gpio4_opt_clks
,
1009 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1013 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
1014 .module_offs
= OMAP3430_PER_MOD
,
1016 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
1019 .class = &omap3xxx_gpio_hwmod_class
,
1020 .dev_attr
= &gpio_dev_attr
,
1024 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
1025 { .irq
= 33 + OMAP_INTC_START
, }, /* INT_34XX_GPIO_BANK5 */
1029 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1030 { .role
= "dbclk", .clk
= "gpio5_dbck", },
1033 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
1035 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1036 .mpu_irqs
= omap3xxx_gpio5_irqs
,
1037 .main_clk
= "gpio5_ick",
1038 .opt_clks
= gpio5_opt_clks
,
1039 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1043 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
1044 .module_offs
= OMAP3430_PER_MOD
,
1046 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
1049 .class = &omap3xxx_gpio_hwmod_class
,
1050 .dev_attr
= &gpio_dev_attr
,
1054 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
1055 { .irq
= 34 + OMAP_INTC_START
, }, /* INT_34XX_GPIO_BANK6 */
1059 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
1060 { .role
= "dbclk", .clk
= "gpio6_dbck", },
1063 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
1065 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1066 .mpu_irqs
= omap3xxx_gpio6_irqs
,
1067 .main_clk
= "gpio6_ick",
1068 .opt_clks
= gpio6_opt_clks
,
1069 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
1073 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
1074 .module_offs
= OMAP3430_PER_MOD
,
1076 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
1079 .class = &omap3xxx_gpio_hwmod_class
,
1080 .dev_attr
= &gpio_dev_attr
,
1083 /* dma attributes */
1084 static struct omap_dma_dev_attr dma_dev_attr
= {
1085 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1086 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
1090 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
1092 .sysc_offs
= 0x002c,
1093 .syss_offs
= 0x0028,
1094 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1095 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1096 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
1097 SYSS_HAS_RESET_STATUS
),
1098 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1099 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1100 .sysc_fields
= &omap_hwmod_sysc_type1
,
1103 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
1105 .sysc
= &omap3xxx_dma_sysc
,
1109 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
1111 .class = &omap3xxx_dma_hwmod_class
,
1112 .mpu_irqs
= omap2_dma_system_irqs
,
1113 .main_clk
= "core_l3_ick",
1116 .module_offs
= CORE_MOD
,
1118 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
1120 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
1123 .dev_attr
= &dma_dev_attr
,
1124 .flags
= HWMOD_NO_IDLEST
,
1129 * multi channel buffered serial port controller
1132 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
1133 .sysc_offs
= 0x008c,
1134 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
1135 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1136 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1137 .sysc_fields
= &omap_hwmod_sysc_type1
,
1141 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
1143 .sysc
= &omap3xxx_mcbsp_sysc
,
1144 .rev
= MCBSP_CONFIG_TYPE3
,
1147 /* McBSP functional clock mapping */
1148 static struct omap_hwmod_opt_clk mcbsp15_opt_clks
[] = {
1149 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1150 { .role
= "prcm_fck", .clk
= "core_96m_fck" },
1153 static struct omap_hwmod_opt_clk mcbsp234_opt_clks
[] = {
1154 { .role
= "pad_fck", .clk
= "mcbsp_clks" },
1155 { .role
= "prcm_fck", .clk
= "per_96m_fck" },
1159 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
1160 { .name
= "common", .irq
= 16 + OMAP_INTC_START
, },
1161 { .name
= "tx", .irq
= 59 + OMAP_INTC_START
, },
1162 { .name
= "rx", .irq
= 60 + OMAP_INTC_START
, },
1166 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
1168 .class = &omap3xxx_mcbsp_hwmod_class
,
1169 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
1170 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
1171 .main_clk
= "mcbsp1_fck",
1175 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
1176 .module_offs
= CORE_MOD
,
1178 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
1181 .opt_clks
= mcbsp15_opt_clks
,
1182 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1186 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
1187 { .name
= "common", .irq
= 17 + OMAP_INTC_START
, },
1188 { .name
= "tx", .irq
= 62 + OMAP_INTC_START
, },
1189 { .name
= "rx", .irq
= 63 + OMAP_INTC_START
, },
1193 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
1194 .sidetone
= "mcbsp2_sidetone",
1197 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
1199 .class = &omap3xxx_mcbsp_hwmod_class
,
1200 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
1201 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
1202 .main_clk
= "mcbsp2_fck",
1206 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
1207 .module_offs
= OMAP3430_PER_MOD
,
1209 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
1212 .opt_clks
= mcbsp234_opt_clks
,
1213 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1214 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
1218 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
1219 { .name
= "common", .irq
= 22 + OMAP_INTC_START
, },
1220 { .name
= "tx", .irq
= 89 + OMAP_INTC_START
, },
1221 { .name
= "rx", .irq
= 90 + OMAP_INTC_START
, },
1225 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
1226 .sidetone
= "mcbsp3_sidetone",
1229 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
1231 .class = &omap3xxx_mcbsp_hwmod_class
,
1232 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
1233 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
1234 .main_clk
= "mcbsp3_fck",
1238 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
1239 .module_offs
= OMAP3430_PER_MOD
,
1241 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
1244 .opt_clks
= mcbsp234_opt_clks
,
1245 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1246 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
1250 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
1251 { .name
= "common", .irq
= 23 + OMAP_INTC_START
, },
1252 { .name
= "tx", .irq
= 54 + OMAP_INTC_START
, },
1253 { .name
= "rx", .irq
= 55 + OMAP_INTC_START
, },
1257 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
1258 { .name
= "rx", .dma_req
= 20 },
1259 { .name
= "tx", .dma_req
= 19 },
1263 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
1265 .class = &omap3xxx_mcbsp_hwmod_class
,
1266 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
1267 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
1268 .main_clk
= "mcbsp4_fck",
1272 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
1273 .module_offs
= OMAP3430_PER_MOD
,
1275 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
1278 .opt_clks
= mcbsp234_opt_clks
,
1279 .opt_clks_cnt
= ARRAY_SIZE(mcbsp234_opt_clks
),
1283 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
1284 { .name
= "common", .irq
= 27 + OMAP_INTC_START
, },
1285 { .name
= "tx", .irq
= 81 + OMAP_INTC_START
, },
1286 { .name
= "rx", .irq
= 82 + OMAP_INTC_START
, },
1290 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
1291 { .name
= "rx", .dma_req
= 22 },
1292 { .name
= "tx", .dma_req
= 21 },
1296 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
1298 .class = &omap3xxx_mcbsp_hwmod_class
,
1299 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
1300 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
1301 .main_clk
= "mcbsp5_fck",
1305 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
1306 .module_offs
= CORE_MOD
,
1308 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
1311 .opt_clks
= mcbsp15_opt_clks
,
1312 .opt_clks_cnt
= ARRAY_SIZE(mcbsp15_opt_clks
),
1315 /* 'mcbsp sidetone' class */
1316 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
1317 .sysc_offs
= 0x0010,
1318 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
1319 .sysc_fields
= &omap_hwmod_sysc_type1
,
1322 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
1323 .name
= "mcbsp_sidetone",
1324 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
1327 /* mcbsp2_sidetone */
1328 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
1329 { .name
= "irq", .irq
= 4 + OMAP_INTC_START
, },
1333 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
1334 .name
= "mcbsp2_sidetone",
1335 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1336 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
1337 .main_clk
= "mcbsp2_ick",
1338 .flags
= HWMOD_NO_IDLEST
,
1341 /* mcbsp3_sidetone */
1342 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
1343 { .name
= "irq", .irq
= 5 + OMAP_INTC_START
, },
1347 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
1348 .name
= "mcbsp3_sidetone",
1349 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
1350 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
1351 .main_clk
= "mcbsp3_ick",
1352 .flags
= HWMOD_NO_IDLEST
,
1356 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
1360 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
1362 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
1363 .clockact
= CLOCKACT_TEST_ICLK
,
1364 .sysc_fields
= &omap34xx_sr_sysc_fields
,
1367 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
1368 .name
= "smartreflex",
1369 .sysc
= &omap34xx_sr_sysc
,
1373 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
1378 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
1380 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1381 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1383 .sysc_fields
= &omap36xx_sr_sysc_fields
,
1386 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
1387 .name
= "smartreflex",
1388 .sysc
= &omap36xx_sr_sysc
,
1393 static struct omap_smartreflex_dev_attr sr1_dev_attr
= {
1394 .sensor_voltdm_name
= "mpu_iva",
1397 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs
[] = {
1398 { .irq
= 18 + OMAP_INTC_START
, },
1402 static struct omap_hwmod omap34xx_sr1_hwmod
= {
1403 .name
= "smartreflex_mpu_iva",
1404 .class = &omap34xx_smartreflex_hwmod_class
,
1405 .main_clk
= "sr1_fck",
1409 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1410 .module_offs
= WKUP_MOD
,
1412 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1415 .dev_attr
= &sr1_dev_attr
,
1416 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1417 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1420 static struct omap_hwmod omap36xx_sr1_hwmod
= {
1421 .name
= "smartreflex_mpu_iva",
1422 .class = &omap36xx_smartreflex_hwmod_class
,
1423 .main_clk
= "sr1_fck",
1427 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
1428 .module_offs
= WKUP_MOD
,
1430 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
1433 .dev_attr
= &sr1_dev_attr
,
1434 .mpu_irqs
= omap3_smartreflex_mpu_irqs
,
1438 static struct omap_smartreflex_dev_attr sr2_dev_attr
= {
1439 .sensor_voltdm_name
= "core",
1442 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs
[] = {
1443 { .irq
= 19 + OMAP_INTC_START
, },
1447 static struct omap_hwmod omap34xx_sr2_hwmod
= {
1448 .name
= "smartreflex_core",
1449 .class = &omap34xx_smartreflex_hwmod_class
,
1450 .main_clk
= "sr2_fck",
1454 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1455 .module_offs
= WKUP_MOD
,
1457 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1460 .dev_attr
= &sr2_dev_attr
,
1461 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1462 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
1465 static struct omap_hwmod omap36xx_sr2_hwmod
= {
1466 .name
= "smartreflex_core",
1467 .class = &omap36xx_smartreflex_hwmod_class
,
1468 .main_clk
= "sr2_fck",
1472 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
1473 .module_offs
= WKUP_MOD
,
1475 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
1478 .dev_attr
= &sr2_dev_attr
,
1479 .mpu_irqs
= omap3_smartreflex_core_irqs
,
1484 * mailbox module allowing communication between the on-chip processors
1485 * using a queued mailbox-interrupt mechanism.
1488 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
1492 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1493 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1494 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1495 .sysc_fields
= &omap_hwmod_sysc_type1
,
1498 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
1500 .sysc
= &omap3xxx_mailbox_sysc
,
1503 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
1505 .class = &omap3xxx_mailbox_hwmod_class
,
1506 .main_clk
= "mailboxes_ick",
1510 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
1511 .module_offs
= CORE_MOD
,
1513 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
1520 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1524 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
1526 .sysc_offs
= 0x0010,
1527 .syss_offs
= 0x0014,
1528 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1529 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1530 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1531 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1532 .sysc_fields
= &omap_hwmod_sysc_type1
,
1535 static struct omap_hwmod_class omap34xx_mcspi_class
= {
1537 .sysc
= &omap34xx_mcspi_sysc
,
1538 .rev
= OMAP3_MCSPI_REV
,
1542 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1543 .num_chipselect
= 4,
1546 static struct omap_hwmod omap34xx_mcspi1
= {
1548 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
1549 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
1550 .main_clk
= "mcspi1_fck",
1553 .module_offs
= CORE_MOD
,
1555 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
1557 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
1560 .class = &omap34xx_mcspi_class
,
1561 .dev_attr
= &omap_mcspi1_dev_attr
,
1565 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
1566 .num_chipselect
= 2,
1569 static struct omap_hwmod omap34xx_mcspi2
= {
1571 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
1572 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
1573 .main_clk
= "mcspi2_fck",
1576 .module_offs
= CORE_MOD
,
1578 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
1580 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
1583 .class = &omap34xx_mcspi_class
,
1584 .dev_attr
= &omap_mcspi2_dev_attr
,
1588 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
1589 { .name
= "irq", .irq
= 91 + OMAP_INTC_START
, }, /* 91 */
1593 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
1594 { .name
= "tx0", .dma_req
= 15 },
1595 { .name
= "rx0", .dma_req
= 16 },
1596 { .name
= "tx1", .dma_req
= 23 },
1597 { .name
= "rx1", .dma_req
= 24 },
1601 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
1602 .num_chipselect
= 2,
1605 static struct omap_hwmod omap34xx_mcspi3
= {
1607 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
1608 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
1609 .main_clk
= "mcspi3_fck",
1612 .module_offs
= CORE_MOD
,
1614 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
1616 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
1619 .class = &omap34xx_mcspi_class
,
1620 .dev_attr
= &omap_mcspi3_dev_attr
,
1624 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
1625 { .name
= "irq", .irq
= 48 + OMAP_INTC_START
, },
1629 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
1630 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
1631 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
1635 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
1636 .num_chipselect
= 1,
1639 static struct omap_hwmod omap34xx_mcspi4
= {
1641 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
1642 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
1643 .main_clk
= "mcspi4_fck",
1646 .module_offs
= CORE_MOD
,
1648 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
1650 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
1653 .class = &omap34xx_mcspi_class
,
1654 .dev_attr
= &omap_mcspi4_dev_attr
,
1658 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
1660 .sysc_offs
= 0x0404,
1661 .syss_offs
= 0x0408,
1662 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1663 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1665 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1666 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1667 .sysc_fields
= &omap_hwmod_sysc_type1
,
1670 static struct omap_hwmod_class usbotg_class
= {
1672 .sysc
= &omap3xxx_usbhsotg_sysc
,
1676 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
1678 { .name
= "mc", .irq
= 92 + OMAP_INTC_START
, },
1679 { .name
= "dma", .irq
= 93 + OMAP_INTC_START
, },
1683 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
1684 .name
= "usb_otg_hs",
1685 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
1686 .main_clk
= "hsotgusb_ick",
1690 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
1691 .module_offs
= CORE_MOD
,
1693 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
1694 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
1697 .class = &usbotg_class
,
1700 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1701 * broken when autoidle is enabled
1702 * workaround is to disable the autoidle bit at module level.
1704 * Enabling the device in any other MIDLEMODE setting but force-idle
1705 * causes core_pwrdm not enter idle states at least on OMAP3630.
1706 * Note that musb has OTG_FORCESTDBY register that controls MSTANDBY
1707 * signal when MIDLEMODE is set to force-idle.
1709 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
|
1710 HWMOD_FORCE_MSTANDBY
| HWMOD_RECONFIG_IO_CHAIN
,
1714 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
1715 { .name
= "mc", .irq
= 71 + OMAP_INTC_START
, },
1719 static struct omap_hwmod_class am35xx_usbotg_class
= {
1720 .name
= "am35xx_usbotg",
1723 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
1724 .name
= "am35x_otg_hs",
1725 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
1726 .main_clk
= "hsotgusb_fck",
1727 .class = &am35xx_usbotg_class
,
1728 .flags
= HWMOD_NO_IDLEST
,
1731 /* MMC/SD/SDIO common */
1732 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
1736 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1737 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1738 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1739 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1740 .sysc_fields
= &omap_hwmod_sysc_type1
,
1743 static struct omap_hwmod_class omap34xx_mmc_class
= {
1745 .sysc
= &omap34xx_mmc_sysc
,
1750 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
1751 { .irq
= 83 + OMAP_INTC_START
, },
1755 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
1756 { .name
= "tx", .dma_req
= 61, },
1757 { .name
= "rx", .dma_req
= 62, },
1761 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
1762 { .role
= "dbck", .clk
= "omap_32k_fck", },
1765 static struct omap_hsmmc_dev_attr mmc1_dev_attr
= {
1766 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1769 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1770 static struct omap_hsmmc_dev_attr mmc1_pre_es3_dev_attr
= {
1771 .flags
= (OMAP_HSMMC_SUPPORTS_DUAL_VOLT
|
1772 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
),
1775 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod
= {
1777 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1778 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1779 .opt_clks
= omap34xx_mmc1_opt_clks
,
1780 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1781 .main_clk
= "mmchs1_fck",
1784 .module_offs
= CORE_MOD
,
1786 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1788 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1791 .dev_attr
= &mmc1_pre_es3_dev_attr
,
1792 .class = &omap34xx_mmc_class
,
1795 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod
= {
1797 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
1798 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
1799 .opt_clks
= omap34xx_mmc1_opt_clks
,
1800 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
1801 .main_clk
= "mmchs1_fck",
1804 .module_offs
= CORE_MOD
,
1806 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
1808 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
1811 .dev_attr
= &mmc1_dev_attr
,
1812 .class = &omap34xx_mmc_class
,
1817 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
1818 { .irq
= 86 + OMAP_INTC_START
, },
1822 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
1823 { .name
= "tx", .dma_req
= 47, },
1824 { .name
= "rx", .dma_req
= 48, },
1828 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
1829 { .role
= "dbck", .clk
= "omap_32k_fck", },
1832 /* See 35xx errata 2.1.1.128 in SPRZ278F */
1833 static struct omap_hsmmc_dev_attr mmc2_pre_es3_dev_attr
= {
1834 .flags
= OMAP_HSMMC_BROKEN_MULTIBLOCK_READ
,
1837 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod
= {
1839 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1840 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1841 .opt_clks
= omap34xx_mmc2_opt_clks
,
1842 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1843 .main_clk
= "mmchs2_fck",
1846 .module_offs
= CORE_MOD
,
1848 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1850 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1853 .dev_attr
= &mmc2_pre_es3_dev_attr
,
1854 .class = &omap34xx_mmc_class
,
1857 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod
= {
1859 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
1860 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
1861 .opt_clks
= omap34xx_mmc2_opt_clks
,
1862 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
1863 .main_clk
= "mmchs2_fck",
1866 .module_offs
= CORE_MOD
,
1868 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
1870 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
1873 .class = &omap34xx_mmc_class
,
1878 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
1879 { .irq
= 94 + OMAP_INTC_START
, },
1883 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
1884 { .name
= "tx", .dma_req
= 77, },
1885 { .name
= "rx", .dma_req
= 78, },
1889 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
1890 { .role
= "dbck", .clk
= "omap_32k_fck", },
1893 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
1895 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
1896 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
1897 .opt_clks
= omap34xx_mmc3_opt_clks
,
1898 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
1899 .main_clk
= "mmchs3_fck",
1903 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
1905 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
1908 .class = &omap34xx_mmc_class
,
1912 * 'usb_host_hs' class
1913 * high-speed multi-port usb host controller
1916 static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc
= {
1918 .sysc_offs
= 0x0010,
1919 .syss_offs
= 0x0014,
1920 .sysc_flags
= (SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
1921 SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1922 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
1923 SYSS_HAS_RESET_STATUS
),
1924 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1925 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1926 .sysc_fields
= &omap_hwmod_sysc_type1
,
1929 static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class
= {
1930 .name
= "usb_host_hs",
1931 .sysc
= &omap3xxx_usb_host_hs_sysc
,
1934 static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs
[] = {
1935 { .name
= "ohci-irq", .irq
= 76 + OMAP_INTC_START
, },
1936 { .name
= "ehci-irq", .irq
= 77 + OMAP_INTC_START
, },
1940 static struct omap_hwmod omap3xxx_usb_host_hs_hwmod
= {
1941 .name
= "usb_host_hs",
1942 .class = &omap3xxx_usb_host_hs_hwmod_class
,
1943 .clkdm_name
= "usbhost_clkdm",
1944 .mpu_irqs
= omap3xxx_usb_host_hs_irqs
,
1945 .main_clk
= "usbhost_48m_fck",
1948 .module_offs
= OMAP3430ES2_USBHOST_MOD
,
1950 .module_bit
= OMAP3430ES2_EN_USBHOST1_SHIFT
,
1952 .idlest_idle_bit
= OMAP3430ES2_ST_USBHOST_IDLE_SHIFT
,
1953 .idlest_stdby_bit
= OMAP3430ES2_ST_USBHOST_STDBY_SHIFT
,
1958 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1962 * In the following configuration :
1963 * - USBHOST module is set to smart-idle mode
1964 * - PRCM asserts idle_req to the USBHOST module ( This typically
1965 * happens when the system is going to a low power mode : all ports
1966 * have been suspended, the master part of the USBHOST module has
1967 * entered the standby state, and SW has cut the functional clocks)
1968 * - an USBHOST interrupt occurs before the module is able to answer
1969 * idle_ack, typically a remote wakeup IRQ.
1970 * Then the USB HOST module will enter a deadlock situation where it
1971 * is no more accessible nor functional.
1974 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1978 * Errata: USB host EHCI may stall when entering smart-standby mode
1982 * When the USBHOST module is set to smart-standby mode, and when it is
1983 * ready to enter the standby state (i.e. all ports are suspended and
1984 * all attached devices are in suspend mode), then it can wrongly assert
1985 * the Mstandby signal too early while there are still some residual OCP
1986 * transactions ongoing. If this condition occurs, the internal state
1987 * machine may go to an undefined state and the USB link may be stuck
1988 * upon the next resume.
1991 * Don't use smart standby; use only force standby,
1992 * hence HWMOD_SWSUP_MSTANDBY
1995 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1999 * 'usb_tll_hs' class
2000 * usb_tll_hs module is the adapter on the usb_host_hs ports
2002 static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc
= {
2004 .sysc_offs
= 0x0010,
2005 .syss_offs
= 0x0014,
2006 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2007 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
2009 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2010 .sysc_fields
= &omap_hwmod_sysc_type1
,
2013 static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class
= {
2014 .name
= "usb_tll_hs",
2015 .sysc
= &omap3xxx_usb_tll_hs_sysc
,
2018 static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs
[] = {
2019 { .name
= "tll-irq", .irq
= 78 + OMAP_INTC_START
, },
2023 static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod
= {
2024 .name
= "usb_tll_hs",
2025 .class = &omap3xxx_usb_tll_hs_hwmod_class
,
2026 .clkdm_name
= "core_l4_clkdm",
2027 .mpu_irqs
= omap3xxx_usb_tll_hs_irqs
,
2028 .main_clk
= "usbtll_fck",
2031 .module_offs
= CORE_MOD
,
2033 .module_bit
= OMAP3430ES2_EN_USBTLL_SHIFT
,
2035 .idlest_idle_bit
= OMAP3430ES2_ST_USBTLL_SHIFT
,
2040 static struct omap_hwmod omap3xxx_hdq1w_hwmod
= {
2042 .mpu_irqs
= omap2_hdq1w_mpu_irqs
,
2043 .main_clk
= "hdq_fck",
2046 .module_offs
= CORE_MOD
,
2048 .module_bit
= OMAP3430_EN_HDQ_SHIFT
,
2050 .idlest_idle_bit
= OMAP3430_ST_HDQ_SHIFT
,
2053 .class = &omap2_hdq1w_class
,
2057 static struct omap_hwmod_rst_info omap3xxx_sad2d_resets
[] = {
2058 { .name
= "rst_modem_pwron_sw", .rst_shift
= 0 },
2059 { .name
= "rst_modem_sw", .rst_shift
= 1 },
2062 static struct omap_hwmod_class omap3xxx_sad2d_class
= {
2066 static struct omap_hwmod omap3xxx_sad2d_hwmod
= {
2068 .rst_lines
= omap3xxx_sad2d_resets
,
2069 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_sad2d_resets
),
2070 .main_clk
= "sad2d_ick",
2073 .module_offs
= CORE_MOD
,
2075 .module_bit
= OMAP3430_EN_SAD2D_SHIFT
,
2077 .idlest_idle_bit
= OMAP3430_ST_SAD2D_SHIFT
,
2080 .class = &omap3xxx_sad2d_class
,
2084 * '32K sync counter' class
2085 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
2087 static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc
= {
2089 .sysc_offs
= 0x0004,
2090 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
2091 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
),
2092 .sysc_fields
= &omap_hwmod_sysc_type1
,
2095 static struct omap_hwmod_class omap3xxx_counter_hwmod_class
= {
2097 .sysc
= &omap3xxx_counter_sysc
,
2100 static struct omap_hwmod omap3xxx_counter_32k_hwmod
= {
2101 .name
= "counter_32k",
2102 .class = &omap3xxx_counter_hwmod_class
,
2103 .clkdm_name
= "wkup_clkdm",
2104 .flags
= HWMOD_SWSUP_SIDLE
,
2105 .main_clk
= "wkup_32k_fck",
2108 .module_offs
= WKUP_MOD
,
2110 .module_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2112 .idlest_idle_bit
= OMAP3430_ST_32KSYNC_SHIFT
,
2119 * general purpose memory controller
2122 static struct omap_hwmod_class_sysconfig omap3xxx_gpmc_sysc
= {
2124 .sysc_offs
= 0x0010,
2125 .syss_offs
= 0x0014,
2126 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
2127 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
2128 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2129 .sysc_fields
= &omap_hwmod_sysc_type1
,
2132 static struct omap_hwmod_class omap3xxx_gpmc_hwmod_class
= {
2134 .sysc
= &omap3xxx_gpmc_sysc
,
2137 static struct omap_hwmod_irq_info omap3xxx_gpmc_irqs
[] = {
2138 { .irq
= 20 + OMAP_INTC_START
, },
2142 static struct omap_hwmod omap3xxx_gpmc_hwmod
= {
2144 .class = &omap3xxx_gpmc_hwmod_class
,
2145 .clkdm_name
= "core_l3_clkdm",
2146 .mpu_irqs
= omap3xxx_gpmc_irqs
,
2147 .main_clk
= "gpmc_fck",
2148 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
2149 .flags
= HWMOD_NO_IDLEST
| DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
2156 /* L3 -> L4_CORE interface */
2157 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
2158 .master
= &omap3xxx_l3_main_hwmod
,
2159 .slave
= &omap3xxx_l4_core_hwmod
,
2160 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2163 /* L3 -> L4_PER interface */
2164 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
2165 .master
= &omap3xxx_l3_main_hwmod
,
2166 .slave
= &omap3xxx_l4_per_hwmod
,
2167 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2170 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
2172 .pa_start
= 0x68000000,
2173 .pa_end
= 0x6800ffff,
2174 .flags
= ADDR_TYPE_RT
,
2179 /* MPU -> L3 interface */
2180 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
2181 .master
= &omap3xxx_mpu_hwmod
,
2182 .slave
= &omap3xxx_l3_main_hwmod
,
2183 .addr
= omap3xxx_l3_main_addrs
,
2184 .user
= OCP_USER_MPU
,
2187 static struct omap_hwmod_addr_space omap3xxx_l4_emu_addrs
[] = {
2189 .pa_start
= 0x54000000,
2190 .pa_end
= 0x547fffff,
2191 .flags
= ADDR_TYPE_RT
,
2197 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_debugss
= {
2198 .master
= &omap3xxx_l3_main_hwmod
,
2199 .slave
= &omap3xxx_debugss_hwmod
,
2200 .addr
= omap3xxx_l4_emu_addrs
,
2201 .user
= OCP_USER_MPU
,
2205 static struct omap_hwmod_ocp_if omap3430es1_dss__l3
= {
2206 .master
= &omap3430es1_dss_core_hwmod
,
2207 .slave
= &omap3xxx_l3_main_hwmod
,
2208 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2211 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
2212 .master
= &omap3xxx_dss_core_hwmod
,
2213 .slave
= &omap3xxx_l3_main_hwmod
,
2216 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
2217 .flags
= OMAP_FIREWALL_L3
,
2220 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2223 /* l3_core -> usbhsotg interface */
2224 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
2225 .master
= &omap3xxx_usbhsotg_hwmod
,
2226 .slave
= &omap3xxx_l3_main_hwmod
,
2227 .clk
= "core_l3_ick",
2228 .user
= OCP_USER_MPU
,
2231 /* l3_core -> am35xx_usbhsotg interface */
2232 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
2233 .master
= &am35xx_usbhsotg_hwmod
,
2234 .slave
= &omap3xxx_l3_main_hwmod
,
2235 .clk
= "hsotgusb_ick",
2236 .user
= OCP_USER_MPU
,
2239 /* l3_core -> sad2d interface */
2240 static struct omap_hwmod_ocp_if omap3xxx_sad2d__l3
= {
2241 .master
= &omap3xxx_sad2d_hwmod
,
2242 .slave
= &omap3xxx_l3_main_hwmod
,
2243 .clk
= "core_l3_ick",
2244 .user
= OCP_USER_MPU
,
2247 /* L4_CORE -> L4_WKUP interface */
2248 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
2249 .master
= &omap3xxx_l4_core_hwmod
,
2250 .slave
= &omap3xxx_l4_wkup_hwmod
,
2251 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2254 /* L4 CORE -> MMC1 interface */
2255 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1
= {
2256 .master
= &omap3xxx_l4_core_hwmod
,
2257 .slave
= &omap3xxx_pre_es3_mmc1_hwmod
,
2258 .clk
= "mmchs1_ick",
2259 .addr
= omap2430_mmc1_addr_space
,
2260 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2261 .flags
= OMAP_FIREWALL_L4
2264 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1
= {
2265 .master
= &omap3xxx_l4_core_hwmod
,
2266 .slave
= &omap3xxx_es3plus_mmc1_hwmod
,
2267 .clk
= "mmchs1_ick",
2268 .addr
= omap2430_mmc1_addr_space
,
2269 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2270 .flags
= OMAP_FIREWALL_L4
2273 /* L4 CORE -> MMC2 interface */
2274 static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2
= {
2275 .master
= &omap3xxx_l4_core_hwmod
,
2276 .slave
= &omap3xxx_pre_es3_mmc2_hwmod
,
2277 .clk
= "mmchs2_ick",
2278 .addr
= omap2430_mmc2_addr_space
,
2279 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2280 .flags
= OMAP_FIREWALL_L4
2283 static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2
= {
2284 .master
= &omap3xxx_l4_core_hwmod
,
2285 .slave
= &omap3xxx_es3plus_mmc2_hwmod
,
2286 .clk
= "mmchs2_ick",
2287 .addr
= omap2430_mmc2_addr_space
,
2288 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2289 .flags
= OMAP_FIREWALL_L4
2292 /* L4 CORE -> MMC3 interface */
2293 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
2295 .pa_start
= 0x480ad000,
2296 .pa_end
= 0x480ad1ff,
2297 .flags
= ADDR_TYPE_RT
,
2302 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
2303 .master
= &omap3xxx_l4_core_hwmod
,
2304 .slave
= &omap3xxx_mmc3_hwmod
,
2305 .clk
= "mmchs3_ick",
2306 .addr
= omap3xxx_mmc3_addr_space
,
2307 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2308 .flags
= OMAP_FIREWALL_L4
2311 /* L4 CORE -> UART1 interface */
2312 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
2314 .pa_start
= OMAP3_UART1_BASE
,
2315 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
2316 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2321 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
2322 .master
= &omap3xxx_l4_core_hwmod
,
2323 .slave
= &omap3xxx_uart1_hwmod
,
2325 .addr
= omap3xxx_uart1_addr_space
,
2326 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2329 /* L4 CORE -> UART2 interface */
2330 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
2332 .pa_start
= OMAP3_UART2_BASE
,
2333 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
2334 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2339 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
2340 .master
= &omap3xxx_l4_core_hwmod
,
2341 .slave
= &omap3xxx_uart2_hwmod
,
2343 .addr
= omap3xxx_uart2_addr_space
,
2344 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2347 /* L4 PER -> UART3 interface */
2348 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
2350 .pa_start
= OMAP3_UART3_BASE
,
2351 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
2352 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2357 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
2358 .master
= &omap3xxx_l4_per_hwmod
,
2359 .slave
= &omap3xxx_uart3_hwmod
,
2361 .addr
= omap3xxx_uart3_addr_space
,
2362 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2365 /* L4 PER -> UART4 interface */
2366 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space
[] = {
2368 .pa_start
= OMAP3_UART4_BASE
,
2369 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
2370 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2375 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4
= {
2376 .master
= &omap3xxx_l4_per_hwmod
,
2377 .slave
= &omap36xx_uart4_hwmod
,
2379 .addr
= omap36xx_uart4_addr_space
,
2380 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2383 /* AM35xx: L4 CORE -> UART4 interface */
2384 static struct omap_hwmod_addr_space am35xx_uart4_addr_space
[] = {
2386 .pa_start
= OMAP3_UART4_AM35XX_BASE
,
2387 .pa_end
= OMAP3_UART4_AM35XX_BASE
+ SZ_1K
- 1,
2388 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
2393 static struct omap_hwmod_ocp_if am35xx_l4_core__uart4
= {
2394 .master
= &omap3xxx_l4_core_hwmod
,
2395 .slave
= &am35xx_uart4_hwmod
,
2397 .addr
= am35xx_uart4_addr_space
,
2398 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2401 /* L4 CORE -> I2C1 interface */
2402 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
2403 .master
= &omap3xxx_l4_core_hwmod
,
2404 .slave
= &omap3xxx_i2c1_hwmod
,
2406 .addr
= omap2_i2c1_addr_space
,
2409 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
2411 .flags
= OMAP_FIREWALL_L4
,
2414 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2417 /* L4 CORE -> I2C2 interface */
2418 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
2419 .master
= &omap3xxx_l4_core_hwmod
,
2420 .slave
= &omap3xxx_i2c2_hwmod
,
2422 .addr
= omap2_i2c2_addr_space
,
2425 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
2427 .flags
= OMAP_FIREWALL_L4
,
2430 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2433 /* L4 CORE -> I2C3 interface */
2434 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
2436 .pa_start
= 0x48060000,
2437 .pa_end
= 0x48060000 + SZ_128
- 1,
2438 .flags
= ADDR_TYPE_RT
,
2443 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
2444 .master
= &omap3xxx_l4_core_hwmod
,
2445 .slave
= &omap3xxx_i2c3_hwmod
,
2447 .addr
= omap3xxx_i2c3_addr_space
,
2450 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
2452 .flags
= OMAP_FIREWALL_L4
,
2455 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2458 /* L4 CORE -> SR1 interface */
2459 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
2461 .pa_start
= OMAP34XX_SR1_BASE
,
2462 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
2463 .flags
= ADDR_TYPE_RT
,
2468 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1
= {
2469 .master
= &omap3xxx_l4_core_hwmod
,
2470 .slave
= &omap34xx_sr1_hwmod
,
2472 .addr
= omap3_sr1_addr_space
,
2473 .user
= OCP_USER_MPU
,
2476 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1
= {
2477 .master
= &omap3xxx_l4_core_hwmod
,
2478 .slave
= &omap36xx_sr1_hwmod
,
2480 .addr
= omap3_sr1_addr_space
,
2481 .user
= OCP_USER_MPU
,
2484 /* L4 CORE -> SR1 interface */
2485 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
2487 .pa_start
= OMAP34XX_SR2_BASE
,
2488 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
2489 .flags
= ADDR_TYPE_RT
,
2494 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2
= {
2495 .master
= &omap3xxx_l4_core_hwmod
,
2496 .slave
= &omap34xx_sr2_hwmod
,
2498 .addr
= omap3_sr2_addr_space
,
2499 .user
= OCP_USER_MPU
,
2502 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2
= {
2503 .master
= &omap3xxx_l4_core_hwmod
,
2504 .slave
= &omap36xx_sr2_hwmod
,
2506 .addr
= omap3_sr2_addr_space
,
2507 .user
= OCP_USER_MPU
,
2510 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
2512 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
2513 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
2514 .flags
= ADDR_TYPE_RT
2519 /* l4_core -> usbhsotg */
2520 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
2521 .master
= &omap3xxx_l4_core_hwmod
,
2522 .slave
= &omap3xxx_usbhsotg_hwmod
,
2524 .addr
= omap3xxx_usbhsotg_addrs
,
2525 .user
= OCP_USER_MPU
,
2528 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
2530 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
2531 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
2532 .flags
= ADDR_TYPE_RT
2537 /* l4_core -> usbhsotg */
2538 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
2539 .master
= &omap3xxx_l4_core_hwmod
,
2540 .slave
= &am35xx_usbhsotg_hwmod
,
2541 .clk
= "hsotgusb_ick",
2542 .addr
= am35xx_usbhsotg_addrs
,
2543 .user
= OCP_USER_MPU
,
2546 /* L4_WKUP -> L4_SEC interface */
2547 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec
= {
2548 .master
= &omap3xxx_l4_wkup_hwmod
,
2549 .slave
= &omap3xxx_l4_sec_hwmod
,
2550 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2553 /* IVA2 <- L3 interface */
2554 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
2555 .master
= &omap3xxx_l3_main_hwmod
,
2556 .slave
= &omap3xxx_iva_hwmod
,
2557 .clk
= "core_l3_ick",
2558 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2561 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
2563 .pa_start
= 0x48318000,
2564 .pa_end
= 0x48318000 + SZ_1K
- 1,
2565 .flags
= ADDR_TYPE_RT
2570 /* l4_wkup -> timer1 */
2571 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
2572 .master
= &omap3xxx_l4_wkup_hwmod
,
2573 .slave
= &omap3xxx_timer1_hwmod
,
2575 .addr
= omap3xxx_timer1_addrs
,
2576 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2579 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
2581 .pa_start
= 0x49032000,
2582 .pa_end
= 0x49032000 + SZ_1K
- 1,
2583 .flags
= ADDR_TYPE_RT
2588 /* l4_per -> timer2 */
2589 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
2590 .master
= &omap3xxx_l4_per_hwmod
,
2591 .slave
= &omap3xxx_timer2_hwmod
,
2593 .addr
= omap3xxx_timer2_addrs
,
2594 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2597 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
2599 .pa_start
= 0x49034000,
2600 .pa_end
= 0x49034000 + SZ_1K
- 1,
2601 .flags
= ADDR_TYPE_RT
2606 /* l4_per -> timer3 */
2607 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
2608 .master
= &omap3xxx_l4_per_hwmod
,
2609 .slave
= &omap3xxx_timer3_hwmod
,
2611 .addr
= omap3xxx_timer3_addrs
,
2612 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2615 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
2617 .pa_start
= 0x49036000,
2618 .pa_end
= 0x49036000 + SZ_1K
- 1,
2619 .flags
= ADDR_TYPE_RT
2624 /* l4_per -> timer4 */
2625 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
2626 .master
= &omap3xxx_l4_per_hwmod
,
2627 .slave
= &omap3xxx_timer4_hwmod
,
2629 .addr
= omap3xxx_timer4_addrs
,
2630 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2633 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
2635 .pa_start
= 0x49038000,
2636 .pa_end
= 0x49038000 + SZ_1K
- 1,
2637 .flags
= ADDR_TYPE_RT
2642 /* l4_per -> timer5 */
2643 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
2644 .master
= &omap3xxx_l4_per_hwmod
,
2645 .slave
= &omap3xxx_timer5_hwmod
,
2647 .addr
= omap3xxx_timer5_addrs
,
2648 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2651 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
2653 .pa_start
= 0x4903A000,
2654 .pa_end
= 0x4903A000 + SZ_1K
- 1,
2655 .flags
= ADDR_TYPE_RT
2660 /* l4_per -> timer6 */
2661 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
2662 .master
= &omap3xxx_l4_per_hwmod
,
2663 .slave
= &omap3xxx_timer6_hwmod
,
2665 .addr
= omap3xxx_timer6_addrs
,
2666 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2669 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
2671 .pa_start
= 0x4903C000,
2672 .pa_end
= 0x4903C000 + SZ_1K
- 1,
2673 .flags
= ADDR_TYPE_RT
2678 /* l4_per -> timer7 */
2679 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
2680 .master
= &omap3xxx_l4_per_hwmod
,
2681 .slave
= &omap3xxx_timer7_hwmod
,
2683 .addr
= omap3xxx_timer7_addrs
,
2684 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2687 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
2689 .pa_start
= 0x4903E000,
2690 .pa_end
= 0x4903E000 + SZ_1K
- 1,
2691 .flags
= ADDR_TYPE_RT
2696 /* l4_per -> timer8 */
2697 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
2698 .master
= &omap3xxx_l4_per_hwmod
,
2699 .slave
= &omap3xxx_timer8_hwmod
,
2701 .addr
= omap3xxx_timer8_addrs
,
2702 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2705 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
2707 .pa_start
= 0x49040000,
2708 .pa_end
= 0x49040000 + SZ_1K
- 1,
2709 .flags
= ADDR_TYPE_RT
2714 /* l4_per -> timer9 */
2715 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
2716 .master
= &omap3xxx_l4_per_hwmod
,
2717 .slave
= &omap3xxx_timer9_hwmod
,
2719 .addr
= omap3xxx_timer9_addrs
,
2720 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2723 /* l4_core -> timer10 */
2724 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
2725 .master
= &omap3xxx_l4_core_hwmod
,
2726 .slave
= &omap3xxx_timer10_hwmod
,
2728 .addr
= omap2_timer10_addrs
,
2729 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2732 /* l4_core -> timer11 */
2733 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
2734 .master
= &omap3xxx_l4_core_hwmod
,
2735 .slave
= &omap3xxx_timer11_hwmod
,
2737 .addr
= omap2_timer11_addrs
,
2738 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2741 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
2743 .pa_start
= 0x48304000,
2744 .pa_end
= 0x48304000 + SZ_1K
- 1,
2745 .flags
= ADDR_TYPE_RT
2750 /* l4_core -> timer12 */
2751 static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12
= {
2752 .master
= &omap3xxx_l4_sec_hwmod
,
2753 .slave
= &omap3xxx_timer12_hwmod
,
2755 .addr
= omap3xxx_timer12_addrs
,
2756 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2759 /* l4_wkup -> wd_timer2 */
2760 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
2762 .pa_start
= 0x48314000,
2763 .pa_end
= 0x4831407f,
2764 .flags
= ADDR_TYPE_RT
2769 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
2770 .master
= &omap3xxx_l4_wkup_hwmod
,
2771 .slave
= &omap3xxx_wd_timer2_hwmod
,
2773 .addr
= omap3xxx_wd_timer2_addrs
,
2774 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2777 /* l4_core -> dss */
2778 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
2779 .master
= &omap3xxx_l4_core_hwmod
,
2780 .slave
= &omap3430es1_dss_core_hwmod
,
2782 .addr
= omap2_dss_addrs
,
2785 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
2786 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2787 .flags
= OMAP_FIREWALL_L4
,
2790 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2793 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
2794 .master
= &omap3xxx_l4_core_hwmod
,
2795 .slave
= &omap3xxx_dss_core_hwmod
,
2797 .addr
= omap2_dss_addrs
,
2800 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
2801 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2802 .flags
= OMAP_FIREWALL_L4
,
2805 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2808 /* l4_core -> dss_dispc */
2809 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
2810 .master
= &omap3xxx_l4_core_hwmod
,
2811 .slave
= &omap3xxx_dss_dispc_hwmod
,
2813 .addr
= omap2_dss_dispc_addrs
,
2816 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
2817 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2818 .flags
= OMAP_FIREWALL_L4
,
2821 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2824 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
2826 .pa_start
= 0x4804FC00,
2827 .pa_end
= 0x4804FFFF,
2828 .flags
= ADDR_TYPE_RT
2833 /* l4_core -> dss_dsi1 */
2834 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
2835 .master
= &omap3xxx_l4_core_hwmod
,
2836 .slave
= &omap3xxx_dss_dsi1_hwmod
,
2838 .addr
= omap3xxx_dss_dsi1_addrs
,
2841 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
2842 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2843 .flags
= OMAP_FIREWALL_L4
,
2846 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2849 /* l4_core -> dss_rfbi */
2850 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
2851 .master
= &omap3xxx_l4_core_hwmod
,
2852 .slave
= &omap3xxx_dss_rfbi_hwmod
,
2854 .addr
= omap2_dss_rfbi_addrs
,
2857 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
2858 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2859 .flags
= OMAP_FIREWALL_L4
,
2862 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2865 /* l4_core -> dss_venc */
2866 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
2867 .master
= &omap3xxx_l4_core_hwmod
,
2868 .slave
= &omap3xxx_dss_venc_hwmod
,
2870 .addr
= omap2_dss_venc_addrs
,
2873 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
2874 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
2875 .flags
= OMAP_FIREWALL_L4
,
2878 .flags
= OCPIF_SWSUP_IDLE
,
2879 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2882 /* l4_wkup -> gpio1 */
2883 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
2885 .pa_start
= 0x48310000,
2886 .pa_end
= 0x483101ff,
2887 .flags
= ADDR_TYPE_RT
2892 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
2893 .master
= &omap3xxx_l4_wkup_hwmod
,
2894 .slave
= &omap3xxx_gpio1_hwmod
,
2895 .addr
= omap3xxx_gpio1_addrs
,
2896 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2899 /* l4_per -> gpio2 */
2900 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
2902 .pa_start
= 0x49050000,
2903 .pa_end
= 0x490501ff,
2904 .flags
= ADDR_TYPE_RT
2909 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
2910 .master
= &omap3xxx_l4_per_hwmod
,
2911 .slave
= &omap3xxx_gpio2_hwmod
,
2912 .addr
= omap3xxx_gpio2_addrs
,
2913 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2916 /* l4_per -> gpio3 */
2917 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
2919 .pa_start
= 0x49052000,
2920 .pa_end
= 0x490521ff,
2921 .flags
= ADDR_TYPE_RT
2926 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
2927 .master
= &omap3xxx_l4_per_hwmod
,
2928 .slave
= &omap3xxx_gpio3_hwmod
,
2929 .addr
= omap3xxx_gpio3_addrs
,
2930 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2935 * The memory management unit performs virtual to physical address translation
2936 * for its requestors.
2939 static struct omap_hwmod_class_sysconfig mmu_sysc
= {
2943 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2944 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2945 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2946 .sysc_fields
= &omap_hwmod_sysc_type1
,
2949 static struct omap_hwmod_class omap3xxx_mmu_hwmod_class
= {
2955 static struct omap_hwmod omap3xxx_mmu_isp_hwmod
;
2957 /* l4_core -> mmu isp */
2958 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmu_isp
= {
2959 .master
= &omap3xxx_l4_core_hwmod
,
2960 .slave
= &omap3xxx_mmu_isp_hwmod
,
2961 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2964 static struct omap_hwmod omap3xxx_mmu_isp_hwmod
= {
2966 .class = &omap3xxx_mmu_hwmod_class
,
2967 .main_clk
= "cam_ick",
2968 .flags
= HWMOD_NO_IDLEST
,
2973 static struct omap_hwmod omap3xxx_mmu_iva_hwmod
;
2975 static struct omap_hwmod_rst_info omap3xxx_mmu_iva_resets
[] = {
2976 { .name
= "mmu", .rst_shift
= 1, .st_shift
= 9 },
2979 /* l3_main -> iva mmu */
2980 static struct omap_hwmod_ocp_if omap3xxx_l3_main__mmu_iva
= {
2981 .master
= &omap3xxx_l3_main_hwmod
,
2982 .slave
= &omap3xxx_mmu_iva_hwmod
,
2983 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2986 static struct omap_hwmod omap3xxx_mmu_iva_hwmod
= {
2988 .class = &omap3xxx_mmu_hwmod_class
,
2989 .clkdm_name
= "iva2_clkdm",
2990 .rst_lines
= omap3xxx_mmu_iva_resets
,
2991 .rst_lines_cnt
= ARRAY_SIZE(omap3xxx_mmu_iva_resets
),
2992 .main_clk
= "iva2_ck",
2995 .module_offs
= OMAP3430_IVA2_MOD
,
2996 .module_bit
= OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT
,
2998 .idlest_idle_bit
= OMAP3430_ST_IVA2_SHIFT
,
3001 .flags
= HWMOD_NO_IDLEST
,
3004 /* l4_per -> gpio4 */
3005 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
3007 .pa_start
= 0x49054000,
3008 .pa_end
= 0x490541ff,
3009 .flags
= ADDR_TYPE_RT
3014 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
3015 .master
= &omap3xxx_l4_per_hwmod
,
3016 .slave
= &omap3xxx_gpio4_hwmod
,
3017 .addr
= omap3xxx_gpio4_addrs
,
3018 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3021 /* l4_per -> gpio5 */
3022 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
3024 .pa_start
= 0x49056000,
3025 .pa_end
= 0x490561ff,
3026 .flags
= ADDR_TYPE_RT
3031 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
3032 .master
= &omap3xxx_l4_per_hwmod
,
3033 .slave
= &omap3xxx_gpio5_hwmod
,
3034 .addr
= omap3xxx_gpio5_addrs
,
3035 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3038 /* l4_per -> gpio6 */
3039 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
3041 .pa_start
= 0x49058000,
3042 .pa_end
= 0x490581ff,
3043 .flags
= ADDR_TYPE_RT
3048 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
3049 .master
= &omap3xxx_l4_per_hwmod
,
3050 .slave
= &omap3xxx_gpio6_hwmod
,
3051 .addr
= omap3xxx_gpio6_addrs
,
3052 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3055 /* dma_system -> L3 */
3056 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
3057 .master
= &omap3xxx_dma_system_hwmod
,
3058 .slave
= &omap3xxx_l3_main_hwmod
,
3059 .clk
= "core_l3_ick",
3060 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3063 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
3065 .pa_start
= 0x48056000,
3066 .pa_end
= 0x48056fff,
3067 .flags
= ADDR_TYPE_RT
3072 /* l4_cfg -> dma_system */
3073 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
3074 .master
= &omap3xxx_l4_core_hwmod
,
3075 .slave
= &omap3xxx_dma_system_hwmod
,
3076 .clk
= "core_l4_ick",
3077 .addr
= omap3xxx_dma_system_addrs
,
3078 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3081 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
3084 .pa_start
= 0x48074000,
3085 .pa_end
= 0x480740ff,
3086 .flags
= ADDR_TYPE_RT
3091 /* l4_core -> mcbsp1 */
3092 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
3093 .master
= &omap3xxx_l4_core_hwmod
,
3094 .slave
= &omap3xxx_mcbsp1_hwmod
,
3095 .clk
= "mcbsp1_ick",
3096 .addr
= omap3xxx_mcbsp1_addrs
,
3097 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3100 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
3103 .pa_start
= 0x49022000,
3104 .pa_end
= 0x490220ff,
3105 .flags
= ADDR_TYPE_RT
3110 /* l4_per -> mcbsp2 */
3111 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
3112 .master
= &omap3xxx_l4_per_hwmod
,
3113 .slave
= &omap3xxx_mcbsp2_hwmod
,
3114 .clk
= "mcbsp2_ick",
3115 .addr
= omap3xxx_mcbsp2_addrs
,
3116 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3119 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
3122 .pa_start
= 0x49024000,
3123 .pa_end
= 0x490240ff,
3124 .flags
= ADDR_TYPE_RT
3129 /* l4_per -> mcbsp3 */
3130 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
3131 .master
= &omap3xxx_l4_per_hwmod
,
3132 .slave
= &omap3xxx_mcbsp3_hwmod
,
3133 .clk
= "mcbsp3_ick",
3134 .addr
= omap3xxx_mcbsp3_addrs
,
3135 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3138 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
3141 .pa_start
= 0x49026000,
3142 .pa_end
= 0x490260ff,
3143 .flags
= ADDR_TYPE_RT
3148 /* l4_per -> mcbsp4 */
3149 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
3150 .master
= &omap3xxx_l4_per_hwmod
,
3151 .slave
= &omap3xxx_mcbsp4_hwmod
,
3152 .clk
= "mcbsp4_ick",
3153 .addr
= omap3xxx_mcbsp4_addrs
,
3154 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3157 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
3160 .pa_start
= 0x48096000,
3161 .pa_end
= 0x480960ff,
3162 .flags
= ADDR_TYPE_RT
3167 /* l4_core -> mcbsp5 */
3168 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
3169 .master
= &omap3xxx_l4_core_hwmod
,
3170 .slave
= &omap3xxx_mcbsp5_hwmod
,
3171 .clk
= "mcbsp5_ick",
3172 .addr
= omap3xxx_mcbsp5_addrs
,
3173 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3176 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
3179 .pa_start
= 0x49028000,
3180 .pa_end
= 0x490280ff,
3181 .flags
= ADDR_TYPE_RT
3186 /* l4_per -> mcbsp2_sidetone */
3187 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
3188 .master
= &omap3xxx_l4_per_hwmod
,
3189 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
3190 .clk
= "mcbsp2_ick",
3191 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
3192 .user
= OCP_USER_MPU
,
3195 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
3198 .pa_start
= 0x4902A000,
3199 .pa_end
= 0x4902A0ff,
3200 .flags
= ADDR_TYPE_RT
3205 /* l4_per -> mcbsp3_sidetone */
3206 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
3207 .master
= &omap3xxx_l4_per_hwmod
,
3208 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
3209 .clk
= "mcbsp3_ick",
3210 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
3211 .user
= OCP_USER_MPU
,
3214 /* l4_core -> mailbox */
3215 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
3216 .master
= &omap3xxx_l4_core_hwmod
,
3217 .slave
= &omap3xxx_mailbox_hwmod
,
3218 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3221 /* l4 core -> mcspi1 interface */
3222 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
3223 .master
= &omap3xxx_l4_core_hwmod
,
3224 .slave
= &omap34xx_mcspi1
,
3225 .clk
= "mcspi1_ick",
3226 .addr
= omap2_mcspi1_addr_space
,
3227 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3230 /* l4 core -> mcspi2 interface */
3231 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
3232 .master
= &omap3xxx_l4_core_hwmod
,
3233 .slave
= &omap34xx_mcspi2
,
3234 .clk
= "mcspi2_ick",
3235 .addr
= omap2_mcspi2_addr_space
,
3236 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3239 /* l4 core -> mcspi3 interface */
3240 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
3241 .master
= &omap3xxx_l4_core_hwmod
,
3242 .slave
= &omap34xx_mcspi3
,
3243 .clk
= "mcspi3_ick",
3244 .addr
= omap2430_mcspi3_addr_space
,
3245 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3248 /* l4 core -> mcspi4 interface */
3249 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
3251 .pa_start
= 0x480ba000,
3252 .pa_end
= 0x480ba0ff,
3253 .flags
= ADDR_TYPE_RT
,
3258 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
3259 .master
= &omap3xxx_l4_core_hwmod
,
3260 .slave
= &omap34xx_mcspi4
,
3261 .clk
= "mcspi4_ick",
3262 .addr
= omap34xx_mcspi4_addr_space
,
3263 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3266 static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2
= {
3267 .master
= &omap3xxx_usb_host_hs_hwmod
,
3268 .slave
= &omap3xxx_l3_main_hwmod
,
3269 .clk
= "core_l3_ick",
3270 .user
= OCP_USER_MPU
,
3273 static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs
[] = {
3276 .pa_start
= 0x48064000,
3277 .pa_end
= 0x480643ff,
3278 .flags
= ADDR_TYPE_RT
3282 .pa_start
= 0x48064400,
3283 .pa_end
= 0x480647ff,
3287 .pa_start
= 0x48064800,
3288 .pa_end
= 0x48064cff,
3293 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs
= {
3294 .master
= &omap3xxx_l4_core_hwmod
,
3295 .slave
= &omap3xxx_usb_host_hs_hwmod
,
3296 .clk
= "usbhost_ick",
3297 .addr
= omap3xxx_usb_host_hs_addrs
,
3298 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3301 static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs
[] = {
3304 .pa_start
= 0x48062000,
3305 .pa_end
= 0x48062fff,
3306 .flags
= ADDR_TYPE_RT
3311 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs
= {
3312 .master
= &omap3xxx_l4_core_hwmod
,
3313 .slave
= &omap3xxx_usb_tll_hs_hwmod
,
3314 .clk
= "usbtll_ick",
3315 .addr
= omap3xxx_usb_tll_hs_addrs
,
3316 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3319 /* l4_core -> hdq1w interface */
3320 static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w
= {
3321 .master
= &omap3xxx_l4_core_hwmod
,
3322 .slave
= &omap3xxx_hdq1w_hwmod
,
3324 .addr
= omap2_hdq1w_addr_space
,
3325 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3326 .flags
= OMAP_FIREWALL_L4
| OCPIF_SWSUP_IDLE
,
3329 /* l4_wkup -> 32ksync_counter */
3330 static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs
[] = {
3332 .pa_start
= 0x48320000,
3333 .pa_end
= 0x4832001f,
3334 .flags
= ADDR_TYPE_RT
3339 static struct omap_hwmod_addr_space omap3xxx_gpmc_addrs
[] = {
3341 .pa_start
= 0x6e000000,
3342 .pa_end
= 0x6e000fff,
3343 .flags
= ADDR_TYPE_RT
3348 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k
= {
3349 .master
= &omap3xxx_l4_wkup_hwmod
,
3350 .slave
= &omap3xxx_counter_32k_hwmod
,
3351 .clk
= "omap_32ksync_ick",
3352 .addr
= omap3xxx_counter_32k_addrs
,
3353 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3356 /* am35xx has Davinci MDIO & EMAC */
3357 static struct omap_hwmod_class am35xx_mdio_class
= {
3358 .name
= "davinci_mdio",
3361 static struct omap_hwmod am35xx_mdio_hwmod
= {
3362 .name
= "davinci_mdio",
3363 .class = &am35xx_mdio_class
,
3364 .flags
= HWMOD_NO_IDLEST
,
3368 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3369 * but this will probably require some additional hwmod core support,
3370 * so is left as a future to-do item.
3372 static struct omap_hwmod_ocp_if am35xx_mdio__l3
= {
3373 .master
= &am35xx_mdio_hwmod
,
3374 .slave
= &omap3xxx_l3_main_hwmod
,
3376 .user
= OCP_USER_MPU
,
3379 /* l4_core -> davinci mdio */
3381 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3382 * but this will probably require some additional hwmod core support,
3383 * so is left as a future to-do item.
3385 static struct omap_hwmod_ocp_if am35xx_l4_core__mdio
= {
3386 .master
= &omap3xxx_l4_core_hwmod
,
3387 .slave
= &am35xx_mdio_hwmod
,
3389 .user
= OCP_USER_MPU
,
3392 static struct omap_hwmod_class am35xx_emac_class
= {
3393 .name
= "davinci_emac",
3396 static struct omap_hwmod am35xx_emac_hwmod
= {
3397 .name
= "davinci_emac",
3398 .class = &am35xx_emac_class
,
3400 * According to Mark Greer, the MPU will not return from WFI
3401 * when the EMAC signals an interrupt.
3402 * http://www.spinics.net/lists/arm-kernel/msg174734.html
3404 .flags
= (HWMOD_NO_IDLEST
| HWMOD_BLOCK_WFI
),
3407 /* l3_core -> davinci emac interface */
3409 * XXX Should be connected to an IPSS hwmod, not the L3 directly;
3410 * but this will probably require some additional hwmod core support,
3411 * so is left as a future to-do item.
3413 static struct omap_hwmod_ocp_if am35xx_emac__l3
= {
3414 .master
= &am35xx_emac_hwmod
,
3415 .slave
= &omap3xxx_l3_main_hwmod
,
3417 .user
= OCP_USER_MPU
,
3420 /* l4_core -> davinci emac */
3422 * XXX Should be connected to an IPSS hwmod, not the L4_CORE directly;
3423 * but this will probably require some additional hwmod core support,
3424 * so is left as a future to-do item.
3426 static struct omap_hwmod_ocp_if am35xx_l4_core__emac
= {
3427 .master
= &omap3xxx_l4_core_hwmod
,
3428 .slave
= &am35xx_emac_hwmod
,
3430 .user
= OCP_USER_MPU
,
3433 static struct omap_hwmod_ocp_if omap3xxx_l3_main__gpmc
= {
3434 .master
= &omap3xxx_l3_main_hwmod
,
3435 .slave
= &omap3xxx_gpmc_hwmod
,
3436 .clk
= "core_l3_ick",
3437 .addr
= omap3xxx_gpmc_addrs
,
3438 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3441 /* l4_core -> SHAM2 (SHA1/MD5) (similar to omap24xx) */
3442 static struct omap_hwmod_sysc_fields omap3_sham_sysc_fields
= {
3445 .autoidle_shift
= 0,
3448 static struct omap_hwmod_class_sysconfig omap3_sham_sysc
= {
3452 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
3453 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
3454 .sysc_fields
= &omap3_sham_sysc_fields
,
3457 static struct omap_hwmod_class omap3xxx_sham_class
= {
3459 .sysc
= &omap3_sham_sysc
,
3462 static struct omap_hwmod_irq_info omap3_sham_mpu_irqs
[] = {
3463 { .irq
= 49 + OMAP_INTC_START
, },
3467 static struct omap_hwmod_dma_info omap3_sham_sdma_reqs
[] = {
3468 { .name
= "rx", .dma_req
= 69, },
3472 static struct omap_hwmod omap3xxx_sham_hwmod
= {
3474 .mpu_irqs
= omap3_sham_mpu_irqs
,
3475 .sdma_reqs
= omap3_sham_sdma_reqs
,
3476 .main_clk
= "sha12_ick",
3479 .module_offs
= CORE_MOD
,
3481 .module_bit
= OMAP3430_EN_SHA12_SHIFT
,
3483 .idlest_idle_bit
= OMAP3430_ST_SHA12_SHIFT
,
3486 .class = &omap3xxx_sham_class
,
3489 static struct omap_hwmod_addr_space omap3xxx_sham_addrs
[] = {
3491 .pa_start
= 0x480c3000,
3492 .pa_end
= 0x480c3000 + 0x64 - 1,
3493 .flags
= ADDR_TYPE_RT
3498 static struct omap_hwmod_ocp_if omap3xxx_l4_core__sham
= {
3499 .master
= &omap3xxx_l4_core_hwmod
,
3500 .slave
= &omap3xxx_sham_hwmod
,
3502 .addr
= omap3xxx_sham_addrs
,
3503 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3506 /* l4_core -> AES */
3507 static struct omap_hwmod_sysc_fields omap3xxx_aes_sysc_fields
= {
3510 .autoidle_shift
= 0,
3513 static struct omap_hwmod_class_sysconfig omap3_aes_sysc
= {
3517 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
3518 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
3519 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3520 .sysc_fields
= &omap3xxx_aes_sysc_fields
,
3523 static struct omap_hwmod_class omap3xxx_aes_class
= {
3525 .sysc
= &omap3_aes_sysc
,
3528 static struct omap_hwmod_dma_info omap3_aes_sdma_reqs
[] = {
3529 { .name
= "tx", .dma_req
= 65, },
3530 { .name
= "rx", .dma_req
= 66, },
3534 static struct omap_hwmod omap3xxx_aes_hwmod
= {
3536 .sdma_reqs
= omap3_aes_sdma_reqs
,
3537 .main_clk
= "aes2_ick",
3540 .module_offs
= CORE_MOD
,
3542 .module_bit
= OMAP3430_EN_AES2_SHIFT
,
3544 .idlest_idle_bit
= OMAP3430_ST_AES2_SHIFT
,
3547 .class = &omap3xxx_aes_class
,
3550 static struct omap_hwmod_addr_space omap3xxx_aes_addrs
[] = {
3552 .pa_start
= 0x480c5000,
3553 .pa_end
= 0x480c5000 + 0x50 - 1,
3554 .flags
= ADDR_TYPE_RT
3559 static struct omap_hwmod_ocp_if omap3xxx_l4_core__aes
= {
3560 .master
= &omap3xxx_l4_core_hwmod
,
3561 .slave
= &omap3xxx_aes_hwmod
,
3563 .addr
= omap3xxx_aes_addrs
,
3564 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3569 * synchronous serial interface (multichannel and full-duplex serial if)
3572 static struct omap_hwmod_class_sysconfig omap34xx_ssi_sysc
= {
3574 .sysc_offs
= 0x0010,
3575 .syss_offs
= 0x0014,
3576 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_MIDLEMODE
|
3577 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
3578 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3579 .sysc_fields
= &omap_hwmod_sysc_type1
,
3582 static struct omap_hwmod_class omap3xxx_ssi_hwmod_class
= {
3584 .sysc
= &omap34xx_ssi_sysc
,
3587 static struct omap_hwmod omap3xxx_ssi_hwmod
= {
3589 .class = &omap3xxx_ssi_hwmod_class
,
3590 .clkdm_name
= "core_l4_clkdm",
3591 .main_clk
= "ssi_ssr_fck",
3595 .module_bit
= OMAP3430_EN_SSI_SHIFT
,
3596 .module_offs
= CORE_MOD
,
3598 .idlest_idle_bit
= OMAP3430ES2_ST_SSI_IDLE_SHIFT
,
3603 /* L4 CORE -> SSI */
3604 static struct omap_hwmod_ocp_if omap3xxx_l4_core__ssi
= {
3605 .master
= &omap3xxx_l4_core_hwmod
,
3606 .slave
= &omap3xxx_ssi_hwmod
,
3608 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
3611 static struct omap_hwmod_ocp_if
*omap3xxx_hwmod_ocp_ifs
[] __initdata
= {
3612 &omap3xxx_l3_main__l4_core
,
3613 &omap3xxx_l3_main__l4_per
,
3614 &omap3xxx_mpu__l3_main
,
3615 &omap3xxx_l3_main__l4_debugss
,
3616 &omap3xxx_l4_core__l4_wkup
,
3617 &omap3xxx_l4_core__mmc3
,
3618 &omap3_l4_core__uart1
,
3619 &omap3_l4_core__uart2
,
3620 &omap3_l4_per__uart3
,
3621 &omap3_l4_core__i2c1
,
3622 &omap3_l4_core__i2c2
,
3623 &omap3_l4_core__i2c3
,
3624 &omap3xxx_l4_wkup__l4_sec
,
3625 &omap3xxx_l4_wkup__timer1
,
3626 &omap3xxx_l4_per__timer2
,
3627 &omap3xxx_l4_per__timer3
,
3628 &omap3xxx_l4_per__timer4
,
3629 &omap3xxx_l4_per__timer5
,
3630 &omap3xxx_l4_per__timer6
,
3631 &omap3xxx_l4_per__timer7
,
3632 &omap3xxx_l4_per__timer8
,
3633 &omap3xxx_l4_per__timer9
,
3634 &omap3xxx_l4_core__timer10
,
3635 &omap3xxx_l4_core__timer11
,
3636 &omap3xxx_l4_wkup__wd_timer2
,
3637 &omap3xxx_l4_wkup__gpio1
,
3638 &omap3xxx_l4_per__gpio2
,
3639 &omap3xxx_l4_per__gpio3
,
3640 &omap3xxx_l4_per__gpio4
,
3641 &omap3xxx_l4_per__gpio5
,
3642 &omap3xxx_l4_per__gpio6
,
3643 &omap3xxx_dma_system__l3
,
3644 &omap3xxx_l4_core__dma_system
,
3645 &omap3xxx_l4_core__mcbsp1
,
3646 &omap3xxx_l4_per__mcbsp2
,
3647 &omap3xxx_l4_per__mcbsp3
,
3648 &omap3xxx_l4_per__mcbsp4
,
3649 &omap3xxx_l4_core__mcbsp5
,
3650 &omap3xxx_l4_per__mcbsp2_sidetone
,
3651 &omap3xxx_l4_per__mcbsp3_sidetone
,
3652 &omap34xx_l4_core__mcspi1
,
3653 &omap34xx_l4_core__mcspi2
,
3654 &omap34xx_l4_core__mcspi3
,
3655 &omap34xx_l4_core__mcspi4
,
3656 &omap3xxx_l4_wkup__counter_32k
,
3657 &omap3xxx_l3_main__gpmc
,
3661 /* GP-only hwmod links */
3662 static struct omap_hwmod_ocp_if
*omap34xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3663 &omap3xxx_l4_sec__timer12
,
3667 static struct omap_hwmod_ocp_if
*omap36xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3668 &omap3xxx_l4_sec__timer12
,
3672 static struct omap_hwmod_ocp_if
*am35xx_gp_hwmod_ocp_ifs
[] __initdata
= {
3673 &omap3xxx_l4_sec__timer12
,
3677 /* crypto hwmod links */
3678 static struct omap_hwmod_ocp_if
*omap34xx_sham_hwmod_ocp_ifs
[] __initdata
= {
3679 &omap3xxx_l4_core__sham
,
3683 static struct omap_hwmod_ocp_if
*omap34xx_aes_hwmod_ocp_ifs
[] __initdata
= {
3684 &omap3xxx_l4_core__aes
,
3688 static struct omap_hwmod_ocp_if
*omap36xx_sham_hwmod_ocp_ifs
[] __initdata
= {
3689 &omap3xxx_l4_core__sham
,
3693 static struct omap_hwmod_ocp_if
*omap36xx_aes_hwmod_ocp_ifs
[] __initdata
= {
3694 &omap3xxx_l4_core__aes
,
3699 * Apparently the SHA/MD5 and AES accelerator IP blocks are
3700 * only present on some AM35xx chips, and no one knows which
3702 * http://www.spinics.net/lists/arm-kernel/msg215466.html So
3703 * if you need these IP blocks on an AM35xx, try uncommenting
3704 * the following lines.
3706 static struct omap_hwmod_ocp_if
*am35xx_sham_hwmod_ocp_ifs
[] __initdata
= {
3707 /* &omap3xxx_l4_core__sham, */
3711 static struct omap_hwmod_ocp_if
*am35xx_aes_hwmod_ocp_ifs
[] __initdata
= {
3712 /* &omap3xxx_l4_core__aes, */
3716 /* 3430ES1-only hwmod links */
3717 static struct omap_hwmod_ocp_if
*omap3430es1_hwmod_ocp_ifs
[] __initdata
= {
3718 &omap3430es1_dss__l3
,
3719 &omap3430es1_l4_core__dss
,
3723 /* 3430ES2+-only hwmod links */
3724 static struct omap_hwmod_ocp_if
*omap3430es2plus_hwmod_ocp_ifs
[] __initdata
= {
3726 &omap3xxx_l4_core__dss
,
3727 &omap3xxx_usbhsotg__l3
,
3728 &omap3xxx_l4_core__usbhsotg
,
3729 &omap3xxx_usb_host_hs__l3_main_2
,
3730 &omap3xxx_l4_core__usb_host_hs
,
3731 &omap3xxx_l4_core__usb_tll_hs
,
3735 /* <= 3430ES3-only hwmod links */
3736 static struct omap_hwmod_ocp_if
*omap3430_pre_es3_hwmod_ocp_ifs
[] __initdata
= {
3737 &omap3xxx_l4_core__pre_es3_mmc1
,
3738 &omap3xxx_l4_core__pre_es3_mmc2
,
3742 /* 3430ES3+-only hwmod links */
3743 static struct omap_hwmod_ocp_if
*omap3430_es3plus_hwmod_ocp_ifs
[] __initdata
= {
3744 &omap3xxx_l4_core__es3plus_mmc1
,
3745 &omap3xxx_l4_core__es3plus_mmc2
,
3749 /* 34xx-only hwmod links (all ES revisions) */
3750 static struct omap_hwmod_ocp_if
*omap34xx_hwmod_ocp_ifs
[] __initdata
= {
3752 &omap34xx_l4_core__sr1
,
3753 &omap34xx_l4_core__sr2
,
3754 &omap3xxx_l4_core__mailbox
,
3755 &omap3xxx_l4_core__hdq1w
,
3756 &omap3xxx_sad2d__l3
,
3757 &omap3xxx_l4_core__mmu_isp
,
3758 &omap3xxx_l3_main__mmu_iva
,
3759 &omap3xxx_l4_core__ssi
,
3763 /* 36xx-only hwmod links (all ES revisions) */
3764 static struct omap_hwmod_ocp_if
*omap36xx_hwmod_ocp_ifs
[] __initdata
= {
3766 &omap36xx_l4_per__uart4
,
3768 &omap3xxx_l4_core__dss
,
3769 &omap36xx_l4_core__sr1
,
3770 &omap36xx_l4_core__sr2
,
3771 &omap3xxx_usbhsotg__l3
,
3772 &omap3xxx_l4_core__usbhsotg
,
3773 &omap3xxx_l4_core__mailbox
,
3774 &omap3xxx_usb_host_hs__l3_main_2
,
3775 &omap3xxx_l4_core__usb_host_hs
,
3776 &omap3xxx_l4_core__usb_tll_hs
,
3777 &omap3xxx_l4_core__es3plus_mmc1
,
3778 &omap3xxx_l4_core__es3plus_mmc2
,
3779 &omap3xxx_l4_core__hdq1w
,
3780 &omap3xxx_sad2d__l3
,
3781 &omap3xxx_l4_core__mmu_isp
,
3782 &omap3xxx_l3_main__mmu_iva
,
3783 &omap3xxx_l4_core__ssi
,
3787 static struct omap_hwmod_ocp_if
*am35xx_hwmod_ocp_ifs
[] __initdata
= {
3789 &omap3xxx_l4_core__dss
,
3790 &am35xx_usbhsotg__l3
,
3791 &am35xx_l4_core__usbhsotg
,
3792 &am35xx_l4_core__uart4
,
3793 &omap3xxx_usb_host_hs__l3_main_2
,
3794 &omap3xxx_l4_core__usb_host_hs
,
3795 &omap3xxx_l4_core__usb_tll_hs
,
3796 &omap3xxx_l4_core__es3plus_mmc1
,
3797 &omap3xxx_l4_core__es3plus_mmc2
,
3798 &omap3xxx_l4_core__hdq1w
,
3800 &am35xx_l4_core__mdio
,
3802 &am35xx_l4_core__emac
,
3806 static struct omap_hwmod_ocp_if
*omap3xxx_dss_hwmod_ocp_ifs
[] __initdata
= {
3807 &omap3xxx_l4_core__dss_dispc
,
3808 &omap3xxx_l4_core__dss_dsi1
,
3809 &omap3xxx_l4_core__dss_rfbi
,
3810 &omap3xxx_l4_core__dss_venc
,
3815 * omap3xxx_hwmod_is_hs_ip_block_usable - is a security IP block accessible?
3816 * @bus: struct device_node * for the top-level OMAP DT data
3817 * @dev_name: device name used in the DT file
3819 * Determine whether a "secure" IP block @dev_name is usable by Linux.
3820 * There doesn't appear to be a 100% reliable way to determine this,
3821 * so we rely on heuristics. If @bus is null, meaning there's no DT
3822 * data, then we only assume the IP block is accessible if the OMAP is
3823 * fused as a 'general-purpose' SoC. If however DT data is present,
3824 * test to see if the IP block is described in the DT data and set to
3825 * 'status = "okay"'. If so then we assume the ODM has configured the
3826 * OMAP firewalls to allow access to the IP block.
3828 * Return: 0 if device named @dev_name is not likely to be accessible,
3829 * or 1 if it is likely to be accessible.
3831 static bool __init
omap3xxx_hwmod_is_hs_ip_block_usable(struct device_node
*bus
,
3832 const char *dev_name
)
3834 struct device_node
*node
;
3838 return omap_type() == OMAP2_DEVICE_TYPE_GP
;
3840 node
= of_get_child_by_name(bus
, dev_name
);
3841 available
= of_device_is_available(node
);
3847 int __init
omap3xxx_hwmod_init(void)
3850 struct omap_hwmod_ocp_if
**h
= NULL
, **h_gp
= NULL
, **h_sham
= NULL
;
3851 struct omap_hwmod_ocp_if
**h_aes
= NULL
;
3852 struct device_node
*bus
= NULL
;
3857 /* Register hwmod links common to all OMAP3 */
3858 r
= omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs
);
3865 * Register hwmod links common to individual OMAP3 families, all
3866 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3867 * All possible revisions should be included in this conditional.
3869 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3870 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3871 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3872 h
= omap34xx_hwmod_ocp_ifs
;
3873 h_gp
= omap34xx_gp_hwmod_ocp_ifs
;
3874 h_sham
= omap34xx_sham_hwmod_ocp_ifs
;
3875 h_aes
= omap34xx_aes_hwmod_ocp_ifs
;
3876 } else if (rev
== AM35XX_REV_ES1_0
|| rev
== AM35XX_REV_ES1_1
) {
3877 h
= am35xx_hwmod_ocp_ifs
;
3878 h_gp
= am35xx_gp_hwmod_ocp_ifs
;
3879 h_sham
= am35xx_sham_hwmod_ocp_ifs
;
3880 h_aes
= am35xx_aes_hwmod_ocp_ifs
;
3881 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3882 rev
== OMAP3630_REV_ES1_2
) {
3883 h
= omap36xx_hwmod_ocp_ifs
;
3884 h_gp
= omap36xx_gp_hwmod_ocp_ifs
;
3885 h_sham
= omap36xx_sham_hwmod_ocp_ifs
;
3886 h_aes
= omap36xx_aes_hwmod_ocp_ifs
;
3888 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3892 r
= omap_hwmod_register_links(h
);
3896 /* Register GP-only hwmod links. */
3897 if (h_gp
&& omap_type() == OMAP2_DEVICE_TYPE_GP
) {
3898 r
= omap_hwmod_register_links(h_gp
);
3904 * Register crypto hwmod links only if they are not disabled in DT.
3905 * If DT information is missing, enable them only for GP devices.
3908 if (of_have_populated_dt())
3909 bus
= of_find_node_by_name(NULL
, "ocp");
3911 if (h_sham
&& omap3xxx_hwmod_is_hs_ip_block_usable(bus
, "sham")) {
3912 r
= omap_hwmod_register_links(h_sham
);
3919 if (h_aes
&& omap3xxx_hwmod_is_hs_ip_block_usable(bus
, "aes")) {
3920 r
= omap_hwmod_register_links(h_aes
);
3929 * Register hwmod links specific to certain ES levels of a
3930 * particular family of silicon (e.g., 34xx ES1.0)
3933 if (rev
== OMAP3430_REV_ES1_0
) {
3934 h
= omap3430es1_hwmod_ocp_ifs
;
3935 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3936 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3937 rev
== OMAP3430_REV_ES3_1_2
) {
3938 h
= omap3430es2plus_hwmod_ocp_ifs
;
3942 r
= omap_hwmod_register_links(h
);
3948 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3949 rev
== OMAP3430_REV_ES2_1
) {
3950 h
= omap3430_pre_es3_hwmod_ocp_ifs
;
3951 } else if (rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3952 rev
== OMAP3430_REV_ES3_1_2
) {
3953 h
= omap3430_es3plus_hwmod_ocp_ifs
;
3957 r
= omap_hwmod_register_links(h
);
3962 * DSS code presumes that dss_core hwmod is handled first,
3963 * _before_ any other DSS related hwmods so register common
3964 * DSS hwmod links last to ensure that dss_core is already
3965 * registered. Otherwise some change things may happen, for
3966 * ex. if dispc is handled before dss_core and DSS is enabled
3967 * in bootloader DISPC will be reset with outputs enabled
3968 * which sometimes leads to unrecoverable L3 error. XXX The
3969 * long-term fix to this is to ensure hwmods are set up in
3970 * dependency order in the hwmod core code.
3972 r
= omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs
);