2 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 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 * XXX handle crossbar/shared link difference for L3?
12 * XXX these should be marked initdata for multi-OMAP kernels
14 #include <plat/omap_hwmod.h>
15 #include <mach/irqs.h>
18 #include <plat/serial.h>
20 #include <plat/gpio.h>
21 #include <plat/mcbsp.h>
22 #include <plat/mcspi.h>
23 #include <plat/dmtimer.h>
25 #include <plat/l3_2xxx.h>
27 #include "omap_hwmod_common_data.h"
29 #include "prm-regbits-24xx.h"
30 #include "cm-regbits-24xx.h"
34 * OMAP2430 hardware module integration data
36 * ALl of the data in this section should be autogeneratable from the
37 * TI hardware database or other technical documentation. Data that
38 * is driver-specific or driver-kernel integration-specific belongs
42 static struct omap_hwmod omap2430_mpu_hwmod;
43 static struct omap_hwmod omap2430_iva_hwmod;
44 static struct omap_hwmod omap2430_l3_main_hwmod;
45 static struct omap_hwmod omap2430_l4_core_hwmod;
46 static struct omap_hwmod omap2430_dss_core_hwmod;
47 static struct omap_hwmod omap2430_dss_dispc_hwmod;
48 static struct omap_hwmod omap2430_dss_rfbi_hwmod;
49 static struct omap_hwmod omap2430_dss_venc_hwmod;
50 static struct omap_hwmod omap2430_wd_timer2_hwmod;
51 static struct omap_hwmod omap2430_gpio1_hwmod;
52 static struct omap_hwmod omap2430_gpio2_hwmod;
53 static struct omap_hwmod omap2430_gpio3_hwmod;
54 static struct omap_hwmod omap2430_gpio4_hwmod;
55 static struct omap_hwmod omap2430_gpio5_hwmod;
56 static struct omap_hwmod omap2430_dma_system_hwmod;
57 static struct omap_hwmod omap2430_mcbsp1_hwmod;
58 static struct omap_hwmod omap2430_mcbsp2_hwmod;
59 static struct omap_hwmod omap2430_mcbsp3_hwmod;
60 static struct omap_hwmod omap2430_mcbsp4_hwmod;
61 static struct omap_hwmod omap2430_mcbsp5_hwmod;
62 static struct omap_hwmod omap2430_mcspi1_hwmod;
63 static struct omap_hwmod omap2430_mcspi2_hwmod;
64 static struct omap_hwmod omap2430_mcspi3_hwmod;
65 static struct omap_hwmod omap2430_mmc1_hwmod;
66 static struct omap_hwmod omap2430_mmc2_hwmod;
68 /* L3 -> L4_CORE interface */
69 static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
70 .master = &omap2430_l3_main_hwmod,
71 .slave = &omap2430_l4_core_hwmod,
72 .user = OCP_USER_MPU | OCP_USER_SDMA,
75 /* MPU -> L3 interface */
76 static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
77 .master = &omap2430_mpu_hwmod,
78 .slave = &omap2430_l3_main_hwmod,
82 /* Slave interfaces on the L3 interconnect */
83 static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
84 &omap2430_mpu__l3_main,
88 static struct omap_hwmod_ocp_if omap2430_dss__l3 = {
89 .master = &omap2430_dss_core_hwmod,
90 .slave = &omap2430_l3_main_hwmod,
93 .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
94 .flags = OMAP_FIREWALL_L3,
97 .user = OCP_USER_MPU | OCP_USER_SDMA,
100 /* Master interfaces on the L3 interconnect */
101 static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
102 &omap2430_l3_main__l4_core,
106 static struct omap_hwmod omap2430_l3_main_hwmod = {
108 .class = &l3_hwmod_class,
109 .masters = omap2430_l3_main_masters,
110 .masters_cnt = ARRAY_SIZE(omap2430_l3_main_masters),
111 .slaves = omap2430_l3_main_slaves,
112 .slaves_cnt = ARRAY_SIZE(omap2430_l3_main_slaves),
113 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
114 .flags = HWMOD_NO_IDLEST,
117 static struct omap_hwmod omap2430_l4_wkup_hwmod;
118 static struct omap_hwmod omap2430_uart1_hwmod;
119 static struct omap_hwmod omap2430_uart2_hwmod;
120 static struct omap_hwmod omap2430_uart3_hwmod;
121 static struct omap_hwmod omap2430_i2c1_hwmod;
122 static struct omap_hwmod omap2430_i2c2_hwmod;
124 static struct omap_hwmod omap2430_usbhsotg_hwmod;
126 /* l3_core -> usbhsotg interface */
127 static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
128 .master = &omap2430_usbhsotg_hwmod,
129 .slave = &omap2430_l3_main_hwmod,
131 .user = OCP_USER_MPU,
134 /* L4 CORE -> I2C1 interface */
135 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
136 .master = &omap2430_l4_core_hwmod,
137 .slave = &omap2430_i2c1_hwmod,
139 .addr = omap2_i2c1_addr_space,
140 .user = OCP_USER_MPU | OCP_USER_SDMA,
143 /* L4 CORE -> I2C2 interface */
144 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
145 .master = &omap2430_l4_core_hwmod,
146 .slave = &omap2430_i2c2_hwmod,
148 .addr = omap2_i2c2_addr_space,
149 .user = OCP_USER_MPU | OCP_USER_SDMA,
152 /* L4_CORE -> L4_WKUP interface */
153 static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
154 .master = &omap2430_l4_core_hwmod,
155 .slave = &omap2430_l4_wkup_hwmod,
156 .user = OCP_USER_MPU | OCP_USER_SDMA,
159 /* L4 CORE -> UART1 interface */
160 static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
161 .master = &omap2430_l4_core_hwmod,
162 .slave = &omap2430_uart1_hwmod,
164 .addr = omap2xxx_uart1_addr_space,
165 .user = OCP_USER_MPU | OCP_USER_SDMA,
168 /* L4 CORE -> UART2 interface */
169 static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
170 .master = &omap2430_l4_core_hwmod,
171 .slave = &omap2430_uart2_hwmod,
173 .addr = omap2xxx_uart2_addr_space,
174 .user = OCP_USER_MPU | OCP_USER_SDMA,
177 /* L4 PER -> UART3 interface */
178 static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
179 .master = &omap2430_l4_core_hwmod,
180 .slave = &omap2430_uart3_hwmod,
182 .addr = omap2xxx_uart3_addr_space,
183 .user = OCP_USER_MPU | OCP_USER_SDMA,
187 * usbhsotg interface data
189 static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
191 .pa_start = OMAP243X_HS_BASE,
192 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
193 .flags = ADDR_TYPE_RT
197 /* l4_core ->usbhsotg interface */
198 static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
199 .master = &omap2430_l4_core_hwmod,
200 .slave = &omap2430_usbhsotg_hwmod,
202 .addr = omap2430_usbhsotg_addrs,
203 .user = OCP_USER_MPU,
206 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
207 &omap2430_usbhsotg__l3,
210 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
211 &omap2430_l4_core__usbhsotg,
214 /* L4 CORE -> MMC1 interface */
215 static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
216 .master = &omap2430_l4_core_hwmod,
217 .slave = &omap2430_mmc1_hwmod,
219 .addr = omap2430_mmc1_addr_space,
220 .user = OCP_USER_MPU | OCP_USER_SDMA,
223 /* L4 CORE -> MMC2 interface */
224 static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
225 .master = &omap2430_l4_core_hwmod,
226 .slave = &omap2430_mmc2_hwmod,
228 .addr = omap2430_mmc2_addr_space,
229 .user = OCP_USER_MPU | OCP_USER_SDMA,
232 /* Slave interfaces on the L4_CORE interconnect */
233 static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
234 &omap2430_l3_main__l4_core,
237 /* Master interfaces on the L4_CORE interconnect */
238 static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
239 &omap2430_l4_core__l4_wkup,
240 &omap2430_l4_core__mmc1,
241 &omap2430_l4_core__mmc2,
245 static struct omap_hwmod omap2430_l4_core_hwmod = {
247 .class = &l4_hwmod_class,
248 .masters = omap2430_l4_core_masters,
249 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
250 .slaves = omap2430_l4_core_slaves,
251 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
252 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
253 .flags = HWMOD_NO_IDLEST,
256 /* Slave interfaces on the L4_WKUP interconnect */
257 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
258 &omap2430_l4_core__l4_wkup,
259 &omap2_l4_core__uart1,
260 &omap2_l4_core__uart2,
261 &omap2_l4_core__uart3,
264 /* Master interfaces on the L4_WKUP interconnect */
265 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
268 /* l4 core -> mcspi1 interface */
269 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
270 .master = &omap2430_l4_core_hwmod,
271 .slave = &omap2430_mcspi1_hwmod,
273 .addr = omap2_mcspi1_addr_space,
274 .user = OCP_USER_MPU | OCP_USER_SDMA,
277 /* l4 core -> mcspi2 interface */
278 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
279 .master = &omap2430_l4_core_hwmod,
280 .slave = &omap2430_mcspi2_hwmod,
282 .addr = omap2_mcspi2_addr_space,
283 .user = OCP_USER_MPU | OCP_USER_SDMA,
286 /* l4 core -> mcspi3 interface */
287 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
288 .master = &omap2430_l4_core_hwmod,
289 .slave = &omap2430_mcspi3_hwmod,
291 .addr = omap2430_mcspi3_addr_space,
292 .user = OCP_USER_MPU | OCP_USER_SDMA,
296 static struct omap_hwmod omap2430_l4_wkup_hwmod = {
298 .class = &l4_hwmod_class,
299 .masters = omap2430_l4_wkup_masters,
300 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
301 .slaves = omap2430_l4_wkup_slaves,
302 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
303 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
304 .flags = HWMOD_NO_IDLEST,
307 /* Master interfaces on the MPU device */
308 static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
309 &omap2430_mpu__l3_main,
313 static struct omap_hwmod omap2430_mpu_hwmod = {
315 .class = &mpu_hwmod_class,
316 .main_clk = "mpu_ck",
317 .masters = omap2430_mpu_masters,
318 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
319 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
323 * IVA2_1 interface data
326 /* IVA2 <- L3 interface */
327 static struct omap_hwmod_ocp_if omap2430_l3__iva = {
328 .master = &omap2430_l3_main_hwmod,
329 .slave = &omap2430_iva_hwmod,
331 .user = OCP_USER_MPU | OCP_USER_SDMA,
334 static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
342 static struct omap_hwmod omap2430_iva_hwmod = {
344 .class = &iva_hwmod_class,
345 .masters = omap2430_iva_masters,
346 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
347 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
351 static struct omap_hwmod_class_sysconfig omap2430_timer_sysc = {
355 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
356 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
358 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
359 .sysc_fields = &omap_hwmod_sysc_type1,
362 static struct omap_hwmod_class omap2430_timer_hwmod_class = {
364 .sysc = &omap2430_timer_sysc,
365 .rev = OMAP_TIMER_IP_VERSION_1,
369 static struct omap_hwmod omap2430_timer1_hwmod;
370 static struct omap_hwmod_irq_info omap2430_timer1_mpu_irqs[] = {
375 static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
377 .pa_start = 0x49018000,
378 .pa_end = 0x49018000 + SZ_1K - 1,
379 .flags = ADDR_TYPE_RT
384 /* l4_wkup -> timer1 */
385 static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
386 .master = &omap2430_l4_wkup_hwmod,
387 .slave = &omap2430_timer1_hwmod,
389 .addr = omap2430_timer1_addrs,
390 .user = OCP_USER_MPU | OCP_USER_SDMA,
393 /* timer1 slave port */
394 static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
395 &omap2430_l4_wkup__timer1,
399 static struct omap_hwmod omap2430_timer1_hwmod = {
401 .mpu_irqs = omap2430_timer1_mpu_irqs,
402 .main_clk = "gpt1_fck",
406 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
407 .module_offs = WKUP_MOD,
409 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
412 .slaves = omap2430_timer1_slaves,
413 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
414 .class = &omap2430_timer_hwmod_class,
415 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
419 static struct omap_hwmod omap2430_timer2_hwmod;
420 static struct omap_hwmod_irq_info omap2430_timer2_mpu_irqs[] = {
425 /* l4_core -> timer2 */
426 static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
427 .master = &omap2430_l4_core_hwmod,
428 .slave = &omap2430_timer2_hwmod,
430 .addr = omap2xxx_timer2_addrs,
431 .user = OCP_USER_MPU | OCP_USER_SDMA,
434 /* timer2 slave port */
435 static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
436 &omap2430_l4_core__timer2,
440 static struct omap_hwmod omap2430_timer2_hwmod = {
442 .mpu_irqs = omap2430_timer2_mpu_irqs,
443 .main_clk = "gpt2_fck",
447 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
448 .module_offs = CORE_MOD,
450 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
453 .slaves = omap2430_timer2_slaves,
454 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
455 .class = &omap2430_timer_hwmod_class,
456 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
460 static struct omap_hwmod omap2430_timer3_hwmod;
461 static struct omap_hwmod_irq_info omap2430_timer3_mpu_irqs[] = {
466 /* l4_core -> timer3 */
467 static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
468 .master = &omap2430_l4_core_hwmod,
469 .slave = &omap2430_timer3_hwmod,
471 .addr = omap2xxx_timer3_addrs,
472 .user = OCP_USER_MPU | OCP_USER_SDMA,
475 /* timer3 slave port */
476 static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
477 &omap2430_l4_core__timer3,
481 static struct omap_hwmod omap2430_timer3_hwmod = {
483 .mpu_irqs = omap2430_timer3_mpu_irqs,
484 .main_clk = "gpt3_fck",
488 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
489 .module_offs = CORE_MOD,
491 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
494 .slaves = omap2430_timer3_slaves,
495 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
496 .class = &omap2430_timer_hwmod_class,
497 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
501 static struct omap_hwmod omap2430_timer4_hwmod;
502 static struct omap_hwmod_irq_info omap2430_timer4_mpu_irqs[] = {
507 /* l4_core -> timer4 */
508 static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
509 .master = &omap2430_l4_core_hwmod,
510 .slave = &omap2430_timer4_hwmod,
512 .addr = omap2xxx_timer4_addrs,
513 .user = OCP_USER_MPU | OCP_USER_SDMA,
516 /* timer4 slave port */
517 static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
518 &omap2430_l4_core__timer4,
522 static struct omap_hwmod omap2430_timer4_hwmod = {
524 .mpu_irqs = omap2430_timer4_mpu_irqs,
525 .main_clk = "gpt4_fck",
529 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
530 .module_offs = CORE_MOD,
532 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
535 .slaves = omap2430_timer4_slaves,
536 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
537 .class = &omap2430_timer_hwmod_class,
538 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
542 static struct omap_hwmod omap2430_timer5_hwmod;
543 static struct omap_hwmod_irq_info omap2430_timer5_mpu_irqs[] = {
548 /* l4_core -> timer5 */
549 static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
550 .master = &omap2430_l4_core_hwmod,
551 .slave = &omap2430_timer5_hwmod,
553 .addr = omap2xxx_timer5_addrs,
554 .user = OCP_USER_MPU | OCP_USER_SDMA,
557 /* timer5 slave port */
558 static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
559 &omap2430_l4_core__timer5,
563 static struct omap_hwmod omap2430_timer5_hwmod = {
565 .mpu_irqs = omap2430_timer5_mpu_irqs,
566 .main_clk = "gpt5_fck",
570 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
571 .module_offs = CORE_MOD,
573 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
576 .slaves = omap2430_timer5_slaves,
577 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
578 .class = &omap2430_timer_hwmod_class,
579 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
583 static struct omap_hwmod omap2430_timer6_hwmod;
584 static struct omap_hwmod_irq_info omap2430_timer6_mpu_irqs[] = {
589 /* l4_core -> timer6 */
590 static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
591 .master = &omap2430_l4_core_hwmod,
592 .slave = &omap2430_timer6_hwmod,
594 .addr = omap2xxx_timer6_addrs,
595 .user = OCP_USER_MPU | OCP_USER_SDMA,
598 /* timer6 slave port */
599 static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
600 &omap2430_l4_core__timer6,
604 static struct omap_hwmod omap2430_timer6_hwmod = {
606 .mpu_irqs = omap2430_timer6_mpu_irqs,
607 .main_clk = "gpt6_fck",
611 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
612 .module_offs = CORE_MOD,
614 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
617 .slaves = omap2430_timer6_slaves,
618 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
619 .class = &omap2430_timer_hwmod_class,
620 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
624 static struct omap_hwmod omap2430_timer7_hwmod;
625 static struct omap_hwmod_irq_info omap2430_timer7_mpu_irqs[] = {
630 /* l4_core -> timer7 */
631 static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
632 .master = &omap2430_l4_core_hwmod,
633 .slave = &omap2430_timer7_hwmod,
635 .addr = omap2xxx_timer7_addrs,
636 .user = OCP_USER_MPU | OCP_USER_SDMA,
639 /* timer7 slave port */
640 static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
641 &omap2430_l4_core__timer7,
645 static struct omap_hwmod omap2430_timer7_hwmod = {
647 .mpu_irqs = omap2430_timer7_mpu_irqs,
648 .main_clk = "gpt7_fck",
652 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
653 .module_offs = CORE_MOD,
655 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
658 .slaves = omap2430_timer7_slaves,
659 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
660 .class = &omap2430_timer_hwmod_class,
661 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
665 static struct omap_hwmod omap2430_timer8_hwmod;
666 static struct omap_hwmod_irq_info omap2430_timer8_mpu_irqs[] = {
671 /* l4_core -> timer8 */
672 static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
673 .master = &omap2430_l4_core_hwmod,
674 .slave = &omap2430_timer8_hwmod,
676 .addr = omap2xxx_timer8_addrs,
677 .user = OCP_USER_MPU | OCP_USER_SDMA,
680 /* timer8 slave port */
681 static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
682 &omap2430_l4_core__timer8,
686 static struct omap_hwmod omap2430_timer8_hwmod = {
688 .mpu_irqs = omap2430_timer8_mpu_irqs,
689 .main_clk = "gpt8_fck",
693 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
694 .module_offs = CORE_MOD,
696 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
699 .slaves = omap2430_timer8_slaves,
700 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
701 .class = &omap2430_timer_hwmod_class,
702 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
706 static struct omap_hwmod omap2430_timer9_hwmod;
707 static struct omap_hwmod_irq_info omap2430_timer9_mpu_irqs[] = {
712 /* l4_core -> timer9 */
713 static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
714 .master = &omap2430_l4_core_hwmod,
715 .slave = &omap2430_timer9_hwmod,
717 .addr = omap2xxx_timer9_addrs,
718 .user = OCP_USER_MPU | OCP_USER_SDMA,
721 /* timer9 slave port */
722 static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
723 &omap2430_l4_core__timer9,
727 static struct omap_hwmod omap2430_timer9_hwmod = {
729 .mpu_irqs = omap2430_timer9_mpu_irqs,
730 .main_clk = "gpt9_fck",
734 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
735 .module_offs = CORE_MOD,
737 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
740 .slaves = omap2430_timer9_slaves,
741 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
742 .class = &omap2430_timer_hwmod_class,
743 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
747 static struct omap_hwmod omap2430_timer10_hwmod;
748 static struct omap_hwmod_irq_info omap2430_timer10_mpu_irqs[] = {
753 /* l4_core -> timer10 */
754 static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
755 .master = &omap2430_l4_core_hwmod,
756 .slave = &omap2430_timer10_hwmod,
758 .addr = omap2_timer10_addrs,
759 .user = OCP_USER_MPU | OCP_USER_SDMA,
762 /* timer10 slave port */
763 static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
764 &omap2430_l4_core__timer10,
768 static struct omap_hwmod omap2430_timer10_hwmod = {
770 .mpu_irqs = omap2430_timer10_mpu_irqs,
771 .main_clk = "gpt10_fck",
775 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
776 .module_offs = CORE_MOD,
778 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
781 .slaves = omap2430_timer10_slaves,
782 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
783 .class = &omap2430_timer_hwmod_class,
784 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
788 static struct omap_hwmod omap2430_timer11_hwmod;
789 static struct omap_hwmod_irq_info omap2430_timer11_mpu_irqs[] = {
794 /* l4_core -> timer11 */
795 static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
796 .master = &omap2430_l4_core_hwmod,
797 .slave = &omap2430_timer11_hwmod,
799 .addr = omap2_timer11_addrs,
800 .user = OCP_USER_MPU | OCP_USER_SDMA,
803 /* timer11 slave port */
804 static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
805 &omap2430_l4_core__timer11,
809 static struct omap_hwmod omap2430_timer11_hwmod = {
811 .mpu_irqs = omap2430_timer11_mpu_irqs,
812 .main_clk = "gpt11_fck",
816 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
817 .module_offs = CORE_MOD,
819 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
822 .slaves = omap2430_timer11_slaves,
823 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
824 .class = &omap2430_timer_hwmod_class,
825 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
829 static struct omap_hwmod omap2430_timer12_hwmod;
830 static struct omap_hwmod_irq_info omap2430_timer12_mpu_irqs[] = {
835 /* l4_core -> timer12 */
836 static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
837 .master = &omap2430_l4_core_hwmod,
838 .slave = &omap2430_timer12_hwmod,
840 .addr = omap2xxx_timer12_addrs,
841 .user = OCP_USER_MPU | OCP_USER_SDMA,
844 /* timer12 slave port */
845 static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
846 &omap2430_l4_core__timer12,
850 static struct omap_hwmod omap2430_timer12_hwmod = {
852 .mpu_irqs = omap2430_timer12_mpu_irqs,
853 .main_clk = "gpt12_fck",
857 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
858 .module_offs = CORE_MOD,
860 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
863 .slaves = omap2430_timer12_slaves,
864 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
865 .class = &omap2430_timer_hwmod_class,
866 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
869 /* l4_wkup -> wd_timer2 */
870 static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
872 .pa_start = 0x49016000,
873 .pa_end = 0x4901607f,
874 .flags = ADDR_TYPE_RT
879 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
880 .master = &omap2430_l4_wkup_hwmod,
881 .slave = &omap2430_wd_timer2_hwmod,
882 .clk = "mpu_wdt_ick",
883 .addr = omap2430_wd_timer2_addrs,
884 .user = OCP_USER_MPU | OCP_USER_SDMA,
889 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
893 static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
897 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
898 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
899 .sysc_fields = &omap_hwmod_sysc_type1,
902 static struct omap_hwmod_class omap2430_wd_timer_hwmod_class = {
904 .sysc = &omap2430_wd_timer_sysc,
905 .pre_shutdown = &omap2_wd_timer_disable
909 static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
910 &omap2430_l4_wkup__wd_timer2,
913 static struct omap_hwmod omap2430_wd_timer2_hwmod = {
915 .class = &omap2430_wd_timer_hwmod_class,
916 .main_clk = "mpu_wdt_fck",
920 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
921 .module_offs = WKUP_MOD,
923 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
926 .slaves = omap2430_wd_timer2_slaves,
927 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
928 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
933 static struct omap_hwmod_class_sysconfig uart_sysc = {
937 .sysc_flags = (SYSC_HAS_SIDLEMODE |
938 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
939 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
940 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
941 .sysc_fields = &omap_hwmod_sysc_type1,
944 static struct omap_hwmod_class uart_class = {
951 static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
952 { .irq = INT_24XX_UART1_IRQ, },
956 static struct omap_hwmod_dma_info uart1_sdma_reqs[] = {
957 { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
958 { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
961 static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
962 &omap2_l4_core__uart1,
965 static struct omap_hwmod omap2430_uart1_hwmod = {
967 .mpu_irqs = uart1_mpu_irqs,
968 .sdma_reqs = uart1_sdma_reqs,
969 .sdma_reqs_cnt = ARRAY_SIZE(uart1_sdma_reqs),
970 .main_clk = "uart1_fck",
973 .module_offs = CORE_MOD,
975 .module_bit = OMAP24XX_EN_UART1_SHIFT,
977 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
980 .slaves = omap2430_uart1_slaves,
981 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
982 .class = &uart_class,
983 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
988 static struct omap_hwmod_irq_info uart2_mpu_irqs[] = {
989 { .irq = INT_24XX_UART2_IRQ, },
993 static struct omap_hwmod_dma_info uart2_sdma_reqs[] = {
994 { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
995 { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
998 static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
999 &omap2_l4_core__uart2,
1002 static struct omap_hwmod omap2430_uart2_hwmod = {
1004 .mpu_irqs = uart2_mpu_irqs,
1005 .sdma_reqs = uart2_sdma_reqs,
1006 .sdma_reqs_cnt = ARRAY_SIZE(uart2_sdma_reqs),
1007 .main_clk = "uart2_fck",
1010 .module_offs = CORE_MOD,
1012 .module_bit = OMAP24XX_EN_UART2_SHIFT,
1014 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
1017 .slaves = omap2430_uart2_slaves,
1018 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
1019 .class = &uart_class,
1020 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1025 static struct omap_hwmod_irq_info uart3_mpu_irqs[] = {
1026 { .irq = INT_24XX_UART3_IRQ, },
1030 static struct omap_hwmod_dma_info uart3_sdma_reqs[] = {
1031 { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
1032 { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
1035 static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
1036 &omap2_l4_core__uart3,
1039 static struct omap_hwmod omap2430_uart3_hwmod = {
1041 .mpu_irqs = uart3_mpu_irqs,
1042 .sdma_reqs = uart3_sdma_reqs,
1043 .sdma_reqs_cnt = ARRAY_SIZE(uart3_sdma_reqs),
1044 .main_clk = "uart3_fck",
1047 .module_offs = CORE_MOD,
1049 .module_bit = OMAP24XX_EN_UART3_SHIFT,
1051 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
1054 .slaves = omap2430_uart3_slaves,
1055 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
1056 .class = &uart_class,
1057 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1062 * display sub-system
1065 static struct omap_hwmod_class_sysconfig omap2430_dss_sysc = {
1067 .sysc_offs = 0x0010,
1068 .syss_offs = 0x0014,
1069 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1070 .sysc_fields = &omap_hwmod_sysc_type1,
1073 static struct omap_hwmod_class omap2430_dss_hwmod_class = {
1075 .sysc = &omap2430_dss_sysc,
1078 static struct omap_hwmod_dma_info omap2430_dss_sdma_chs[] = {
1079 { .name = "dispc", .dma_req = 5 },
1083 /* dss master ports */
1084 static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
1088 /* l4_core -> dss */
1089 static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
1090 .master = &omap2430_l4_core_hwmod,
1091 .slave = &omap2430_dss_core_hwmod,
1093 .addr = omap2_dss_addrs,
1094 .user = OCP_USER_MPU | OCP_USER_SDMA,
1097 /* dss slave ports */
1098 static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
1099 &omap2430_l4_core__dss,
1102 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1103 { .role = "tv_clk", .clk = "dss_54m_fck" },
1104 { .role = "sys_clk", .clk = "dss2_fck" },
1107 static struct omap_hwmod omap2430_dss_core_hwmod = {
1109 .class = &omap2430_dss_hwmod_class,
1110 .main_clk = "dss1_fck", /* instead of dss_fck */
1111 .sdma_reqs = omap2430_dss_sdma_chs,
1112 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_dss_sdma_chs),
1116 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1117 .module_offs = CORE_MOD,
1119 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1122 .opt_clks = dss_opt_clks,
1123 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1124 .slaves = omap2430_dss_slaves,
1125 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
1126 .masters = omap2430_dss_masters,
1127 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
1128 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1129 .flags = HWMOD_NO_IDLEST,
1134 * display controller
1137 static struct omap_hwmod_class_sysconfig omap2430_dispc_sysc = {
1139 .sysc_offs = 0x0010,
1140 .syss_offs = 0x0014,
1141 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1142 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1143 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1144 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1145 .sysc_fields = &omap_hwmod_sysc_type1,
1148 static struct omap_hwmod_class omap2430_dispc_hwmod_class = {
1150 .sysc = &omap2430_dispc_sysc,
1153 static struct omap_hwmod_irq_info omap2430_dispc_irqs[] = {
1158 /* l4_core -> dss_dispc */
1159 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
1160 .master = &omap2430_l4_core_hwmod,
1161 .slave = &omap2430_dss_dispc_hwmod,
1163 .addr = omap2_dss_dispc_addrs,
1164 .user = OCP_USER_MPU | OCP_USER_SDMA,
1167 /* dss_dispc slave ports */
1168 static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
1169 &omap2430_l4_core__dss_dispc,
1172 static struct omap_hwmod omap2430_dss_dispc_hwmod = {
1173 .name = "dss_dispc",
1174 .class = &omap2430_dispc_hwmod_class,
1175 .mpu_irqs = omap2430_dispc_irqs,
1176 .main_clk = "dss1_fck",
1180 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1181 .module_offs = CORE_MOD,
1183 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1186 .slaves = omap2430_dss_dispc_slaves,
1187 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1188 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1189 .flags = HWMOD_NO_IDLEST,
1194 * remote frame buffer interface
1197 static struct omap_hwmod_class_sysconfig omap2430_rfbi_sysc = {
1199 .sysc_offs = 0x0010,
1200 .syss_offs = 0x0014,
1201 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1203 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1204 .sysc_fields = &omap_hwmod_sysc_type1,
1207 static struct omap_hwmod_class omap2430_rfbi_hwmod_class = {
1209 .sysc = &omap2430_rfbi_sysc,
1212 /* l4_core -> dss_rfbi */
1213 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1214 .master = &omap2430_l4_core_hwmod,
1215 .slave = &omap2430_dss_rfbi_hwmod,
1217 .addr = omap2_dss_rfbi_addrs,
1218 .user = OCP_USER_MPU | OCP_USER_SDMA,
1221 /* dss_rfbi slave ports */
1222 static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1223 &omap2430_l4_core__dss_rfbi,
1226 static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1228 .class = &omap2430_rfbi_hwmod_class,
1229 .main_clk = "dss1_fck",
1233 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1234 .module_offs = CORE_MOD,
1237 .slaves = omap2430_dss_rfbi_slaves,
1238 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1239 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1240 .flags = HWMOD_NO_IDLEST,
1248 static struct omap_hwmod_class omap2430_venc_hwmod_class = {
1252 /* l4_core -> dss_venc */
1253 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1254 .master = &omap2430_l4_core_hwmod,
1255 .slave = &omap2430_dss_venc_hwmod,
1256 .clk = "dss_54m_fck",
1257 .addr = omap2_dss_venc_addrs,
1258 .flags = OCPIF_SWSUP_IDLE,
1259 .user = OCP_USER_MPU | OCP_USER_SDMA,
1262 /* dss_venc slave ports */
1263 static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1264 &omap2430_l4_core__dss_venc,
1267 static struct omap_hwmod omap2430_dss_venc_hwmod = {
1269 .class = &omap2430_venc_hwmod_class,
1270 .main_clk = "dss1_fck",
1274 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1275 .module_offs = CORE_MOD,
1278 .slaves = omap2430_dss_venc_slaves,
1279 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1280 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1281 .flags = HWMOD_NO_IDLEST,
1285 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1289 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1290 SYSS_HAS_RESET_STATUS),
1291 .sysc_fields = &omap_hwmod_sysc_type1,
1294 static struct omap_hwmod_class i2c_class = {
1299 static struct omap_i2c_dev_attr i2c_dev_attr = {
1300 .fifo_depth = 8, /* bytes */
1305 static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
1306 { .irq = INT_24XX_I2C1_IRQ, },
1310 static struct omap_hwmod_dma_info i2c1_sdma_reqs[] = {
1311 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
1312 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
1315 static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1316 &omap2430_l4_core__i2c1,
1319 static struct omap_hwmod omap2430_i2c1_hwmod = {
1321 .mpu_irqs = i2c1_mpu_irqs,
1322 .sdma_reqs = i2c1_sdma_reqs,
1323 .sdma_reqs_cnt = ARRAY_SIZE(i2c1_sdma_reqs),
1324 .main_clk = "i2chs1_fck",
1328 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1329 * I2CHS IP's do not follow the usual pattern.
1330 * prcm_reg_id alone cannot be used to program
1331 * the iclk and fclk. Needs to be handled using
1332 * additional flags when clk handling is moved
1333 * to hwmod framework.
1335 .module_offs = CORE_MOD,
1337 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1339 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1342 .slaves = omap2430_i2c1_slaves,
1343 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1344 .class = &i2c_class,
1345 .dev_attr = &i2c_dev_attr,
1346 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1351 static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
1352 { .irq = INT_24XX_I2C2_IRQ, },
1356 static struct omap_hwmod_dma_info i2c2_sdma_reqs[] = {
1357 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
1358 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
1361 static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1362 &omap2430_l4_core__i2c2,
1365 static struct omap_hwmod omap2430_i2c2_hwmod = {
1367 .mpu_irqs = i2c2_mpu_irqs,
1368 .sdma_reqs = i2c2_sdma_reqs,
1369 .sdma_reqs_cnt = ARRAY_SIZE(i2c2_sdma_reqs),
1370 .main_clk = "i2chs2_fck",
1373 .module_offs = CORE_MOD,
1375 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1377 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1380 .slaves = omap2430_i2c2_slaves,
1381 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1382 .class = &i2c_class,
1383 .dev_attr = &i2c_dev_attr,
1384 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1387 /* l4_wkup -> gpio1 */
1388 static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1390 .pa_start = 0x4900C000,
1391 .pa_end = 0x4900C1ff,
1392 .flags = ADDR_TYPE_RT
1397 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1398 .master = &omap2430_l4_wkup_hwmod,
1399 .slave = &omap2430_gpio1_hwmod,
1401 .addr = omap2430_gpio1_addr_space,
1402 .user = OCP_USER_MPU | OCP_USER_SDMA,
1405 /* l4_wkup -> gpio2 */
1406 static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1408 .pa_start = 0x4900E000,
1409 .pa_end = 0x4900E1ff,
1410 .flags = ADDR_TYPE_RT
1415 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1416 .master = &omap2430_l4_wkup_hwmod,
1417 .slave = &omap2430_gpio2_hwmod,
1419 .addr = omap2430_gpio2_addr_space,
1420 .user = OCP_USER_MPU | OCP_USER_SDMA,
1423 /* l4_wkup -> gpio3 */
1424 static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1426 .pa_start = 0x49010000,
1427 .pa_end = 0x490101ff,
1428 .flags = ADDR_TYPE_RT
1433 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1434 .master = &omap2430_l4_wkup_hwmod,
1435 .slave = &omap2430_gpio3_hwmod,
1437 .addr = omap2430_gpio3_addr_space,
1438 .user = OCP_USER_MPU | OCP_USER_SDMA,
1441 /* l4_wkup -> gpio4 */
1442 static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1444 .pa_start = 0x49012000,
1445 .pa_end = 0x490121ff,
1446 .flags = ADDR_TYPE_RT
1451 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1452 .master = &omap2430_l4_wkup_hwmod,
1453 .slave = &omap2430_gpio4_hwmod,
1455 .addr = omap2430_gpio4_addr_space,
1456 .user = OCP_USER_MPU | OCP_USER_SDMA,
1459 /* l4_core -> gpio5 */
1460 static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1462 .pa_start = 0x480B6000,
1463 .pa_end = 0x480B61ff,
1464 .flags = ADDR_TYPE_RT
1469 static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1470 .master = &omap2430_l4_core_hwmod,
1471 .slave = &omap2430_gpio5_hwmod,
1473 .addr = omap2430_gpio5_addr_space,
1474 .user = OCP_USER_MPU | OCP_USER_SDMA,
1478 static struct omap_gpio_dev_attr gpio_dev_attr = {
1483 static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
1485 .sysc_offs = 0x0010,
1486 .syss_offs = 0x0014,
1487 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1488 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1489 SYSS_HAS_RESET_STATUS),
1490 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1491 .sysc_fields = &omap_hwmod_sysc_type1,
1496 * general purpose io module
1498 static struct omap_hwmod_class omap243x_gpio_hwmod_class = {
1500 .sysc = &omap243x_gpio_sysc,
1505 static struct omap_hwmod_irq_info omap243x_gpio1_irqs[] = {
1506 { .irq = 29 }, /* INT_24XX_GPIO_BANK1 */
1510 static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1511 &omap2430_l4_wkup__gpio1,
1514 static struct omap_hwmod omap2430_gpio1_hwmod = {
1516 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1517 .mpu_irqs = omap243x_gpio1_irqs,
1518 .main_clk = "gpios_fck",
1522 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1523 .module_offs = WKUP_MOD,
1525 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1528 .slaves = omap2430_gpio1_slaves,
1529 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1530 .class = &omap243x_gpio_hwmod_class,
1531 .dev_attr = &gpio_dev_attr,
1532 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1536 static struct omap_hwmod_irq_info omap243x_gpio2_irqs[] = {
1537 { .irq = 30 }, /* INT_24XX_GPIO_BANK2 */
1541 static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1542 &omap2430_l4_wkup__gpio2,
1545 static struct omap_hwmod omap2430_gpio2_hwmod = {
1547 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1548 .mpu_irqs = omap243x_gpio2_irqs,
1549 .main_clk = "gpios_fck",
1553 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1554 .module_offs = WKUP_MOD,
1556 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1559 .slaves = omap2430_gpio2_slaves,
1560 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1561 .class = &omap243x_gpio_hwmod_class,
1562 .dev_attr = &gpio_dev_attr,
1563 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1567 static struct omap_hwmod_irq_info omap243x_gpio3_irqs[] = {
1568 { .irq = 31 }, /* INT_24XX_GPIO_BANK3 */
1572 static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1573 &omap2430_l4_wkup__gpio3,
1576 static struct omap_hwmod omap2430_gpio3_hwmod = {
1578 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1579 .mpu_irqs = omap243x_gpio3_irqs,
1580 .main_clk = "gpios_fck",
1584 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1585 .module_offs = WKUP_MOD,
1587 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1590 .slaves = omap2430_gpio3_slaves,
1591 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1592 .class = &omap243x_gpio_hwmod_class,
1593 .dev_attr = &gpio_dev_attr,
1594 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1598 static struct omap_hwmod_irq_info omap243x_gpio4_irqs[] = {
1599 { .irq = 32 }, /* INT_24XX_GPIO_BANK4 */
1603 static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1604 &omap2430_l4_wkup__gpio4,
1607 static struct omap_hwmod omap2430_gpio4_hwmod = {
1609 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1610 .mpu_irqs = omap243x_gpio4_irqs,
1611 .main_clk = "gpios_fck",
1615 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1616 .module_offs = WKUP_MOD,
1618 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1621 .slaves = omap2430_gpio4_slaves,
1622 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1623 .class = &omap243x_gpio_hwmod_class,
1624 .dev_attr = &gpio_dev_attr,
1625 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1629 static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1630 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1634 static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1635 &omap2430_l4_core__gpio5,
1638 static struct omap_hwmod omap2430_gpio5_hwmod = {
1640 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1641 .mpu_irqs = omap243x_gpio5_irqs,
1642 .main_clk = "gpio5_fck",
1646 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1647 .module_offs = CORE_MOD,
1649 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1652 .slaves = omap2430_gpio5_slaves,
1653 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1654 .class = &omap243x_gpio_hwmod_class,
1655 .dev_attr = &gpio_dev_attr,
1656 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1660 static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
1662 .sysc_offs = 0x002c,
1663 .syss_offs = 0x0028,
1664 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
1665 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
1666 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1667 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1668 .sysc_fields = &omap_hwmod_sysc_type1,
1671 static struct omap_hwmod_class omap2430_dma_hwmod_class = {
1673 .sysc = &omap2430_dma_sysc,
1676 /* dma attributes */
1677 static struct omap_dma_dev_attr dma_dev_attr = {
1678 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1679 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1683 static struct omap_hwmod_irq_info omap2430_dma_system_irqs[] = {
1684 { .name = "0", .irq = 12 }, /* INT_24XX_SDMA_IRQ0 */
1685 { .name = "1", .irq = 13 }, /* INT_24XX_SDMA_IRQ1 */
1686 { .name = "2", .irq = 14 }, /* INT_24XX_SDMA_IRQ2 */
1687 { .name = "3", .irq = 15 }, /* INT_24XX_SDMA_IRQ3 */
1691 /* dma_system -> L3 */
1692 static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1693 .master = &omap2430_dma_system_hwmod,
1694 .slave = &omap2430_l3_main_hwmod,
1695 .clk = "core_l3_ck",
1696 .user = OCP_USER_MPU | OCP_USER_SDMA,
1699 /* dma_system master ports */
1700 static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1701 &omap2430_dma_system__l3,
1704 /* l4_core -> dma_system */
1705 static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1706 .master = &omap2430_l4_core_hwmod,
1707 .slave = &omap2430_dma_system_hwmod,
1709 .addr = omap2_dma_system_addrs,
1710 .user = OCP_USER_MPU | OCP_USER_SDMA,
1713 /* dma_system slave ports */
1714 static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1715 &omap2430_l4_core__dma_system,
1718 static struct omap_hwmod omap2430_dma_system_hwmod = {
1720 .class = &omap2430_dma_hwmod_class,
1721 .mpu_irqs = omap2430_dma_system_irqs,
1722 .main_clk = "core_l3_ck",
1723 .slaves = omap2430_dma_system_slaves,
1724 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1725 .masters = omap2430_dma_system_masters,
1726 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1727 .dev_attr = &dma_dev_attr,
1728 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1729 .flags = HWMOD_NO_IDLEST,
1734 * mailbox module allowing communication between the on-chip processors
1735 * using a queued mailbox-interrupt mechanism.
1738 static struct omap_hwmod_class_sysconfig omap2430_mailbox_sysc = {
1742 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1743 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1744 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1745 .sysc_fields = &omap_hwmod_sysc_type1,
1748 static struct omap_hwmod_class omap2430_mailbox_hwmod_class = {
1750 .sysc = &omap2430_mailbox_sysc,
1754 static struct omap_hwmod omap2430_mailbox_hwmod;
1755 static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1760 /* l4_core -> mailbox */
1761 static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1762 .master = &omap2430_l4_core_hwmod,
1763 .slave = &omap2430_mailbox_hwmod,
1764 .addr = omap2_mailbox_addrs,
1765 .user = OCP_USER_MPU | OCP_USER_SDMA,
1768 /* mailbox slave ports */
1769 static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1770 &omap2430_l4_core__mailbox,
1773 static struct omap_hwmod omap2430_mailbox_hwmod = {
1775 .class = &omap2430_mailbox_hwmod_class,
1776 .mpu_irqs = omap2430_mailbox_irqs,
1777 .main_clk = "mailboxes_ick",
1781 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1782 .module_offs = CORE_MOD,
1784 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1787 .slaves = omap2430_mailbox_slaves,
1788 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1789 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1794 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1798 static struct omap_hwmod_class_sysconfig omap2430_mcspi_sysc = {
1800 .sysc_offs = 0x0010,
1801 .syss_offs = 0x0014,
1802 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1803 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1804 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1805 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1806 .sysc_fields = &omap_hwmod_sysc_type1,
1809 static struct omap_hwmod_class omap2430_mcspi_class = {
1811 .sysc = &omap2430_mcspi_sysc,
1812 .rev = OMAP2_MCSPI_REV,
1816 static struct omap_hwmod_irq_info omap2430_mcspi1_mpu_irqs[] = {
1821 static struct omap_hwmod_dma_info omap2430_mcspi1_sdma_reqs[] = {
1822 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
1823 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
1824 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
1825 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
1826 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
1827 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
1828 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
1829 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
1832 static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1833 &omap2430_l4_core__mcspi1,
1836 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1837 .num_chipselect = 4,
1840 static struct omap_hwmod omap2430_mcspi1_hwmod = {
1841 .name = "mcspi1_hwmod",
1842 .mpu_irqs = omap2430_mcspi1_mpu_irqs,
1843 .sdma_reqs = omap2430_mcspi1_sdma_reqs,
1844 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi1_sdma_reqs),
1845 .main_clk = "mcspi1_fck",
1848 .module_offs = CORE_MOD,
1850 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1852 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1855 .slaves = omap2430_mcspi1_slaves,
1856 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
1857 .class = &omap2430_mcspi_class,
1858 .dev_attr = &omap_mcspi1_dev_attr,
1859 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1863 static struct omap_hwmod_irq_info omap2430_mcspi2_mpu_irqs[] = {
1868 static struct omap_hwmod_dma_info omap2430_mcspi2_sdma_reqs[] = {
1869 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
1870 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
1871 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
1872 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
1875 static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1876 &omap2430_l4_core__mcspi2,
1879 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1880 .num_chipselect = 2,
1883 static struct omap_hwmod omap2430_mcspi2_hwmod = {
1884 .name = "mcspi2_hwmod",
1885 .mpu_irqs = omap2430_mcspi2_mpu_irqs,
1886 .sdma_reqs = omap2430_mcspi2_sdma_reqs,
1887 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi2_sdma_reqs),
1888 .main_clk = "mcspi2_fck",
1891 .module_offs = CORE_MOD,
1893 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1895 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1898 .slaves = omap2430_mcspi2_slaves,
1899 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
1900 .class = &omap2430_mcspi_class,
1901 .dev_attr = &omap_mcspi2_dev_attr,
1902 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1906 static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1911 static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1912 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1913 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1914 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1915 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
1918 static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1919 &omap2430_l4_core__mcspi3,
1922 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1923 .num_chipselect = 2,
1926 static struct omap_hwmod omap2430_mcspi3_hwmod = {
1927 .name = "mcspi3_hwmod",
1928 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
1929 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
1930 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi3_sdma_reqs),
1931 .main_clk = "mcspi3_fck",
1934 .module_offs = CORE_MOD,
1936 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1938 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1941 .slaves = omap2430_mcspi3_slaves,
1942 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
1943 .class = &omap2430_mcspi_class,
1944 .dev_attr = &omap_mcspi3_dev_attr,
1945 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1951 static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1953 .sysc_offs = 0x0404,
1954 .syss_offs = 0x0408,
1955 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1956 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1958 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1959 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1960 .sysc_fields = &omap_hwmod_sysc_type1,
1963 static struct omap_hwmod_class usbotg_class = {
1965 .sysc = &omap2430_usbhsotg_sysc,
1969 static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1971 { .name = "mc", .irq = 92 },
1972 { .name = "dma", .irq = 93 },
1976 static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1977 .name = "usb_otg_hs",
1978 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
1979 .main_clk = "usbhs_ick",
1983 .module_bit = OMAP2430_EN_USBHS_MASK,
1984 .module_offs = CORE_MOD,
1986 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1989 .masters = omap2430_usbhsotg_masters,
1990 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1991 .slaves = omap2430_usbhsotg_slaves,
1992 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1993 .class = &usbotg_class,
1995 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1996 * broken when autoidle is enabled
1997 * workaround is to disable the autoidle bit at module level.
1999 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
2000 | HWMOD_SWSUP_MSTANDBY,
2001 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
2006 * multi channel buffered serial port controller
2009 static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
2011 .sysc_offs = 0x008C,
2012 .sysc_flags = (SYSC_HAS_SOFTRESET),
2013 .sysc_fields = &omap_hwmod_sysc_type1,
2016 static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
2018 .sysc = &omap2430_mcbsp_sysc,
2019 .rev = MCBSP_CONFIG_TYPE2,
2023 static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
2024 { .name = "tx", .irq = 59 },
2025 { .name = "rx", .irq = 60 },
2026 { .name = "ovr", .irq = 61 },
2027 { .name = "common", .irq = 64 },
2031 static struct omap_hwmod_dma_info omap2430_mcbsp1_sdma_chs[] = {
2032 { .name = "rx", .dma_req = 32 },
2033 { .name = "tx", .dma_req = 31 },
2036 /* l4_core -> mcbsp1 */
2037 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
2038 .master = &omap2430_l4_core_hwmod,
2039 .slave = &omap2430_mcbsp1_hwmod,
2040 .clk = "mcbsp1_ick",
2041 .addr = omap2_mcbsp1_addrs,
2042 .user = OCP_USER_MPU | OCP_USER_SDMA,
2045 /* mcbsp1 slave ports */
2046 static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
2047 &omap2430_l4_core__mcbsp1,
2050 static struct omap_hwmod omap2430_mcbsp1_hwmod = {
2052 .class = &omap2430_mcbsp_hwmod_class,
2053 .mpu_irqs = omap2430_mcbsp1_irqs,
2054 .sdma_reqs = omap2430_mcbsp1_sdma_chs,
2055 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp1_sdma_chs),
2056 .main_clk = "mcbsp1_fck",
2060 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
2061 .module_offs = CORE_MOD,
2063 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
2066 .slaves = omap2430_mcbsp1_slaves,
2067 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
2068 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2072 static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
2073 { .name = "tx", .irq = 62 },
2074 { .name = "rx", .irq = 63 },
2075 { .name = "common", .irq = 16 },
2079 static struct omap_hwmod_dma_info omap2430_mcbsp2_sdma_chs[] = {
2080 { .name = "rx", .dma_req = 34 },
2081 { .name = "tx", .dma_req = 33 },
2084 /* l4_core -> mcbsp2 */
2085 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
2086 .master = &omap2430_l4_core_hwmod,
2087 .slave = &omap2430_mcbsp2_hwmod,
2088 .clk = "mcbsp2_ick",
2089 .addr = omap2xxx_mcbsp2_addrs,
2090 .user = OCP_USER_MPU | OCP_USER_SDMA,
2093 /* mcbsp2 slave ports */
2094 static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
2095 &omap2430_l4_core__mcbsp2,
2098 static struct omap_hwmod omap2430_mcbsp2_hwmod = {
2100 .class = &omap2430_mcbsp_hwmod_class,
2101 .mpu_irqs = omap2430_mcbsp2_irqs,
2102 .sdma_reqs = omap2430_mcbsp2_sdma_chs,
2103 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp2_sdma_chs),
2104 .main_clk = "mcbsp2_fck",
2108 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
2109 .module_offs = CORE_MOD,
2111 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
2114 .slaves = omap2430_mcbsp2_slaves,
2115 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
2116 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2120 static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
2121 { .name = "tx", .irq = 89 },
2122 { .name = "rx", .irq = 90 },
2123 { .name = "common", .irq = 17 },
2127 static struct omap_hwmod_dma_info omap2430_mcbsp3_sdma_chs[] = {
2128 { .name = "rx", .dma_req = 18 },
2129 { .name = "tx", .dma_req = 17 },
2132 static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
2135 .pa_start = 0x4808C000,
2136 .pa_end = 0x4808C0ff,
2137 .flags = ADDR_TYPE_RT
2142 /* l4_core -> mcbsp3 */
2143 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
2144 .master = &omap2430_l4_core_hwmod,
2145 .slave = &omap2430_mcbsp3_hwmod,
2146 .clk = "mcbsp3_ick",
2147 .addr = omap2430_mcbsp3_addrs,
2148 .user = OCP_USER_MPU | OCP_USER_SDMA,
2151 /* mcbsp3 slave ports */
2152 static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
2153 &omap2430_l4_core__mcbsp3,
2156 static struct omap_hwmod omap2430_mcbsp3_hwmod = {
2158 .class = &omap2430_mcbsp_hwmod_class,
2159 .mpu_irqs = omap2430_mcbsp3_irqs,
2160 .sdma_reqs = omap2430_mcbsp3_sdma_chs,
2161 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp3_sdma_chs),
2162 .main_clk = "mcbsp3_fck",
2166 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
2167 .module_offs = CORE_MOD,
2169 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
2172 .slaves = omap2430_mcbsp3_slaves,
2173 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
2174 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2178 static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
2179 { .name = "tx", .irq = 54 },
2180 { .name = "rx", .irq = 55 },
2181 { .name = "common", .irq = 18 },
2185 static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
2186 { .name = "rx", .dma_req = 20 },
2187 { .name = "tx", .dma_req = 19 },
2190 static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
2193 .pa_start = 0x4808E000,
2194 .pa_end = 0x4808E0ff,
2195 .flags = ADDR_TYPE_RT
2200 /* l4_core -> mcbsp4 */
2201 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
2202 .master = &omap2430_l4_core_hwmod,
2203 .slave = &omap2430_mcbsp4_hwmod,
2204 .clk = "mcbsp4_ick",
2205 .addr = omap2430_mcbsp4_addrs,
2206 .user = OCP_USER_MPU | OCP_USER_SDMA,
2209 /* mcbsp4 slave ports */
2210 static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
2211 &omap2430_l4_core__mcbsp4,
2214 static struct omap_hwmod omap2430_mcbsp4_hwmod = {
2216 .class = &omap2430_mcbsp_hwmod_class,
2217 .mpu_irqs = omap2430_mcbsp4_irqs,
2218 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
2219 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp4_sdma_chs),
2220 .main_clk = "mcbsp4_fck",
2224 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
2225 .module_offs = CORE_MOD,
2227 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
2230 .slaves = omap2430_mcbsp4_slaves,
2231 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
2232 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2236 static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
2237 { .name = "tx", .irq = 81 },
2238 { .name = "rx", .irq = 82 },
2239 { .name = "common", .irq = 19 },
2243 static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
2244 { .name = "rx", .dma_req = 22 },
2245 { .name = "tx", .dma_req = 21 },
2248 static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
2251 .pa_start = 0x48096000,
2252 .pa_end = 0x480960ff,
2253 .flags = ADDR_TYPE_RT
2258 /* l4_core -> mcbsp5 */
2259 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
2260 .master = &omap2430_l4_core_hwmod,
2261 .slave = &omap2430_mcbsp5_hwmod,
2262 .clk = "mcbsp5_ick",
2263 .addr = omap2430_mcbsp5_addrs,
2264 .user = OCP_USER_MPU | OCP_USER_SDMA,
2267 /* mcbsp5 slave ports */
2268 static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
2269 &omap2430_l4_core__mcbsp5,
2272 static struct omap_hwmod omap2430_mcbsp5_hwmod = {
2274 .class = &omap2430_mcbsp_hwmod_class,
2275 .mpu_irqs = omap2430_mcbsp5_irqs,
2276 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
2277 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp5_sdma_chs),
2278 .main_clk = "mcbsp5_fck",
2282 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
2283 .module_offs = CORE_MOD,
2285 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
2288 .slaves = omap2430_mcbsp5_slaves,
2289 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
2290 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2293 /* MMC/SD/SDIO common */
2295 static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
2299 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2300 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2301 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2302 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2303 .sysc_fields = &omap_hwmod_sysc_type1,
2306 static struct omap_hwmod_class omap2430_mmc_class = {
2308 .sysc = &omap2430_mmc_sysc,
2313 static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
2318 static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
2319 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
2320 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
2323 static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
2324 { .role = "dbck", .clk = "mmchsdb1_fck" },
2327 static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
2328 &omap2430_l4_core__mmc1,
2331 static struct omap_mmc_dev_attr mmc1_dev_attr = {
2332 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2335 static struct omap_hwmod omap2430_mmc1_hwmod = {
2337 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2338 .mpu_irqs = omap2430_mmc1_mpu_irqs,
2339 .sdma_reqs = omap2430_mmc1_sdma_reqs,
2340 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mmc1_sdma_reqs),
2341 .opt_clks = omap2430_mmc1_opt_clks,
2342 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
2343 .main_clk = "mmchs1_fck",
2346 .module_offs = CORE_MOD,
2348 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
2350 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
2353 .dev_attr = &mmc1_dev_attr,
2354 .slaves = omap2430_mmc1_slaves,
2355 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
2356 .class = &omap2430_mmc_class,
2357 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2362 static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
2367 static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
2368 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
2369 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
2372 static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
2373 { .role = "dbck", .clk = "mmchsdb2_fck" },
2376 static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
2377 &omap2430_l4_core__mmc2,
2380 static struct omap_hwmod omap2430_mmc2_hwmod = {
2382 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2383 .mpu_irqs = omap2430_mmc2_mpu_irqs,
2384 .sdma_reqs = omap2430_mmc2_sdma_reqs,
2385 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mmc2_sdma_reqs),
2386 .opt_clks = omap2430_mmc2_opt_clks,
2387 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
2388 .main_clk = "mmchs2_fck",
2391 .module_offs = CORE_MOD,
2393 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2395 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2398 .slaves = omap2430_mmc2_slaves,
2399 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2400 .class = &omap2430_mmc_class,
2401 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2404 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
2405 &omap2430_l3_main_hwmod,
2406 &omap2430_l4_core_hwmod,
2407 &omap2430_l4_wkup_hwmod,
2408 &omap2430_mpu_hwmod,
2409 &omap2430_iva_hwmod,
2411 &omap2430_timer1_hwmod,
2412 &omap2430_timer2_hwmod,
2413 &omap2430_timer3_hwmod,
2414 &omap2430_timer4_hwmod,
2415 &omap2430_timer5_hwmod,
2416 &omap2430_timer6_hwmod,
2417 &omap2430_timer7_hwmod,
2418 &omap2430_timer8_hwmod,
2419 &omap2430_timer9_hwmod,
2420 &omap2430_timer10_hwmod,
2421 &omap2430_timer11_hwmod,
2422 &omap2430_timer12_hwmod,
2424 &omap2430_wd_timer2_hwmod,
2425 &omap2430_uart1_hwmod,
2426 &omap2430_uart2_hwmod,
2427 &omap2430_uart3_hwmod,
2429 &omap2430_dss_core_hwmod,
2430 &omap2430_dss_dispc_hwmod,
2431 &omap2430_dss_rfbi_hwmod,
2432 &omap2430_dss_venc_hwmod,
2434 &omap2430_i2c1_hwmod,
2435 &omap2430_i2c2_hwmod,
2436 &omap2430_mmc1_hwmod,
2437 &omap2430_mmc2_hwmod,
2440 &omap2430_gpio1_hwmod,
2441 &omap2430_gpio2_hwmod,
2442 &omap2430_gpio3_hwmod,
2443 &omap2430_gpio4_hwmod,
2444 &omap2430_gpio5_hwmod,
2446 /* dma_system class*/
2447 &omap2430_dma_system_hwmod,
2450 &omap2430_mcbsp1_hwmod,
2451 &omap2430_mcbsp2_hwmod,
2452 &omap2430_mcbsp3_hwmod,
2453 &omap2430_mcbsp4_hwmod,
2454 &omap2430_mcbsp5_hwmod,
2457 &omap2430_mailbox_hwmod,
2460 &omap2430_mcspi1_hwmod,
2461 &omap2430_mcspi2_hwmod,
2462 &omap2430_mcspi3_hwmod,
2465 &omap2430_usbhsotg_hwmod,
2470 int __init omap2430_hwmod_init(void)
2472 return omap_hwmod_register(omap2430_hwmods);