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 /* I2C IP block address space length (in bytes) */
135 #define OMAP2_I2C_AS_LEN 128
137 /* L4 CORE -> I2C1 interface */
138 static struct omap_hwmod_addr_space omap2430_i2c1_addr_space[] = {
140 .pa_start = 0x48070000,
141 .pa_end = 0x48070000 + OMAP2_I2C_AS_LEN - 1,
142 .flags = ADDR_TYPE_RT,
147 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
148 .master = &omap2430_l4_core_hwmod,
149 .slave = &omap2430_i2c1_hwmod,
151 .addr = omap2430_i2c1_addr_space,
152 .user = OCP_USER_MPU | OCP_USER_SDMA,
155 /* L4 CORE -> I2C2 interface */
156 static struct omap_hwmod_addr_space omap2430_i2c2_addr_space[] = {
158 .pa_start = 0x48072000,
159 .pa_end = 0x48072000 + OMAP2_I2C_AS_LEN - 1,
160 .flags = ADDR_TYPE_RT,
165 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
166 .master = &omap2430_l4_core_hwmod,
167 .slave = &omap2430_i2c2_hwmod,
169 .addr = omap2430_i2c2_addr_space,
170 .user = OCP_USER_MPU | OCP_USER_SDMA,
173 /* L4_CORE -> L4_WKUP interface */
174 static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
175 .master = &omap2430_l4_core_hwmod,
176 .slave = &omap2430_l4_wkup_hwmod,
177 .user = OCP_USER_MPU | OCP_USER_SDMA,
180 /* L4 CORE -> UART1 interface */
181 static struct omap_hwmod_addr_space omap2430_uart1_addr_space[] = {
183 .pa_start = OMAP2_UART1_BASE,
184 .pa_end = OMAP2_UART1_BASE + SZ_8K - 1,
185 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
190 static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
191 .master = &omap2430_l4_core_hwmod,
192 .slave = &omap2430_uart1_hwmod,
194 .addr = omap2430_uart1_addr_space,
195 .user = OCP_USER_MPU | OCP_USER_SDMA,
198 /* L4 CORE -> UART2 interface */
199 static struct omap_hwmod_addr_space omap2430_uart2_addr_space[] = {
201 .pa_start = OMAP2_UART2_BASE,
202 .pa_end = OMAP2_UART2_BASE + SZ_1K - 1,
203 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
208 static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
209 .master = &omap2430_l4_core_hwmod,
210 .slave = &omap2430_uart2_hwmod,
212 .addr = omap2430_uart2_addr_space,
213 .user = OCP_USER_MPU | OCP_USER_SDMA,
216 /* L4 PER -> UART3 interface */
217 static struct omap_hwmod_addr_space omap2430_uart3_addr_space[] = {
219 .pa_start = OMAP2_UART3_BASE,
220 .pa_end = OMAP2_UART3_BASE + SZ_1K - 1,
221 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
226 static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
227 .master = &omap2430_l4_core_hwmod,
228 .slave = &omap2430_uart3_hwmod,
230 .addr = omap2430_uart3_addr_space,
231 .user = OCP_USER_MPU | OCP_USER_SDMA,
235 * usbhsotg interface data
237 static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
239 .pa_start = OMAP243X_HS_BASE,
240 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
241 .flags = ADDR_TYPE_RT
245 /* l4_core ->usbhsotg interface */
246 static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
247 .master = &omap2430_l4_core_hwmod,
248 .slave = &omap2430_usbhsotg_hwmod,
250 .addr = omap2430_usbhsotg_addrs,
251 .user = OCP_USER_MPU,
254 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
255 &omap2430_usbhsotg__l3,
258 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
259 &omap2430_l4_core__usbhsotg,
262 /* L4 CORE -> MMC1 interface */
263 static struct omap_hwmod_addr_space omap2430_mmc1_addr_space[] = {
265 .pa_start = 0x4809c000,
266 .pa_end = 0x4809c1ff,
267 .flags = ADDR_TYPE_RT,
272 static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
273 .master = &omap2430_l4_core_hwmod,
274 .slave = &omap2430_mmc1_hwmod,
276 .addr = omap2430_mmc1_addr_space,
277 .user = OCP_USER_MPU | OCP_USER_SDMA,
280 /* L4 CORE -> MMC2 interface */
281 static struct omap_hwmod_addr_space omap2430_mmc2_addr_space[] = {
283 .pa_start = 0x480b4000,
284 .pa_end = 0x480b41ff,
285 .flags = ADDR_TYPE_RT,
290 static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
291 .master = &omap2430_l4_core_hwmod,
292 .slave = &omap2430_mmc2_hwmod,
294 .addr = omap2430_mmc2_addr_space,
295 .user = OCP_USER_MPU | OCP_USER_SDMA,
298 /* Slave interfaces on the L4_CORE interconnect */
299 static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
300 &omap2430_l3_main__l4_core,
303 /* Master interfaces on the L4_CORE interconnect */
304 static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
305 &omap2430_l4_core__l4_wkup,
306 &omap2430_l4_core__mmc1,
307 &omap2430_l4_core__mmc2,
311 static struct omap_hwmod omap2430_l4_core_hwmod = {
313 .class = &l4_hwmod_class,
314 .masters = omap2430_l4_core_masters,
315 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
316 .slaves = omap2430_l4_core_slaves,
317 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
318 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
319 .flags = HWMOD_NO_IDLEST,
322 /* Slave interfaces on the L4_WKUP interconnect */
323 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
324 &omap2430_l4_core__l4_wkup,
325 &omap2_l4_core__uart1,
326 &omap2_l4_core__uart2,
327 &omap2_l4_core__uart3,
330 /* Master interfaces on the L4_WKUP interconnect */
331 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
334 /* l4 core -> mcspi1 interface */
335 static struct omap_hwmod_addr_space omap2430_mcspi1_addr_space[] = {
337 .pa_start = 0x48098000,
338 .pa_end = 0x480980ff,
339 .flags = ADDR_TYPE_RT,
344 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
345 .master = &omap2430_l4_core_hwmod,
346 .slave = &omap2430_mcspi1_hwmod,
348 .addr = omap2430_mcspi1_addr_space,
349 .user = OCP_USER_MPU | OCP_USER_SDMA,
352 /* l4 core -> mcspi2 interface */
353 static struct omap_hwmod_addr_space omap2430_mcspi2_addr_space[] = {
355 .pa_start = 0x4809a000,
356 .pa_end = 0x4809a0ff,
357 .flags = ADDR_TYPE_RT,
362 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
363 .master = &omap2430_l4_core_hwmod,
364 .slave = &omap2430_mcspi2_hwmod,
366 .addr = omap2430_mcspi2_addr_space,
367 .user = OCP_USER_MPU | OCP_USER_SDMA,
370 /* l4 core -> mcspi3 interface */
371 static struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[] = {
373 .pa_start = 0x480b8000,
374 .pa_end = 0x480b80ff,
375 .flags = ADDR_TYPE_RT,
380 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
381 .master = &omap2430_l4_core_hwmod,
382 .slave = &omap2430_mcspi3_hwmod,
384 .addr = omap2430_mcspi3_addr_space,
385 .user = OCP_USER_MPU | OCP_USER_SDMA,
389 static struct omap_hwmod omap2430_l4_wkup_hwmod = {
391 .class = &l4_hwmod_class,
392 .masters = omap2430_l4_wkup_masters,
393 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
394 .slaves = omap2430_l4_wkup_slaves,
395 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
396 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
397 .flags = HWMOD_NO_IDLEST,
400 /* Master interfaces on the MPU device */
401 static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
402 &omap2430_mpu__l3_main,
406 static struct omap_hwmod omap2430_mpu_hwmod = {
408 .class = &mpu_hwmod_class,
409 .main_clk = "mpu_ck",
410 .masters = omap2430_mpu_masters,
411 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
412 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
416 * IVA2_1 interface data
419 /* IVA2 <- L3 interface */
420 static struct omap_hwmod_ocp_if omap2430_l3__iva = {
421 .master = &omap2430_l3_main_hwmod,
422 .slave = &omap2430_iva_hwmod,
424 .user = OCP_USER_MPU | OCP_USER_SDMA,
427 static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
435 static struct omap_hwmod omap2430_iva_hwmod = {
437 .class = &iva_hwmod_class,
438 .masters = omap2430_iva_masters,
439 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
440 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
444 static struct omap_hwmod_class_sysconfig omap2430_timer_sysc = {
448 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
449 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
451 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
452 .sysc_fields = &omap_hwmod_sysc_type1,
455 static struct omap_hwmod_class omap2430_timer_hwmod_class = {
457 .sysc = &omap2430_timer_sysc,
458 .rev = OMAP_TIMER_IP_VERSION_1,
462 static struct omap_hwmod omap2430_timer1_hwmod;
463 static struct omap_hwmod_irq_info omap2430_timer1_mpu_irqs[] = {
467 static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
469 .pa_start = 0x49018000,
470 .pa_end = 0x49018000 + SZ_1K - 1,
471 .flags = ADDR_TYPE_RT
476 /* l4_wkup -> timer1 */
477 static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
478 .master = &omap2430_l4_wkup_hwmod,
479 .slave = &omap2430_timer1_hwmod,
481 .addr = omap2430_timer1_addrs,
482 .user = OCP_USER_MPU | OCP_USER_SDMA,
485 /* timer1 slave port */
486 static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
487 &omap2430_l4_wkup__timer1,
491 static struct omap_hwmod omap2430_timer1_hwmod = {
493 .mpu_irqs = omap2430_timer1_mpu_irqs,
494 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer1_mpu_irqs),
495 .main_clk = "gpt1_fck",
499 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
500 .module_offs = WKUP_MOD,
502 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
505 .slaves = omap2430_timer1_slaves,
506 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
507 .class = &omap2430_timer_hwmod_class,
508 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
512 static struct omap_hwmod omap2430_timer2_hwmod;
513 static struct omap_hwmod_irq_info omap2430_timer2_mpu_irqs[] = {
517 static struct omap_hwmod_addr_space omap2430_timer2_addrs[] = {
519 .pa_start = 0x4802a000,
520 .pa_end = 0x4802a000 + SZ_1K - 1,
521 .flags = ADDR_TYPE_RT
526 /* l4_core -> timer2 */
527 static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
528 .master = &omap2430_l4_core_hwmod,
529 .slave = &omap2430_timer2_hwmod,
531 .addr = omap2430_timer2_addrs,
532 .user = OCP_USER_MPU | OCP_USER_SDMA,
535 /* timer2 slave port */
536 static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
537 &omap2430_l4_core__timer2,
541 static struct omap_hwmod omap2430_timer2_hwmod = {
543 .mpu_irqs = omap2430_timer2_mpu_irqs,
544 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer2_mpu_irqs),
545 .main_clk = "gpt2_fck",
549 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
550 .module_offs = CORE_MOD,
552 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
555 .slaves = omap2430_timer2_slaves,
556 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
557 .class = &omap2430_timer_hwmod_class,
558 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
562 static struct omap_hwmod omap2430_timer3_hwmod;
563 static struct omap_hwmod_irq_info omap2430_timer3_mpu_irqs[] = {
567 static struct omap_hwmod_addr_space omap2430_timer3_addrs[] = {
569 .pa_start = 0x48078000,
570 .pa_end = 0x48078000 + SZ_1K - 1,
571 .flags = ADDR_TYPE_RT
576 /* l4_core -> timer3 */
577 static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
578 .master = &omap2430_l4_core_hwmod,
579 .slave = &omap2430_timer3_hwmod,
581 .addr = omap2430_timer3_addrs,
582 .user = OCP_USER_MPU | OCP_USER_SDMA,
585 /* timer3 slave port */
586 static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
587 &omap2430_l4_core__timer3,
591 static struct omap_hwmod omap2430_timer3_hwmod = {
593 .mpu_irqs = omap2430_timer3_mpu_irqs,
594 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer3_mpu_irqs),
595 .main_clk = "gpt3_fck",
599 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
600 .module_offs = CORE_MOD,
602 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
605 .slaves = omap2430_timer3_slaves,
606 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
607 .class = &omap2430_timer_hwmod_class,
608 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
612 static struct omap_hwmod omap2430_timer4_hwmod;
613 static struct omap_hwmod_irq_info omap2430_timer4_mpu_irqs[] = {
617 static struct omap_hwmod_addr_space omap2430_timer4_addrs[] = {
619 .pa_start = 0x4807a000,
620 .pa_end = 0x4807a000 + SZ_1K - 1,
621 .flags = ADDR_TYPE_RT
626 /* l4_core -> timer4 */
627 static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
628 .master = &omap2430_l4_core_hwmod,
629 .slave = &omap2430_timer4_hwmod,
631 .addr = omap2430_timer4_addrs,
632 .user = OCP_USER_MPU | OCP_USER_SDMA,
635 /* timer4 slave port */
636 static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
637 &omap2430_l4_core__timer4,
641 static struct omap_hwmod omap2430_timer4_hwmod = {
643 .mpu_irqs = omap2430_timer4_mpu_irqs,
644 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer4_mpu_irqs),
645 .main_clk = "gpt4_fck",
649 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
650 .module_offs = CORE_MOD,
652 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
655 .slaves = omap2430_timer4_slaves,
656 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
657 .class = &omap2430_timer_hwmod_class,
658 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
662 static struct omap_hwmod omap2430_timer5_hwmod;
663 static struct omap_hwmod_irq_info omap2430_timer5_mpu_irqs[] = {
667 static struct omap_hwmod_addr_space omap2430_timer5_addrs[] = {
669 .pa_start = 0x4807c000,
670 .pa_end = 0x4807c000 + SZ_1K - 1,
671 .flags = ADDR_TYPE_RT
676 /* l4_core -> timer5 */
677 static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
678 .master = &omap2430_l4_core_hwmod,
679 .slave = &omap2430_timer5_hwmod,
681 .addr = omap2430_timer5_addrs,
682 .user = OCP_USER_MPU | OCP_USER_SDMA,
685 /* timer5 slave port */
686 static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
687 &omap2430_l4_core__timer5,
691 static struct omap_hwmod omap2430_timer5_hwmod = {
693 .mpu_irqs = omap2430_timer5_mpu_irqs,
694 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer5_mpu_irqs),
695 .main_clk = "gpt5_fck",
699 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
700 .module_offs = CORE_MOD,
702 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
705 .slaves = omap2430_timer5_slaves,
706 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
707 .class = &omap2430_timer_hwmod_class,
708 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
712 static struct omap_hwmod omap2430_timer6_hwmod;
713 static struct omap_hwmod_irq_info omap2430_timer6_mpu_irqs[] = {
717 static struct omap_hwmod_addr_space omap2430_timer6_addrs[] = {
719 .pa_start = 0x4807e000,
720 .pa_end = 0x4807e000 + SZ_1K - 1,
721 .flags = ADDR_TYPE_RT
726 /* l4_core -> timer6 */
727 static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
728 .master = &omap2430_l4_core_hwmod,
729 .slave = &omap2430_timer6_hwmod,
731 .addr = omap2430_timer6_addrs,
732 .user = OCP_USER_MPU | OCP_USER_SDMA,
735 /* timer6 slave port */
736 static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
737 &omap2430_l4_core__timer6,
741 static struct omap_hwmod omap2430_timer6_hwmod = {
743 .mpu_irqs = omap2430_timer6_mpu_irqs,
744 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer6_mpu_irqs),
745 .main_clk = "gpt6_fck",
749 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
750 .module_offs = CORE_MOD,
752 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
755 .slaves = omap2430_timer6_slaves,
756 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
757 .class = &omap2430_timer_hwmod_class,
758 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
762 static struct omap_hwmod omap2430_timer7_hwmod;
763 static struct omap_hwmod_irq_info omap2430_timer7_mpu_irqs[] = {
767 static struct omap_hwmod_addr_space omap2430_timer7_addrs[] = {
769 .pa_start = 0x48080000,
770 .pa_end = 0x48080000 + SZ_1K - 1,
771 .flags = ADDR_TYPE_RT
776 /* l4_core -> timer7 */
777 static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
778 .master = &omap2430_l4_core_hwmod,
779 .slave = &omap2430_timer7_hwmod,
781 .addr = omap2430_timer7_addrs,
782 .user = OCP_USER_MPU | OCP_USER_SDMA,
785 /* timer7 slave port */
786 static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
787 &omap2430_l4_core__timer7,
791 static struct omap_hwmod omap2430_timer7_hwmod = {
793 .mpu_irqs = omap2430_timer7_mpu_irqs,
794 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer7_mpu_irqs),
795 .main_clk = "gpt7_fck",
799 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
800 .module_offs = CORE_MOD,
802 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
805 .slaves = omap2430_timer7_slaves,
806 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
807 .class = &omap2430_timer_hwmod_class,
808 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
812 static struct omap_hwmod omap2430_timer8_hwmod;
813 static struct omap_hwmod_irq_info omap2430_timer8_mpu_irqs[] = {
817 static struct omap_hwmod_addr_space omap2430_timer8_addrs[] = {
819 .pa_start = 0x48082000,
820 .pa_end = 0x48082000 + SZ_1K - 1,
821 .flags = ADDR_TYPE_RT
826 /* l4_core -> timer8 */
827 static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
828 .master = &omap2430_l4_core_hwmod,
829 .slave = &omap2430_timer8_hwmod,
831 .addr = omap2430_timer8_addrs,
832 .user = OCP_USER_MPU | OCP_USER_SDMA,
835 /* timer8 slave port */
836 static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
837 &omap2430_l4_core__timer8,
841 static struct omap_hwmod omap2430_timer8_hwmod = {
843 .mpu_irqs = omap2430_timer8_mpu_irqs,
844 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer8_mpu_irqs),
845 .main_clk = "gpt8_fck",
849 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
850 .module_offs = CORE_MOD,
852 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
855 .slaves = omap2430_timer8_slaves,
856 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
857 .class = &omap2430_timer_hwmod_class,
858 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
862 static struct omap_hwmod omap2430_timer9_hwmod;
863 static struct omap_hwmod_irq_info omap2430_timer9_mpu_irqs[] = {
867 static struct omap_hwmod_addr_space omap2430_timer9_addrs[] = {
869 .pa_start = 0x48084000,
870 .pa_end = 0x48084000 + SZ_1K - 1,
871 .flags = ADDR_TYPE_RT
876 /* l4_core -> timer9 */
877 static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
878 .master = &omap2430_l4_core_hwmod,
879 .slave = &omap2430_timer9_hwmod,
881 .addr = omap2430_timer9_addrs,
882 .user = OCP_USER_MPU | OCP_USER_SDMA,
885 /* timer9 slave port */
886 static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
887 &omap2430_l4_core__timer9,
891 static struct omap_hwmod omap2430_timer9_hwmod = {
893 .mpu_irqs = omap2430_timer9_mpu_irqs,
894 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer9_mpu_irqs),
895 .main_clk = "gpt9_fck",
899 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
900 .module_offs = CORE_MOD,
902 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
905 .slaves = omap2430_timer9_slaves,
906 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
907 .class = &omap2430_timer_hwmod_class,
908 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
912 static struct omap_hwmod omap2430_timer10_hwmod;
913 static struct omap_hwmod_irq_info omap2430_timer10_mpu_irqs[] = {
917 static struct omap_hwmod_addr_space omap2430_timer10_addrs[] = {
919 .pa_start = 0x48086000,
920 .pa_end = 0x48086000 + SZ_1K - 1,
921 .flags = ADDR_TYPE_RT
926 /* l4_core -> timer10 */
927 static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
928 .master = &omap2430_l4_core_hwmod,
929 .slave = &omap2430_timer10_hwmod,
931 .addr = omap2430_timer10_addrs,
932 .user = OCP_USER_MPU | OCP_USER_SDMA,
935 /* timer10 slave port */
936 static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
937 &omap2430_l4_core__timer10,
941 static struct omap_hwmod omap2430_timer10_hwmod = {
943 .mpu_irqs = omap2430_timer10_mpu_irqs,
944 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer10_mpu_irqs),
945 .main_clk = "gpt10_fck",
949 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
950 .module_offs = CORE_MOD,
952 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
955 .slaves = omap2430_timer10_slaves,
956 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
957 .class = &omap2430_timer_hwmod_class,
958 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
962 static struct omap_hwmod omap2430_timer11_hwmod;
963 static struct omap_hwmod_irq_info omap2430_timer11_mpu_irqs[] = {
967 static struct omap_hwmod_addr_space omap2430_timer11_addrs[] = {
969 .pa_start = 0x48088000,
970 .pa_end = 0x48088000 + SZ_1K - 1,
971 .flags = ADDR_TYPE_RT
976 /* l4_core -> timer11 */
977 static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
978 .master = &omap2430_l4_core_hwmod,
979 .slave = &omap2430_timer11_hwmod,
981 .addr = omap2430_timer11_addrs,
982 .user = OCP_USER_MPU | OCP_USER_SDMA,
985 /* timer11 slave port */
986 static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
987 &omap2430_l4_core__timer11,
991 static struct omap_hwmod omap2430_timer11_hwmod = {
993 .mpu_irqs = omap2430_timer11_mpu_irqs,
994 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer11_mpu_irqs),
995 .main_clk = "gpt11_fck",
999 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
1000 .module_offs = CORE_MOD,
1002 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
1005 .slaves = omap2430_timer11_slaves,
1006 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
1007 .class = &omap2430_timer_hwmod_class,
1008 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1012 static struct omap_hwmod omap2430_timer12_hwmod;
1013 static struct omap_hwmod_irq_info omap2430_timer12_mpu_irqs[] = {
1017 static struct omap_hwmod_addr_space omap2430_timer12_addrs[] = {
1019 .pa_start = 0x4808a000,
1020 .pa_end = 0x4808a000 + SZ_1K - 1,
1021 .flags = ADDR_TYPE_RT
1026 /* l4_core -> timer12 */
1027 static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
1028 .master = &omap2430_l4_core_hwmod,
1029 .slave = &omap2430_timer12_hwmod,
1031 .addr = omap2430_timer12_addrs,
1032 .user = OCP_USER_MPU | OCP_USER_SDMA,
1035 /* timer12 slave port */
1036 static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
1037 &omap2430_l4_core__timer12,
1041 static struct omap_hwmod omap2430_timer12_hwmod = {
1043 .mpu_irqs = omap2430_timer12_mpu_irqs,
1044 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer12_mpu_irqs),
1045 .main_clk = "gpt12_fck",
1049 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
1050 .module_offs = CORE_MOD,
1052 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
1055 .slaves = omap2430_timer12_slaves,
1056 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
1057 .class = &omap2430_timer_hwmod_class,
1058 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1061 /* l4_wkup -> wd_timer2 */
1062 static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
1064 .pa_start = 0x49016000,
1065 .pa_end = 0x4901607f,
1066 .flags = ADDR_TYPE_RT
1071 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
1072 .master = &omap2430_l4_wkup_hwmod,
1073 .slave = &omap2430_wd_timer2_hwmod,
1074 .clk = "mpu_wdt_ick",
1075 .addr = omap2430_wd_timer2_addrs,
1076 .user = OCP_USER_MPU | OCP_USER_SDMA,
1081 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1082 * overflow condition
1085 static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
1087 .sysc_offs = 0x0010,
1088 .syss_offs = 0x0014,
1089 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
1090 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1091 .sysc_fields = &omap_hwmod_sysc_type1,
1094 static struct omap_hwmod_class omap2430_wd_timer_hwmod_class = {
1096 .sysc = &omap2430_wd_timer_sysc,
1097 .pre_shutdown = &omap2_wd_timer_disable
1101 static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
1102 &omap2430_l4_wkup__wd_timer2,
1105 static struct omap_hwmod omap2430_wd_timer2_hwmod = {
1106 .name = "wd_timer2",
1107 .class = &omap2430_wd_timer_hwmod_class,
1108 .main_clk = "mpu_wdt_fck",
1112 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
1113 .module_offs = WKUP_MOD,
1115 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
1118 .slaves = omap2430_wd_timer2_slaves,
1119 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
1120 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1125 static struct omap_hwmod_class_sysconfig uart_sysc = {
1129 .sysc_flags = (SYSC_HAS_SIDLEMODE |
1130 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1131 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1132 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1133 .sysc_fields = &omap_hwmod_sysc_type1,
1136 static struct omap_hwmod_class uart_class = {
1143 static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
1144 { .irq = INT_24XX_UART1_IRQ, },
1147 static struct omap_hwmod_dma_info uart1_sdma_reqs[] = {
1148 { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
1149 { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
1152 static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
1153 &omap2_l4_core__uart1,
1156 static struct omap_hwmod omap2430_uart1_hwmod = {
1158 .mpu_irqs = uart1_mpu_irqs,
1159 .mpu_irqs_cnt = ARRAY_SIZE(uart1_mpu_irqs),
1160 .sdma_reqs = uart1_sdma_reqs,
1161 .sdma_reqs_cnt = ARRAY_SIZE(uart1_sdma_reqs),
1162 .main_clk = "uart1_fck",
1165 .module_offs = CORE_MOD,
1167 .module_bit = OMAP24XX_EN_UART1_SHIFT,
1169 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
1172 .slaves = omap2430_uart1_slaves,
1173 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
1174 .class = &uart_class,
1175 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1180 static struct omap_hwmod_irq_info uart2_mpu_irqs[] = {
1181 { .irq = INT_24XX_UART2_IRQ, },
1184 static struct omap_hwmod_dma_info uart2_sdma_reqs[] = {
1185 { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
1186 { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
1189 static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
1190 &omap2_l4_core__uart2,
1193 static struct omap_hwmod omap2430_uart2_hwmod = {
1195 .mpu_irqs = uart2_mpu_irqs,
1196 .mpu_irqs_cnt = ARRAY_SIZE(uart2_mpu_irqs),
1197 .sdma_reqs = uart2_sdma_reqs,
1198 .sdma_reqs_cnt = ARRAY_SIZE(uart2_sdma_reqs),
1199 .main_clk = "uart2_fck",
1202 .module_offs = CORE_MOD,
1204 .module_bit = OMAP24XX_EN_UART2_SHIFT,
1206 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
1209 .slaves = omap2430_uart2_slaves,
1210 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
1211 .class = &uart_class,
1212 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1217 static struct omap_hwmod_irq_info uart3_mpu_irqs[] = {
1218 { .irq = INT_24XX_UART3_IRQ, },
1221 static struct omap_hwmod_dma_info uart3_sdma_reqs[] = {
1222 { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
1223 { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
1226 static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
1227 &omap2_l4_core__uart3,
1230 static struct omap_hwmod omap2430_uart3_hwmod = {
1232 .mpu_irqs = uart3_mpu_irqs,
1233 .mpu_irqs_cnt = ARRAY_SIZE(uart3_mpu_irqs),
1234 .sdma_reqs = uart3_sdma_reqs,
1235 .sdma_reqs_cnt = ARRAY_SIZE(uart3_sdma_reqs),
1236 .main_clk = "uart3_fck",
1239 .module_offs = CORE_MOD,
1241 .module_bit = OMAP24XX_EN_UART3_SHIFT,
1243 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
1246 .slaves = omap2430_uart3_slaves,
1247 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
1248 .class = &uart_class,
1249 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1254 * display sub-system
1257 static struct omap_hwmod_class_sysconfig omap2430_dss_sysc = {
1259 .sysc_offs = 0x0010,
1260 .syss_offs = 0x0014,
1261 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1262 .sysc_fields = &omap_hwmod_sysc_type1,
1265 static struct omap_hwmod_class omap2430_dss_hwmod_class = {
1267 .sysc = &omap2430_dss_sysc,
1270 static struct omap_hwmod_dma_info omap2430_dss_sdma_chs[] = {
1271 { .name = "dispc", .dma_req = 5 },
1275 /* dss master ports */
1276 static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
1280 static struct omap_hwmod_addr_space omap2430_dss_addrs[] = {
1282 .pa_start = 0x48050000,
1283 .pa_end = 0x480503FF,
1284 .flags = ADDR_TYPE_RT
1289 /* l4_core -> dss */
1290 static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
1291 .master = &omap2430_l4_core_hwmod,
1292 .slave = &omap2430_dss_core_hwmod,
1294 .addr = omap2430_dss_addrs,
1295 .user = OCP_USER_MPU | OCP_USER_SDMA,
1298 /* dss slave ports */
1299 static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
1300 &omap2430_l4_core__dss,
1303 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1304 { .role = "tv_clk", .clk = "dss_54m_fck" },
1305 { .role = "sys_clk", .clk = "dss2_fck" },
1308 static struct omap_hwmod omap2430_dss_core_hwmod = {
1310 .class = &omap2430_dss_hwmod_class,
1311 .main_clk = "dss1_fck", /* instead of dss_fck */
1312 .sdma_reqs = omap2430_dss_sdma_chs,
1313 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_dss_sdma_chs),
1317 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1318 .module_offs = CORE_MOD,
1320 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1323 .opt_clks = dss_opt_clks,
1324 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1325 .slaves = omap2430_dss_slaves,
1326 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
1327 .masters = omap2430_dss_masters,
1328 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
1329 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1330 .flags = HWMOD_NO_IDLEST,
1335 * display controller
1338 static struct omap_hwmod_class_sysconfig omap2430_dispc_sysc = {
1340 .sysc_offs = 0x0010,
1341 .syss_offs = 0x0014,
1342 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1343 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1344 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1345 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1346 .sysc_fields = &omap_hwmod_sysc_type1,
1349 static struct omap_hwmod_class omap2430_dispc_hwmod_class = {
1351 .sysc = &omap2430_dispc_sysc,
1354 static struct omap_hwmod_irq_info omap2430_dispc_irqs[] = {
1358 static struct omap_hwmod_addr_space omap2430_dss_dispc_addrs[] = {
1360 .pa_start = 0x48050400,
1361 .pa_end = 0x480507FF,
1362 .flags = ADDR_TYPE_RT
1367 /* l4_core -> dss_dispc */
1368 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
1369 .master = &omap2430_l4_core_hwmod,
1370 .slave = &omap2430_dss_dispc_hwmod,
1372 .addr = omap2430_dss_dispc_addrs,
1373 .user = OCP_USER_MPU | OCP_USER_SDMA,
1376 /* dss_dispc slave ports */
1377 static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
1378 &omap2430_l4_core__dss_dispc,
1381 static struct omap_hwmod omap2430_dss_dispc_hwmod = {
1382 .name = "dss_dispc",
1383 .class = &omap2430_dispc_hwmod_class,
1384 .mpu_irqs = omap2430_dispc_irqs,
1385 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_dispc_irqs),
1386 .main_clk = "dss1_fck",
1390 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1391 .module_offs = CORE_MOD,
1393 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1396 .slaves = omap2430_dss_dispc_slaves,
1397 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1398 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1399 .flags = HWMOD_NO_IDLEST,
1404 * remote frame buffer interface
1407 static struct omap_hwmod_class_sysconfig omap2430_rfbi_sysc = {
1409 .sysc_offs = 0x0010,
1410 .syss_offs = 0x0014,
1411 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1413 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1414 .sysc_fields = &omap_hwmod_sysc_type1,
1417 static struct omap_hwmod_class omap2430_rfbi_hwmod_class = {
1419 .sysc = &omap2430_rfbi_sysc,
1422 static struct omap_hwmod_addr_space omap2430_dss_rfbi_addrs[] = {
1424 .pa_start = 0x48050800,
1425 .pa_end = 0x48050BFF,
1426 .flags = ADDR_TYPE_RT
1431 /* l4_core -> dss_rfbi */
1432 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1433 .master = &omap2430_l4_core_hwmod,
1434 .slave = &omap2430_dss_rfbi_hwmod,
1436 .addr = omap2430_dss_rfbi_addrs,
1437 .user = OCP_USER_MPU | OCP_USER_SDMA,
1440 /* dss_rfbi slave ports */
1441 static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1442 &omap2430_l4_core__dss_rfbi,
1445 static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1447 .class = &omap2430_rfbi_hwmod_class,
1448 .main_clk = "dss1_fck",
1452 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1453 .module_offs = CORE_MOD,
1456 .slaves = omap2430_dss_rfbi_slaves,
1457 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1458 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1459 .flags = HWMOD_NO_IDLEST,
1467 static struct omap_hwmod_class omap2430_venc_hwmod_class = {
1472 static struct omap_hwmod_addr_space omap2430_dss_venc_addrs[] = {
1474 .pa_start = 0x48050C00,
1475 .pa_end = 0x48050FFF,
1476 .flags = ADDR_TYPE_RT
1481 /* l4_core -> dss_venc */
1482 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1483 .master = &omap2430_l4_core_hwmod,
1484 .slave = &omap2430_dss_venc_hwmod,
1485 .clk = "dss_54m_fck",
1486 .addr = omap2430_dss_venc_addrs,
1487 .flags = OCPIF_SWSUP_IDLE,
1488 .user = OCP_USER_MPU | OCP_USER_SDMA,
1491 /* dss_venc slave ports */
1492 static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1493 &omap2430_l4_core__dss_venc,
1496 static struct omap_hwmod omap2430_dss_venc_hwmod = {
1498 .class = &omap2430_venc_hwmod_class,
1499 .main_clk = "dss1_fck",
1503 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1504 .module_offs = CORE_MOD,
1507 .slaves = omap2430_dss_venc_slaves,
1508 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1509 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1510 .flags = HWMOD_NO_IDLEST,
1514 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1518 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1519 SYSS_HAS_RESET_STATUS),
1520 .sysc_fields = &omap_hwmod_sysc_type1,
1523 static struct omap_hwmod_class i2c_class = {
1528 static struct omap_i2c_dev_attr i2c_dev_attr = {
1529 .fifo_depth = 8, /* bytes */
1534 static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
1535 { .irq = INT_24XX_I2C1_IRQ, },
1538 static struct omap_hwmod_dma_info i2c1_sdma_reqs[] = {
1539 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
1540 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
1543 static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1544 &omap2430_l4_core__i2c1,
1547 static struct omap_hwmod omap2430_i2c1_hwmod = {
1549 .mpu_irqs = i2c1_mpu_irqs,
1550 .mpu_irqs_cnt = ARRAY_SIZE(i2c1_mpu_irqs),
1551 .sdma_reqs = i2c1_sdma_reqs,
1552 .sdma_reqs_cnt = ARRAY_SIZE(i2c1_sdma_reqs),
1553 .main_clk = "i2chs1_fck",
1557 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1558 * I2CHS IP's do not follow the usual pattern.
1559 * prcm_reg_id alone cannot be used to program
1560 * the iclk and fclk. Needs to be handled using
1561 * additional flags when clk handling is moved
1562 * to hwmod framework.
1564 .module_offs = CORE_MOD,
1566 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1568 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1571 .slaves = omap2430_i2c1_slaves,
1572 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1573 .class = &i2c_class,
1574 .dev_attr = &i2c_dev_attr,
1575 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1580 static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
1581 { .irq = INT_24XX_I2C2_IRQ, },
1584 static struct omap_hwmod_dma_info i2c2_sdma_reqs[] = {
1585 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
1586 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
1589 static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1590 &omap2430_l4_core__i2c2,
1593 static struct omap_hwmod omap2430_i2c2_hwmod = {
1595 .mpu_irqs = i2c2_mpu_irqs,
1596 .mpu_irqs_cnt = ARRAY_SIZE(i2c2_mpu_irqs),
1597 .sdma_reqs = i2c2_sdma_reqs,
1598 .sdma_reqs_cnt = ARRAY_SIZE(i2c2_sdma_reqs),
1599 .main_clk = "i2chs2_fck",
1602 .module_offs = CORE_MOD,
1604 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1606 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1609 .slaves = omap2430_i2c2_slaves,
1610 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1611 .class = &i2c_class,
1612 .dev_attr = &i2c_dev_attr,
1613 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1616 /* l4_wkup -> gpio1 */
1617 static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1619 .pa_start = 0x4900C000,
1620 .pa_end = 0x4900C1ff,
1621 .flags = ADDR_TYPE_RT
1626 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1627 .master = &omap2430_l4_wkup_hwmod,
1628 .slave = &omap2430_gpio1_hwmod,
1630 .addr = omap2430_gpio1_addr_space,
1631 .user = OCP_USER_MPU | OCP_USER_SDMA,
1634 /* l4_wkup -> gpio2 */
1635 static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1637 .pa_start = 0x4900E000,
1638 .pa_end = 0x4900E1ff,
1639 .flags = ADDR_TYPE_RT
1644 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1645 .master = &omap2430_l4_wkup_hwmod,
1646 .slave = &omap2430_gpio2_hwmod,
1648 .addr = omap2430_gpio2_addr_space,
1649 .user = OCP_USER_MPU | OCP_USER_SDMA,
1652 /* l4_wkup -> gpio3 */
1653 static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1655 .pa_start = 0x49010000,
1656 .pa_end = 0x490101ff,
1657 .flags = ADDR_TYPE_RT
1662 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1663 .master = &omap2430_l4_wkup_hwmod,
1664 .slave = &omap2430_gpio3_hwmod,
1666 .addr = omap2430_gpio3_addr_space,
1667 .user = OCP_USER_MPU | OCP_USER_SDMA,
1670 /* l4_wkup -> gpio4 */
1671 static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1673 .pa_start = 0x49012000,
1674 .pa_end = 0x490121ff,
1675 .flags = ADDR_TYPE_RT
1680 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1681 .master = &omap2430_l4_wkup_hwmod,
1682 .slave = &omap2430_gpio4_hwmod,
1684 .addr = omap2430_gpio4_addr_space,
1685 .user = OCP_USER_MPU | OCP_USER_SDMA,
1688 /* l4_core -> gpio5 */
1689 static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1691 .pa_start = 0x480B6000,
1692 .pa_end = 0x480B61ff,
1693 .flags = ADDR_TYPE_RT
1698 static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1699 .master = &omap2430_l4_core_hwmod,
1700 .slave = &omap2430_gpio5_hwmod,
1702 .addr = omap2430_gpio5_addr_space,
1703 .user = OCP_USER_MPU | OCP_USER_SDMA,
1707 static struct omap_gpio_dev_attr gpio_dev_attr = {
1712 static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
1714 .sysc_offs = 0x0010,
1715 .syss_offs = 0x0014,
1716 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1717 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1718 SYSS_HAS_RESET_STATUS),
1719 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1720 .sysc_fields = &omap_hwmod_sysc_type1,
1725 * general purpose io module
1727 static struct omap_hwmod_class omap243x_gpio_hwmod_class = {
1729 .sysc = &omap243x_gpio_sysc,
1734 static struct omap_hwmod_irq_info omap243x_gpio1_irqs[] = {
1735 { .irq = 29 }, /* INT_24XX_GPIO_BANK1 */
1738 static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1739 &omap2430_l4_wkup__gpio1,
1742 static struct omap_hwmod omap2430_gpio1_hwmod = {
1744 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1745 .mpu_irqs = omap243x_gpio1_irqs,
1746 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio1_irqs),
1747 .main_clk = "gpios_fck",
1751 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1752 .module_offs = WKUP_MOD,
1754 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1757 .slaves = omap2430_gpio1_slaves,
1758 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1759 .class = &omap243x_gpio_hwmod_class,
1760 .dev_attr = &gpio_dev_attr,
1761 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1765 static struct omap_hwmod_irq_info omap243x_gpio2_irqs[] = {
1766 { .irq = 30 }, /* INT_24XX_GPIO_BANK2 */
1769 static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1770 &omap2430_l4_wkup__gpio2,
1773 static struct omap_hwmod omap2430_gpio2_hwmod = {
1775 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1776 .mpu_irqs = omap243x_gpio2_irqs,
1777 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio2_irqs),
1778 .main_clk = "gpios_fck",
1782 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1783 .module_offs = WKUP_MOD,
1785 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1788 .slaves = omap2430_gpio2_slaves,
1789 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1790 .class = &omap243x_gpio_hwmod_class,
1791 .dev_attr = &gpio_dev_attr,
1792 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1796 static struct omap_hwmod_irq_info omap243x_gpio3_irqs[] = {
1797 { .irq = 31 }, /* INT_24XX_GPIO_BANK3 */
1800 static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1801 &omap2430_l4_wkup__gpio3,
1804 static struct omap_hwmod omap2430_gpio3_hwmod = {
1806 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1807 .mpu_irqs = omap243x_gpio3_irqs,
1808 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio3_irqs),
1809 .main_clk = "gpios_fck",
1813 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1814 .module_offs = WKUP_MOD,
1816 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1819 .slaves = omap2430_gpio3_slaves,
1820 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1821 .class = &omap243x_gpio_hwmod_class,
1822 .dev_attr = &gpio_dev_attr,
1823 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1827 static struct omap_hwmod_irq_info omap243x_gpio4_irqs[] = {
1828 { .irq = 32 }, /* INT_24XX_GPIO_BANK4 */
1831 static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1832 &omap2430_l4_wkup__gpio4,
1835 static struct omap_hwmod omap2430_gpio4_hwmod = {
1837 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1838 .mpu_irqs = omap243x_gpio4_irqs,
1839 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio4_irqs),
1840 .main_clk = "gpios_fck",
1844 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1845 .module_offs = WKUP_MOD,
1847 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1850 .slaves = omap2430_gpio4_slaves,
1851 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1852 .class = &omap243x_gpio_hwmod_class,
1853 .dev_attr = &gpio_dev_attr,
1854 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1858 static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1859 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1862 static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1863 &omap2430_l4_core__gpio5,
1866 static struct omap_hwmod omap2430_gpio5_hwmod = {
1868 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1869 .mpu_irqs = omap243x_gpio5_irqs,
1870 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio5_irqs),
1871 .main_clk = "gpio5_fck",
1875 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1876 .module_offs = CORE_MOD,
1878 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1881 .slaves = omap2430_gpio5_slaves,
1882 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1883 .class = &omap243x_gpio_hwmod_class,
1884 .dev_attr = &gpio_dev_attr,
1885 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1889 static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
1891 .sysc_offs = 0x002c,
1892 .syss_offs = 0x0028,
1893 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
1894 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
1895 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1896 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1897 .sysc_fields = &omap_hwmod_sysc_type1,
1900 static struct omap_hwmod_class omap2430_dma_hwmod_class = {
1902 .sysc = &omap2430_dma_sysc,
1905 /* dma attributes */
1906 static struct omap_dma_dev_attr dma_dev_attr = {
1907 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1908 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1912 static struct omap_hwmod_irq_info omap2430_dma_system_irqs[] = {
1913 { .name = "0", .irq = 12 }, /* INT_24XX_SDMA_IRQ0 */
1914 { .name = "1", .irq = 13 }, /* INT_24XX_SDMA_IRQ1 */
1915 { .name = "2", .irq = 14 }, /* INT_24XX_SDMA_IRQ2 */
1916 { .name = "3", .irq = 15 }, /* INT_24XX_SDMA_IRQ3 */
1919 static struct omap_hwmod_addr_space omap2430_dma_system_addrs[] = {
1921 .pa_start = 0x48056000,
1922 .pa_end = 0x48056fff,
1923 .flags = ADDR_TYPE_RT
1928 /* dma_system -> L3 */
1929 static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1930 .master = &omap2430_dma_system_hwmod,
1931 .slave = &omap2430_l3_main_hwmod,
1932 .clk = "core_l3_ck",
1933 .user = OCP_USER_MPU | OCP_USER_SDMA,
1936 /* dma_system master ports */
1937 static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1938 &omap2430_dma_system__l3,
1941 /* l4_core -> dma_system */
1942 static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1943 .master = &omap2430_l4_core_hwmod,
1944 .slave = &omap2430_dma_system_hwmod,
1946 .addr = omap2430_dma_system_addrs,
1947 .user = OCP_USER_MPU | OCP_USER_SDMA,
1950 /* dma_system slave ports */
1951 static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1952 &omap2430_l4_core__dma_system,
1955 static struct omap_hwmod omap2430_dma_system_hwmod = {
1957 .class = &omap2430_dma_hwmod_class,
1958 .mpu_irqs = omap2430_dma_system_irqs,
1959 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_dma_system_irqs),
1960 .main_clk = "core_l3_ck",
1961 .slaves = omap2430_dma_system_slaves,
1962 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1963 .masters = omap2430_dma_system_masters,
1964 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1965 .dev_attr = &dma_dev_attr,
1966 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1967 .flags = HWMOD_NO_IDLEST,
1972 * mailbox module allowing communication between the on-chip processors
1973 * using a queued mailbox-interrupt mechanism.
1976 static struct omap_hwmod_class_sysconfig omap2430_mailbox_sysc = {
1980 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1981 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1982 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1983 .sysc_fields = &omap_hwmod_sysc_type1,
1986 static struct omap_hwmod_class omap2430_mailbox_hwmod_class = {
1988 .sysc = &omap2430_mailbox_sysc,
1992 static struct omap_hwmod omap2430_mailbox_hwmod;
1993 static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1997 static struct omap_hwmod_addr_space omap2430_mailbox_addrs[] = {
1999 .pa_start = 0x48094000,
2000 .pa_end = 0x480941ff,
2001 .flags = ADDR_TYPE_RT,
2006 /* l4_core -> mailbox */
2007 static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
2008 .master = &omap2430_l4_core_hwmod,
2009 .slave = &omap2430_mailbox_hwmod,
2010 .addr = omap2430_mailbox_addrs,
2011 .user = OCP_USER_MPU | OCP_USER_SDMA,
2014 /* mailbox slave ports */
2015 static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
2016 &omap2430_l4_core__mailbox,
2019 static struct omap_hwmod omap2430_mailbox_hwmod = {
2021 .class = &omap2430_mailbox_hwmod_class,
2022 .mpu_irqs = omap2430_mailbox_irqs,
2023 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mailbox_irqs),
2024 .main_clk = "mailboxes_ick",
2028 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
2029 .module_offs = CORE_MOD,
2031 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
2034 .slaves = omap2430_mailbox_slaves,
2035 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
2036 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2041 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2045 static struct omap_hwmod_class_sysconfig omap2430_mcspi_sysc = {
2047 .sysc_offs = 0x0010,
2048 .syss_offs = 0x0014,
2049 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2050 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2051 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2052 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2053 .sysc_fields = &omap_hwmod_sysc_type1,
2056 static struct omap_hwmod_class omap2430_mcspi_class = {
2058 .sysc = &omap2430_mcspi_sysc,
2059 .rev = OMAP2_MCSPI_REV,
2063 static struct omap_hwmod_irq_info omap2430_mcspi1_mpu_irqs[] = {
2067 static struct omap_hwmod_dma_info omap2430_mcspi1_sdma_reqs[] = {
2068 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
2069 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
2070 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
2071 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
2072 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
2073 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
2074 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
2075 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
2078 static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
2079 &omap2430_l4_core__mcspi1,
2082 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
2083 .num_chipselect = 4,
2086 static struct omap_hwmod omap2430_mcspi1_hwmod = {
2087 .name = "mcspi1_hwmod",
2088 .mpu_irqs = omap2430_mcspi1_mpu_irqs,
2089 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi1_mpu_irqs),
2090 .sdma_reqs = omap2430_mcspi1_sdma_reqs,
2091 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi1_sdma_reqs),
2092 .main_clk = "mcspi1_fck",
2095 .module_offs = CORE_MOD,
2097 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
2099 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
2102 .slaves = omap2430_mcspi1_slaves,
2103 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
2104 .class = &omap2430_mcspi_class,
2105 .dev_attr = &omap_mcspi1_dev_attr,
2106 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2110 static struct omap_hwmod_irq_info omap2430_mcspi2_mpu_irqs[] = {
2114 static struct omap_hwmod_dma_info omap2430_mcspi2_sdma_reqs[] = {
2115 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
2116 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
2117 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
2118 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
2121 static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
2122 &omap2430_l4_core__mcspi2,
2125 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
2126 .num_chipselect = 2,
2129 static struct omap_hwmod omap2430_mcspi2_hwmod = {
2130 .name = "mcspi2_hwmod",
2131 .mpu_irqs = omap2430_mcspi2_mpu_irqs,
2132 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi2_mpu_irqs),
2133 .sdma_reqs = omap2430_mcspi2_sdma_reqs,
2134 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi2_sdma_reqs),
2135 .main_clk = "mcspi2_fck",
2138 .module_offs = CORE_MOD,
2140 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
2142 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
2145 .slaves = omap2430_mcspi2_slaves,
2146 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
2147 .class = &omap2430_mcspi_class,
2148 .dev_attr = &omap_mcspi2_dev_attr,
2149 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2153 static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
2157 static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
2158 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
2159 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
2160 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
2161 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
2164 static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
2165 &omap2430_l4_core__mcspi3,
2168 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
2169 .num_chipselect = 2,
2172 static struct omap_hwmod omap2430_mcspi3_hwmod = {
2173 .name = "mcspi3_hwmod",
2174 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
2175 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi3_mpu_irqs),
2176 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
2177 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi3_sdma_reqs),
2178 .main_clk = "mcspi3_fck",
2181 .module_offs = CORE_MOD,
2183 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
2185 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
2188 .slaves = omap2430_mcspi3_slaves,
2189 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
2190 .class = &omap2430_mcspi_class,
2191 .dev_attr = &omap_mcspi3_dev_attr,
2192 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2198 static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
2200 .sysc_offs = 0x0404,
2201 .syss_offs = 0x0408,
2202 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
2203 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2205 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2206 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
2207 .sysc_fields = &omap_hwmod_sysc_type1,
2210 static struct omap_hwmod_class usbotg_class = {
2212 .sysc = &omap2430_usbhsotg_sysc,
2216 static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
2218 { .name = "mc", .irq = 92 },
2219 { .name = "dma", .irq = 93 },
2222 static struct omap_hwmod omap2430_usbhsotg_hwmod = {
2223 .name = "usb_otg_hs",
2224 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
2225 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_usbhsotg_mpu_irqs),
2226 .main_clk = "usbhs_ick",
2230 .module_bit = OMAP2430_EN_USBHS_MASK,
2231 .module_offs = CORE_MOD,
2233 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
2236 .masters = omap2430_usbhsotg_masters,
2237 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
2238 .slaves = omap2430_usbhsotg_slaves,
2239 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
2240 .class = &usbotg_class,
2242 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
2243 * broken when autoidle is enabled
2244 * workaround is to disable the autoidle bit at module level.
2246 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
2247 | HWMOD_SWSUP_MSTANDBY,
2248 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
2253 * multi channel buffered serial port controller
2256 static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
2258 .sysc_offs = 0x008C,
2259 .sysc_flags = (SYSC_HAS_SOFTRESET),
2260 .sysc_fields = &omap_hwmod_sysc_type1,
2263 static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
2265 .sysc = &omap2430_mcbsp_sysc,
2266 .rev = MCBSP_CONFIG_TYPE2,
2270 static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
2271 { .name = "tx", .irq = 59 },
2272 { .name = "rx", .irq = 60 },
2273 { .name = "ovr", .irq = 61 },
2274 { .name = "common", .irq = 64 },
2277 static struct omap_hwmod_dma_info omap2430_mcbsp1_sdma_chs[] = {
2278 { .name = "rx", .dma_req = 32 },
2279 { .name = "tx", .dma_req = 31 },
2282 static struct omap_hwmod_addr_space omap2430_mcbsp1_addrs[] = {
2285 .pa_start = 0x48074000,
2286 .pa_end = 0x480740ff,
2287 .flags = ADDR_TYPE_RT
2292 /* l4_core -> mcbsp1 */
2293 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
2294 .master = &omap2430_l4_core_hwmod,
2295 .slave = &omap2430_mcbsp1_hwmod,
2296 .clk = "mcbsp1_ick",
2297 .addr = omap2430_mcbsp1_addrs,
2298 .user = OCP_USER_MPU | OCP_USER_SDMA,
2301 /* mcbsp1 slave ports */
2302 static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
2303 &omap2430_l4_core__mcbsp1,
2306 static struct omap_hwmod omap2430_mcbsp1_hwmod = {
2308 .class = &omap2430_mcbsp_hwmod_class,
2309 .mpu_irqs = omap2430_mcbsp1_irqs,
2310 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp1_irqs),
2311 .sdma_reqs = omap2430_mcbsp1_sdma_chs,
2312 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp1_sdma_chs),
2313 .main_clk = "mcbsp1_fck",
2317 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
2318 .module_offs = CORE_MOD,
2320 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
2323 .slaves = omap2430_mcbsp1_slaves,
2324 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
2325 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2329 static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
2330 { .name = "tx", .irq = 62 },
2331 { .name = "rx", .irq = 63 },
2332 { .name = "common", .irq = 16 },
2335 static struct omap_hwmod_dma_info omap2430_mcbsp2_sdma_chs[] = {
2336 { .name = "rx", .dma_req = 34 },
2337 { .name = "tx", .dma_req = 33 },
2340 static struct omap_hwmod_addr_space omap2430_mcbsp2_addrs[] = {
2343 .pa_start = 0x48076000,
2344 .pa_end = 0x480760ff,
2345 .flags = ADDR_TYPE_RT
2350 /* l4_core -> mcbsp2 */
2351 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
2352 .master = &omap2430_l4_core_hwmod,
2353 .slave = &omap2430_mcbsp2_hwmod,
2354 .clk = "mcbsp2_ick",
2355 .addr = omap2430_mcbsp2_addrs,
2356 .user = OCP_USER_MPU | OCP_USER_SDMA,
2359 /* mcbsp2 slave ports */
2360 static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
2361 &omap2430_l4_core__mcbsp2,
2364 static struct omap_hwmod omap2430_mcbsp2_hwmod = {
2366 .class = &omap2430_mcbsp_hwmod_class,
2367 .mpu_irqs = omap2430_mcbsp2_irqs,
2368 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp2_irqs),
2369 .sdma_reqs = omap2430_mcbsp2_sdma_chs,
2370 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp2_sdma_chs),
2371 .main_clk = "mcbsp2_fck",
2375 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
2376 .module_offs = CORE_MOD,
2378 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
2381 .slaves = omap2430_mcbsp2_slaves,
2382 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
2383 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2387 static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
2388 { .name = "tx", .irq = 89 },
2389 { .name = "rx", .irq = 90 },
2390 { .name = "common", .irq = 17 },
2393 static struct omap_hwmod_dma_info omap2430_mcbsp3_sdma_chs[] = {
2394 { .name = "rx", .dma_req = 18 },
2395 { .name = "tx", .dma_req = 17 },
2398 static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
2401 .pa_start = 0x4808C000,
2402 .pa_end = 0x4808C0ff,
2403 .flags = ADDR_TYPE_RT
2408 /* l4_core -> mcbsp3 */
2409 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
2410 .master = &omap2430_l4_core_hwmod,
2411 .slave = &omap2430_mcbsp3_hwmod,
2412 .clk = "mcbsp3_ick",
2413 .addr = omap2430_mcbsp3_addrs,
2414 .user = OCP_USER_MPU | OCP_USER_SDMA,
2417 /* mcbsp3 slave ports */
2418 static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
2419 &omap2430_l4_core__mcbsp3,
2422 static struct omap_hwmod omap2430_mcbsp3_hwmod = {
2424 .class = &omap2430_mcbsp_hwmod_class,
2425 .mpu_irqs = omap2430_mcbsp3_irqs,
2426 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp3_irqs),
2427 .sdma_reqs = omap2430_mcbsp3_sdma_chs,
2428 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp3_sdma_chs),
2429 .main_clk = "mcbsp3_fck",
2433 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
2434 .module_offs = CORE_MOD,
2436 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
2439 .slaves = omap2430_mcbsp3_slaves,
2440 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
2441 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2445 static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
2446 { .name = "tx", .irq = 54 },
2447 { .name = "rx", .irq = 55 },
2448 { .name = "common", .irq = 18 },
2451 static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
2452 { .name = "rx", .dma_req = 20 },
2453 { .name = "tx", .dma_req = 19 },
2456 static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
2459 .pa_start = 0x4808E000,
2460 .pa_end = 0x4808E0ff,
2461 .flags = ADDR_TYPE_RT
2466 /* l4_core -> mcbsp4 */
2467 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
2468 .master = &omap2430_l4_core_hwmod,
2469 .slave = &omap2430_mcbsp4_hwmod,
2470 .clk = "mcbsp4_ick",
2471 .addr = omap2430_mcbsp4_addrs,
2472 .user = OCP_USER_MPU | OCP_USER_SDMA,
2475 /* mcbsp4 slave ports */
2476 static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
2477 &omap2430_l4_core__mcbsp4,
2480 static struct omap_hwmod omap2430_mcbsp4_hwmod = {
2482 .class = &omap2430_mcbsp_hwmod_class,
2483 .mpu_irqs = omap2430_mcbsp4_irqs,
2484 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp4_irqs),
2485 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
2486 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp4_sdma_chs),
2487 .main_clk = "mcbsp4_fck",
2491 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
2492 .module_offs = CORE_MOD,
2494 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
2497 .slaves = omap2430_mcbsp4_slaves,
2498 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
2499 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2503 static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
2504 { .name = "tx", .irq = 81 },
2505 { .name = "rx", .irq = 82 },
2506 { .name = "common", .irq = 19 },
2509 static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
2510 { .name = "rx", .dma_req = 22 },
2511 { .name = "tx", .dma_req = 21 },
2514 static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
2517 .pa_start = 0x48096000,
2518 .pa_end = 0x480960ff,
2519 .flags = ADDR_TYPE_RT
2524 /* l4_core -> mcbsp5 */
2525 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
2526 .master = &omap2430_l4_core_hwmod,
2527 .slave = &omap2430_mcbsp5_hwmod,
2528 .clk = "mcbsp5_ick",
2529 .addr = omap2430_mcbsp5_addrs,
2530 .user = OCP_USER_MPU | OCP_USER_SDMA,
2533 /* mcbsp5 slave ports */
2534 static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
2535 &omap2430_l4_core__mcbsp5,
2538 static struct omap_hwmod omap2430_mcbsp5_hwmod = {
2540 .class = &omap2430_mcbsp_hwmod_class,
2541 .mpu_irqs = omap2430_mcbsp5_irqs,
2542 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp5_irqs),
2543 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
2544 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp5_sdma_chs),
2545 .main_clk = "mcbsp5_fck",
2549 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
2550 .module_offs = CORE_MOD,
2552 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
2555 .slaves = omap2430_mcbsp5_slaves,
2556 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
2557 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2560 /* MMC/SD/SDIO common */
2562 static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
2566 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2567 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2568 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2569 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2570 .sysc_fields = &omap_hwmod_sysc_type1,
2573 static struct omap_hwmod_class omap2430_mmc_class = {
2575 .sysc = &omap2430_mmc_sysc,
2580 static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
2584 static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
2585 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
2586 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
2589 static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
2590 { .role = "dbck", .clk = "mmchsdb1_fck" },
2593 static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
2594 &omap2430_l4_core__mmc1,
2597 static struct omap_mmc_dev_attr mmc1_dev_attr = {
2598 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2601 static struct omap_hwmod omap2430_mmc1_hwmod = {
2603 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2604 .mpu_irqs = omap2430_mmc1_mpu_irqs,
2605 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mmc1_mpu_irqs),
2606 .sdma_reqs = omap2430_mmc1_sdma_reqs,
2607 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mmc1_sdma_reqs),
2608 .opt_clks = omap2430_mmc1_opt_clks,
2609 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
2610 .main_clk = "mmchs1_fck",
2613 .module_offs = CORE_MOD,
2615 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
2617 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
2620 .dev_attr = &mmc1_dev_attr,
2621 .slaves = omap2430_mmc1_slaves,
2622 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
2623 .class = &omap2430_mmc_class,
2624 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2629 static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
2633 static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
2634 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
2635 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
2638 static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
2639 { .role = "dbck", .clk = "mmchsdb2_fck" },
2642 static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
2643 &omap2430_l4_core__mmc2,
2646 static struct omap_hwmod omap2430_mmc2_hwmod = {
2648 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2649 .mpu_irqs = omap2430_mmc2_mpu_irqs,
2650 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mmc2_mpu_irqs),
2651 .sdma_reqs = omap2430_mmc2_sdma_reqs,
2652 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mmc2_sdma_reqs),
2653 .opt_clks = omap2430_mmc2_opt_clks,
2654 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
2655 .main_clk = "mmchs2_fck",
2658 .module_offs = CORE_MOD,
2660 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2662 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2665 .slaves = omap2430_mmc2_slaves,
2666 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2667 .class = &omap2430_mmc_class,
2668 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2671 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
2672 &omap2430_l3_main_hwmod,
2673 &omap2430_l4_core_hwmod,
2674 &omap2430_l4_wkup_hwmod,
2675 &omap2430_mpu_hwmod,
2676 &omap2430_iva_hwmod,
2678 &omap2430_timer1_hwmod,
2679 &omap2430_timer2_hwmod,
2680 &omap2430_timer3_hwmod,
2681 &omap2430_timer4_hwmod,
2682 &omap2430_timer5_hwmod,
2683 &omap2430_timer6_hwmod,
2684 &omap2430_timer7_hwmod,
2685 &omap2430_timer8_hwmod,
2686 &omap2430_timer9_hwmod,
2687 &omap2430_timer10_hwmod,
2688 &omap2430_timer11_hwmod,
2689 &omap2430_timer12_hwmod,
2691 &omap2430_wd_timer2_hwmod,
2692 &omap2430_uart1_hwmod,
2693 &omap2430_uart2_hwmod,
2694 &omap2430_uart3_hwmod,
2696 &omap2430_dss_core_hwmod,
2697 &omap2430_dss_dispc_hwmod,
2698 &omap2430_dss_rfbi_hwmod,
2699 &omap2430_dss_venc_hwmod,
2701 &omap2430_i2c1_hwmod,
2702 &omap2430_i2c2_hwmod,
2703 &omap2430_mmc1_hwmod,
2704 &omap2430_mmc2_hwmod,
2707 &omap2430_gpio1_hwmod,
2708 &omap2430_gpio2_hwmod,
2709 &omap2430_gpio3_hwmod,
2710 &omap2430_gpio4_hwmod,
2711 &omap2430_gpio5_hwmod,
2713 /* dma_system class*/
2714 &omap2430_dma_system_hwmod,
2717 &omap2430_mcbsp1_hwmod,
2718 &omap2430_mcbsp2_hwmod,
2719 &omap2430_mcbsp3_hwmod,
2720 &omap2430_mcbsp4_hwmod,
2721 &omap2430_mcbsp5_hwmod,
2724 &omap2430_mailbox_hwmod,
2727 &omap2430_mcspi1_hwmod,
2728 &omap2430_mcspi2_hwmod,
2729 &omap2430_mcspi3_hwmod,
2732 &omap2430_usbhsotg_hwmod,
2737 int __init omap2430_hwmod_init(void)
2739 return omap_hwmod_register(omap2430_hwmods);