2 * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
4 * Copyright (C) 2009-2011 Nokia Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * The data in this file should be completely autogeneratable from
12 * the TI hardware database or other technical documentation.
14 * XXX these should be marked initdata for multi-OMAP kernels
16 #include <plat/omap_hwmod.h>
17 #include <mach/irqs.h>
20 #include <plat/serial.h>
21 #include <plat/l3_3xxx.h>
22 #include <plat/l4_3xxx.h>
24 #include <plat/gpio.h>
26 #include <plat/mcbsp.h>
27 #include <plat/mcspi.h>
28 #include <plat/dmtimer.h>
30 #include "omap_hwmod_common_data.h"
32 #include "smartreflex.h"
33 #include "prm-regbits-34xx.h"
34 #include "cm-regbits-34xx.h"
36 #include <mach/am35xx.h>
39 * OMAP3xxx hardware module integration data
41 * ALl of the data in this section should be autogeneratable from the
42 * TI hardware database or other technical documentation. Data that
43 * is driver-specific or driver-kernel integration-specific belongs
47 static struct omap_hwmod omap3xxx_mpu_hwmod;
48 static struct omap_hwmod omap3xxx_iva_hwmod;
49 static struct omap_hwmod omap3xxx_l3_main_hwmod;
50 static struct omap_hwmod omap3xxx_l4_core_hwmod;
51 static struct omap_hwmod omap3xxx_l4_per_hwmod;
52 static struct omap_hwmod omap3xxx_wd_timer2_hwmod;
53 static struct omap_hwmod omap3430es1_dss_core_hwmod;
54 static struct omap_hwmod omap3xxx_dss_core_hwmod;
55 static struct omap_hwmod omap3xxx_dss_dispc_hwmod;
56 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod;
57 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod;
58 static struct omap_hwmod omap3xxx_dss_venc_hwmod;
59 static struct omap_hwmod omap3xxx_i2c1_hwmod;
60 static struct omap_hwmod omap3xxx_i2c2_hwmod;
61 static struct omap_hwmod omap3xxx_i2c3_hwmod;
62 static struct omap_hwmod omap3xxx_gpio1_hwmod;
63 static struct omap_hwmod omap3xxx_gpio2_hwmod;
64 static struct omap_hwmod omap3xxx_gpio3_hwmod;
65 static struct omap_hwmod omap3xxx_gpio4_hwmod;
66 static struct omap_hwmod omap3xxx_gpio5_hwmod;
67 static struct omap_hwmod omap3xxx_gpio6_hwmod;
68 static struct omap_hwmod omap34xx_sr1_hwmod;
69 static struct omap_hwmod omap36xx_sr1_hwmod;
70 static struct omap_hwmod omap34xx_sr2_hwmod;
71 static struct omap_hwmod omap36xx_sr2_hwmod;
72 static struct omap_hwmod omap34xx_mcspi1;
73 static struct omap_hwmod omap34xx_mcspi2;
74 static struct omap_hwmod omap34xx_mcspi3;
75 static struct omap_hwmod omap34xx_mcspi4;
76 static struct omap_hwmod omap3xxx_mmc1_hwmod;
77 static struct omap_hwmod omap3xxx_mmc2_hwmod;
78 static struct omap_hwmod omap3xxx_mmc3_hwmod;
79 static struct omap_hwmod am35xx_usbhsotg_hwmod;
81 static struct omap_hwmod omap3xxx_dma_system_hwmod;
83 static struct omap_hwmod omap3xxx_mcbsp1_hwmod;
84 static struct omap_hwmod omap3xxx_mcbsp2_hwmod;
85 static struct omap_hwmod omap3xxx_mcbsp3_hwmod;
86 static struct omap_hwmod omap3xxx_mcbsp4_hwmod;
87 static struct omap_hwmod omap3xxx_mcbsp5_hwmod;
88 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod;
89 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod;
91 /* L3 -> L4_CORE interface */
92 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
93 .master = &omap3xxx_l3_main_hwmod,
94 .slave = &omap3xxx_l4_core_hwmod,
95 .user = OCP_USER_MPU | OCP_USER_SDMA,
98 /* L3 -> L4_PER interface */
99 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = {
100 .master = &omap3xxx_l3_main_hwmod,
101 .slave = &omap3xxx_l4_per_hwmod,
102 .user = OCP_USER_MPU | OCP_USER_SDMA,
105 /* L3 taret configuration and error log registers */
106 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = {
107 { .irq = INT_34XX_L3_DBG_IRQ },
108 { .irq = INT_34XX_L3_APP_IRQ },
112 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs[] = {
114 .pa_start = 0x68000000,
115 .pa_end = 0x6800ffff,
116 .flags = ADDR_TYPE_RT,
121 /* MPU -> L3 interface */
122 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = {
123 .master = &omap3xxx_mpu_hwmod,
124 .slave = &omap3xxx_l3_main_hwmod,
125 .addr = omap3xxx_l3_main_addrs,
126 .user = OCP_USER_MPU,
129 /* Slave interfaces on the L3 interconnect */
130 static struct omap_hwmod_ocp_if *omap3xxx_l3_main_slaves[] = {
131 &omap3xxx_mpu__l3_main,
135 static struct omap_hwmod_ocp_if omap3xxx_dss__l3 = {
136 .master = &omap3xxx_dss_core_hwmod,
137 .slave = &omap3xxx_l3_main_hwmod,
140 .l3_perm_bit = OMAP3_L3_CORE_FW_INIT_ID_DSS,
141 .flags = OMAP_FIREWALL_L3,
144 .user = OCP_USER_MPU | OCP_USER_SDMA,
147 /* Master interfaces on the L3 interconnect */
148 static struct omap_hwmod_ocp_if *omap3xxx_l3_main_masters[] = {
149 &omap3xxx_l3_main__l4_core,
150 &omap3xxx_l3_main__l4_per,
154 static struct omap_hwmod omap3xxx_l3_main_hwmod = {
156 .class = &l3_hwmod_class,
157 .mpu_irqs = omap3xxx_l3_main_irqs,
158 .masters = omap3xxx_l3_main_masters,
159 .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters),
160 .slaves = omap3xxx_l3_main_slaves,
161 .slaves_cnt = ARRAY_SIZE(omap3xxx_l3_main_slaves),
162 .flags = HWMOD_NO_IDLEST,
165 static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
166 static struct omap_hwmod omap3xxx_uart1_hwmod;
167 static struct omap_hwmod omap3xxx_uart2_hwmod;
168 static struct omap_hwmod omap3xxx_uart3_hwmod;
169 static struct omap_hwmod omap36xx_uart4_hwmod;
170 static struct omap_hwmod omap3xxx_usbhsotg_hwmod;
172 /* l3_core -> usbhsotg interface */
173 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3 = {
174 .master = &omap3xxx_usbhsotg_hwmod,
175 .slave = &omap3xxx_l3_main_hwmod,
176 .clk = "core_l3_ick",
177 .user = OCP_USER_MPU,
180 /* l3_core -> am35xx_usbhsotg interface */
181 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3 = {
182 .master = &am35xx_usbhsotg_hwmod,
183 .slave = &omap3xxx_l3_main_hwmod,
184 .clk = "core_l3_ick",
185 .user = OCP_USER_MPU,
187 /* L4_CORE -> L4_WKUP interface */
188 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
189 .master = &omap3xxx_l4_core_hwmod,
190 .slave = &omap3xxx_l4_wkup_hwmod,
191 .user = OCP_USER_MPU | OCP_USER_SDMA,
194 /* L4 CORE -> MMC1 interface */
195 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc1 = {
196 .master = &omap3xxx_l4_core_hwmod,
197 .slave = &omap3xxx_mmc1_hwmod,
199 .addr = omap2430_mmc1_addr_space,
200 .user = OCP_USER_MPU | OCP_USER_SDMA,
201 .flags = OMAP_FIREWALL_L4
204 /* L4 CORE -> MMC2 interface */
205 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc2 = {
206 .master = &omap3xxx_l4_core_hwmod,
207 .slave = &omap3xxx_mmc2_hwmod,
209 .addr = omap2430_mmc2_addr_space,
210 .user = OCP_USER_MPU | OCP_USER_SDMA,
211 .flags = OMAP_FIREWALL_L4
214 /* L4 CORE -> MMC3 interface */
215 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space[] = {
217 .pa_start = 0x480ad000,
218 .pa_end = 0x480ad1ff,
219 .flags = ADDR_TYPE_RT,
224 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3 = {
225 .master = &omap3xxx_l4_core_hwmod,
226 .slave = &omap3xxx_mmc3_hwmod,
228 .addr = omap3xxx_mmc3_addr_space,
229 .user = OCP_USER_MPU | OCP_USER_SDMA,
230 .flags = OMAP_FIREWALL_L4
233 /* L4 CORE -> UART1 interface */
234 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = {
236 .pa_start = OMAP3_UART1_BASE,
237 .pa_end = OMAP3_UART1_BASE + SZ_8K - 1,
238 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
243 static struct omap_hwmod_ocp_if omap3_l4_core__uart1 = {
244 .master = &omap3xxx_l4_core_hwmod,
245 .slave = &omap3xxx_uart1_hwmod,
247 .addr = omap3xxx_uart1_addr_space,
248 .user = OCP_USER_MPU | OCP_USER_SDMA,
251 /* L4 CORE -> UART2 interface */
252 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space[] = {
254 .pa_start = OMAP3_UART2_BASE,
255 .pa_end = OMAP3_UART2_BASE + SZ_1K - 1,
256 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
261 static struct omap_hwmod_ocp_if omap3_l4_core__uart2 = {
262 .master = &omap3xxx_l4_core_hwmod,
263 .slave = &omap3xxx_uart2_hwmod,
265 .addr = omap3xxx_uart2_addr_space,
266 .user = OCP_USER_MPU | OCP_USER_SDMA,
269 /* L4 PER -> UART3 interface */
270 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space[] = {
272 .pa_start = OMAP3_UART3_BASE,
273 .pa_end = OMAP3_UART3_BASE + SZ_1K - 1,
274 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
279 static struct omap_hwmod_ocp_if omap3_l4_per__uart3 = {
280 .master = &omap3xxx_l4_per_hwmod,
281 .slave = &omap3xxx_uart3_hwmod,
283 .addr = omap3xxx_uart3_addr_space,
284 .user = OCP_USER_MPU | OCP_USER_SDMA,
287 /* L4 PER -> UART4 interface */
288 static struct omap_hwmod_addr_space omap36xx_uart4_addr_space[] = {
290 .pa_start = OMAP3_UART4_BASE,
291 .pa_end = OMAP3_UART4_BASE + SZ_1K - 1,
292 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
297 static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4 = {
298 .master = &omap3xxx_l4_per_hwmod,
299 .slave = &omap36xx_uart4_hwmod,
301 .addr = omap36xx_uart4_addr_space,
302 .user = OCP_USER_MPU | OCP_USER_SDMA,
305 /* L4 CORE -> I2C1 interface */
306 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1 = {
307 .master = &omap3xxx_l4_core_hwmod,
308 .slave = &omap3xxx_i2c1_hwmod,
310 .addr = omap2_i2c1_addr_space,
313 .l4_fw_region = OMAP3_L4_CORE_FW_I2C1_REGION,
315 .flags = OMAP_FIREWALL_L4,
318 .user = OCP_USER_MPU | OCP_USER_SDMA,
321 /* L4 CORE -> I2C2 interface */
322 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2 = {
323 .master = &omap3xxx_l4_core_hwmod,
324 .slave = &omap3xxx_i2c2_hwmod,
326 .addr = omap2_i2c2_addr_space,
329 .l4_fw_region = OMAP3_L4_CORE_FW_I2C2_REGION,
331 .flags = OMAP_FIREWALL_L4,
334 .user = OCP_USER_MPU | OCP_USER_SDMA,
337 /* L4 CORE -> I2C3 interface */
338 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space[] = {
340 .pa_start = 0x48060000,
341 .pa_end = 0x48060000 + SZ_128 - 1,
342 .flags = ADDR_TYPE_RT,
347 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3 = {
348 .master = &omap3xxx_l4_core_hwmod,
349 .slave = &omap3xxx_i2c3_hwmod,
351 .addr = omap3xxx_i2c3_addr_space,
354 .l4_fw_region = OMAP3_L4_CORE_FW_I2C3_REGION,
356 .flags = OMAP_FIREWALL_L4,
359 .user = OCP_USER_MPU | OCP_USER_SDMA,
362 static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = {
367 static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = {
372 /* L4 CORE -> SR1 interface */
373 static struct omap_hwmod_addr_space omap3_sr1_addr_space[] = {
375 .pa_start = OMAP34XX_SR1_BASE,
376 .pa_end = OMAP34XX_SR1_BASE + SZ_1K - 1,
377 .flags = ADDR_TYPE_RT,
382 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1 = {
383 .master = &omap3xxx_l4_core_hwmod,
384 .slave = &omap34xx_sr1_hwmod,
386 .addr = omap3_sr1_addr_space,
387 .user = OCP_USER_MPU,
390 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1 = {
391 .master = &omap3xxx_l4_core_hwmod,
392 .slave = &omap36xx_sr1_hwmod,
394 .addr = omap3_sr1_addr_space,
395 .user = OCP_USER_MPU,
398 /* L4 CORE -> SR1 interface */
399 static struct omap_hwmod_addr_space omap3_sr2_addr_space[] = {
401 .pa_start = OMAP34XX_SR2_BASE,
402 .pa_end = OMAP34XX_SR2_BASE + SZ_1K - 1,
403 .flags = ADDR_TYPE_RT,
408 static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2 = {
409 .master = &omap3xxx_l4_core_hwmod,
410 .slave = &omap34xx_sr2_hwmod,
412 .addr = omap3_sr2_addr_space,
413 .user = OCP_USER_MPU,
416 static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2 = {
417 .master = &omap3xxx_l4_core_hwmod,
418 .slave = &omap36xx_sr2_hwmod,
420 .addr = omap3_sr2_addr_space,
421 .user = OCP_USER_MPU,
425 * usbhsotg interface data
428 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs[] = {
430 .pa_start = OMAP34XX_HSUSB_OTG_BASE,
431 .pa_end = OMAP34XX_HSUSB_OTG_BASE + SZ_4K - 1,
432 .flags = ADDR_TYPE_RT
437 /* l4_core -> usbhsotg */
438 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg = {
439 .master = &omap3xxx_l4_core_hwmod,
440 .slave = &omap3xxx_usbhsotg_hwmod,
442 .addr = omap3xxx_usbhsotg_addrs,
443 .user = OCP_USER_MPU,
446 static struct omap_hwmod_ocp_if *omap3xxx_usbhsotg_masters[] = {
447 &omap3xxx_usbhsotg__l3,
450 static struct omap_hwmod_ocp_if *omap3xxx_usbhsotg_slaves[] = {
451 &omap3xxx_l4_core__usbhsotg,
454 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs[] = {
456 .pa_start = AM35XX_IPSS_USBOTGSS_BASE,
457 .pa_end = AM35XX_IPSS_USBOTGSS_BASE + SZ_4K - 1,
458 .flags = ADDR_TYPE_RT
463 /* l4_core -> usbhsotg */
464 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg = {
465 .master = &omap3xxx_l4_core_hwmod,
466 .slave = &am35xx_usbhsotg_hwmod,
468 .addr = am35xx_usbhsotg_addrs,
469 .user = OCP_USER_MPU,
472 static struct omap_hwmod_ocp_if *am35xx_usbhsotg_masters[] = {
473 &am35xx_usbhsotg__l3,
476 static struct omap_hwmod_ocp_if *am35xx_usbhsotg_slaves[] = {
477 &am35xx_l4_core__usbhsotg,
479 /* Slave interfaces on the L4_CORE interconnect */
480 static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
481 &omap3xxx_l3_main__l4_core,
485 static struct omap_hwmod omap3xxx_l4_core_hwmod = {
487 .class = &l4_hwmod_class,
488 .slaves = omap3xxx_l4_core_slaves,
489 .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_core_slaves),
490 .flags = HWMOD_NO_IDLEST,
493 /* Slave interfaces on the L4_PER interconnect */
494 static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
495 &omap3xxx_l3_main__l4_per,
499 static struct omap_hwmod omap3xxx_l4_per_hwmod = {
501 .class = &l4_hwmod_class,
502 .slaves = omap3xxx_l4_per_slaves,
503 .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_per_slaves),
504 .flags = HWMOD_NO_IDLEST,
507 /* Slave interfaces on the L4_WKUP interconnect */
508 static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
509 &omap3xxx_l4_core__l4_wkup,
513 static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
515 .class = &l4_hwmod_class,
516 .slaves = omap3xxx_l4_wkup_slaves,
517 .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_slaves),
518 .flags = HWMOD_NO_IDLEST,
521 /* Master interfaces on the MPU device */
522 static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = {
523 &omap3xxx_mpu__l3_main,
527 static struct omap_hwmod omap3xxx_mpu_hwmod = {
529 .class = &mpu_hwmod_class,
530 .main_clk = "arm_fck",
531 .masters = omap3xxx_mpu_masters,
532 .masters_cnt = ARRAY_SIZE(omap3xxx_mpu_masters),
536 * IVA2_2 interface data
539 /* IVA2 <- L3 interface */
540 static struct omap_hwmod_ocp_if omap3xxx_l3__iva = {
541 .master = &omap3xxx_l3_main_hwmod,
542 .slave = &omap3xxx_iva_hwmod,
544 .user = OCP_USER_MPU | OCP_USER_SDMA,
547 static struct omap_hwmod_ocp_if *omap3xxx_iva_masters[] = {
555 static struct omap_hwmod omap3xxx_iva_hwmod = {
557 .class = &iva_hwmod_class,
558 .masters = omap3xxx_iva_masters,
559 .masters_cnt = ARRAY_SIZE(omap3xxx_iva_masters),
563 static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc = {
567 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
568 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
569 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE),
570 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
571 .sysc_fields = &omap_hwmod_sysc_type1,
574 static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class = {
576 .sysc = &omap3xxx_timer_1ms_sysc,
577 .rev = OMAP_TIMER_IP_VERSION_1,
580 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc = {
584 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
585 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
586 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
587 .sysc_fields = &omap_hwmod_sysc_type1,
590 static struct omap_hwmod_class omap3xxx_timer_hwmod_class = {
592 .sysc = &omap3xxx_timer_sysc,
593 .rev = OMAP_TIMER_IP_VERSION_1,
596 /* secure timers dev attribute */
597 static struct omap_timer_capability_dev_attr capability_secure_dev_attr = {
598 .timer_capability = OMAP_TIMER_SECURE,
601 /* always-on timers dev attribute */
602 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
603 .timer_capability = OMAP_TIMER_ALWON,
606 /* pwm timers dev attribute */
607 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
608 .timer_capability = OMAP_TIMER_HAS_PWM,
612 static struct omap_hwmod omap3xxx_timer1_hwmod;
614 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs[] = {
616 .pa_start = 0x48318000,
617 .pa_end = 0x48318000 + SZ_1K - 1,
618 .flags = ADDR_TYPE_RT
623 /* l4_wkup -> timer1 */
624 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1 = {
625 .master = &omap3xxx_l4_wkup_hwmod,
626 .slave = &omap3xxx_timer1_hwmod,
628 .addr = omap3xxx_timer1_addrs,
629 .user = OCP_USER_MPU | OCP_USER_SDMA,
632 /* timer1 slave port */
633 static struct omap_hwmod_ocp_if *omap3xxx_timer1_slaves[] = {
634 &omap3xxx_l4_wkup__timer1,
638 static struct omap_hwmod omap3xxx_timer1_hwmod = {
640 .mpu_irqs = omap2_timer1_mpu_irqs,
641 .main_clk = "gpt1_fck",
645 .module_bit = OMAP3430_EN_GPT1_SHIFT,
646 .module_offs = WKUP_MOD,
648 .idlest_idle_bit = OMAP3430_ST_GPT1_SHIFT,
651 .dev_attr = &capability_alwon_dev_attr,
652 .slaves = omap3xxx_timer1_slaves,
653 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer1_slaves),
654 .class = &omap3xxx_timer_1ms_hwmod_class,
658 static struct omap_hwmod omap3xxx_timer2_hwmod;
660 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs[] = {
662 .pa_start = 0x49032000,
663 .pa_end = 0x49032000 + SZ_1K - 1,
664 .flags = ADDR_TYPE_RT
669 /* l4_per -> timer2 */
670 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2 = {
671 .master = &omap3xxx_l4_per_hwmod,
672 .slave = &omap3xxx_timer2_hwmod,
674 .addr = omap3xxx_timer2_addrs,
675 .user = OCP_USER_MPU | OCP_USER_SDMA,
678 /* timer2 slave port */
679 static struct omap_hwmod_ocp_if *omap3xxx_timer2_slaves[] = {
680 &omap3xxx_l4_per__timer2,
684 static struct omap_hwmod omap3xxx_timer2_hwmod = {
686 .mpu_irqs = omap2_timer2_mpu_irqs,
687 .main_clk = "gpt2_fck",
691 .module_bit = OMAP3430_EN_GPT2_SHIFT,
692 .module_offs = OMAP3430_PER_MOD,
694 .idlest_idle_bit = OMAP3430_ST_GPT2_SHIFT,
697 .dev_attr = &capability_alwon_dev_attr,
698 .slaves = omap3xxx_timer2_slaves,
699 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer2_slaves),
700 .class = &omap3xxx_timer_1ms_hwmod_class,
704 static struct omap_hwmod omap3xxx_timer3_hwmod;
706 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs[] = {
708 .pa_start = 0x49034000,
709 .pa_end = 0x49034000 + SZ_1K - 1,
710 .flags = ADDR_TYPE_RT
715 /* l4_per -> timer3 */
716 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3 = {
717 .master = &omap3xxx_l4_per_hwmod,
718 .slave = &omap3xxx_timer3_hwmod,
720 .addr = omap3xxx_timer3_addrs,
721 .user = OCP_USER_MPU | OCP_USER_SDMA,
724 /* timer3 slave port */
725 static struct omap_hwmod_ocp_if *omap3xxx_timer3_slaves[] = {
726 &omap3xxx_l4_per__timer3,
730 static struct omap_hwmod omap3xxx_timer3_hwmod = {
732 .mpu_irqs = omap2_timer3_mpu_irqs,
733 .main_clk = "gpt3_fck",
737 .module_bit = OMAP3430_EN_GPT3_SHIFT,
738 .module_offs = OMAP3430_PER_MOD,
740 .idlest_idle_bit = OMAP3430_ST_GPT3_SHIFT,
743 .dev_attr = &capability_alwon_dev_attr,
744 .slaves = omap3xxx_timer3_slaves,
745 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer3_slaves),
746 .class = &omap3xxx_timer_hwmod_class,
750 static struct omap_hwmod omap3xxx_timer4_hwmod;
752 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs[] = {
754 .pa_start = 0x49036000,
755 .pa_end = 0x49036000 + SZ_1K - 1,
756 .flags = ADDR_TYPE_RT
761 /* l4_per -> timer4 */
762 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4 = {
763 .master = &omap3xxx_l4_per_hwmod,
764 .slave = &omap3xxx_timer4_hwmod,
766 .addr = omap3xxx_timer4_addrs,
767 .user = OCP_USER_MPU | OCP_USER_SDMA,
770 /* timer4 slave port */
771 static struct omap_hwmod_ocp_if *omap3xxx_timer4_slaves[] = {
772 &omap3xxx_l4_per__timer4,
776 static struct omap_hwmod omap3xxx_timer4_hwmod = {
778 .mpu_irqs = omap2_timer4_mpu_irqs,
779 .main_clk = "gpt4_fck",
783 .module_bit = OMAP3430_EN_GPT4_SHIFT,
784 .module_offs = OMAP3430_PER_MOD,
786 .idlest_idle_bit = OMAP3430_ST_GPT4_SHIFT,
789 .dev_attr = &capability_alwon_dev_attr,
790 .slaves = omap3xxx_timer4_slaves,
791 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer4_slaves),
792 .class = &omap3xxx_timer_hwmod_class,
796 static struct omap_hwmod omap3xxx_timer5_hwmod;
798 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs[] = {
800 .pa_start = 0x49038000,
801 .pa_end = 0x49038000 + SZ_1K - 1,
802 .flags = ADDR_TYPE_RT
807 /* l4_per -> timer5 */
808 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5 = {
809 .master = &omap3xxx_l4_per_hwmod,
810 .slave = &omap3xxx_timer5_hwmod,
812 .addr = omap3xxx_timer5_addrs,
813 .user = OCP_USER_MPU | OCP_USER_SDMA,
816 /* timer5 slave port */
817 static struct omap_hwmod_ocp_if *omap3xxx_timer5_slaves[] = {
818 &omap3xxx_l4_per__timer5,
822 static struct omap_hwmod omap3xxx_timer5_hwmod = {
824 .mpu_irqs = omap2_timer5_mpu_irqs,
825 .main_clk = "gpt5_fck",
829 .module_bit = OMAP3430_EN_GPT5_SHIFT,
830 .module_offs = OMAP3430_PER_MOD,
832 .idlest_idle_bit = OMAP3430_ST_GPT5_SHIFT,
835 .dev_attr = &capability_alwon_dev_attr,
836 .slaves = omap3xxx_timer5_slaves,
837 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer5_slaves),
838 .class = &omap3xxx_timer_hwmod_class,
842 static struct omap_hwmod omap3xxx_timer6_hwmod;
844 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs[] = {
846 .pa_start = 0x4903A000,
847 .pa_end = 0x4903A000 + SZ_1K - 1,
848 .flags = ADDR_TYPE_RT
853 /* l4_per -> timer6 */
854 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6 = {
855 .master = &omap3xxx_l4_per_hwmod,
856 .slave = &omap3xxx_timer6_hwmod,
858 .addr = omap3xxx_timer6_addrs,
859 .user = OCP_USER_MPU | OCP_USER_SDMA,
862 /* timer6 slave port */
863 static struct omap_hwmod_ocp_if *omap3xxx_timer6_slaves[] = {
864 &omap3xxx_l4_per__timer6,
868 static struct omap_hwmod omap3xxx_timer6_hwmod = {
870 .mpu_irqs = omap2_timer6_mpu_irqs,
871 .main_clk = "gpt6_fck",
875 .module_bit = OMAP3430_EN_GPT6_SHIFT,
876 .module_offs = OMAP3430_PER_MOD,
878 .idlest_idle_bit = OMAP3430_ST_GPT6_SHIFT,
881 .dev_attr = &capability_alwon_dev_attr,
882 .slaves = omap3xxx_timer6_slaves,
883 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer6_slaves),
884 .class = &omap3xxx_timer_hwmod_class,
888 static struct omap_hwmod omap3xxx_timer7_hwmod;
890 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs[] = {
892 .pa_start = 0x4903C000,
893 .pa_end = 0x4903C000 + SZ_1K - 1,
894 .flags = ADDR_TYPE_RT
899 /* l4_per -> timer7 */
900 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7 = {
901 .master = &omap3xxx_l4_per_hwmod,
902 .slave = &omap3xxx_timer7_hwmod,
904 .addr = omap3xxx_timer7_addrs,
905 .user = OCP_USER_MPU | OCP_USER_SDMA,
908 /* timer7 slave port */
909 static struct omap_hwmod_ocp_if *omap3xxx_timer7_slaves[] = {
910 &omap3xxx_l4_per__timer7,
914 static struct omap_hwmod omap3xxx_timer7_hwmod = {
916 .mpu_irqs = omap2_timer7_mpu_irqs,
917 .main_clk = "gpt7_fck",
921 .module_bit = OMAP3430_EN_GPT7_SHIFT,
922 .module_offs = OMAP3430_PER_MOD,
924 .idlest_idle_bit = OMAP3430_ST_GPT7_SHIFT,
927 .dev_attr = &capability_alwon_dev_attr,
928 .slaves = omap3xxx_timer7_slaves,
929 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer7_slaves),
930 .class = &omap3xxx_timer_hwmod_class,
934 static struct omap_hwmod omap3xxx_timer8_hwmod;
936 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs[] = {
938 .pa_start = 0x4903E000,
939 .pa_end = 0x4903E000 + SZ_1K - 1,
940 .flags = ADDR_TYPE_RT
945 /* l4_per -> timer8 */
946 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8 = {
947 .master = &omap3xxx_l4_per_hwmod,
948 .slave = &omap3xxx_timer8_hwmod,
950 .addr = omap3xxx_timer8_addrs,
951 .user = OCP_USER_MPU | OCP_USER_SDMA,
954 /* timer8 slave port */
955 static struct omap_hwmod_ocp_if *omap3xxx_timer8_slaves[] = {
956 &omap3xxx_l4_per__timer8,
960 static struct omap_hwmod omap3xxx_timer8_hwmod = {
962 .mpu_irqs = omap2_timer8_mpu_irqs,
963 .main_clk = "gpt8_fck",
967 .module_bit = OMAP3430_EN_GPT8_SHIFT,
968 .module_offs = OMAP3430_PER_MOD,
970 .idlest_idle_bit = OMAP3430_ST_GPT8_SHIFT,
973 .dev_attr = &capability_pwm_dev_attr,
974 .slaves = omap3xxx_timer8_slaves,
975 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer8_slaves),
976 .class = &omap3xxx_timer_hwmod_class,
980 static struct omap_hwmod omap3xxx_timer9_hwmod;
982 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs[] = {
984 .pa_start = 0x49040000,
985 .pa_end = 0x49040000 + SZ_1K - 1,
986 .flags = ADDR_TYPE_RT
991 /* l4_per -> timer9 */
992 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9 = {
993 .master = &omap3xxx_l4_per_hwmod,
994 .slave = &omap3xxx_timer9_hwmod,
996 .addr = omap3xxx_timer9_addrs,
997 .user = OCP_USER_MPU | OCP_USER_SDMA,
1000 /* timer9 slave port */
1001 static struct omap_hwmod_ocp_if *omap3xxx_timer9_slaves[] = {
1002 &omap3xxx_l4_per__timer9,
1006 static struct omap_hwmod omap3xxx_timer9_hwmod = {
1008 .mpu_irqs = omap2_timer9_mpu_irqs,
1009 .main_clk = "gpt9_fck",
1013 .module_bit = OMAP3430_EN_GPT9_SHIFT,
1014 .module_offs = OMAP3430_PER_MOD,
1016 .idlest_idle_bit = OMAP3430_ST_GPT9_SHIFT,
1019 .dev_attr = &capability_pwm_dev_attr,
1020 .slaves = omap3xxx_timer9_slaves,
1021 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer9_slaves),
1022 .class = &omap3xxx_timer_hwmod_class,
1026 static struct omap_hwmod omap3xxx_timer10_hwmod;
1028 /* l4_core -> timer10 */
1029 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10 = {
1030 .master = &omap3xxx_l4_core_hwmod,
1031 .slave = &omap3xxx_timer10_hwmod,
1033 .addr = omap2_timer10_addrs,
1034 .user = OCP_USER_MPU | OCP_USER_SDMA,
1037 /* timer10 slave port */
1038 static struct omap_hwmod_ocp_if *omap3xxx_timer10_slaves[] = {
1039 &omap3xxx_l4_core__timer10,
1043 static struct omap_hwmod omap3xxx_timer10_hwmod = {
1045 .mpu_irqs = omap2_timer10_mpu_irqs,
1046 .main_clk = "gpt10_fck",
1050 .module_bit = OMAP3430_EN_GPT10_SHIFT,
1051 .module_offs = CORE_MOD,
1053 .idlest_idle_bit = OMAP3430_ST_GPT10_SHIFT,
1056 .dev_attr = &capability_pwm_dev_attr,
1057 .slaves = omap3xxx_timer10_slaves,
1058 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer10_slaves),
1059 .class = &omap3xxx_timer_1ms_hwmod_class,
1063 static struct omap_hwmod omap3xxx_timer11_hwmod;
1065 /* l4_core -> timer11 */
1066 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11 = {
1067 .master = &omap3xxx_l4_core_hwmod,
1068 .slave = &omap3xxx_timer11_hwmod,
1070 .addr = omap2_timer11_addrs,
1071 .user = OCP_USER_MPU | OCP_USER_SDMA,
1074 /* timer11 slave port */
1075 static struct omap_hwmod_ocp_if *omap3xxx_timer11_slaves[] = {
1076 &omap3xxx_l4_core__timer11,
1080 static struct omap_hwmod omap3xxx_timer11_hwmod = {
1082 .mpu_irqs = omap2_timer11_mpu_irqs,
1083 .main_clk = "gpt11_fck",
1087 .module_bit = OMAP3430_EN_GPT11_SHIFT,
1088 .module_offs = CORE_MOD,
1090 .idlest_idle_bit = OMAP3430_ST_GPT11_SHIFT,
1093 .dev_attr = &capability_pwm_dev_attr,
1094 .slaves = omap3xxx_timer11_slaves,
1095 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer11_slaves),
1096 .class = &omap3xxx_timer_hwmod_class,
1100 static struct omap_hwmod omap3xxx_timer12_hwmod;
1101 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs[] = {
1106 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs[] = {
1108 .pa_start = 0x48304000,
1109 .pa_end = 0x48304000 + SZ_1K - 1,
1110 .flags = ADDR_TYPE_RT
1115 /* l4_core -> timer12 */
1116 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer12 = {
1117 .master = &omap3xxx_l4_core_hwmod,
1118 .slave = &omap3xxx_timer12_hwmod,
1120 .addr = omap3xxx_timer12_addrs,
1121 .user = OCP_USER_MPU | OCP_USER_SDMA,
1124 /* timer12 slave port */
1125 static struct omap_hwmod_ocp_if *omap3xxx_timer12_slaves[] = {
1126 &omap3xxx_l4_core__timer12,
1130 static struct omap_hwmod omap3xxx_timer12_hwmod = {
1132 .mpu_irqs = omap3xxx_timer12_mpu_irqs,
1133 .main_clk = "gpt12_fck",
1137 .module_bit = OMAP3430_EN_GPT12_SHIFT,
1138 .module_offs = WKUP_MOD,
1140 .idlest_idle_bit = OMAP3430_ST_GPT12_SHIFT,
1143 .dev_attr = &capability_secure_dev_attr,
1144 .slaves = omap3xxx_timer12_slaves,
1145 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer12_slaves),
1146 .class = &omap3xxx_timer_hwmod_class,
1149 /* l4_wkup -> wd_timer2 */
1150 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs[] = {
1152 .pa_start = 0x48314000,
1153 .pa_end = 0x4831407f,
1154 .flags = ADDR_TYPE_RT
1159 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2 = {
1160 .master = &omap3xxx_l4_wkup_hwmod,
1161 .slave = &omap3xxx_wd_timer2_hwmod,
1163 .addr = omap3xxx_wd_timer2_addrs,
1164 .user = OCP_USER_MPU | OCP_USER_SDMA,
1169 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1170 * overflow condition
1173 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc = {
1175 .sysc_offs = 0x0010,
1176 .syss_offs = 0x0014,
1177 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
1178 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1179 SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1180 SYSS_HAS_RESET_STATUS),
1181 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1182 .sysc_fields = &omap_hwmod_sysc_type1,
1186 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1190 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1191 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1192 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1193 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1194 .sysc_fields = &omap_hwmod_sysc_type1,
1197 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class = {
1199 .sysc = &omap3xxx_wd_timer_sysc,
1200 .pre_shutdown = &omap2_wd_timer_disable
1204 static struct omap_hwmod_ocp_if *omap3xxx_wd_timer2_slaves[] = {
1205 &omap3xxx_l4_wkup__wd_timer2,
1208 static struct omap_hwmod omap3xxx_wd_timer2_hwmod = {
1209 .name = "wd_timer2",
1210 .class = &omap3xxx_wd_timer_hwmod_class,
1211 .main_clk = "wdt2_fck",
1215 .module_bit = OMAP3430_EN_WDT2_SHIFT,
1216 .module_offs = WKUP_MOD,
1218 .idlest_idle_bit = OMAP3430_ST_WDT2_SHIFT,
1221 .slaves = omap3xxx_wd_timer2_slaves,
1222 .slaves_cnt = ARRAY_SIZE(omap3xxx_wd_timer2_slaves),
1224 * XXX: Use software supervised mode, HW supervised smartidle seems to
1225 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
1227 .flags = HWMOD_SWSUP_SIDLE,
1232 static struct omap_hwmod_ocp_if *omap3xxx_uart1_slaves[] = {
1233 &omap3_l4_core__uart1,
1236 static struct omap_hwmod omap3xxx_uart1_hwmod = {
1238 .mpu_irqs = omap2_uart1_mpu_irqs,
1239 .sdma_reqs = omap2_uart1_sdma_reqs,
1240 .main_clk = "uart1_fck",
1243 .module_offs = CORE_MOD,
1245 .module_bit = OMAP3430_EN_UART1_SHIFT,
1247 .idlest_idle_bit = OMAP3430_EN_UART1_SHIFT,
1250 .slaves = omap3xxx_uart1_slaves,
1251 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart1_slaves),
1252 .class = &omap2_uart_class,
1257 static struct omap_hwmod_ocp_if *omap3xxx_uart2_slaves[] = {
1258 &omap3_l4_core__uart2,
1261 static struct omap_hwmod omap3xxx_uart2_hwmod = {
1263 .mpu_irqs = omap2_uart2_mpu_irqs,
1264 .sdma_reqs = omap2_uart2_sdma_reqs,
1265 .main_clk = "uart2_fck",
1268 .module_offs = CORE_MOD,
1270 .module_bit = OMAP3430_EN_UART2_SHIFT,
1272 .idlest_idle_bit = OMAP3430_EN_UART2_SHIFT,
1275 .slaves = omap3xxx_uart2_slaves,
1276 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart2_slaves),
1277 .class = &omap2_uart_class,
1282 static struct omap_hwmod_ocp_if *omap3xxx_uart3_slaves[] = {
1283 &omap3_l4_per__uart3,
1286 static struct omap_hwmod omap3xxx_uart3_hwmod = {
1288 .mpu_irqs = omap2_uart3_mpu_irqs,
1289 .sdma_reqs = omap2_uart3_sdma_reqs,
1290 .main_clk = "uart3_fck",
1293 .module_offs = OMAP3430_PER_MOD,
1295 .module_bit = OMAP3430_EN_UART3_SHIFT,
1297 .idlest_idle_bit = OMAP3430_EN_UART3_SHIFT,
1300 .slaves = omap3xxx_uart3_slaves,
1301 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart3_slaves),
1302 .class = &omap2_uart_class,
1307 static struct omap_hwmod_irq_info uart4_mpu_irqs[] = {
1308 { .irq = INT_36XX_UART4_IRQ, },
1312 static struct omap_hwmod_dma_info uart4_sdma_reqs[] = {
1313 { .name = "rx", .dma_req = OMAP36XX_DMA_UART4_RX, },
1314 { .name = "tx", .dma_req = OMAP36XX_DMA_UART4_TX, },
1318 static struct omap_hwmod_ocp_if *omap3xxx_uart4_slaves[] = {
1319 &omap36xx_l4_per__uart4,
1322 static struct omap_hwmod omap36xx_uart4_hwmod = {
1324 .mpu_irqs = uart4_mpu_irqs,
1325 .sdma_reqs = uart4_sdma_reqs,
1326 .main_clk = "uart4_fck",
1327 .flags = HWMOD_SWSUP_SIDLE,
1330 .module_offs = OMAP3430_PER_MOD,
1332 .module_bit = OMAP3630_EN_UART4_SHIFT,
1334 .idlest_idle_bit = OMAP3630_EN_UART4_SHIFT,
1337 .slaves = omap3xxx_uart4_slaves,
1338 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart4_slaves),
1339 .class = &omap2_uart_class,
1342 static struct omap_hwmod_class i2c_class = {
1345 .rev = OMAP_I2C_IP_VERSION_1,
1346 .reset = &omap_i2c_reset,
1349 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs[] = {
1350 { .name = "dispc", .dma_req = 5 },
1351 { .name = "dsi1", .dma_req = 74 },
1356 /* dss master ports */
1357 static struct omap_hwmod_ocp_if *omap3xxx_dss_masters[] = {
1361 /* l4_core -> dss */
1362 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss = {
1363 .master = &omap3xxx_l4_core_hwmod,
1364 .slave = &omap3430es1_dss_core_hwmod,
1366 .addr = omap2_dss_addrs,
1369 .l4_fw_region = OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION,
1370 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1371 .flags = OMAP_FIREWALL_L4,
1374 .user = OCP_USER_MPU | OCP_USER_SDMA,
1377 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss = {
1378 .master = &omap3xxx_l4_core_hwmod,
1379 .slave = &omap3xxx_dss_core_hwmod,
1381 .addr = omap2_dss_addrs,
1384 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_CORE_REGION,
1385 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1386 .flags = OMAP_FIREWALL_L4,
1389 .flags = OCPIF_SWSUP_IDLE,
1390 .user = OCP_USER_MPU | OCP_USER_SDMA,
1393 /* dss slave ports */
1394 static struct omap_hwmod_ocp_if *omap3430es1_dss_slaves[] = {
1395 &omap3430es1_l4_core__dss,
1398 static struct omap_hwmod_ocp_if *omap3xxx_dss_slaves[] = {
1399 &omap3xxx_l4_core__dss,
1402 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1404 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
1405 * driver does not use these clocks.
1407 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
1408 { .role = "tv_clk", .clk = "dss_tv_fck" },
1409 /* required only on OMAP3430 */
1410 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
1413 static struct omap_hwmod omap3430es1_dss_core_hwmod = {
1415 .class = &omap2_dss_hwmod_class,
1416 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
1417 .sdma_reqs = omap3xxx_dss_sdma_chs,
1421 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1422 .module_offs = OMAP3430_DSS_MOD,
1424 .idlest_stdby_bit = OMAP3430ES1_ST_DSS_SHIFT,
1427 .opt_clks = dss_opt_clks,
1428 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1429 .slaves = omap3430es1_dss_slaves,
1430 .slaves_cnt = ARRAY_SIZE(omap3430es1_dss_slaves),
1431 .masters = omap3xxx_dss_masters,
1432 .masters_cnt = ARRAY_SIZE(omap3xxx_dss_masters),
1433 .flags = HWMOD_NO_IDLEST | HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1436 static struct omap_hwmod omap3xxx_dss_core_hwmod = {
1438 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1439 .class = &omap2_dss_hwmod_class,
1440 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
1441 .sdma_reqs = omap3xxx_dss_sdma_chs,
1445 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1446 .module_offs = OMAP3430_DSS_MOD,
1448 .idlest_idle_bit = OMAP3430ES2_ST_DSS_IDLE_SHIFT,
1449 .idlest_stdby_bit = OMAP3430ES2_ST_DSS_STDBY_SHIFT,
1452 .opt_clks = dss_opt_clks,
1453 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1454 .slaves = omap3xxx_dss_slaves,
1455 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_slaves),
1456 .masters = omap3xxx_dss_masters,
1457 .masters_cnt = ARRAY_SIZE(omap3xxx_dss_masters),
1462 * display controller
1465 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc = {
1467 .sysc_offs = 0x0010,
1468 .syss_offs = 0x0014,
1469 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1470 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1471 SYSC_HAS_ENAWAKEUP),
1472 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1473 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1474 .sysc_fields = &omap_hwmod_sysc_type1,
1477 static struct omap_hwmod_class omap3_dispc_hwmod_class = {
1479 .sysc = &omap3_dispc_sysc,
1482 /* l4_core -> dss_dispc */
1483 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc = {
1484 .master = &omap3xxx_l4_core_hwmod,
1485 .slave = &omap3xxx_dss_dispc_hwmod,
1487 .addr = omap2_dss_dispc_addrs,
1490 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DISPC_REGION,
1491 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1492 .flags = OMAP_FIREWALL_L4,
1495 .flags = OCPIF_SWSUP_IDLE,
1496 .user = OCP_USER_MPU | OCP_USER_SDMA,
1499 /* dss_dispc slave ports */
1500 static struct omap_hwmod_ocp_if *omap3xxx_dss_dispc_slaves[] = {
1501 &omap3xxx_l4_core__dss_dispc,
1504 static struct omap_hwmod omap3xxx_dss_dispc_hwmod = {
1505 .name = "dss_dispc",
1506 .class = &omap3_dispc_hwmod_class,
1507 .mpu_irqs = omap2_dispc_irqs,
1508 .main_clk = "dss1_alwon_fck",
1512 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1513 .module_offs = OMAP3430_DSS_MOD,
1516 .slaves = omap3xxx_dss_dispc_slaves,
1517 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_dispc_slaves),
1518 .flags = HWMOD_NO_IDLEST,
1519 .dev_attr = &omap2_3_dss_dispc_dev_attr
1524 * display serial interface controller
1527 static struct omap_hwmod_class_sysconfig omap3xxx_dsi_sysc = {
1529 .sysc_offs = 0x0010,
1530 .syss_offs = 0x0014,
1531 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1532 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1533 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1534 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1535 .sysc_fields = &omap_hwmod_sysc_type1,
1538 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = {
1540 .sysc = &omap3xxx_dsi_sysc,
1543 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = {
1549 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs[] = {
1551 .pa_start = 0x4804FC00,
1552 .pa_end = 0x4804FFFF,
1553 .flags = ADDR_TYPE_RT
1558 /* l4_core -> dss_dsi1 */
1559 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1 = {
1560 .master = &omap3xxx_l4_core_hwmod,
1561 .slave = &omap3xxx_dss_dsi1_hwmod,
1563 .addr = omap3xxx_dss_dsi1_addrs,
1566 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DSI_REGION,
1567 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1568 .flags = OMAP_FIREWALL_L4,
1571 .flags = OCPIF_SWSUP_IDLE,
1572 .user = OCP_USER_MPU | OCP_USER_SDMA,
1575 /* dss_dsi1 slave ports */
1576 static struct omap_hwmod_ocp_if *omap3xxx_dss_dsi1_slaves[] = {
1577 &omap3xxx_l4_core__dss_dsi1,
1580 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
1581 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
1584 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod = {
1586 .class = &omap3xxx_dsi_hwmod_class,
1587 .mpu_irqs = omap3xxx_dsi1_irqs,
1588 .main_clk = "dss1_alwon_fck",
1592 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1593 .module_offs = OMAP3430_DSS_MOD,
1596 .opt_clks = dss_dsi1_opt_clks,
1597 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
1598 .slaves = omap3xxx_dss_dsi1_slaves,
1599 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_dsi1_slaves),
1600 .flags = HWMOD_NO_IDLEST,
1603 /* l4_core -> dss_rfbi */
1604 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi = {
1605 .master = &omap3xxx_l4_core_hwmod,
1606 .slave = &omap3xxx_dss_rfbi_hwmod,
1608 .addr = omap2_dss_rfbi_addrs,
1611 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_RFBI_REGION,
1612 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP ,
1613 .flags = OMAP_FIREWALL_L4,
1616 .flags = OCPIF_SWSUP_IDLE,
1617 .user = OCP_USER_MPU | OCP_USER_SDMA,
1620 /* dss_rfbi slave ports */
1621 static struct omap_hwmod_ocp_if *omap3xxx_dss_rfbi_slaves[] = {
1622 &omap3xxx_l4_core__dss_rfbi,
1625 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
1626 { .role = "ick", .clk = "dss_ick" },
1629 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod = {
1631 .class = &omap2_rfbi_hwmod_class,
1632 .main_clk = "dss1_alwon_fck",
1636 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1637 .module_offs = OMAP3430_DSS_MOD,
1640 .opt_clks = dss_rfbi_opt_clks,
1641 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
1642 .slaves = omap3xxx_dss_rfbi_slaves,
1643 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_rfbi_slaves),
1644 .flags = HWMOD_NO_IDLEST,
1647 /* l4_core -> dss_venc */
1648 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc = {
1649 .master = &omap3xxx_l4_core_hwmod,
1650 .slave = &omap3xxx_dss_venc_hwmod,
1652 .addr = omap2_dss_venc_addrs,
1655 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_VENC_REGION,
1656 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1657 .flags = OMAP_FIREWALL_L4,
1660 .flags = OCPIF_SWSUP_IDLE,
1661 .user = OCP_USER_MPU | OCP_USER_SDMA,
1664 /* dss_venc slave ports */
1665 static struct omap_hwmod_ocp_if *omap3xxx_dss_venc_slaves[] = {
1666 &omap3xxx_l4_core__dss_venc,
1669 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
1670 /* required only on OMAP3430 */
1671 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
1674 static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
1676 .class = &omap2_venc_hwmod_class,
1677 .main_clk = "dss_tv_fck",
1681 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1682 .module_offs = OMAP3430_DSS_MOD,
1685 .opt_clks = dss_venc_opt_clks,
1686 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
1687 .slaves = omap3xxx_dss_venc_slaves,
1688 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_venc_slaves),
1689 .flags = HWMOD_NO_IDLEST,
1694 static struct omap_i2c_dev_attr i2c1_dev_attr = {
1695 .fifo_depth = 8, /* bytes */
1696 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1697 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1698 OMAP_I2C_FLAG_BUS_SHIFT_2,
1701 static struct omap_hwmod_ocp_if *omap3xxx_i2c1_slaves[] = {
1702 &omap3_l4_core__i2c1,
1705 static struct omap_hwmod omap3xxx_i2c1_hwmod = {
1707 .flags = HWMOD_16BIT_REG,
1708 .mpu_irqs = omap2_i2c1_mpu_irqs,
1709 .sdma_reqs = omap2_i2c1_sdma_reqs,
1710 .main_clk = "i2c1_fck",
1713 .module_offs = CORE_MOD,
1715 .module_bit = OMAP3430_EN_I2C1_SHIFT,
1717 .idlest_idle_bit = OMAP3430_ST_I2C1_SHIFT,
1720 .slaves = omap3xxx_i2c1_slaves,
1721 .slaves_cnt = ARRAY_SIZE(omap3xxx_i2c1_slaves),
1722 .class = &i2c_class,
1723 .dev_attr = &i2c1_dev_attr,
1728 static struct omap_i2c_dev_attr i2c2_dev_attr = {
1729 .fifo_depth = 8, /* bytes */
1730 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1731 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1732 OMAP_I2C_FLAG_BUS_SHIFT_2,
1735 static struct omap_hwmod_ocp_if *omap3xxx_i2c2_slaves[] = {
1736 &omap3_l4_core__i2c2,
1739 static struct omap_hwmod omap3xxx_i2c2_hwmod = {
1741 .flags = HWMOD_16BIT_REG,
1742 .mpu_irqs = omap2_i2c2_mpu_irqs,
1743 .sdma_reqs = omap2_i2c2_sdma_reqs,
1744 .main_clk = "i2c2_fck",
1747 .module_offs = CORE_MOD,
1749 .module_bit = OMAP3430_EN_I2C2_SHIFT,
1751 .idlest_idle_bit = OMAP3430_ST_I2C2_SHIFT,
1754 .slaves = omap3xxx_i2c2_slaves,
1755 .slaves_cnt = ARRAY_SIZE(omap3xxx_i2c2_slaves),
1756 .class = &i2c_class,
1757 .dev_attr = &i2c2_dev_attr,
1762 static struct omap_i2c_dev_attr i2c3_dev_attr = {
1763 .fifo_depth = 64, /* bytes */
1764 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1765 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1766 OMAP_I2C_FLAG_BUS_SHIFT_2,
1769 static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
1770 { .irq = INT_34XX_I2C3_IRQ, },
1774 static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = {
1775 { .name = "tx", .dma_req = OMAP34XX_DMA_I2C3_TX },
1776 { .name = "rx", .dma_req = OMAP34XX_DMA_I2C3_RX },
1780 static struct omap_hwmod_ocp_if *omap3xxx_i2c3_slaves[] = {
1781 &omap3_l4_core__i2c3,
1784 static struct omap_hwmod omap3xxx_i2c3_hwmod = {
1786 .flags = HWMOD_16BIT_REG,
1787 .mpu_irqs = i2c3_mpu_irqs,
1788 .sdma_reqs = i2c3_sdma_reqs,
1789 .main_clk = "i2c3_fck",
1792 .module_offs = CORE_MOD,
1794 .module_bit = OMAP3430_EN_I2C3_SHIFT,
1796 .idlest_idle_bit = OMAP3430_ST_I2C3_SHIFT,
1799 .slaves = omap3xxx_i2c3_slaves,
1800 .slaves_cnt = ARRAY_SIZE(omap3xxx_i2c3_slaves),
1801 .class = &i2c_class,
1802 .dev_attr = &i2c3_dev_attr,
1805 /* l4_wkup -> gpio1 */
1806 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs[] = {
1808 .pa_start = 0x48310000,
1809 .pa_end = 0x483101ff,
1810 .flags = ADDR_TYPE_RT
1815 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1 = {
1816 .master = &omap3xxx_l4_wkup_hwmod,
1817 .slave = &omap3xxx_gpio1_hwmod,
1818 .addr = omap3xxx_gpio1_addrs,
1819 .user = OCP_USER_MPU | OCP_USER_SDMA,
1822 /* l4_per -> gpio2 */
1823 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs[] = {
1825 .pa_start = 0x49050000,
1826 .pa_end = 0x490501ff,
1827 .flags = ADDR_TYPE_RT
1832 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2 = {
1833 .master = &omap3xxx_l4_per_hwmod,
1834 .slave = &omap3xxx_gpio2_hwmod,
1835 .addr = omap3xxx_gpio2_addrs,
1836 .user = OCP_USER_MPU | OCP_USER_SDMA,
1839 /* l4_per -> gpio3 */
1840 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs[] = {
1842 .pa_start = 0x49052000,
1843 .pa_end = 0x490521ff,
1844 .flags = ADDR_TYPE_RT
1849 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3 = {
1850 .master = &omap3xxx_l4_per_hwmod,
1851 .slave = &omap3xxx_gpio3_hwmod,
1852 .addr = omap3xxx_gpio3_addrs,
1853 .user = OCP_USER_MPU | OCP_USER_SDMA,
1856 /* l4_per -> gpio4 */
1857 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs[] = {
1859 .pa_start = 0x49054000,
1860 .pa_end = 0x490541ff,
1861 .flags = ADDR_TYPE_RT
1866 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4 = {
1867 .master = &omap3xxx_l4_per_hwmod,
1868 .slave = &omap3xxx_gpio4_hwmod,
1869 .addr = omap3xxx_gpio4_addrs,
1870 .user = OCP_USER_MPU | OCP_USER_SDMA,
1873 /* l4_per -> gpio5 */
1874 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs[] = {
1876 .pa_start = 0x49056000,
1877 .pa_end = 0x490561ff,
1878 .flags = ADDR_TYPE_RT
1883 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5 = {
1884 .master = &omap3xxx_l4_per_hwmod,
1885 .slave = &omap3xxx_gpio5_hwmod,
1886 .addr = omap3xxx_gpio5_addrs,
1887 .user = OCP_USER_MPU | OCP_USER_SDMA,
1890 /* l4_per -> gpio6 */
1891 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs[] = {
1893 .pa_start = 0x49058000,
1894 .pa_end = 0x490581ff,
1895 .flags = ADDR_TYPE_RT
1900 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6 = {
1901 .master = &omap3xxx_l4_per_hwmod,
1902 .slave = &omap3xxx_gpio6_hwmod,
1903 .addr = omap3xxx_gpio6_addrs,
1904 .user = OCP_USER_MPU | OCP_USER_SDMA,
1909 * general purpose io module
1912 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc = {
1914 .sysc_offs = 0x0010,
1915 .syss_offs = 0x0014,
1916 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1917 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1918 SYSS_HAS_RESET_STATUS),
1919 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1920 .sysc_fields = &omap_hwmod_sysc_type1,
1923 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class = {
1925 .sysc = &omap3xxx_gpio_sysc,
1930 static struct omap_gpio_dev_attr gpio_dev_attr = {
1936 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1937 { .role = "dbclk", .clk = "gpio1_dbck", },
1940 static struct omap_hwmod_ocp_if *omap3xxx_gpio1_slaves[] = {
1941 &omap3xxx_l4_wkup__gpio1,
1944 static struct omap_hwmod omap3xxx_gpio1_hwmod = {
1946 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1947 .mpu_irqs = omap2_gpio1_irqs,
1948 .main_clk = "gpio1_ick",
1949 .opt_clks = gpio1_opt_clks,
1950 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1954 .module_bit = OMAP3430_EN_GPIO1_SHIFT,
1955 .module_offs = WKUP_MOD,
1957 .idlest_idle_bit = OMAP3430_ST_GPIO1_SHIFT,
1960 .slaves = omap3xxx_gpio1_slaves,
1961 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio1_slaves),
1962 .class = &omap3xxx_gpio_hwmod_class,
1963 .dev_attr = &gpio_dev_attr,
1967 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1968 { .role = "dbclk", .clk = "gpio2_dbck", },
1971 static struct omap_hwmod_ocp_if *omap3xxx_gpio2_slaves[] = {
1972 &omap3xxx_l4_per__gpio2,
1975 static struct omap_hwmod omap3xxx_gpio2_hwmod = {
1977 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1978 .mpu_irqs = omap2_gpio2_irqs,
1979 .main_clk = "gpio2_ick",
1980 .opt_clks = gpio2_opt_clks,
1981 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1985 .module_bit = OMAP3430_EN_GPIO2_SHIFT,
1986 .module_offs = OMAP3430_PER_MOD,
1988 .idlest_idle_bit = OMAP3430_ST_GPIO2_SHIFT,
1991 .slaves = omap3xxx_gpio2_slaves,
1992 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio2_slaves),
1993 .class = &omap3xxx_gpio_hwmod_class,
1994 .dev_attr = &gpio_dev_attr,
1998 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1999 { .role = "dbclk", .clk = "gpio3_dbck", },
2002 static struct omap_hwmod_ocp_if *omap3xxx_gpio3_slaves[] = {
2003 &omap3xxx_l4_per__gpio3,
2006 static struct omap_hwmod omap3xxx_gpio3_hwmod = {
2008 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2009 .mpu_irqs = omap2_gpio3_irqs,
2010 .main_clk = "gpio3_ick",
2011 .opt_clks = gpio3_opt_clks,
2012 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
2016 .module_bit = OMAP3430_EN_GPIO3_SHIFT,
2017 .module_offs = OMAP3430_PER_MOD,
2019 .idlest_idle_bit = OMAP3430_ST_GPIO3_SHIFT,
2022 .slaves = omap3xxx_gpio3_slaves,
2023 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio3_slaves),
2024 .class = &omap3xxx_gpio_hwmod_class,
2025 .dev_attr = &gpio_dev_attr,
2029 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
2030 { .role = "dbclk", .clk = "gpio4_dbck", },
2033 static struct omap_hwmod_ocp_if *omap3xxx_gpio4_slaves[] = {
2034 &omap3xxx_l4_per__gpio4,
2037 static struct omap_hwmod omap3xxx_gpio4_hwmod = {
2039 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2040 .mpu_irqs = omap2_gpio4_irqs,
2041 .main_clk = "gpio4_ick",
2042 .opt_clks = gpio4_opt_clks,
2043 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
2047 .module_bit = OMAP3430_EN_GPIO4_SHIFT,
2048 .module_offs = OMAP3430_PER_MOD,
2050 .idlest_idle_bit = OMAP3430_ST_GPIO4_SHIFT,
2053 .slaves = omap3xxx_gpio4_slaves,
2054 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio4_slaves),
2055 .class = &omap3xxx_gpio_hwmod_class,
2056 .dev_attr = &gpio_dev_attr,
2060 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = {
2061 { .irq = 33 }, /* INT_34XX_GPIO_BANK5 */
2065 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
2066 { .role = "dbclk", .clk = "gpio5_dbck", },
2069 static struct omap_hwmod_ocp_if *omap3xxx_gpio5_slaves[] = {
2070 &omap3xxx_l4_per__gpio5,
2073 static struct omap_hwmod omap3xxx_gpio5_hwmod = {
2075 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2076 .mpu_irqs = omap3xxx_gpio5_irqs,
2077 .main_clk = "gpio5_ick",
2078 .opt_clks = gpio5_opt_clks,
2079 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
2083 .module_bit = OMAP3430_EN_GPIO5_SHIFT,
2084 .module_offs = OMAP3430_PER_MOD,
2086 .idlest_idle_bit = OMAP3430_ST_GPIO5_SHIFT,
2089 .slaves = omap3xxx_gpio5_slaves,
2090 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio5_slaves),
2091 .class = &omap3xxx_gpio_hwmod_class,
2092 .dev_attr = &gpio_dev_attr,
2096 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = {
2097 { .irq = 34 }, /* INT_34XX_GPIO_BANK6 */
2101 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
2102 { .role = "dbclk", .clk = "gpio6_dbck", },
2105 static struct omap_hwmod_ocp_if *omap3xxx_gpio6_slaves[] = {
2106 &omap3xxx_l4_per__gpio6,
2109 static struct omap_hwmod omap3xxx_gpio6_hwmod = {
2111 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2112 .mpu_irqs = omap3xxx_gpio6_irqs,
2113 .main_clk = "gpio6_ick",
2114 .opt_clks = gpio6_opt_clks,
2115 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2119 .module_bit = OMAP3430_EN_GPIO6_SHIFT,
2120 .module_offs = OMAP3430_PER_MOD,
2122 .idlest_idle_bit = OMAP3430_ST_GPIO6_SHIFT,
2125 .slaves = omap3xxx_gpio6_slaves,
2126 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio6_slaves),
2127 .class = &omap3xxx_gpio_hwmod_class,
2128 .dev_attr = &gpio_dev_attr,
2131 /* dma_system -> L3 */
2132 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3 = {
2133 .master = &omap3xxx_dma_system_hwmod,
2134 .slave = &omap3xxx_l3_main_hwmod,
2135 .clk = "core_l3_ick",
2136 .user = OCP_USER_MPU | OCP_USER_SDMA,
2139 /* dma attributes */
2140 static struct omap_dma_dev_attr dma_dev_attr = {
2141 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
2142 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
2146 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc = {
2148 .sysc_offs = 0x002c,
2149 .syss_offs = 0x0028,
2150 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2151 SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
2152 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE |
2153 SYSS_HAS_RESET_STATUS),
2154 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2155 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
2156 .sysc_fields = &omap_hwmod_sysc_type1,
2159 static struct omap_hwmod_class omap3xxx_dma_hwmod_class = {
2161 .sysc = &omap3xxx_dma_sysc,
2165 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs[] = {
2167 .pa_start = 0x48056000,
2168 .pa_end = 0x48056fff,
2169 .flags = ADDR_TYPE_RT
2174 /* dma_system master ports */
2175 static struct omap_hwmod_ocp_if *omap3xxx_dma_system_masters[] = {
2176 &omap3xxx_dma_system__l3,
2179 /* l4_cfg -> dma_system */
2180 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system = {
2181 .master = &omap3xxx_l4_core_hwmod,
2182 .slave = &omap3xxx_dma_system_hwmod,
2183 .clk = "core_l4_ick",
2184 .addr = omap3xxx_dma_system_addrs,
2185 .user = OCP_USER_MPU | OCP_USER_SDMA,
2188 /* dma_system slave ports */
2189 static struct omap_hwmod_ocp_if *omap3xxx_dma_system_slaves[] = {
2190 &omap3xxx_l4_core__dma_system,
2193 static struct omap_hwmod omap3xxx_dma_system_hwmod = {
2195 .class = &omap3xxx_dma_hwmod_class,
2196 .mpu_irqs = omap2_dma_system_irqs,
2197 .main_clk = "core_l3_ick",
2200 .module_offs = CORE_MOD,
2202 .module_bit = OMAP3430_ST_SDMA_SHIFT,
2204 .idlest_idle_bit = OMAP3430_ST_SDMA_SHIFT,
2207 .slaves = omap3xxx_dma_system_slaves,
2208 .slaves_cnt = ARRAY_SIZE(omap3xxx_dma_system_slaves),
2209 .masters = omap3xxx_dma_system_masters,
2210 .masters_cnt = ARRAY_SIZE(omap3xxx_dma_system_masters),
2211 .dev_attr = &dma_dev_attr,
2212 .flags = HWMOD_NO_IDLEST,
2217 * multi channel buffered serial port controller
2220 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc = {
2221 .sysc_offs = 0x008c,
2222 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2223 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2224 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2225 .sysc_fields = &omap_hwmod_sysc_type1,
2229 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = {
2231 .sysc = &omap3xxx_mcbsp_sysc,
2232 .rev = MCBSP_CONFIG_TYPE3,
2236 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = {
2237 { .name = "irq", .irq = 16 },
2238 { .name = "tx", .irq = 59 },
2239 { .name = "rx", .irq = 60 },
2243 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs[] = {
2246 .pa_start = 0x48074000,
2247 .pa_end = 0x480740ff,
2248 .flags = ADDR_TYPE_RT
2253 /* l4_core -> mcbsp1 */
2254 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1 = {
2255 .master = &omap3xxx_l4_core_hwmod,
2256 .slave = &omap3xxx_mcbsp1_hwmod,
2257 .clk = "mcbsp1_ick",
2258 .addr = omap3xxx_mcbsp1_addrs,
2259 .user = OCP_USER_MPU | OCP_USER_SDMA,
2262 /* mcbsp1 slave ports */
2263 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp1_slaves[] = {
2264 &omap3xxx_l4_core__mcbsp1,
2267 static struct omap_hwmod omap3xxx_mcbsp1_hwmod = {
2269 .class = &omap3xxx_mcbsp_hwmod_class,
2270 .mpu_irqs = omap3xxx_mcbsp1_irqs,
2271 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
2272 .main_clk = "mcbsp1_fck",
2276 .module_bit = OMAP3430_EN_MCBSP1_SHIFT,
2277 .module_offs = CORE_MOD,
2279 .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT,
2282 .slaves = omap3xxx_mcbsp1_slaves,
2283 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp1_slaves),
2287 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = {
2288 { .name = "irq", .irq = 17 },
2289 { .name = "tx", .irq = 62 },
2290 { .name = "rx", .irq = 63 },
2294 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs[] = {
2297 .pa_start = 0x49022000,
2298 .pa_end = 0x490220ff,
2299 .flags = ADDR_TYPE_RT
2304 /* l4_per -> mcbsp2 */
2305 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2 = {
2306 .master = &omap3xxx_l4_per_hwmod,
2307 .slave = &omap3xxx_mcbsp2_hwmod,
2308 .clk = "mcbsp2_ick",
2309 .addr = omap3xxx_mcbsp2_addrs,
2310 .user = OCP_USER_MPU | OCP_USER_SDMA,
2313 /* mcbsp2 slave ports */
2314 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp2_slaves[] = {
2315 &omap3xxx_l4_per__mcbsp2,
2318 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = {
2319 .sidetone = "mcbsp2_sidetone",
2322 static struct omap_hwmod omap3xxx_mcbsp2_hwmod = {
2324 .class = &omap3xxx_mcbsp_hwmod_class,
2325 .mpu_irqs = omap3xxx_mcbsp2_irqs,
2326 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
2327 .main_clk = "mcbsp2_fck",
2331 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
2332 .module_offs = OMAP3430_PER_MOD,
2334 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
2337 .slaves = omap3xxx_mcbsp2_slaves,
2338 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_slaves),
2339 .dev_attr = &omap34xx_mcbsp2_dev_attr,
2343 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = {
2344 { .name = "irq", .irq = 22 },
2345 { .name = "tx", .irq = 89 },
2346 { .name = "rx", .irq = 90 },
2350 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs[] = {
2353 .pa_start = 0x49024000,
2354 .pa_end = 0x490240ff,
2355 .flags = ADDR_TYPE_RT
2360 /* l4_per -> mcbsp3 */
2361 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3 = {
2362 .master = &omap3xxx_l4_per_hwmod,
2363 .slave = &omap3xxx_mcbsp3_hwmod,
2364 .clk = "mcbsp3_ick",
2365 .addr = omap3xxx_mcbsp3_addrs,
2366 .user = OCP_USER_MPU | OCP_USER_SDMA,
2369 /* mcbsp3 slave ports */
2370 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp3_slaves[] = {
2371 &omap3xxx_l4_per__mcbsp3,
2374 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = {
2375 .sidetone = "mcbsp3_sidetone",
2378 static struct omap_hwmod omap3xxx_mcbsp3_hwmod = {
2380 .class = &omap3xxx_mcbsp_hwmod_class,
2381 .mpu_irqs = omap3xxx_mcbsp3_irqs,
2382 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
2383 .main_clk = "mcbsp3_fck",
2387 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
2388 .module_offs = OMAP3430_PER_MOD,
2390 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
2393 .slaves = omap3xxx_mcbsp3_slaves,
2394 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_slaves),
2395 .dev_attr = &omap34xx_mcbsp3_dev_attr,
2399 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = {
2400 { .name = "irq", .irq = 23 },
2401 { .name = "tx", .irq = 54 },
2402 { .name = "rx", .irq = 55 },
2406 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = {
2407 { .name = "rx", .dma_req = 20 },
2408 { .name = "tx", .dma_req = 19 },
2412 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs[] = {
2415 .pa_start = 0x49026000,
2416 .pa_end = 0x490260ff,
2417 .flags = ADDR_TYPE_RT
2422 /* l4_per -> mcbsp4 */
2423 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4 = {
2424 .master = &omap3xxx_l4_per_hwmod,
2425 .slave = &omap3xxx_mcbsp4_hwmod,
2426 .clk = "mcbsp4_ick",
2427 .addr = omap3xxx_mcbsp4_addrs,
2428 .user = OCP_USER_MPU | OCP_USER_SDMA,
2431 /* mcbsp4 slave ports */
2432 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp4_slaves[] = {
2433 &omap3xxx_l4_per__mcbsp4,
2436 static struct omap_hwmod omap3xxx_mcbsp4_hwmod = {
2438 .class = &omap3xxx_mcbsp_hwmod_class,
2439 .mpu_irqs = omap3xxx_mcbsp4_irqs,
2440 .sdma_reqs = omap3xxx_mcbsp4_sdma_chs,
2441 .main_clk = "mcbsp4_fck",
2445 .module_bit = OMAP3430_EN_MCBSP4_SHIFT,
2446 .module_offs = OMAP3430_PER_MOD,
2448 .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT,
2451 .slaves = omap3xxx_mcbsp4_slaves,
2452 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp4_slaves),
2456 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = {
2457 { .name = "irq", .irq = 27 },
2458 { .name = "tx", .irq = 81 },
2459 { .name = "rx", .irq = 82 },
2463 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = {
2464 { .name = "rx", .dma_req = 22 },
2465 { .name = "tx", .dma_req = 21 },
2469 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs[] = {
2472 .pa_start = 0x48096000,
2473 .pa_end = 0x480960ff,
2474 .flags = ADDR_TYPE_RT
2479 /* l4_core -> mcbsp5 */
2480 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5 = {
2481 .master = &omap3xxx_l4_core_hwmod,
2482 .slave = &omap3xxx_mcbsp5_hwmod,
2483 .clk = "mcbsp5_ick",
2484 .addr = omap3xxx_mcbsp5_addrs,
2485 .user = OCP_USER_MPU | OCP_USER_SDMA,
2488 /* mcbsp5 slave ports */
2489 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp5_slaves[] = {
2490 &omap3xxx_l4_core__mcbsp5,
2493 static struct omap_hwmod omap3xxx_mcbsp5_hwmod = {
2495 .class = &omap3xxx_mcbsp_hwmod_class,
2496 .mpu_irqs = omap3xxx_mcbsp5_irqs,
2497 .sdma_reqs = omap3xxx_mcbsp5_sdma_chs,
2498 .main_clk = "mcbsp5_fck",
2502 .module_bit = OMAP3430_EN_MCBSP5_SHIFT,
2503 .module_offs = CORE_MOD,
2505 .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT,
2508 .slaves = omap3xxx_mcbsp5_slaves,
2509 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp5_slaves),
2511 /* 'mcbsp sidetone' class */
2513 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc = {
2514 .sysc_offs = 0x0010,
2515 .sysc_flags = SYSC_HAS_AUTOIDLE,
2516 .sysc_fields = &omap_hwmod_sysc_type1,
2519 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = {
2520 .name = "mcbsp_sidetone",
2521 .sysc = &omap3xxx_mcbsp_sidetone_sysc,
2524 /* mcbsp2_sidetone */
2525 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = {
2526 { .name = "irq", .irq = 4 },
2530 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs[] = {
2533 .pa_start = 0x49028000,
2534 .pa_end = 0x490280ff,
2535 .flags = ADDR_TYPE_RT
2540 /* l4_per -> mcbsp2_sidetone */
2541 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone = {
2542 .master = &omap3xxx_l4_per_hwmod,
2543 .slave = &omap3xxx_mcbsp2_sidetone_hwmod,
2544 .clk = "mcbsp2_ick",
2545 .addr = omap3xxx_mcbsp2_sidetone_addrs,
2546 .user = OCP_USER_MPU,
2549 /* mcbsp2_sidetone slave ports */
2550 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp2_sidetone_slaves[] = {
2551 &omap3xxx_l4_per__mcbsp2_sidetone,
2554 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = {
2555 .name = "mcbsp2_sidetone",
2556 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
2557 .mpu_irqs = omap3xxx_mcbsp2_sidetone_irqs,
2558 .main_clk = "mcbsp2_fck",
2562 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
2563 .module_offs = OMAP3430_PER_MOD,
2565 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
2568 .slaves = omap3xxx_mcbsp2_sidetone_slaves,
2569 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_sidetone_slaves),
2572 /* mcbsp3_sidetone */
2573 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = {
2574 { .name = "irq", .irq = 5 },
2578 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs[] = {
2581 .pa_start = 0x4902A000,
2582 .pa_end = 0x4902A0ff,
2583 .flags = ADDR_TYPE_RT
2588 /* l4_per -> mcbsp3_sidetone */
2589 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = {
2590 .master = &omap3xxx_l4_per_hwmod,
2591 .slave = &omap3xxx_mcbsp3_sidetone_hwmod,
2592 .clk = "mcbsp3_ick",
2593 .addr = omap3xxx_mcbsp3_sidetone_addrs,
2594 .user = OCP_USER_MPU,
2597 /* mcbsp3_sidetone slave ports */
2598 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp3_sidetone_slaves[] = {
2599 &omap3xxx_l4_per__mcbsp3_sidetone,
2602 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = {
2603 .name = "mcbsp3_sidetone",
2604 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
2605 .mpu_irqs = omap3xxx_mcbsp3_sidetone_irqs,
2606 .main_clk = "mcbsp3_fck",
2610 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
2611 .module_offs = OMAP3430_PER_MOD,
2613 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
2616 .slaves = omap3xxx_mcbsp3_sidetone_slaves,
2617 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_sidetone_slaves),
2622 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields = {
2626 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc = {
2628 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_NO_CACHE),
2629 .clockact = CLOCKACT_TEST_ICLK,
2630 .sysc_fields = &omap34xx_sr_sysc_fields,
2633 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class = {
2634 .name = "smartreflex",
2635 .sysc = &omap34xx_sr_sysc,
2639 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields = {
2644 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc = {
2646 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2647 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
2649 .sysc_fields = &omap36xx_sr_sysc_fields,
2652 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class = {
2653 .name = "smartreflex",
2654 .sysc = &omap36xx_sr_sysc,
2659 static struct omap_smartreflex_dev_attr sr1_dev_attr = {
2660 .sensor_voltdm_name = "mpu_iva",
2663 static struct omap_hwmod_ocp_if *omap34xx_sr1_slaves[] = {
2664 &omap34xx_l4_core__sr1,
2667 static struct omap_hwmod omap34xx_sr1_hwmod = {
2669 .class = &omap34xx_smartreflex_hwmod_class,
2670 .main_clk = "sr1_fck",
2674 .module_bit = OMAP3430_EN_SR1_SHIFT,
2675 .module_offs = WKUP_MOD,
2677 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
2680 .slaves = omap34xx_sr1_slaves,
2681 .slaves_cnt = ARRAY_SIZE(omap34xx_sr1_slaves),
2682 .dev_attr = &sr1_dev_attr,
2683 .mpu_irqs = omap3_smartreflex_mpu_irqs,
2684 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2687 static struct omap_hwmod_ocp_if *omap36xx_sr1_slaves[] = {
2688 &omap36xx_l4_core__sr1,
2691 static struct omap_hwmod omap36xx_sr1_hwmod = {
2693 .class = &omap36xx_smartreflex_hwmod_class,
2694 .main_clk = "sr1_fck",
2698 .module_bit = OMAP3430_EN_SR1_SHIFT,
2699 .module_offs = WKUP_MOD,
2701 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
2704 .slaves = omap36xx_sr1_slaves,
2705 .slaves_cnt = ARRAY_SIZE(omap36xx_sr1_slaves),
2706 .dev_attr = &sr1_dev_attr,
2707 .mpu_irqs = omap3_smartreflex_mpu_irqs,
2711 static struct omap_smartreflex_dev_attr sr2_dev_attr = {
2712 .sensor_voltdm_name = "core",
2715 static struct omap_hwmod_ocp_if *omap34xx_sr2_slaves[] = {
2716 &omap34xx_l4_core__sr2,
2719 static struct omap_hwmod omap34xx_sr2_hwmod = {
2721 .class = &omap34xx_smartreflex_hwmod_class,
2722 .main_clk = "sr2_fck",
2726 .module_bit = OMAP3430_EN_SR2_SHIFT,
2727 .module_offs = WKUP_MOD,
2729 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
2732 .slaves = omap34xx_sr2_slaves,
2733 .slaves_cnt = ARRAY_SIZE(omap34xx_sr2_slaves),
2734 .dev_attr = &sr2_dev_attr,
2735 .mpu_irqs = omap3_smartreflex_core_irqs,
2736 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2739 static struct omap_hwmod_ocp_if *omap36xx_sr2_slaves[] = {
2740 &omap36xx_l4_core__sr2,
2743 static struct omap_hwmod omap36xx_sr2_hwmod = {
2745 .class = &omap36xx_smartreflex_hwmod_class,
2746 .main_clk = "sr2_fck",
2750 .module_bit = OMAP3430_EN_SR2_SHIFT,
2751 .module_offs = WKUP_MOD,
2753 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
2756 .slaves = omap36xx_sr2_slaves,
2757 .slaves_cnt = ARRAY_SIZE(omap36xx_sr2_slaves),
2758 .dev_attr = &sr2_dev_attr,
2759 .mpu_irqs = omap3_smartreflex_core_irqs,
2764 * mailbox module allowing communication between the on-chip processors
2765 * using a queued mailbox-interrupt mechanism.
2768 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc = {
2772 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2773 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2774 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2775 .sysc_fields = &omap_hwmod_sysc_type1,
2778 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = {
2780 .sysc = &omap3xxx_mailbox_sysc,
2783 static struct omap_hwmod omap3xxx_mailbox_hwmod;
2784 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = {
2789 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = {
2791 .pa_start = 0x48094000,
2792 .pa_end = 0x480941ff,
2793 .flags = ADDR_TYPE_RT,
2798 /* l4_core -> mailbox */
2799 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = {
2800 .master = &omap3xxx_l4_core_hwmod,
2801 .slave = &omap3xxx_mailbox_hwmod,
2802 .addr = omap3xxx_mailbox_addrs,
2803 .user = OCP_USER_MPU | OCP_USER_SDMA,
2806 /* mailbox slave ports */
2807 static struct omap_hwmod_ocp_if *omap3xxx_mailbox_slaves[] = {
2808 &omap3xxx_l4_core__mailbox,
2811 static struct omap_hwmod omap3xxx_mailbox_hwmod = {
2813 .class = &omap3xxx_mailbox_hwmod_class,
2814 .mpu_irqs = omap3xxx_mailbox_irqs,
2815 .main_clk = "mailboxes_ick",
2819 .module_bit = OMAP3430_EN_MAILBOXES_SHIFT,
2820 .module_offs = CORE_MOD,
2822 .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT,
2825 .slaves = omap3xxx_mailbox_slaves,
2826 .slaves_cnt = ARRAY_SIZE(omap3xxx_mailbox_slaves),
2829 /* l4 core -> mcspi1 interface */
2830 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1 = {
2831 .master = &omap3xxx_l4_core_hwmod,
2832 .slave = &omap34xx_mcspi1,
2833 .clk = "mcspi1_ick",
2834 .addr = omap2_mcspi1_addr_space,
2835 .user = OCP_USER_MPU | OCP_USER_SDMA,
2838 /* l4 core -> mcspi2 interface */
2839 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2 = {
2840 .master = &omap3xxx_l4_core_hwmod,
2841 .slave = &omap34xx_mcspi2,
2842 .clk = "mcspi2_ick",
2843 .addr = omap2_mcspi2_addr_space,
2844 .user = OCP_USER_MPU | OCP_USER_SDMA,
2847 /* l4 core -> mcspi3 interface */
2848 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3 = {
2849 .master = &omap3xxx_l4_core_hwmod,
2850 .slave = &omap34xx_mcspi3,
2851 .clk = "mcspi3_ick",
2852 .addr = omap2430_mcspi3_addr_space,
2853 .user = OCP_USER_MPU | OCP_USER_SDMA,
2856 /* l4 core -> mcspi4 interface */
2857 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space[] = {
2859 .pa_start = 0x480ba000,
2860 .pa_end = 0x480ba0ff,
2861 .flags = ADDR_TYPE_RT,
2866 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4 = {
2867 .master = &omap3xxx_l4_core_hwmod,
2868 .slave = &omap34xx_mcspi4,
2869 .clk = "mcspi4_ick",
2870 .addr = omap34xx_mcspi4_addr_space,
2871 .user = OCP_USER_MPU | OCP_USER_SDMA,
2876 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2880 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc = {
2882 .sysc_offs = 0x0010,
2883 .syss_offs = 0x0014,
2884 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2885 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2886 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2887 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2888 .sysc_fields = &omap_hwmod_sysc_type1,
2891 static struct omap_hwmod_class omap34xx_mcspi_class = {
2893 .sysc = &omap34xx_mcspi_sysc,
2894 .rev = OMAP3_MCSPI_REV,
2898 static struct omap_hwmod_ocp_if *omap34xx_mcspi1_slaves[] = {
2899 &omap34xx_l4_core__mcspi1,
2902 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
2903 .num_chipselect = 4,
2906 static struct omap_hwmod omap34xx_mcspi1 = {
2908 .mpu_irqs = omap2_mcspi1_mpu_irqs,
2909 .sdma_reqs = omap2_mcspi1_sdma_reqs,
2910 .main_clk = "mcspi1_fck",
2913 .module_offs = CORE_MOD,
2915 .module_bit = OMAP3430_EN_MCSPI1_SHIFT,
2917 .idlest_idle_bit = OMAP3430_ST_MCSPI1_SHIFT,
2920 .slaves = omap34xx_mcspi1_slaves,
2921 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi1_slaves),
2922 .class = &omap34xx_mcspi_class,
2923 .dev_attr = &omap_mcspi1_dev_attr,
2927 static struct omap_hwmod_ocp_if *omap34xx_mcspi2_slaves[] = {
2928 &omap34xx_l4_core__mcspi2,
2931 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
2932 .num_chipselect = 2,
2935 static struct omap_hwmod omap34xx_mcspi2 = {
2937 .mpu_irqs = omap2_mcspi2_mpu_irqs,
2938 .sdma_reqs = omap2_mcspi2_sdma_reqs,
2939 .main_clk = "mcspi2_fck",
2942 .module_offs = CORE_MOD,
2944 .module_bit = OMAP3430_EN_MCSPI2_SHIFT,
2946 .idlest_idle_bit = OMAP3430_ST_MCSPI2_SHIFT,
2949 .slaves = omap34xx_mcspi2_slaves,
2950 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi2_slaves),
2951 .class = &omap34xx_mcspi_class,
2952 .dev_attr = &omap_mcspi2_dev_attr,
2956 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = {
2957 { .name = "irq", .irq = 91 }, /* 91 */
2961 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = {
2962 { .name = "tx0", .dma_req = 15 },
2963 { .name = "rx0", .dma_req = 16 },
2964 { .name = "tx1", .dma_req = 23 },
2965 { .name = "rx1", .dma_req = 24 },
2969 static struct omap_hwmod_ocp_if *omap34xx_mcspi3_slaves[] = {
2970 &omap34xx_l4_core__mcspi3,
2973 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
2974 .num_chipselect = 2,
2977 static struct omap_hwmod omap34xx_mcspi3 = {
2979 .mpu_irqs = omap34xx_mcspi3_mpu_irqs,
2980 .sdma_reqs = omap34xx_mcspi3_sdma_reqs,
2981 .main_clk = "mcspi3_fck",
2984 .module_offs = CORE_MOD,
2986 .module_bit = OMAP3430_EN_MCSPI3_SHIFT,
2988 .idlest_idle_bit = OMAP3430_ST_MCSPI3_SHIFT,
2991 .slaves = omap34xx_mcspi3_slaves,
2992 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi3_slaves),
2993 .class = &omap34xx_mcspi_class,
2994 .dev_attr = &omap_mcspi3_dev_attr,
2998 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = {
2999 { .name = "irq", .irq = INT_34XX_SPI4_IRQ }, /* 48 */
3003 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = {
3004 { .name = "tx0", .dma_req = 70 }, /* DMA_SPI4_TX0 */
3005 { .name = "rx0", .dma_req = 71 }, /* DMA_SPI4_RX0 */
3009 static struct omap_hwmod_ocp_if *omap34xx_mcspi4_slaves[] = {
3010 &omap34xx_l4_core__mcspi4,
3013 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr = {
3014 .num_chipselect = 1,
3017 static struct omap_hwmod omap34xx_mcspi4 = {
3019 .mpu_irqs = omap34xx_mcspi4_mpu_irqs,
3020 .sdma_reqs = omap34xx_mcspi4_sdma_reqs,
3021 .main_clk = "mcspi4_fck",
3024 .module_offs = CORE_MOD,
3026 .module_bit = OMAP3430_EN_MCSPI4_SHIFT,
3028 .idlest_idle_bit = OMAP3430_ST_MCSPI4_SHIFT,
3031 .slaves = omap34xx_mcspi4_slaves,
3032 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi4_slaves),
3033 .class = &omap34xx_mcspi_class,
3034 .dev_attr = &omap_mcspi4_dev_attr,
3038 struct omap_hwmod_class omap34xx_bandgap_ts_class = {
3039 .name = "bandgap_ts",
3042 static struct omap_hwmod_addr_space omap3xxx_bandgap_ts_addrs[] = {
3045 .pa_start = 0x48002524,
3046 .pa_end = 0x48002524 + 4,
3047 .flags = ADDR_TYPE_RT
3052 static struct omap_hwmod omap34xx_bandgap_ts;
3054 /* l4_core -> bandgap */
3055 static struct omap_hwmod_ocp_if omap3xxx_l4_core__bandgap_ts = {
3056 .master = &omap3xxx_l4_core_hwmod,
3057 .slave = &omap34xx_bandgap_ts,
3058 .addr = omap3xxx_bandgap_ts_addrs,
3059 .user = OCP_USER_MPU,
3062 static struct omap_hwmod_ocp_if *omap3xxx_bandgap_ts_slaves[] = {
3063 &omap3xxx_l4_core__bandgap_ts,
3066 static struct omap_hwmod omap34xx_bandgap_ts = {
3067 .name = "bandgap_ts",
3068 .main_clk = "ts_fck",
3069 .slaves = omap3xxx_bandgap_ts_slaves,
3070 .slaves_cnt = ARRAY_SIZE(omap3xxx_bandgap_ts_slaves),
3071 .class = &omap34xx_bandgap_ts_class,
3072 .flags = HWMOD_NO_IDLEST,
3078 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc = {
3080 .sysc_offs = 0x0404,
3081 .syss_offs = 0x0408,
3082 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
3083 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3085 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3086 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
3087 .sysc_fields = &omap_hwmod_sysc_type1,
3090 static struct omap_hwmod_class usbotg_class = {
3092 .sysc = &omap3xxx_usbhsotg_sysc,
3095 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = {
3097 { .name = "mc", .irq = 92 },
3098 { .name = "dma", .irq = 93 },
3102 static struct omap_hwmod omap3xxx_usbhsotg_hwmod = {
3103 .name = "usb_otg_hs",
3104 .mpu_irqs = omap3xxx_usbhsotg_mpu_irqs,
3105 .main_clk = "hsotgusb_ick",
3109 .module_bit = OMAP3430_EN_HSOTGUSB_SHIFT,
3110 .module_offs = CORE_MOD,
3112 .idlest_idle_bit = OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT,
3113 .idlest_stdby_bit = OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
3116 .masters = omap3xxx_usbhsotg_masters,
3117 .masters_cnt = ARRAY_SIZE(omap3xxx_usbhsotg_masters),
3118 .slaves = omap3xxx_usbhsotg_slaves,
3119 .slaves_cnt = ARRAY_SIZE(omap3xxx_usbhsotg_slaves),
3120 .class = &usbotg_class,
3123 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
3124 * broken when autoidle is enabled
3125 * workaround is to disable the autoidle bit at module level.
3127 * Enabling the device in any other MIDLEMODE setting but force-idle
3128 * causes core_pwrdm not enter idle states at least on OMAP3630.
3129 * Note that musb has OTG_FORCESTDBY register that controls MSTANDBY
3130 * signal when MIDLEMODE is set to force-idle.
3132 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
3133 | HWMOD_FORCE_MSTANDBY,
3137 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = {
3139 { .name = "mc", .irq = 71 },
3143 static struct omap_hwmod_class am35xx_usbotg_class = {
3144 .name = "am35xx_usbotg",
3148 static struct omap_hwmod am35xx_usbhsotg_hwmod = {
3149 .name = "am35x_otg_hs",
3150 .mpu_irqs = am35xx_usbhsotg_mpu_irqs,
3156 .masters = am35xx_usbhsotg_masters,
3157 .masters_cnt = ARRAY_SIZE(am35xx_usbhsotg_masters),
3158 .slaves = am35xx_usbhsotg_slaves,
3159 .slaves_cnt = ARRAY_SIZE(am35xx_usbhsotg_slaves),
3160 .class = &am35xx_usbotg_class,
3163 /* MMC/SD/SDIO common */
3165 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc = {
3169 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3170 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3171 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
3172 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3173 .sysc_fields = &omap_hwmod_sysc_type1,
3176 static struct omap_hwmod_class omap34xx_mmc_class = {
3178 .sysc = &omap34xx_mmc_sysc,
3183 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = {
3188 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = {
3189 { .name = "tx", .dma_req = 61, },
3190 { .name = "rx", .dma_req = 62, },
3194 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks[] = {
3195 { .role = "dbck", .clk = "omap_32k_fck", },
3198 static struct omap_hwmod_ocp_if *omap3xxx_mmc1_slaves[] = {
3199 &omap3xxx_l4_core__mmc1,
3202 static struct omap_mmc_dev_attr mmc1_dev_attr = {
3203 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3206 /* See 35xx errata 2.1.1.128 in SPRZ278F */
3207 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr = {
3208 .flags = (OMAP_HSMMC_SUPPORTS_DUAL_VOLT |
3209 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ),
3212 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod = {
3214 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
3215 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
3216 .opt_clks = omap34xx_mmc1_opt_clks,
3217 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
3218 .main_clk = "mmchs1_fck",
3221 .module_offs = CORE_MOD,
3223 .module_bit = OMAP3430_EN_MMC1_SHIFT,
3225 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
3228 .dev_attr = &mmc1_pre_es3_dev_attr,
3229 .slaves = omap3xxx_mmc1_slaves,
3230 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc1_slaves),
3231 .class = &omap34xx_mmc_class,
3234 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod = {
3236 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
3237 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
3238 .opt_clks = omap34xx_mmc1_opt_clks,
3239 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
3240 .main_clk = "mmchs1_fck",
3243 .module_offs = CORE_MOD,
3245 .module_bit = OMAP3430_EN_MMC1_SHIFT,
3247 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
3250 .dev_attr = &mmc1_dev_attr,
3251 .slaves = omap3xxx_mmc1_slaves,
3252 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc1_slaves),
3253 .class = &omap34xx_mmc_class,
3258 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = {
3259 { .irq = INT_24XX_MMC2_IRQ, },
3263 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = {
3264 { .name = "tx", .dma_req = 47, },
3265 { .name = "rx", .dma_req = 48, },
3269 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks[] = {
3270 { .role = "dbck", .clk = "omap_32k_fck", },
3273 static struct omap_hwmod_ocp_if *omap3xxx_mmc2_slaves[] = {
3274 &omap3xxx_l4_core__mmc2,
3277 /* See 35xx errata 2.1.1.128 in SPRZ278F */
3278 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr = {
3279 .flags = OMAP_HSMMC_BROKEN_MULTIBLOCK_READ,
3282 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod = {
3284 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
3285 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
3286 .opt_clks = omap34xx_mmc2_opt_clks,
3287 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
3288 .main_clk = "mmchs2_fck",
3291 .module_offs = CORE_MOD,
3293 .module_bit = OMAP3430_EN_MMC2_SHIFT,
3295 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
3298 .dev_attr = &mmc2_pre_es3_dev_attr,
3299 .slaves = omap3xxx_mmc2_slaves,
3300 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc2_slaves),
3301 .class = &omap34xx_mmc_class,
3304 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod = {
3306 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
3307 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
3308 .opt_clks = omap34xx_mmc2_opt_clks,
3309 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
3310 .main_clk = "mmchs2_fck",
3313 .module_offs = CORE_MOD,
3315 .module_bit = OMAP3430_EN_MMC2_SHIFT,
3317 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
3320 .slaves = omap3xxx_mmc2_slaves,
3321 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc2_slaves),
3322 .class = &omap34xx_mmc_class,
3327 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = {
3332 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = {
3333 { .name = "tx", .dma_req = 77, },
3334 { .name = "rx", .dma_req = 78, },
3338 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks[] = {
3339 { .role = "dbck", .clk = "omap_32k_fck", },
3342 static struct omap_hwmod_ocp_if *omap3xxx_mmc3_slaves[] = {
3343 &omap3xxx_l4_core__mmc3,
3346 static struct omap_hwmod omap3xxx_mmc3_hwmod = {
3348 .mpu_irqs = omap34xx_mmc3_mpu_irqs,
3349 .sdma_reqs = omap34xx_mmc3_sdma_reqs,
3350 .opt_clks = omap34xx_mmc3_opt_clks,
3351 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc3_opt_clks),
3352 .main_clk = "mmchs3_fck",
3356 .module_bit = OMAP3430_EN_MMC3_SHIFT,
3358 .idlest_idle_bit = OMAP3430_ST_MMC3_SHIFT,
3361 .slaves = omap3xxx_mmc3_slaves,
3362 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc3_slaves),
3363 .class = &omap34xx_mmc_class,
3366 static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
3367 &omap3xxx_l3_main_hwmod,
3368 &omap3xxx_l4_core_hwmod,
3369 &omap3xxx_l4_per_hwmod,
3370 &omap3xxx_l4_wkup_hwmod,
3371 &omap3xxx_mmc3_hwmod,
3372 &omap3xxx_mpu_hwmod,
3374 &omap3xxx_timer1_hwmod,
3375 &omap3xxx_timer2_hwmod,
3376 &omap3xxx_timer3_hwmod,
3377 &omap3xxx_timer4_hwmod,
3378 &omap3xxx_timer5_hwmod,
3379 &omap3xxx_timer6_hwmod,
3380 &omap3xxx_timer7_hwmod,
3381 &omap3xxx_timer8_hwmod,
3382 &omap3xxx_timer9_hwmod,
3383 &omap3xxx_timer10_hwmod,
3384 &omap3xxx_timer11_hwmod,
3386 &omap3xxx_wd_timer2_hwmod,
3387 &omap3xxx_uart1_hwmod,
3388 &omap3xxx_uart2_hwmod,
3389 &omap3xxx_uart3_hwmod,
3392 &omap3xxx_i2c1_hwmod,
3393 &omap3xxx_i2c2_hwmod,
3394 &omap3xxx_i2c3_hwmod,
3397 &omap3xxx_gpio1_hwmod,
3398 &omap3xxx_gpio2_hwmod,
3399 &omap3xxx_gpio3_hwmod,
3400 &omap3xxx_gpio4_hwmod,
3401 &omap3xxx_gpio5_hwmod,
3402 &omap3xxx_gpio6_hwmod,
3404 /* dma_system class*/
3405 &omap3xxx_dma_system_hwmod,
3408 &omap3xxx_mcbsp1_hwmod,
3409 &omap3xxx_mcbsp2_hwmod,
3410 &omap3xxx_mcbsp3_hwmod,
3411 &omap3xxx_mcbsp4_hwmod,
3412 &omap3xxx_mcbsp5_hwmod,
3413 &omap3xxx_mcbsp2_sidetone_hwmod,
3414 &omap3xxx_mcbsp3_sidetone_hwmod,
3423 &omap34xx_bandgap_ts,
3428 /* GP-only hwmods */
3429 static __initdata struct omap_hwmod *omap3xxx_gp_hwmods[] = {
3430 &omap3xxx_timer12_hwmod,
3434 /* 3430ES1-only hwmods */
3435 static __initdata struct omap_hwmod *omap3430es1_hwmods[] = {
3436 &omap3430es1_dss_core_hwmod,
3440 /* 3430ES2+-only hwmods */
3441 static __initdata struct omap_hwmod *omap3430es2plus_hwmods[] = {
3442 &omap3xxx_dss_core_hwmod,
3443 &omap3xxx_usbhsotg_hwmod,
3447 /* <= 3430ES3-only hwmods */
3448 static struct omap_hwmod *omap3430_pre_es3_hwmods[] __initdata = {
3449 &omap3xxx_pre_es3_mmc1_hwmod,
3450 &omap3xxx_pre_es3_mmc2_hwmod,
3454 /* 3430ES3+-only hwmods */
3455 static struct omap_hwmod *omap3430_es3plus_hwmods[] __initdata = {
3456 &omap3xxx_es3plus_mmc1_hwmod,
3457 &omap3xxx_es3plus_mmc2_hwmod,
3461 /* 34xx-only hwmods (all ES revisions) */
3462 static __initdata struct omap_hwmod *omap34xx_hwmods[] = {
3463 &omap3xxx_iva_hwmod,
3464 &omap34xx_sr1_hwmod,
3465 &omap34xx_sr2_hwmod,
3466 &omap3xxx_mailbox_hwmod,
3470 /* 36xx-only hwmods (all ES revisions) */
3471 static __initdata struct omap_hwmod *omap36xx_hwmods[] = {
3472 &omap3xxx_iva_hwmod,
3473 &omap36xx_uart4_hwmod,
3474 &omap3xxx_dss_core_hwmod,
3475 &omap36xx_sr1_hwmod,
3476 &omap36xx_sr2_hwmod,
3477 &omap3xxx_usbhsotg_hwmod,
3478 &omap3xxx_mailbox_hwmod,
3479 &omap3xxx_es3plus_mmc1_hwmod,
3480 &omap3xxx_es3plus_mmc2_hwmod,
3484 static __initdata struct omap_hwmod *am35xx_hwmods[] = {
3485 &omap3xxx_dss_core_hwmod, /* XXX ??? */
3486 &am35xx_usbhsotg_hwmod,
3487 &omap3xxx_es3plus_mmc1_hwmod,
3488 &omap3xxx_es3plus_mmc2_hwmod,
3492 static __initdata struct omap_hwmod *omap3xxx_dss_hwmods[] = {
3494 &omap3xxx_dss_dispc_hwmod,
3495 &omap3xxx_dss_dsi1_hwmod,
3496 &omap3xxx_dss_rfbi_hwmod,
3497 &omap3xxx_dss_venc_hwmod,
3501 int __init omap3xxx_hwmod_init(void)
3504 struct omap_hwmod **h = NULL;
3507 /* Register hwmods common to all OMAP3 */
3508 r = omap_hwmod_register(omap3xxx_hwmods);
3512 /* Register GP-only hwmods. */
3513 if (omap_type() == OMAP2_DEVICE_TYPE_GP) {
3514 r = omap_hwmod_register(omap3xxx_gp_hwmods);
3522 * Register hwmods common to individual OMAP3 families, all
3523 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3524 * All possible revisions should be included in this conditional.
3526 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3527 rev == OMAP3430_REV_ES2_1 || rev == OMAP3430_REV_ES3_0 ||
3528 rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) {
3529 h = omap34xx_hwmods;
3530 } else if (rev == OMAP3517_REV_ES1_0 || rev == OMAP3517_REV_ES1_1) {
3532 } else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 ||
3533 rev == OMAP3630_REV_ES1_2) {
3534 h = omap36xx_hwmods;
3536 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3540 r = omap_hwmod_register(h);
3545 * Register hwmods specific to certain ES levels of a
3546 * particular family of silicon (e.g., 34xx ES1.0)
3549 if (rev == OMAP3430_REV_ES1_0) {
3550 h = omap3430es1_hwmods;
3551 } else if (rev == OMAP3430_REV_ES2_0 || rev == OMAP3430_REV_ES2_1 ||
3552 rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3553 rev == OMAP3430_REV_ES3_1_2) {
3554 h = omap3430es2plus_hwmods;
3558 r = omap_hwmod_register(h);
3564 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3565 rev == OMAP3430_REV_ES2_1) {
3566 h = omap3430_pre_es3_hwmods;
3567 } else if (rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3568 rev == OMAP3430_REV_ES3_1_2) {
3569 h = omap3430_es3plus_hwmods;
3573 r = omap_hwmod_register(h);
3578 * DSS code presumes that dss_core hwmod is handled first,
3579 * _before_ any other DSS related hwmods so register common
3580 * DSS hwmods last to ensure that dss_core is already registered.
3581 * Otherwise some change things may happen, for ex. if dispc
3582 * is handled before dss_core and DSS is enabled in bootloader
3583 * DIPSC will be reset with outputs enabled which sometimes leads
3584 * to unrecoverable L3 error.
3586 r = omap_hwmod_register(omap3xxx_dss_hwmods);