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 omap34xx_sr2_hwmod;
70 static struct omap_hwmod omap34xx_mcspi1;
71 static struct omap_hwmod omap34xx_mcspi2;
72 static struct omap_hwmod omap34xx_mcspi3;
73 static struct omap_hwmod omap34xx_mcspi4;
74 static struct omap_hwmod omap3xxx_mmc1_hwmod;
75 static struct omap_hwmod omap3xxx_mmc2_hwmod;
76 static struct omap_hwmod omap3xxx_mmc3_hwmod;
77 static struct omap_hwmod am35xx_usbhsotg_hwmod;
79 static struct omap_hwmod omap3xxx_dma_system_hwmod;
81 static struct omap_hwmod omap3xxx_mcbsp1_hwmod;
82 static struct omap_hwmod omap3xxx_mcbsp2_hwmod;
83 static struct omap_hwmod omap3xxx_mcbsp3_hwmod;
84 static struct omap_hwmod omap3xxx_mcbsp4_hwmod;
85 static struct omap_hwmod omap3xxx_mcbsp5_hwmod;
86 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod;
87 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod;
89 /* L3 -> L4_CORE interface */
90 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
91 .master = &omap3xxx_l3_main_hwmod,
92 .slave = &omap3xxx_l4_core_hwmod,
93 .user = OCP_USER_MPU | OCP_USER_SDMA,
96 /* L3 -> L4_PER interface */
97 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = {
98 .master = &omap3xxx_l3_main_hwmod,
99 .slave = &omap3xxx_l4_per_hwmod,
100 .user = OCP_USER_MPU | OCP_USER_SDMA,
103 /* L3 taret configuration and error log registers */
104 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = {
105 { .irq = INT_34XX_L3_DBG_IRQ },
106 { .irq = INT_34XX_L3_APP_IRQ },
110 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs[] = {
112 .pa_start = 0x68000000,
113 .pa_end = 0x6800ffff,
114 .flags = ADDR_TYPE_RT,
119 /* MPU -> L3 interface */
120 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = {
121 .master = &omap3xxx_mpu_hwmod,
122 .slave = &omap3xxx_l3_main_hwmod,
123 .addr = omap3xxx_l3_main_addrs,
124 .user = OCP_USER_MPU,
127 /* Slave interfaces on the L3 interconnect */
128 static struct omap_hwmod_ocp_if *omap3xxx_l3_main_slaves[] = {
129 &omap3xxx_mpu__l3_main,
133 static struct omap_hwmod_ocp_if omap3xxx_dss__l3 = {
134 .master = &omap3xxx_dss_core_hwmod,
135 .slave = &omap3xxx_l3_main_hwmod,
138 .l3_perm_bit = OMAP3_L3_CORE_FW_INIT_ID_DSS,
139 .flags = OMAP_FIREWALL_L3,
142 .user = OCP_USER_MPU | OCP_USER_SDMA,
145 /* Master interfaces on the L3 interconnect */
146 static struct omap_hwmod_ocp_if *omap3xxx_l3_main_masters[] = {
147 &omap3xxx_l3_main__l4_core,
148 &omap3xxx_l3_main__l4_per,
152 static struct omap_hwmod omap3xxx_l3_main_hwmod = {
154 .class = &l3_hwmod_class,
155 .mpu_irqs = omap3xxx_l3_main_irqs,
156 .masters = omap3xxx_l3_main_masters,
157 .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters),
158 .slaves = omap3xxx_l3_main_slaves,
159 .slaves_cnt = ARRAY_SIZE(omap3xxx_l3_main_slaves),
160 .flags = HWMOD_NO_IDLEST,
163 static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
164 static struct omap_hwmod omap3xxx_uart1_hwmod;
165 static struct omap_hwmod omap3xxx_uart2_hwmod;
166 static struct omap_hwmod omap3xxx_uart3_hwmod;
167 static struct omap_hwmod omap3xxx_uart4_hwmod;
168 static struct omap_hwmod omap3xxx_usbhsotg_hwmod;
170 /* l3_core -> usbhsotg interface */
171 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3 = {
172 .master = &omap3xxx_usbhsotg_hwmod,
173 .slave = &omap3xxx_l3_main_hwmod,
174 .clk = "core_l3_ick",
175 .user = OCP_USER_MPU,
178 /* l3_core -> am35xx_usbhsotg interface */
179 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3 = {
180 .master = &am35xx_usbhsotg_hwmod,
181 .slave = &omap3xxx_l3_main_hwmod,
182 .clk = "core_l3_ick",
183 .user = OCP_USER_MPU,
185 /* L4_CORE -> L4_WKUP interface */
186 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
187 .master = &omap3xxx_l4_core_hwmod,
188 .slave = &omap3xxx_l4_wkup_hwmod,
189 .user = OCP_USER_MPU | OCP_USER_SDMA,
192 /* L4 CORE -> MMC1 interface */
193 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc1 = {
194 .master = &omap3xxx_l4_core_hwmod,
195 .slave = &omap3xxx_mmc1_hwmod,
197 .addr = omap2430_mmc1_addr_space,
198 .user = OCP_USER_MPU | OCP_USER_SDMA,
199 .flags = OMAP_FIREWALL_L4
202 /* L4 CORE -> MMC2 interface */
203 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc2 = {
204 .master = &omap3xxx_l4_core_hwmod,
205 .slave = &omap3xxx_mmc2_hwmod,
207 .addr = omap2430_mmc2_addr_space,
208 .user = OCP_USER_MPU | OCP_USER_SDMA,
209 .flags = OMAP_FIREWALL_L4
212 /* L4 CORE -> MMC3 interface */
213 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space[] = {
215 .pa_start = 0x480ad000,
216 .pa_end = 0x480ad1ff,
217 .flags = ADDR_TYPE_RT,
222 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3 = {
223 .master = &omap3xxx_l4_core_hwmod,
224 .slave = &omap3xxx_mmc3_hwmod,
226 .addr = omap3xxx_mmc3_addr_space,
227 .user = OCP_USER_MPU | OCP_USER_SDMA,
228 .flags = OMAP_FIREWALL_L4
231 /* L4 CORE -> UART1 interface */
232 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = {
234 .pa_start = OMAP3_UART1_BASE,
235 .pa_end = OMAP3_UART1_BASE + SZ_8K - 1,
236 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
241 static struct omap_hwmod_ocp_if omap3_l4_core__uart1 = {
242 .master = &omap3xxx_l4_core_hwmod,
243 .slave = &omap3xxx_uart1_hwmod,
245 .addr = omap3xxx_uart1_addr_space,
246 .user = OCP_USER_MPU | OCP_USER_SDMA,
249 /* L4 CORE -> UART2 interface */
250 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space[] = {
252 .pa_start = OMAP3_UART2_BASE,
253 .pa_end = OMAP3_UART2_BASE + SZ_1K - 1,
254 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
259 static struct omap_hwmod_ocp_if omap3_l4_core__uart2 = {
260 .master = &omap3xxx_l4_core_hwmod,
261 .slave = &omap3xxx_uart2_hwmod,
263 .addr = omap3xxx_uart2_addr_space,
264 .user = OCP_USER_MPU | OCP_USER_SDMA,
267 /* L4 PER -> UART3 interface */
268 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space[] = {
270 .pa_start = OMAP3_UART3_BASE,
271 .pa_end = OMAP3_UART3_BASE + SZ_1K - 1,
272 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
277 static struct omap_hwmod_ocp_if omap3_l4_per__uart3 = {
278 .master = &omap3xxx_l4_per_hwmod,
279 .slave = &omap3xxx_uart3_hwmod,
281 .addr = omap3xxx_uart3_addr_space,
282 .user = OCP_USER_MPU | OCP_USER_SDMA,
285 /* L4 PER -> UART4 interface */
286 static struct omap_hwmod_addr_space omap3xxx_uart4_addr_space[] = {
288 .pa_start = OMAP3_UART4_BASE,
289 .pa_end = OMAP3_UART4_BASE + SZ_1K - 1,
290 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
295 static struct omap_hwmod_ocp_if omap3_l4_per__uart4 = {
296 .master = &omap3xxx_l4_per_hwmod,
297 .slave = &omap3xxx_uart4_hwmod,
299 .addr = omap3xxx_uart4_addr_space,
300 .user = OCP_USER_MPU | OCP_USER_SDMA,
303 /* L4 CORE -> I2C1 interface */
304 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1 = {
305 .master = &omap3xxx_l4_core_hwmod,
306 .slave = &omap3xxx_i2c1_hwmod,
308 .addr = omap2_i2c1_addr_space,
311 .l4_fw_region = OMAP3_L4_CORE_FW_I2C1_REGION,
313 .flags = OMAP_FIREWALL_L4,
316 .user = OCP_USER_MPU | OCP_USER_SDMA,
319 /* L4 CORE -> I2C2 interface */
320 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2 = {
321 .master = &omap3xxx_l4_core_hwmod,
322 .slave = &omap3xxx_i2c2_hwmod,
324 .addr = omap2_i2c2_addr_space,
327 .l4_fw_region = OMAP3_L4_CORE_FW_I2C2_REGION,
329 .flags = OMAP_FIREWALL_L4,
332 .user = OCP_USER_MPU | OCP_USER_SDMA,
335 /* L4 CORE -> I2C3 interface */
336 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space[] = {
338 .pa_start = 0x48060000,
339 .pa_end = 0x48060000 + SZ_128 - 1,
340 .flags = ADDR_TYPE_RT,
345 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3 = {
346 .master = &omap3xxx_l4_core_hwmod,
347 .slave = &omap3xxx_i2c3_hwmod,
349 .addr = omap3xxx_i2c3_addr_space,
352 .l4_fw_region = OMAP3_L4_CORE_FW_I2C3_REGION,
354 .flags = OMAP_FIREWALL_L4,
357 .user = OCP_USER_MPU | OCP_USER_SDMA,
360 /* L4 CORE -> SR1 interface */
361 static struct omap_hwmod_addr_space omap3_sr1_addr_space[] = {
363 .pa_start = OMAP34XX_SR1_BASE,
364 .pa_end = OMAP34XX_SR1_BASE + SZ_1K - 1,
365 .flags = ADDR_TYPE_RT,
370 static struct omap_hwmod_ocp_if omap3_l4_core__sr1 = {
371 .master = &omap3xxx_l4_core_hwmod,
372 .slave = &omap34xx_sr1_hwmod,
374 .addr = omap3_sr1_addr_space,
375 .user = OCP_USER_MPU,
378 /* L4 CORE -> SR1 interface */
379 static struct omap_hwmod_addr_space omap3_sr2_addr_space[] = {
381 .pa_start = OMAP34XX_SR2_BASE,
382 .pa_end = OMAP34XX_SR2_BASE + SZ_1K - 1,
383 .flags = ADDR_TYPE_RT,
388 static struct omap_hwmod_ocp_if omap3_l4_core__sr2 = {
389 .master = &omap3xxx_l4_core_hwmod,
390 .slave = &omap34xx_sr2_hwmod,
392 .addr = omap3_sr2_addr_space,
393 .user = OCP_USER_MPU,
397 * usbhsotg interface data
400 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs[] = {
402 .pa_start = OMAP34XX_HSUSB_OTG_BASE,
403 .pa_end = OMAP34XX_HSUSB_OTG_BASE + SZ_4K - 1,
404 .flags = ADDR_TYPE_RT
409 /* l4_core -> usbhsotg */
410 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg = {
411 .master = &omap3xxx_l4_core_hwmod,
412 .slave = &omap3xxx_usbhsotg_hwmod,
414 .addr = omap3xxx_usbhsotg_addrs,
415 .user = OCP_USER_MPU,
418 static struct omap_hwmod_ocp_if *omap3xxx_usbhsotg_masters[] = {
419 &omap3xxx_usbhsotg__l3,
422 static struct omap_hwmod_ocp_if *omap3xxx_usbhsotg_slaves[] = {
423 &omap3xxx_l4_core__usbhsotg,
426 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs[] = {
428 .pa_start = AM35XX_IPSS_USBOTGSS_BASE,
429 .pa_end = AM35XX_IPSS_USBOTGSS_BASE + SZ_4K - 1,
430 .flags = ADDR_TYPE_RT
435 /* l4_core -> usbhsotg */
436 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg = {
437 .master = &omap3xxx_l4_core_hwmod,
438 .slave = &am35xx_usbhsotg_hwmod,
440 .addr = am35xx_usbhsotg_addrs,
441 .user = OCP_USER_MPU,
444 static struct omap_hwmod_ocp_if *am35xx_usbhsotg_masters[] = {
445 &am35xx_usbhsotg__l3,
448 static struct omap_hwmod_ocp_if *am35xx_usbhsotg_slaves[] = {
449 &am35xx_l4_core__usbhsotg,
451 /* Slave interfaces on the L4_CORE interconnect */
452 static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
453 &omap3xxx_l3_main__l4_core,
457 static struct omap_hwmod omap3xxx_l4_core_hwmod = {
459 .class = &l4_hwmod_class,
460 .slaves = omap3xxx_l4_core_slaves,
461 .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_core_slaves),
462 .flags = HWMOD_NO_IDLEST,
465 /* Slave interfaces on the L4_PER interconnect */
466 static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
467 &omap3xxx_l3_main__l4_per,
471 static struct omap_hwmod omap3xxx_l4_per_hwmod = {
473 .class = &l4_hwmod_class,
474 .slaves = omap3xxx_l4_per_slaves,
475 .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_per_slaves),
476 .flags = HWMOD_NO_IDLEST,
479 /* Slave interfaces on the L4_WKUP interconnect */
480 static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
481 &omap3xxx_l4_core__l4_wkup,
485 static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
487 .class = &l4_hwmod_class,
488 .slaves = omap3xxx_l4_wkup_slaves,
489 .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_slaves),
490 .flags = HWMOD_NO_IDLEST,
493 /* Master interfaces on the MPU device */
494 static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = {
495 &omap3xxx_mpu__l3_main,
499 static struct omap_hwmod omap3xxx_mpu_hwmod = {
501 .class = &mpu_hwmod_class,
502 .main_clk = "arm_fck",
503 .masters = omap3xxx_mpu_masters,
504 .masters_cnt = ARRAY_SIZE(omap3xxx_mpu_masters),
508 * IVA2_2 interface data
511 /* IVA2 <- L3 interface */
512 static struct omap_hwmod_ocp_if omap3xxx_l3__iva = {
513 .master = &omap3xxx_l3_main_hwmod,
514 .slave = &omap3xxx_iva_hwmod,
516 .user = OCP_USER_MPU | OCP_USER_SDMA,
519 static struct omap_hwmod_ocp_if *omap3xxx_iva_masters[] = {
527 static struct omap_hwmod omap3xxx_iva_hwmod = {
529 .class = &iva_hwmod_class,
530 .masters = omap3xxx_iva_masters,
531 .masters_cnt = ARRAY_SIZE(omap3xxx_iva_masters),
535 static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc = {
539 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
540 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
541 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE),
542 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
543 .sysc_fields = &omap_hwmod_sysc_type1,
546 static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class = {
548 .sysc = &omap3xxx_timer_1ms_sysc,
549 .rev = OMAP_TIMER_IP_VERSION_1,
552 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc = {
556 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
557 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
558 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
559 .sysc_fields = &omap_hwmod_sysc_type1,
562 static struct omap_hwmod_class omap3xxx_timer_hwmod_class = {
564 .sysc = &omap3xxx_timer_sysc,
565 .rev = OMAP_TIMER_IP_VERSION_1,
568 /* secure timers dev attribute */
569 static struct omap_timer_capability_dev_attr capability_secure_dev_attr = {
570 .timer_capability = OMAP_TIMER_SECURE,
573 /* always-on timers dev attribute */
574 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
575 .timer_capability = OMAP_TIMER_ALWON,
578 /* pwm timers dev attribute */
579 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
580 .timer_capability = OMAP_TIMER_HAS_PWM,
584 static struct omap_hwmod omap3xxx_timer1_hwmod;
586 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs[] = {
588 .pa_start = 0x48318000,
589 .pa_end = 0x48318000 + SZ_1K - 1,
590 .flags = ADDR_TYPE_RT
595 /* l4_wkup -> timer1 */
596 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1 = {
597 .master = &omap3xxx_l4_wkup_hwmod,
598 .slave = &omap3xxx_timer1_hwmod,
600 .addr = omap3xxx_timer1_addrs,
601 .user = OCP_USER_MPU | OCP_USER_SDMA,
604 /* timer1 slave port */
605 static struct omap_hwmod_ocp_if *omap3xxx_timer1_slaves[] = {
606 &omap3xxx_l4_wkup__timer1,
610 static struct omap_hwmod omap3xxx_timer1_hwmod = {
612 .mpu_irqs = omap2_timer1_mpu_irqs,
613 .main_clk = "gpt1_fck",
617 .module_bit = OMAP3430_EN_GPT1_SHIFT,
618 .module_offs = WKUP_MOD,
620 .idlest_idle_bit = OMAP3430_ST_GPT1_SHIFT,
623 .dev_attr = &capability_alwon_dev_attr,
624 .slaves = omap3xxx_timer1_slaves,
625 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer1_slaves),
626 .class = &omap3xxx_timer_1ms_hwmod_class,
630 static struct omap_hwmod omap3xxx_timer2_hwmod;
632 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs[] = {
634 .pa_start = 0x49032000,
635 .pa_end = 0x49032000 + SZ_1K - 1,
636 .flags = ADDR_TYPE_RT
641 /* l4_per -> timer2 */
642 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2 = {
643 .master = &omap3xxx_l4_per_hwmod,
644 .slave = &omap3xxx_timer2_hwmod,
646 .addr = omap3xxx_timer2_addrs,
647 .user = OCP_USER_MPU | OCP_USER_SDMA,
650 /* timer2 slave port */
651 static struct omap_hwmod_ocp_if *omap3xxx_timer2_slaves[] = {
652 &omap3xxx_l4_per__timer2,
656 static struct omap_hwmod omap3xxx_timer2_hwmod = {
658 .mpu_irqs = omap2_timer2_mpu_irqs,
659 .main_clk = "gpt2_fck",
663 .module_bit = OMAP3430_EN_GPT2_SHIFT,
664 .module_offs = OMAP3430_PER_MOD,
666 .idlest_idle_bit = OMAP3430_ST_GPT2_SHIFT,
669 .dev_attr = &capability_alwon_dev_attr,
670 .slaves = omap3xxx_timer2_slaves,
671 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer2_slaves),
672 .class = &omap3xxx_timer_1ms_hwmod_class,
676 static struct omap_hwmod omap3xxx_timer3_hwmod;
678 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs[] = {
680 .pa_start = 0x49034000,
681 .pa_end = 0x49034000 + SZ_1K - 1,
682 .flags = ADDR_TYPE_RT
687 /* l4_per -> timer3 */
688 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3 = {
689 .master = &omap3xxx_l4_per_hwmod,
690 .slave = &omap3xxx_timer3_hwmod,
692 .addr = omap3xxx_timer3_addrs,
693 .user = OCP_USER_MPU | OCP_USER_SDMA,
696 /* timer3 slave port */
697 static struct omap_hwmod_ocp_if *omap3xxx_timer3_slaves[] = {
698 &omap3xxx_l4_per__timer3,
702 static struct omap_hwmod omap3xxx_timer3_hwmod = {
704 .mpu_irqs = omap2_timer3_mpu_irqs,
705 .main_clk = "gpt3_fck",
709 .module_bit = OMAP3430_EN_GPT3_SHIFT,
710 .module_offs = OMAP3430_PER_MOD,
712 .idlest_idle_bit = OMAP3430_ST_GPT3_SHIFT,
715 .dev_attr = &capability_alwon_dev_attr,
716 .slaves = omap3xxx_timer3_slaves,
717 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer3_slaves),
718 .class = &omap3xxx_timer_hwmod_class,
722 static struct omap_hwmod omap3xxx_timer4_hwmod;
724 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs[] = {
726 .pa_start = 0x49036000,
727 .pa_end = 0x49036000 + SZ_1K - 1,
728 .flags = ADDR_TYPE_RT
733 /* l4_per -> timer4 */
734 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4 = {
735 .master = &omap3xxx_l4_per_hwmod,
736 .slave = &omap3xxx_timer4_hwmod,
738 .addr = omap3xxx_timer4_addrs,
739 .user = OCP_USER_MPU | OCP_USER_SDMA,
742 /* timer4 slave port */
743 static struct omap_hwmod_ocp_if *omap3xxx_timer4_slaves[] = {
744 &omap3xxx_l4_per__timer4,
748 static struct omap_hwmod omap3xxx_timer4_hwmod = {
750 .mpu_irqs = omap2_timer4_mpu_irqs,
751 .main_clk = "gpt4_fck",
755 .module_bit = OMAP3430_EN_GPT4_SHIFT,
756 .module_offs = OMAP3430_PER_MOD,
758 .idlest_idle_bit = OMAP3430_ST_GPT4_SHIFT,
761 .dev_attr = &capability_alwon_dev_attr,
762 .slaves = omap3xxx_timer4_slaves,
763 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer4_slaves),
764 .class = &omap3xxx_timer_hwmod_class,
768 static struct omap_hwmod omap3xxx_timer5_hwmod;
770 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs[] = {
772 .pa_start = 0x49038000,
773 .pa_end = 0x49038000 + SZ_1K - 1,
774 .flags = ADDR_TYPE_RT
779 /* l4_per -> timer5 */
780 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5 = {
781 .master = &omap3xxx_l4_per_hwmod,
782 .slave = &omap3xxx_timer5_hwmod,
784 .addr = omap3xxx_timer5_addrs,
785 .user = OCP_USER_MPU | OCP_USER_SDMA,
788 /* timer5 slave port */
789 static struct omap_hwmod_ocp_if *omap3xxx_timer5_slaves[] = {
790 &omap3xxx_l4_per__timer5,
794 static struct omap_hwmod omap3xxx_timer5_hwmod = {
796 .mpu_irqs = omap2_timer5_mpu_irqs,
797 .main_clk = "gpt5_fck",
801 .module_bit = OMAP3430_EN_GPT5_SHIFT,
802 .module_offs = OMAP3430_PER_MOD,
804 .idlest_idle_bit = OMAP3430_ST_GPT5_SHIFT,
807 .dev_attr = &capability_alwon_dev_attr,
808 .slaves = omap3xxx_timer5_slaves,
809 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer5_slaves),
810 .class = &omap3xxx_timer_hwmod_class,
814 static struct omap_hwmod omap3xxx_timer6_hwmod;
816 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs[] = {
818 .pa_start = 0x4903A000,
819 .pa_end = 0x4903A000 + SZ_1K - 1,
820 .flags = ADDR_TYPE_RT
825 /* l4_per -> timer6 */
826 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6 = {
827 .master = &omap3xxx_l4_per_hwmod,
828 .slave = &omap3xxx_timer6_hwmod,
830 .addr = omap3xxx_timer6_addrs,
831 .user = OCP_USER_MPU | OCP_USER_SDMA,
834 /* timer6 slave port */
835 static struct omap_hwmod_ocp_if *omap3xxx_timer6_slaves[] = {
836 &omap3xxx_l4_per__timer6,
840 static struct omap_hwmod omap3xxx_timer6_hwmod = {
842 .mpu_irqs = omap2_timer6_mpu_irqs,
843 .main_clk = "gpt6_fck",
847 .module_bit = OMAP3430_EN_GPT6_SHIFT,
848 .module_offs = OMAP3430_PER_MOD,
850 .idlest_idle_bit = OMAP3430_ST_GPT6_SHIFT,
853 .dev_attr = &capability_alwon_dev_attr,
854 .slaves = omap3xxx_timer6_slaves,
855 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer6_slaves),
856 .class = &omap3xxx_timer_hwmod_class,
860 static struct omap_hwmod omap3xxx_timer7_hwmod;
862 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs[] = {
864 .pa_start = 0x4903C000,
865 .pa_end = 0x4903C000 + SZ_1K - 1,
866 .flags = ADDR_TYPE_RT
871 /* l4_per -> timer7 */
872 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7 = {
873 .master = &omap3xxx_l4_per_hwmod,
874 .slave = &omap3xxx_timer7_hwmod,
876 .addr = omap3xxx_timer7_addrs,
877 .user = OCP_USER_MPU | OCP_USER_SDMA,
880 /* timer7 slave port */
881 static struct omap_hwmod_ocp_if *omap3xxx_timer7_slaves[] = {
882 &omap3xxx_l4_per__timer7,
886 static struct omap_hwmod omap3xxx_timer7_hwmod = {
888 .mpu_irqs = omap2_timer7_mpu_irqs,
889 .main_clk = "gpt7_fck",
893 .module_bit = OMAP3430_EN_GPT7_SHIFT,
894 .module_offs = OMAP3430_PER_MOD,
896 .idlest_idle_bit = OMAP3430_ST_GPT7_SHIFT,
899 .dev_attr = &capability_alwon_dev_attr,
900 .slaves = omap3xxx_timer7_slaves,
901 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer7_slaves),
902 .class = &omap3xxx_timer_hwmod_class,
906 static struct omap_hwmod omap3xxx_timer8_hwmod;
908 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs[] = {
910 .pa_start = 0x4903E000,
911 .pa_end = 0x4903E000 + SZ_1K - 1,
912 .flags = ADDR_TYPE_RT
917 /* l4_per -> timer8 */
918 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8 = {
919 .master = &omap3xxx_l4_per_hwmod,
920 .slave = &omap3xxx_timer8_hwmod,
922 .addr = omap3xxx_timer8_addrs,
923 .user = OCP_USER_MPU | OCP_USER_SDMA,
926 /* timer8 slave port */
927 static struct omap_hwmod_ocp_if *omap3xxx_timer8_slaves[] = {
928 &omap3xxx_l4_per__timer8,
932 static struct omap_hwmod omap3xxx_timer8_hwmod = {
934 .mpu_irqs = omap2_timer8_mpu_irqs,
935 .main_clk = "gpt8_fck",
939 .module_bit = OMAP3430_EN_GPT8_SHIFT,
940 .module_offs = OMAP3430_PER_MOD,
942 .idlest_idle_bit = OMAP3430_ST_GPT8_SHIFT,
945 .dev_attr = &capability_pwm_dev_attr,
946 .slaves = omap3xxx_timer8_slaves,
947 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer8_slaves),
948 .class = &omap3xxx_timer_hwmod_class,
952 static struct omap_hwmod omap3xxx_timer9_hwmod;
954 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs[] = {
956 .pa_start = 0x49040000,
957 .pa_end = 0x49040000 + SZ_1K - 1,
958 .flags = ADDR_TYPE_RT
963 /* l4_per -> timer9 */
964 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9 = {
965 .master = &omap3xxx_l4_per_hwmod,
966 .slave = &omap3xxx_timer9_hwmod,
968 .addr = omap3xxx_timer9_addrs,
969 .user = OCP_USER_MPU | OCP_USER_SDMA,
972 /* timer9 slave port */
973 static struct omap_hwmod_ocp_if *omap3xxx_timer9_slaves[] = {
974 &omap3xxx_l4_per__timer9,
978 static struct omap_hwmod omap3xxx_timer9_hwmod = {
980 .mpu_irqs = omap2_timer9_mpu_irqs,
981 .main_clk = "gpt9_fck",
985 .module_bit = OMAP3430_EN_GPT9_SHIFT,
986 .module_offs = OMAP3430_PER_MOD,
988 .idlest_idle_bit = OMAP3430_ST_GPT9_SHIFT,
991 .dev_attr = &capability_pwm_dev_attr,
992 .slaves = omap3xxx_timer9_slaves,
993 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer9_slaves),
994 .class = &omap3xxx_timer_hwmod_class,
998 static struct omap_hwmod omap3xxx_timer10_hwmod;
1000 /* l4_core -> timer10 */
1001 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10 = {
1002 .master = &omap3xxx_l4_core_hwmod,
1003 .slave = &omap3xxx_timer10_hwmod,
1005 .addr = omap2_timer10_addrs,
1006 .user = OCP_USER_MPU | OCP_USER_SDMA,
1009 /* timer10 slave port */
1010 static struct omap_hwmod_ocp_if *omap3xxx_timer10_slaves[] = {
1011 &omap3xxx_l4_core__timer10,
1015 static struct omap_hwmod omap3xxx_timer10_hwmod = {
1017 .mpu_irqs = omap2_timer10_mpu_irqs,
1018 .main_clk = "gpt10_fck",
1022 .module_bit = OMAP3430_EN_GPT10_SHIFT,
1023 .module_offs = CORE_MOD,
1025 .idlest_idle_bit = OMAP3430_ST_GPT10_SHIFT,
1028 .dev_attr = &capability_pwm_dev_attr,
1029 .slaves = omap3xxx_timer10_slaves,
1030 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer10_slaves),
1031 .class = &omap3xxx_timer_1ms_hwmod_class,
1035 static struct omap_hwmod omap3xxx_timer11_hwmod;
1037 /* l4_core -> timer11 */
1038 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11 = {
1039 .master = &omap3xxx_l4_core_hwmod,
1040 .slave = &omap3xxx_timer11_hwmod,
1042 .addr = omap2_timer11_addrs,
1043 .user = OCP_USER_MPU | OCP_USER_SDMA,
1046 /* timer11 slave port */
1047 static struct omap_hwmod_ocp_if *omap3xxx_timer11_slaves[] = {
1048 &omap3xxx_l4_core__timer11,
1052 static struct omap_hwmod omap3xxx_timer11_hwmod = {
1054 .mpu_irqs = omap2_timer11_mpu_irqs,
1055 .main_clk = "gpt11_fck",
1059 .module_bit = OMAP3430_EN_GPT11_SHIFT,
1060 .module_offs = CORE_MOD,
1062 .idlest_idle_bit = OMAP3430_ST_GPT11_SHIFT,
1065 .dev_attr = &capability_pwm_dev_attr,
1066 .slaves = omap3xxx_timer11_slaves,
1067 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer11_slaves),
1068 .class = &omap3xxx_timer_hwmod_class,
1072 static struct omap_hwmod omap3xxx_timer12_hwmod;
1073 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs[] = {
1078 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs[] = {
1080 .pa_start = 0x48304000,
1081 .pa_end = 0x48304000 + SZ_1K - 1,
1082 .flags = ADDR_TYPE_RT
1087 /* l4_core -> timer12 */
1088 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer12 = {
1089 .master = &omap3xxx_l4_core_hwmod,
1090 .slave = &omap3xxx_timer12_hwmod,
1092 .addr = omap3xxx_timer12_addrs,
1093 .user = OCP_USER_MPU | OCP_USER_SDMA,
1096 /* timer12 slave port */
1097 static struct omap_hwmod_ocp_if *omap3xxx_timer12_slaves[] = {
1098 &omap3xxx_l4_core__timer12,
1102 static struct omap_hwmod omap3xxx_timer12_hwmod = {
1104 .mpu_irqs = omap3xxx_timer12_mpu_irqs,
1105 .main_clk = "gpt12_fck",
1109 .module_bit = OMAP3430_EN_GPT12_SHIFT,
1110 .module_offs = WKUP_MOD,
1112 .idlest_idle_bit = OMAP3430_ST_GPT12_SHIFT,
1115 .dev_attr = &capability_secure_dev_attr,
1116 .slaves = omap3xxx_timer12_slaves,
1117 .slaves_cnt = ARRAY_SIZE(omap3xxx_timer12_slaves),
1118 .class = &omap3xxx_timer_hwmod_class,
1121 /* l4_wkup -> wd_timer2 */
1122 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs[] = {
1124 .pa_start = 0x48314000,
1125 .pa_end = 0x4831407f,
1126 .flags = ADDR_TYPE_RT
1131 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2 = {
1132 .master = &omap3xxx_l4_wkup_hwmod,
1133 .slave = &omap3xxx_wd_timer2_hwmod,
1135 .addr = omap3xxx_wd_timer2_addrs,
1136 .user = OCP_USER_MPU | OCP_USER_SDMA,
1141 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1142 * overflow condition
1145 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc = {
1147 .sysc_offs = 0x0010,
1148 .syss_offs = 0x0014,
1149 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
1150 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1151 SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1152 SYSS_HAS_RESET_STATUS),
1153 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1154 .sysc_fields = &omap_hwmod_sysc_type1,
1158 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1162 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1163 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1164 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1165 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1166 .sysc_fields = &omap_hwmod_sysc_type1,
1169 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class = {
1171 .sysc = &omap3xxx_wd_timer_sysc,
1172 .pre_shutdown = &omap2_wd_timer_disable
1176 static struct omap_hwmod_ocp_if *omap3xxx_wd_timer2_slaves[] = {
1177 &omap3xxx_l4_wkup__wd_timer2,
1180 static struct omap_hwmod omap3xxx_wd_timer2_hwmod = {
1181 .name = "wd_timer2",
1182 .class = &omap3xxx_wd_timer_hwmod_class,
1183 .main_clk = "wdt2_fck",
1187 .module_bit = OMAP3430_EN_WDT2_SHIFT,
1188 .module_offs = WKUP_MOD,
1190 .idlest_idle_bit = OMAP3430_ST_WDT2_SHIFT,
1193 .slaves = omap3xxx_wd_timer2_slaves,
1194 .slaves_cnt = ARRAY_SIZE(omap3xxx_wd_timer2_slaves),
1196 * XXX: Use software supervised mode, HW supervised smartidle seems to
1197 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
1199 .flags = HWMOD_SWSUP_SIDLE,
1204 static struct omap_hwmod_ocp_if *omap3xxx_uart1_slaves[] = {
1205 &omap3_l4_core__uart1,
1208 static struct omap_hwmod omap3xxx_uart1_hwmod = {
1210 .mpu_irqs = omap2_uart1_mpu_irqs,
1211 .sdma_reqs = omap2_uart1_sdma_reqs,
1212 .main_clk = "uart1_fck",
1215 .module_offs = CORE_MOD,
1217 .module_bit = OMAP3430_EN_UART1_SHIFT,
1219 .idlest_idle_bit = OMAP3430_EN_UART1_SHIFT,
1222 .slaves = omap3xxx_uart1_slaves,
1223 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart1_slaves),
1224 .class = &omap2_uart_class,
1229 static struct omap_hwmod_ocp_if *omap3xxx_uart2_slaves[] = {
1230 &omap3_l4_core__uart2,
1233 static struct omap_hwmod omap3xxx_uart2_hwmod = {
1235 .mpu_irqs = omap2_uart2_mpu_irqs,
1236 .sdma_reqs = omap2_uart2_sdma_reqs,
1237 .main_clk = "uart2_fck",
1240 .module_offs = CORE_MOD,
1242 .module_bit = OMAP3430_EN_UART2_SHIFT,
1244 .idlest_idle_bit = OMAP3430_EN_UART2_SHIFT,
1247 .slaves = omap3xxx_uart2_slaves,
1248 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart2_slaves),
1249 .class = &omap2_uart_class,
1254 static struct omap_hwmod_ocp_if *omap3xxx_uart3_slaves[] = {
1255 &omap3_l4_per__uart3,
1258 static struct omap_hwmod omap3xxx_uart3_hwmod = {
1260 .mpu_irqs = omap2_uart3_mpu_irqs,
1261 .sdma_reqs = omap2_uart3_sdma_reqs,
1262 .main_clk = "uart3_fck",
1265 .module_offs = OMAP3430_PER_MOD,
1267 .module_bit = OMAP3430_EN_UART3_SHIFT,
1269 .idlest_idle_bit = OMAP3430_EN_UART3_SHIFT,
1272 .slaves = omap3xxx_uart3_slaves,
1273 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart3_slaves),
1274 .class = &omap2_uart_class,
1279 static struct omap_hwmod_irq_info uart4_mpu_irqs[] = {
1280 { .irq = INT_36XX_UART4_IRQ, },
1284 static struct omap_hwmod_dma_info uart4_sdma_reqs[] = {
1285 { .name = "rx", .dma_req = OMAP36XX_DMA_UART4_RX, },
1286 { .name = "tx", .dma_req = OMAP36XX_DMA_UART4_TX, },
1290 static struct omap_hwmod_ocp_if *omap3xxx_uart4_slaves[] = {
1291 &omap3_l4_per__uart4,
1294 static struct omap_hwmod omap3xxx_uart4_hwmod = {
1296 .mpu_irqs = uart4_mpu_irqs,
1297 .sdma_reqs = uart4_sdma_reqs,
1298 .main_clk = "uart4_fck",
1301 .module_offs = OMAP3430_PER_MOD,
1303 .module_bit = OMAP3630_EN_UART4_SHIFT,
1305 .idlest_idle_bit = OMAP3630_EN_UART4_SHIFT,
1308 .slaves = omap3xxx_uart4_slaves,
1309 .slaves_cnt = ARRAY_SIZE(omap3xxx_uart4_slaves),
1310 .class = &omap2_uart_class,
1313 static struct omap_hwmod_class i2c_class = {
1316 .rev = OMAP_I2C_IP_VERSION_1,
1317 .reset = &omap_i2c_reset,
1320 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs[] = {
1321 { .name = "dispc", .dma_req = 5 },
1322 { .name = "dsi1", .dma_req = 74 },
1327 /* dss master ports */
1328 static struct omap_hwmod_ocp_if *omap3xxx_dss_masters[] = {
1332 /* l4_core -> dss */
1333 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss = {
1334 .master = &omap3xxx_l4_core_hwmod,
1335 .slave = &omap3430es1_dss_core_hwmod,
1337 .addr = omap2_dss_addrs,
1340 .l4_fw_region = OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION,
1341 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1342 .flags = OMAP_FIREWALL_L4,
1345 .user = OCP_USER_MPU | OCP_USER_SDMA,
1348 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss = {
1349 .master = &omap3xxx_l4_core_hwmod,
1350 .slave = &omap3xxx_dss_core_hwmod,
1352 .addr = omap2_dss_addrs,
1355 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_CORE_REGION,
1356 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1357 .flags = OMAP_FIREWALL_L4,
1360 .user = OCP_USER_MPU | OCP_USER_SDMA,
1363 /* dss slave ports */
1364 static struct omap_hwmod_ocp_if *omap3430es1_dss_slaves[] = {
1365 &omap3430es1_l4_core__dss,
1368 static struct omap_hwmod_ocp_if *omap3xxx_dss_slaves[] = {
1369 &omap3xxx_l4_core__dss,
1372 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1374 * The DSS HW needs all DSS clocks enabled during reset. The dss_core
1375 * driver does not use these clocks.
1377 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
1378 { .role = "tv_clk", .clk = "dss_tv_fck" },
1379 /* required only on OMAP3430 */
1380 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
1383 static struct omap_hwmod omap3430es1_dss_core_hwmod = {
1385 .class = &omap2_dss_hwmod_class,
1386 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
1387 .sdma_reqs = omap3xxx_dss_sdma_chs,
1391 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1392 .module_offs = OMAP3430_DSS_MOD,
1394 .idlest_stdby_bit = OMAP3430ES1_ST_DSS_SHIFT,
1397 .opt_clks = dss_opt_clks,
1398 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1399 .slaves = omap3430es1_dss_slaves,
1400 .slaves_cnt = ARRAY_SIZE(omap3430es1_dss_slaves),
1401 .masters = omap3xxx_dss_masters,
1402 .masters_cnt = ARRAY_SIZE(omap3xxx_dss_masters),
1403 .flags = HWMOD_NO_IDLEST | HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1406 static struct omap_hwmod omap3xxx_dss_core_hwmod = {
1408 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1409 .class = &omap2_dss_hwmod_class,
1410 .main_clk = "dss1_alwon_fck", /* instead of dss_fck */
1411 .sdma_reqs = omap3xxx_dss_sdma_chs,
1415 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1416 .module_offs = OMAP3430_DSS_MOD,
1418 .idlest_idle_bit = OMAP3430ES2_ST_DSS_IDLE_SHIFT,
1419 .idlest_stdby_bit = OMAP3430ES2_ST_DSS_STDBY_SHIFT,
1422 .opt_clks = dss_opt_clks,
1423 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1424 .slaves = omap3xxx_dss_slaves,
1425 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_slaves),
1426 .masters = omap3xxx_dss_masters,
1427 .masters_cnt = ARRAY_SIZE(omap3xxx_dss_masters),
1432 * display controller
1435 static struct omap_hwmod_class_sysconfig omap3_dispc_sysc = {
1437 .sysc_offs = 0x0010,
1438 .syss_offs = 0x0014,
1439 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1440 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1441 SYSC_HAS_ENAWAKEUP),
1442 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1443 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1444 .sysc_fields = &omap_hwmod_sysc_type1,
1447 static struct omap_hwmod_class omap3_dispc_hwmod_class = {
1449 .sysc = &omap3_dispc_sysc,
1452 /* l4_core -> dss_dispc */
1453 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc = {
1454 .master = &omap3xxx_l4_core_hwmod,
1455 .slave = &omap3xxx_dss_dispc_hwmod,
1457 .addr = omap2_dss_dispc_addrs,
1460 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DISPC_REGION,
1461 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1462 .flags = OMAP_FIREWALL_L4,
1465 .user = OCP_USER_MPU | OCP_USER_SDMA,
1468 /* dss_dispc slave ports */
1469 static struct omap_hwmod_ocp_if *omap3xxx_dss_dispc_slaves[] = {
1470 &omap3xxx_l4_core__dss_dispc,
1473 static struct omap_hwmod omap3xxx_dss_dispc_hwmod = {
1474 .name = "dss_dispc",
1475 .class = &omap3_dispc_hwmod_class,
1476 .mpu_irqs = omap2_dispc_irqs,
1477 .main_clk = "dss1_alwon_fck",
1481 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1482 .module_offs = OMAP3430_DSS_MOD,
1485 .slaves = omap3xxx_dss_dispc_slaves,
1486 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_dispc_slaves),
1487 .flags = HWMOD_NO_IDLEST,
1488 .dev_attr = &omap2_3_dss_dispc_dev_attr
1493 * display serial interface controller
1496 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = {
1500 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = {
1506 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs[] = {
1508 .pa_start = 0x4804FC00,
1509 .pa_end = 0x4804FFFF,
1510 .flags = ADDR_TYPE_RT
1515 /* l4_core -> dss_dsi1 */
1516 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1 = {
1517 .master = &omap3xxx_l4_core_hwmod,
1518 .slave = &omap3xxx_dss_dsi1_hwmod,
1520 .addr = omap3xxx_dss_dsi1_addrs,
1523 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DSI_REGION,
1524 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1525 .flags = OMAP_FIREWALL_L4,
1528 .user = OCP_USER_MPU | OCP_USER_SDMA,
1531 /* dss_dsi1 slave ports */
1532 static struct omap_hwmod_ocp_if *omap3xxx_dss_dsi1_slaves[] = {
1533 &omap3xxx_l4_core__dss_dsi1,
1536 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
1537 { .role = "sys_clk", .clk = "dss2_alwon_fck" },
1540 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod = {
1542 .class = &omap3xxx_dsi_hwmod_class,
1543 .mpu_irqs = omap3xxx_dsi1_irqs,
1544 .main_clk = "dss1_alwon_fck",
1548 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1549 .module_offs = OMAP3430_DSS_MOD,
1552 .opt_clks = dss_dsi1_opt_clks,
1553 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
1554 .slaves = omap3xxx_dss_dsi1_slaves,
1555 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_dsi1_slaves),
1556 .flags = HWMOD_NO_IDLEST,
1559 /* l4_core -> dss_rfbi */
1560 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi = {
1561 .master = &omap3xxx_l4_core_hwmod,
1562 .slave = &omap3xxx_dss_rfbi_hwmod,
1564 .addr = omap2_dss_rfbi_addrs,
1567 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_RFBI_REGION,
1568 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP ,
1569 .flags = OMAP_FIREWALL_L4,
1572 .user = OCP_USER_MPU | OCP_USER_SDMA,
1575 /* dss_rfbi slave ports */
1576 static struct omap_hwmod_ocp_if *omap3xxx_dss_rfbi_slaves[] = {
1577 &omap3xxx_l4_core__dss_rfbi,
1580 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
1581 { .role = "ick", .clk = "dss_ick" },
1584 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod = {
1586 .class = &omap2_rfbi_hwmod_class,
1587 .main_clk = "dss1_alwon_fck",
1591 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1592 .module_offs = OMAP3430_DSS_MOD,
1595 .opt_clks = dss_rfbi_opt_clks,
1596 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
1597 .slaves = omap3xxx_dss_rfbi_slaves,
1598 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_rfbi_slaves),
1599 .flags = HWMOD_NO_IDLEST,
1602 /* l4_core -> dss_venc */
1603 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc = {
1604 .master = &omap3xxx_l4_core_hwmod,
1605 .slave = &omap3xxx_dss_venc_hwmod,
1607 .addr = omap2_dss_venc_addrs,
1610 .l4_fw_region = OMAP3_L4_CORE_FW_DSS_VENC_REGION,
1611 .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP,
1612 .flags = OMAP_FIREWALL_L4,
1615 .user = OCP_USER_MPU | OCP_USER_SDMA,
1618 /* dss_venc slave ports */
1619 static struct omap_hwmod_ocp_if *omap3xxx_dss_venc_slaves[] = {
1620 &omap3xxx_l4_core__dss_venc,
1623 static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
1624 /* required only on OMAP3430 */
1625 { .role = "tv_dac_clk", .clk = "dss_96m_fck" },
1628 static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
1630 .class = &omap2_venc_hwmod_class,
1631 .main_clk = "dss_tv_fck",
1635 .module_bit = OMAP3430_EN_DSS1_SHIFT,
1636 .module_offs = OMAP3430_DSS_MOD,
1639 .opt_clks = dss_venc_opt_clks,
1640 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
1641 .slaves = omap3xxx_dss_venc_slaves,
1642 .slaves_cnt = ARRAY_SIZE(omap3xxx_dss_venc_slaves),
1643 .flags = HWMOD_NO_IDLEST,
1648 static struct omap_i2c_dev_attr i2c1_dev_attr = {
1649 .fifo_depth = 8, /* bytes */
1650 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1651 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1652 OMAP_I2C_FLAG_BUS_SHIFT_2,
1655 static struct omap_hwmod_ocp_if *omap3xxx_i2c1_slaves[] = {
1656 &omap3_l4_core__i2c1,
1659 static struct omap_hwmod omap3xxx_i2c1_hwmod = {
1661 .flags = HWMOD_16BIT_REG,
1662 .mpu_irqs = omap2_i2c1_mpu_irqs,
1663 .sdma_reqs = omap2_i2c1_sdma_reqs,
1664 .main_clk = "i2c1_fck",
1667 .module_offs = CORE_MOD,
1669 .module_bit = OMAP3430_EN_I2C1_SHIFT,
1671 .idlest_idle_bit = OMAP3430_ST_I2C1_SHIFT,
1674 .slaves = omap3xxx_i2c1_slaves,
1675 .slaves_cnt = ARRAY_SIZE(omap3xxx_i2c1_slaves),
1676 .class = &i2c_class,
1677 .dev_attr = &i2c1_dev_attr,
1682 static struct omap_i2c_dev_attr i2c2_dev_attr = {
1683 .fifo_depth = 8, /* bytes */
1684 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1685 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1686 OMAP_I2C_FLAG_BUS_SHIFT_2,
1689 static struct omap_hwmod_ocp_if *omap3xxx_i2c2_slaves[] = {
1690 &omap3_l4_core__i2c2,
1693 static struct omap_hwmod omap3xxx_i2c2_hwmod = {
1695 .flags = HWMOD_16BIT_REG,
1696 .mpu_irqs = omap2_i2c2_mpu_irqs,
1697 .sdma_reqs = omap2_i2c2_sdma_reqs,
1698 .main_clk = "i2c2_fck",
1701 .module_offs = CORE_MOD,
1703 .module_bit = OMAP3430_EN_I2C2_SHIFT,
1705 .idlest_idle_bit = OMAP3430_ST_I2C2_SHIFT,
1708 .slaves = omap3xxx_i2c2_slaves,
1709 .slaves_cnt = ARRAY_SIZE(omap3xxx_i2c2_slaves),
1710 .class = &i2c_class,
1711 .dev_attr = &i2c2_dev_attr,
1716 static struct omap_i2c_dev_attr i2c3_dev_attr = {
1717 .fifo_depth = 64, /* bytes */
1718 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1719 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1720 OMAP_I2C_FLAG_BUS_SHIFT_2,
1723 static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
1724 { .irq = INT_34XX_I2C3_IRQ, },
1728 static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = {
1729 { .name = "tx", .dma_req = OMAP34XX_DMA_I2C3_TX },
1730 { .name = "rx", .dma_req = OMAP34XX_DMA_I2C3_RX },
1734 static struct omap_hwmod_ocp_if *omap3xxx_i2c3_slaves[] = {
1735 &omap3_l4_core__i2c3,
1738 static struct omap_hwmod omap3xxx_i2c3_hwmod = {
1740 .flags = HWMOD_16BIT_REG,
1741 .mpu_irqs = i2c3_mpu_irqs,
1742 .sdma_reqs = i2c3_sdma_reqs,
1743 .main_clk = "i2c3_fck",
1746 .module_offs = CORE_MOD,
1748 .module_bit = OMAP3430_EN_I2C3_SHIFT,
1750 .idlest_idle_bit = OMAP3430_ST_I2C3_SHIFT,
1753 .slaves = omap3xxx_i2c3_slaves,
1754 .slaves_cnt = ARRAY_SIZE(omap3xxx_i2c3_slaves),
1755 .class = &i2c_class,
1756 .dev_attr = &i2c3_dev_attr,
1759 /* l4_wkup -> gpio1 */
1760 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs[] = {
1762 .pa_start = 0x48310000,
1763 .pa_end = 0x483101ff,
1764 .flags = ADDR_TYPE_RT
1769 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1 = {
1770 .master = &omap3xxx_l4_wkup_hwmod,
1771 .slave = &omap3xxx_gpio1_hwmod,
1772 .addr = omap3xxx_gpio1_addrs,
1773 .user = OCP_USER_MPU | OCP_USER_SDMA,
1776 /* l4_per -> gpio2 */
1777 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs[] = {
1779 .pa_start = 0x49050000,
1780 .pa_end = 0x490501ff,
1781 .flags = ADDR_TYPE_RT
1786 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2 = {
1787 .master = &omap3xxx_l4_per_hwmod,
1788 .slave = &omap3xxx_gpio2_hwmod,
1789 .addr = omap3xxx_gpio2_addrs,
1790 .user = OCP_USER_MPU | OCP_USER_SDMA,
1793 /* l4_per -> gpio3 */
1794 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs[] = {
1796 .pa_start = 0x49052000,
1797 .pa_end = 0x490521ff,
1798 .flags = ADDR_TYPE_RT
1803 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3 = {
1804 .master = &omap3xxx_l4_per_hwmod,
1805 .slave = &omap3xxx_gpio3_hwmod,
1806 .addr = omap3xxx_gpio3_addrs,
1807 .user = OCP_USER_MPU | OCP_USER_SDMA,
1810 /* l4_per -> gpio4 */
1811 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs[] = {
1813 .pa_start = 0x49054000,
1814 .pa_end = 0x490541ff,
1815 .flags = ADDR_TYPE_RT
1820 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4 = {
1821 .master = &omap3xxx_l4_per_hwmod,
1822 .slave = &omap3xxx_gpio4_hwmod,
1823 .addr = omap3xxx_gpio4_addrs,
1824 .user = OCP_USER_MPU | OCP_USER_SDMA,
1827 /* l4_per -> gpio5 */
1828 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs[] = {
1830 .pa_start = 0x49056000,
1831 .pa_end = 0x490561ff,
1832 .flags = ADDR_TYPE_RT
1837 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5 = {
1838 .master = &omap3xxx_l4_per_hwmod,
1839 .slave = &omap3xxx_gpio5_hwmod,
1840 .addr = omap3xxx_gpio5_addrs,
1841 .user = OCP_USER_MPU | OCP_USER_SDMA,
1844 /* l4_per -> gpio6 */
1845 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs[] = {
1847 .pa_start = 0x49058000,
1848 .pa_end = 0x490581ff,
1849 .flags = ADDR_TYPE_RT
1854 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6 = {
1855 .master = &omap3xxx_l4_per_hwmod,
1856 .slave = &omap3xxx_gpio6_hwmod,
1857 .addr = omap3xxx_gpio6_addrs,
1858 .user = OCP_USER_MPU | OCP_USER_SDMA,
1863 * general purpose io module
1866 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc = {
1868 .sysc_offs = 0x0010,
1869 .syss_offs = 0x0014,
1870 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1871 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1872 SYSS_HAS_RESET_STATUS),
1873 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1874 .sysc_fields = &omap_hwmod_sysc_type1,
1877 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class = {
1879 .sysc = &omap3xxx_gpio_sysc,
1884 static struct omap_gpio_dev_attr gpio_dev_attr = {
1890 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1891 { .role = "dbclk", .clk = "gpio1_dbck", },
1894 static struct omap_hwmod_ocp_if *omap3xxx_gpio1_slaves[] = {
1895 &omap3xxx_l4_wkup__gpio1,
1898 static struct omap_hwmod omap3xxx_gpio1_hwmod = {
1900 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1901 .mpu_irqs = omap2_gpio1_irqs,
1902 .main_clk = "gpio1_ick",
1903 .opt_clks = gpio1_opt_clks,
1904 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1908 .module_bit = OMAP3430_EN_GPIO1_SHIFT,
1909 .module_offs = WKUP_MOD,
1911 .idlest_idle_bit = OMAP3430_ST_GPIO1_SHIFT,
1914 .slaves = omap3xxx_gpio1_slaves,
1915 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio1_slaves),
1916 .class = &omap3xxx_gpio_hwmod_class,
1917 .dev_attr = &gpio_dev_attr,
1921 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1922 { .role = "dbclk", .clk = "gpio2_dbck", },
1925 static struct omap_hwmod_ocp_if *omap3xxx_gpio2_slaves[] = {
1926 &omap3xxx_l4_per__gpio2,
1929 static struct omap_hwmod omap3xxx_gpio2_hwmod = {
1931 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1932 .mpu_irqs = omap2_gpio2_irqs,
1933 .main_clk = "gpio2_ick",
1934 .opt_clks = gpio2_opt_clks,
1935 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1939 .module_bit = OMAP3430_EN_GPIO2_SHIFT,
1940 .module_offs = OMAP3430_PER_MOD,
1942 .idlest_idle_bit = OMAP3430_ST_GPIO2_SHIFT,
1945 .slaves = omap3xxx_gpio2_slaves,
1946 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio2_slaves),
1947 .class = &omap3xxx_gpio_hwmod_class,
1948 .dev_attr = &gpio_dev_attr,
1952 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1953 { .role = "dbclk", .clk = "gpio3_dbck", },
1956 static struct omap_hwmod_ocp_if *omap3xxx_gpio3_slaves[] = {
1957 &omap3xxx_l4_per__gpio3,
1960 static struct omap_hwmod omap3xxx_gpio3_hwmod = {
1962 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1963 .mpu_irqs = omap2_gpio3_irqs,
1964 .main_clk = "gpio3_ick",
1965 .opt_clks = gpio3_opt_clks,
1966 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1970 .module_bit = OMAP3430_EN_GPIO3_SHIFT,
1971 .module_offs = OMAP3430_PER_MOD,
1973 .idlest_idle_bit = OMAP3430_ST_GPIO3_SHIFT,
1976 .slaves = omap3xxx_gpio3_slaves,
1977 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio3_slaves),
1978 .class = &omap3xxx_gpio_hwmod_class,
1979 .dev_attr = &gpio_dev_attr,
1983 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1984 { .role = "dbclk", .clk = "gpio4_dbck", },
1987 static struct omap_hwmod_ocp_if *omap3xxx_gpio4_slaves[] = {
1988 &omap3xxx_l4_per__gpio4,
1991 static struct omap_hwmod omap3xxx_gpio4_hwmod = {
1993 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1994 .mpu_irqs = omap2_gpio4_irqs,
1995 .main_clk = "gpio4_ick",
1996 .opt_clks = gpio4_opt_clks,
1997 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
2001 .module_bit = OMAP3430_EN_GPIO4_SHIFT,
2002 .module_offs = OMAP3430_PER_MOD,
2004 .idlest_idle_bit = OMAP3430_ST_GPIO4_SHIFT,
2007 .slaves = omap3xxx_gpio4_slaves,
2008 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio4_slaves),
2009 .class = &omap3xxx_gpio_hwmod_class,
2010 .dev_attr = &gpio_dev_attr,
2014 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = {
2015 { .irq = 33 }, /* INT_34XX_GPIO_BANK5 */
2019 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
2020 { .role = "dbclk", .clk = "gpio5_dbck", },
2023 static struct omap_hwmod_ocp_if *omap3xxx_gpio5_slaves[] = {
2024 &omap3xxx_l4_per__gpio5,
2027 static struct omap_hwmod omap3xxx_gpio5_hwmod = {
2029 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2030 .mpu_irqs = omap3xxx_gpio5_irqs,
2031 .main_clk = "gpio5_ick",
2032 .opt_clks = gpio5_opt_clks,
2033 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
2037 .module_bit = OMAP3430_EN_GPIO5_SHIFT,
2038 .module_offs = OMAP3430_PER_MOD,
2040 .idlest_idle_bit = OMAP3430_ST_GPIO5_SHIFT,
2043 .slaves = omap3xxx_gpio5_slaves,
2044 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio5_slaves),
2045 .class = &omap3xxx_gpio_hwmod_class,
2046 .dev_attr = &gpio_dev_attr,
2050 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = {
2051 { .irq = 34 }, /* INT_34XX_GPIO_BANK6 */
2055 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
2056 { .role = "dbclk", .clk = "gpio6_dbck", },
2059 static struct omap_hwmod_ocp_if *omap3xxx_gpio6_slaves[] = {
2060 &omap3xxx_l4_per__gpio6,
2063 static struct omap_hwmod omap3xxx_gpio6_hwmod = {
2065 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2066 .mpu_irqs = omap3xxx_gpio6_irqs,
2067 .main_clk = "gpio6_ick",
2068 .opt_clks = gpio6_opt_clks,
2069 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2073 .module_bit = OMAP3430_EN_GPIO6_SHIFT,
2074 .module_offs = OMAP3430_PER_MOD,
2076 .idlest_idle_bit = OMAP3430_ST_GPIO6_SHIFT,
2079 .slaves = omap3xxx_gpio6_slaves,
2080 .slaves_cnt = ARRAY_SIZE(omap3xxx_gpio6_slaves),
2081 .class = &omap3xxx_gpio_hwmod_class,
2082 .dev_attr = &gpio_dev_attr,
2085 /* dma_system -> L3 */
2086 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3 = {
2087 .master = &omap3xxx_dma_system_hwmod,
2088 .slave = &omap3xxx_l3_main_hwmod,
2089 .clk = "core_l3_ick",
2090 .user = OCP_USER_MPU | OCP_USER_SDMA,
2093 /* dma attributes */
2094 static struct omap_dma_dev_attr dma_dev_attr = {
2095 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
2096 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
2100 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc = {
2102 .sysc_offs = 0x002c,
2103 .syss_offs = 0x0028,
2104 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2105 SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
2106 SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE |
2107 SYSS_HAS_RESET_STATUS),
2108 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2109 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
2110 .sysc_fields = &omap_hwmod_sysc_type1,
2113 static struct omap_hwmod_class omap3xxx_dma_hwmod_class = {
2115 .sysc = &omap3xxx_dma_sysc,
2119 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs[] = {
2121 .pa_start = 0x48056000,
2122 .pa_end = 0x48056fff,
2123 .flags = ADDR_TYPE_RT
2128 /* dma_system master ports */
2129 static struct omap_hwmod_ocp_if *omap3xxx_dma_system_masters[] = {
2130 &omap3xxx_dma_system__l3,
2133 /* l4_cfg -> dma_system */
2134 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system = {
2135 .master = &omap3xxx_l4_core_hwmod,
2136 .slave = &omap3xxx_dma_system_hwmod,
2137 .clk = "core_l4_ick",
2138 .addr = omap3xxx_dma_system_addrs,
2139 .user = OCP_USER_MPU | OCP_USER_SDMA,
2142 /* dma_system slave ports */
2143 static struct omap_hwmod_ocp_if *omap3xxx_dma_system_slaves[] = {
2144 &omap3xxx_l4_core__dma_system,
2147 static struct omap_hwmod omap3xxx_dma_system_hwmod = {
2149 .class = &omap3xxx_dma_hwmod_class,
2150 .mpu_irqs = omap2_dma_system_irqs,
2151 .main_clk = "core_l3_ick",
2154 .module_offs = CORE_MOD,
2156 .module_bit = OMAP3430_ST_SDMA_SHIFT,
2158 .idlest_idle_bit = OMAP3430_ST_SDMA_SHIFT,
2161 .slaves = omap3xxx_dma_system_slaves,
2162 .slaves_cnt = ARRAY_SIZE(omap3xxx_dma_system_slaves),
2163 .masters = omap3xxx_dma_system_masters,
2164 .masters_cnt = ARRAY_SIZE(omap3xxx_dma_system_masters),
2165 .dev_attr = &dma_dev_attr,
2166 .flags = HWMOD_NO_IDLEST,
2171 * multi channel buffered serial port controller
2174 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc = {
2175 .sysc_offs = 0x008c,
2176 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2177 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2178 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2179 .sysc_fields = &omap_hwmod_sysc_type1,
2183 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = {
2185 .sysc = &omap3xxx_mcbsp_sysc,
2186 .rev = MCBSP_CONFIG_TYPE3,
2190 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = {
2191 { .name = "irq", .irq = 16 },
2192 { .name = "tx", .irq = 59 },
2193 { .name = "rx", .irq = 60 },
2197 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs[] = {
2200 .pa_start = 0x48074000,
2201 .pa_end = 0x480740ff,
2202 .flags = ADDR_TYPE_RT
2207 /* l4_core -> mcbsp1 */
2208 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1 = {
2209 .master = &omap3xxx_l4_core_hwmod,
2210 .slave = &omap3xxx_mcbsp1_hwmod,
2211 .clk = "mcbsp1_ick",
2212 .addr = omap3xxx_mcbsp1_addrs,
2213 .user = OCP_USER_MPU | OCP_USER_SDMA,
2216 /* mcbsp1 slave ports */
2217 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp1_slaves[] = {
2218 &omap3xxx_l4_core__mcbsp1,
2221 static struct omap_hwmod omap3xxx_mcbsp1_hwmod = {
2223 .class = &omap3xxx_mcbsp_hwmod_class,
2224 .mpu_irqs = omap3xxx_mcbsp1_irqs,
2225 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
2226 .main_clk = "mcbsp1_fck",
2230 .module_bit = OMAP3430_EN_MCBSP1_SHIFT,
2231 .module_offs = CORE_MOD,
2233 .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT,
2236 .slaves = omap3xxx_mcbsp1_slaves,
2237 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp1_slaves),
2241 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = {
2242 { .name = "irq", .irq = 17 },
2243 { .name = "tx", .irq = 62 },
2244 { .name = "rx", .irq = 63 },
2248 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs[] = {
2251 .pa_start = 0x49022000,
2252 .pa_end = 0x490220ff,
2253 .flags = ADDR_TYPE_RT
2258 /* l4_per -> mcbsp2 */
2259 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2 = {
2260 .master = &omap3xxx_l4_per_hwmod,
2261 .slave = &omap3xxx_mcbsp2_hwmod,
2262 .clk = "mcbsp2_ick",
2263 .addr = omap3xxx_mcbsp2_addrs,
2264 .user = OCP_USER_MPU | OCP_USER_SDMA,
2267 /* mcbsp2 slave ports */
2268 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp2_slaves[] = {
2269 &omap3xxx_l4_per__mcbsp2,
2272 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = {
2273 .sidetone = "mcbsp2_sidetone",
2276 static struct omap_hwmod omap3xxx_mcbsp2_hwmod = {
2278 .class = &omap3xxx_mcbsp_hwmod_class,
2279 .mpu_irqs = omap3xxx_mcbsp2_irqs,
2280 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
2281 .main_clk = "mcbsp2_fck",
2285 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
2286 .module_offs = OMAP3430_PER_MOD,
2288 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
2291 .slaves = omap3xxx_mcbsp2_slaves,
2292 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_slaves),
2293 .dev_attr = &omap34xx_mcbsp2_dev_attr,
2297 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = {
2298 { .name = "irq", .irq = 22 },
2299 { .name = "tx", .irq = 89 },
2300 { .name = "rx", .irq = 90 },
2304 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs[] = {
2307 .pa_start = 0x49024000,
2308 .pa_end = 0x490240ff,
2309 .flags = ADDR_TYPE_RT
2314 /* l4_per -> mcbsp3 */
2315 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3 = {
2316 .master = &omap3xxx_l4_per_hwmod,
2317 .slave = &omap3xxx_mcbsp3_hwmod,
2318 .clk = "mcbsp3_ick",
2319 .addr = omap3xxx_mcbsp3_addrs,
2320 .user = OCP_USER_MPU | OCP_USER_SDMA,
2323 /* mcbsp3 slave ports */
2324 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp3_slaves[] = {
2325 &omap3xxx_l4_per__mcbsp3,
2328 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = {
2329 .sidetone = "mcbsp3_sidetone",
2332 static struct omap_hwmod omap3xxx_mcbsp3_hwmod = {
2334 .class = &omap3xxx_mcbsp_hwmod_class,
2335 .mpu_irqs = omap3xxx_mcbsp3_irqs,
2336 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
2337 .main_clk = "mcbsp3_fck",
2341 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
2342 .module_offs = OMAP3430_PER_MOD,
2344 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
2347 .slaves = omap3xxx_mcbsp3_slaves,
2348 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_slaves),
2349 .dev_attr = &omap34xx_mcbsp3_dev_attr,
2353 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = {
2354 { .name = "irq", .irq = 23 },
2355 { .name = "tx", .irq = 54 },
2356 { .name = "rx", .irq = 55 },
2360 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = {
2361 { .name = "rx", .dma_req = 20 },
2362 { .name = "tx", .dma_req = 19 },
2366 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs[] = {
2369 .pa_start = 0x49026000,
2370 .pa_end = 0x490260ff,
2371 .flags = ADDR_TYPE_RT
2376 /* l4_per -> mcbsp4 */
2377 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4 = {
2378 .master = &omap3xxx_l4_per_hwmod,
2379 .slave = &omap3xxx_mcbsp4_hwmod,
2380 .clk = "mcbsp4_ick",
2381 .addr = omap3xxx_mcbsp4_addrs,
2382 .user = OCP_USER_MPU | OCP_USER_SDMA,
2385 /* mcbsp4 slave ports */
2386 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp4_slaves[] = {
2387 &omap3xxx_l4_per__mcbsp4,
2390 static struct omap_hwmod omap3xxx_mcbsp4_hwmod = {
2392 .class = &omap3xxx_mcbsp_hwmod_class,
2393 .mpu_irqs = omap3xxx_mcbsp4_irqs,
2394 .sdma_reqs = omap3xxx_mcbsp4_sdma_chs,
2395 .main_clk = "mcbsp4_fck",
2399 .module_bit = OMAP3430_EN_MCBSP4_SHIFT,
2400 .module_offs = OMAP3430_PER_MOD,
2402 .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT,
2405 .slaves = omap3xxx_mcbsp4_slaves,
2406 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp4_slaves),
2410 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = {
2411 { .name = "irq", .irq = 27 },
2412 { .name = "tx", .irq = 81 },
2413 { .name = "rx", .irq = 82 },
2417 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = {
2418 { .name = "rx", .dma_req = 22 },
2419 { .name = "tx", .dma_req = 21 },
2423 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs[] = {
2426 .pa_start = 0x48096000,
2427 .pa_end = 0x480960ff,
2428 .flags = ADDR_TYPE_RT
2433 /* l4_core -> mcbsp5 */
2434 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5 = {
2435 .master = &omap3xxx_l4_core_hwmod,
2436 .slave = &omap3xxx_mcbsp5_hwmod,
2437 .clk = "mcbsp5_ick",
2438 .addr = omap3xxx_mcbsp5_addrs,
2439 .user = OCP_USER_MPU | OCP_USER_SDMA,
2442 /* mcbsp5 slave ports */
2443 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp5_slaves[] = {
2444 &omap3xxx_l4_core__mcbsp5,
2447 static struct omap_hwmod omap3xxx_mcbsp5_hwmod = {
2449 .class = &omap3xxx_mcbsp_hwmod_class,
2450 .mpu_irqs = omap3xxx_mcbsp5_irqs,
2451 .sdma_reqs = omap3xxx_mcbsp5_sdma_chs,
2452 .main_clk = "mcbsp5_fck",
2456 .module_bit = OMAP3430_EN_MCBSP5_SHIFT,
2457 .module_offs = CORE_MOD,
2459 .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT,
2462 .slaves = omap3xxx_mcbsp5_slaves,
2463 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp5_slaves),
2465 /* 'mcbsp sidetone' class */
2467 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc = {
2468 .sysc_offs = 0x0010,
2469 .sysc_flags = SYSC_HAS_AUTOIDLE,
2470 .sysc_fields = &omap_hwmod_sysc_type1,
2473 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = {
2474 .name = "mcbsp_sidetone",
2475 .sysc = &omap3xxx_mcbsp_sidetone_sysc,
2478 /* mcbsp2_sidetone */
2479 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = {
2480 { .name = "irq", .irq = 4 },
2484 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs[] = {
2487 .pa_start = 0x49028000,
2488 .pa_end = 0x490280ff,
2489 .flags = ADDR_TYPE_RT
2494 /* l4_per -> mcbsp2_sidetone */
2495 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone = {
2496 .master = &omap3xxx_l4_per_hwmod,
2497 .slave = &omap3xxx_mcbsp2_sidetone_hwmod,
2498 .clk = "mcbsp2_ick",
2499 .addr = omap3xxx_mcbsp2_sidetone_addrs,
2500 .user = OCP_USER_MPU,
2503 /* mcbsp2_sidetone slave ports */
2504 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp2_sidetone_slaves[] = {
2505 &omap3xxx_l4_per__mcbsp2_sidetone,
2508 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = {
2509 .name = "mcbsp2_sidetone",
2510 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
2511 .mpu_irqs = omap3xxx_mcbsp2_sidetone_irqs,
2512 .main_clk = "mcbsp2_fck",
2516 .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
2517 .module_offs = OMAP3430_PER_MOD,
2519 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
2522 .slaves = omap3xxx_mcbsp2_sidetone_slaves,
2523 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_sidetone_slaves),
2526 /* mcbsp3_sidetone */
2527 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = {
2528 { .name = "irq", .irq = 5 },
2532 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs[] = {
2535 .pa_start = 0x4902A000,
2536 .pa_end = 0x4902A0ff,
2537 .flags = ADDR_TYPE_RT
2542 /* l4_per -> mcbsp3_sidetone */
2543 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = {
2544 .master = &omap3xxx_l4_per_hwmod,
2545 .slave = &omap3xxx_mcbsp3_sidetone_hwmod,
2546 .clk = "mcbsp3_ick",
2547 .addr = omap3xxx_mcbsp3_sidetone_addrs,
2548 .user = OCP_USER_MPU,
2551 /* mcbsp3_sidetone slave ports */
2552 static struct omap_hwmod_ocp_if *omap3xxx_mcbsp3_sidetone_slaves[] = {
2553 &omap3xxx_l4_per__mcbsp3_sidetone,
2556 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = {
2557 .name = "mcbsp3_sidetone",
2558 .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
2559 .mpu_irqs = omap3xxx_mcbsp3_sidetone_irqs,
2560 .main_clk = "mcbsp3_fck",
2564 .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
2565 .module_offs = OMAP3430_PER_MOD,
2567 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
2570 .slaves = omap3xxx_mcbsp3_sidetone_slaves,
2571 .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_sidetone_slaves),
2576 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields = {
2580 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc = {
2582 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_NO_CACHE),
2583 .clockact = CLOCKACT_TEST_ICLK,
2584 .sysc_fields = &omap34xx_sr_sysc_fields,
2587 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class = {
2588 .name = "smartreflex",
2589 .sysc = &omap34xx_sr_sysc,
2593 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields = {
2598 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc = {
2600 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2601 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
2603 .sysc_fields = &omap36xx_sr_sysc_fields,
2606 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class = {
2607 .name = "smartreflex",
2608 .sysc = &omap36xx_sr_sysc,
2613 static struct omap_smartreflex_dev_attr sr1_dev_attr = {
2614 .sensor_voltdm_name = "mpu_iva",
2617 static struct omap_hwmod_ocp_if *omap3_sr1_slaves[] = {
2618 &omap3_l4_core__sr1,
2621 static struct omap_hwmod omap34xx_sr1_hwmod = {
2623 .class = &omap34xx_smartreflex_hwmod_class,
2624 .main_clk = "sr1_fck",
2628 .module_bit = OMAP3430_EN_SR1_SHIFT,
2629 .module_offs = WKUP_MOD,
2631 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
2634 .slaves = omap3_sr1_slaves,
2635 .slaves_cnt = ARRAY_SIZE(omap3_sr1_slaves),
2636 .dev_attr = &sr1_dev_attr,
2637 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2640 static struct omap_hwmod omap36xx_sr1_hwmod = {
2642 .class = &omap36xx_smartreflex_hwmod_class,
2643 .main_clk = "sr1_fck",
2647 .module_bit = OMAP3430_EN_SR1_SHIFT,
2648 .module_offs = WKUP_MOD,
2650 .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT,
2653 .slaves = omap3_sr1_slaves,
2654 .slaves_cnt = ARRAY_SIZE(omap3_sr1_slaves),
2655 .dev_attr = &sr1_dev_attr,
2659 static struct omap_smartreflex_dev_attr sr2_dev_attr = {
2660 .sensor_voltdm_name = "core",
2663 static struct omap_hwmod_ocp_if *omap3_sr2_slaves[] = {
2664 &omap3_l4_core__sr2,
2667 static struct omap_hwmod omap34xx_sr2_hwmod = {
2669 .class = &omap34xx_smartreflex_hwmod_class,
2670 .main_clk = "sr2_fck",
2674 .module_bit = OMAP3430_EN_SR2_SHIFT,
2675 .module_offs = WKUP_MOD,
2677 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
2680 .slaves = omap3_sr2_slaves,
2681 .slaves_cnt = ARRAY_SIZE(omap3_sr2_slaves),
2682 .dev_attr = &sr2_dev_attr,
2683 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2686 static struct omap_hwmod omap36xx_sr2_hwmod = {
2688 .class = &omap36xx_smartreflex_hwmod_class,
2689 .main_clk = "sr2_fck",
2693 .module_bit = OMAP3430_EN_SR2_SHIFT,
2694 .module_offs = WKUP_MOD,
2696 .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT,
2699 .slaves = omap3_sr2_slaves,
2700 .slaves_cnt = ARRAY_SIZE(omap3_sr2_slaves),
2701 .dev_attr = &sr2_dev_attr,
2706 * mailbox module allowing communication between the on-chip processors
2707 * using a queued mailbox-interrupt mechanism.
2710 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc = {
2714 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2715 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2716 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2717 .sysc_fields = &omap_hwmod_sysc_type1,
2720 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = {
2722 .sysc = &omap3xxx_mailbox_sysc,
2725 static struct omap_hwmod omap3xxx_mailbox_hwmod;
2726 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = {
2731 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = {
2733 .pa_start = 0x48094000,
2734 .pa_end = 0x480941ff,
2735 .flags = ADDR_TYPE_RT,
2740 /* l4_core -> mailbox */
2741 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = {
2742 .master = &omap3xxx_l4_core_hwmod,
2743 .slave = &omap3xxx_mailbox_hwmod,
2744 .addr = omap3xxx_mailbox_addrs,
2745 .user = OCP_USER_MPU | OCP_USER_SDMA,
2748 /* mailbox slave ports */
2749 static struct omap_hwmod_ocp_if *omap3xxx_mailbox_slaves[] = {
2750 &omap3xxx_l4_core__mailbox,
2753 static struct omap_hwmod omap3xxx_mailbox_hwmod = {
2755 .class = &omap3xxx_mailbox_hwmod_class,
2756 .mpu_irqs = omap3xxx_mailbox_irqs,
2757 .main_clk = "mailboxes_ick",
2761 .module_bit = OMAP3430_EN_MAILBOXES_SHIFT,
2762 .module_offs = CORE_MOD,
2764 .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT,
2767 .slaves = omap3xxx_mailbox_slaves,
2768 .slaves_cnt = ARRAY_SIZE(omap3xxx_mailbox_slaves),
2771 /* l4 core -> mcspi1 interface */
2772 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1 = {
2773 .master = &omap3xxx_l4_core_hwmod,
2774 .slave = &omap34xx_mcspi1,
2775 .clk = "mcspi1_ick",
2776 .addr = omap2_mcspi1_addr_space,
2777 .user = OCP_USER_MPU | OCP_USER_SDMA,
2780 /* l4 core -> mcspi2 interface */
2781 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2 = {
2782 .master = &omap3xxx_l4_core_hwmod,
2783 .slave = &omap34xx_mcspi2,
2784 .clk = "mcspi2_ick",
2785 .addr = omap2_mcspi2_addr_space,
2786 .user = OCP_USER_MPU | OCP_USER_SDMA,
2789 /* l4 core -> mcspi3 interface */
2790 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3 = {
2791 .master = &omap3xxx_l4_core_hwmod,
2792 .slave = &omap34xx_mcspi3,
2793 .clk = "mcspi3_ick",
2794 .addr = omap2430_mcspi3_addr_space,
2795 .user = OCP_USER_MPU | OCP_USER_SDMA,
2798 /* l4 core -> mcspi4 interface */
2799 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space[] = {
2801 .pa_start = 0x480ba000,
2802 .pa_end = 0x480ba0ff,
2803 .flags = ADDR_TYPE_RT,
2808 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4 = {
2809 .master = &omap3xxx_l4_core_hwmod,
2810 .slave = &omap34xx_mcspi4,
2811 .clk = "mcspi4_ick",
2812 .addr = omap34xx_mcspi4_addr_space,
2813 .user = OCP_USER_MPU | OCP_USER_SDMA,
2818 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2822 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc = {
2824 .sysc_offs = 0x0010,
2825 .syss_offs = 0x0014,
2826 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2827 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2828 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2829 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2830 .sysc_fields = &omap_hwmod_sysc_type1,
2833 static struct omap_hwmod_class omap34xx_mcspi_class = {
2835 .sysc = &omap34xx_mcspi_sysc,
2836 .rev = OMAP3_MCSPI_REV,
2840 static struct omap_hwmod_ocp_if *omap34xx_mcspi1_slaves[] = {
2841 &omap34xx_l4_core__mcspi1,
2844 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
2845 .num_chipselect = 4,
2848 static struct omap_hwmod omap34xx_mcspi1 = {
2850 .mpu_irqs = omap2_mcspi1_mpu_irqs,
2851 .sdma_reqs = omap2_mcspi1_sdma_reqs,
2852 .main_clk = "mcspi1_fck",
2855 .module_offs = CORE_MOD,
2857 .module_bit = OMAP3430_EN_MCSPI1_SHIFT,
2859 .idlest_idle_bit = OMAP3430_ST_MCSPI1_SHIFT,
2862 .slaves = omap34xx_mcspi1_slaves,
2863 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi1_slaves),
2864 .class = &omap34xx_mcspi_class,
2865 .dev_attr = &omap_mcspi1_dev_attr,
2869 static struct omap_hwmod_ocp_if *omap34xx_mcspi2_slaves[] = {
2870 &omap34xx_l4_core__mcspi2,
2873 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
2874 .num_chipselect = 2,
2877 static struct omap_hwmod omap34xx_mcspi2 = {
2879 .mpu_irqs = omap2_mcspi2_mpu_irqs,
2880 .sdma_reqs = omap2_mcspi2_sdma_reqs,
2881 .main_clk = "mcspi2_fck",
2884 .module_offs = CORE_MOD,
2886 .module_bit = OMAP3430_EN_MCSPI2_SHIFT,
2888 .idlest_idle_bit = OMAP3430_ST_MCSPI2_SHIFT,
2891 .slaves = omap34xx_mcspi2_slaves,
2892 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi2_slaves),
2893 .class = &omap34xx_mcspi_class,
2894 .dev_attr = &omap_mcspi2_dev_attr,
2898 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = {
2899 { .name = "irq", .irq = 91 }, /* 91 */
2903 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = {
2904 { .name = "tx0", .dma_req = 15 },
2905 { .name = "rx0", .dma_req = 16 },
2906 { .name = "tx1", .dma_req = 23 },
2907 { .name = "rx1", .dma_req = 24 },
2911 static struct omap_hwmod_ocp_if *omap34xx_mcspi3_slaves[] = {
2912 &omap34xx_l4_core__mcspi3,
2915 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
2916 .num_chipselect = 2,
2919 static struct omap_hwmod omap34xx_mcspi3 = {
2921 .mpu_irqs = omap34xx_mcspi3_mpu_irqs,
2922 .sdma_reqs = omap34xx_mcspi3_sdma_reqs,
2923 .main_clk = "mcspi3_fck",
2926 .module_offs = CORE_MOD,
2928 .module_bit = OMAP3430_EN_MCSPI3_SHIFT,
2930 .idlest_idle_bit = OMAP3430_ST_MCSPI3_SHIFT,
2933 .slaves = omap34xx_mcspi3_slaves,
2934 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi3_slaves),
2935 .class = &omap34xx_mcspi_class,
2936 .dev_attr = &omap_mcspi3_dev_attr,
2940 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = {
2941 { .name = "irq", .irq = INT_34XX_SPI4_IRQ }, /* 48 */
2945 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = {
2946 { .name = "tx0", .dma_req = 70 }, /* DMA_SPI4_TX0 */
2947 { .name = "rx0", .dma_req = 71 }, /* DMA_SPI4_RX0 */
2951 static struct omap_hwmod_ocp_if *omap34xx_mcspi4_slaves[] = {
2952 &omap34xx_l4_core__mcspi4,
2955 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr = {
2956 .num_chipselect = 1,
2959 static struct omap_hwmod omap34xx_mcspi4 = {
2961 .mpu_irqs = omap34xx_mcspi4_mpu_irqs,
2962 .sdma_reqs = omap34xx_mcspi4_sdma_reqs,
2963 .main_clk = "mcspi4_fck",
2966 .module_offs = CORE_MOD,
2968 .module_bit = OMAP3430_EN_MCSPI4_SHIFT,
2970 .idlest_idle_bit = OMAP3430_ST_MCSPI4_SHIFT,
2973 .slaves = omap34xx_mcspi4_slaves,
2974 .slaves_cnt = ARRAY_SIZE(omap34xx_mcspi4_slaves),
2975 .class = &omap34xx_mcspi_class,
2976 .dev_attr = &omap_mcspi4_dev_attr,
2980 struct omap_hwmod_class omap34xx_bandgap_ts_class = {
2981 .name = "bandgap_ts",
2984 static struct omap_hwmod_addr_space omap3xxx_bandgap_ts_addrs[] = {
2987 .pa_start = 0x48002524,
2988 .pa_end = 0x48002524 + 4,
2989 .flags = ADDR_TYPE_RT
2994 static struct omap_hwmod omap34xx_bandgap_ts;
2996 /* l4_core -> bandgap */
2997 static struct omap_hwmod_ocp_if omap3xxx_l4_core__bandgap_ts = {
2998 .master = &omap3xxx_l4_core_hwmod,
2999 .slave = &omap34xx_bandgap_ts,
3000 .addr = omap3xxx_bandgap_ts_addrs,
3001 .user = OCP_USER_MPU,
3004 static struct omap_hwmod_ocp_if *omap3xxx_bandgap_ts_slaves[] = {
3005 &omap3xxx_l4_core__bandgap_ts,
3008 static struct omap_hwmod omap34xx_bandgap_ts = {
3009 .name = "bandgap_ts",
3010 .main_clk = "ts_fck",
3011 .slaves = omap3xxx_bandgap_ts_slaves,
3012 .slaves_cnt = ARRAY_SIZE(omap3xxx_bandgap_ts_slaves),
3013 .class = &omap34xx_bandgap_ts_class,
3014 .flags = HWMOD_NO_IDLEST,
3020 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc = {
3022 .sysc_offs = 0x0404,
3023 .syss_offs = 0x0408,
3024 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
3025 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3028 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
3029 .sysc_fields = &omap_hwmod_sysc_type1,
3032 static struct omap_hwmod_class usbotg_class = {
3034 .sysc = &omap3xxx_usbhsotg_sysc,
3037 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = {
3039 { .name = "mc", .irq = 92 },
3040 { .name = "dma", .irq = 93 },
3044 static struct omap_hwmod omap3xxx_usbhsotg_hwmod = {
3045 .name = "usb_otg_hs",
3046 .mpu_irqs = omap3xxx_usbhsotg_mpu_irqs,
3047 .main_clk = "hsotgusb_ick",
3051 .module_bit = OMAP3430_EN_HSOTGUSB_SHIFT,
3052 .module_offs = CORE_MOD,
3054 .idlest_idle_bit = OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT,
3055 .idlest_stdby_bit = OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
3058 .masters = omap3xxx_usbhsotg_masters,
3059 .masters_cnt = ARRAY_SIZE(omap3xxx_usbhsotg_masters),
3060 .slaves = omap3xxx_usbhsotg_slaves,
3061 .slaves_cnt = ARRAY_SIZE(omap3xxx_usbhsotg_slaves),
3062 .class = &usbotg_class,
3065 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
3066 * broken when autoidle is enabled
3067 * workaround is to disable the autoidle bit at module level.
3069 * Enabling the device in any other MIDLEMODE setting but force-idle
3070 * causes core_pwrdm not enter idle states at least on OMAP3630.
3071 * Note that musb has OTG_FORCESTDBY register that controls MSTANDBY
3072 * signal when MIDLEMODE is set to force-idle.
3074 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
3075 | HWMOD_FORCE_MSTANDBY,
3079 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = {
3081 { .name = "mc", .irq = 71 },
3085 static struct omap_hwmod_class am35xx_usbotg_class = {
3086 .name = "am35xx_usbotg",
3090 static struct omap_hwmod am35xx_usbhsotg_hwmod = {
3091 .name = "am35x_otg_hs",
3092 .mpu_irqs = am35xx_usbhsotg_mpu_irqs,
3098 .masters = am35xx_usbhsotg_masters,
3099 .masters_cnt = ARRAY_SIZE(am35xx_usbhsotg_masters),
3100 .slaves = am35xx_usbhsotg_slaves,
3101 .slaves_cnt = ARRAY_SIZE(am35xx_usbhsotg_slaves),
3102 .class = &am35xx_usbotg_class,
3105 /* MMC/SD/SDIO common */
3107 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc = {
3111 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3112 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3113 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
3114 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3115 .sysc_fields = &omap_hwmod_sysc_type1,
3118 static struct omap_hwmod_class omap34xx_mmc_class = {
3120 .sysc = &omap34xx_mmc_sysc,
3125 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = {
3130 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = {
3131 { .name = "tx", .dma_req = 61, },
3132 { .name = "rx", .dma_req = 62, },
3136 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks[] = {
3137 { .role = "dbck", .clk = "omap_32k_fck", },
3140 static struct omap_hwmod_ocp_if *omap3xxx_mmc1_slaves[] = {
3141 &omap3xxx_l4_core__mmc1,
3144 static struct omap_mmc_dev_attr mmc1_dev_attr = {
3145 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3148 /* See 35xx errata 2.1.1.128 in SPRZ278F */
3149 static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr = {
3150 .flags = (OMAP_HSMMC_SUPPORTS_DUAL_VOLT |
3151 OMAP_HSMMC_BROKEN_MULTIBLOCK_READ),
3154 static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod = {
3156 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
3157 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
3158 .opt_clks = omap34xx_mmc1_opt_clks,
3159 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
3160 .main_clk = "mmchs1_fck",
3163 .module_offs = CORE_MOD,
3165 .module_bit = OMAP3430_EN_MMC1_SHIFT,
3167 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
3170 .dev_attr = &mmc1_pre_es3_dev_attr,
3171 .slaves = omap3xxx_mmc1_slaves,
3172 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc1_slaves),
3173 .class = &omap34xx_mmc_class,
3176 static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod = {
3178 .mpu_irqs = omap34xx_mmc1_mpu_irqs,
3179 .sdma_reqs = omap34xx_mmc1_sdma_reqs,
3180 .opt_clks = omap34xx_mmc1_opt_clks,
3181 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
3182 .main_clk = "mmchs1_fck",
3185 .module_offs = CORE_MOD,
3187 .module_bit = OMAP3430_EN_MMC1_SHIFT,
3189 .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
3192 .dev_attr = &mmc1_dev_attr,
3193 .slaves = omap3xxx_mmc1_slaves,
3194 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc1_slaves),
3195 .class = &omap34xx_mmc_class,
3200 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = {
3201 { .irq = INT_24XX_MMC2_IRQ, },
3205 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = {
3206 { .name = "tx", .dma_req = 47, },
3207 { .name = "rx", .dma_req = 48, },
3211 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks[] = {
3212 { .role = "dbck", .clk = "omap_32k_fck", },
3215 static struct omap_hwmod_ocp_if *omap3xxx_mmc2_slaves[] = {
3216 &omap3xxx_l4_core__mmc2,
3219 /* See 35xx errata 2.1.1.128 in SPRZ278F */
3220 static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr = {
3221 .flags = OMAP_HSMMC_BROKEN_MULTIBLOCK_READ,
3224 static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod = {
3226 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
3227 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
3228 .opt_clks = omap34xx_mmc2_opt_clks,
3229 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
3230 .main_clk = "mmchs2_fck",
3233 .module_offs = CORE_MOD,
3235 .module_bit = OMAP3430_EN_MMC2_SHIFT,
3237 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
3240 .dev_attr = &mmc2_pre_es3_dev_attr,
3241 .slaves = omap3xxx_mmc2_slaves,
3242 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc2_slaves),
3243 .class = &omap34xx_mmc_class,
3246 static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod = {
3248 .mpu_irqs = omap34xx_mmc2_mpu_irqs,
3249 .sdma_reqs = omap34xx_mmc2_sdma_reqs,
3250 .opt_clks = omap34xx_mmc2_opt_clks,
3251 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
3252 .main_clk = "mmchs2_fck",
3255 .module_offs = CORE_MOD,
3257 .module_bit = OMAP3430_EN_MMC2_SHIFT,
3259 .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
3262 .slaves = omap3xxx_mmc2_slaves,
3263 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc2_slaves),
3264 .class = &omap34xx_mmc_class,
3269 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = {
3274 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = {
3275 { .name = "tx", .dma_req = 77, },
3276 { .name = "rx", .dma_req = 78, },
3280 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks[] = {
3281 { .role = "dbck", .clk = "omap_32k_fck", },
3284 static struct omap_hwmod_ocp_if *omap3xxx_mmc3_slaves[] = {
3285 &omap3xxx_l4_core__mmc3,
3288 static struct omap_hwmod omap3xxx_mmc3_hwmod = {
3290 .mpu_irqs = omap34xx_mmc3_mpu_irqs,
3291 .sdma_reqs = omap34xx_mmc3_sdma_reqs,
3292 .opt_clks = omap34xx_mmc3_opt_clks,
3293 .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc3_opt_clks),
3294 .main_clk = "mmchs3_fck",
3298 .module_bit = OMAP3430_EN_MMC3_SHIFT,
3300 .idlest_idle_bit = OMAP3430_ST_MMC3_SHIFT,
3303 .slaves = omap3xxx_mmc3_slaves,
3304 .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc3_slaves),
3305 .class = &omap34xx_mmc_class,
3308 static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
3309 &omap3xxx_l3_main_hwmod,
3310 &omap3xxx_l4_core_hwmod,
3311 &omap3xxx_l4_per_hwmod,
3312 &omap3xxx_l4_wkup_hwmod,
3313 &omap3xxx_mmc3_hwmod,
3314 &omap3xxx_mpu_hwmod,
3316 &omap3xxx_timer1_hwmod,
3317 &omap3xxx_timer2_hwmod,
3318 &omap3xxx_timer3_hwmod,
3319 &omap3xxx_timer4_hwmod,
3320 &omap3xxx_timer5_hwmod,
3321 &omap3xxx_timer6_hwmod,
3322 &omap3xxx_timer7_hwmod,
3323 &omap3xxx_timer8_hwmod,
3324 &omap3xxx_timer9_hwmod,
3325 &omap3xxx_timer10_hwmod,
3326 &omap3xxx_timer11_hwmod,
3328 &omap3xxx_wd_timer2_hwmod,
3329 &omap3xxx_uart1_hwmod,
3330 &omap3xxx_uart2_hwmod,
3331 &omap3xxx_uart3_hwmod,
3334 &omap3xxx_i2c1_hwmod,
3335 &omap3xxx_i2c2_hwmod,
3336 &omap3xxx_i2c3_hwmod,
3339 &omap3xxx_gpio1_hwmod,
3340 &omap3xxx_gpio2_hwmod,
3341 &omap3xxx_gpio3_hwmod,
3342 &omap3xxx_gpio4_hwmod,
3343 &omap3xxx_gpio5_hwmod,
3344 &omap3xxx_gpio6_hwmod,
3346 /* dma_system class*/
3347 &omap3xxx_dma_system_hwmod,
3350 &omap3xxx_mcbsp1_hwmod,
3351 &omap3xxx_mcbsp2_hwmod,
3352 &omap3xxx_mcbsp3_hwmod,
3353 &omap3xxx_mcbsp4_hwmod,
3354 &omap3xxx_mcbsp5_hwmod,
3355 &omap3xxx_mcbsp2_sidetone_hwmod,
3356 &omap3xxx_mcbsp3_sidetone_hwmod,
3365 &omap34xx_bandgap_ts,
3370 /* GP-only hwmods */
3371 static __initdata struct omap_hwmod *omap3xxx_gp_hwmods[] = {
3372 &omap3xxx_timer12_hwmod,
3376 /* 3430ES1-only hwmods */
3377 static __initdata struct omap_hwmod *omap3430es1_hwmods[] = {
3378 &omap3430es1_dss_core_hwmod,
3382 /* 3430ES2+-only hwmods */
3383 static __initdata struct omap_hwmod *omap3430es2plus_hwmods[] = {
3384 &omap3xxx_dss_core_hwmod,
3385 &omap3xxx_usbhsotg_hwmod,
3389 /* <= 3430ES3-only hwmods */
3390 static struct omap_hwmod *omap3430_pre_es3_hwmods[] __initdata = {
3391 &omap3xxx_pre_es3_mmc1_hwmod,
3392 &omap3xxx_pre_es3_mmc2_hwmod,
3396 /* 3430ES3+-only hwmods */
3397 static struct omap_hwmod *omap3430_es3plus_hwmods[] __initdata = {
3398 &omap3xxx_es3plus_mmc1_hwmod,
3399 &omap3xxx_es3plus_mmc2_hwmod,
3403 /* 34xx-only hwmods (all ES revisions) */
3404 static __initdata struct omap_hwmod *omap34xx_hwmods[] = {
3405 &omap3xxx_iva_hwmod,
3406 &omap34xx_sr1_hwmod,
3407 &omap34xx_sr2_hwmod,
3408 &omap3xxx_mailbox_hwmod,
3412 /* 36xx-only hwmods (all ES revisions) */
3413 static __initdata struct omap_hwmod *omap36xx_hwmods[] = {
3414 &omap3xxx_iva_hwmod,
3415 &omap3xxx_uart4_hwmod,
3416 &omap3xxx_dss_core_hwmod,
3417 &omap36xx_sr1_hwmod,
3418 &omap36xx_sr2_hwmod,
3419 &omap3xxx_usbhsotg_hwmod,
3420 &omap3xxx_mailbox_hwmod,
3421 &omap3xxx_es3plus_mmc1_hwmod,
3422 &omap3xxx_es3plus_mmc2_hwmod,
3426 static __initdata struct omap_hwmod *am35xx_hwmods[] = {
3427 &omap3xxx_dss_core_hwmod, /* XXX ??? */
3428 &am35xx_usbhsotg_hwmod,
3429 &omap3xxx_es3plus_mmc1_hwmod,
3430 &omap3xxx_es3plus_mmc2_hwmod,
3434 static __initdata struct omap_hwmod *omap3xxx_dss_hwmods[] = {
3436 &omap3xxx_dss_dispc_hwmod,
3437 &omap3xxx_dss_dsi1_hwmod,
3438 &omap3xxx_dss_rfbi_hwmod,
3439 &omap3xxx_dss_venc_hwmod,
3443 int __init omap3xxx_hwmod_init(void)
3446 struct omap_hwmod **h = NULL;
3449 /* Register hwmods common to all OMAP3 */
3450 r = omap_hwmod_register(omap3xxx_hwmods);
3454 /* Register GP-only hwmods. */
3455 if (omap_type() == OMAP2_DEVICE_TYPE_GP) {
3456 r = omap_hwmod_register(omap3xxx_gp_hwmods);
3464 * Register hwmods common to individual OMAP3 families, all
3465 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3466 * All possible revisions should be included in this conditional.
3468 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3469 rev == OMAP3430_REV_ES2_1 || rev == OMAP3430_REV_ES3_0 ||
3470 rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) {
3471 h = omap34xx_hwmods;
3472 } else if (rev == OMAP3517_REV_ES1_0 || rev == OMAP3517_REV_ES1_1) {
3474 } else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 ||
3475 rev == OMAP3630_REV_ES1_2) {
3476 h = omap36xx_hwmods;
3478 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3482 r = omap_hwmod_register(h);
3487 * Register hwmods specific to certain ES levels of a
3488 * particular family of silicon (e.g., 34xx ES1.0)
3491 if (rev == OMAP3430_REV_ES1_0) {
3492 h = omap3430es1_hwmods;
3493 } else if (rev == OMAP3430_REV_ES2_0 || rev == OMAP3430_REV_ES2_1 ||
3494 rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3495 rev == OMAP3430_REV_ES3_1_2) {
3496 h = omap3430es2plus_hwmods;
3500 r = omap_hwmod_register(h);
3506 if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 ||
3507 rev == OMAP3430_REV_ES2_1) {
3508 h = omap3430_pre_es3_hwmods;
3509 } else if (rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 ||
3510 rev == OMAP3430_REV_ES3_1_2) {
3511 h = omap3430_es3plus_hwmods;
3515 r = omap_hwmod_register(h);
3520 * DSS code presumes that dss_core hwmod is handled first,
3521 * _before_ any other DSS related hwmods so register common
3522 * DSS hwmods last to ensure that dss_core is already registered.
3523 * Otherwise some change things may happen, for ex. if dispc
3524 * is handled before dss_core and DSS is enabled in bootloader
3525 * DIPSC will be reset with outputs enabled which sometimes leads
3526 * to unrecoverable L3 error.
3528 r = omap_hwmod_register(omap3xxx_dss_hwmods);