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;
371 static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
373 .pa_start = 0x49018000,
374 .pa_end = 0x49018000 + SZ_1K - 1,
375 .flags = ADDR_TYPE_RT
380 /* l4_wkup -> timer1 */
381 static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
382 .master = &omap2430_l4_wkup_hwmod,
383 .slave = &omap2430_timer1_hwmod,
385 .addr = omap2430_timer1_addrs,
386 .user = OCP_USER_MPU | OCP_USER_SDMA,
389 /* timer1 slave port */
390 static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
391 &omap2430_l4_wkup__timer1,
395 static struct omap_hwmod omap2430_timer1_hwmod = {
397 .mpu_irqs = omap2_timer1_mpu_irqs,
398 .main_clk = "gpt1_fck",
402 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
403 .module_offs = WKUP_MOD,
405 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
408 .slaves = omap2430_timer1_slaves,
409 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
410 .class = &omap2430_timer_hwmod_class,
411 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
415 static struct omap_hwmod omap2430_timer2_hwmod;
417 /* l4_core -> timer2 */
418 static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
419 .master = &omap2430_l4_core_hwmod,
420 .slave = &omap2430_timer2_hwmod,
422 .addr = omap2xxx_timer2_addrs,
423 .user = OCP_USER_MPU | OCP_USER_SDMA,
426 /* timer2 slave port */
427 static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
428 &omap2430_l4_core__timer2,
432 static struct omap_hwmod omap2430_timer2_hwmod = {
434 .mpu_irqs = omap2_timer2_mpu_irqs,
435 .main_clk = "gpt2_fck",
439 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
440 .module_offs = CORE_MOD,
442 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
445 .slaves = omap2430_timer2_slaves,
446 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
447 .class = &omap2430_timer_hwmod_class,
448 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
452 static struct omap_hwmod omap2430_timer3_hwmod;
454 /* l4_core -> timer3 */
455 static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
456 .master = &omap2430_l4_core_hwmod,
457 .slave = &omap2430_timer3_hwmod,
459 .addr = omap2xxx_timer3_addrs,
460 .user = OCP_USER_MPU | OCP_USER_SDMA,
463 /* timer3 slave port */
464 static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
465 &omap2430_l4_core__timer3,
469 static struct omap_hwmod omap2430_timer3_hwmod = {
471 .mpu_irqs = omap2_timer3_mpu_irqs,
472 .main_clk = "gpt3_fck",
476 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
477 .module_offs = CORE_MOD,
479 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
482 .slaves = omap2430_timer3_slaves,
483 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
484 .class = &omap2430_timer_hwmod_class,
485 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
489 static struct omap_hwmod omap2430_timer4_hwmod;
491 /* l4_core -> timer4 */
492 static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
493 .master = &omap2430_l4_core_hwmod,
494 .slave = &omap2430_timer4_hwmod,
496 .addr = omap2xxx_timer4_addrs,
497 .user = OCP_USER_MPU | OCP_USER_SDMA,
500 /* timer4 slave port */
501 static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
502 &omap2430_l4_core__timer4,
506 static struct omap_hwmod omap2430_timer4_hwmod = {
508 .mpu_irqs = omap2_timer4_mpu_irqs,
509 .main_clk = "gpt4_fck",
513 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
514 .module_offs = CORE_MOD,
516 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
519 .slaves = omap2430_timer4_slaves,
520 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
521 .class = &omap2430_timer_hwmod_class,
522 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
526 static struct omap_hwmod omap2430_timer5_hwmod;
528 /* l4_core -> timer5 */
529 static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
530 .master = &omap2430_l4_core_hwmod,
531 .slave = &omap2430_timer5_hwmod,
533 .addr = omap2xxx_timer5_addrs,
534 .user = OCP_USER_MPU | OCP_USER_SDMA,
537 /* timer5 slave port */
538 static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
539 &omap2430_l4_core__timer5,
543 static struct omap_hwmod omap2430_timer5_hwmod = {
545 .mpu_irqs = omap2_timer5_mpu_irqs,
546 .main_clk = "gpt5_fck",
550 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
551 .module_offs = CORE_MOD,
553 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
556 .slaves = omap2430_timer5_slaves,
557 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
558 .class = &omap2430_timer_hwmod_class,
559 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
563 static struct omap_hwmod omap2430_timer6_hwmod;
565 /* l4_core -> timer6 */
566 static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
567 .master = &omap2430_l4_core_hwmod,
568 .slave = &omap2430_timer6_hwmod,
570 .addr = omap2xxx_timer6_addrs,
571 .user = OCP_USER_MPU | OCP_USER_SDMA,
574 /* timer6 slave port */
575 static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
576 &omap2430_l4_core__timer6,
580 static struct omap_hwmod omap2430_timer6_hwmod = {
582 .mpu_irqs = omap2_timer6_mpu_irqs,
583 .main_clk = "gpt6_fck",
587 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
588 .module_offs = CORE_MOD,
590 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
593 .slaves = omap2430_timer6_slaves,
594 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
595 .class = &omap2430_timer_hwmod_class,
596 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
600 static struct omap_hwmod omap2430_timer7_hwmod;
602 /* l4_core -> timer7 */
603 static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
604 .master = &omap2430_l4_core_hwmod,
605 .slave = &omap2430_timer7_hwmod,
607 .addr = omap2xxx_timer7_addrs,
608 .user = OCP_USER_MPU | OCP_USER_SDMA,
611 /* timer7 slave port */
612 static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
613 &omap2430_l4_core__timer7,
617 static struct omap_hwmod omap2430_timer7_hwmod = {
619 .mpu_irqs = omap2_timer7_mpu_irqs,
620 .main_clk = "gpt7_fck",
624 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
625 .module_offs = CORE_MOD,
627 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
630 .slaves = omap2430_timer7_slaves,
631 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
632 .class = &omap2430_timer_hwmod_class,
633 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
637 static struct omap_hwmod omap2430_timer8_hwmod;
639 /* l4_core -> timer8 */
640 static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
641 .master = &omap2430_l4_core_hwmod,
642 .slave = &omap2430_timer8_hwmod,
644 .addr = omap2xxx_timer8_addrs,
645 .user = OCP_USER_MPU | OCP_USER_SDMA,
648 /* timer8 slave port */
649 static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
650 &omap2430_l4_core__timer8,
654 static struct omap_hwmod omap2430_timer8_hwmod = {
656 .mpu_irqs = omap2_timer8_mpu_irqs,
657 .main_clk = "gpt8_fck",
661 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
662 .module_offs = CORE_MOD,
664 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
667 .slaves = omap2430_timer8_slaves,
668 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
669 .class = &omap2430_timer_hwmod_class,
670 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
674 static struct omap_hwmod omap2430_timer9_hwmod;
676 /* l4_core -> timer9 */
677 static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
678 .master = &omap2430_l4_core_hwmod,
679 .slave = &omap2430_timer9_hwmod,
681 .addr = omap2xxx_timer9_addrs,
682 .user = OCP_USER_MPU | OCP_USER_SDMA,
685 /* timer9 slave port */
686 static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
687 &omap2430_l4_core__timer9,
691 static struct omap_hwmod omap2430_timer9_hwmod = {
693 .mpu_irqs = omap2_timer9_mpu_irqs,
694 .main_clk = "gpt9_fck",
698 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
699 .module_offs = CORE_MOD,
701 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
704 .slaves = omap2430_timer9_slaves,
705 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
706 .class = &omap2430_timer_hwmod_class,
707 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
711 static struct omap_hwmod omap2430_timer10_hwmod;
713 /* l4_core -> timer10 */
714 static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
715 .master = &omap2430_l4_core_hwmod,
716 .slave = &omap2430_timer10_hwmod,
718 .addr = omap2_timer10_addrs,
719 .user = OCP_USER_MPU | OCP_USER_SDMA,
722 /* timer10 slave port */
723 static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
724 &omap2430_l4_core__timer10,
728 static struct omap_hwmod omap2430_timer10_hwmod = {
730 .mpu_irqs = omap2_timer10_mpu_irqs,
731 .main_clk = "gpt10_fck",
735 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
736 .module_offs = CORE_MOD,
738 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
741 .slaves = omap2430_timer10_slaves,
742 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
743 .class = &omap2430_timer_hwmod_class,
744 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
748 static struct omap_hwmod omap2430_timer11_hwmod;
750 /* l4_core -> timer11 */
751 static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
752 .master = &omap2430_l4_core_hwmod,
753 .slave = &omap2430_timer11_hwmod,
755 .addr = omap2_timer11_addrs,
756 .user = OCP_USER_MPU | OCP_USER_SDMA,
759 /* timer11 slave port */
760 static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
761 &omap2430_l4_core__timer11,
765 static struct omap_hwmod omap2430_timer11_hwmod = {
767 .mpu_irqs = omap2_timer11_mpu_irqs,
768 .main_clk = "gpt11_fck",
772 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
773 .module_offs = CORE_MOD,
775 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
778 .slaves = omap2430_timer11_slaves,
779 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
780 .class = &omap2430_timer_hwmod_class,
781 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
785 static struct omap_hwmod omap2430_timer12_hwmod;
787 /* l4_core -> timer12 */
788 static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
789 .master = &omap2430_l4_core_hwmod,
790 .slave = &omap2430_timer12_hwmod,
792 .addr = omap2xxx_timer12_addrs,
793 .user = OCP_USER_MPU | OCP_USER_SDMA,
796 /* timer12 slave port */
797 static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
798 &omap2430_l4_core__timer12,
802 static struct omap_hwmod omap2430_timer12_hwmod = {
804 .mpu_irqs = omap2xxx_timer12_mpu_irqs,
805 .main_clk = "gpt12_fck",
809 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
810 .module_offs = CORE_MOD,
812 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
815 .slaves = omap2430_timer12_slaves,
816 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
817 .class = &omap2430_timer_hwmod_class,
818 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
821 /* l4_wkup -> wd_timer2 */
822 static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
824 .pa_start = 0x49016000,
825 .pa_end = 0x4901607f,
826 .flags = ADDR_TYPE_RT
831 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
832 .master = &omap2430_l4_wkup_hwmod,
833 .slave = &omap2430_wd_timer2_hwmod,
834 .clk = "mpu_wdt_ick",
835 .addr = omap2430_wd_timer2_addrs,
836 .user = OCP_USER_MPU | OCP_USER_SDMA,
841 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
845 static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
849 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
850 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
851 .sysc_fields = &omap_hwmod_sysc_type1,
854 static struct omap_hwmod_class omap2430_wd_timer_hwmod_class = {
856 .sysc = &omap2430_wd_timer_sysc,
857 .pre_shutdown = &omap2_wd_timer_disable
861 static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
862 &omap2430_l4_wkup__wd_timer2,
865 static struct omap_hwmod omap2430_wd_timer2_hwmod = {
867 .class = &omap2430_wd_timer_hwmod_class,
868 .main_clk = "mpu_wdt_fck",
872 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
873 .module_offs = WKUP_MOD,
875 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
878 .slaves = omap2430_wd_timer2_slaves,
879 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
880 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
885 static struct omap_hwmod_class_sysconfig uart_sysc = {
889 .sysc_flags = (SYSC_HAS_SIDLEMODE |
890 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
891 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
892 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
893 .sysc_fields = &omap_hwmod_sysc_type1,
896 static struct omap_hwmod_class uart_class = {
903 static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
904 &omap2_l4_core__uart1,
907 static struct omap_hwmod omap2430_uart1_hwmod = {
909 .mpu_irqs = omap2_uart1_mpu_irqs,
910 .sdma_reqs = omap2_uart1_sdma_reqs,
911 .main_clk = "uart1_fck",
914 .module_offs = CORE_MOD,
916 .module_bit = OMAP24XX_EN_UART1_SHIFT,
918 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
921 .slaves = omap2430_uart1_slaves,
922 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
923 .class = &uart_class,
924 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
929 static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
930 &omap2_l4_core__uart2,
933 static struct omap_hwmod omap2430_uart2_hwmod = {
935 .mpu_irqs = omap2_uart2_mpu_irqs,
936 .sdma_reqs = omap2_uart2_sdma_reqs,
937 .main_clk = "uart2_fck",
940 .module_offs = CORE_MOD,
942 .module_bit = OMAP24XX_EN_UART2_SHIFT,
944 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
947 .slaves = omap2430_uart2_slaves,
948 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
949 .class = &uart_class,
950 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
955 static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
956 &omap2_l4_core__uart3,
959 static struct omap_hwmod omap2430_uart3_hwmod = {
961 .mpu_irqs = omap2_uart3_mpu_irqs,
962 .sdma_reqs = omap2_uart3_sdma_reqs,
963 .main_clk = "uart3_fck",
966 .module_offs = CORE_MOD,
968 .module_bit = OMAP24XX_EN_UART3_SHIFT,
970 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
973 .slaves = omap2430_uart3_slaves,
974 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
975 .class = &uart_class,
976 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
984 static struct omap_hwmod_class_sysconfig omap2430_dss_sysc = {
988 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
989 .sysc_fields = &omap_hwmod_sysc_type1,
992 static struct omap_hwmod_class omap2430_dss_hwmod_class = {
994 .sysc = &omap2430_dss_sysc,
998 /* dss master ports */
999 static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
1003 /* l4_core -> dss */
1004 static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
1005 .master = &omap2430_l4_core_hwmod,
1006 .slave = &omap2430_dss_core_hwmod,
1008 .addr = omap2_dss_addrs,
1009 .user = OCP_USER_MPU | OCP_USER_SDMA,
1012 /* dss slave ports */
1013 static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
1014 &omap2430_l4_core__dss,
1017 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1018 { .role = "tv_clk", .clk = "dss_54m_fck" },
1019 { .role = "sys_clk", .clk = "dss2_fck" },
1022 static struct omap_hwmod omap2430_dss_core_hwmod = {
1024 .class = &omap2430_dss_hwmod_class,
1025 .main_clk = "dss1_fck", /* instead of dss_fck */
1026 .sdma_reqs = omap2xxx_dss_sdma_chs,
1030 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1031 .module_offs = CORE_MOD,
1033 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1036 .opt_clks = dss_opt_clks,
1037 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1038 .slaves = omap2430_dss_slaves,
1039 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
1040 .masters = omap2430_dss_masters,
1041 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
1042 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1043 .flags = HWMOD_NO_IDLEST,
1048 * display controller
1051 static struct omap_hwmod_class_sysconfig omap2430_dispc_sysc = {
1053 .sysc_offs = 0x0010,
1054 .syss_offs = 0x0014,
1055 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1056 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1057 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1058 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1059 .sysc_fields = &omap_hwmod_sysc_type1,
1062 static struct omap_hwmod_class omap2430_dispc_hwmod_class = {
1064 .sysc = &omap2430_dispc_sysc,
1067 /* l4_core -> dss_dispc */
1068 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
1069 .master = &omap2430_l4_core_hwmod,
1070 .slave = &omap2430_dss_dispc_hwmod,
1072 .addr = omap2_dss_dispc_addrs,
1073 .user = OCP_USER_MPU | OCP_USER_SDMA,
1076 /* dss_dispc slave ports */
1077 static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
1078 &omap2430_l4_core__dss_dispc,
1081 static struct omap_hwmod omap2430_dss_dispc_hwmod = {
1082 .name = "dss_dispc",
1083 .class = &omap2430_dispc_hwmod_class,
1084 .mpu_irqs = omap2_dispc_irqs,
1085 .main_clk = "dss1_fck",
1089 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1090 .module_offs = CORE_MOD,
1092 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1095 .slaves = omap2430_dss_dispc_slaves,
1096 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1097 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1098 .flags = HWMOD_NO_IDLEST,
1103 * remote frame buffer interface
1106 static struct omap_hwmod_class_sysconfig omap2430_rfbi_sysc = {
1108 .sysc_offs = 0x0010,
1109 .syss_offs = 0x0014,
1110 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1112 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1113 .sysc_fields = &omap_hwmod_sysc_type1,
1116 static struct omap_hwmod_class omap2430_rfbi_hwmod_class = {
1118 .sysc = &omap2430_rfbi_sysc,
1121 /* l4_core -> dss_rfbi */
1122 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1123 .master = &omap2430_l4_core_hwmod,
1124 .slave = &omap2430_dss_rfbi_hwmod,
1126 .addr = omap2_dss_rfbi_addrs,
1127 .user = OCP_USER_MPU | OCP_USER_SDMA,
1130 /* dss_rfbi slave ports */
1131 static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1132 &omap2430_l4_core__dss_rfbi,
1135 static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1137 .class = &omap2430_rfbi_hwmod_class,
1138 .main_clk = "dss1_fck",
1142 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1143 .module_offs = CORE_MOD,
1146 .slaves = omap2430_dss_rfbi_slaves,
1147 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1148 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1149 .flags = HWMOD_NO_IDLEST,
1157 static struct omap_hwmod_class omap2430_venc_hwmod_class = {
1161 /* l4_core -> dss_venc */
1162 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1163 .master = &omap2430_l4_core_hwmod,
1164 .slave = &omap2430_dss_venc_hwmod,
1165 .clk = "dss_54m_fck",
1166 .addr = omap2_dss_venc_addrs,
1167 .flags = OCPIF_SWSUP_IDLE,
1168 .user = OCP_USER_MPU | OCP_USER_SDMA,
1171 /* dss_venc slave ports */
1172 static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1173 &omap2430_l4_core__dss_venc,
1176 static struct omap_hwmod omap2430_dss_venc_hwmod = {
1178 .class = &omap2430_venc_hwmod_class,
1179 .main_clk = "dss1_fck",
1183 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1184 .module_offs = CORE_MOD,
1187 .slaves = omap2430_dss_venc_slaves,
1188 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1189 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1190 .flags = HWMOD_NO_IDLEST,
1194 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1198 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1199 SYSS_HAS_RESET_STATUS),
1200 .sysc_fields = &omap_hwmod_sysc_type1,
1203 static struct omap_hwmod_class i2c_class = {
1208 static struct omap_i2c_dev_attr i2c_dev_attr = {
1209 .fifo_depth = 8, /* bytes */
1214 static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1215 &omap2430_l4_core__i2c1,
1218 static struct omap_hwmod omap2430_i2c1_hwmod = {
1220 .mpu_irqs = omap2_i2c1_mpu_irqs,
1221 .sdma_reqs = omap2_i2c1_sdma_reqs,
1222 .main_clk = "i2chs1_fck",
1226 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1227 * I2CHS IP's do not follow the usual pattern.
1228 * prcm_reg_id alone cannot be used to program
1229 * the iclk and fclk. Needs to be handled using
1230 * additional flags when clk handling is moved
1231 * to hwmod framework.
1233 .module_offs = CORE_MOD,
1235 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1237 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1240 .slaves = omap2430_i2c1_slaves,
1241 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1242 .class = &i2c_class,
1243 .dev_attr = &i2c_dev_attr,
1244 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1249 static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1250 &omap2430_l4_core__i2c2,
1253 static struct omap_hwmod omap2430_i2c2_hwmod = {
1255 .mpu_irqs = omap2_i2c2_mpu_irqs,
1256 .sdma_reqs = omap2_i2c2_sdma_reqs,
1257 .main_clk = "i2chs2_fck",
1260 .module_offs = CORE_MOD,
1262 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1264 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1267 .slaves = omap2430_i2c2_slaves,
1268 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1269 .class = &i2c_class,
1270 .dev_attr = &i2c_dev_attr,
1271 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1274 /* l4_wkup -> gpio1 */
1275 static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1277 .pa_start = 0x4900C000,
1278 .pa_end = 0x4900C1ff,
1279 .flags = ADDR_TYPE_RT
1284 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1285 .master = &omap2430_l4_wkup_hwmod,
1286 .slave = &omap2430_gpio1_hwmod,
1288 .addr = omap2430_gpio1_addr_space,
1289 .user = OCP_USER_MPU | OCP_USER_SDMA,
1292 /* l4_wkup -> gpio2 */
1293 static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1295 .pa_start = 0x4900E000,
1296 .pa_end = 0x4900E1ff,
1297 .flags = ADDR_TYPE_RT
1302 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1303 .master = &omap2430_l4_wkup_hwmod,
1304 .slave = &omap2430_gpio2_hwmod,
1306 .addr = omap2430_gpio2_addr_space,
1307 .user = OCP_USER_MPU | OCP_USER_SDMA,
1310 /* l4_wkup -> gpio3 */
1311 static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1313 .pa_start = 0x49010000,
1314 .pa_end = 0x490101ff,
1315 .flags = ADDR_TYPE_RT
1320 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1321 .master = &omap2430_l4_wkup_hwmod,
1322 .slave = &omap2430_gpio3_hwmod,
1324 .addr = omap2430_gpio3_addr_space,
1325 .user = OCP_USER_MPU | OCP_USER_SDMA,
1328 /* l4_wkup -> gpio4 */
1329 static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1331 .pa_start = 0x49012000,
1332 .pa_end = 0x490121ff,
1333 .flags = ADDR_TYPE_RT
1338 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1339 .master = &omap2430_l4_wkup_hwmod,
1340 .slave = &omap2430_gpio4_hwmod,
1342 .addr = omap2430_gpio4_addr_space,
1343 .user = OCP_USER_MPU | OCP_USER_SDMA,
1346 /* l4_core -> gpio5 */
1347 static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1349 .pa_start = 0x480B6000,
1350 .pa_end = 0x480B61ff,
1351 .flags = ADDR_TYPE_RT
1356 static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1357 .master = &omap2430_l4_core_hwmod,
1358 .slave = &omap2430_gpio5_hwmod,
1360 .addr = omap2430_gpio5_addr_space,
1361 .user = OCP_USER_MPU | OCP_USER_SDMA,
1365 static struct omap_gpio_dev_attr gpio_dev_attr = {
1370 static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
1372 .sysc_offs = 0x0010,
1373 .syss_offs = 0x0014,
1374 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1375 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1376 SYSS_HAS_RESET_STATUS),
1377 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1378 .sysc_fields = &omap_hwmod_sysc_type1,
1383 * general purpose io module
1385 static struct omap_hwmod_class omap243x_gpio_hwmod_class = {
1387 .sysc = &omap243x_gpio_sysc,
1392 static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1393 &omap2430_l4_wkup__gpio1,
1396 static struct omap_hwmod omap2430_gpio1_hwmod = {
1398 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1399 .mpu_irqs = omap2_gpio1_irqs,
1400 .main_clk = "gpios_fck",
1404 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1405 .module_offs = WKUP_MOD,
1407 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1410 .slaves = omap2430_gpio1_slaves,
1411 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1412 .class = &omap243x_gpio_hwmod_class,
1413 .dev_attr = &gpio_dev_attr,
1414 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1418 static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1419 &omap2430_l4_wkup__gpio2,
1422 static struct omap_hwmod omap2430_gpio2_hwmod = {
1424 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1425 .mpu_irqs = omap2_gpio2_irqs,
1426 .main_clk = "gpios_fck",
1430 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1431 .module_offs = WKUP_MOD,
1433 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1436 .slaves = omap2430_gpio2_slaves,
1437 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1438 .class = &omap243x_gpio_hwmod_class,
1439 .dev_attr = &gpio_dev_attr,
1440 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1444 static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1445 &omap2430_l4_wkup__gpio3,
1448 static struct omap_hwmod omap2430_gpio3_hwmod = {
1450 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1451 .mpu_irqs = omap2_gpio3_irqs,
1452 .main_clk = "gpios_fck",
1456 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1457 .module_offs = WKUP_MOD,
1459 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1462 .slaves = omap2430_gpio3_slaves,
1463 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1464 .class = &omap243x_gpio_hwmod_class,
1465 .dev_attr = &gpio_dev_attr,
1466 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1470 static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1471 &omap2430_l4_wkup__gpio4,
1474 static struct omap_hwmod omap2430_gpio4_hwmod = {
1476 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1477 .mpu_irqs = omap2_gpio4_irqs,
1478 .main_clk = "gpios_fck",
1482 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1483 .module_offs = WKUP_MOD,
1485 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1488 .slaves = omap2430_gpio4_slaves,
1489 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1490 .class = &omap243x_gpio_hwmod_class,
1491 .dev_attr = &gpio_dev_attr,
1492 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1496 static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1497 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1501 static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1502 &omap2430_l4_core__gpio5,
1505 static struct omap_hwmod omap2430_gpio5_hwmod = {
1507 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1508 .mpu_irqs = omap243x_gpio5_irqs,
1509 .main_clk = "gpio5_fck",
1513 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1514 .module_offs = CORE_MOD,
1516 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1519 .slaves = omap2430_gpio5_slaves,
1520 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1521 .class = &omap243x_gpio_hwmod_class,
1522 .dev_attr = &gpio_dev_attr,
1523 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1527 static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
1529 .sysc_offs = 0x002c,
1530 .syss_offs = 0x0028,
1531 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
1532 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
1533 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1534 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1535 .sysc_fields = &omap_hwmod_sysc_type1,
1538 static struct omap_hwmod_class omap2430_dma_hwmod_class = {
1540 .sysc = &omap2430_dma_sysc,
1543 /* dma attributes */
1544 static struct omap_dma_dev_attr dma_dev_attr = {
1545 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1546 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1550 /* dma_system -> L3 */
1551 static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1552 .master = &omap2430_dma_system_hwmod,
1553 .slave = &omap2430_l3_main_hwmod,
1554 .clk = "core_l3_ck",
1555 .user = OCP_USER_MPU | OCP_USER_SDMA,
1558 /* dma_system master ports */
1559 static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1560 &omap2430_dma_system__l3,
1563 /* l4_core -> dma_system */
1564 static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1565 .master = &omap2430_l4_core_hwmod,
1566 .slave = &omap2430_dma_system_hwmod,
1568 .addr = omap2_dma_system_addrs,
1569 .user = OCP_USER_MPU | OCP_USER_SDMA,
1572 /* dma_system slave ports */
1573 static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1574 &omap2430_l4_core__dma_system,
1577 static struct omap_hwmod omap2430_dma_system_hwmod = {
1579 .class = &omap2430_dma_hwmod_class,
1580 .mpu_irqs = omap2_dma_system_irqs,
1581 .main_clk = "core_l3_ck",
1582 .slaves = omap2430_dma_system_slaves,
1583 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1584 .masters = omap2430_dma_system_masters,
1585 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1586 .dev_attr = &dma_dev_attr,
1587 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1588 .flags = HWMOD_NO_IDLEST,
1593 * mailbox module allowing communication between the on-chip processors
1594 * using a queued mailbox-interrupt mechanism.
1597 static struct omap_hwmod_class_sysconfig omap2430_mailbox_sysc = {
1601 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1602 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1603 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1604 .sysc_fields = &omap_hwmod_sysc_type1,
1607 static struct omap_hwmod_class omap2430_mailbox_hwmod_class = {
1609 .sysc = &omap2430_mailbox_sysc,
1613 static struct omap_hwmod omap2430_mailbox_hwmod;
1614 static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1619 /* l4_core -> mailbox */
1620 static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1621 .master = &omap2430_l4_core_hwmod,
1622 .slave = &omap2430_mailbox_hwmod,
1623 .addr = omap2_mailbox_addrs,
1624 .user = OCP_USER_MPU | OCP_USER_SDMA,
1627 /* mailbox slave ports */
1628 static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1629 &omap2430_l4_core__mailbox,
1632 static struct omap_hwmod omap2430_mailbox_hwmod = {
1634 .class = &omap2430_mailbox_hwmod_class,
1635 .mpu_irqs = omap2430_mailbox_irqs,
1636 .main_clk = "mailboxes_ick",
1640 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1641 .module_offs = CORE_MOD,
1643 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1646 .slaves = omap2430_mailbox_slaves,
1647 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1648 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1653 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1657 static struct omap_hwmod_class_sysconfig omap2430_mcspi_sysc = {
1659 .sysc_offs = 0x0010,
1660 .syss_offs = 0x0014,
1661 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1662 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1663 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1664 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1665 .sysc_fields = &omap_hwmod_sysc_type1,
1668 static struct omap_hwmod_class omap2430_mcspi_class = {
1670 .sysc = &omap2430_mcspi_sysc,
1671 .rev = OMAP2_MCSPI_REV,
1675 static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1676 &omap2430_l4_core__mcspi1,
1679 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1680 .num_chipselect = 4,
1683 static struct omap_hwmod omap2430_mcspi1_hwmod = {
1684 .name = "mcspi1_hwmod",
1685 .mpu_irqs = omap2_mcspi1_mpu_irqs,
1686 .sdma_reqs = omap2_mcspi1_sdma_reqs,
1687 .main_clk = "mcspi1_fck",
1690 .module_offs = CORE_MOD,
1692 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1694 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1697 .slaves = omap2430_mcspi1_slaves,
1698 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
1699 .class = &omap2430_mcspi_class,
1700 .dev_attr = &omap_mcspi1_dev_attr,
1701 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1705 static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1706 &omap2430_l4_core__mcspi2,
1709 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1710 .num_chipselect = 2,
1713 static struct omap_hwmod omap2430_mcspi2_hwmod = {
1714 .name = "mcspi2_hwmod",
1715 .mpu_irqs = omap2_mcspi2_mpu_irqs,
1716 .sdma_reqs = omap2_mcspi2_sdma_reqs,
1717 .main_clk = "mcspi2_fck",
1720 .module_offs = CORE_MOD,
1722 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1724 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1727 .slaves = omap2430_mcspi2_slaves,
1728 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
1729 .class = &omap2430_mcspi_class,
1730 .dev_attr = &omap_mcspi2_dev_attr,
1731 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1735 static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1740 static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1741 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1742 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1743 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1744 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
1748 static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1749 &omap2430_l4_core__mcspi3,
1752 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1753 .num_chipselect = 2,
1756 static struct omap_hwmod omap2430_mcspi3_hwmod = {
1757 .name = "mcspi3_hwmod",
1758 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
1759 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
1760 .main_clk = "mcspi3_fck",
1763 .module_offs = CORE_MOD,
1765 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1767 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1770 .slaves = omap2430_mcspi3_slaves,
1771 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
1772 .class = &omap2430_mcspi_class,
1773 .dev_attr = &omap_mcspi3_dev_attr,
1774 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1780 static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1782 .sysc_offs = 0x0404,
1783 .syss_offs = 0x0408,
1784 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1785 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1787 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1788 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1789 .sysc_fields = &omap_hwmod_sysc_type1,
1792 static struct omap_hwmod_class usbotg_class = {
1794 .sysc = &omap2430_usbhsotg_sysc,
1798 static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1800 { .name = "mc", .irq = 92 },
1801 { .name = "dma", .irq = 93 },
1805 static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1806 .name = "usb_otg_hs",
1807 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
1808 .main_clk = "usbhs_ick",
1812 .module_bit = OMAP2430_EN_USBHS_MASK,
1813 .module_offs = CORE_MOD,
1815 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1818 .masters = omap2430_usbhsotg_masters,
1819 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1820 .slaves = omap2430_usbhsotg_slaves,
1821 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1822 .class = &usbotg_class,
1824 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1825 * broken when autoidle is enabled
1826 * workaround is to disable the autoidle bit at module level.
1828 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1829 | HWMOD_SWSUP_MSTANDBY,
1830 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1835 * multi channel buffered serial port controller
1838 static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
1840 .sysc_offs = 0x008C,
1841 .sysc_flags = (SYSC_HAS_SOFTRESET),
1842 .sysc_fields = &omap_hwmod_sysc_type1,
1845 static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
1847 .sysc = &omap2430_mcbsp_sysc,
1848 .rev = MCBSP_CONFIG_TYPE2,
1852 static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
1853 { .name = "tx", .irq = 59 },
1854 { .name = "rx", .irq = 60 },
1855 { .name = "ovr", .irq = 61 },
1856 { .name = "common", .irq = 64 },
1860 /* l4_core -> mcbsp1 */
1861 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
1862 .master = &omap2430_l4_core_hwmod,
1863 .slave = &omap2430_mcbsp1_hwmod,
1864 .clk = "mcbsp1_ick",
1865 .addr = omap2_mcbsp1_addrs,
1866 .user = OCP_USER_MPU | OCP_USER_SDMA,
1869 /* mcbsp1 slave ports */
1870 static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
1871 &omap2430_l4_core__mcbsp1,
1874 static struct omap_hwmod omap2430_mcbsp1_hwmod = {
1876 .class = &omap2430_mcbsp_hwmod_class,
1877 .mpu_irqs = omap2430_mcbsp1_irqs,
1878 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
1879 .main_clk = "mcbsp1_fck",
1883 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
1884 .module_offs = CORE_MOD,
1886 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
1889 .slaves = omap2430_mcbsp1_slaves,
1890 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
1891 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1895 static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
1896 { .name = "tx", .irq = 62 },
1897 { .name = "rx", .irq = 63 },
1898 { .name = "common", .irq = 16 },
1902 /* l4_core -> mcbsp2 */
1903 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
1904 .master = &omap2430_l4_core_hwmod,
1905 .slave = &omap2430_mcbsp2_hwmod,
1906 .clk = "mcbsp2_ick",
1907 .addr = omap2xxx_mcbsp2_addrs,
1908 .user = OCP_USER_MPU | OCP_USER_SDMA,
1911 /* mcbsp2 slave ports */
1912 static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
1913 &omap2430_l4_core__mcbsp2,
1916 static struct omap_hwmod omap2430_mcbsp2_hwmod = {
1918 .class = &omap2430_mcbsp_hwmod_class,
1919 .mpu_irqs = omap2430_mcbsp2_irqs,
1920 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
1921 .main_clk = "mcbsp2_fck",
1925 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
1926 .module_offs = CORE_MOD,
1928 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
1931 .slaves = omap2430_mcbsp2_slaves,
1932 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
1933 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1937 static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
1938 { .name = "tx", .irq = 89 },
1939 { .name = "rx", .irq = 90 },
1940 { .name = "common", .irq = 17 },
1944 static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
1947 .pa_start = 0x4808C000,
1948 .pa_end = 0x4808C0ff,
1949 .flags = ADDR_TYPE_RT
1954 /* l4_core -> mcbsp3 */
1955 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
1956 .master = &omap2430_l4_core_hwmod,
1957 .slave = &omap2430_mcbsp3_hwmod,
1958 .clk = "mcbsp3_ick",
1959 .addr = omap2430_mcbsp3_addrs,
1960 .user = OCP_USER_MPU | OCP_USER_SDMA,
1963 /* mcbsp3 slave ports */
1964 static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
1965 &omap2430_l4_core__mcbsp3,
1968 static struct omap_hwmod omap2430_mcbsp3_hwmod = {
1970 .class = &omap2430_mcbsp_hwmod_class,
1971 .mpu_irqs = omap2430_mcbsp3_irqs,
1972 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
1973 .main_clk = "mcbsp3_fck",
1977 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
1978 .module_offs = CORE_MOD,
1980 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
1983 .slaves = omap2430_mcbsp3_slaves,
1984 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
1985 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1989 static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
1990 { .name = "tx", .irq = 54 },
1991 { .name = "rx", .irq = 55 },
1992 { .name = "common", .irq = 18 },
1996 static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
1997 { .name = "rx", .dma_req = 20 },
1998 { .name = "tx", .dma_req = 19 },
2002 static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
2005 .pa_start = 0x4808E000,
2006 .pa_end = 0x4808E0ff,
2007 .flags = ADDR_TYPE_RT
2012 /* l4_core -> mcbsp4 */
2013 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
2014 .master = &omap2430_l4_core_hwmod,
2015 .slave = &omap2430_mcbsp4_hwmod,
2016 .clk = "mcbsp4_ick",
2017 .addr = omap2430_mcbsp4_addrs,
2018 .user = OCP_USER_MPU | OCP_USER_SDMA,
2021 /* mcbsp4 slave ports */
2022 static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
2023 &omap2430_l4_core__mcbsp4,
2026 static struct omap_hwmod omap2430_mcbsp4_hwmod = {
2028 .class = &omap2430_mcbsp_hwmod_class,
2029 .mpu_irqs = omap2430_mcbsp4_irqs,
2030 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
2031 .main_clk = "mcbsp4_fck",
2035 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
2036 .module_offs = CORE_MOD,
2038 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
2041 .slaves = omap2430_mcbsp4_slaves,
2042 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
2043 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2047 static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
2048 { .name = "tx", .irq = 81 },
2049 { .name = "rx", .irq = 82 },
2050 { .name = "common", .irq = 19 },
2054 static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
2055 { .name = "rx", .dma_req = 22 },
2056 { .name = "tx", .dma_req = 21 },
2060 static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
2063 .pa_start = 0x48096000,
2064 .pa_end = 0x480960ff,
2065 .flags = ADDR_TYPE_RT
2070 /* l4_core -> mcbsp5 */
2071 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
2072 .master = &omap2430_l4_core_hwmod,
2073 .slave = &omap2430_mcbsp5_hwmod,
2074 .clk = "mcbsp5_ick",
2075 .addr = omap2430_mcbsp5_addrs,
2076 .user = OCP_USER_MPU | OCP_USER_SDMA,
2079 /* mcbsp5 slave ports */
2080 static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
2081 &omap2430_l4_core__mcbsp5,
2084 static struct omap_hwmod omap2430_mcbsp5_hwmod = {
2086 .class = &omap2430_mcbsp_hwmod_class,
2087 .mpu_irqs = omap2430_mcbsp5_irqs,
2088 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
2089 .main_clk = "mcbsp5_fck",
2093 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
2094 .module_offs = CORE_MOD,
2096 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
2099 .slaves = omap2430_mcbsp5_slaves,
2100 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
2101 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2104 /* MMC/SD/SDIO common */
2106 static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
2110 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2111 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2112 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2113 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2114 .sysc_fields = &omap_hwmod_sysc_type1,
2117 static struct omap_hwmod_class omap2430_mmc_class = {
2119 .sysc = &omap2430_mmc_sysc,
2124 static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
2129 static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
2130 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
2131 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
2135 static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
2136 { .role = "dbck", .clk = "mmchsdb1_fck" },
2139 static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
2140 &omap2430_l4_core__mmc1,
2143 static struct omap_mmc_dev_attr mmc1_dev_attr = {
2144 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2147 static struct omap_hwmod omap2430_mmc1_hwmod = {
2149 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2150 .mpu_irqs = omap2430_mmc1_mpu_irqs,
2151 .sdma_reqs = omap2430_mmc1_sdma_reqs,
2152 .opt_clks = omap2430_mmc1_opt_clks,
2153 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
2154 .main_clk = "mmchs1_fck",
2157 .module_offs = CORE_MOD,
2159 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
2161 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
2164 .dev_attr = &mmc1_dev_attr,
2165 .slaves = omap2430_mmc1_slaves,
2166 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
2167 .class = &omap2430_mmc_class,
2168 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2173 static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
2178 static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
2179 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
2180 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
2184 static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
2185 { .role = "dbck", .clk = "mmchsdb2_fck" },
2188 static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
2189 &omap2430_l4_core__mmc2,
2192 static struct omap_hwmod omap2430_mmc2_hwmod = {
2194 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2195 .mpu_irqs = omap2430_mmc2_mpu_irqs,
2196 .sdma_reqs = omap2430_mmc2_sdma_reqs,
2197 .opt_clks = omap2430_mmc2_opt_clks,
2198 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
2199 .main_clk = "mmchs2_fck",
2202 .module_offs = CORE_MOD,
2204 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2206 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2209 .slaves = omap2430_mmc2_slaves,
2210 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2211 .class = &omap2430_mmc_class,
2212 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2215 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
2216 &omap2430_l3_main_hwmod,
2217 &omap2430_l4_core_hwmod,
2218 &omap2430_l4_wkup_hwmod,
2219 &omap2430_mpu_hwmod,
2220 &omap2430_iva_hwmod,
2222 &omap2430_timer1_hwmod,
2223 &omap2430_timer2_hwmod,
2224 &omap2430_timer3_hwmod,
2225 &omap2430_timer4_hwmod,
2226 &omap2430_timer5_hwmod,
2227 &omap2430_timer6_hwmod,
2228 &omap2430_timer7_hwmod,
2229 &omap2430_timer8_hwmod,
2230 &omap2430_timer9_hwmod,
2231 &omap2430_timer10_hwmod,
2232 &omap2430_timer11_hwmod,
2233 &omap2430_timer12_hwmod,
2235 &omap2430_wd_timer2_hwmod,
2236 &omap2430_uart1_hwmod,
2237 &omap2430_uart2_hwmod,
2238 &omap2430_uart3_hwmod,
2240 &omap2430_dss_core_hwmod,
2241 &omap2430_dss_dispc_hwmod,
2242 &omap2430_dss_rfbi_hwmod,
2243 &omap2430_dss_venc_hwmod,
2245 &omap2430_i2c1_hwmod,
2246 &omap2430_i2c2_hwmod,
2247 &omap2430_mmc1_hwmod,
2248 &omap2430_mmc2_hwmod,
2251 &omap2430_gpio1_hwmod,
2252 &omap2430_gpio2_hwmod,
2253 &omap2430_gpio3_hwmod,
2254 &omap2430_gpio4_hwmod,
2255 &omap2430_gpio5_hwmod,
2257 /* dma_system class*/
2258 &omap2430_dma_system_hwmod,
2261 &omap2430_mcbsp1_hwmod,
2262 &omap2430_mcbsp2_hwmod,
2263 &omap2430_mcbsp3_hwmod,
2264 &omap2430_mcbsp4_hwmod,
2265 &omap2430_mcbsp5_hwmod,
2268 &omap2430_mailbox_hwmod,
2271 &omap2430_mcspi1_hwmod,
2272 &omap2430_mcspi2_hwmod,
2273 &omap2430_mcspi3_hwmod,
2276 &omap2430_usbhsotg_hwmod,
2281 int __init omap2430_hwmod_init(void)
2283 return omap_hwmod_register(omap2430_hwmods);