2 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
4 * Copyright (C) 2009-2010 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/mcspi.h>
22 #include <plat/dmtimer.h>
23 #include <plat/l3_2xxx.h>
25 #include "omap_hwmod_common_data.h"
27 #include "prm-regbits-24xx.h"
28 #include "cm-regbits-24xx.h"
32 * OMAP2430 hardware module integration data
34 * ALl of the data in this section should be autogeneratable from the
35 * TI hardware database or other technical documentation. Data that
36 * is driver-specific or driver-kernel integration-specific belongs
40 static struct omap_hwmod omap2430_mpu_hwmod;
41 static struct omap_hwmod omap2430_iva_hwmod;
42 static struct omap_hwmod omap2430_l3_main_hwmod;
43 static struct omap_hwmod omap2430_l4_core_hwmod;
44 static struct omap_hwmod omap2430_dss_core_hwmod;
45 static struct omap_hwmod omap2430_dss_dispc_hwmod;
46 static struct omap_hwmod omap2430_dss_rfbi_hwmod;
47 static struct omap_hwmod omap2430_dss_venc_hwmod;
48 static struct omap_hwmod omap2430_wd_timer2_hwmod;
49 static struct omap_hwmod omap2430_gpio1_hwmod;
50 static struct omap_hwmod omap2430_gpio2_hwmod;
51 static struct omap_hwmod omap2430_gpio3_hwmod;
52 static struct omap_hwmod omap2430_gpio4_hwmod;
53 static struct omap_hwmod omap2430_gpio5_hwmod;
54 static struct omap_hwmod omap2430_dma_system_hwmod;
55 static struct omap_hwmod omap2430_mcspi1_hwmod;
56 static struct omap_hwmod omap2430_mcspi2_hwmod;
57 static struct omap_hwmod omap2430_mcspi3_hwmod;
59 /* L3 -> L4_CORE interface */
60 static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
61 .master = &omap2430_l3_main_hwmod,
62 .slave = &omap2430_l4_core_hwmod,
63 .user = OCP_USER_MPU | OCP_USER_SDMA,
66 /* MPU -> L3 interface */
67 static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
68 .master = &omap2430_mpu_hwmod,
69 .slave = &omap2430_l3_main_hwmod,
73 /* Slave interfaces on the L3 interconnect */
74 static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
75 &omap2430_mpu__l3_main,
79 static struct omap_hwmod_ocp_if omap2430_dss__l3 = {
80 .master = &omap2430_dss_core_hwmod,
81 .slave = &omap2430_l3_main_hwmod,
84 .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
85 .flags = OMAP_FIREWALL_L3,
88 .user = OCP_USER_MPU | OCP_USER_SDMA,
91 /* Master interfaces on the L3 interconnect */
92 static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
93 &omap2430_l3_main__l4_core,
97 static struct omap_hwmod omap2430_l3_main_hwmod = {
99 .class = &l3_hwmod_class,
100 .masters = omap2430_l3_main_masters,
101 .masters_cnt = ARRAY_SIZE(omap2430_l3_main_masters),
102 .slaves = omap2430_l3_main_slaves,
103 .slaves_cnt = ARRAY_SIZE(omap2430_l3_main_slaves),
104 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
105 .flags = HWMOD_NO_IDLEST,
108 static struct omap_hwmod omap2430_l4_wkup_hwmod;
109 static struct omap_hwmod omap2430_uart1_hwmod;
110 static struct omap_hwmod omap2430_uart2_hwmod;
111 static struct omap_hwmod omap2430_uart3_hwmod;
112 static struct omap_hwmod omap2430_i2c1_hwmod;
113 static struct omap_hwmod omap2430_i2c2_hwmod;
115 static struct omap_hwmod omap2430_usbhsotg_hwmod;
117 /* l3_core -> usbhsotg interface */
118 static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
119 .master = &omap2430_usbhsotg_hwmod,
120 .slave = &omap2430_l3_main_hwmod,
122 .user = OCP_USER_MPU,
125 /* I2C IP block address space length (in bytes) */
126 #define OMAP2_I2C_AS_LEN 128
128 /* L4 CORE -> I2C1 interface */
129 static struct omap_hwmod_addr_space omap2430_i2c1_addr_space[] = {
131 .pa_start = 0x48070000,
132 .pa_end = 0x48070000 + OMAP2_I2C_AS_LEN - 1,
133 .flags = ADDR_TYPE_RT,
137 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
138 .master = &omap2430_l4_core_hwmod,
139 .slave = &omap2430_i2c1_hwmod,
141 .addr = omap2430_i2c1_addr_space,
142 .addr_cnt = ARRAY_SIZE(omap2430_i2c1_addr_space),
143 .user = OCP_USER_MPU | OCP_USER_SDMA,
146 /* L4 CORE -> I2C2 interface */
147 static struct omap_hwmod_addr_space omap2430_i2c2_addr_space[] = {
149 .pa_start = 0x48072000,
150 .pa_end = 0x48072000 + OMAP2_I2C_AS_LEN - 1,
151 .flags = ADDR_TYPE_RT,
155 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
156 .master = &omap2430_l4_core_hwmod,
157 .slave = &omap2430_i2c2_hwmod,
159 .addr = omap2430_i2c2_addr_space,
160 .addr_cnt = ARRAY_SIZE(omap2430_i2c2_addr_space),
161 .user = OCP_USER_MPU | OCP_USER_SDMA,
164 /* L4_CORE -> L4_WKUP interface */
165 static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
166 .master = &omap2430_l4_core_hwmod,
167 .slave = &omap2430_l4_wkup_hwmod,
168 .user = OCP_USER_MPU | OCP_USER_SDMA,
171 /* L4 CORE -> UART1 interface */
172 static struct omap_hwmod_addr_space omap2430_uart1_addr_space[] = {
174 .pa_start = OMAP2_UART1_BASE,
175 .pa_end = OMAP2_UART1_BASE + SZ_8K - 1,
176 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
180 static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
181 .master = &omap2430_l4_core_hwmod,
182 .slave = &omap2430_uart1_hwmod,
184 .addr = omap2430_uart1_addr_space,
185 .addr_cnt = ARRAY_SIZE(omap2430_uart1_addr_space),
186 .user = OCP_USER_MPU | OCP_USER_SDMA,
189 /* L4 CORE -> UART2 interface */
190 static struct omap_hwmod_addr_space omap2430_uart2_addr_space[] = {
192 .pa_start = OMAP2_UART2_BASE,
193 .pa_end = OMAP2_UART2_BASE + SZ_1K - 1,
194 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
198 static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
199 .master = &omap2430_l4_core_hwmod,
200 .slave = &omap2430_uart2_hwmod,
202 .addr = omap2430_uart2_addr_space,
203 .addr_cnt = ARRAY_SIZE(omap2430_uart2_addr_space),
204 .user = OCP_USER_MPU | OCP_USER_SDMA,
207 /* L4 PER -> UART3 interface */
208 static struct omap_hwmod_addr_space omap2430_uart3_addr_space[] = {
210 .pa_start = OMAP2_UART3_BASE,
211 .pa_end = OMAP2_UART3_BASE + SZ_1K - 1,
212 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
216 static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
217 .master = &omap2430_l4_core_hwmod,
218 .slave = &omap2430_uart3_hwmod,
220 .addr = omap2430_uart3_addr_space,
221 .addr_cnt = ARRAY_SIZE(omap2430_uart3_addr_space),
222 .user = OCP_USER_MPU | OCP_USER_SDMA,
226 * usbhsotg interface data
228 static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
230 .pa_start = OMAP243X_HS_BASE,
231 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
232 .flags = ADDR_TYPE_RT
236 /* l4_core ->usbhsotg interface */
237 static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
238 .master = &omap2430_l4_core_hwmod,
239 .slave = &omap2430_usbhsotg_hwmod,
241 .addr = omap2430_usbhsotg_addrs,
242 .addr_cnt = ARRAY_SIZE(omap2430_usbhsotg_addrs),
243 .user = OCP_USER_MPU,
246 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
247 &omap2430_usbhsotg__l3,
250 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
251 &omap2430_l4_core__usbhsotg,
254 /* Slave interfaces on the L4_CORE interconnect */
255 static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
256 &omap2430_l3_main__l4_core,
259 /* Master interfaces on the L4_CORE interconnect */
260 static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
261 &omap2430_l4_core__l4_wkup,
265 static struct omap_hwmod omap2430_l4_core_hwmod = {
267 .class = &l4_hwmod_class,
268 .masters = omap2430_l4_core_masters,
269 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
270 .slaves = omap2430_l4_core_slaves,
271 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
272 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
273 .flags = HWMOD_NO_IDLEST,
276 /* Slave interfaces on the L4_WKUP interconnect */
277 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
278 &omap2430_l4_core__l4_wkup,
279 &omap2_l4_core__uart1,
280 &omap2_l4_core__uart2,
281 &omap2_l4_core__uart3,
284 /* Master interfaces on the L4_WKUP interconnect */
285 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
288 /* l4 core -> mcspi1 interface */
289 static struct omap_hwmod_addr_space omap2430_mcspi1_addr_space[] = {
291 .pa_start = 0x48098000,
292 .pa_end = 0x480980ff,
293 .flags = ADDR_TYPE_RT,
297 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
298 .master = &omap2430_l4_core_hwmod,
299 .slave = &omap2430_mcspi1_hwmod,
301 .addr = omap2430_mcspi1_addr_space,
302 .addr_cnt = ARRAY_SIZE(omap2430_mcspi1_addr_space),
303 .user = OCP_USER_MPU | OCP_USER_SDMA,
306 /* l4 core -> mcspi2 interface */
307 static struct omap_hwmod_addr_space omap2430_mcspi2_addr_space[] = {
309 .pa_start = 0x4809a000,
310 .pa_end = 0x4809a0ff,
311 .flags = ADDR_TYPE_RT,
315 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
316 .master = &omap2430_l4_core_hwmod,
317 .slave = &omap2430_mcspi2_hwmod,
319 .addr = omap2430_mcspi2_addr_space,
320 .addr_cnt = ARRAY_SIZE(omap2430_mcspi2_addr_space),
321 .user = OCP_USER_MPU | OCP_USER_SDMA,
324 /* l4 core -> mcspi3 interface */
325 static struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[] = {
327 .pa_start = 0x480b8000,
328 .pa_end = 0x480b80ff,
329 .flags = ADDR_TYPE_RT,
333 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
334 .master = &omap2430_l4_core_hwmod,
335 .slave = &omap2430_mcspi3_hwmod,
337 .addr = omap2430_mcspi3_addr_space,
338 .addr_cnt = ARRAY_SIZE(omap2430_mcspi3_addr_space),
339 .user = OCP_USER_MPU | OCP_USER_SDMA,
343 static struct omap_hwmod omap2430_l4_wkup_hwmod = {
345 .class = &l4_hwmod_class,
346 .masters = omap2430_l4_wkup_masters,
347 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
348 .slaves = omap2430_l4_wkup_slaves,
349 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
350 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
351 .flags = HWMOD_NO_IDLEST,
354 /* Master interfaces on the MPU device */
355 static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
356 &omap2430_mpu__l3_main,
360 static struct omap_hwmod omap2430_mpu_hwmod = {
362 .class = &mpu_hwmod_class,
363 .main_clk = "mpu_ck",
364 .masters = omap2430_mpu_masters,
365 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
366 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
370 * IVA2_1 interface data
373 /* IVA2 <- L3 interface */
374 static struct omap_hwmod_ocp_if omap2430_l3__iva = {
375 .master = &omap2430_l3_main_hwmod,
376 .slave = &omap2430_iva_hwmod,
378 .user = OCP_USER_MPU | OCP_USER_SDMA,
381 static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
389 static struct omap_hwmod omap2430_iva_hwmod = {
391 .class = &iva_hwmod_class,
392 .masters = omap2430_iva_masters,
393 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
394 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
398 static struct omap_hwmod_class_sysconfig omap2430_timer_sysc = {
402 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
403 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
405 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
406 .sysc_fields = &omap_hwmod_sysc_type1,
409 static struct omap_hwmod_class omap2430_timer_hwmod_class = {
411 .sysc = &omap2430_timer_sysc,
412 .rev = OMAP_TIMER_IP_VERSION_1,
416 static struct omap_hwmod omap2430_timer1_hwmod;
417 static struct omap_hwmod_irq_info omap2430_timer1_mpu_irqs[] = {
421 static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
423 .pa_start = 0x49018000,
424 .pa_end = 0x49018000 + SZ_1K - 1,
425 .flags = ADDR_TYPE_RT
429 /* l4_wkup -> timer1 */
430 static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
431 .master = &omap2430_l4_wkup_hwmod,
432 .slave = &omap2430_timer1_hwmod,
434 .addr = omap2430_timer1_addrs,
435 .addr_cnt = ARRAY_SIZE(omap2430_timer1_addrs),
436 .user = OCP_USER_MPU | OCP_USER_SDMA,
439 /* timer1 slave port */
440 static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
441 &omap2430_l4_wkup__timer1,
445 static struct omap_hwmod omap2430_timer1_hwmod = {
447 .mpu_irqs = omap2430_timer1_mpu_irqs,
448 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer1_mpu_irqs),
449 .main_clk = "gpt1_fck",
453 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
454 .module_offs = WKUP_MOD,
456 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
459 .slaves = omap2430_timer1_slaves,
460 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
461 .class = &omap2430_timer_hwmod_class,
462 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
466 static struct omap_hwmod omap2430_timer2_hwmod;
467 static struct omap_hwmod_irq_info omap2430_timer2_mpu_irqs[] = {
471 static struct omap_hwmod_addr_space omap2430_timer2_addrs[] = {
473 .pa_start = 0x4802a000,
474 .pa_end = 0x4802a000 + SZ_1K - 1,
475 .flags = ADDR_TYPE_RT
479 /* l4_core -> timer2 */
480 static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
481 .master = &omap2430_l4_core_hwmod,
482 .slave = &omap2430_timer2_hwmod,
484 .addr = omap2430_timer2_addrs,
485 .addr_cnt = ARRAY_SIZE(omap2430_timer2_addrs),
486 .user = OCP_USER_MPU | OCP_USER_SDMA,
489 /* timer2 slave port */
490 static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
491 &omap2430_l4_core__timer2,
495 static struct omap_hwmod omap2430_timer2_hwmod = {
497 .mpu_irqs = omap2430_timer2_mpu_irqs,
498 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer2_mpu_irqs),
499 .main_clk = "gpt2_fck",
503 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
504 .module_offs = CORE_MOD,
506 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
509 .slaves = omap2430_timer2_slaves,
510 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
511 .class = &omap2430_timer_hwmod_class,
512 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
516 static struct omap_hwmod omap2430_timer3_hwmod;
517 static struct omap_hwmod_irq_info omap2430_timer3_mpu_irqs[] = {
521 static struct omap_hwmod_addr_space omap2430_timer3_addrs[] = {
523 .pa_start = 0x48078000,
524 .pa_end = 0x48078000 + SZ_1K - 1,
525 .flags = ADDR_TYPE_RT
529 /* l4_core -> timer3 */
530 static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
531 .master = &omap2430_l4_core_hwmod,
532 .slave = &omap2430_timer3_hwmod,
534 .addr = omap2430_timer3_addrs,
535 .addr_cnt = ARRAY_SIZE(omap2430_timer3_addrs),
536 .user = OCP_USER_MPU | OCP_USER_SDMA,
539 /* timer3 slave port */
540 static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
541 &omap2430_l4_core__timer3,
545 static struct omap_hwmod omap2430_timer3_hwmod = {
547 .mpu_irqs = omap2430_timer3_mpu_irqs,
548 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer3_mpu_irqs),
549 .main_clk = "gpt3_fck",
553 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
554 .module_offs = CORE_MOD,
556 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
559 .slaves = omap2430_timer3_slaves,
560 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
561 .class = &omap2430_timer_hwmod_class,
562 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
566 static struct omap_hwmod omap2430_timer4_hwmod;
567 static struct omap_hwmod_irq_info omap2430_timer4_mpu_irqs[] = {
571 static struct omap_hwmod_addr_space omap2430_timer4_addrs[] = {
573 .pa_start = 0x4807a000,
574 .pa_end = 0x4807a000 + SZ_1K - 1,
575 .flags = ADDR_TYPE_RT
579 /* l4_core -> timer4 */
580 static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
581 .master = &omap2430_l4_core_hwmod,
582 .slave = &omap2430_timer4_hwmod,
584 .addr = omap2430_timer4_addrs,
585 .addr_cnt = ARRAY_SIZE(omap2430_timer4_addrs),
586 .user = OCP_USER_MPU | OCP_USER_SDMA,
589 /* timer4 slave port */
590 static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
591 &omap2430_l4_core__timer4,
595 static struct omap_hwmod omap2430_timer4_hwmod = {
597 .mpu_irqs = omap2430_timer4_mpu_irqs,
598 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer4_mpu_irqs),
599 .main_clk = "gpt4_fck",
603 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
604 .module_offs = CORE_MOD,
606 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
609 .slaves = omap2430_timer4_slaves,
610 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
611 .class = &omap2430_timer_hwmod_class,
612 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
616 static struct omap_hwmod omap2430_timer5_hwmod;
617 static struct omap_hwmod_irq_info omap2430_timer5_mpu_irqs[] = {
621 static struct omap_hwmod_addr_space omap2430_timer5_addrs[] = {
623 .pa_start = 0x4807c000,
624 .pa_end = 0x4807c000 + SZ_1K - 1,
625 .flags = ADDR_TYPE_RT
629 /* l4_core -> timer5 */
630 static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
631 .master = &omap2430_l4_core_hwmod,
632 .slave = &omap2430_timer5_hwmod,
634 .addr = omap2430_timer5_addrs,
635 .addr_cnt = ARRAY_SIZE(omap2430_timer5_addrs),
636 .user = OCP_USER_MPU | OCP_USER_SDMA,
639 /* timer5 slave port */
640 static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
641 &omap2430_l4_core__timer5,
645 static struct omap_hwmod omap2430_timer5_hwmod = {
647 .mpu_irqs = omap2430_timer5_mpu_irqs,
648 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer5_mpu_irqs),
649 .main_clk = "gpt5_fck",
653 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
654 .module_offs = CORE_MOD,
656 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
659 .slaves = omap2430_timer5_slaves,
660 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
661 .class = &omap2430_timer_hwmod_class,
662 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
666 static struct omap_hwmod omap2430_timer6_hwmod;
667 static struct omap_hwmod_irq_info omap2430_timer6_mpu_irqs[] = {
671 static struct omap_hwmod_addr_space omap2430_timer6_addrs[] = {
673 .pa_start = 0x4807e000,
674 .pa_end = 0x4807e000 + SZ_1K - 1,
675 .flags = ADDR_TYPE_RT
679 /* l4_core -> timer6 */
680 static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
681 .master = &omap2430_l4_core_hwmod,
682 .slave = &omap2430_timer6_hwmod,
684 .addr = omap2430_timer6_addrs,
685 .addr_cnt = ARRAY_SIZE(omap2430_timer6_addrs),
686 .user = OCP_USER_MPU | OCP_USER_SDMA,
689 /* timer6 slave port */
690 static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
691 &omap2430_l4_core__timer6,
695 static struct omap_hwmod omap2430_timer6_hwmod = {
697 .mpu_irqs = omap2430_timer6_mpu_irqs,
698 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer6_mpu_irqs),
699 .main_clk = "gpt6_fck",
703 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
704 .module_offs = CORE_MOD,
706 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
709 .slaves = omap2430_timer6_slaves,
710 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
711 .class = &omap2430_timer_hwmod_class,
712 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
716 static struct omap_hwmod omap2430_timer7_hwmod;
717 static struct omap_hwmod_irq_info omap2430_timer7_mpu_irqs[] = {
721 static struct omap_hwmod_addr_space omap2430_timer7_addrs[] = {
723 .pa_start = 0x48080000,
724 .pa_end = 0x48080000 + SZ_1K - 1,
725 .flags = ADDR_TYPE_RT
729 /* l4_core -> timer7 */
730 static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
731 .master = &omap2430_l4_core_hwmod,
732 .slave = &omap2430_timer7_hwmod,
734 .addr = omap2430_timer7_addrs,
735 .addr_cnt = ARRAY_SIZE(omap2430_timer7_addrs),
736 .user = OCP_USER_MPU | OCP_USER_SDMA,
739 /* timer7 slave port */
740 static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
741 &omap2430_l4_core__timer7,
745 static struct omap_hwmod omap2430_timer7_hwmod = {
747 .mpu_irqs = omap2430_timer7_mpu_irqs,
748 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer7_mpu_irqs),
749 .main_clk = "gpt7_fck",
753 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
754 .module_offs = CORE_MOD,
756 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
759 .slaves = omap2430_timer7_slaves,
760 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
761 .class = &omap2430_timer_hwmod_class,
762 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
766 static struct omap_hwmod omap2430_timer8_hwmod;
767 static struct omap_hwmod_irq_info omap2430_timer8_mpu_irqs[] = {
771 static struct omap_hwmod_addr_space omap2430_timer8_addrs[] = {
773 .pa_start = 0x48082000,
774 .pa_end = 0x48082000 + SZ_1K - 1,
775 .flags = ADDR_TYPE_RT
779 /* l4_core -> timer8 */
780 static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
781 .master = &omap2430_l4_core_hwmod,
782 .slave = &omap2430_timer8_hwmod,
784 .addr = omap2430_timer8_addrs,
785 .addr_cnt = ARRAY_SIZE(omap2430_timer8_addrs),
786 .user = OCP_USER_MPU | OCP_USER_SDMA,
789 /* timer8 slave port */
790 static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
791 &omap2430_l4_core__timer8,
795 static struct omap_hwmod omap2430_timer8_hwmod = {
797 .mpu_irqs = omap2430_timer8_mpu_irqs,
798 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer8_mpu_irqs),
799 .main_clk = "gpt8_fck",
803 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
804 .module_offs = CORE_MOD,
806 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
809 .slaves = omap2430_timer8_slaves,
810 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
811 .class = &omap2430_timer_hwmod_class,
812 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
816 static struct omap_hwmod omap2430_timer9_hwmod;
817 static struct omap_hwmod_irq_info omap2430_timer9_mpu_irqs[] = {
821 static struct omap_hwmod_addr_space omap2430_timer9_addrs[] = {
823 .pa_start = 0x48084000,
824 .pa_end = 0x48084000 + SZ_1K - 1,
825 .flags = ADDR_TYPE_RT
829 /* l4_core -> timer9 */
830 static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
831 .master = &omap2430_l4_core_hwmod,
832 .slave = &omap2430_timer9_hwmod,
834 .addr = omap2430_timer9_addrs,
835 .addr_cnt = ARRAY_SIZE(omap2430_timer9_addrs),
836 .user = OCP_USER_MPU | OCP_USER_SDMA,
839 /* timer9 slave port */
840 static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
841 &omap2430_l4_core__timer9,
845 static struct omap_hwmod omap2430_timer9_hwmod = {
847 .mpu_irqs = omap2430_timer9_mpu_irqs,
848 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer9_mpu_irqs),
849 .main_clk = "gpt9_fck",
853 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
854 .module_offs = CORE_MOD,
856 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
859 .slaves = omap2430_timer9_slaves,
860 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
861 .class = &omap2430_timer_hwmod_class,
862 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
866 static struct omap_hwmod omap2430_timer10_hwmod;
867 static struct omap_hwmod_irq_info omap2430_timer10_mpu_irqs[] = {
871 static struct omap_hwmod_addr_space omap2430_timer10_addrs[] = {
873 .pa_start = 0x48086000,
874 .pa_end = 0x48086000 + SZ_1K - 1,
875 .flags = ADDR_TYPE_RT
879 /* l4_core -> timer10 */
880 static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
881 .master = &omap2430_l4_core_hwmod,
882 .slave = &omap2430_timer10_hwmod,
884 .addr = omap2430_timer10_addrs,
885 .addr_cnt = ARRAY_SIZE(omap2430_timer10_addrs),
886 .user = OCP_USER_MPU | OCP_USER_SDMA,
889 /* timer10 slave port */
890 static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
891 &omap2430_l4_core__timer10,
895 static struct omap_hwmod omap2430_timer10_hwmod = {
897 .mpu_irqs = omap2430_timer10_mpu_irqs,
898 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer10_mpu_irqs),
899 .main_clk = "gpt10_fck",
903 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
904 .module_offs = CORE_MOD,
906 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
909 .slaves = omap2430_timer10_slaves,
910 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
911 .class = &omap2430_timer_hwmod_class,
912 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
916 static struct omap_hwmod omap2430_timer11_hwmod;
917 static struct omap_hwmod_irq_info omap2430_timer11_mpu_irqs[] = {
921 static struct omap_hwmod_addr_space omap2430_timer11_addrs[] = {
923 .pa_start = 0x48088000,
924 .pa_end = 0x48088000 + SZ_1K - 1,
925 .flags = ADDR_TYPE_RT
929 /* l4_core -> timer11 */
930 static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
931 .master = &omap2430_l4_core_hwmod,
932 .slave = &omap2430_timer11_hwmod,
934 .addr = omap2430_timer11_addrs,
935 .addr_cnt = ARRAY_SIZE(omap2430_timer11_addrs),
936 .user = OCP_USER_MPU | OCP_USER_SDMA,
939 /* timer11 slave port */
940 static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
941 &omap2430_l4_core__timer11,
945 static struct omap_hwmod omap2430_timer11_hwmod = {
947 .mpu_irqs = omap2430_timer11_mpu_irqs,
948 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer11_mpu_irqs),
949 .main_clk = "gpt11_fck",
953 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
954 .module_offs = CORE_MOD,
956 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
959 .slaves = omap2430_timer11_slaves,
960 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
961 .class = &omap2430_timer_hwmod_class,
962 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
966 static struct omap_hwmod omap2430_timer12_hwmod;
967 static struct omap_hwmod_irq_info omap2430_timer12_mpu_irqs[] = {
971 static struct omap_hwmod_addr_space omap2430_timer12_addrs[] = {
973 .pa_start = 0x4808a000,
974 .pa_end = 0x4808a000 + SZ_1K - 1,
975 .flags = ADDR_TYPE_RT
979 /* l4_core -> timer12 */
980 static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
981 .master = &omap2430_l4_core_hwmod,
982 .slave = &omap2430_timer12_hwmod,
984 .addr = omap2430_timer12_addrs,
985 .addr_cnt = ARRAY_SIZE(omap2430_timer12_addrs),
986 .user = OCP_USER_MPU | OCP_USER_SDMA,
989 /* timer12 slave port */
990 static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
991 &omap2430_l4_core__timer12,
995 static struct omap_hwmod omap2430_timer12_hwmod = {
997 .mpu_irqs = omap2430_timer12_mpu_irqs,
998 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer12_mpu_irqs),
999 .main_clk = "gpt12_fck",
1003 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
1004 .module_offs = CORE_MOD,
1006 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
1009 .slaves = omap2430_timer12_slaves,
1010 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
1011 .class = &omap2430_timer_hwmod_class,
1012 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1015 /* l4_wkup -> wd_timer2 */
1016 static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
1018 .pa_start = 0x49016000,
1019 .pa_end = 0x4901607f,
1020 .flags = ADDR_TYPE_RT
1024 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
1025 .master = &omap2430_l4_wkup_hwmod,
1026 .slave = &omap2430_wd_timer2_hwmod,
1027 .clk = "mpu_wdt_ick",
1028 .addr = omap2430_wd_timer2_addrs,
1029 .addr_cnt = ARRAY_SIZE(omap2430_wd_timer2_addrs),
1030 .user = OCP_USER_MPU | OCP_USER_SDMA,
1035 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1036 * overflow condition
1039 static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
1041 .sysc_offs = 0x0010,
1042 .syss_offs = 0x0014,
1043 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
1045 .sysc_fields = &omap_hwmod_sysc_type1,
1048 static struct omap_hwmod_class omap2430_wd_timer_hwmod_class = {
1050 .sysc = &omap2430_wd_timer_sysc,
1051 .pre_shutdown = &omap2_wd_timer_disable
1055 static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
1056 &omap2430_l4_wkup__wd_timer2,
1059 static struct omap_hwmod omap2430_wd_timer2_hwmod = {
1060 .name = "wd_timer2",
1061 .class = &omap2430_wd_timer_hwmod_class,
1062 .main_clk = "mpu_wdt_fck",
1066 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
1067 .module_offs = WKUP_MOD,
1069 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
1072 .slaves = omap2430_wd_timer2_slaves,
1073 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
1074 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1079 static struct omap_hwmod_class_sysconfig uart_sysc = {
1083 .sysc_flags = (SYSC_HAS_SIDLEMODE |
1084 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1086 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1087 .sysc_fields = &omap_hwmod_sysc_type1,
1090 static struct omap_hwmod_class uart_class = {
1097 static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
1098 { .irq = INT_24XX_UART1_IRQ, },
1101 static struct omap_hwmod_dma_info uart1_sdma_reqs[] = {
1102 { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
1103 { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
1106 static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
1107 &omap2_l4_core__uart1,
1110 static struct omap_hwmod omap2430_uart1_hwmod = {
1112 .mpu_irqs = uart1_mpu_irqs,
1113 .mpu_irqs_cnt = ARRAY_SIZE(uart1_mpu_irqs),
1114 .sdma_reqs = uart1_sdma_reqs,
1115 .sdma_reqs_cnt = ARRAY_SIZE(uart1_sdma_reqs),
1116 .main_clk = "uart1_fck",
1119 .module_offs = CORE_MOD,
1121 .module_bit = OMAP24XX_EN_UART1_SHIFT,
1123 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
1126 .slaves = omap2430_uart1_slaves,
1127 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
1128 .class = &uart_class,
1129 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1134 static struct omap_hwmod_irq_info uart2_mpu_irqs[] = {
1135 { .irq = INT_24XX_UART2_IRQ, },
1138 static struct omap_hwmod_dma_info uart2_sdma_reqs[] = {
1139 { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
1140 { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
1143 static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
1144 &omap2_l4_core__uart2,
1147 static struct omap_hwmod omap2430_uart2_hwmod = {
1149 .mpu_irqs = uart2_mpu_irqs,
1150 .mpu_irqs_cnt = ARRAY_SIZE(uart2_mpu_irqs),
1151 .sdma_reqs = uart2_sdma_reqs,
1152 .sdma_reqs_cnt = ARRAY_SIZE(uart2_sdma_reqs),
1153 .main_clk = "uart2_fck",
1156 .module_offs = CORE_MOD,
1158 .module_bit = OMAP24XX_EN_UART2_SHIFT,
1160 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
1163 .slaves = omap2430_uart2_slaves,
1164 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
1165 .class = &uart_class,
1166 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1171 static struct omap_hwmod_irq_info uart3_mpu_irqs[] = {
1172 { .irq = INT_24XX_UART3_IRQ, },
1175 static struct omap_hwmod_dma_info uart3_sdma_reqs[] = {
1176 { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
1177 { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
1180 static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
1181 &omap2_l4_core__uart3,
1184 static struct omap_hwmod omap2430_uart3_hwmod = {
1186 .mpu_irqs = uart3_mpu_irqs,
1187 .mpu_irqs_cnt = ARRAY_SIZE(uart3_mpu_irqs),
1188 .sdma_reqs = uart3_sdma_reqs,
1189 .sdma_reqs_cnt = ARRAY_SIZE(uart3_sdma_reqs),
1190 .main_clk = "uart3_fck",
1193 .module_offs = CORE_MOD,
1195 .module_bit = OMAP24XX_EN_UART3_SHIFT,
1197 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
1200 .slaves = omap2430_uart3_slaves,
1201 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
1202 .class = &uart_class,
1203 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1208 * display sub-system
1211 static struct omap_hwmod_class_sysconfig omap2430_dss_sysc = {
1213 .sysc_offs = 0x0010,
1214 .syss_offs = 0x0014,
1215 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1216 .sysc_fields = &omap_hwmod_sysc_type1,
1219 static struct omap_hwmod_class omap2430_dss_hwmod_class = {
1221 .sysc = &omap2430_dss_sysc,
1225 static struct omap_hwmod_irq_info omap2430_dss_irqs[] = {
1228 static struct omap_hwmod_dma_info omap2430_dss_sdma_chs[] = {
1229 { .name = "dispc", .dma_req = 5 },
1233 /* dss master ports */
1234 static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
1238 static struct omap_hwmod_addr_space omap2430_dss_addrs[] = {
1240 .pa_start = 0x48050000,
1241 .pa_end = 0x480503FF,
1242 .flags = ADDR_TYPE_RT
1246 /* l4_core -> dss */
1247 static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
1248 .master = &omap2430_l4_core_hwmod,
1249 .slave = &omap2430_dss_core_hwmod,
1251 .addr = omap2430_dss_addrs,
1252 .addr_cnt = ARRAY_SIZE(omap2430_dss_addrs),
1253 .user = OCP_USER_MPU | OCP_USER_SDMA,
1256 /* dss slave ports */
1257 static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
1258 &omap2430_l4_core__dss,
1261 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1262 { .role = "tv_clk", .clk = "dss_54m_fck" },
1263 { .role = "sys_clk", .clk = "dss2_fck" },
1266 static struct omap_hwmod omap2430_dss_core_hwmod = {
1268 .class = &omap2430_dss_hwmod_class,
1269 .main_clk = "dss1_fck", /* instead of dss_fck */
1270 .mpu_irqs = omap2430_dss_irqs,
1271 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_dss_irqs),
1272 .sdma_reqs = omap2430_dss_sdma_chs,
1273 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_dss_sdma_chs),
1277 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1278 .module_offs = CORE_MOD,
1280 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1283 .opt_clks = dss_opt_clks,
1284 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1285 .slaves = omap2430_dss_slaves,
1286 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
1287 .masters = omap2430_dss_masters,
1288 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
1289 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1290 .flags = HWMOD_NO_IDLEST,
1295 * display controller
1298 static struct omap_hwmod_class_sysconfig omap2430_dispc_sysc = {
1300 .sysc_offs = 0x0010,
1301 .syss_offs = 0x0014,
1302 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1303 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1304 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1305 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1306 .sysc_fields = &omap_hwmod_sysc_type1,
1309 static struct omap_hwmod_class omap2430_dispc_hwmod_class = {
1311 .sysc = &omap2430_dispc_sysc,
1314 static struct omap_hwmod_addr_space omap2430_dss_dispc_addrs[] = {
1316 .pa_start = 0x48050400,
1317 .pa_end = 0x480507FF,
1318 .flags = ADDR_TYPE_RT
1322 /* l4_core -> dss_dispc */
1323 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
1324 .master = &omap2430_l4_core_hwmod,
1325 .slave = &omap2430_dss_dispc_hwmod,
1327 .addr = omap2430_dss_dispc_addrs,
1328 .addr_cnt = ARRAY_SIZE(omap2430_dss_dispc_addrs),
1329 .user = OCP_USER_MPU | OCP_USER_SDMA,
1332 /* dss_dispc slave ports */
1333 static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
1334 &omap2430_l4_core__dss_dispc,
1337 static struct omap_hwmod omap2430_dss_dispc_hwmod = {
1338 .name = "dss_dispc",
1339 .class = &omap2430_dispc_hwmod_class,
1340 .main_clk = "dss1_fck",
1344 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1345 .module_offs = CORE_MOD,
1347 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1350 .slaves = omap2430_dss_dispc_slaves,
1351 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1352 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1353 .flags = HWMOD_NO_IDLEST,
1358 * remote frame buffer interface
1361 static struct omap_hwmod_class_sysconfig omap2430_rfbi_sysc = {
1363 .sysc_offs = 0x0010,
1364 .syss_offs = 0x0014,
1365 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1367 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1368 .sysc_fields = &omap_hwmod_sysc_type1,
1371 static struct omap_hwmod_class omap2430_rfbi_hwmod_class = {
1373 .sysc = &omap2430_rfbi_sysc,
1376 static struct omap_hwmod_addr_space omap2430_dss_rfbi_addrs[] = {
1378 .pa_start = 0x48050800,
1379 .pa_end = 0x48050BFF,
1380 .flags = ADDR_TYPE_RT
1384 /* l4_core -> dss_rfbi */
1385 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1386 .master = &omap2430_l4_core_hwmod,
1387 .slave = &omap2430_dss_rfbi_hwmod,
1389 .addr = omap2430_dss_rfbi_addrs,
1390 .addr_cnt = ARRAY_SIZE(omap2430_dss_rfbi_addrs),
1391 .user = OCP_USER_MPU | OCP_USER_SDMA,
1394 /* dss_rfbi slave ports */
1395 static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1396 &omap2430_l4_core__dss_rfbi,
1399 static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1401 .class = &omap2430_rfbi_hwmod_class,
1402 .main_clk = "dss1_fck",
1406 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1407 .module_offs = CORE_MOD,
1410 .slaves = omap2430_dss_rfbi_slaves,
1411 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1412 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1413 .flags = HWMOD_NO_IDLEST,
1421 static struct omap_hwmod_class omap2430_venc_hwmod_class = {
1426 static struct omap_hwmod_addr_space omap2430_dss_venc_addrs[] = {
1428 .pa_start = 0x48050C00,
1429 .pa_end = 0x48050FFF,
1430 .flags = ADDR_TYPE_RT
1434 /* l4_core -> dss_venc */
1435 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1436 .master = &omap2430_l4_core_hwmod,
1437 .slave = &omap2430_dss_venc_hwmod,
1438 .clk = "dss_54m_fck",
1439 .addr = omap2430_dss_venc_addrs,
1440 .addr_cnt = ARRAY_SIZE(omap2430_dss_venc_addrs),
1441 .user = OCP_USER_MPU | OCP_USER_SDMA,
1444 /* dss_venc slave ports */
1445 static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1446 &omap2430_l4_core__dss_venc,
1449 static struct omap_hwmod omap2430_dss_venc_hwmod = {
1451 .class = &omap2430_venc_hwmod_class,
1452 .main_clk = "dss1_fck",
1456 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1457 .module_offs = CORE_MOD,
1460 .slaves = omap2430_dss_venc_slaves,
1461 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1462 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1463 .flags = HWMOD_NO_IDLEST,
1467 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1471 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1472 .sysc_fields = &omap_hwmod_sysc_type1,
1475 static struct omap_hwmod_class i2c_class = {
1480 static struct omap_i2c_dev_attr i2c_dev_attr = {
1481 .fifo_depth = 8, /* bytes */
1486 static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
1487 { .irq = INT_24XX_I2C1_IRQ, },
1490 static struct omap_hwmod_dma_info i2c1_sdma_reqs[] = {
1491 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
1492 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
1495 static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1496 &omap2430_l4_core__i2c1,
1499 static struct omap_hwmod omap2430_i2c1_hwmod = {
1501 .mpu_irqs = i2c1_mpu_irqs,
1502 .mpu_irqs_cnt = ARRAY_SIZE(i2c1_mpu_irqs),
1503 .sdma_reqs = i2c1_sdma_reqs,
1504 .sdma_reqs_cnt = ARRAY_SIZE(i2c1_sdma_reqs),
1505 .main_clk = "i2chs1_fck",
1509 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1510 * I2CHS IP's do not follow the usual pattern.
1511 * prcm_reg_id alone cannot be used to program
1512 * the iclk and fclk. Needs to be handled using
1513 * additonal flags when clk handling is moved
1514 * to hwmod framework.
1516 .module_offs = CORE_MOD,
1518 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1520 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1523 .slaves = omap2430_i2c1_slaves,
1524 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1525 .class = &i2c_class,
1526 .dev_attr = &i2c_dev_attr,
1527 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1532 static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
1533 { .irq = INT_24XX_I2C2_IRQ, },
1536 static struct omap_hwmod_dma_info i2c2_sdma_reqs[] = {
1537 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
1538 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
1541 static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1542 &omap2430_l4_core__i2c2,
1545 static struct omap_hwmod omap2430_i2c2_hwmod = {
1547 .mpu_irqs = i2c2_mpu_irqs,
1548 .mpu_irqs_cnt = ARRAY_SIZE(i2c2_mpu_irqs),
1549 .sdma_reqs = i2c2_sdma_reqs,
1550 .sdma_reqs_cnt = ARRAY_SIZE(i2c2_sdma_reqs),
1551 .main_clk = "i2chs2_fck",
1554 .module_offs = CORE_MOD,
1556 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1558 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1561 .slaves = omap2430_i2c2_slaves,
1562 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1563 .class = &i2c_class,
1564 .dev_attr = &i2c_dev_attr,
1565 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1568 /* l4_wkup -> gpio1 */
1569 static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1571 .pa_start = 0x4900C000,
1572 .pa_end = 0x4900C1ff,
1573 .flags = ADDR_TYPE_RT
1577 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1578 .master = &omap2430_l4_wkup_hwmod,
1579 .slave = &omap2430_gpio1_hwmod,
1581 .addr = omap2430_gpio1_addr_space,
1582 .addr_cnt = ARRAY_SIZE(omap2430_gpio1_addr_space),
1583 .user = OCP_USER_MPU | OCP_USER_SDMA,
1586 /* l4_wkup -> gpio2 */
1587 static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1589 .pa_start = 0x4900E000,
1590 .pa_end = 0x4900E1ff,
1591 .flags = ADDR_TYPE_RT
1595 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1596 .master = &omap2430_l4_wkup_hwmod,
1597 .slave = &omap2430_gpio2_hwmod,
1599 .addr = omap2430_gpio2_addr_space,
1600 .addr_cnt = ARRAY_SIZE(omap2430_gpio2_addr_space),
1601 .user = OCP_USER_MPU | OCP_USER_SDMA,
1604 /* l4_wkup -> gpio3 */
1605 static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1607 .pa_start = 0x49010000,
1608 .pa_end = 0x490101ff,
1609 .flags = ADDR_TYPE_RT
1613 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1614 .master = &omap2430_l4_wkup_hwmod,
1615 .slave = &omap2430_gpio3_hwmod,
1617 .addr = omap2430_gpio3_addr_space,
1618 .addr_cnt = ARRAY_SIZE(omap2430_gpio3_addr_space),
1619 .user = OCP_USER_MPU | OCP_USER_SDMA,
1622 /* l4_wkup -> gpio4 */
1623 static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1625 .pa_start = 0x49012000,
1626 .pa_end = 0x490121ff,
1627 .flags = ADDR_TYPE_RT
1631 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1632 .master = &omap2430_l4_wkup_hwmod,
1633 .slave = &omap2430_gpio4_hwmod,
1635 .addr = omap2430_gpio4_addr_space,
1636 .addr_cnt = ARRAY_SIZE(omap2430_gpio4_addr_space),
1637 .user = OCP_USER_MPU | OCP_USER_SDMA,
1640 /* l4_core -> gpio5 */
1641 static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1643 .pa_start = 0x480B6000,
1644 .pa_end = 0x480B61ff,
1645 .flags = ADDR_TYPE_RT
1649 static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1650 .master = &omap2430_l4_core_hwmod,
1651 .slave = &omap2430_gpio5_hwmod,
1653 .addr = omap2430_gpio5_addr_space,
1654 .addr_cnt = ARRAY_SIZE(omap2430_gpio5_addr_space),
1655 .user = OCP_USER_MPU | OCP_USER_SDMA,
1659 static struct omap_gpio_dev_attr gpio_dev_attr = {
1664 static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
1666 .sysc_offs = 0x0010,
1667 .syss_offs = 0x0014,
1668 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1669 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1670 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1671 .sysc_fields = &omap_hwmod_sysc_type1,
1676 * general purpose io module
1678 static struct omap_hwmod_class omap243x_gpio_hwmod_class = {
1680 .sysc = &omap243x_gpio_sysc,
1685 static struct omap_hwmod_irq_info omap243x_gpio1_irqs[] = {
1686 { .irq = 29 }, /* INT_24XX_GPIO_BANK1 */
1689 static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1690 &omap2430_l4_wkup__gpio1,
1693 static struct omap_hwmod omap2430_gpio1_hwmod = {
1695 .mpu_irqs = omap243x_gpio1_irqs,
1696 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio1_irqs),
1697 .main_clk = "gpios_fck",
1701 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1702 .module_offs = WKUP_MOD,
1704 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1707 .slaves = omap2430_gpio1_slaves,
1708 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1709 .class = &omap243x_gpio_hwmod_class,
1710 .dev_attr = &gpio_dev_attr,
1711 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1715 static struct omap_hwmod_irq_info omap243x_gpio2_irqs[] = {
1716 { .irq = 30 }, /* INT_24XX_GPIO_BANK2 */
1719 static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1720 &omap2430_l4_wkup__gpio2,
1723 static struct omap_hwmod omap2430_gpio2_hwmod = {
1725 .mpu_irqs = omap243x_gpio2_irqs,
1726 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio2_irqs),
1727 .main_clk = "gpios_fck",
1731 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1732 .module_offs = WKUP_MOD,
1734 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1737 .slaves = omap2430_gpio2_slaves,
1738 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1739 .class = &omap243x_gpio_hwmod_class,
1740 .dev_attr = &gpio_dev_attr,
1741 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1745 static struct omap_hwmod_irq_info omap243x_gpio3_irqs[] = {
1746 { .irq = 31 }, /* INT_24XX_GPIO_BANK3 */
1749 static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1750 &omap2430_l4_wkup__gpio3,
1753 static struct omap_hwmod omap2430_gpio3_hwmod = {
1755 .mpu_irqs = omap243x_gpio3_irqs,
1756 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio3_irqs),
1757 .main_clk = "gpios_fck",
1761 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1762 .module_offs = WKUP_MOD,
1764 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1767 .slaves = omap2430_gpio3_slaves,
1768 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1769 .class = &omap243x_gpio_hwmod_class,
1770 .dev_attr = &gpio_dev_attr,
1771 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1775 static struct omap_hwmod_irq_info omap243x_gpio4_irqs[] = {
1776 { .irq = 32 }, /* INT_24XX_GPIO_BANK4 */
1779 static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1780 &omap2430_l4_wkup__gpio4,
1783 static struct omap_hwmod omap2430_gpio4_hwmod = {
1785 .mpu_irqs = omap243x_gpio4_irqs,
1786 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio4_irqs),
1787 .main_clk = "gpios_fck",
1791 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1792 .module_offs = WKUP_MOD,
1794 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1797 .slaves = omap2430_gpio4_slaves,
1798 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1799 .class = &omap243x_gpio_hwmod_class,
1800 .dev_attr = &gpio_dev_attr,
1801 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1805 static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1806 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1809 static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1810 &omap2430_l4_core__gpio5,
1813 static struct omap_hwmod omap2430_gpio5_hwmod = {
1815 .mpu_irqs = omap243x_gpio5_irqs,
1816 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio5_irqs),
1817 .main_clk = "gpio5_fck",
1821 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1822 .module_offs = CORE_MOD,
1824 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1827 .slaves = omap2430_gpio5_slaves,
1828 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1829 .class = &omap243x_gpio_hwmod_class,
1830 .dev_attr = &gpio_dev_attr,
1831 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1835 static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
1837 .sysc_offs = 0x002c,
1838 .syss_offs = 0x0028,
1839 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
1840 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
1842 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1843 .sysc_fields = &omap_hwmod_sysc_type1,
1846 static struct omap_hwmod_class omap2430_dma_hwmod_class = {
1848 .sysc = &omap2430_dma_sysc,
1851 /* dma attributes */
1852 static struct omap_dma_dev_attr dma_dev_attr = {
1853 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1854 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1858 static struct omap_hwmod_irq_info omap2430_dma_system_irqs[] = {
1859 { .name = "0", .irq = 12 }, /* INT_24XX_SDMA_IRQ0 */
1860 { .name = "1", .irq = 13 }, /* INT_24XX_SDMA_IRQ1 */
1861 { .name = "2", .irq = 14 }, /* INT_24XX_SDMA_IRQ2 */
1862 { .name = "3", .irq = 15 }, /* INT_24XX_SDMA_IRQ3 */
1865 static struct omap_hwmod_addr_space omap2430_dma_system_addrs[] = {
1867 .pa_start = 0x48056000,
1868 .pa_end = 0x4a0560ff,
1869 .flags = ADDR_TYPE_RT
1873 /* dma_system -> L3 */
1874 static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1875 .master = &omap2430_dma_system_hwmod,
1876 .slave = &omap2430_l3_main_hwmod,
1877 .clk = "core_l3_ck",
1878 .user = OCP_USER_MPU | OCP_USER_SDMA,
1881 /* dma_system master ports */
1882 static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1883 &omap2430_dma_system__l3,
1886 /* l4_core -> dma_system */
1887 static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1888 .master = &omap2430_l4_core_hwmod,
1889 .slave = &omap2430_dma_system_hwmod,
1891 .addr = omap2430_dma_system_addrs,
1892 .addr_cnt = ARRAY_SIZE(omap2430_dma_system_addrs),
1893 .user = OCP_USER_MPU | OCP_USER_SDMA,
1896 /* dma_system slave ports */
1897 static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1898 &omap2430_l4_core__dma_system,
1901 static struct omap_hwmod omap2430_dma_system_hwmod = {
1903 .class = &omap2430_dma_hwmod_class,
1904 .mpu_irqs = omap2430_dma_system_irqs,
1905 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_dma_system_irqs),
1906 .main_clk = "core_l3_ck",
1907 .slaves = omap2430_dma_system_slaves,
1908 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1909 .masters = omap2430_dma_system_masters,
1910 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1911 .dev_attr = &dma_dev_attr,
1912 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1913 .flags = HWMOD_NO_IDLEST,
1918 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1922 static struct omap_hwmod_class_sysconfig omap2430_mcspi_sysc = {
1924 .sysc_offs = 0x0010,
1925 .syss_offs = 0x0014,
1926 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1927 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1928 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1929 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1930 .sysc_fields = &omap_hwmod_sysc_type1,
1933 static struct omap_hwmod_class omap2430_mcspi_class = {
1935 .sysc = &omap2430_mcspi_sysc,
1936 .rev = OMAP2_MCSPI_REV,
1940 static struct omap_hwmod_irq_info omap2430_mcspi1_mpu_irqs[] = {
1944 static struct omap_hwmod_dma_info omap2430_mcspi1_sdma_reqs[] = {
1945 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
1946 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
1947 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
1948 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
1949 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
1950 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
1951 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
1952 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
1955 static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1956 &omap2430_l4_core__mcspi1,
1959 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1960 .num_chipselect = 4,
1963 static struct omap_hwmod omap2430_mcspi1_hwmod = {
1964 .name = "mcspi1_hwmod",
1965 .mpu_irqs = omap2430_mcspi1_mpu_irqs,
1966 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi1_mpu_irqs),
1967 .sdma_reqs = omap2430_mcspi1_sdma_reqs,
1968 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi1_sdma_reqs),
1969 .main_clk = "mcspi1_fck",
1972 .module_offs = CORE_MOD,
1974 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1976 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1979 .slaves = omap2430_mcspi1_slaves,
1980 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
1981 .class = &omap2430_mcspi_class,
1982 .dev_attr = &omap_mcspi1_dev_attr,
1983 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1987 static struct omap_hwmod_irq_info omap2430_mcspi2_mpu_irqs[] = {
1991 static struct omap_hwmod_dma_info omap2430_mcspi2_sdma_reqs[] = {
1992 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
1993 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
1994 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
1995 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
1998 static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1999 &omap2430_l4_core__mcspi2,
2002 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
2003 .num_chipselect = 2,
2006 static struct omap_hwmod omap2430_mcspi2_hwmod = {
2007 .name = "mcspi2_hwmod",
2008 .mpu_irqs = omap2430_mcspi2_mpu_irqs,
2009 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi2_mpu_irqs),
2010 .sdma_reqs = omap2430_mcspi2_sdma_reqs,
2011 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi2_sdma_reqs),
2012 .main_clk = "mcspi2_fck",
2015 .module_offs = CORE_MOD,
2017 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
2019 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
2022 .slaves = omap2430_mcspi2_slaves,
2023 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
2024 .class = &omap2430_mcspi_class,
2025 .dev_attr = &omap_mcspi2_dev_attr,
2026 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2030 static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
2034 static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
2035 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
2036 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
2037 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
2038 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
2041 static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
2042 &omap2430_l4_core__mcspi3,
2045 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
2046 .num_chipselect = 2,
2049 static struct omap_hwmod omap2430_mcspi3_hwmod = {
2050 .name = "mcspi3_hwmod",
2051 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
2052 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi3_mpu_irqs),
2053 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
2054 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi3_sdma_reqs),
2055 .main_clk = "mcspi3_fck",
2058 .module_offs = CORE_MOD,
2060 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
2062 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
2065 .slaves = omap2430_mcspi3_slaves,
2066 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
2067 .class = &omap2430_mcspi_class,
2068 .dev_attr = &omap_mcspi3_dev_attr,
2069 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2075 static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
2077 .sysc_offs = 0x0404,
2078 .syss_offs = 0x0408,
2079 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
2080 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2082 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2083 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
2084 .sysc_fields = &omap_hwmod_sysc_type1,
2087 static struct omap_hwmod_class usbotg_class = {
2089 .sysc = &omap2430_usbhsotg_sysc,
2093 static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
2095 { .name = "mc", .irq = 92 },
2096 { .name = "dma", .irq = 93 },
2099 static struct omap_hwmod omap2430_usbhsotg_hwmod = {
2100 .name = "usb_otg_hs",
2101 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
2102 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_usbhsotg_mpu_irqs),
2103 .main_clk = "usbhs_ick",
2107 .module_bit = OMAP2430_EN_USBHS_MASK,
2108 .module_offs = CORE_MOD,
2110 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
2113 .masters = omap2430_usbhsotg_masters,
2114 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
2115 .slaves = omap2430_usbhsotg_slaves,
2116 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
2117 .class = &usbotg_class,
2119 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
2120 * broken when autoidle is enabled
2121 * workaround is to disable the autoidle bit at module level.
2123 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
2124 | HWMOD_SWSUP_MSTANDBY,
2125 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
2130 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
2131 &omap2430_l3_main_hwmod,
2132 &omap2430_l4_core_hwmod,
2133 &omap2430_l4_wkup_hwmod,
2134 &omap2430_mpu_hwmod,
2135 &omap2430_iva_hwmod,
2137 &omap2430_timer1_hwmod,
2138 &omap2430_timer2_hwmod,
2139 &omap2430_timer3_hwmod,
2140 &omap2430_timer4_hwmod,
2141 &omap2430_timer5_hwmod,
2142 &omap2430_timer6_hwmod,
2143 &omap2430_timer7_hwmod,
2144 &omap2430_timer8_hwmod,
2145 &omap2430_timer9_hwmod,
2146 &omap2430_timer10_hwmod,
2147 &omap2430_timer11_hwmod,
2148 &omap2430_timer12_hwmod,
2150 &omap2430_wd_timer2_hwmod,
2151 &omap2430_uart1_hwmod,
2152 &omap2430_uart2_hwmod,
2153 &omap2430_uart3_hwmod,
2155 &omap2430_dss_core_hwmod,
2156 &omap2430_dss_dispc_hwmod,
2157 &omap2430_dss_rfbi_hwmod,
2158 &omap2430_dss_venc_hwmod,
2160 &omap2430_i2c1_hwmod,
2161 &omap2430_i2c2_hwmod,
2164 &omap2430_gpio1_hwmod,
2165 &omap2430_gpio2_hwmod,
2166 &omap2430_gpio3_hwmod,
2167 &omap2430_gpio4_hwmod,
2168 &omap2430_gpio5_hwmod,
2170 /* dma_system class*/
2171 &omap2430_dma_system_hwmod,
2174 &omap2430_mcspi1_hwmod,
2175 &omap2430_mcspi2_hwmod,
2176 &omap2430_mcspi3_hwmod,
2179 &omap2430_usbhsotg_hwmod,
2184 int __init omap2430_hwmod_init(void)
2186 return omap_hwmod_register(omap2430_hwmods);