2 * omap_hwmod_2420_data.c - hardware modules present on the OMAP2420 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>
24 #include <plat/l4_2xxx.h>
26 #include "omap_hwmod_common_data.h"
28 #include "cm-regbits-24xx.h"
29 #include "prm-regbits-24xx.h"
33 * OMAP2420 hardware module integration data
35 * ALl of the data in this section should be autogeneratable from the
36 * TI hardware database or other technical documentation. Data that
37 * is driver-specific or driver-kernel integration-specific belongs
41 static struct omap_hwmod omap2420_mpu_hwmod
;
42 static struct omap_hwmod omap2420_iva_hwmod
;
43 static struct omap_hwmod omap2420_l3_main_hwmod
;
44 static struct omap_hwmod omap2420_l4_core_hwmod
;
45 static struct omap_hwmod omap2420_dss_core_hwmod
;
46 static struct omap_hwmod omap2420_dss_dispc_hwmod
;
47 static struct omap_hwmod omap2420_dss_rfbi_hwmod
;
48 static struct omap_hwmod omap2420_dss_venc_hwmod
;
49 static struct omap_hwmod omap2420_wd_timer2_hwmod
;
50 static struct omap_hwmod omap2420_gpio1_hwmod
;
51 static struct omap_hwmod omap2420_gpio2_hwmod
;
52 static struct omap_hwmod omap2420_gpio3_hwmod
;
53 static struct omap_hwmod omap2420_gpio4_hwmod
;
54 static struct omap_hwmod omap2420_dma_system_hwmod
;
55 static struct omap_hwmod omap2420_mcspi1_hwmod
;
56 static struct omap_hwmod omap2420_mcspi2_hwmod
;
58 /* L3 -> L4_CORE interface */
59 static struct omap_hwmod_ocp_if omap2420_l3_main__l4_core
= {
60 .master
= &omap2420_l3_main_hwmod
,
61 .slave
= &omap2420_l4_core_hwmod
,
62 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
65 /* MPU -> L3 interface */
66 static struct omap_hwmod_ocp_if omap2420_mpu__l3_main
= {
67 .master
= &omap2420_mpu_hwmod
,
68 .slave
= &omap2420_l3_main_hwmod
,
72 /* Slave interfaces on the L3 interconnect */
73 static struct omap_hwmod_ocp_if
*omap2420_l3_main_slaves
[] = {
74 &omap2420_mpu__l3_main
,
78 static struct omap_hwmod_ocp_if omap2420_dss__l3
= {
79 .master
= &omap2420_dss_core_hwmod
,
80 .slave
= &omap2420_l3_main_hwmod
,
83 .l3_perm_bit
= OMAP2_L3_CORE_FW_CONNID_DSS
,
84 .flags
= OMAP_FIREWALL_L3
,
87 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
90 /* Master interfaces on the L3 interconnect */
91 static struct omap_hwmod_ocp_if
*omap2420_l3_main_masters
[] = {
92 &omap2420_l3_main__l4_core
,
96 static struct omap_hwmod omap2420_l3_main_hwmod
= {
98 .class = &l3_hwmod_class
,
99 .masters
= omap2420_l3_main_masters
,
100 .masters_cnt
= ARRAY_SIZE(omap2420_l3_main_masters
),
101 .slaves
= omap2420_l3_main_slaves
,
102 .slaves_cnt
= ARRAY_SIZE(omap2420_l3_main_slaves
),
103 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
104 .flags
= HWMOD_NO_IDLEST
,
107 static struct omap_hwmod omap2420_l4_wkup_hwmod
;
108 static struct omap_hwmod omap2420_uart1_hwmod
;
109 static struct omap_hwmod omap2420_uart2_hwmod
;
110 static struct omap_hwmod omap2420_uart3_hwmod
;
111 static struct omap_hwmod omap2420_i2c1_hwmod
;
112 static struct omap_hwmod omap2420_i2c2_hwmod
;
113 static struct omap_hwmod omap2420_mcbsp1_hwmod
;
114 static struct omap_hwmod omap2420_mcbsp2_hwmod
;
116 /* l4 core -> mcspi1 interface */
117 static struct omap_hwmod_addr_space omap2420_mcspi1_addr_space
[] = {
119 .pa_start
= 0x48098000,
120 .pa_end
= 0x480980ff,
121 .flags
= ADDR_TYPE_RT
,
125 static struct omap_hwmod_ocp_if omap2420_l4_core__mcspi1
= {
126 .master
= &omap2420_l4_core_hwmod
,
127 .slave
= &omap2420_mcspi1_hwmod
,
129 .addr
= omap2420_mcspi1_addr_space
,
130 .addr_cnt
= ARRAY_SIZE(omap2420_mcspi1_addr_space
),
131 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
134 /* l4 core -> mcspi2 interface */
135 static struct omap_hwmod_addr_space omap2420_mcspi2_addr_space
[] = {
137 .pa_start
= 0x4809a000,
138 .pa_end
= 0x4809a0ff,
139 .flags
= ADDR_TYPE_RT
,
143 static struct omap_hwmod_ocp_if omap2420_l4_core__mcspi2
= {
144 .master
= &omap2420_l4_core_hwmod
,
145 .slave
= &omap2420_mcspi2_hwmod
,
147 .addr
= omap2420_mcspi2_addr_space
,
148 .addr_cnt
= ARRAY_SIZE(omap2420_mcspi2_addr_space
),
149 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
152 /* L4_CORE -> L4_WKUP interface */
153 static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup
= {
154 .master
= &omap2420_l4_core_hwmod
,
155 .slave
= &omap2420_l4_wkup_hwmod
,
156 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
159 /* L4 CORE -> UART1 interface */
160 static struct omap_hwmod_addr_space omap2420_uart1_addr_space
[] = {
162 .pa_start
= OMAP2_UART1_BASE
,
163 .pa_end
= OMAP2_UART1_BASE
+ SZ_8K
- 1,
164 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
168 static struct omap_hwmod_ocp_if omap2_l4_core__uart1
= {
169 .master
= &omap2420_l4_core_hwmod
,
170 .slave
= &omap2420_uart1_hwmod
,
172 .addr
= omap2420_uart1_addr_space
,
173 .addr_cnt
= ARRAY_SIZE(omap2420_uart1_addr_space
),
174 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
177 /* L4 CORE -> UART2 interface */
178 static struct omap_hwmod_addr_space omap2420_uart2_addr_space
[] = {
180 .pa_start
= OMAP2_UART2_BASE
,
181 .pa_end
= OMAP2_UART2_BASE
+ SZ_1K
- 1,
182 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
186 static struct omap_hwmod_ocp_if omap2_l4_core__uart2
= {
187 .master
= &omap2420_l4_core_hwmod
,
188 .slave
= &omap2420_uart2_hwmod
,
190 .addr
= omap2420_uart2_addr_space
,
191 .addr_cnt
= ARRAY_SIZE(omap2420_uart2_addr_space
),
192 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
195 /* L4 PER -> UART3 interface */
196 static struct omap_hwmod_addr_space omap2420_uart3_addr_space
[] = {
198 .pa_start
= OMAP2_UART3_BASE
,
199 .pa_end
= OMAP2_UART3_BASE
+ SZ_1K
- 1,
200 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
204 static struct omap_hwmod_ocp_if omap2_l4_core__uart3
= {
205 .master
= &omap2420_l4_core_hwmod
,
206 .slave
= &omap2420_uart3_hwmod
,
208 .addr
= omap2420_uart3_addr_space
,
209 .addr_cnt
= ARRAY_SIZE(omap2420_uart3_addr_space
),
210 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
213 /* I2C IP block address space length (in bytes) */
214 #define OMAP2_I2C_AS_LEN 128
216 /* L4 CORE -> I2C1 interface */
217 static struct omap_hwmod_addr_space omap2420_i2c1_addr_space
[] = {
219 .pa_start
= 0x48070000,
220 .pa_end
= 0x48070000 + OMAP2_I2C_AS_LEN
- 1,
221 .flags
= ADDR_TYPE_RT
,
225 static struct omap_hwmod_ocp_if omap2420_l4_core__i2c1
= {
226 .master
= &omap2420_l4_core_hwmod
,
227 .slave
= &omap2420_i2c1_hwmod
,
229 .addr
= omap2420_i2c1_addr_space
,
230 .addr_cnt
= ARRAY_SIZE(omap2420_i2c1_addr_space
),
231 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
234 /* L4 CORE -> I2C2 interface */
235 static struct omap_hwmod_addr_space omap2420_i2c2_addr_space
[] = {
237 .pa_start
= 0x48072000,
238 .pa_end
= 0x48072000 + OMAP2_I2C_AS_LEN
- 1,
239 .flags
= ADDR_TYPE_RT
,
243 static struct omap_hwmod_ocp_if omap2420_l4_core__i2c2
= {
244 .master
= &omap2420_l4_core_hwmod
,
245 .slave
= &omap2420_i2c2_hwmod
,
247 .addr
= omap2420_i2c2_addr_space
,
248 .addr_cnt
= ARRAY_SIZE(omap2420_i2c2_addr_space
),
249 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
252 /* Slave interfaces on the L4_CORE interconnect */
253 static struct omap_hwmod_ocp_if
*omap2420_l4_core_slaves
[] = {
254 &omap2420_l3_main__l4_core
,
257 /* Master interfaces on the L4_CORE interconnect */
258 static struct omap_hwmod_ocp_if
*omap2420_l4_core_masters
[] = {
259 &omap2420_l4_core__l4_wkup
,
260 &omap2_l4_core__uart1
,
261 &omap2_l4_core__uart2
,
262 &omap2_l4_core__uart3
,
263 &omap2420_l4_core__i2c1
,
264 &omap2420_l4_core__i2c2
268 static struct omap_hwmod omap2420_l4_core_hwmod
= {
270 .class = &l4_hwmod_class
,
271 .masters
= omap2420_l4_core_masters
,
272 .masters_cnt
= ARRAY_SIZE(omap2420_l4_core_masters
),
273 .slaves
= omap2420_l4_core_slaves
,
274 .slaves_cnt
= ARRAY_SIZE(omap2420_l4_core_slaves
),
275 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
276 .flags
= HWMOD_NO_IDLEST
,
279 /* Slave interfaces on the L4_WKUP interconnect */
280 static struct omap_hwmod_ocp_if
*omap2420_l4_wkup_slaves
[] = {
281 &omap2420_l4_core__l4_wkup
,
284 /* Master interfaces on the L4_WKUP interconnect */
285 static struct omap_hwmod_ocp_if
*omap2420_l4_wkup_masters
[] = {
289 static struct omap_hwmod omap2420_l4_wkup_hwmod
= {
291 .class = &l4_hwmod_class
,
292 .masters
= omap2420_l4_wkup_masters
,
293 .masters_cnt
= ARRAY_SIZE(omap2420_l4_wkup_masters
),
294 .slaves
= omap2420_l4_wkup_slaves
,
295 .slaves_cnt
= ARRAY_SIZE(omap2420_l4_wkup_slaves
),
296 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
297 .flags
= HWMOD_NO_IDLEST
,
300 /* Master interfaces on the MPU device */
301 static struct omap_hwmod_ocp_if
*omap2420_mpu_masters
[] = {
302 &omap2420_mpu__l3_main
,
306 static struct omap_hwmod omap2420_mpu_hwmod
= {
308 .class = &mpu_hwmod_class
,
309 .main_clk
= "mpu_ck",
310 .masters
= omap2420_mpu_masters
,
311 .masters_cnt
= ARRAY_SIZE(omap2420_mpu_masters
),
312 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
316 * IVA1 interface data
319 /* IVA <- L3 interface */
320 static struct omap_hwmod_ocp_if omap2420_l3__iva
= {
321 .master
= &omap2420_l3_main_hwmod
,
322 .slave
= &omap2420_iva_hwmod
,
324 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
327 static struct omap_hwmod_ocp_if
*omap2420_iva_masters
[] = {
335 static struct omap_hwmod omap2420_iva_hwmod
= {
337 .class = &iva_hwmod_class
,
338 .masters
= omap2420_iva_masters
,
339 .masters_cnt
= ARRAY_SIZE(omap2420_iva_masters
),
340 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
344 static struct omap_hwmod_class_sysconfig omap2420_timer_sysc
= {
348 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
349 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
351 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
352 .sysc_fields
= &omap_hwmod_sysc_type1
,
355 static struct omap_hwmod_class omap2420_timer_hwmod_class
= {
357 .sysc
= &omap2420_timer_sysc
,
358 .rev
= OMAP_TIMER_IP_VERSION_1
,
362 static struct omap_hwmod omap2420_timer1_hwmod
;
363 static struct omap_hwmod_irq_info omap2420_timer1_mpu_irqs
[] = {
367 static struct omap_hwmod_addr_space omap2420_timer1_addrs
[] = {
369 .pa_start
= 0x48028000,
370 .pa_end
= 0x48028000 + SZ_1K
- 1,
371 .flags
= ADDR_TYPE_RT
375 /* l4_wkup -> timer1 */
376 static struct omap_hwmod_ocp_if omap2420_l4_wkup__timer1
= {
377 .master
= &omap2420_l4_wkup_hwmod
,
378 .slave
= &omap2420_timer1_hwmod
,
380 .addr
= omap2420_timer1_addrs
,
381 .addr_cnt
= ARRAY_SIZE(omap2420_timer1_addrs
),
382 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
385 /* timer1 slave port */
386 static struct omap_hwmod_ocp_if
*omap2420_timer1_slaves
[] = {
387 &omap2420_l4_wkup__timer1
,
391 static struct omap_hwmod omap2420_timer1_hwmod
= {
393 .mpu_irqs
= omap2420_timer1_mpu_irqs
,
394 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer1_mpu_irqs
),
395 .main_clk
= "gpt1_fck",
399 .module_bit
= OMAP24XX_EN_GPT1_SHIFT
,
400 .module_offs
= WKUP_MOD
,
402 .idlest_idle_bit
= OMAP24XX_ST_GPT1_SHIFT
,
405 .slaves
= omap2420_timer1_slaves
,
406 .slaves_cnt
= ARRAY_SIZE(omap2420_timer1_slaves
),
407 .class = &omap2420_timer_hwmod_class
,
408 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
412 static struct omap_hwmod omap2420_timer2_hwmod
;
413 static struct omap_hwmod_irq_info omap2420_timer2_mpu_irqs
[] = {
417 static struct omap_hwmod_addr_space omap2420_timer2_addrs
[] = {
419 .pa_start
= 0x4802a000,
420 .pa_end
= 0x4802a000 + SZ_1K
- 1,
421 .flags
= ADDR_TYPE_RT
425 /* l4_core -> timer2 */
426 static struct omap_hwmod_ocp_if omap2420_l4_core__timer2
= {
427 .master
= &omap2420_l4_core_hwmod
,
428 .slave
= &omap2420_timer2_hwmod
,
430 .addr
= omap2420_timer2_addrs
,
431 .addr_cnt
= ARRAY_SIZE(omap2420_timer2_addrs
),
432 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
435 /* timer2 slave port */
436 static struct omap_hwmod_ocp_if
*omap2420_timer2_slaves
[] = {
437 &omap2420_l4_core__timer2
,
441 static struct omap_hwmod omap2420_timer2_hwmod
= {
443 .mpu_irqs
= omap2420_timer2_mpu_irqs
,
444 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer2_mpu_irqs
),
445 .main_clk
= "gpt2_fck",
449 .module_bit
= OMAP24XX_EN_GPT2_SHIFT
,
450 .module_offs
= CORE_MOD
,
452 .idlest_idle_bit
= OMAP24XX_ST_GPT2_SHIFT
,
455 .slaves
= omap2420_timer2_slaves
,
456 .slaves_cnt
= ARRAY_SIZE(omap2420_timer2_slaves
),
457 .class = &omap2420_timer_hwmod_class
,
458 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
462 static struct omap_hwmod omap2420_timer3_hwmod
;
463 static struct omap_hwmod_irq_info omap2420_timer3_mpu_irqs
[] = {
467 static struct omap_hwmod_addr_space omap2420_timer3_addrs
[] = {
469 .pa_start
= 0x48078000,
470 .pa_end
= 0x48078000 + SZ_1K
- 1,
471 .flags
= ADDR_TYPE_RT
475 /* l4_core -> timer3 */
476 static struct omap_hwmod_ocp_if omap2420_l4_core__timer3
= {
477 .master
= &omap2420_l4_core_hwmod
,
478 .slave
= &omap2420_timer3_hwmod
,
480 .addr
= omap2420_timer3_addrs
,
481 .addr_cnt
= ARRAY_SIZE(omap2420_timer3_addrs
),
482 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
485 /* timer3 slave port */
486 static struct omap_hwmod_ocp_if
*omap2420_timer3_slaves
[] = {
487 &omap2420_l4_core__timer3
,
491 static struct omap_hwmod omap2420_timer3_hwmod
= {
493 .mpu_irqs
= omap2420_timer3_mpu_irqs
,
494 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer3_mpu_irqs
),
495 .main_clk
= "gpt3_fck",
499 .module_bit
= OMAP24XX_EN_GPT3_SHIFT
,
500 .module_offs
= CORE_MOD
,
502 .idlest_idle_bit
= OMAP24XX_ST_GPT3_SHIFT
,
505 .slaves
= omap2420_timer3_slaves
,
506 .slaves_cnt
= ARRAY_SIZE(omap2420_timer3_slaves
),
507 .class = &omap2420_timer_hwmod_class
,
508 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
512 static struct omap_hwmod omap2420_timer4_hwmod
;
513 static struct omap_hwmod_irq_info omap2420_timer4_mpu_irqs
[] = {
517 static struct omap_hwmod_addr_space omap2420_timer4_addrs
[] = {
519 .pa_start
= 0x4807a000,
520 .pa_end
= 0x4807a000 + SZ_1K
- 1,
521 .flags
= ADDR_TYPE_RT
525 /* l4_core -> timer4 */
526 static struct omap_hwmod_ocp_if omap2420_l4_core__timer4
= {
527 .master
= &omap2420_l4_core_hwmod
,
528 .slave
= &omap2420_timer4_hwmod
,
530 .addr
= omap2420_timer4_addrs
,
531 .addr_cnt
= ARRAY_SIZE(omap2420_timer4_addrs
),
532 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
535 /* timer4 slave port */
536 static struct omap_hwmod_ocp_if
*omap2420_timer4_slaves
[] = {
537 &omap2420_l4_core__timer4
,
541 static struct omap_hwmod omap2420_timer4_hwmod
= {
543 .mpu_irqs
= omap2420_timer4_mpu_irqs
,
544 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer4_mpu_irqs
),
545 .main_clk
= "gpt4_fck",
549 .module_bit
= OMAP24XX_EN_GPT4_SHIFT
,
550 .module_offs
= CORE_MOD
,
552 .idlest_idle_bit
= OMAP24XX_ST_GPT4_SHIFT
,
555 .slaves
= omap2420_timer4_slaves
,
556 .slaves_cnt
= ARRAY_SIZE(omap2420_timer4_slaves
),
557 .class = &omap2420_timer_hwmod_class
,
558 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
562 static struct omap_hwmod omap2420_timer5_hwmod
;
563 static struct omap_hwmod_irq_info omap2420_timer5_mpu_irqs
[] = {
567 static struct omap_hwmod_addr_space omap2420_timer5_addrs
[] = {
569 .pa_start
= 0x4807c000,
570 .pa_end
= 0x4807c000 + SZ_1K
- 1,
571 .flags
= ADDR_TYPE_RT
575 /* l4_core -> timer5 */
576 static struct omap_hwmod_ocp_if omap2420_l4_core__timer5
= {
577 .master
= &omap2420_l4_core_hwmod
,
578 .slave
= &omap2420_timer5_hwmod
,
580 .addr
= omap2420_timer5_addrs
,
581 .addr_cnt
= ARRAY_SIZE(omap2420_timer5_addrs
),
582 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
585 /* timer5 slave port */
586 static struct omap_hwmod_ocp_if
*omap2420_timer5_slaves
[] = {
587 &omap2420_l4_core__timer5
,
591 static struct omap_hwmod omap2420_timer5_hwmod
= {
593 .mpu_irqs
= omap2420_timer5_mpu_irqs
,
594 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer5_mpu_irqs
),
595 .main_clk
= "gpt5_fck",
599 .module_bit
= OMAP24XX_EN_GPT5_SHIFT
,
600 .module_offs
= CORE_MOD
,
602 .idlest_idle_bit
= OMAP24XX_ST_GPT5_SHIFT
,
605 .slaves
= omap2420_timer5_slaves
,
606 .slaves_cnt
= ARRAY_SIZE(omap2420_timer5_slaves
),
607 .class = &omap2420_timer_hwmod_class
,
608 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
613 static struct omap_hwmod omap2420_timer6_hwmod
;
614 static struct omap_hwmod_irq_info omap2420_timer6_mpu_irqs
[] = {
618 static struct omap_hwmod_addr_space omap2420_timer6_addrs
[] = {
620 .pa_start
= 0x4807e000,
621 .pa_end
= 0x4807e000 + SZ_1K
- 1,
622 .flags
= ADDR_TYPE_RT
626 /* l4_core -> timer6 */
627 static struct omap_hwmod_ocp_if omap2420_l4_core__timer6
= {
628 .master
= &omap2420_l4_core_hwmod
,
629 .slave
= &omap2420_timer6_hwmod
,
631 .addr
= omap2420_timer6_addrs
,
632 .addr_cnt
= ARRAY_SIZE(omap2420_timer6_addrs
),
633 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
636 /* timer6 slave port */
637 static struct omap_hwmod_ocp_if
*omap2420_timer6_slaves
[] = {
638 &omap2420_l4_core__timer6
,
642 static struct omap_hwmod omap2420_timer6_hwmod
= {
644 .mpu_irqs
= omap2420_timer6_mpu_irqs
,
645 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer6_mpu_irqs
),
646 .main_clk
= "gpt6_fck",
650 .module_bit
= OMAP24XX_EN_GPT6_SHIFT
,
651 .module_offs
= CORE_MOD
,
653 .idlest_idle_bit
= OMAP24XX_ST_GPT6_SHIFT
,
656 .slaves
= omap2420_timer6_slaves
,
657 .slaves_cnt
= ARRAY_SIZE(omap2420_timer6_slaves
),
658 .class = &omap2420_timer_hwmod_class
,
659 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
663 static struct omap_hwmod omap2420_timer7_hwmod
;
664 static struct omap_hwmod_irq_info omap2420_timer7_mpu_irqs
[] = {
668 static struct omap_hwmod_addr_space omap2420_timer7_addrs
[] = {
670 .pa_start
= 0x48080000,
671 .pa_end
= 0x48080000 + SZ_1K
- 1,
672 .flags
= ADDR_TYPE_RT
676 /* l4_core -> timer7 */
677 static struct omap_hwmod_ocp_if omap2420_l4_core__timer7
= {
678 .master
= &omap2420_l4_core_hwmod
,
679 .slave
= &omap2420_timer7_hwmod
,
681 .addr
= omap2420_timer7_addrs
,
682 .addr_cnt
= ARRAY_SIZE(omap2420_timer7_addrs
),
683 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
686 /* timer7 slave port */
687 static struct omap_hwmod_ocp_if
*omap2420_timer7_slaves
[] = {
688 &omap2420_l4_core__timer7
,
692 static struct omap_hwmod omap2420_timer7_hwmod
= {
694 .mpu_irqs
= omap2420_timer7_mpu_irqs
,
695 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer7_mpu_irqs
),
696 .main_clk
= "gpt7_fck",
700 .module_bit
= OMAP24XX_EN_GPT7_SHIFT
,
701 .module_offs
= CORE_MOD
,
703 .idlest_idle_bit
= OMAP24XX_ST_GPT7_SHIFT
,
706 .slaves
= omap2420_timer7_slaves
,
707 .slaves_cnt
= ARRAY_SIZE(omap2420_timer7_slaves
),
708 .class = &omap2420_timer_hwmod_class
,
709 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
713 static struct omap_hwmod omap2420_timer8_hwmod
;
714 static struct omap_hwmod_irq_info omap2420_timer8_mpu_irqs
[] = {
718 static struct omap_hwmod_addr_space omap2420_timer8_addrs
[] = {
720 .pa_start
= 0x48082000,
721 .pa_end
= 0x48082000 + SZ_1K
- 1,
722 .flags
= ADDR_TYPE_RT
726 /* l4_core -> timer8 */
727 static struct omap_hwmod_ocp_if omap2420_l4_core__timer8
= {
728 .master
= &omap2420_l4_core_hwmod
,
729 .slave
= &omap2420_timer8_hwmod
,
731 .addr
= omap2420_timer8_addrs
,
732 .addr_cnt
= ARRAY_SIZE(omap2420_timer8_addrs
),
733 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
736 /* timer8 slave port */
737 static struct omap_hwmod_ocp_if
*omap2420_timer8_slaves
[] = {
738 &omap2420_l4_core__timer8
,
742 static struct omap_hwmod omap2420_timer8_hwmod
= {
744 .mpu_irqs
= omap2420_timer8_mpu_irqs
,
745 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer8_mpu_irqs
),
746 .main_clk
= "gpt8_fck",
750 .module_bit
= OMAP24XX_EN_GPT8_SHIFT
,
751 .module_offs
= CORE_MOD
,
753 .idlest_idle_bit
= OMAP24XX_ST_GPT8_SHIFT
,
756 .slaves
= omap2420_timer8_slaves
,
757 .slaves_cnt
= ARRAY_SIZE(omap2420_timer8_slaves
),
758 .class = &omap2420_timer_hwmod_class
,
759 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
763 static struct omap_hwmod omap2420_timer9_hwmod
;
764 static struct omap_hwmod_irq_info omap2420_timer9_mpu_irqs
[] = {
768 static struct omap_hwmod_addr_space omap2420_timer9_addrs
[] = {
770 .pa_start
= 0x48084000,
771 .pa_end
= 0x48084000 + SZ_1K
- 1,
772 .flags
= ADDR_TYPE_RT
776 /* l4_core -> timer9 */
777 static struct omap_hwmod_ocp_if omap2420_l4_core__timer9
= {
778 .master
= &omap2420_l4_core_hwmod
,
779 .slave
= &omap2420_timer9_hwmod
,
781 .addr
= omap2420_timer9_addrs
,
782 .addr_cnt
= ARRAY_SIZE(omap2420_timer9_addrs
),
783 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
786 /* timer9 slave port */
787 static struct omap_hwmod_ocp_if
*omap2420_timer9_slaves
[] = {
788 &omap2420_l4_core__timer9
,
792 static struct omap_hwmod omap2420_timer9_hwmod
= {
794 .mpu_irqs
= omap2420_timer9_mpu_irqs
,
795 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer9_mpu_irqs
),
796 .main_clk
= "gpt9_fck",
800 .module_bit
= OMAP24XX_EN_GPT9_SHIFT
,
801 .module_offs
= CORE_MOD
,
803 .idlest_idle_bit
= OMAP24XX_ST_GPT9_SHIFT
,
806 .slaves
= omap2420_timer9_slaves
,
807 .slaves_cnt
= ARRAY_SIZE(omap2420_timer9_slaves
),
808 .class = &omap2420_timer_hwmod_class
,
809 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
813 static struct omap_hwmod omap2420_timer10_hwmod
;
814 static struct omap_hwmod_irq_info omap2420_timer10_mpu_irqs
[] = {
818 static struct omap_hwmod_addr_space omap2420_timer10_addrs
[] = {
820 .pa_start
= 0x48086000,
821 .pa_end
= 0x48086000 + SZ_1K
- 1,
822 .flags
= ADDR_TYPE_RT
826 /* l4_core -> timer10 */
827 static struct omap_hwmod_ocp_if omap2420_l4_core__timer10
= {
828 .master
= &omap2420_l4_core_hwmod
,
829 .slave
= &omap2420_timer10_hwmod
,
831 .addr
= omap2420_timer10_addrs
,
832 .addr_cnt
= ARRAY_SIZE(omap2420_timer10_addrs
),
833 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
836 /* timer10 slave port */
837 static struct omap_hwmod_ocp_if
*omap2420_timer10_slaves
[] = {
838 &omap2420_l4_core__timer10
,
842 static struct omap_hwmod omap2420_timer10_hwmod
= {
844 .mpu_irqs
= omap2420_timer10_mpu_irqs
,
845 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer10_mpu_irqs
),
846 .main_clk
= "gpt10_fck",
850 .module_bit
= OMAP24XX_EN_GPT10_SHIFT
,
851 .module_offs
= CORE_MOD
,
853 .idlest_idle_bit
= OMAP24XX_ST_GPT10_SHIFT
,
856 .slaves
= omap2420_timer10_slaves
,
857 .slaves_cnt
= ARRAY_SIZE(omap2420_timer10_slaves
),
858 .class = &omap2420_timer_hwmod_class
,
859 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
863 static struct omap_hwmod omap2420_timer11_hwmod
;
864 static struct omap_hwmod_irq_info omap2420_timer11_mpu_irqs
[] = {
868 static struct omap_hwmod_addr_space omap2420_timer11_addrs
[] = {
870 .pa_start
= 0x48088000,
871 .pa_end
= 0x48088000 + SZ_1K
- 1,
872 .flags
= ADDR_TYPE_RT
876 /* l4_core -> timer11 */
877 static struct omap_hwmod_ocp_if omap2420_l4_core__timer11
= {
878 .master
= &omap2420_l4_core_hwmod
,
879 .slave
= &omap2420_timer11_hwmod
,
881 .addr
= omap2420_timer11_addrs
,
882 .addr_cnt
= ARRAY_SIZE(omap2420_timer11_addrs
),
883 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
886 /* timer11 slave port */
887 static struct omap_hwmod_ocp_if
*omap2420_timer11_slaves
[] = {
888 &omap2420_l4_core__timer11
,
892 static struct omap_hwmod omap2420_timer11_hwmod
= {
894 .mpu_irqs
= omap2420_timer11_mpu_irqs
,
895 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer11_mpu_irqs
),
896 .main_clk
= "gpt11_fck",
900 .module_bit
= OMAP24XX_EN_GPT11_SHIFT
,
901 .module_offs
= CORE_MOD
,
903 .idlest_idle_bit
= OMAP24XX_ST_GPT11_SHIFT
,
906 .slaves
= omap2420_timer11_slaves
,
907 .slaves_cnt
= ARRAY_SIZE(omap2420_timer11_slaves
),
908 .class = &omap2420_timer_hwmod_class
,
909 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
913 static struct omap_hwmod omap2420_timer12_hwmod
;
914 static struct omap_hwmod_irq_info omap2420_timer12_mpu_irqs
[] = {
918 static struct omap_hwmod_addr_space omap2420_timer12_addrs
[] = {
920 .pa_start
= 0x4808a000,
921 .pa_end
= 0x4808a000 + SZ_1K
- 1,
922 .flags
= ADDR_TYPE_RT
926 /* l4_core -> timer12 */
927 static struct omap_hwmod_ocp_if omap2420_l4_core__timer12
= {
928 .master
= &omap2420_l4_core_hwmod
,
929 .slave
= &omap2420_timer12_hwmod
,
931 .addr
= omap2420_timer12_addrs
,
932 .addr_cnt
= ARRAY_SIZE(omap2420_timer12_addrs
),
933 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
936 /* timer12 slave port */
937 static struct omap_hwmod_ocp_if
*omap2420_timer12_slaves
[] = {
938 &omap2420_l4_core__timer12
,
942 static struct omap_hwmod omap2420_timer12_hwmod
= {
944 .mpu_irqs
= omap2420_timer12_mpu_irqs
,
945 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_timer12_mpu_irqs
),
946 .main_clk
= "gpt12_fck",
950 .module_bit
= OMAP24XX_EN_GPT12_SHIFT
,
951 .module_offs
= CORE_MOD
,
953 .idlest_idle_bit
= OMAP24XX_ST_GPT12_SHIFT
,
956 .slaves
= omap2420_timer12_slaves
,
957 .slaves_cnt
= ARRAY_SIZE(omap2420_timer12_slaves
),
958 .class = &omap2420_timer_hwmod_class
,
959 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
962 /* l4_wkup -> wd_timer2 */
963 static struct omap_hwmod_addr_space omap2420_wd_timer2_addrs
[] = {
965 .pa_start
= 0x48022000,
966 .pa_end
= 0x4802207f,
967 .flags
= ADDR_TYPE_RT
971 static struct omap_hwmod_ocp_if omap2420_l4_wkup__wd_timer2
= {
972 .master
= &omap2420_l4_wkup_hwmod
,
973 .slave
= &omap2420_wd_timer2_hwmod
,
974 .clk
= "mpu_wdt_ick",
975 .addr
= omap2420_wd_timer2_addrs
,
976 .addr_cnt
= ARRAY_SIZE(omap2420_wd_timer2_addrs
),
977 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
982 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
986 static struct omap_hwmod_class_sysconfig omap2420_wd_timer_sysc
= {
990 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SOFTRESET
|
991 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
992 .sysc_fields
= &omap_hwmod_sysc_type1
,
995 static struct omap_hwmod_class omap2420_wd_timer_hwmod_class
= {
997 .sysc
= &omap2420_wd_timer_sysc
,
998 .pre_shutdown
= &omap2_wd_timer_disable
1002 static struct omap_hwmod_ocp_if
*omap2420_wd_timer2_slaves
[] = {
1003 &omap2420_l4_wkup__wd_timer2
,
1006 static struct omap_hwmod omap2420_wd_timer2_hwmod
= {
1007 .name
= "wd_timer2",
1008 .class = &omap2420_wd_timer_hwmod_class
,
1009 .main_clk
= "mpu_wdt_fck",
1013 .module_bit
= OMAP24XX_EN_MPU_WDT_SHIFT
,
1014 .module_offs
= WKUP_MOD
,
1016 .idlest_idle_bit
= OMAP24XX_ST_MPU_WDT_SHIFT
,
1019 .slaves
= omap2420_wd_timer2_slaves
,
1020 .slaves_cnt
= ARRAY_SIZE(omap2420_wd_timer2_slaves
),
1021 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1026 static struct omap_hwmod_class_sysconfig uart_sysc
= {
1030 .sysc_flags
= (SYSC_HAS_SIDLEMODE
|
1031 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1032 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1033 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1034 .sysc_fields
= &omap_hwmod_sysc_type1
,
1037 static struct omap_hwmod_class uart_class
= {
1044 static struct omap_hwmod_irq_info uart1_mpu_irqs
[] = {
1045 { .irq
= INT_24XX_UART1_IRQ
, },
1048 static struct omap_hwmod_dma_info uart1_sdma_reqs
[] = {
1049 { .name
= "rx", .dma_req
= OMAP24XX_DMA_UART1_RX
, },
1050 { .name
= "tx", .dma_req
= OMAP24XX_DMA_UART1_TX
, },
1053 static struct omap_hwmod_ocp_if
*omap2420_uart1_slaves
[] = {
1054 &omap2_l4_core__uart1
,
1057 static struct omap_hwmod omap2420_uart1_hwmod
= {
1059 .mpu_irqs
= uart1_mpu_irqs
,
1060 .mpu_irqs_cnt
= ARRAY_SIZE(uart1_mpu_irqs
),
1061 .sdma_reqs
= uart1_sdma_reqs
,
1062 .sdma_reqs_cnt
= ARRAY_SIZE(uart1_sdma_reqs
),
1063 .main_clk
= "uart1_fck",
1066 .module_offs
= CORE_MOD
,
1068 .module_bit
= OMAP24XX_EN_UART1_SHIFT
,
1070 .idlest_idle_bit
= OMAP24XX_EN_UART1_SHIFT
,
1073 .slaves
= omap2420_uart1_slaves
,
1074 .slaves_cnt
= ARRAY_SIZE(omap2420_uart1_slaves
),
1075 .class = &uart_class
,
1076 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1081 static struct omap_hwmod_irq_info uart2_mpu_irqs
[] = {
1082 { .irq
= INT_24XX_UART2_IRQ
, },
1085 static struct omap_hwmod_dma_info uart2_sdma_reqs
[] = {
1086 { .name
= "rx", .dma_req
= OMAP24XX_DMA_UART2_RX
, },
1087 { .name
= "tx", .dma_req
= OMAP24XX_DMA_UART2_TX
, },
1090 static struct omap_hwmod_ocp_if
*omap2420_uart2_slaves
[] = {
1091 &omap2_l4_core__uart2
,
1094 static struct omap_hwmod omap2420_uart2_hwmod
= {
1096 .mpu_irqs
= uart2_mpu_irqs
,
1097 .mpu_irqs_cnt
= ARRAY_SIZE(uart2_mpu_irqs
),
1098 .sdma_reqs
= uart2_sdma_reqs
,
1099 .sdma_reqs_cnt
= ARRAY_SIZE(uart2_sdma_reqs
),
1100 .main_clk
= "uart2_fck",
1103 .module_offs
= CORE_MOD
,
1105 .module_bit
= OMAP24XX_EN_UART2_SHIFT
,
1107 .idlest_idle_bit
= OMAP24XX_EN_UART2_SHIFT
,
1110 .slaves
= omap2420_uart2_slaves
,
1111 .slaves_cnt
= ARRAY_SIZE(omap2420_uart2_slaves
),
1112 .class = &uart_class
,
1113 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1118 static struct omap_hwmod_irq_info uart3_mpu_irqs
[] = {
1119 { .irq
= INT_24XX_UART3_IRQ
, },
1122 static struct omap_hwmod_dma_info uart3_sdma_reqs
[] = {
1123 { .name
= "rx", .dma_req
= OMAP24XX_DMA_UART3_RX
, },
1124 { .name
= "tx", .dma_req
= OMAP24XX_DMA_UART3_TX
, },
1127 static struct omap_hwmod_ocp_if
*omap2420_uart3_slaves
[] = {
1128 &omap2_l4_core__uart3
,
1131 static struct omap_hwmod omap2420_uart3_hwmod
= {
1133 .mpu_irqs
= uart3_mpu_irqs
,
1134 .mpu_irqs_cnt
= ARRAY_SIZE(uart3_mpu_irqs
),
1135 .sdma_reqs
= uart3_sdma_reqs
,
1136 .sdma_reqs_cnt
= ARRAY_SIZE(uart3_sdma_reqs
),
1137 .main_clk
= "uart3_fck",
1140 .module_offs
= CORE_MOD
,
1142 .module_bit
= OMAP24XX_EN_UART3_SHIFT
,
1144 .idlest_idle_bit
= OMAP24XX_EN_UART3_SHIFT
,
1147 .slaves
= omap2420_uart3_slaves
,
1148 .slaves_cnt
= ARRAY_SIZE(omap2420_uart3_slaves
),
1149 .class = &uart_class
,
1150 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1155 * display sub-system
1158 static struct omap_hwmod_class_sysconfig omap2420_dss_sysc
= {
1160 .sysc_offs
= 0x0010,
1161 .syss_offs
= 0x0014,
1162 .sysc_flags
= (SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1163 .sysc_fields
= &omap_hwmod_sysc_type1
,
1166 static struct omap_hwmod_class omap2420_dss_hwmod_class
= {
1168 .sysc
= &omap2420_dss_sysc
,
1171 static struct omap_hwmod_dma_info omap2420_dss_sdma_chs
[] = {
1172 { .name
= "dispc", .dma_req
= 5 },
1176 /* dss master ports */
1177 static struct omap_hwmod_ocp_if
*omap2420_dss_masters
[] = {
1181 static struct omap_hwmod_addr_space omap2420_dss_addrs
[] = {
1183 .pa_start
= 0x48050000,
1184 .pa_end
= 0x480503FF,
1185 .flags
= ADDR_TYPE_RT
1189 /* l4_core -> dss */
1190 static struct omap_hwmod_ocp_if omap2420_l4_core__dss
= {
1191 .master
= &omap2420_l4_core_hwmod
,
1192 .slave
= &omap2420_dss_core_hwmod
,
1194 .addr
= omap2420_dss_addrs
,
1195 .addr_cnt
= ARRAY_SIZE(omap2420_dss_addrs
),
1198 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_CORE_REGION
,
1199 .flags
= OMAP_FIREWALL_L4
,
1202 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1205 /* dss slave ports */
1206 static struct omap_hwmod_ocp_if
*omap2420_dss_slaves
[] = {
1207 &omap2420_l4_core__dss
,
1210 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
1211 { .role
= "dss_clk", .clk
= "dss1_fck" },
1212 { .role
= "tv_clk", .clk
= "dss_54m_fck" },
1213 { .role
= "sys_clk", .clk
= "dss2_fck" },
1216 static struct omap_hwmod omap2420_dss_core_hwmod
= {
1218 .class = &omap2420_dss_hwmod_class
,
1219 .main_clk
= "dss1_fck", /* instead of dss_fck */
1220 .sdma_reqs
= omap2420_dss_sdma_chs
,
1221 .sdma_reqs_cnt
= ARRAY_SIZE(omap2420_dss_sdma_chs
),
1225 .module_bit
= OMAP24XX_EN_DSS1_SHIFT
,
1226 .module_offs
= CORE_MOD
,
1228 .idlest_stdby_bit
= OMAP24XX_ST_DSS_SHIFT
,
1231 .opt_clks
= dss_opt_clks
,
1232 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
1233 .slaves
= omap2420_dss_slaves
,
1234 .slaves_cnt
= ARRAY_SIZE(omap2420_dss_slaves
),
1235 .masters
= omap2420_dss_masters
,
1236 .masters_cnt
= ARRAY_SIZE(omap2420_dss_masters
),
1237 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1238 .flags
= HWMOD_NO_IDLEST
,
1243 * display controller
1246 static struct omap_hwmod_class_sysconfig omap2420_dispc_sysc
= {
1248 .sysc_offs
= 0x0010,
1249 .syss_offs
= 0x0014,
1250 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
1251 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1252 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1253 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1254 .sysc_fields
= &omap_hwmod_sysc_type1
,
1257 static struct omap_hwmod_class omap2420_dispc_hwmod_class
= {
1259 .sysc
= &omap2420_dispc_sysc
,
1262 static struct omap_hwmod_irq_info omap2420_dispc_irqs
[] = {
1266 static struct omap_hwmod_addr_space omap2420_dss_dispc_addrs
[] = {
1268 .pa_start
= 0x48050400,
1269 .pa_end
= 0x480507FF,
1270 .flags
= ADDR_TYPE_RT
1274 /* l4_core -> dss_dispc */
1275 static struct omap_hwmod_ocp_if omap2420_l4_core__dss_dispc
= {
1276 .master
= &omap2420_l4_core_hwmod
,
1277 .slave
= &omap2420_dss_dispc_hwmod
,
1279 .addr
= omap2420_dss_dispc_addrs
,
1280 .addr_cnt
= ARRAY_SIZE(omap2420_dss_dispc_addrs
),
1283 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_DISPC_REGION
,
1284 .flags
= OMAP_FIREWALL_L4
,
1287 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1290 /* dss_dispc slave ports */
1291 static struct omap_hwmod_ocp_if
*omap2420_dss_dispc_slaves
[] = {
1292 &omap2420_l4_core__dss_dispc
,
1295 static struct omap_hwmod_opt_clk dispc_opt_clks
[] = {
1296 { .role
= "dss_clk", .clk
= "dss1_fck" },
1299 static struct omap_hwmod omap2420_dss_dispc_hwmod
= {
1300 .name
= "dss_dispc",
1301 .class = &omap2420_dispc_hwmod_class
,
1302 .mpu_irqs
= omap2420_dispc_irqs
,
1303 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_dispc_irqs
),
1304 .main_clk
= "dss1_fck",
1308 .module_bit
= OMAP24XX_EN_DSS1_SHIFT
,
1309 .module_offs
= CORE_MOD
,
1311 .idlest_stdby_bit
= OMAP24XX_ST_DSS_SHIFT
,
1314 .opt_clks
= dispc_opt_clks
,
1315 .opt_clks_cnt
= ARRAY_SIZE(dispc_opt_clks
),
1316 .slaves
= omap2420_dss_dispc_slaves
,
1317 .slaves_cnt
= ARRAY_SIZE(omap2420_dss_dispc_slaves
),
1318 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1319 .flags
= HWMOD_NO_IDLEST
,
1324 * remote frame buffer interface
1327 static struct omap_hwmod_class_sysconfig omap2420_rfbi_sysc
= {
1329 .sysc_offs
= 0x0010,
1330 .syss_offs
= 0x0014,
1331 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1333 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1334 .sysc_fields
= &omap_hwmod_sysc_type1
,
1337 static struct omap_hwmod_class omap2420_rfbi_hwmod_class
= {
1339 .sysc
= &omap2420_rfbi_sysc
,
1342 static struct omap_hwmod_addr_space omap2420_dss_rfbi_addrs
[] = {
1344 .pa_start
= 0x48050800,
1345 .pa_end
= 0x48050BFF,
1346 .flags
= ADDR_TYPE_RT
1350 /* l4_core -> dss_rfbi */
1351 static struct omap_hwmod_ocp_if omap2420_l4_core__dss_rfbi
= {
1352 .master
= &omap2420_l4_core_hwmod
,
1353 .slave
= &omap2420_dss_rfbi_hwmod
,
1355 .addr
= omap2420_dss_rfbi_addrs
,
1356 .addr_cnt
= ARRAY_SIZE(omap2420_dss_rfbi_addrs
),
1359 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_CORE_REGION
,
1360 .flags
= OMAP_FIREWALL_L4
,
1363 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1366 /* dss_rfbi slave ports */
1367 static struct omap_hwmod_ocp_if
*omap2420_dss_rfbi_slaves
[] = {
1368 &omap2420_l4_core__dss_rfbi
,
1371 static struct omap_hwmod_opt_clk rfbi_opt_clks
[] = {
1372 { .role
= "rfbi_iclk", .clk
= "dss_ick" },
1375 static struct omap_hwmod omap2420_dss_rfbi_hwmod
= {
1377 .class = &omap2420_rfbi_hwmod_class
,
1378 .main_clk
= "dss1_fck",
1382 .module_bit
= OMAP24XX_EN_DSS1_SHIFT
,
1383 .module_offs
= CORE_MOD
,
1386 .opt_clks
= rfbi_opt_clks
,
1387 .opt_clks_cnt
= ARRAY_SIZE(rfbi_opt_clks
),
1388 .slaves
= omap2420_dss_rfbi_slaves
,
1389 .slaves_cnt
= ARRAY_SIZE(omap2420_dss_rfbi_slaves
),
1390 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1391 .flags
= HWMOD_NO_IDLEST
,
1399 static struct omap_hwmod_class omap2420_venc_hwmod_class
= {
1404 static struct omap_hwmod_addr_space omap2420_dss_venc_addrs
[] = {
1406 .pa_start
= 0x48050C00,
1407 .pa_end
= 0x48050FFF,
1408 .flags
= ADDR_TYPE_RT
1412 /* l4_core -> dss_venc */
1413 static struct omap_hwmod_ocp_if omap2420_l4_core__dss_venc
= {
1414 .master
= &omap2420_l4_core_hwmod
,
1415 .slave
= &omap2420_dss_venc_hwmod
,
1416 .clk
= "dss_54m_fck",
1417 .addr
= omap2420_dss_venc_addrs
,
1418 .addr_cnt
= ARRAY_SIZE(omap2420_dss_venc_addrs
),
1421 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_VENC_REGION
,
1422 .flags
= OMAP_FIREWALL_L4
,
1425 .flags
= OCPIF_SWSUP_IDLE
,
1426 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1429 /* dss_venc slave ports */
1430 static struct omap_hwmod_ocp_if
*omap2420_dss_venc_slaves
[] = {
1431 &omap2420_l4_core__dss_venc
,
1434 static struct omap_hwmod_opt_clk venc_opt_clks
[] = {
1435 { .role
= "tv_clk", .clk
= "dss_54m_fck" },
1438 static struct omap_hwmod omap2420_dss_venc_hwmod
= {
1440 .class = &omap2420_venc_hwmod_class
,
1441 .main_clk
= "dss1_fck",
1445 .module_bit
= OMAP24XX_EN_DSS1_SHIFT
,
1446 .module_offs
= CORE_MOD
,
1449 .opt_clks
= venc_opt_clks
,
1450 .opt_clks_cnt
= ARRAY_SIZE(venc_opt_clks
),
1451 .slaves
= omap2420_dss_venc_slaves
,
1452 .slaves_cnt
= ARRAY_SIZE(omap2420_dss_venc_slaves
),
1453 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1454 .flags
= HWMOD_NO_IDLEST
,
1458 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
1462 .sysc_flags
= (SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1463 .sysc_fields
= &omap_hwmod_sysc_type1
,
1466 static struct omap_hwmod_class i2c_class
= {
1469 .rev
= OMAP_I2C_IP_VERSION_1
,
1470 .reset
= &omap_i2c_reset
,
1473 static struct omap_i2c_dev_attr i2c_dev_attr
;
1477 static struct omap_hwmod_irq_info i2c1_mpu_irqs
[] = {
1478 { .irq
= INT_24XX_I2C1_IRQ
, },
1481 static struct omap_hwmod_dma_info i2c1_sdma_reqs
[] = {
1482 { .name
= "tx", .dma_req
= OMAP24XX_DMA_I2C1_TX
},
1483 { .name
= "rx", .dma_req
= OMAP24XX_DMA_I2C1_RX
},
1486 static struct omap_hwmod_ocp_if
*omap2420_i2c1_slaves
[] = {
1487 &omap2420_l4_core__i2c1
,
1490 static struct omap_hwmod omap2420_i2c1_hwmod
= {
1492 .mpu_irqs
= i2c1_mpu_irqs
,
1493 .mpu_irqs_cnt
= ARRAY_SIZE(i2c1_mpu_irqs
),
1494 .sdma_reqs
= i2c1_sdma_reqs
,
1495 .sdma_reqs_cnt
= ARRAY_SIZE(i2c1_sdma_reqs
),
1496 .main_clk
= "i2c1_fck",
1499 .module_offs
= CORE_MOD
,
1501 .module_bit
= OMAP2420_EN_I2C1_SHIFT
,
1503 .idlest_idle_bit
= OMAP2420_ST_I2C1_SHIFT
,
1506 .slaves
= omap2420_i2c1_slaves
,
1507 .slaves_cnt
= ARRAY_SIZE(omap2420_i2c1_slaves
),
1508 .class = &i2c_class
,
1509 .dev_attr
= &i2c_dev_attr
,
1510 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1511 .flags
= HWMOD_16BIT_REG
,
1516 static struct omap_hwmod_irq_info i2c2_mpu_irqs
[] = {
1517 { .irq
= INT_24XX_I2C2_IRQ
, },
1520 static struct omap_hwmod_dma_info i2c2_sdma_reqs
[] = {
1521 { .name
= "tx", .dma_req
= OMAP24XX_DMA_I2C2_TX
},
1522 { .name
= "rx", .dma_req
= OMAP24XX_DMA_I2C2_RX
},
1525 static struct omap_hwmod_ocp_if
*omap2420_i2c2_slaves
[] = {
1526 &omap2420_l4_core__i2c2
,
1529 static struct omap_hwmod omap2420_i2c2_hwmod
= {
1531 .mpu_irqs
= i2c2_mpu_irqs
,
1532 .mpu_irqs_cnt
= ARRAY_SIZE(i2c2_mpu_irqs
),
1533 .sdma_reqs
= i2c2_sdma_reqs
,
1534 .sdma_reqs_cnt
= ARRAY_SIZE(i2c2_sdma_reqs
),
1535 .main_clk
= "i2c2_fck",
1538 .module_offs
= CORE_MOD
,
1540 .module_bit
= OMAP2420_EN_I2C2_SHIFT
,
1542 .idlest_idle_bit
= OMAP2420_ST_I2C2_SHIFT
,
1545 .slaves
= omap2420_i2c2_slaves
,
1546 .slaves_cnt
= ARRAY_SIZE(omap2420_i2c2_slaves
),
1547 .class = &i2c_class
,
1548 .dev_attr
= &i2c_dev_attr
,
1549 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1550 .flags
= HWMOD_16BIT_REG
,
1553 /* l4_wkup -> gpio1 */
1554 static struct omap_hwmod_addr_space omap2420_gpio1_addr_space
[] = {
1556 .pa_start
= 0x48018000,
1557 .pa_end
= 0x480181ff,
1558 .flags
= ADDR_TYPE_RT
1562 static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio1
= {
1563 .master
= &omap2420_l4_wkup_hwmod
,
1564 .slave
= &omap2420_gpio1_hwmod
,
1566 .addr
= omap2420_gpio1_addr_space
,
1567 .addr_cnt
= ARRAY_SIZE(omap2420_gpio1_addr_space
),
1568 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1571 /* l4_wkup -> gpio2 */
1572 static struct omap_hwmod_addr_space omap2420_gpio2_addr_space
[] = {
1574 .pa_start
= 0x4801a000,
1575 .pa_end
= 0x4801a1ff,
1576 .flags
= ADDR_TYPE_RT
1580 static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio2
= {
1581 .master
= &omap2420_l4_wkup_hwmod
,
1582 .slave
= &omap2420_gpio2_hwmod
,
1584 .addr
= omap2420_gpio2_addr_space
,
1585 .addr_cnt
= ARRAY_SIZE(omap2420_gpio2_addr_space
),
1586 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1589 /* l4_wkup -> gpio3 */
1590 static struct omap_hwmod_addr_space omap2420_gpio3_addr_space
[] = {
1592 .pa_start
= 0x4801c000,
1593 .pa_end
= 0x4801c1ff,
1594 .flags
= ADDR_TYPE_RT
1598 static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio3
= {
1599 .master
= &omap2420_l4_wkup_hwmod
,
1600 .slave
= &omap2420_gpio3_hwmod
,
1602 .addr
= omap2420_gpio3_addr_space
,
1603 .addr_cnt
= ARRAY_SIZE(omap2420_gpio3_addr_space
),
1604 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1607 /* l4_wkup -> gpio4 */
1608 static struct omap_hwmod_addr_space omap2420_gpio4_addr_space
[] = {
1610 .pa_start
= 0x4801e000,
1611 .pa_end
= 0x4801e1ff,
1612 .flags
= ADDR_TYPE_RT
1616 static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio4
= {
1617 .master
= &omap2420_l4_wkup_hwmod
,
1618 .slave
= &omap2420_gpio4_hwmod
,
1620 .addr
= omap2420_gpio4_addr_space
,
1621 .addr_cnt
= ARRAY_SIZE(omap2420_gpio4_addr_space
),
1622 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1626 static struct omap_gpio_dev_attr gpio_dev_attr
= {
1631 static struct omap_hwmod_class_sysconfig omap242x_gpio_sysc
= {
1633 .sysc_offs
= 0x0010,
1634 .syss_offs
= 0x0014,
1635 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1636 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
1637 SYSS_HAS_RESET_STATUS
),
1638 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1639 .sysc_fields
= &omap_hwmod_sysc_type1
,
1644 * general purpose io module
1646 static struct omap_hwmod_class omap242x_gpio_hwmod_class
= {
1648 .sysc
= &omap242x_gpio_sysc
,
1653 static struct omap_hwmod_irq_info omap242x_gpio1_irqs
[] = {
1654 { .irq
= 29 }, /* INT_24XX_GPIO_BANK1 */
1657 static struct omap_hwmod_ocp_if
*omap2420_gpio1_slaves
[] = {
1658 &omap2420_l4_wkup__gpio1
,
1661 static struct omap_hwmod omap2420_gpio1_hwmod
= {
1663 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1664 .mpu_irqs
= omap242x_gpio1_irqs
,
1665 .mpu_irqs_cnt
= ARRAY_SIZE(omap242x_gpio1_irqs
),
1666 .main_clk
= "gpios_fck",
1670 .module_bit
= OMAP24XX_EN_GPIOS_SHIFT
,
1671 .module_offs
= WKUP_MOD
,
1673 .idlest_idle_bit
= OMAP24XX_ST_GPIOS_SHIFT
,
1676 .slaves
= omap2420_gpio1_slaves
,
1677 .slaves_cnt
= ARRAY_SIZE(omap2420_gpio1_slaves
),
1678 .class = &omap242x_gpio_hwmod_class
,
1679 .dev_attr
= &gpio_dev_attr
,
1680 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1684 static struct omap_hwmod_irq_info omap242x_gpio2_irqs
[] = {
1685 { .irq
= 30 }, /* INT_24XX_GPIO_BANK2 */
1688 static struct omap_hwmod_ocp_if
*omap2420_gpio2_slaves
[] = {
1689 &omap2420_l4_wkup__gpio2
,
1692 static struct omap_hwmod omap2420_gpio2_hwmod
= {
1694 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1695 .mpu_irqs
= omap242x_gpio2_irqs
,
1696 .mpu_irqs_cnt
= ARRAY_SIZE(omap242x_gpio2_irqs
),
1697 .main_clk
= "gpios_fck",
1701 .module_bit
= OMAP24XX_EN_GPIOS_SHIFT
,
1702 .module_offs
= WKUP_MOD
,
1704 .idlest_idle_bit
= OMAP24XX_ST_GPIOS_SHIFT
,
1707 .slaves
= omap2420_gpio2_slaves
,
1708 .slaves_cnt
= ARRAY_SIZE(omap2420_gpio2_slaves
),
1709 .class = &omap242x_gpio_hwmod_class
,
1710 .dev_attr
= &gpio_dev_attr
,
1711 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1715 static struct omap_hwmod_irq_info omap242x_gpio3_irqs
[] = {
1716 { .irq
= 31 }, /* INT_24XX_GPIO_BANK3 */
1719 static struct omap_hwmod_ocp_if
*omap2420_gpio3_slaves
[] = {
1720 &omap2420_l4_wkup__gpio3
,
1723 static struct omap_hwmod omap2420_gpio3_hwmod
= {
1725 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1726 .mpu_irqs
= omap242x_gpio3_irqs
,
1727 .mpu_irqs_cnt
= ARRAY_SIZE(omap242x_gpio3_irqs
),
1728 .main_clk
= "gpios_fck",
1732 .module_bit
= OMAP24XX_EN_GPIOS_SHIFT
,
1733 .module_offs
= WKUP_MOD
,
1735 .idlest_idle_bit
= OMAP24XX_ST_GPIOS_SHIFT
,
1738 .slaves
= omap2420_gpio3_slaves
,
1739 .slaves_cnt
= ARRAY_SIZE(omap2420_gpio3_slaves
),
1740 .class = &omap242x_gpio_hwmod_class
,
1741 .dev_attr
= &gpio_dev_attr
,
1742 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1746 static struct omap_hwmod_irq_info omap242x_gpio4_irqs
[] = {
1747 { .irq
= 32 }, /* INT_24XX_GPIO_BANK4 */
1750 static struct omap_hwmod_ocp_if
*omap2420_gpio4_slaves
[] = {
1751 &omap2420_l4_wkup__gpio4
,
1754 static struct omap_hwmod omap2420_gpio4_hwmod
= {
1756 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1757 .mpu_irqs
= omap242x_gpio4_irqs
,
1758 .mpu_irqs_cnt
= ARRAY_SIZE(omap242x_gpio4_irqs
),
1759 .main_clk
= "gpios_fck",
1763 .module_bit
= OMAP24XX_EN_GPIOS_SHIFT
,
1764 .module_offs
= WKUP_MOD
,
1766 .idlest_idle_bit
= OMAP24XX_ST_GPIOS_SHIFT
,
1769 .slaves
= omap2420_gpio4_slaves
,
1770 .slaves_cnt
= ARRAY_SIZE(omap2420_gpio4_slaves
),
1771 .class = &omap242x_gpio_hwmod_class
,
1772 .dev_attr
= &gpio_dev_attr
,
1773 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1777 static struct omap_hwmod_class_sysconfig omap2420_dma_sysc
= {
1779 .sysc_offs
= 0x002c,
1780 .syss_offs
= 0x0028,
1781 .sysc_flags
= (SYSC_HAS_SOFTRESET
| SYSC_HAS_MIDLEMODE
|
1782 SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_EMUFREE
|
1783 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1784 .idlemodes
= (MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1785 .sysc_fields
= &omap_hwmod_sysc_type1
,
1788 static struct omap_hwmod_class omap2420_dma_hwmod_class
= {
1790 .sysc
= &omap2420_dma_sysc
,
1793 /* dma attributes */
1794 static struct omap_dma_dev_attr dma_dev_attr
= {
1795 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
1796 IS_CSSA_32
| IS_CDSA_32
,
1800 static struct omap_hwmod_irq_info omap2420_dma_system_irqs
[] = {
1801 { .name
= "0", .irq
= 12 }, /* INT_24XX_SDMA_IRQ0 */
1802 { .name
= "1", .irq
= 13 }, /* INT_24XX_SDMA_IRQ1 */
1803 { .name
= "2", .irq
= 14 }, /* INT_24XX_SDMA_IRQ2 */
1804 { .name
= "3", .irq
= 15 }, /* INT_24XX_SDMA_IRQ3 */
1807 static struct omap_hwmod_addr_space omap2420_dma_system_addrs
[] = {
1809 .pa_start
= 0x48056000,
1810 .pa_end
= 0x48056fff,
1811 .flags
= ADDR_TYPE_RT
1815 /* dma_system -> L3 */
1816 static struct omap_hwmod_ocp_if omap2420_dma_system__l3
= {
1817 .master
= &omap2420_dma_system_hwmod
,
1818 .slave
= &omap2420_l3_main_hwmod
,
1819 .clk
= "core_l3_ck",
1820 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1823 /* dma_system master ports */
1824 static struct omap_hwmod_ocp_if
*omap2420_dma_system_masters
[] = {
1825 &omap2420_dma_system__l3
,
1828 /* l4_core -> dma_system */
1829 static struct omap_hwmod_ocp_if omap2420_l4_core__dma_system
= {
1830 .master
= &omap2420_l4_core_hwmod
,
1831 .slave
= &omap2420_dma_system_hwmod
,
1833 .addr
= omap2420_dma_system_addrs
,
1834 .addr_cnt
= ARRAY_SIZE(omap2420_dma_system_addrs
),
1835 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1838 /* dma_system slave ports */
1839 static struct omap_hwmod_ocp_if
*omap2420_dma_system_slaves
[] = {
1840 &omap2420_l4_core__dma_system
,
1843 static struct omap_hwmod omap2420_dma_system_hwmod
= {
1845 .class = &omap2420_dma_hwmod_class
,
1846 .mpu_irqs
= omap2420_dma_system_irqs
,
1847 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_dma_system_irqs
),
1848 .main_clk
= "core_l3_ck",
1849 .slaves
= omap2420_dma_system_slaves
,
1850 .slaves_cnt
= ARRAY_SIZE(omap2420_dma_system_slaves
),
1851 .masters
= omap2420_dma_system_masters
,
1852 .masters_cnt
= ARRAY_SIZE(omap2420_dma_system_masters
),
1853 .dev_attr
= &dma_dev_attr
,
1854 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1855 .flags
= HWMOD_NO_IDLEST
,
1860 * mailbox module allowing communication between the on-chip processors
1861 * using a queued mailbox-interrupt mechanism.
1864 static struct omap_hwmod_class_sysconfig omap2420_mailbox_sysc
= {
1868 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1869 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1870 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1871 .sysc_fields
= &omap_hwmod_sysc_type1
,
1874 static struct omap_hwmod_class omap2420_mailbox_hwmod_class
= {
1876 .sysc
= &omap2420_mailbox_sysc
,
1880 static struct omap_hwmod omap2420_mailbox_hwmod
;
1881 static struct omap_hwmod_irq_info omap2420_mailbox_irqs
[] = {
1882 { .name
= "dsp", .irq
= 26 },
1883 { .name
= "iva", .irq
= 34 },
1886 static struct omap_hwmod_addr_space omap2420_mailbox_addrs
[] = {
1888 .pa_start
= 0x48094000,
1889 .pa_end
= 0x480941ff,
1890 .flags
= ADDR_TYPE_RT
,
1894 /* l4_core -> mailbox */
1895 static struct omap_hwmod_ocp_if omap2420_l4_core__mailbox
= {
1896 .master
= &omap2420_l4_core_hwmod
,
1897 .slave
= &omap2420_mailbox_hwmod
,
1898 .addr
= omap2420_mailbox_addrs
,
1899 .addr_cnt
= ARRAY_SIZE(omap2420_mailbox_addrs
),
1900 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1903 /* mailbox slave ports */
1904 static struct omap_hwmod_ocp_if
*omap2420_mailbox_slaves
[] = {
1905 &omap2420_l4_core__mailbox
,
1908 static struct omap_hwmod omap2420_mailbox_hwmod
= {
1910 .class = &omap2420_mailbox_hwmod_class
,
1911 .mpu_irqs
= omap2420_mailbox_irqs
,
1912 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_mailbox_irqs
),
1913 .main_clk
= "mailboxes_ick",
1917 .module_bit
= OMAP24XX_EN_MAILBOXES_SHIFT
,
1918 .module_offs
= CORE_MOD
,
1920 .idlest_idle_bit
= OMAP24XX_ST_MAILBOXES_SHIFT
,
1923 .slaves
= omap2420_mailbox_slaves
,
1924 .slaves_cnt
= ARRAY_SIZE(omap2420_mailbox_slaves
),
1925 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1930 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1934 static struct omap_hwmod_class_sysconfig omap2420_mcspi_sysc
= {
1936 .sysc_offs
= 0x0010,
1937 .syss_offs
= 0x0014,
1938 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1939 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1940 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1941 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1942 .sysc_fields
= &omap_hwmod_sysc_type1
,
1945 static struct omap_hwmod_class omap2420_mcspi_class
= {
1947 .sysc
= &omap2420_mcspi_sysc
,
1948 .rev
= OMAP2_MCSPI_REV
,
1952 static struct omap_hwmod_irq_info omap2420_mcspi1_mpu_irqs
[] = {
1956 static struct omap_hwmod_dma_info omap2420_mcspi1_sdma_reqs
[] = {
1957 { .name
= "tx0", .dma_req
= 35 }, /* DMA_SPI1_TX0 */
1958 { .name
= "rx0", .dma_req
= 36 }, /* DMA_SPI1_RX0 */
1959 { .name
= "tx1", .dma_req
= 37 }, /* DMA_SPI1_TX1 */
1960 { .name
= "rx1", .dma_req
= 38 }, /* DMA_SPI1_RX1 */
1961 { .name
= "tx2", .dma_req
= 39 }, /* DMA_SPI1_TX2 */
1962 { .name
= "rx2", .dma_req
= 40 }, /* DMA_SPI1_RX2 */
1963 { .name
= "tx3", .dma_req
= 41 }, /* DMA_SPI1_TX3 */
1964 { .name
= "rx3", .dma_req
= 42 }, /* DMA_SPI1_RX3 */
1967 static struct omap_hwmod_ocp_if
*omap2420_mcspi1_slaves
[] = {
1968 &omap2420_l4_core__mcspi1
,
1971 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
1972 .num_chipselect
= 4,
1975 static struct omap_hwmod omap2420_mcspi1_hwmod
= {
1976 .name
= "mcspi1_hwmod",
1977 .mpu_irqs
= omap2420_mcspi1_mpu_irqs
,
1978 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_mcspi1_mpu_irqs
),
1979 .sdma_reqs
= omap2420_mcspi1_sdma_reqs
,
1980 .sdma_reqs_cnt
= ARRAY_SIZE(omap2420_mcspi1_sdma_reqs
),
1981 .main_clk
= "mcspi1_fck",
1984 .module_offs
= CORE_MOD
,
1986 .module_bit
= OMAP24XX_EN_MCSPI1_SHIFT
,
1988 .idlest_idle_bit
= OMAP24XX_ST_MCSPI1_SHIFT
,
1991 .slaves
= omap2420_mcspi1_slaves
,
1992 .slaves_cnt
= ARRAY_SIZE(omap2420_mcspi1_slaves
),
1993 .class = &omap2420_mcspi_class
,
1994 .dev_attr
= &omap_mcspi1_dev_attr
,
1995 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
1999 static struct omap_hwmod_irq_info omap2420_mcspi2_mpu_irqs
[] = {
2003 static struct omap_hwmod_dma_info omap2420_mcspi2_sdma_reqs
[] = {
2004 { .name
= "tx0", .dma_req
= 43 }, /* DMA_SPI2_TX0 */
2005 { .name
= "rx0", .dma_req
= 44 }, /* DMA_SPI2_RX0 */
2006 { .name
= "tx1", .dma_req
= 45 }, /* DMA_SPI2_TX1 */
2007 { .name
= "rx1", .dma_req
= 46 }, /* DMA_SPI2_RX1 */
2010 static struct omap_hwmod_ocp_if
*omap2420_mcspi2_slaves
[] = {
2011 &omap2420_l4_core__mcspi2
,
2014 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
2015 .num_chipselect
= 2,
2018 static struct omap_hwmod omap2420_mcspi2_hwmod
= {
2019 .name
= "mcspi2_hwmod",
2020 .mpu_irqs
= omap2420_mcspi2_mpu_irqs
,
2021 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_mcspi2_mpu_irqs
),
2022 .sdma_reqs
= omap2420_mcspi2_sdma_reqs
,
2023 .sdma_reqs_cnt
= ARRAY_SIZE(omap2420_mcspi2_sdma_reqs
),
2024 .main_clk
= "mcspi2_fck",
2027 .module_offs
= CORE_MOD
,
2029 .module_bit
= OMAP24XX_EN_MCSPI2_SHIFT
,
2031 .idlest_idle_bit
= OMAP24XX_ST_MCSPI2_SHIFT
,
2034 .slaves
= omap2420_mcspi2_slaves
,
2035 .slaves_cnt
= ARRAY_SIZE(omap2420_mcspi2_slaves
),
2036 .class = &omap2420_mcspi_class
,
2037 .dev_attr
= &omap_mcspi2_dev_attr
,
2038 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
2043 * multi channel buffered serial port controller
2046 static struct omap_hwmod_class omap2420_mcbsp_hwmod_class
= {
2051 static struct omap_hwmod_irq_info omap2420_mcbsp1_irqs
[] = {
2052 { .name
= "tx", .irq
= 59 },
2053 { .name
= "rx", .irq
= 60 },
2056 static struct omap_hwmod_dma_info omap2420_mcbsp1_sdma_chs
[] = {
2057 { .name
= "rx", .dma_req
= 32 },
2058 { .name
= "tx", .dma_req
= 31 },
2061 static struct omap_hwmod_addr_space omap2420_mcbsp1_addrs
[] = {
2064 .pa_start
= 0x48074000,
2065 .pa_end
= 0x480740ff,
2066 .flags
= ADDR_TYPE_RT
2070 /* l4_core -> mcbsp1 */
2071 static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp1
= {
2072 .master
= &omap2420_l4_core_hwmod
,
2073 .slave
= &omap2420_mcbsp1_hwmod
,
2074 .clk
= "mcbsp1_ick",
2075 .addr
= omap2420_mcbsp1_addrs
,
2076 .addr_cnt
= ARRAY_SIZE(omap2420_mcbsp1_addrs
),
2077 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2080 /* mcbsp1 slave ports */
2081 static struct omap_hwmod_ocp_if
*omap2420_mcbsp1_slaves
[] = {
2082 &omap2420_l4_core__mcbsp1
,
2085 static struct omap_hwmod omap2420_mcbsp1_hwmod
= {
2087 .class = &omap2420_mcbsp_hwmod_class
,
2088 .mpu_irqs
= omap2420_mcbsp1_irqs
,
2089 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_mcbsp1_irqs
),
2090 .sdma_reqs
= omap2420_mcbsp1_sdma_chs
,
2091 .sdma_reqs_cnt
= ARRAY_SIZE(omap2420_mcbsp1_sdma_chs
),
2092 .main_clk
= "mcbsp1_fck",
2096 .module_bit
= OMAP24XX_EN_MCBSP1_SHIFT
,
2097 .module_offs
= CORE_MOD
,
2099 .idlest_idle_bit
= OMAP24XX_ST_MCBSP1_SHIFT
,
2102 .slaves
= omap2420_mcbsp1_slaves
,
2103 .slaves_cnt
= ARRAY_SIZE(omap2420_mcbsp1_slaves
),
2104 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
2108 static struct omap_hwmod_irq_info omap2420_mcbsp2_irqs
[] = {
2109 { .name
= "tx", .irq
= 62 },
2110 { .name
= "rx", .irq
= 63 },
2113 static struct omap_hwmod_dma_info omap2420_mcbsp2_sdma_chs
[] = {
2114 { .name
= "rx", .dma_req
= 34 },
2115 { .name
= "tx", .dma_req
= 33 },
2118 static struct omap_hwmod_addr_space omap2420_mcbsp2_addrs
[] = {
2121 .pa_start
= 0x48076000,
2122 .pa_end
= 0x480760ff,
2123 .flags
= ADDR_TYPE_RT
2127 /* l4_core -> mcbsp2 */
2128 static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp2
= {
2129 .master
= &omap2420_l4_core_hwmod
,
2130 .slave
= &omap2420_mcbsp2_hwmod
,
2131 .clk
= "mcbsp2_ick",
2132 .addr
= omap2420_mcbsp2_addrs
,
2133 .addr_cnt
= ARRAY_SIZE(omap2420_mcbsp2_addrs
),
2134 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2137 /* mcbsp2 slave ports */
2138 static struct omap_hwmod_ocp_if
*omap2420_mcbsp2_slaves
[] = {
2139 &omap2420_l4_core__mcbsp2
,
2142 static struct omap_hwmod omap2420_mcbsp2_hwmod
= {
2144 .class = &omap2420_mcbsp_hwmod_class
,
2145 .mpu_irqs
= omap2420_mcbsp2_irqs
,
2146 .mpu_irqs_cnt
= ARRAY_SIZE(omap2420_mcbsp2_irqs
),
2147 .sdma_reqs
= omap2420_mcbsp2_sdma_chs
,
2148 .sdma_reqs_cnt
= ARRAY_SIZE(omap2420_mcbsp2_sdma_chs
),
2149 .main_clk
= "mcbsp2_fck",
2153 .module_bit
= OMAP24XX_EN_MCBSP2_SHIFT
,
2154 .module_offs
= CORE_MOD
,
2156 .idlest_idle_bit
= OMAP24XX_ST_MCBSP2_SHIFT
,
2159 .slaves
= omap2420_mcbsp2_slaves
,
2160 .slaves_cnt
= ARRAY_SIZE(omap2420_mcbsp2_slaves
),
2161 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
2164 static __initdata
struct omap_hwmod
*omap2420_hwmods
[] = {
2165 &omap2420_l3_main_hwmod
,
2166 &omap2420_l4_core_hwmod
,
2167 &omap2420_l4_wkup_hwmod
,
2168 &omap2420_mpu_hwmod
,
2169 &omap2420_iva_hwmod
,
2171 &omap2420_timer1_hwmod
,
2172 &omap2420_timer2_hwmod
,
2173 &omap2420_timer3_hwmod
,
2174 &omap2420_timer4_hwmod
,
2175 &omap2420_timer5_hwmod
,
2176 &omap2420_timer6_hwmod
,
2177 &omap2420_timer7_hwmod
,
2178 &omap2420_timer8_hwmod
,
2179 &omap2420_timer9_hwmod
,
2180 &omap2420_timer10_hwmod
,
2181 &omap2420_timer11_hwmod
,
2182 &omap2420_timer12_hwmod
,
2184 &omap2420_wd_timer2_hwmod
,
2185 &omap2420_uart1_hwmod
,
2186 &omap2420_uart2_hwmod
,
2187 &omap2420_uart3_hwmod
,
2189 &omap2420_dss_core_hwmod
,
2190 &omap2420_dss_dispc_hwmod
,
2191 &omap2420_dss_rfbi_hwmod
,
2192 &omap2420_dss_venc_hwmod
,
2194 &omap2420_i2c1_hwmod
,
2195 &omap2420_i2c2_hwmod
,
2198 &omap2420_gpio1_hwmod
,
2199 &omap2420_gpio2_hwmod
,
2200 &omap2420_gpio3_hwmod
,
2201 &omap2420_gpio4_hwmod
,
2203 /* dma_system class*/
2204 &omap2420_dma_system_hwmod
,
2207 &omap2420_mailbox_hwmod
,
2210 &omap2420_mcbsp1_hwmod
,
2211 &omap2420_mcbsp2_hwmod
,
2214 &omap2420_mcspi1_hwmod
,
2215 &omap2420_mcspi2_hwmod
,
2219 int __init
omap2420_hwmod_init(void)
2221 return omap_hwmod_register(omap2420_hwmods
);