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 .flags = HWMOD_NO_IDLEST,
116 static struct omap_hwmod omap2430_l4_wkup_hwmod;
117 static struct omap_hwmod omap2430_uart1_hwmod;
118 static struct omap_hwmod omap2430_uart2_hwmod;
119 static struct omap_hwmod omap2430_uart3_hwmod;
120 static struct omap_hwmod omap2430_i2c1_hwmod;
121 static struct omap_hwmod omap2430_i2c2_hwmod;
123 static struct omap_hwmod omap2430_usbhsotg_hwmod;
125 /* l3_core -> usbhsotg interface */
126 static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
127 .master = &omap2430_usbhsotg_hwmod,
128 .slave = &omap2430_l3_main_hwmod,
130 .user = OCP_USER_MPU,
133 /* L4 CORE -> I2C1 interface */
134 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
135 .master = &omap2430_l4_core_hwmod,
136 .slave = &omap2430_i2c1_hwmod,
138 .addr = omap2_i2c1_addr_space,
139 .user = OCP_USER_MPU | OCP_USER_SDMA,
142 /* L4 CORE -> I2C2 interface */
143 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
144 .master = &omap2430_l4_core_hwmod,
145 .slave = &omap2430_i2c2_hwmod,
147 .addr = omap2_i2c2_addr_space,
148 .user = OCP_USER_MPU | OCP_USER_SDMA,
151 /* L4_CORE -> L4_WKUP interface */
152 static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
153 .master = &omap2430_l4_core_hwmod,
154 .slave = &omap2430_l4_wkup_hwmod,
155 .user = OCP_USER_MPU | OCP_USER_SDMA,
158 /* L4 CORE -> UART1 interface */
159 static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
160 .master = &omap2430_l4_core_hwmod,
161 .slave = &omap2430_uart1_hwmod,
163 .addr = omap2xxx_uart1_addr_space,
164 .user = OCP_USER_MPU | OCP_USER_SDMA,
167 /* L4 CORE -> UART2 interface */
168 static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
169 .master = &omap2430_l4_core_hwmod,
170 .slave = &omap2430_uart2_hwmod,
172 .addr = omap2xxx_uart2_addr_space,
173 .user = OCP_USER_MPU | OCP_USER_SDMA,
176 /* L4 PER -> UART3 interface */
177 static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
178 .master = &omap2430_l4_core_hwmod,
179 .slave = &omap2430_uart3_hwmod,
181 .addr = omap2xxx_uart3_addr_space,
182 .user = OCP_USER_MPU | OCP_USER_SDMA,
186 * usbhsotg interface data
188 static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
190 .pa_start = OMAP243X_HS_BASE,
191 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
192 .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 .flags = HWMOD_NO_IDLEST,
255 /* Slave interfaces on the L4_WKUP interconnect */
256 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
257 &omap2430_l4_core__l4_wkup,
258 &omap2_l4_core__uart1,
259 &omap2_l4_core__uart2,
260 &omap2_l4_core__uart3,
263 /* Master interfaces on the L4_WKUP interconnect */
264 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
267 /* l4 core -> mcspi1 interface */
268 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
269 .master = &omap2430_l4_core_hwmod,
270 .slave = &omap2430_mcspi1_hwmod,
272 .addr = omap2_mcspi1_addr_space,
273 .user = OCP_USER_MPU | OCP_USER_SDMA,
276 /* l4 core -> mcspi2 interface */
277 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
278 .master = &omap2430_l4_core_hwmod,
279 .slave = &omap2430_mcspi2_hwmod,
281 .addr = omap2_mcspi2_addr_space,
282 .user = OCP_USER_MPU | OCP_USER_SDMA,
285 /* l4 core -> mcspi3 interface */
286 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
287 .master = &omap2430_l4_core_hwmod,
288 .slave = &omap2430_mcspi3_hwmod,
290 .addr = omap2430_mcspi3_addr_space,
291 .user = OCP_USER_MPU | OCP_USER_SDMA,
295 static struct omap_hwmod omap2430_l4_wkup_hwmod = {
297 .class = &l4_hwmod_class,
298 .masters = omap2430_l4_wkup_masters,
299 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
300 .slaves = omap2430_l4_wkup_slaves,
301 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
302 .flags = HWMOD_NO_IDLEST,
305 /* Master interfaces on the MPU device */
306 static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
307 &omap2430_mpu__l3_main,
311 static struct omap_hwmod omap2430_mpu_hwmod = {
313 .class = &mpu_hwmod_class,
314 .main_clk = "mpu_ck",
315 .masters = omap2430_mpu_masters,
316 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
320 * IVA2_1 interface data
323 /* IVA2 <- L3 interface */
324 static struct omap_hwmod_ocp_if omap2430_l3__iva = {
325 .master = &omap2430_l3_main_hwmod,
326 .slave = &omap2430_iva_hwmod,
328 .user = OCP_USER_MPU | OCP_USER_SDMA,
331 static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
339 static struct omap_hwmod omap2430_iva_hwmod = {
341 .class = &iva_hwmod_class,
342 .masters = omap2430_iva_masters,
343 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
347 static struct omap_hwmod omap2430_timer1_hwmod;
349 static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
351 .pa_start = 0x49018000,
352 .pa_end = 0x49018000 + SZ_1K - 1,
353 .flags = ADDR_TYPE_RT
358 /* l4_wkup -> timer1 */
359 static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
360 .master = &omap2430_l4_wkup_hwmod,
361 .slave = &omap2430_timer1_hwmod,
363 .addr = omap2430_timer1_addrs,
364 .user = OCP_USER_MPU | OCP_USER_SDMA,
367 /* timer1 slave port */
368 static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
369 &omap2430_l4_wkup__timer1,
373 static struct omap_hwmod omap2430_timer1_hwmod = {
375 .mpu_irqs = omap2_timer1_mpu_irqs,
376 .main_clk = "gpt1_fck",
380 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
381 .module_offs = WKUP_MOD,
383 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
386 .slaves = omap2430_timer1_slaves,
387 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
388 .class = &omap2xxx_timer_hwmod_class,
392 static struct omap_hwmod omap2430_timer2_hwmod;
394 /* l4_core -> timer2 */
395 static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
396 .master = &omap2430_l4_core_hwmod,
397 .slave = &omap2430_timer2_hwmod,
399 .addr = omap2xxx_timer2_addrs,
400 .user = OCP_USER_MPU | OCP_USER_SDMA,
403 /* timer2 slave port */
404 static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
405 &omap2430_l4_core__timer2,
409 static struct omap_hwmod omap2430_timer2_hwmod = {
411 .mpu_irqs = omap2_timer2_mpu_irqs,
412 .main_clk = "gpt2_fck",
416 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
417 .module_offs = CORE_MOD,
419 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
422 .slaves = omap2430_timer2_slaves,
423 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
424 .class = &omap2xxx_timer_hwmod_class,
428 static struct omap_hwmod omap2430_timer3_hwmod;
430 /* l4_core -> timer3 */
431 static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
432 .master = &omap2430_l4_core_hwmod,
433 .slave = &omap2430_timer3_hwmod,
435 .addr = omap2xxx_timer3_addrs,
436 .user = OCP_USER_MPU | OCP_USER_SDMA,
439 /* timer3 slave port */
440 static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
441 &omap2430_l4_core__timer3,
445 static struct omap_hwmod omap2430_timer3_hwmod = {
447 .mpu_irqs = omap2_timer3_mpu_irqs,
448 .main_clk = "gpt3_fck",
452 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
453 .module_offs = CORE_MOD,
455 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
458 .slaves = omap2430_timer3_slaves,
459 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
460 .class = &omap2xxx_timer_hwmod_class,
464 static struct omap_hwmod omap2430_timer4_hwmod;
466 /* l4_core -> timer4 */
467 static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
468 .master = &omap2430_l4_core_hwmod,
469 .slave = &omap2430_timer4_hwmod,
471 .addr = omap2xxx_timer4_addrs,
472 .user = OCP_USER_MPU | OCP_USER_SDMA,
475 /* timer4 slave port */
476 static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
477 &omap2430_l4_core__timer4,
481 static struct omap_hwmod omap2430_timer4_hwmod = {
483 .mpu_irqs = omap2_timer4_mpu_irqs,
484 .main_clk = "gpt4_fck",
488 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
489 .module_offs = CORE_MOD,
491 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
494 .slaves = omap2430_timer4_slaves,
495 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
496 .class = &omap2xxx_timer_hwmod_class,
500 static struct omap_hwmod omap2430_timer5_hwmod;
502 /* l4_core -> timer5 */
503 static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
504 .master = &omap2430_l4_core_hwmod,
505 .slave = &omap2430_timer5_hwmod,
507 .addr = omap2xxx_timer5_addrs,
508 .user = OCP_USER_MPU | OCP_USER_SDMA,
511 /* timer5 slave port */
512 static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
513 &omap2430_l4_core__timer5,
517 static struct omap_hwmod omap2430_timer5_hwmod = {
519 .mpu_irqs = omap2_timer5_mpu_irqs,
520 .main_clk = "gpt5_fck",
524 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
525 .module_offs = CORE_MOD,
527 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
530 .slaves = omap2430_timer5_slaves,
531 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
532 .class = &omap2xxx_timer_hwmod_class,
536 static struct omap_hwmod omap2430_timer6_hwmod;
538 /* l4_core -> timer6 */
539 static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
540 .master = &omap2430_l4_core_hwmod,
541 .slave = &omap2430_timer6_hwmod,
543 .addr = omap2xxx_timer6_addrs,
544 .user = OCP_USER_MPU | OCP_USER_SDMA,
547 /* timer6 slave port */
548 static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
549 &omap2430_l4_core__timer6,
553 static struct omap_hwmod omap2430_timer6_hwmod = {
555 .mpu_irqs = omap2_timer6_mpu_irqs,
556 .main_clk = "gpt6_fck",
560 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
561 .module_offs = CORE_MOD,
563 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
566 .slaves = omap2430_timer6_slaves,
567 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
568 .class = &omap2xxx_timer_hwmod_class,
572 static struct omap_hwmod omap2430_timer7_hwmod;
574 /* l4_core -> timer7 */
575 static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
576 .master = &omap2430_l4_core_hwmod,
577 .slave = &omap2430_timer7_hwmod,
579 .addr = omap2xxx_timer7_addrs,
580 .user = OCP_USER_MPU | OCP_USER_SDMA,
583 /* timer7 slave port */
584 static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
585 &omap2430_l4_core__timer7,
589 static struct omap_hwmod omap2430_timer7_hwmod = {
591 .mpu_irqs = omap2_timer7_mpu_irqs,
592 .main_clk = "gpt7_fck",
596 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
597 .module_offs = CORE_MOD,
599 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
602 .slaves = omap2430_timer7_slaves,
603 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
604 .class = &omap2xxx_timer_hwmod_class,
608 static struct omap_hwmod omap2430_timer8_hwmod;
610 /* l4_core -> timer8 */
611 static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
612 .master = &omap2430_l4_core_hwmod,
613 .slave = &omap2430_timer8_hwmod,
615 .addr = omap2xxx_timer8_addrs,
616 .user = OCP_USER_MPU | OCP_USER_SDMA,
619 /* timer8 slave port */
620 static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
621 &omap2430_l4_core__timer8,
625 static struct omap_hwmod omap2430_timer8_hwmod = {
627 .mpu_irqs = omap2_timer8_mpu_irqs,
628 .main_clk = "gpt8_fck",
632 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
633 .module_offs = CORE_MOD,
635 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
638 .slaves = omap2430_timer8_slaves,
639 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
640 .class = &omap2xxx_timer_hwmod_class,
644 static struct omap_hwmod omap2430_timer9_hwmod;
646 /* l4_core -> timer9 */
647 static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
648 .master = &omap2430_l4_core_hwmod,
649 .slave = &omap2430_timer9_hwmod,
651 .addr = omap2xxx_timer9_addrs,
652 .user = OCP_USER_MPU | OCP_USER_SDMA,
655 /* timer9 slave port */
656 static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
657 &omap2430_l4_core__timer9,
661 static struct omap_hwmod omap2430_timer9_hwmod = {
663 .mpu_irqs = omap2_timer9_mpu_irqs,
664 .main_clk = "gpt9_fck",
668 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
669 .module_offs = CORE_MOD,
671 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
674 .slaves = omap2430_timer9_slaves,
675 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
676 .class = &omap2xxx_timer_hwmod_class,
680 static struct omap_hwmod omap2430_timer10_hwmod;
682 /* l4_core -> timer10 */
683 static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
684 .master = &omap2430_l4_core_hwmod,
685 .slave = &omap2430_timer10_hwmod,
687 .addr = omap2_timer10_addrs,
688 .user = OCP_USER_MPU | OCP_USER_SDMA,
691 /* timer10 slave port */
692 static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
693 &omap2430_l4_core__timer10,
697 static struct omap_hwmod omap2430_timer10_hwmod = {
699 .mpu_irqs = omap2_timer10_mpu_irqs,
700 .main_clk = "gpt10_fck",
704 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
705 .module_offs = CORE_MOD,
707 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
710 .slaves = omap2430_timer10_slaves,
711 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
712 .class = &omap2xxx_timer_hwmod_class,
716 static struct omap_hwmod omap2430_timer11_hwmod;
718 /* l4_core -> timer11 */
719 static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
720 .master = &omap2430_l4_core_hwmod,
721 .slave = &omap2430_timer11_hwmod,
723 .addr = omap2_timer11_addrs,
724 .user = OCP_USER_MPU | OCP_USER_SDMA,
727 /* timer11 slave port */
728 static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
729 &omap2430_l4_core__timer11,
733 static struct omap_hwmod omap2430_timer11_hwmod = {
735 .mpu_irqs = omap2_timer11_mpu_irqs,
736 .main_clk = "gpt11_fck",
740 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
741 .module_offs = CORE_MOD,
743 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
746 .slaves = omap2430_timer11_slaves,
747 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
748 .class = &omap2xxx_timer_hwmod_class,
752 static struct omap_hwmod omap2430_timer12_hwmod;
754 /* l4_core -> timer12 */
755 static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
756 .master = &omap2430_l4_core_hwmod,
757 .slave = &omap2430_timer12_hwmod,
759 .addr = omap2xxx_timer12_addrs,
760 .user = OCP_USER_MPU | OCP_USER_SDMA,
763 /* timer12 slave port */
764 static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
765 &omap2430_l4_core__timer12,
769 static struct omap_hwmod omap2430_timer12_hwmod = {
771 .mpu_irqs = omap2xxx_timer12_mpu_irqs,
772 .main_clk = "gpt12_fck",
776 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
777 .module_offs = CORE_MOD,
779 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
782 .slaves = omap2430_timer12_slaves,
783 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
784 .class = &omap2xxx_timer_hwmod_class,
787 /* l4_wkup -> wd_timer2 */
788 static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
790 .pa_start = 0x49016000,
791 .pa_end = 0x4901607f,
792 .flags = ADDR_TYPE_RT
797 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
798 .master = &omap2430_l4_wkup_hwmod,
799 .slave = &omap2430_wd_timer2_hwmod,
800 .clk = "mpu_wdt_ick",
801 .addr = omap2430_wd_timer2_addrs,
802 .user = OCP_USER_MPU | OCP_USER_SDMA,
806 static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
807 &omap2430_l4_wkup__wd_timer2,
810 static struct omap_hwmod omap2430_wd_timer2_hwmod = {
812 .class = &omap2xxx_wd_timer_hwmod_class,
813 .main_clk = "mpu_wdt_fck",
817 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
818 .module_offs = WKUP_MOD,
820 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
823 .slaves = omap2430_wd_timer2_slaves,
824 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
829 static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
830 &omap2_l4_core__uart1,
833 static struct omap_hwmod omap2430_uart1_hwmod = {
835 .mpu_irqs = omap2_uart1_mpu_irqs,
836 .sdma_reqs = omap2_uart1_sdma_reqs,
837 .main_clk = "uart1_fck",
840 .module_offs = CORE_MOD,
842 .module_bit = OMAP24XX_EN_UART1_SHIFT,
844 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
847 .slaves = omap2430_uart1_slaves,
848 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
849 .class = &omap2_uart_class,
854 static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
855 &omap2_l4_core__uart2,
858 static struct omap_hwmod omap2430_uart2_hwmod = {
860 .mpu_irqs = omap2_uart2_mpu_irqs,
861 .sdma_reqs = omap2_uart2_sdma_reqs,
862 .main_clk = "uart2_fck",
865 .module_offs = CORE_MOD,
867 .module_bit = OMAP24XX_EN_UART2_SHIFT,
869 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
872 .slaves = omap2430_uart2_slaves,
873 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
874 .class = &omap2_uart_class,
879 static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
880 &omap2_l4_core__uart3,
883 static struct omap_hwmod omap2430_uart3_hwmod = {
885 .mpu_irqs = omap2_uart3_mpu_irqs,
886 .sdma_reqs = omap2_uart3_sdma_reqs,
887 .main_clk = "uart3_fck",
890 .module_offs = CORE_MOD,
892 .module_bit = OMAP24XX_EN_UART3_SHIFT,
894 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
897 .slaves = omap2430_uart3_slaves,
898 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
899 .class = &omap2_uart_class,
903 /* dss master ports */
904 static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
909 static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
910 .master = &omap2430_l4_core_hwmod,
911 .slave = &omap2430_dss_core_hwmod,
913 .addr = omap2_dss_addrs,
914 .user = OCP_USER_MPU | OCP_USER_SDMA,
917 /* dss slave ports */
918 static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
919 &omap2430_l4_core__dss,
922 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
923 { .role = "tv_clk", .clk = "dss_54m_fck" },
924 { .role = "sys_clk", .clk = "dss2_fck" },
927 static struct omap_hwmod omap2430_dss_core_hwmod = {
929 .class = &omap2_dss_hwmod_class,
930 .main_clk = "dss1_fck", /* instead of dss_fck */
931 .sdma_reqs = omap2xxx_dss_sdma_chs,
935 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
936 .module_offs = CORE_MOD,
938 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
941 .opt_clks = dss_opt_clks,
942 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
943 .slaves = omap2430_dss_slaves,
944 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
945 .masters = omap2430_dss_masters,
946 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
947 .flags = HWMOD_NO_IDLEST,
950 /* l4_core -> dss_dispc */
951 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
952 .master = &omap2430_l4_core_hwmod,
953 .slave = &omap2430_dss_dispc_hwmod,
955 .addr = omap2_dss_dispc_addrs,
956 .user = OCP_USER_MPU | OCP_USER_SDMA,
959 /* dss_dispc slave ports */
960 static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
961 &omap2430_l4_core__dss_dispc,
964 static struct omap_hwmod omap2430_dss_dispc_hwmod = {
966 .class = &omap2_dispc_hwmod_class,
967 .mpu_irqs = omap2_dispc_irqs,
968 .main_clk = "dss1_fck",
972 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
973 .module_offs = CORE_MOD,
975 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
978 .slaves = omap2430_dss_dispc_slaves,
979 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
980 .flags = HWMOD_NO_IDLEST,
983 /* l4_core -> dss_rfbi */
984 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
985 .master = &omap2430_l4_core_hwmod,
986 .slave = &omap2430_dss_rfbi_hwmod,
988 .addr = omap2_dss_rfbi_addrs,
989 .user = OCP_USER_MPU | OCP_USER_SDMA,
992 /* dss_rfbi slave ports */
993 static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
994 &omap2430_l4_core__dss_rfbi,
997 static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
999 .class = &omap2_rfbi_hwmod_class,
1000 .main_clk = "dss1_fck",
1004 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1005 .module_offs = CORE_MOD,
1008 .slaves = omap2430_dss_rfbi_slaves,
1009 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1010 .flags = HWMOD_NO_IDLEST,
1013 /* l4_core -> dss_venc */
1014 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1015 .master = &omap2430_l4_core_hwmod,
1016 .slave = &omap2430_dss_venc_hwmod,
1017 .clk = "dss_54m_fck",
1018 .addr = omap2_dss_venc_addrs,
1019 .flags = OCPIF_SWSUP_IDLE,
1020 .user = OCP_USER_MPU | OCP_USER_SDMA,
1023 /* dss_venc slave ports */
1024 static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1025 &omap2430_l4_core__dss_venc,
1028 static struct omap_hwmod omap2430_dss_venc_hwmod = {
1030 .class = &omap2_venc_hwmod_class,
1031 .main_clk = "dss1_fck",
1035 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1036 .module_offs = CORE_MOD,
1039 .slaves = omap2430_dss_venc_slaves,
1040 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1041 .flags = HWMOD_NO_IDLEST,
1045 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1049 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1050 SYSS_HAS_RESET_STATUS),
1051 .sysc_fields = &omap_hwmod_sysc_type1,
1054 static struct omap_hwmod_class i2c_class = {
1057 .rev = OMAP_I2C_IP_VERSION_1,
1058 .reset = &omap_i2c_reset,
1061 static struct omap_i2c_dev_attr i2c_dev_attr = {
1062 .fifo_depth = 8, /* bytes */
1063 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1064 OMAP_I2C_FLAG_BUS_SHIFT_2 |
1065 OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
1070 static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1071 &omap2430_l4_core__i2c1,
1074 static struct omap_hwmod omap2430_i2c1_hwmod = {
1076 .flags = HWMOD_16BIT_REG,
1077 .mpu_irqs = omap2_i2c1_mpu_irqs,
1078 .sdma_reqs = omap2_i2c1_sdma_reqs,
1079 .main_clk = "i2chs1_fck",
1083 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1084 * I2CHS IP's do not follow the usual pattern.
1085 * prcm_reg_id alone cannot be used to program
1086 * the iclk and fclk. Needs to be handled using
1087 * additional flags when clk handling is moved
1088 * to hwmod framework.
1090 .module_offs = CORE_MOD,
1092 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1094 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1097 .slaves = omap2430_i2c1_slaves,
1098 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1099 .class = &i2c_class,
1100 .dev_attr = &i2c_dev_attr,
1105 static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1106 &omap2430_l4_core__i2c2,
1109 static struct omap_hwmod omap2430_i2c2_hwmod = {
1111 .flags = HWMOD_16BIT_REG,
1112 .mpu_irqs = omap2_i2c2_mpu_irqs,
1113 .sdma_reqs = omap2_i2c2_sdma_reqs,
1114 .main_clk = "i2chs2_fck",
1117 .module_offs = CORE_MOD,
1119 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1121 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1124 .slaves = omap2430_i2c2_slaves,
1125 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1126 .class = &i2c_class,
1127 .dev_attr = &i2c_dev_attr,
1130 /* l4_wkup -> gpio1 */
1131 static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1133 .pa_start = 0x4900C000,
1134 .pa_end = 0x4900C1ff,
1135 .flags = ADDR_TYPE_RT
1140 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1141 .master = &omap2430_l4_wkup_hwmod,
1142 .slave = &omap2430_gpio1_hwmod,
1144 .addr = omap2430_gpio1_addr_space,
1145 .user = OCP_USER_MPU | OCP_USER_SDMA,
1148 /* l4_wkup -> gpio2 */
1149 static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1151 .pa_start = 0x4900E000,
1152 .pa_end = 0x4900E1ff,
1153 .flags = ADDR_TYPE_RT
1158 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1159 .master = &omap2430_l4_wkup_hwmod,
1160 .slave = &omap2430_gpio2_hwmod,
1162 .addr = omap2430_gpio2_addr_space,
1163 .user = OCP_USER_MPU | OCP_USER_SDMA,
1166 /* l4_wkup -> gpio3 */
1167 static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1169 .pa_start = 0x49010000,
1170 .pa_end = 0x490101ff,
1171 .flags = ADDR_TYPE_RT
1176 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1177 .master = &omap2430_l4_wkup_hwmod,
1178 .slave = &omap2430_gpio3_hwmod,
1180 .addr = omap2430_gpio3_addr_space,
1181 .user = OCP_USER_MPU | OCP_USER_SDMA,
1184 /* l4_wkup -> gpio4 */
1185 static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1187 .pa_start = 0x49012000,
1188 .pa_end = 0x490121ff,
1189 .flags = ADDR_TYPE_RT
1194 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1195 .master = &omap2430_l4_wkup_hwmod,
1196 .slave = &omap2430_gpio4_hwmod,
1198 .addr = omap2430_gpio4_addr_space,
1199 .user = OCP_USER_MPU | OCP_USER_SDMA,
1202 /* l4_core -> gpio5 */
1203 static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1205 .pa_start = 0x480B6000,
1206 .pa_end = 0x480B61ff,
1207 .flags = ADDR_TYPE_RT
1212 static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1213 .master = &omap2430_l4_core_hwmod,
1214 .slave = &omap2430_gpio5_hwmod,
1216 .addr = omap2430_gpio5_addr_space,
1217 .user = OCP_USER_MPU | OCP_USER_SDMA,
1221 static struct omap_gpio_dev_attr gpio_dev_attr = {
1227 static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1228 &omap2430_l4_wkup__gpio1,
1231 static struct omap_hwmod omap2430_gpio1_hwmod = {
1233 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1234 .mpu_irqs = omap2_gpio1_irqs,
1235 .main_clk = "gpios_fck",
1239 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1240 .module_offs = WKUP_MOD,
1242 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1245 .slaves = omap2430_gpio1_slaves,
1246 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1247 .class = &omap2xxx_gpio_hwmod_class,
1248 .dev_attr = &gpio_dev_attr,
1252 static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1253 &omap2430_l4_wkup__gpio2,
1256 static struct omap_hwmod omap2430_gpio2_hwmod = {
1258 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1259 .mpu_irqs = omap2_gpio2_irqs,
1260 .main_clk = "gpios_fck",
1264 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1265 .module_offs = WKUP_MOD,
1267 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1270 .slaves = omap2430_gpio2_slaves,
1271 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1272 .class = &omap2xxx_gpio_hwmod_class,
1273 .dev_attr = &gpio_dev_attr,
1277 static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1278 &omap2430_l4_wkup__gpio3,
1281 static struct omap_hwmod omap2430_gpio3_hwmod = {
1283 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1284 .mpu_irqs = omap2_gpio3_irqs,
1285 .main_clk = "gpios_fck",
1289 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1290 .module_offs = WKUP_MOD,
1292 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1295 .slaves = omap2430_gpio3_slaves,
1296 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1297 .class = &omap2xxx_gpio_hwmod_class,
1298 .dev_attr = &gpio_dev_attr,
1302 static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1303 &omap2430_l4_wkup__gpio4,
1306 static struct omap_hwmod omap2430_gpio4_hwmod = {
1308 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1309 .mpu_irqs = omap2_gpio4_irqs,
1310 .main_clk = "gpios_fck",
1314 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1315 .module_offs = WKUP_MOD,
1317 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1320 .slaves = omap2430_gpio4_slaves,
1321 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1322 .class = &omap2xxx_gpio_hwmod_class,
1323 .dev_attr = &gpio_dev_attr,
1327 static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1328 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1332 static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1333 &omap2430_l4_core__gpio5,
1336 static struct omap_hwmod omap2430_gpio5_hwmod = {
1338 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1339 .mpu_irqs = omap243x_gpio5_irqs,
1340 .main_clk = "gpio5_fck",
1344 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1345 .module_offs = CORE_MOD,
1347 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1350 .slaves = omap2430_gpio5_slaves,
1351 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1352 .class = &omap2xxx_gpio_hwmod_class,
1353 .dev_attr = &gpio_dev_attr,
1356 /* dma attributes */
1357 static struct omap_dma_dev_attr dma_dev_attr = {
1358 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1359 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1363 /* dma_system -> L3 */
1364 static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1365 .master = &omap2430_dma_system_hwmod,
1366 .slave = &omap2430_l3_main_hwmod,
1367 .clk = "core_l3_ck",
1368 .user = OCP_USER_MPU | OCP_USER_SDMA,
1371 /* dma_system master ports */
1372 static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1373 &omap2430_dma_system__l3,
1376 /* l4_core -> dma_system */
1377 static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1378 .master = &omap2430_l4_core_hwmod,
1379 .slave = &omap2430_dma_system_hwmod,
1381 .addr = omap2_dma_system_addrs,
1382 .user = OCP_USER_MPU | OCP_USER_SDMA,
1385 /* dma_system slave ports */
1386 static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1387 &omap2430_l4_core__dma_system,
1390 static struct omap_hwmod omap2430_dma_system_hwmod = {
1392 .class = &omap2xxx_dma_hwmod_class,
1393 .mpu_irqs = omap2_dma_system_irqs,
1394 .main_clk = "core_l3_ck",
1395 .slaves = omap2430_dma_system_slaves,
1396 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1397 .masters = omap2430_dma_system_masters,
1398 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1399 .dev_attr = &dma_dev_attr,
1400 .flags = HWMOD_NO_IDLEST,
1404 static struct omap_hwmod omap2430_mailbox_hwmod;
1405 static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1410 /* l4_core -> mailbox */
1411 static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1412 .master = &omap2430_l4_core_hwmod,
1413 .slave = &omap2430_mailbox_hwmod,
1414 .addr = omap2_mailbox_addrs,
1415 .user = OCP_USER_MPU | OCP_USER_SDMA,
1418 /* mailbox slave ports */
1419 static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1420 &omap2430_l4_core__mailbox,
1423 static struct omap_hwmod omap2430_mailbox_hwmod = {
1425 .class = &omap2xxx_mailbox_hwmod_class,
1426 .mpu_irqs = omap2430_mailbox_irqs,
1427 .main_clk = "mailboxes_ick",
1431 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1432 .module_offs = CORE_MOD,
1434 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1437 .slaves = omap2430_mailbox_slaves,
1438 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1442 static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1443 &omap2430_l4_core__mcspi1,
1446 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1447 .num_chipselect = 4,
1450 static struct omap_hwmod omap2430_mcspi1_hwmod = {
1451 .name = "mcspi1_hwmod",
1452 .mpu_irqs = omap2_mcspi1_mpu_irqs,
1453 .sdma_reqs = omap2_mcspi1_sdma_reqs,
1454 .main_clk = "mcspi1_fck",
1457 .module_offs = CORE_MOD,
1459 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1461 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1464 .slaves = omap2430_mcspi1_slaves,
1465 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
1466 .class = &omap2xxx_mcspi_class,
1467 .dev_attr = &omap_mcspi1_dev_attr,
1471 static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1472 &omap2430_l4_core__mcspi2,
1475 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1476 .num_chipselect = 2,
1479 static struct omap_hwmod omap2430_mcspi2_hwmod = {
1480 .name = "mcspi2_hwmod",
1481 .mpu_irqs = omap2_mcspi2_mpu_irqs,
1482 .sdma_reqs = omap2_mcspi2_sdma_reqs,
1483 .main_clk = "mcspi2_fck",
1486 .module_offs = CORE_MOD,
1488 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1490 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1493 .slaves = omap2430_mcspi2_slaves,
1494 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
1495 .class = &omap2xxx_mcspi_class,
1496 .dev_attr = &omap_mcspi2_dev_attr,
1500 static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1505 static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1506 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1507 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1508 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1509 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
1513 static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1514 &omap2430_l4_core__mcspi3,
1517 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1518 .num_chipselect = 2,
1521 static struct omap_hwmod omap2430_mcspi3_hwmod = {
1522 .name = "mcspi3_hwmod",
1523 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
1524 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
1525 .main_clk = "mcspi3_fck",
1528 .module_offs = CORE_MOD,
1530 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1532 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1535 .slaves = omap2430_mcspi3_slaves,
1536 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
1537 .class = &omap2xxx_mcspi_class,
1538 .dev_attr = &omap_mcspi3_dev_attr,
1544 static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1546 .sysc_offs = 0x0404,
1547 .syss_offs = 0x0408,
1548 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1549 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1551 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1552 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1553 .sysc_fields = &omap_hwmod_sysc_type1,
1556 static struct omap_hwmod_class usbotg_class = {
1558 .sysc = &omap2430_usbhsotg_sysc,
1562 static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1564 { .name = "mc", .irq = 92 },
1565 { .name = "dma", .irq = 93 },
1569 static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1570 .name = "usb_otg_hs",
1571 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
1572 .main_clk = "usbhs_ick",
1576 .module_bit = OMAP2430_EN_USBHS_MASK,
1577 .module_offs = CORE_MOD,
1579 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1582 .masters = omap2430_usbhsotg_masters,
1583 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1584 .slaves = omap2430_usbhsotg_slaves,
1585 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1586 .class = &usbotg_class,
1588 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1589 * broken when autoidle is enabled
1590 * workaround is to disable the autoidle bit at module level.
1592 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1593 | HWMOD_SWSUP_MSTANDBY,
1598 * multi channel buffered serial port controller
1601 static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
1603 .sysc_offs = 0x008C,
1604 .sysc_flags = (SYSC_HAS_SOFTRESET),
1605 .sysc_fields = &omap_hwmod_sysc_type1,
1608 static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
1610 .sysc = &omap2430_mcbsp_sysc,
1611 .rev = MCBSP_CONFIG_TYPE2,
1615 static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
1616 { .name = "tx", .irq = 59 },
1617 { .name = "rx", .irq = 60 },
1618 { .name = "ovr", .irq = 61 },
1619 { .name = "common", .irq = 64 },
1623 /* l4_core -> mcbsp1 */
1624 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
1625 .master = &omap2430_l4_core_hwmod,
1626 .slave = &omap2430_mcbsp1_hwmod,
1627 .clk = "mcbsp1_ick",
1628 .addr = omap2_mcbsp1_addrs,
1629 .user = OCP_USER_MPU | OCP_USER_SDMA,
1632 /* mcbsp1 slave ports */
1633 static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
1634 &omap2430_l4_core__mcbsp1,
1637 static struct omap_hwmod omap2430_mcbsp1_hwmod = {
1639 .class = &omap2430_mcbsp_hwmod_class,
1640 .mpu_irqs = omap2430_mcbsp1_irqs,
1641 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
1642 .main_clk = "mcbsp1_fck",
1646 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
1647 .module_offs = CORE_MOD,
1649 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
1652 .slaves = omap2430_mcbsp1_slaves,
1653 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
1657 static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
1658 { .name = "tx", .irq = 62 },
1659 { .name = "rx", .irq = 63 },
1660 { .name = "common", .irq = 16 },
1664 /* l4_core -> mcbsp2 */
1665 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
1666 .master = &omap2430_l4_core_hwmod,
1667 .slave = &omap2430_mcbsp2_hwmod,
1668 .clk = "mcbsp2_ick",
1669 .addr = omap2xxx_mcbsp2_addrs,
1670 .user = OCP_USER_MPU | OCP_USER_SDMA,
1673 /* mcbsp2 slave ports */
1674 static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
1675 &omap2430_l4_core__mcbsp2,
1678 static struct omap_hwmod omap2430_mcbsp2_hwmod = {
1680 .class = &omap2430_mcbsp_hwmod_class,
1681 .mpu_irqs = omap2430_mcbsp2_irqs,
1682 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
1683 .main_clk = "mcbsp2_fck",
1687 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
1688 .module_offs = CORE_MOD,
1690 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
1693 .slaves = omap2430_mcbsp2_slaves,
1694 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
1698 static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
1699 { .name = "tx", .irq = 89 },
1700 { .name = "rx", .irq = 90 },
1701 { .name = "common", .irq = 17 },
1705 static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
1708 .pa_start = 0x4808C000,
1709 .pa_end = 0x4808C0ff,
1710 .flags = ADDR_TYPE_RT
1715 /* l4_core -> mcbsp3 */
1716 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
1717 .master = &omap2430_l4_core_hwmod,
1718 .slave = &omap2430_mcbsp3_hwmod,
1719 .clk = "mcbsp3_ick",
1720 .addr = omap2430_mcbsp3_addrs,
1721 .user = OCP_USER_MPU | OCP_USER_SDMA,
1724 /* mcbsp3 slave ports */
1725 static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
1726 &omap2430_l4_core__mcbsp3,
1729 static struct omap_hwmod omap2430_mcbsp3_hwmod = {
1731 .class = &omap2430_mcbsp_hwmod_class,
1732 .mpu_irqs = omap2430_mcbsp3_irqs,
1733 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
1734 .main_clk = "mcbsp3_fck",
1738 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
1739 .module_offs = CORE_MOD,
1741 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
1744 .slaves = omap2430_mcbsp3_slaves,
1745 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
1749 static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
1750 { .name = "tx", .irq = 54 },
1751 { .name = "rx", .irq = 55 },
1752 { .name = "common", .irq = 18 },
1756 static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
1757 { .name = "rx", .dma_req = 20 },
1758 { .name = "tx", .dma_req = 19 },
1762 static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
1765 .pa_start = 0x4808E000,
1766 .pa_end = 0x4808E0ff,
1767 .flags = ADDR_TYPE_RT
1772 /* l4_core -> mcbsp4 */
1773 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
1774 .master = &omap2430_l4_core_hwmod,
1775 .slave = &omap2430_mcbsp4_hwmod,
1776 .clk = "mcbsp4_ick",
1777 .addr = omap2430_mcbsp4_addrs,
1778 .user = OCP_USER_MPU | OCP_USER_SDMA,
1781 /* mcbsp4 slave ports */
1782 static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
1783 &omap2430_l4_core__mcbsp4,
1786 static struct omap_hwmod omap2430_mcbsp4_hwmod = {
1788 .class = &omap2430_mcbsp_hwmod_class,
1789 .mpu_irqs = omap2430_mcbsp4_irqs,
1790 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
1791 .main_clk = "mcbsp4_fck",
1795 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
1796 .module_offs = CORE_MOD,
1798 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
1801 .slaves = omap2430_mcbsp4_slaves,
1802 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
1806 static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
1807 { .name = "tx", .irq = 81 },
1808 { .name = "rx", .irq = 82 },
1809 { .name = "common", .irq = 19 },
1813 static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
1814 { .name = "rx", .dma_req = 22 },
1815 { .name = "tx", .dma_req = 21 },
1819 static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
1822 .pa_start = 0x48096000,
1823 .pa_end = 0x480960ff,
1824 .flags = ADDR_TYPE_RT
1829 /* l4_core -> mcbsp5 */
1830 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
1831 .master = &omap2430_l4_core_hwmod,
1832 .slave = &omap2430_mcbsp5_hwmod,
1833 .clk = "mcbsp5_ick",
1834 .addr = omap2430_mcbsp5_addrs,
1835 .user = OCP_USER_MPU | OCP_USER_SDMA,
1838 /* mcbsp5 slave ports */
1839 static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
1840 &omap2430_l4_core__mcbsp5,
1843 static struct omap_hwmod omap2430_mcbsp5_hwmod = {
1845 .class = &omap2430_mcbsp_hwmod_class,
1846 .mpu_irqs = omap2430_mcbsp5_irqs,
1847 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
1848 .main_clk = "mcbsp5_fck",
1852 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
1853 .module_offs = CORE_MOD,
1855 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
1858 .slaves = omap2430_mcbsp5_slaves,
1859 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
1862 /* MMC/SD/SDIO common */
1864 static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
1868 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1869 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1870 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1871 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1872 .sysc_fields = &omap_hwmod_sysc_type1,
1875 static struct omap_hwmod_class omap2430_mmc_class = {
1877 .sysc = &omap2430_mmc_sysc,
1882 static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
1887 static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
1888 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
1889 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
1893 static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
1894 { .role = "dbck", .clk = "mmchsdb1_fck" },
1897 static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
1898 &omap2430_l4_core__mmc1,
1901 static struct omap_mmc_dev_attr mmc1_dev_attr = {
1902 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1905 static struct omap_hwmod omap2430_mmc1_hwmod = {
1907 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1908 .mpu_irqs = omap2430_mmc1_mpu_irqs,
1909 .sdma_reqs = omap2430_mmc1_sdma_reqs,
1910 .opt_clks = omap2430_mmc1_opt_clks,
1911 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
1912 .main_clk = "mmchs1_fck",
1915 .module_offs = CORE_MOD,
1917 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
1919 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
1922 .dev_attr = &mmc1_dev_attr,
1923 .slaves = omap2430_mmc1_slaves,
1924 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
1925 .class = &omap2430_mmc_class,
1930 static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
1935 static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
1936 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
1937 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
1941 static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
1942 { .role = "dbck", .clk = "mmchsdb2_fck" },
1945 static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
1946 &omap2430_l4_core__mmc2,
1949 static struct omap_hwmod omap2430_mmc2_hwmod = {
1951 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1952 .mpu_irqs = omap2430_mmc2_mpu_irqs,
1953 .sdma_reqs = omap2430_mmc2_sdma_reqs,
1954 .opt_clks = omap2430_mmc2_opt_clks,
1955 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
1956 .main_clk = "mmchs2_fck",
1959 .module_offs = CORE_MOD,
1961 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
1963 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
1966 .slaves = omap2430_mmc2_slaves,
1967 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
1968 .class = &omap2430_mmc_class,
1971 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
1972 &omap2430_l3_main_hwmod,
1973 &omap2430_l4_core_hwmod,
1974 &omap2430_l4_wkup_hwmod,
1975 &omap2430_mpu_hwmod,
1976 &omap2430_iva_hwmod,
1978 &omap2430_timer1_hwmod,
1979 &omap2430_timer2_hwmod,
1980 &omap2430_timer3_hwmod,
1981 &omap2430_timer4_hwmod,
1982 &omap2430_timer5_hwmod,
1983 &omap2430_timer6_hwmod,
1984 &omap2430_timer7_hwmod,
1985 &omap2430_timer8_hwmod,
1986 &omap2430_timer9_hwmod,
1987 &omap2430_timer10_hwmod,
1988 &omap2430_timer11_hwmod,
1989 &omap2430_timer12_hwmod,
1991 &omap2430_wd_timer2_hwmod,
1992 &omap2430_uart1_hwmod,
1993 &omap2430_uart2_hwmod,
1994 &omap2430_uart3_hwmod,
1996 &omap2430_dss_core_hwmod,
1997 &omap2430_dss_dispc_hwmod,
1998 &omap2430_dss_rfbi_hwmod,
1999 &omap2430_dss_venc_hwmod,
2001 &omap2430_i2c1_hwmod,
2002 &omap2430_i2c2_hwmod,
2003 &omap2430_mmc1_hwmod,
2004 &omap2430_mmc2_hwmod,
2007 &omap2430_gpio1_hwmod,
2008 &omap2430_gpio2_hwmod,
2009 &omap2430_gpio3_hwmod,
2010 &omap2430_gpio4_hwmod,
2011 &omap2430_gpio5_hwmod,
2013 /* dma_system class*/
2014 &omap2430_dma_system_hwmod,
2017 &omap2430_mcbsp1_hwmod,
2018 &omap2430_mcbsp2_hwmod,
2019 &omap2430_mcbsp3_hwmod,
2020 &omap2430_mcbsp4_hwmod,
2021 &omap2430_mcbsp5_hwmod,
2024 &omap2430_mailbox_hwmod,
2027 &omap2430_mcspi1_hwmod,
2028 &omap2430_mcspi2_hwmod,
2029 &omap2430_mcspi3_hwmod,
2032 &omap2430_usbhsotg_hwmod,
2037 int __init omap2430_hwmod_init(void)
2039 return omap_hwmod_register(omap2430_hwmods);