2 * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
4 * Copyright (C) 2009-2011 Nokia Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * The data in this file should be completely autogeneratable from
12 * the TI hardware database or other technical documentation.
14 * XXX these should be marked initdata for multi-OMAP kernels
16 #include <plat/omap_hwmod.h>
17 #include <mach/irqs.h>
20 #include <plat/serial.h>
21 #include <plat/l3_3xxx.h>
22 #include <plat/l4_3xxx.h>
24 #include <plat/gpio.h>
26 #include <plat/mcbsp.h>
27 #include <plat/mcspi.h>
28 #include <plat/dmtimer.h>
30 #include "omap_hwmod_common_data.h"
32 #include "prm-regbits-34xx.h"
33 #include "cm-regbits-34xx.h"
35 #include <mach/am35xx.h>
38 * OMAP3xxx hardware module integration data
40 * ALl of the data in this section should be autogeneratable from the
41 * TI hardware database or other technical documentation. Data that
42 * is driver-specific or driver-kernel integration-specific belongs
46 static struct omap_hwmod omap3xxx_mpu_hwmod
;
47 static struct omap_hwmod omap3xxx_iva_hwmod
;
48 static struct omap_hwmod omap3xxx_l3_main_hwmod
;
49 static struct omap_hwmod omap3xxx_l4_core_hwmod
;
50 static struct omap_hwmod omap3xxx_l4_per_hwmod
;
51 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
;
52 static struct omap_hwmod omap3430es1_dss_core_hwmod
;
53 static struct omap_hwmod omap3xxx_dss_core_hwmod
;
54 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
;
55 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
;
56 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
;
57 static struct omap_hwmod omap3xxx_dss_venc_hwmod
;
58 static struct omap_hwmod omap3xxx_i2c1_hwmod
;
59 static struct omap_hwmod omap3xxx_i2c2_hwmod
;
60 static struct omap_hwmod omap3xxx_i2c3_hwmod
;
61 static struct omap_hwmod omap3xxx_gpio1_hwmod
;
62 static struct omap_hwmod omap3xxx_gpio2_hwmod
;
63 static struct omap_hwmod omap3xxx_gpio3_hwmod
;
64 static struct omap_hwmod omap3xxx_gpio4_hwmod
;
65 static struct omap_hwmod omap3xxx_gpio5_hwmod
;
66 static struct omap_hwmod omap3xxx_gpio6_hwmod
;
67 static struct omap_hwmod omap34xx_sr1_hwmod
;
68 static struct omap_hwmod omap34xx_sr2_hwmod
;
69 static struct omap_hwmod omap34xx_mcspi1
;
70 static struct omap_hwmod omap34xx_mcspi2
;
71 static struct omap_hwmod omap34xx_mcspi3
;
72 static struct omap_hwmod omap34xx_mcspi4
;
73 static struct omap_hwmod omap3xxx_mmc1_hwmod
;
74 static struct omap_hwmod omap3xxx_mmc2_hwmod
;
75 static struct omap_hwmod omap3xxx_mmc3_hwmod
;
76 static struct omap_hwmod am35xx_usbhsotg_hwmod
;
78 static struct omap_hwmod omap3xxx_dma_system_hwmod
;
80 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
;
81 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
;
82 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
;
83 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
;
84 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
;
85 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
;
86 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
;
88 /* L3 -> L4_CORE interface */
89 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core
= {
90 .master
= &omap3xxx_l3_main_hwmod
,
91 .slave
= &omap3xxx_l4_core_hwmod
,
92 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
95 /* L3 -> L4_PER interface */
96 static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per
= {
97 .master
= &omap3xxx_l3_main_hwmod
,
98 .slave
= &omap3xxx_l4_per_hwmod
,
99 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
102 /* L3 taret configuration and error log registers */
103 static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs
[] = {
104 { .irq
= INT_34XX_L3_DBG_IRQ
},
105 { .irq
= INT_34XX_L3_APP_IRQ
},
109 static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs
[] = {
111 .pa_start
= 0x68000000,
112 .pa_end
= 0x6800ffff,
113 .flags
= ADDR_TYPE_RT
,
118 /* MPU -> L3 interface */
119 static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main
= {
120 .master
= &omap3xxx_mpu_hwmod
,
121 .slave
= &omap3xxx_l3_main_hwmod
,
122 .addr
= omap3xxx_l3_main_addrs
,
123 .user
= OCP_USER_MPU
,
126 /* Slave interfaces on the L3 interconnect */
127 static struct omap_hwmod_ocp_if
*omap3xxx_l3_main_slaves
[] = {
128 &omap3xxx_mpu__l3_main
,
132 static struct omap_hwmod_ocp_if omap3xxx_dss__l3
= {
133 .master
= &omap3xxx_dss_core_hwmod
,
134 .slave
= &omap3xxx_l3_main_hwmod
,
137 .l3_perm_bit
= OMAP3_L3_CORE_FW_INIT_ID_DSS
,
138 .flags
= OMAP_FIREWALL_L3
,
141 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
144 /* Master interfaces on the L3 interconnect */
145 static struct omap_hwmod_ocp_if
*omap3xxx_l3_main_masters
[] = {
146 &omap3xxx_l3_main__l4_core
,
147 &omap3xxx_l3_main__l4_per
,
151 static struct omap_hwmod omap3xxx_l3_main_hwmod
= {
153 .class = &l3_hwmod_class
,
154 .mpu_irqs
= omap3xxx_l3_main_irqs
,
155 .masters
= omap3xxx_l3_main_masters
,
156 .masters_cnt
= ARRAY_SIZE(omap3xxx_l3_main_masters
),
157 .slaves
= omap3xxx_l3_main_slaves
,
158 .slaves_cnt
= ARRAY_SIZE(omap3xxx_l3_main_slaves
),
159 .flags
= HWMOD_NO_IDLEST
,
162 static struct omap_hwmod omap3xxx_l4_wkup_hwmod
;
163 static struct omap_hwmod omap3xxx_uart1_hwmod
;
164 static struct omap_hwmod omap3xxx_uart2_hwmod
;
165 static struct omap_hwmod omap3xxx_uart3_hwmod
;
166 static struct omap_hwmod omap3xxx_uart4_hwmod
;
167 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
;
169 /* l3_core -> usbhsotg interface */
170 static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3
= {
171 .master
= &omap3xxx_usbhsotg_hwmod
,
172 .slave
= &omap3xxx_l3_main_hwmod
,
173 .clk
= "core_l3_ick",
174 .user
= OCP_USER_MPU
,
177 /* l3_core -> am35xx_usbhsotg interface */
178 static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3
= {
179 .master
= &am35xx_usbhsotg_hwmod
,
180 .slave
= &omap3xxx_l3_main_hwmod
,
181 .clk
= "core_l3_ick",
182 .user
= OCP_USER_MPU
,
184 /* L4_CORE -> L4_WKUP interface */
185 static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup
= {
186 .master
= &omap3xxx_l4_core_hwmod
,
187 .slave
= &omap3xxx_l4_wkup_hwmod
,
188 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
191 /* L4 CORE -> MMC1 interface */
192 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc1
= {
193 .master
= &omap3xxx_l4_core_hwmod
,
194 .slave
= &omap3xxx_mmc1_hwmod
,
196 .addr
= omap2430_mmc1_addr_space
,
197 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
198 .flags
= OMAP_FIREWALL_L4
201 /* L4 CORE -> MMC2 interface */
202 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc2
= {
203 .master
= &omap3xxx_l4_core_hwmod
,
204 .slave
= &omap3xxx_mmc2_hwmod
,
206 .addr
= omap2430_mmc2_addr_space
,
207 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
208 .flags
= OMAP_FIREWALL_L4
211 /* L4 CORE -> MMC3 interface */
212 static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space
[] = {
214 .pa_start
= 0x480ad000,
215 .pa_end
= 0x480ad1ff,
216 .flags
= ADDR_TYPE_RT
,
221 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3
= {
222 .master
= &omap3xxx_l4_core_hwmod
,
223 .slave
= &omap3xxx_mmc3_hwmod
,
225 .addr
= omap3xxx_mmc3_addr_space
,
226 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
227 .flags
= OMAP_FIREWALL_L4
230 /* L4 CORE -> UART1 interface */
231 static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space
[] = {
233 .pa_start
= OMAP3_UART1_BASE
,
234 .pa_end
= OMAP3_UART1_BASE
+ SZ_8K
- 1,
235 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
240 static struct omap_hwmod_ocp_if omap3_l4_core__uart1
= {
241 .master
= &omap3xxx_l4_core_hwmod
,
242 .slave
= &omap3xxx_uart1_hwmod
,
244 .addr
= omap3xxx_uart1_addr_space
,
245 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
248 /* L4 CORE -> UART2 interface */
249 static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space
[] = {
251 .pa_start
= OMAP3_UART2_BASE
,
252 .pa_end
= OMAP3_UART2_BASE
+ SZ_1K
- 1,
253 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
258 static struct omap_hwmod_ocp_if omap3_l4_core__uart2
= {
259 .master
= &omap3xxx_l4_core_hwmod
,
260 .slave
= &omap3xxx_uart2_hwmod
,
262 .addr
= omap3xxx_uart2_addr_space
,
263 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
266 /* L4 PER -> UART3 interface */
267 static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space
[] = {
269 .pa_start
= OMAP3_UART3_BASE
,
270 .pa_end
= OMAP3_UART3_BASE
+ SZ_1K
- 1,
271 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
276 static struct omap_hwmod_ocp_if omap3_l4_per__uart3
= {
277 .master
= &omap3xxx_l4_per_hwmod
,
278 .slave
= &omap3xxx_uart3_hwmod
,
280 .addr
= omap3xxx_uart3_addr_space
,
281 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
284 /* L4 PER -> UART4 interface */
285 static struct omap_hwmod_addr_space omap3xxx_uart4_addr_space
[] = {
287 .pa_start
= OMAP3_UART4_BASE
,
288 .pa_end
= OMAP3_UART4_BASE
+ SZ_1K
- 1,
289 .flags
= ADDR_MAP_ON_INIT
| ADDR_TYPE_RT
,
294 static struct omap_hwmod_ocp_if omap3_l4_per__uart4
= {
295 .master
= &omap3xxx_l4_per_hwmod
,
296 .slave
= &omap3xxx_uart4_hwmod
,
298 .addr
= omap3xxx_uart4_addr_space
,
299 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
302 /* L4 CORE -> I2C1 interface */
303 static struct omap_hwmod_ocp_if omap3_l4_core__i2c1
= {
304 .master
= &omap3xxx_l4_core_hwmod
,
305 .slave
= &omap3xxx_i2c1_hwmod
,
307 .addr
= omap2_i2c1_addr_space
,
310 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C1_REGION
,
312 .flags
= OMAP_FIREWALL_L4
,
315 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
318 /* L4 CORE -> I2C2 interface */
319 static struct omap_hwmod_ocp_if omap3_l4_core__i2c2
= {
320 .master
= &omap3xxx_l4_core_hwmod
,
321 .slave
= &omap3xxx_i2c2_hwmod
,
323 .addr
= omap2_i2c2_addr_space
,
326 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C2_REGION
,
328 .flags
= OMAP_FIREWALL_L4
,
331 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
334 /* L4 CORE -> I2C3 interface */
335 static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space
[] = {
337 .pa_start
= 0x48060000,
338 .pa_end
= 0x48060000 + SZ_128
- 1,
339 .flags
= ADDR_TYPE_RT
,
344 static struct omap_hwmod_ocp_if omap3_l4_core__i2c3
= {
345 .master
= &omap3xxx_l4_core_hwmod
,
346 .slave
= &omap3xxx_i2c3_hwmod
,
348 .addr
= omap3xxx_i2c3_addr_space
,
351 .l4_fw_region
= OMAP3_L4_CORE_FW_I2C3_REGION
,
353 .flags
= OMAP_FIREWALL_L4
,
356 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
359 /* L4 CORE -> SR1 interface */
360 static struct omap_hwmod_addr_space omap3_sr1_addr_space
[] = {
362 .pa_start
= OMAP34XX_SR1_BASE
,
363 .pa_end
= OMAP34XX_SR1_BASE
+ SZ_1K
- 1,
364 .flags
= ADDR_TYPE_RT
,
369 static struct omap_hwmod_ocp_if omap3_l4_core__sr1
= {
370 .master
= &omap3xxx_l4_core_hwmod
,
371 .slave
= &omap34xx_sr1_hwmod
,
373 .addr
= omap3_sr1_addr_space
,
374 .user
= OCP_USER_MPU
,
377 /* L4 CORE -> SR1 interface */
378 static struct omap_hwmod_addr_space omap3_sr2_addr_space
[] = {
380 .pa_start
= OMAP34XX_SR2_BASE
,
381 .pa_end
= OMAP34XX_SR2_BASE
+ SZ_1K
- 1,
382 .flags
= ADDR_TYPE_RT
,
387 static struct omap_hwmod_ocp_if omap3_l4_core__sr2
= {
388 .master
= &omap3xxx_l4_core_hwmod
,
389 .slave
= &omap34xx_sr2_hwmod
,
391 .addr
= omap3_sr2_addr_space
,
392 .user
= OCP_USER_MPU
,
396 * usbhsotg interface data
399 static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs
[] = {
401 .pa_start
= OMAP34XX_HSUSB_OTG_BASE
,
402 .pa_end
= OMAP34XX_HSUSB_OTG_BASE
+ SZ_4K
- 1,
403 .flags
= ADDR_TYPE_RT
408 /* l4_core -> usbhsotg */
409 static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg
= {
410 .master
= &omap3xxx_l4_core_hwmod
,
411 .slave
= &omap3xxx_usbhsotg_hwmod
,
413 .addr
= omap3xxx_usbhsotg_addrs
,
414 .user
= OCP_USER_MPU
,
417 static struct omap_hwmod_ocp_if
*omap3xxx_usbhsotg_masters
[] = {
418 &omap3xxx_usbhsotg__l3
,
421 static struct omap_hwmod_ocp_if
*omap3xxx_usbhsotg_slaves
[] = {
422 &omap3xxx_l4_core__usbhsotg
,
425 static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs
[] = {
427 .pa_start
= AM35XX_IPSS_USBOTGSS_BASE
,
428 .pa_end
= AM35XX_IPSS_USBOTGSS_BASE
+ SZ_4K
- 1,
429 .flags
= ADDR_TYPE_RT
434 /* l4_core -> usbhsotg */
435 static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg
= {
436 .master
= &omap3xxx_l4_core_hwmod
,
437 .slave
= &am35xx_usbhsotg_hwmod
,
439 .addr
= am35xx_usbhsotg_addrs
,
440 .user
= OCP_USER_MPU
,
443 static struct omap_hwmod_ocp_if
*am35xx_usbhsotg_masters
[] = {
444 &am35xx_usbhsotg__l3
,
447 static struct omap_hwmod_ocp_if
*am35xx_usbhsotg_slaves
[] = {
448 &am35xx_l4_core__usbhsotg
,
450 /* Slave interfaces on the L4_CORE interconnect */
451 static struct omap_hwmod_ocp_if
*omap3xxx_l4_core_slaves
[] = {
452 &omap3xxx_l3_main__l4_core
,
456 static struct omap_hwmod omap3xxx_l4_core_hwmod
= {
458 .class = &l4_hwmod_class
,
459 .slaves
= omap3xxx_l4_core_slaves
,
460 .slaves_cnt
= ARRAY_SIZE(omap3xxx_l4_core_slaves
),
461 .flags
= HWMOD_NO_IDLEST
,
464 /* Slave interfaces on the L4_PER interconnect */
465 static struct omap_hwmod_ocp_if
*omap3xxx_l4_per_slaves
[] = {
466 &omap3xxx_l3_main__l4_per
,
470 static struct omap_hwmod omap3xxx_l4_per_hwmod
= {
472 .class = &l4_hwmod_class
,
473 .slaves
= omap3xxx_l4_per_slaves
,
474 .slaves_cnt
= ARRAY_SIZE(omap3xxx_l4_per_slaves
),
475 .flags
= HWMOD_NO_IDLEST
,
478 /* Slave interfaces on the L4_WKUP interconnect */
479 static struct omap_hwmod_ocp_if
*omap3xxx_l4_wkup_slaves
[] = {
480 &omap3xxx_l4_core__l4_wkup
,
484 static struct omap_hwmod omap3xxx_l4_wkup_hwmod
= {
486 .class = &l4_hwmod_class
,
487 .slaves
= omap3xxx_l4_wkup_slaves
,
488 .slaves_cnt
= ARRAY_SIZE(omap3xxx_l4_wkup_slaves
),
489 .flags
= HWMOD_NO_IDLEST
,
492 /* Master interfaces on the MPU device */
493 static struct omap_hwmod_ocp_if
*omap3xxx_mpu_masters
[] = {
494 &omap3xxx_mpu__l3_main
,
498 static struct omap_hwmod omap3xxx_mpu_hwmod
= {
500 .class = &mpu_hwmod_class
,
501 .main_clk
= "arm_fck",
502 .masters
= omap3xxx_mpu_masters
,
503 .masters_cnt
= ARRAY_SIZE(omap3xxx_mpu_masters
),
507 * IVA2_2 interface data
510 /* IVA2 <- L3 interface */
511 static struct omap_hwmod_ocp_if omap3xxx_l3__iva
= {
512 .master
= &omap3xxx_l3_main_hwmod
,
513 .slave
= &omap3xxx_iva_hwmod
,
515 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
518 static struct omap_hwmod_ocp_if
*omap3xxx_iva_masters
[] = {
526 static struct omap_hwmod omap3xxx_iva_hwmod
= {
528 .class = &iva_hwmod_class
,
529 .masters
= omap3xxx_iva_masters
,
530 .masters_cnt
= ARRAY_SIZE(omap3xxx_iva_masters
),
534 static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc
= {
538 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
539 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
540 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
),
541 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
542 .sysc_fields
= &omap_hwmod_sysc_type1
,
545 static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class
= {
547 .sysc
= &omap3xxx_timer_1ms_sysc
,
548 .rev
= OMAP_TIMER_IP_VERSION_1
,
551 static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc
= {
555 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
556 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
557 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
558 .sysc_fields
= &omap_hwmod_sysc_type1
,
561 static struct omap_hwmod_class omap3xxx_timer_hwmod_class
= {
563 .sysc
= &omap3xxx_timer_sysc
,
564 .rev
= OMAP_TIMER_IP_VERSION_1
,
567 /* secure timers dev attribute */
568 static struct omap_timer_capability_dev_attr capability_secure_dev_attr
= {
569 .timer_capability
= OMAP_TIMER_SECURE
,
572 /* always-on timers dev attribute */
573 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr
= {
574 .timer_capability
= OMAP_TIMER_ALWON
,
577 /* pwm timers dev attribute */
578 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr
= {
579 .timer_capability
= OMAP_TIMER_HAS_PWM
,
583 static struct omap_hwmod omap3xxx_timer1_hwmod
;
585 static struct omap_hwmod_addr_space omap3xxx_timer1_addrs
[] = {
587 .pa_start
= 0x48318000,
588 .pa_end
= 0x48318000 + SZ_1K
- 1,
589 .flags
= ADDR_TYPE_RT
594 /* l4_wkup -> timer1 */
595 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1
= {
596 .master
= &omap3xxx_l4_wkup_hwmod
,
597 .slave
= &omap3xxx_timer1_hwmod
,
599 .addr
= omap3xxx_timer1_addrs
,
600 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
603 /* timer1 slave port */
604 static struct omap_hwmod_ocp_if
*omap3xxx_timer1_slaves
[] = {
605 &omap3xxx_l4_wkup__timer1
,
609 static struct omap_hwmod omap3xxx_timer1_hwmod
= {
611 .mpu_irqs
= omap2_timer1_mpu_irqs
,
612 .main_clk
= "gpt1_fck",
616 .module_bit
= OMAP3430_EN_GPT1_SHIFT
,
617 .module_offs
= WKUP_MOD
,
619 .idlest_idle_bit
= OMAP3430_ST_GPT1_SHIFT
,
622 .dev_attr
= &capability_alwon_dev_attr
,
623 .slaves
= omap3xxx_timer1_slaves
,
624 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer1_slaves
),
625 .class = &omap3xxx_timer_1ms_hwmod_class
,
629 static struct omap_hwmod omap3xxx_timer2_hwmod
;
631 static struct omap_hwmod_addr_space omap3xxx_timer2_addrs
[] = {
633 .pa_start
= 0x49032000,
634 .pa_end
= 0x49032000 + SZ_1K
- 1,
635 .flags
= ADDR_TYPE_RT
640 /* l4_per -> timer2 */
641 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2
= {
642 .master
= &omap3xxx_l4_per_hwmod
,
643 .slave
= &omap3xxx_timer2_hwmod
,
645 .addr
= omap3xxx_timer2_addrs
,
646 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
649 /* timer2 slave port */
650 static struct omap_hwmod_ocp_if
*omap3xxx_timer2_slaves
[] = {
651 &omap3xxx_l4_per__timer2
,
655 static struct omap_hwmod omap3xxx_timer2_hwmod
= {
657 .mpu_irqs
= omap2_timer2_mpu_irqs
,
658 .main_clk
= "gpt2_fck",
662 .module_bit
= OMAP3430_EN_GPT2_SHIFT
,
663 .module_offs
= OMAP3430_PER_MOD
,
665 .idlest_idle_bit
= OMAP3430_ST_GPT2_SHIFT
,
668 .dev_attr
= &capability_alwon_dev_attr
,
669 .slaves
= omap3xxx_timer2_slaves
,
670 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer2_slaves
),
671 .class = &omap3xxx_timer_1ms_hwmod_class
,
675 static struct omap_hwmod omap3xxx_timer3_hwmod
;
677 static struct omap_hwmod_addr_space omap3xxx_timer3_addrs
[] = {
679 .pa_start
= 0x49034000,
680 .pa_end
= 0x49034000 + SZ_1K
- 1,
681 .flags
= ADDR_TYPE_RT
686 /* l4_per -> timer3 */
687 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3
= {
688 .master
= &omap3xxx_l4_per_hwmod
,
689 .slave
= &omap3xxx_timer3_hwmod
,
691 .addr
= omap3xxx_timer3_addrs
,
692 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
695 /* timer3 slave port */
696 static struct omap_hwmod_ocp_if
*omap3xxx_timer3_slaves
[] = {
697 &omap3xxx_l4_per__timer3
,
701 static struct omap_hwmod omap3xxx_timer3_hwmod
= {
703 .mpu_irqs
= omap2_timer3_mpu_irqs
,
704 .main_clk
= "gpt3_fck",
708 .module_bit
= OMAP3430_EN_GPT3_SHIFT
,
709 .module_offs
= OMAP3430_PER_MOD
,
711 .idlest_idle_bit
= OMAP3430_ST_GPT3_SHIFT
,
714 .dev_attr
= &capability_alwon_dev_attr
,
715 .slaves
= omap3xxx_timer3_slaves
,
716 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer3_slaves
),
717 .class = &omap3xxx_timer_hwmod_class
,
721 static struct omap_hwmod omap3xxx_timer4_hwmod
;
723 static struct omap_hwmod_addr_space omap3xxx_timer4_addrs
[] = {
725 .pa_start
= 0x49036000,
726 .pa_end
= 0x49036000 + SZ_1K
- 1,
727 .flags
= ADDR_TYPE_RT
732 /* l4_per -> timer4 */
733 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4
= {
734 .master
= &omap3xxx_l4_per_hwmod
,
735 .slave
= &omap3xxx_timer4_hwmod
,
737 .addr
= omap3xxx_timer4_addrs
,
738 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
741 /* timer4 slave port */
742 static struct omap_hwmod_ocp_if
*omap3xxx_timer4_slaves
[] = {
743 &omap3xxx_l4_per__timer4
,
747 static struct omap_hwmod omap3xxx_timer4_hwmod
= {
749 .mpu_irqs
= omap2_timer4_mpu_irqs
,
750 .main_clk
= "gpt4_fck",
754 .module_bit
= OMAP3430_EN_GPT4_SHIFT
,
755 .module_offs
= OMAP3430_PER_MOD
,
757 .idlest_idle_bit
= OMAP3430_ST_GPT4_SHIFT
,
760 .dev_attr
= &capability_alwon_dev_attr
,
761 .slaves
= omap3xxx_timer4_slaves
,
762 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer4_slaves
),
763 .class = &omap3xxx_timer_hwmod_class
,
767 static struct omap_hwmod omap3xxx_timer5_hwmod
;
769 static struct omap_hwmod_addr_space omap3xxx_timer5_addrs
[] = {
771 .pa_start
= 0x49038000,
772 .pa_end
= 0x49038000 + SZ_1K
- 1,
773 .flags
= ADDR_TYPE_RT
778 /* l4_per -> timer5 */
779 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5
= {
780 .master
= &omap3xxx_l4_per_hwmod
,
781 .slave
= &omap3xxx_timer5_hwmod
,
783 .addr
= omap3xxx_timer5_addrs
,
784 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
787 /* timer5 slave port */
788 static struct omap_hwmod_ocp_if
*omap3xxx_timer5_slaves
[] = {
789 &omap3xxx_l4_per__timer5
,
793 static struct omap_hwmod omap3xxx_timer5_hwmod
= {
795 .mpu_irqs
= omap2_timer5_mpu_irqs
,
796 .main_clk
= "gpt5_fck",
800 .module_bit
= OMAP3430_EN_GPT5_SHIFT
,
801 .module_offs
= OMAP3430_PER_MOD
,
803 .idlest_idle_bit
= OMAP3430_ST_GPT5_SHIFT
,
806 .dev_attr
= &capability_alwon_dev_attr
,
807 .slaves
= omap3xxx_timer5_slaves
,
808 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer5_slaves
),
809 .class = &omap3xxx_timer_hwmod_class
,
813 static struct omap_hwmod omap3xxx_timer6_hwmod
;
815 static struct omap_hwmod_addr_space omap3xxx_timer6_addrs
[] = {
817 .pa_start
= 0x4903A000,
818 .pa_end
= 0x4903A000 + SZ_1K
- 1,
819 .flags
= ADDR_TYPE_RT
824 /* l4_per -> timer6 */
825 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6
= {
826 .master
= &omap3xxx_l4_per_hwmod
,
827 .slave
= &omap3xxx_timer6_hwmod
,
829 .addr
= omap3xxx_timer6_addrs
,
830 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
833 /* timer6 slave port */
834 static struct omap_hwmod_ocp_if
*omap3xxx_timer6_slaves
[] = {
835 &omap3xxx_l4_per__timer6
,
839 static struct omap_hwmod omap3xxx_timer6_hwmod
= {
841 .mpu_irqs
= omap2_timer6_mpu_irqs
,
842 .main_clk
= "gpt6_fck",
846 .module_bit
= OMAP3430_EN_GPT6_SHIFT
,
847 .module_offs
= OMAP3430_PER_MOD
,
849 .idlest_idle_bit
= OMAP3430_ST_GPT6_SHIFT
,
852 .dev_attr
= &capability_alwon_dev_attr
,
853 .slaves
= omap3xxx_timer6_slaves
,
854 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer6_slaves
),
855 .class = &omap3xxx_timer_hwmod_class
,
859 static struct omap_hwmod omap3xxx_timer7_hwmod
;
861 static struct omap_hwmod_addr_space omap3xxx_timer7_addrs
[] = {
863 .pa_start
= 0x4903C000,
864 .pa_end
= 0x4903C000 + SZ_1K
- 1,
865 .flags
= ADDR_TYPE_RT
870 /* l4_per -> timer7 */
871 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7
= {
872 .master
= &omap3xxx_l4_per_hwmod
,
873 .slave
= &omap3xxx_timer7_hwmod
,
875 .addr
= omap3xxx_timer7_addrs
,
876 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
879 /* timer7 slave port */
880 static struct omap_hwmod_ocp_if
*omap3xxx_timer7_slaves
[] = {
881 &omap3xxx_l4_per__timer7
,
885 static struct omap_hwmod omap3xxx_timer7_hwmod
= {
887 .mpu_irqs
= omap2_timer7_mpu_irqs
,
888 .main_clk
= "gpt7_fck",
892 .module_bit
= OMAP3430_EN_GPT7_SHIFT
,
893 .module_offs
= OMAP3430_PER_MOD
,
895 .idlest_idle_bit
= OMAP3430_ST_GPT7_SHIFT
,
898 .dev_attr
= &capability_alwon_dev_attr
,
899 .slaves
= omap3xxx_timer7_slaves
,
900 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer7_slaves
),
901 .class = &omap3xxx_timer_hwmod_class
,
905 static struct omap_hwmod omap3xxx_timer8_hwmod
;
907 static struct omap_hwmod_addr_space omap3xxx_timer8_addrs
[] = {
909 .pa_start
= 0x4903E000,
910 .pa_end
= 0x4903E000 + SZ_1K
- 1,
911 .flags
= ADDR_TYPE_RT
916 /* l4_per -> timer8 */
917 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8
= {
918 .master
= &omap3xxx_l4_per_hwmod
,
919 .slave
= &omap3xxx_timer8_hwmod
,
921 .addr
= omap3xxx_timer8_addrs
,
922 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
925 /* timer8 slave port */
926 static struct omap_hwmod_ocp_if
*omap3xxx_timer8_slaves
[] = {
927 &omap3xxx_l4_per__timer8
,
931 static struct omap_hwmod omap3xxx_timer8_hwmod
= {
933 .mpu_irqs
= omap2_timer8_mpu_irqs
,
934 .main_clk
= "gpt8_fck",
938 .module_bit
= OMAP3430_EN_GPT8_SHIFT
,
939 .module_offs
= OMAP3430_PER_MOD
,
941 .idlest_idle_bit
= OMAP3430_ST_GPT8_SHIFT
,
944 .dev_attr
= &capability_pwm_dev_attr
,
945 .slaves
= omap3xxx_timer8_slaves
,
946 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer8_slaves
),
947 .class = &omap3xxx_timer_hwmod_class
,
951 static struct omap_hwmod omap3xxx_timer9_hwmod
;
953 static struct omap_hwmod_addr_space omap3xxx_timer9_addrs
[] = {
955 .pa_start
= 0x49040000,
956 .pa_end
= 0x49040000 + SZ_1K
- 1,
957 .flags
= ADDR_TYPE_RT
962 /* l4_per -> timer9 */
963 static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9
= {
964 .master
= &omap3xxx_l4_per_hwmod
,
965 .slave
= &omap3xxx_timer9_hwmod
,
967 .addr
= omap3xxx_timer9_addrs
,
968 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
971 /* timer9 slave port */
972 static struct omap_hwmod_ocp_if
*omap3xxx_timer9_slaves
[] = {
973 &omap3xxx_l4_per__timer9
,
977 static struct omap_hwmod omap3xxx_timer9_hwmod
= {
979 .mpu_irqs
= omap2_timer9_mpu_irqs
,
980 .main_clk
= "gpt9_fck",
984 .module_bit
= OMAP3430_EN_GPT9_SHIFT
,
985 .module_offs
= OMAP3430_PER_MOD
,
987 .idlest_idle_bit
= OMAP3430_ST_GPT9_SHIFT
,
990 .dev_attr
= &capability_pwm_dev_attr
,
991 .slaves
= omap3xxx_timer9_slaves
,
992 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer9_slaves
),
993 .class = &omap3xxx_timer_hwmod_class
,
997 static struct omap_hwmod omap3xxx_timer10_hwmod
;
999 /* l4_core -> timer10 */
1000 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10
= {
1001 .master
= &omap3xxx_l4_core_hwmod
,
1002 .slave
= &omap3xxx_timer10_hwmod
,
1004 .addr
= omap2_timer10_addrs
,
1005 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1008 /* timer10 slave port */
1009 static struct omap_hwmod_ocp_if
*omap3xxx_timer10_slaves
[] = {
1010 &omap3xxx_l4_core__timer10
,
1014 static struct omap_hwmod omap3xxx_timer10_hwmod
= {
1016 .mpu_irqs
= omap2_timer10_mpu_irqs
,
1017 .main_clk
= "gpt10_fck",
1021 .module_bit
= OMAP3430_EN_GPT10_SHIFT
,
1022 .module_offs
= CORE_MOD
,
1024 .idlest_idle_bit
= OMAP3430_ST_GPT10_SHIFT
,
1027 .dev_attr
= &capability_pwm_dev_attr
,
1028 .slaves
= omap3xxx_timer10_slaves
,
1029 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer10_slaves
),
1030 .class = &omap3xxx_timer_1ms_hwmod_class
,
1034 static struct omap_hwmod omap3xxx_timer11_hwmod
;
1036 /* l4_core -> timer11 */
1037 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11
= {
1038 .master
= &omap3xxx_l4_core_hwmod
,
1039 .slave
= &omap3xxx_timer11_hwmod
,
1041 .addr
= omap2_timer11_addrs
,
1042 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1045 /* timer11 slave port */
1046 static struct omap_hwmod_ocp_if
*omap3xxx_timer11_slaves
[] = {
1047 &omap3xxx_l4_core__timer11
,
1051 static struct omap_hwmod omap3xxx_timer11_hwmod
= {
1053 .mpu_irqs
= omap2_timer11_mpu_irqs
,
1054 .main_clk
= "gpt11_fck",
1058 .module_bit
= OMAP3430_EN_GPT11_SHIFT
,
1059 .module_offs
= CORE_MOD
,
1061 .idlest_idle_bit
= OMAP3430_ST_GPT11_SHIFT
,
1064 .dev_attr
= &capability_pwm_dev_attr
,
1065 .slaves
= omap3xxx_timer11_slaves
,
1066 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer11_slaves
),
1067 .class = &omap3xxx_timer_hwmod_class
,
1071 static struct omap_hwmod omap3xxx_timer12_hwmod
;
1072 static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs
[] = {
1077 static struct omap_hwmod_addr_space omap3xxx_timer12_addrs
[] = {
1079 .pa_start
= 0x48304000,
1080 .pa_end
= 0x48304000 + SZ_1K
- 1,
1081 .flags
= ADDR_TYPE_RT
1086 /* l4_core -> timer12 */
1087 static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer12
= {
1088 .master
= &omap3xxx_l4_core_hwmod
,
1089 .slave
= &omap3xxx_timer12_hwmod
,
1091 .addr
= omap3xxx_timer12_addrs
,
1092 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1095 /* timer12 slave port */
1096 static struct omap_hwmod_ocp_if
*omap3xxx_timer12_slaves
[] = {
1097 &omap3xxx_l4_core__timer12
,
1101 static struct omap_hwmod omap3xxx_timer12_hwmod
= {
1103 .mpu_irqs
= omap3xxx_timer12_mpu_irqs
,
1104 .main_clk
= "gpt12_fck",
1108 .module_bit
= OMAP3430_EN_GPT12_SHIFT
,
1109 .module_offs
= WKUP_MOD
,
1111 .idlest_idle_bit
= OMAP3430_ST_GPT12_SHIFT
,
1114 .dev_attr
= &capability_secure_dev_attr
,
1115 .slaves
= omap3xxx_timer12_slaves
,
1116 .slaves_cnt
= ARRAY_SIZE(omap3xxx_timer12_slaves
),
1117 .class = &omap3xxx_timer_hwmod_class
,
1120 /* l4_wkup -> wd_timer2 */
1121 static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs
[] = {
1123 .pa_start
= 0x48314000,
1124 .pa_end
= 0x4831407f,
1125 .flags
= ADDR_TYPE_RT
1130 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2
= {
1131 .master
= &omap3xxx_l4_wkup_hwmod
,
1132 .slave
= &omap3xxx_wd_timer2_hwmod
,
1134 .addr
= omap3xxx_wd_timer2_addrs
,
1135 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1140 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1141 * overflow condition
1144 static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc
= {
1146 .sysc_offs
= 0x0010,
1147 .syss_offs
= 0x0014,
1148 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_EMUFREE
|
1149 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1150 SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
1151 SYSS_HAS_RESET_STATUS
),
1152 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1153 .sysc_fields
= &omap_hwmod_sysc_type1
,
1157 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
1161 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1162 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1163 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1164 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1165 .sysc_fields
= &omap_hwmod_sysc_type1
,
1168 static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class
= {
1170 .sysc
= &omap3xxx_wd_timer_sysc
,
1171 .pre_shutdown
= &omap2_wd_timer_disable
1175 static struct omap_hwmod_ocp_if
*omap3xxx_wd_timer2_slaves
[] = {
1176 &omap3xxx_l4_wkup__wd_timer2
,
1179 static struct omap_hwmod omap3xxx_wd_timer2_hwmod
= {
1180 .name
= "wd_timer2",
1181 .class = &omap3xxx_wd_timer_hwmod_class
,
1182 .main_clk
= "wdt2_fck",
1186 .module_bit
= OMAP3430_EN_WDT2_SHIFT
,
1187 .module_offs
= WKUP_MOD
,
1189 .idlest_idle_bit
= OMAP3430_ST_WDT2_SHIFT
,
1192 .slaves
= omap3xxx_wd_timer2_slaves
,
1193 .slaves_cnt
= ARRAY_SIZE(omap3xxx_wd_timer2_slaves
),
1195 * XXX: Use software supervised mode, HW supervised smartidle seems to
1196 * block CORE power domain idle transitions. Maybe a HW bug in wdt2?
1198 .flags
= HWMOD_SWSUP_SIDLE
,
1203 static struct omap_hwmod_ocp_if
*omap3xxx_uart1_slaves
[] = {
1204 &omap3_l4_core__uart1
,
1207 static struct omap_hwmod omap3xxx_uart1_hwmod
= {
1209 .mpu_irqs
= omap2_uart1_mpu_irqs
,
1210 .sdma_reqs
= omap2_uart1_sdma_reqs
,
1211 .main_clk
= "uart1_fck",
1214 .module_offs
= CORE_MOD
,
1216 .module_bit
= OMAP3430_EN_UART1_SHIFT
,
1218 .idlest_idle_bit
= OMAP3430_EN_UART1_SHIFT
,
1221 .slaves
= omap3xxx_uart1_slaves
,
1222 .slaves_cnt
= ARRAY_SIZE(omap3xxx_uart1_slaves
),
1223 .class = &omap2_uart_class
,
1228 static struct omap_hwmod_ocp_if
*omap3xxx_uart2_slaves
[] = {
1229 &omap3_l4_core__uart2
,
1232 static struct omap_hwmod omap3xxx_uart2_hwmod
= {
1234 .mpu_irqs
= omap2_uart2_mpu_irqs
,
1235 .sdma_reqs
= omap2_uart2_sdma_reqs
,
1236 .main_clk
= "uart2_fck",
1239 .module_offs
= CORE_MOD
,
1241 .module_bit
= OMAP3430_EN_UART2_SHIFT
,
1243 .idlest_idle_bit
= OMAP3430_EN_UART2_SHIFT
,
1246 .slaves
= omap3xxx_uart2_slaves
,
1247 .slaves_cnt
= ARRAY_SIZE(omap3xxx_uart2_slaves
),
1248 .class = &omap2_uart_class
,
1253 static struct omap_hwmod_ocp_if
*omap3xxx_uart3_slaves
[] = {
1254 &omap3_l4_per__uart3
,
1257 static struct omap_hwmod omap3xxx_uart3_hwmod
= {
1259 .mpu_irqs
= omap2_uart3_mpu_irqs
,
1260 .sdma_reqs
= omap2_uart3_sdma_reqs
,
1261 .main_clk
= "uart3_fck",
1264 .module_offs
= OMAP3430_PER_MOD
,
1266 .module_bit
= OMAP3430_EN_UART3_SHIFT
,
1268 .idlest_idle_bit
= OMAP3430_EN_UART3_SHIFT
,
1271 .slaves
= omap3xxx_uart3_slaves
,
1272 .slaves_cnt
= ARRAY_SIZE(omap3xxx_uart3_slaves
),
1273 .class = &omap2_uart_class
,
1278 static struct omap_hwmod_irq_info uart4_mpu_irqs
[] = {
1279 { .irq
= INT_36XX_UART4_IRQ
, },
1283 static struct omap_hwmod_dma_info uart4_sdma_reqs
[] = {
1284 { .name
= "rx", .dma_req
= OMAP36XX_DMA_UART4_RX
, },
1285 { .name
= "tx", .dma_req
= OMAP36XX_DMA_UART4_TX
, },
1289 static struct omap_hwmod_ocp_if
*omap3xxx_uart4_slaves
[] = {
1290 &omap3_l4_per__uart4
,
1293 static struct omap_hwmod omap3xxx_uart4_hwmod
= {
1295 .mpu_irqs
= uart4_mpu_irqs
,
1296 .sdma_reqs
= uart4_sdma_reqs
,
1297 .main_clk
= "uart4_fck",
1300 .module_offs
= OMAP3430_PER_MOD
,
1302 .module_bit
= OMAP3630_EN_UART4_SHIFT
,
1304 .idlest_idle_bit
= OMAP3630_EN_UART4_SHIFT
,
1307 .slaves
= omap3xxx_uart4_slaves
,
1308 .slaves_cnt
= ARRAY_SIZE(omap3xxx_uart4_slaves
),
1309 .class = &omap2_uart_class
,
1312 static struct omap_hwmod_class i2c_class
= {
1315 .rev
= OMAP_I2C_IP_VERSION_1
,
1316 .reset
= &omap_i2c_reset
,
1319 static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs
[] = {
1320 { .name
= "dispc", .dma_req
= 5 },
1321 { .name
= "dsi1", .dma_req
= 74 },
1326 /* dss master ports */
1327 static struct omap_hwmod_ocp_if
*omap3xxx_dss_masters
[] = {
1331 /* l4_core -> dss */
1332 static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss
= {
1333 .master
= &omap3xxx_l4_core_hwmod
,
1334 .slave
= &omap3430es1_dss_core_hwmod
,
1336 .addr
= omap2_dss_addrs
,
1339 .l4_fw_region
= OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION
,
1340 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
1341 .flags
= OMAP_FIREWALL_L4
,
1344 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1347 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss
= {
1348 .master
= &omap3xxx_l4_core_hwmod
,
1349 .slave
= &omap3xxx_dss_core_hwmod
,
1351 .addr
= omap2_dss_addrs
,
1354 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_CORE_REGION
,
1355 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
1356 .flags
= OMAP_FIREWALL_L4
,
1359 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1362 /* dss slave ports */
1363 static struct omap_hwmod_ocp_if
*omap3430es1_dss_slaves
[] = {
1364 &omap3430es1_l4_core__dss
,
1367 static struct omap_hwmod_ocp_if
*omap3xxx_dss_slaves
[] = {
1368 &omap3xxx_l4_core__dss
,
1371 static struct omap_hwmod_opt_clk dss_opt_clks
[] = {
1372 { .role
= "tv_clk", .clk
= "dss_tv_fck" },
1373 { .role
= "video_clk", .clk
= "dss_96m_fck" },
1374 { .role
= "sys_clk", .clk
= "dss2_alwon_fck" },
1377 static struct omap_hwmod omap3430es1_dss_core_hwmod
= {
1379 .class = &omap2_dss_hwmod_class
,
1380 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
1381 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
1385 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
1386 .module_offs
= OMAP3430_DSS_MOD
,
1388 .idlest_stdby_bit
= OMAP3430ES1_ST_DSS_SHIFT
,
1391 .opt_clks
= dss_opt_clks
,
1392 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
1393 .slaves
= omap3430es1_dss_slaves
,
1394 .slaves_cnt
= ARRAY_SIZE(omap3430es1_dss_slaves
),
1395 .masters
= omap3xxx_dss_masters
,
1396 .masters_cnt
= ARRAY_SIZE(omap3xxx_dss_masters
),
1397 .flags
= HWMOD_NO_IDLEST
,
1400 static struct omap_hwmod omap3xxx_dss_core_hwmod
= {
1402 .class = &omap2_dss_hwmod_class
,
1403 .main_clk
= "dss1_alwon_fck", /* instead of dss_fck */
1404 .sdma_reqs
= omap3xxx_dss_sdma_chs
,
1408 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
1409 .module_offs
= OMAP3430_DSS_MOD
,
1411 .idlest_idle_bit
= OMAP3430ES2_ST_DSS_IDLE_SHIFT
,
1412 .idlest_stdby_bit
= OMAP3430ES2_ST_DSS_STDBY_SHIFT
,
1415 .opt_clks
= dss_opt_clks
,
1416 .opt_clks_cnt
= ARRAY_SIZE(dss_opt_clks
),
1417 .slaves
= omap3xxx_dss_slaves
,
1418 .slaves_cnt
= ARRAY_SIZE(omap3xxx_dss_slaves
),
1419 .masters
= omap3xxx_dss_masters
,
1420 .masters_cnt
= ARRAY_SIZE(omap3xxx_dss_masters
),
1423 /* l4_core -> dss_dispc */
1424 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc
= {
1425 .master
= &omap3xxx_l4_core_hwmod
,
1426 .slave
= &omap3xxx_dss_dispc_hwmod
,
1428 .addr
= omap2_dss_dispc_addrs
,
1431 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DISPC_REGION
,
1432 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
1433 .flags
= OMAP_FIREWALL_L4
,
1436 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1439 /* dss_dispc slave ports */
1440 static struct omap_hwmod_ocp_if
*omap3xxx_dss_dispc_slaves
[] = {
1441 &omap3xxx_l4_core__dss_dispc
,
1444 static struct omap_hwmod omap3xxx_dss_dispc_hwmod
= {
1445 .name
= "dss_dispc",
1446 .class = &omap2_dispc_hwmod_class
,
1447 .mpu_irqs
= omap2_dispc_irqs
,
1448 .main_clk
= "dss1_alwon_fck",
1452 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
1453 .module_offs
= OMAP3430_DSS_MOD
,
1456 .slaves
= omap3xxx_dss_dispc_slaves
,
1457 .slaves_cnt
= ARRAY_SIZE(omap3xxx_dss_dispc_slaves
),
1458 .flags
= HWMOD_NO_IDLEST
,
1463 * display serial interface controller
1466 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class
= {
1470 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs
[] = {
1476 static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs
[] = {
1478 .pa_start
= 0x4804FC00,
1479 .pa_end
= 0x4804FFFF,
1480 .flags
= ADDR_TYPE_RT
1485 /* l4_core -> dss_dsi1 */
1486 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1
= {
1487 .master
= &omap3xxx_l4_core_hwmod
,
1488 .slave
= &omap3xxx_dss_dsi1_hwmod
,
1489 .addr
= omap3xxx_dss_dsi1_addrs
,
1492 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_DSI_REGION
,
1493 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
1494 .flags
= OMAP_FIREWALL_L4
,
1497 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1500 /* dss_dsi1 slave ports */
1501 static struct omap_hwmod_ocp_if
*omap3xxx_dss_dsi1_slaves
[] = {
1502 &omap3xxx_l4_core__dss_dsi1
,
1505 static struct omap_hwmod omap3xxx_dss_dsi1_hwmod
= {
1507 .class = &omap3xxx_dsi_hwmod_class
,
1508 .mpu_irqs
= omap3xxx_dsi1_irqs
,
1509 .main_clk
= "dss1_alwon_fck",
1513 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
1514 .module_offs
= OMAP3430_DSS_MOD
,
1517 .slaves
= omap3xxx_dss_dsi1_slaves
,
1518 .slaves_cnt
= ARRAY_SIZE(omap3xxx_dss_dsi1_slaves
),
1519 .flags
= HWMOD_NO_IDLEST
,
1522 /* l4_core -> dss_rfbi */
1523 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi
= {
1524 .master
= &omap3xxx_l4_core_hwmod
,
1525 .slave
= &omap3xxx_dss_rfbi_hwmod
,
1527 .addr
= omap2_dss_rfbi_addrs
,
1530 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_RFBI_REGION
,
1531 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
1532 .flags
= OMAP_FIREWALL_L4
,
1535 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1538 /* dss_rfbi slave ports */
1539 static struct omap_hwmod_ocp_if
*omap3xxx_dss_rfbi_slaves
[] = {
1540 &omap3xxx_l4_core__dss_rfbi
,
1543 static struct omap_hwmod omap3xxx_dss_rfbi_hwmod
= {
1545 .class = &omap2_rfbi_hwmod_class
,
1546 .main_clk
= "dss1_alwon_fck",
1550 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
1551 .module_offs
= OMAP3430_DSS_MOD
,
1554 .slaves
= omap3xxx_dss_rfbi_slaves
,
1555 .slaves_cnt
= ARRAY_SIZE(omap3xxx_dss_rfbi_slaves
),
1556 .flags
= HWMOD_NO_IDLEST
,
1559 /* l4_core -> dss_venc */
1560 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc
= {
1561 .master
= &omap3xxx_l4_core_hwmod
,
1562 .slave
= &omap3xxx_dss_venc_hwmod
,
1563 .clk
= "dss_tv_fck",
1564 .addr
= omap2_dss_venc_addrs
,
1567 .l4_fw_region
= OMAP3_L4_CORE_FW_DSS_VENC_REGION
,
1568 .l4_prot_group
= OMAP3_L4_CORE_FW_DSS_PROT_GROUP
,
1569 .flags
= OMAP_FIREWALL_L4
,
1572 .flags
= OCPIF_SWSUP_IDLE
,
1573 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1576 /* dss_venc slave ports */
1577 static struct omap_hwmod_ocp_if
*omap3xxx_dss_venc_slaves
[] = {
1578 &omap3xxx_l4_core__dss_venc
,
1581 static struct omap_hwmod omap3xxx_dss_venc_hwmod
= {
1583 .class = &omap2_venc_hwmod_class
,
1584 .main_clk
= "dss1_alwon_fck",
1588 .module_bit
= OMAP3430_EN_DSS1_SHIFT
,
1589 .module_offs
= OMAP3430_DSS_MOD
,
1592 .slaves
= omap3xxx_dss_venc_slaves
,
1593 .slaves_cnt
= ARRAY_SIZE(omap3xxx_dss_venc_slaves
),
1594 .flags
= HWMOD_NO_IDLEST
,
1599 static struct omap_i2c_dev_attr i2c1_dev_attr
= {
1600 .fifo_depth
= 8, /* bytes */
1601 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
1602 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
1603 OMAP_I2C_FLAG_BUS_SHIFT_2
,
1606 static struct omap_hwmod_ocp_if
*omap3xxx_i2c1_slaves
[] = {
1607 &omap3_l4_core__i2c1
,
1610 static struct omap_hwmod omap3xxx_i2c1_hwmod
= {
1612 .flags
= HWMOD_16BIT_REG
,
1613 .mpu_irqs
= omap2_i2c1_mpu_irqs
,
1614 .sdma_reqs
= omap2_i2c1_sdma_reqs
,
1615 .main_clk
= "i2c1_fck",
1618 .module_offs
= CORE_MOD
,
1620 .module_bit
= OMAP3430_EN_I2C1_SHIFT
,
1622 .idlest_idle_bit
= OMAP3430_ST_I2C1_SHIFT
,
1625 .slaves
= omap3xxx_i2c1_slaves
,
1626 .slaves_cnt
= ARRAY_SIZE(omap3xxx_i2c1_slaves
),
1627 .class = &i2c_class
,
1628 .dev_attr
= &i2c1_dev_attr
,
1633 static struct omap_i2c_dev_attr i2c2_dev_attr
= {
1634 .fifo_depth
= 8, /* bytes */
1635 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
1636 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
1637 OMAP_I2C_FLAG_BUS_SHIFT_2
,
1640 static struct omap_hwmod_ocp_if
*omap3xxx_i2c2_slaves
[] = {
1641 &omap3_l4_core__i2c2
,
1644 static struct omap_hwmod omap3xxx_i2c2_hwmod
= {
1646 .flags
= HWMOD_16BIT_REG
,
1647 .mpu_irqs
= omap2_i2c2_mpu_irqs
,
1648 .sdma_reqs
= omap2_i2c2_sdma_reqs
,
1649 .main_clk
= "i2c2_fck",
1652 .module_offs
= CORE_MOD
,
1654 .module_bit
= OMAP3430_EN_I2C2_SHIFT
,
1656 .idlest_idle_bit
= OMAP3430_ST_I2C2_SHIFT
,
1659 .slaves
= omap3xxx_i2c2_slaves
,
1660 .slaves_cnt
= ARRAY_SIZE(omap3xxx_i2c2_slaves
),
1661 .class = &i2c_class
,
1662 .dev_attr
= &i2c2_dev_attr
,
1667 static struct omap_i2c_dev_attr i2c3_dev_attr
= {
1668 .fifo_depth
= 64, /* bytes */
1669 .flags
= OMAP_I2C_FLAG_APPLY_ERRATA_I207
|
1670 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE
|
1671 OMAP_I2C_FLAG_BUS_SHIFT_2
,
1674 static struct omap_hwmod_irq_info i2c3_mpu_irqs
[] = {
1675 { .irq
= INT_34XX_I2C3_IRQ
, },
1679 static struct omap_hwmod_dma_info i2c3_sdma_reqs
[] = {
1680 { .name
= "tx", .dma_req
= OMAP34XX_DMA_I2C3_TX
},
1681 { .name
= "rx", .dma_req
= OMAP34XX_DMA_I2C3_RX
},
1685 static struct omap_hwmod_ocp_if
*omap3xxx_i2c3_slaves
[] = {
1686 &omap3_l4_core__i2c3
,
1689 static struct omap_hwmod omap3xxx_i2c3_hwmod
= {
1691 .flags
= HWMOD_16BIT_REG
,
1692 .mpu_irqs
= i2c3_mpu_irqs
,
1693 .sdma_reqs
= i2c3_sdma_reqs
,
1694 .main_clk
= "i2c3_fck",
1697 .module_offs
= CORE_MOD
,
1699 .module_bit
= OMAP3430_EN_I2C3_SHIFT
,
1701 .idlest_idle_bit
= OMAP3430_ST_I2C3_SHIFT
,
1704 .slaves
= omap3xxx_i2c3_slaves
,
1705 .slaves_cnt
= ARRAY_SIZE(omap3xxx_i2c3_slaves
),
1706 .class = &i2c_class
,
1707 .dev_attr
= &i2c3_dev_attr
,
1710 /* l4_wkup -> gpio1 */
1711 static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs
[] = {
1713 .pa_start
= 0x48310000,
1714 .pa_end
= 0x483101ff,
1715 .flags
= ADDR_TYPE_RT
1720 static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1
= {
1721 .master
= &omap3xxx_l4_wkup_hwmod
,
1722 .slave
= &omap3xxx_gpio1_hwmod
,
1723 .addr
= omap3xxx_gpio1_addrs
,
1724 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1727 /* l4_per -> gpio2 */
1728 static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs
[] = {
1730 .pa_start
= 0x49050000,
1731 .pa_end
= 0x490501ff,
1732 .flags
= ADDR_TYPE_RT
1737 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2
= {
1738 .master
= &omap3xxx_l4_per_hwmod
,
1739 .slave
= &omap3xxx_gpio2_hwmod
,
1740 .addr
= omap3xxx_gpio2_addrs
,
1741 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1744 /* l4_per -> gpio3 */
1745 static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs
[] = {
1747 .pa_start
= 0x49052000,
1748 .pa_end
= 0x490521ff,
1749 .flags
= ADDR_TYPE_RT
1754 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3
= {
1755 .master
= &omap3xxx_l4_per_hwmod
,
1756 .slave
= &omap3xxx_gpio3_hwmod
,
1757 .addr
= omap3xxx_gpio3_addrs
,
1758 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1761 /* l4_per -> gpio4 */
1762 static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs
[] = {
1764 .pa_start
= 0x49054000,
1765 .pa_end
= 0x490541ff,
1766 .flags
= ADDR_TYPE_RT
1771 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4
= {
1772 .master
= &omap3xxx_l4_per_hwmod
,
1773 .slave
= &omap3xxx_gpio4_hwmod
,
1774 .addr
= omap3xxx_gpio4_addrs
,
1775 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1778 /* l4_per -> gpio5 */
1779 static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs
[] = {
1781 .pa_start
= 0x49056000,
1782 .pa_end
= 0x490561ff,
1783 .flags
= ADDR_TYPE_RT
1788 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5
= {
1789 .master
= &omap3xxx_l4_per_hwmod
,
1790 .slave
= &omap3xxx_gpio5_hwmod
,
1791 .addr
= omap3xxx_gpio5_addrs
,
1792 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1795 /* l4_per -> gpio6 */
1796 static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs
[] = {
1798 .pa_start
= 0x49058000,
1799 .pa_end
= 0x490581ff,
1800 .flags
= ADDR_TYPE_RT
1805 static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6
= {
1806 .master
= &omap3xxx_l4_per_hwmod
,
1807 .slave
= &omap3xxx_gpio6_hwmod
,
1808 .addr
= omap3xxx_gpio6_addrs
,
1809 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1814 * general purpose io module
1817 static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc
= {
1819 .sysc_offs
= 0x0010,
1820 .syss_offs
= 0x0014,
1821 .sysc_flags
= (SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
1822 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
1823 SYSS_HAS_RESET_STATUS
),
1824 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1825 .sysc_fields
= &omap_hwmod_sysc_type1
,
1828 static struct omap_hwmod_class omap3xxx_gpio_hwmod_class
= {
1830 .sysc
= &omap3xxx_gpio_sysc
,
1835 static struct omap_gpio_dev_attr gpio_dev_attr
= {
1841 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
1842 { .role
= "dbclk", .clk
= "gpio1_dbck", },
1845 static struct omap_hwmod_ocp_if
*omap3xxx_gpio1_slaves
[] = {
1846 &omap3xxx_l4_wkup__gpio1
,
1849 static struct omap_hwmod omap3xxx_gpio1_hwmod
= {
1851 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1852 .mpu_irqs
= omap2_gpio1_irqs
,
1853 .main_clk
= "gpio1_ick",
1854 .opt_clks
= gpio1_opt_clks
,
1855 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
1859 .module_bit
= OMAP3430_EN_GPIO1_SHIFT
,
1860 .module_offs
= WKUP_MOD
,
1862 .idlest_idle_bit
= OMAP3430_ST_GPIO1_SHIFT
,
1865 .slaves
= omap3xxx_gpio1_slaves
,
1866 .slaves_cnt
= ARRAY_SIZE(omap3xxx_gpio1_slaves
),
1867 .class = &omap3xxx_gpio_hwmod_class
,
1868 .dev_attr
= &gpio_dev_attr
,
1872 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
1873 { .role
= "dbclk", .clk
= "gpio2_dbck", },
1876 static struct omap_hwmod_ocp_if
*omap3xxx_gpio2_slaves
[] = {
1877 &omap3xxx_l4_per__gpio2
,
1880 static struct omap_hwmod omap3xxx_gpio2_hwmod
= {
1882 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1883 .mpu_irqs
= omap2_gpio2_irqs
,
1884 .main_clk
= "gpio2_ick",
1885 .opt_clks
= gpio2_opt_clks
,
1886 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
1890 .module_bit
= OMAP3430_EN_GPIO2_SHIFT
,
1891 .module_offs
= OMAP3430_PER_MOD
,
1893 .idlest_idle_bit
= OMAP3430_ST_GPIO2_SHIFT
,
1896 .slaves
= omap3xxx_gpio2_slaves
,
1897 .slaves_cnt
= ARRAY_SIZE(omap3xxx_gpio2_slaves
),
1898 .class = &omap3xxx_gpio_hwmod_class
,
1899 .dev_attr
= &gpio_dev_attr
,
1903 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
1904 { .role
= "dbclk", .clk
= "gpio3_dbck", },
1907 static struct omap_hwmod_ocp_if
*omap3xxx_gpio3_slaves
[] = {
1908 &omap3xxx_l4_per__gpio3
,
1911 static struct omap_hwmod omap3xxx_gpio3_hwmod
= {
1913 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1914 .mpu_irqs
= omap2_gpio3_irqs
,
1915 .main_clk
= "gpio3_ick",
1916 .opt_clks
= gpio3_opt_clks
,
1917 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
1921 .module_bit
= OMAP3430_EN_GPIO3_SHIFT
,
1922 .module_offs
= OMAP3430_PER_MOD
,
1924 .idlest_idle_bit
= OMAP3430_ST_GPIO3_SHIFT
,
1927 .slaves
= omap3xxx_gpio3_slaves
,
1928 .slaves_cnt
= ARRAY_SIZE(omap3xxx_gpio3_slaves
),
1929 .class = &omap3xxx_gpio_hwmod_class
,
1930 .dev_attr
= &gpio_dev_attr
,
1934 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
1935 { .role
= "dbclk", .clk
= "gpio4_dbck", },
1938 static struct omap_hwmod_ocp_if
*omap3xxx_gpio4_slaves
[] = {
1939 &omap3xxx_l4_per__gpio4
,
1942 static struct omap_hwmod omap3xxx_gpio4_hwmod
= {
1944 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1945 .mpu_irqs
= omap2_gpio4_irqs
,
1946 .main_clk
= "gpio4_ick",
1947 .opt_clks
= gpio4_opt_clks
,
1948 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
1952 .module_bit
= OMAP3430_EN_GPIO4_SHIFT
,
1953 .module_offs
= OMAP3430_PER_MOD
,
1955 .idlest_idle_bit
= OMAP3430_ST_GPIO4_SHIFT
,
1958 .slaves
= omap3xxx_gpio4_slaves
,
1959 .slaves_cnt
= ARRAY_SIZE(omap3xxx_gpio4_slaves
),
1960 .class = &omap3xxx_gpio_hwmod_class
,
1961 .dev_attr
= &gpio_dev_attr
,
1965 static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs
[] = {
1966 { .irq
= 33 }, /* INT_34XX_GPIO_BANK5 */
1970 static struct omap_hwmod_opt_clk gpio5_opt_clks
[] = {
1971 { .role
= "dbclk", .clk
= "gpio5_dbck", },
1974 static struct omap_hwmod_ocp_if
*omap3xxx_gpio5_slaves
[] = {
1975 &omap3xxx_l4_per__gpio5
,
1978 static struct omap_hwmod omap3xxx_gpio5_hwmod
= {
1980 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
1981 .mpu_irqs
= omap3xxx_gpio5_irqs
,
1982 .main_clk
= "gpio5_ick",
1983 .opt_clks
= gpio5_opt_clks
,
1984 .opt_clks_cnt
= ARRAY_SIZE(gpio5_opt_clks
),
1988 .module_bit
= OMAP3430_EN_GPIO5_SHIFT
,
1989 .module_offs
= OMAP3430_PER_MOD
,
1991 .idlest_idle_bit
= OMAP3430_ST_GPIO5_SHIFT
,
1994 .slaves
= omap3xxx_gpio5_slaves
,
1995 .slaves_cnt
= ARRAY_SIZE(omap3xxx_gpio5_slaves
),
1996 .class = &omap3xxx_gpio_hwmod_class
,
1997 .dev_attr
= &gpio_dev_attr
,
2001 static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs
[] = {
2002 { .irq
= 34 }, /* INT_34XX_GPIO_BANK6 */
2006 static struct omap_hwmod_opt_clk gpio6_opt_clks
[] = {
2007 { .role
= "dbclk", .clk
= "gpio6_dbck", },
2010 static struct omap_hwmod_ocp_if
*omap3xxx_gpio6_slaves
[] = {
2011 &omap3xxx_l4_per__gpio6
,
2014 static struct omap_hwmod omap3xxx_gpio6_hwmod
= {
2016 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
2017 .mpu_irqs
= omap3xxx_gpio6_irqs
,
2018 .main_clk
= "gpio6_ick",
2019 .opt_clks
= gpio6_opt_clks
,
2020 .opt_clks_cnt
= ARRAY_SIZE(gpio6_opt_clks
),
2024 .module_bit
= OMAP3430_EN_GPIO6_SHIFT
,
2025 .module_offs
= OMAP3430_PER_MOD
,
2027 .idlest_idle_bit
= OMAP3430_ST_GPIO6_SHIFT
,
2030 .slaves
= omap3xxx_gpio6_slaves
,
2031 .slaves_cnt
= ARRAY_SIZE(omap3xxx_gpio6_slaves
),
2032 .class = &omap3xxx_gpio_hwmod_class
,
2033 .dev_attr
= &gpio_dev_attr
,
2036 /* dma_system -> L3 */
2037 static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3
= {
2038 .master
= &omap3xxx_dma_system_hwmod
,
2039 .slave
= &omap3xxx_l3_main_hwmod
,
2040 .clk
= "core_l3_ick",
2041 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2044 /* dma attributes */
2045 static struct omap_dma_dev_attr dma_dev_attr
= {
2046 .dev_caps
= RESERVE_CHANNEL
| DMA_LINKED_LCH
| GLOBAL_PRIORITY
|
2047 IS_CSSA_32
| IS_CDSA_32
| IS_RW_PRIORITY
,
2051 static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc
= {
2053 .sysc_offs
= 0x002c,
2054 .syss_offs
= 0x0028,
2055 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
2056 SYSC_HAS_MIDLEMODE
| SYSC_HAS_CLOCKACTIVITY
|
2057 SYSC_HAS_EMUFREE
| SYSC_HAS_AUTOIDLE
|
2058 SYSS_HAS_RESET_STATUS
),
2059 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2060 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
2061 .sysc_fields
= &omap_hwmod_sysc_type1
,
2064 static struct omap_hwmod_class omap3xxx_dma_hwmod_class
= {
2066 .sysc
= &omap3xxx_dma_sysc
,
2070 static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs
[] = {
2072 .pa_start
= 0x48056000,
2073 .pa_end
= 0x48056fff,
2074 .flags
= ADDR_TYPE_RT
2079 /* dma_system master ports */
2080 static struct omap_hwmod_ocp_if
*omap3xxx_dma_system_masters
[] = {
2081 &omap3xxx_dma_system__l3
,
2084 /* l4_cfg -> dma_system */
2085 static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system
= {
2086 .master
= &omap3xxx_l4_core_hwmod
,
2087 .slave
= &omap3xxx_dma_system_hwmod
,
2088 .clk
= "core_l4_ick",
2089 .addr
= omap3xxx_dma_system_addrs
,
2090 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2093 /* dma_system slave ports */
2094 static struct omap_hwmod_ocp_if
*omap3xxx_dma_system_slaves
[] = {
2095 &omap3xxx_l4_core__dma_system
,
2098 static struct omap_hwmod omap3xxx_dma_system_hwmod
= {
2100 .class = &omap3xxx_dma_hwmod_class
,
2101 .mpu_irqs
= omap2_dma_system_irqs
,
2102 .main_clk
= "core_l3_ick",
2105 .module_offs
= CORE_MOD
,
2107 .module_bit
= OMAP3430_ST_SDMA_SHIFT
,
2109 .idlest_idle_bit
= OMAP3430_ST_SDMA_SHIFT
,
2112 .slaves
= omap3xxx_dma_system_slaves
,
2113 .slaves_cnt
= ARRAY_SIZE(omap3xxx_dma_system_slaves
),
2114 .masters
= omap3xxx_dma_system_masters
,
2115 .masters_cnt
= ARRAY_SIZE(omap3xxx_dma_system_masters
),
2116 .dev_attr
= &dma_dev_attr
,
2117 .flags
= HWMOD_NO_IDLEST
,
2122 * multi channel buffered serial port controller
2125 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc
= {
2126 .sysc_offs
= 0x008c,
2127 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_ENAWAKEUP
|
2128 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
2129 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2130 .sysc_fields
= &omap_hwmod_sysc_type1
,
2134 static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class
= {
2136 .sysc
= &omap3xxx_mcbsp_sysc
,
2137 .rev
= MCBSP_CONFIG_TYPE3
,
2141 static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs
[] = {
2142 { .name
= "irq", .irq
= 16 },
2143 { .name
= "tx", .irq
= 59 },
2144 { .name
= "rx", .irq
= 60 },
2148 static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs
[] = {
2151 .pa_start
= 0x48074000,
2152 .pa_end
= 0x480740ff,
2153 .flags
= ADDR_TYPE_RT
2158 /* l4_core -> mcbsp1 */
2159 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1
= {
2160 .master
= &omap3xxx_l4_core_hwmod
,
2161 .slave
= &omap3xxx_mcbsp1_hwmod
,
2162 .clk
= "mcbsp1_ick",
2163 .addr
= omap3xxx_mcbsp1_addrs
,
2164 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2167 /* mcbsp1 slave ports */
2168 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp1_slaves
[] = {
2169 &omap3xxx_l4_core__mcbsp1
,
2172 static struct omap_hwmod omap3xxx_mcbsp1_hwmod
= {
2174 .class = &omap3xxx_mcbsp_hwmod_class
,
2175 .mpu_irqs
= omap3xxx_mcbsp1_irqs
,
2176 .sdma_reqs
= omap2_mcbsp1_sdma_reqs
,
2177 .main_clk
= "mcbsp1_fck",
2181 .module_bit
= OMAP3430_EN_MCBSP1_SHIFT
,
2182 .module_offs
= CORE_MOD
,
2184 .idlest_idle_bit
= OMAP3430_ST_MCBSP1_SHIFT
,
2187 .slaves
= omap3xxx_mcbsp1_slaves
,
2188 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp1_slaves
),
2192 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs
[] = {
2193 { .name
= "irq", .irq
= 17 },
2194 { .name
= "tx", .irq
= 62 },
2195 { .name
= "rx", .irq
= 63 },
2199 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs
[] = {
2202 .pa_start
= 0x49022000,
2203 .pa_end
= 0x490220ff,
2204 .flags
= ADDR_TYPE_RT
2209 /* l4_per -> mcbsp2 */
2210 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2
= {
2211 .master
= &omap3xxx_l4_per_hwmod
,
2212 .slave
= &omap3xxx_mcbsp2_hwmod
,
2213 .clk
= "mcbsp2_ick",
2214 .addr
= omap3xxx_mcbsp2_addrs
,
2215 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2218 /* mcbsp2 slave ports */
2219 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp2_slaves
[] = {
2220 &omap3xxx_l4_per__mcbsp2
,
2223 static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr
= {
2224 .sidetone
= "mcbsp2_sidetone",
2227 static struct omap_hwmod omap3xxx_mcbsp2_hwmod
= {
2229 .class = &omap3xxx_mcbsp_hwmod_class
,
2230 .mpu_irqs
= omap3xxx_mcbsp2_irqs
,
2231 .sdma_reqs
= omap2_mcbsp2_sdma_reqs
,
2232 .main_clk
= "mcbsp2_fck",
2236 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
2237 .module_offs
= OMAP3430_PER_MOD
,
2239 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
2242 .slaves
= omap3xxx_mcbsp2_slaves
,
2243 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp2_slaves
),
2244 .dev_attr
= &omap34xx_mcbsp2_dev_attr
,
2248 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs
[] = {
2249 { .name
= "irq", .irq
= 22 },
2250 { .name
= "tx", .irq
= 89 },
2251 { .name
= "rx", .irq
= 90 },
2255 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs
[] = {
2258 .pa_start
= 0x49024000,
2259 .pa_end
= 0x490240ff,
2260 .flags
= ADDR_TYPE_RT
2265 /* l4_per -> mcbsp3 */
2266 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3
= {
2267 .master
= &omap3xxx_l4_per_hwmod
,
2268 .slave
= &omap3xxx_mcbsp3_hwmod
,
2269 .clk
= "mcbsp3_ick",
2270 .addr
= omap3xxx_mcbsp3_addrs
,
2271 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2274 /* mcbsp3 slave ports */
2275 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp3_slaves
[] = {
2276 &omap3xxx_l4_per__mcbsp3
,
2279 static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr
= {
2280 .sidetone
= "mcbsp3_sidetone",
2283 static struct omap_hwmod omap3xxx_mcbsp3_hwmod
= {
2285 .class = &omap3xxx_mcbsp_hwmod_class
,
2286 .mpu_irqs
= omap3xxx_mcbsp3_irqs
,
2287 .sdma_reqs
= omap2_mcbsp3_sdma_reqs
,
2288 .main_clk
= "mcbsp3_fck",
2292 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
2293 .module_offs
= OMAP3430_PER_MOD
,
2295 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
2298 .slaves
= omap3xxx_mcbsp3_slaves
,
2299 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp3_slaves
),
2300 .dev_attr
= &omap34xx_mcbsp3_dev_attr
,
2304 static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs
[] = {
2305 { .name
= "irq", .irq
= 23 },
2306 { .name
= "tx", .irq
= 54 },
2307 { .name
= "rx", .irq
= 55 },
2311 static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs
[] = {
2312 { .name
= "rx", .dma_req
= 20 },
2313 { .name
= "tx", .dma_req
= 19 },
2317 static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs
[] = {
2320 .pa_start
= 0x49026000,
2321 .pa_end
= 0x490260ff,
2322 .flags
= ADDR_TYPE_RT
2327 /* l4_per -> mcbsp4 */
2328 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4
= {
2329 .master
= &omap3xxx_l4_per_hwmod
,
2330 .slave
= &omap3xxx_mcbsp4_hwmod
,
2331 .clk
= "mcbsp4_ick",
2332 .addr
= omap3xxx_mcbsp4_addrs
,
2333 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2336 /* mcbsp4 slave ports */
2337 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp4_slaves
[] = {
2338 &omap3xxx_l4_per__mcbsp4
,
2341 static struct omap_hwmod omap3xxx_mcbsp4_hwmod
= {
2343 .class = &omap3xxx_mcbsp_hwmod_class
,
2344 .mpu_irqs
= omap3xxx_mcbsp4_irqs
,
2345 .sdma_reqs
= omap3xxx_mcbsp4_sdma_chs
,
2346 .main_clk
= "mcbsp4_fck",
2350 .module_bit
= OMAP3430_EN_MCBSP4_SHIFT
,
2351 .module_offs
= OMAP3430_PER_MOD
,
2353 .idlest_idle_bit
= OMAP3430_ST_MCBSP4_SHIFT
,
2356 .slaves
= omap3xxx_mcbsp4_slaves
,
2357 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp4_slaves
),
2361 static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs
[] = {
2362 { .name
= "irq", .irq
= 27 },
2363 { .name
= "tx", .irq
= 81 },
2364 { .name
= "rx", .irq
= 82 },
2368 static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs
[] = {
2369 { .name
= "rx", .dma_req
= 22 },
2370 { .name
= "tx", .dma_req
= 21 },
2374 static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs
[] = {
2377 .pa_start
= 0x48096000,
2378 .pa_end
= 0x480960ff,
2379 .flags
= ADDR_TYPE_RT
2384 /* l4_core -> mcbsp5 */
2385 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5
= {
2386 .master
= &omap3xxx_l4_core_hwmod
,
2387 .slave
= &omap3xxx_mcbsp5_hwmod
,
2388 .clk
= "mcbsp5_ick",
2389 .addr
= omap3xxx_mcbsp5_addrs
,
2390 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2393 /* mcbsp5 slave ports */
2394 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp5_slaves
[] = {
2395 &omap3xxx_l4_core__mcbsp5
,
2398 static struct omap_hwmod omap3xxx_mcbsp5_hwmod
= {
2400 .class = &omap3xxx_mcbsp_hwmod_class
,
2401 .mpu_irqs
= omap3xxx_mcbsp5_irqs
,
2402 .sdma_reqs
= omap3xxx_mcbsp5_sdma_chs
,
2403 .main_clk
= "mcbsp5_fck",
2407 .module_bit
= OMAP3430_EN_MCBSP5_SHIFT
,
2408 .module_offs
= CORE_MOD
,
2410 .idlest_idle_bit
= OMAP3430_ST_MCBSP5_SHIFT
,
2413 .slaves
= omap3xxx_mcbsp5_slaves
,
2414 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp5_slaves
),
2416 /* 'mcbsp sidetone' class */
2418 static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc
= {
2419 .sysc_offs
= 0x0010,
2420 .sysc_flags
= SYSC_HAS_AUTOIDLE
,
2421 .sysc_fields
= &omap_hwmod_sysc_type1
,
2424 static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class
= {
2425 .name
= "mcbsp_sidetone",
2426 .sysc
= &omap3xxx_mcbsp_sidetone_sysc
,
2429 /* mcbsp2_sidetone */
2430 static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs
[] = {
2431 { .name
= "irq", .irq
= 4 },
2435 static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs
[] = {
2438 .pa_start
= 0x49028000,
2439 .pa_end
= 0x490280ff,
2440 .flags
= ADDR_TYPE_RT
2445 /* l4_per -> mcbsp2_sidetone */
2446 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone
= {
2447 .master
= &omap3xxx_l4_per_hwmod
,
2448 .slave
= &omap3xxx_mcbsp2_sidetone_hwmod
,
2449 .clk
= "mcbsp2_ick",
2450 .addr
= omap3xxx_mcbsp2_sidetone_addrs
,
2451 .user
= OCP_USER_MPU
,
2454 /* mcbsp2_sidetone slave ports */
2455 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp2_sidetone_slaves
[] = {
2456 &omap3xxx_l4_per__mcbsp2_sidetone
,
2459 static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod
= {
2460 .name
= "mcbsp2_sidetone",
2461 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
2462 .mpu_irqs
= omap3xxx_mcbsp2_sidetone_irqs
,
2463 .main_clk
= "mcbsp2_fck",
2467 .module_bit
= OMAP3430_EN_MCBSP2_SHIFT
,
2468 .module_offs
= OMAP3430_PER_MOD
,
2470 .idlest_idle_bit
= OMAP3430_ST_MCBSP2_SHIFT
,
2473 .slaves
= omap3xxx_mcbsp2_sidetone_slaves
,
2474 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp2_sidetone_slaves
),
2477 /* mcbsp3_sidetone */
2478 static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs
[] = {
2479 { .name
= "irq", .irq
= 5 },
2483 static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs
[] = {
2486 .pa_start
= 0x4902A000,
2487 .pa_end
= 0x4902A0ff,
2488 .flags
= ADDR_TYPE_RT
2493 /* l4_per -> mcbsp3_sidetone */
2494 static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone
= {
2495 .master
= &omap3xxx_l4_per_hwmod
,
2496 .slave
= &omap3xxx_mcbsp3_sidetone_hwmod
,
2497 .clk
= "mcbsp3_ick",
2498 .addr
= omap3xxx_mcbsp3_sidetone_addrs
,
2499 .user
= OCP_USER_MPU
,
2502 /* mcbsp3_sidetone slave ports */
2503 static struct omap_hwmod_ocp_if
*omap3xxx_mcbsp3_sidetone_slaves
[] = {
2504 &omap3xxx_l4_per__mcbsp3_sidetone
,
2507 static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod
= {
2508 .name
= "mcbsp3_sidetone",
2509 .class = &omap3xxx_mcbsp_sidetone_hwmod_class
,
2510 .mpu_irqs
= omap3xxx_mcbsp3_sidetone_irqs
,
2511 .main_clk
= "mcbsp3_fck",
2515 .module_bit
= OMAP3430_EN_MCBSP3_SHIFT
,
2516 .module_offs
= OMAP3430_PER_MOD
,
2518 .idlest_idle_bit
= OMAP3430_ST_MCBSP3_SHIFT
,
2521 .slaves
= omap3xxx_mcbsp3_sidetone_slaves
,
2522 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mcbsp3_sidetone_slaves
),
2527 static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields
= {
2531 static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc
= {
2533 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_NO_CACHE
),
2534 .clockact
= CLOCKACT_TEST_ICLK
,
2535 .sysc_fields
= &omap34xx_sr_sysc_fields
,
2538 static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class
= {
2539 .name
= "smartreflex",
2540 .sysc
= &omap34xx_sr_sysc
,
2544 static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields
= {
2549 static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc
= {
2551 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2552 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
2554 .sysc_fields
= &omap36xx_sr_sysc_fields
,
2557 static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class
= {
2558 .name
= "smartreflex",
2559 .sysc
= &omap36xx_sr_sysc
,
2564 static struct omap_hwmod_ocp_if
*omap3_sr1_slaves
[] = {
2565 &omap3_l4_core__sr1
,
2568 static struct omap_hwmod omap34xx_sr1_hwmod
= {
2569 .name
= "sr1_hwmod",
2570 .class = &omap34xx_smartreflex_hwmod_class
,
2571 .main_clk
= "sr1_fck",
2572 .vdd_name
= "mpu_iva",
2576 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
2577 .module_offs
= WKUP_MOD
,
2579 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
2582 .slaves
= omap3_sr1_slaves
,
2583 .slaves_cnt
= ARRAY_SIZE(omap3_sr1_slaves
),
2584 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2587 static struct omap_hwmod omap36xx_sr1_hwmod
= {
2588 .name
= "sr1_hwmod",
2589 .class = &omap36xx_smartreflex_hwmod_class
,
2590 .main_clk
= "sr1_fck",
2591 .vdd_name
= "mpu_iva",
2595 .module_bit
= OMAP3430_EN_SR1_SHIFT
,
2596 .module_offs
= WKUP_MOD
,
2598 .idlest_idle_bit
= OMAP3430_EN_SR1_SHIFT
,
2601 .slaves
= omap3_sr1_slaves
,
2602 .slaves_cnt
= ARRAY_SIZE(omap3_sr1_slaves
),
2606 static struct omap_hwmod_ocp_if
*omap3_sr2_slaves
[] = {
2607 &omap3_l4_core__sr2
,
2610 static struct omap_hwmod omap34xx_sr2_hwmod
= {
2611 .name
= "sr2_hwmod",
2612 .class = &omap34xx_smartreflex_hwmod_class
,
2613 .main_clk
= "sr2_fck",
2618 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
2619 .module_offs
= WKUP_MOD
,
2621 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
2624 .slaves
= omap3_sr2_slaves
,
2625 .slaves_cnt
= ARRAY_SIZE(omap3_sr2_slaves
),
2626 .flags
= HWMOD_SET_DEFAULT_CLOCKACT
,
2629 static struct omap_hwmod omap36xx_sr2_hwmod
= {
2630 .name
= "sr2_hwmod",
2631 .class = &omap36xx_smartreflex_hwmod_class
,
2632 .main_clk
= "sr2_fck",
2637 .module_bit
= OMAP3430_EN_SR2_SHIFT
,
2638 .module_offs
= WKUP_MOD
,
2640 .idlest_idle_bit
= OMAP3430_EN_SR2_SHIFT
,
2643 .slaves
= omap3_sr2_slaves
,
2644 .slaves_cnt
= ARRAY_SIZE(omap3_sr2_slaves
),
2649 * mailbox module allowing communication between the on-chip processors
2650 * using a queued mailbox-interrupt mechanism.
2653 static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc
= {
2657 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2658 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
2659 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2660 .sysc_fields
= &omap_hwmod_sysc_type1
,
2663 static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class
= {
2665 .sysc
= &omap3xxx_mailbox_sysc
,
2668 static struct omap_hwmod omap3xxx_mailbox_hwmod
;
2669 static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs
[] = {
2674 static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs
[] = {
2676 .pa_start
= 0x48094000,
2677 .pa_end
= 0x480941ff,
2678 .flags
= ADDR_TYPE_RT
,
2683 /* l4_core -> mailbox */
2684 static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox
= {
2685 .master
= &omap3xxx_l4_core_hwmod
,
2686 .slave
= &omap3xxx_mailbox_hwmod
,
2687 .addr
= omap3xxx_mailbox_addrs
,
2688 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2691 /* mailbox slave ports */
2692 static struct omap_hwmod_ocp_if
*omap3xxx_mailbox_slaves
[] = {
2693 &omap3xxx_l4_core__mailbox
,
2696 static struct omap_hwmod omap3xxx_mailbox_hwmod
= {
2698 .class = &omap3xxx_mailbox_hwmod_class
,
2699 .mpu_irqs
= omap3xxx_mailbox_irqs
,
2700 .main_clk
= "mailboxes_ick",
2704 .module_bit
= OMAP3430_EN_MAILBOXES_SHIFT
,
2705 .module_offs
= CORE_MOD
,
2707 .idlest_idle_bit
= OMAP3430_ST_MAILBOXES_SHIFT
,
2710 .slaves
= omap3xxx_mailbox_slaves
,
2711 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mailbox_slaves
),
2714 /* l4 core -> mcspi1 interface */
2715 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1
= {
2716 .master
= &omap3xxx_l4_core_hwmod
,
2717 .slave
= &omap34xx_mcspi1
,
2718 .clk
= "mcspi1_ick",
2719 .addr
= omap2_mcspi1_addr_space
,
2720 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2723 /* l4 core -> mcspi2 interface */
2724 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2
= {
2725 .master
= &omap3xxx_l4_core_hwmod
,
2726 .slave
= &omap34xx_mcspi2
,
2727 .clk
= "mcspi2_ick",
2728 .addr
= omap2_mcspi2_addr_space
,
2729 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2732 /* l4 core -> mcspi3 interface */
2733 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3
= {
2734 .master
= &omap3xxx_l4_core_hwmod
,
2735 .slave
= &omap34xx_mcspi3
,
2736 .clk
= "mcspi3_ick",
2737 .addr
= omap2430_mcspi3_addr_space
,
2738 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2741 /* l4 core -> mcspi4 interface */
2742 static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space
[] = {
2744 .pa_start
= 0x480ba000,
2745 .pa_end
= 0x480ba0ff,
2746 .flags
= ADDR_TYPE_RT
,
2751 static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4
= {
2752 .master
= &omap3xxx_l4_core_hwmod
,
2753 .slave
= &omap34xx_mcspi4
,
2754 .clk
= "mcspi4_ick",
2755 .addr
= omap34xx_mcspi4_addr_space
,
2756 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2761 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2765 static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc
= {
2767 .sysc_offs
= 0x0010,
2768 .syss_offs
= 0x0014,
2769 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
2770 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
2771 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
2772 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
2773 .sysc_fields
= &omap_hwmod_sysc_type1
,
2776 static struct omap_hwmod_class omap34xx_mcspi_class
= {
2778 .sysc
= &omap34xx_mcspi_sysc
,
2779 .rev
= OMAP3_MCSPI_REV
,
2783 static struct omap_hwmod_ocp_if
*omap34xx_mcspi1_slaves
[] = {
2784 &omap34xx_l4_core__mcspi1
,
2787 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr
= {
2788 .num_chipselect
= 4,
2791 static struct omap_hwmod omap34xx_mcspi1
= {
2793 .mpu_irqs
= omap2_mcspi1_mpu_irqs
,
2794 .sdma_reqs
= omap2_mcspi1_sdma_reqs
,
2795 .main_clk
= "mcspi1_fck",
2798 .module_offs
= CORE_MOD
,
2800 .module_bit
= OMAP3430_EN_MCSPI1_SHIFT
,
2802 .idlest_idle_bit
= OMAP3430_ST_MCSPI1_SHIFT
,
2805 .slaves
= omap34xx_mcspi1_slaves
,
2806 .slaves_cnt
= ARRAY_SIZE(omap34xx_mcspi1_slaves
),
2807 .class = &omap34xx_mcspi_class
,
2808 .dev_attr
= &omap_mcspi1_dev_attr
,
2812 static struct omap_hwmod_ocp_if
*omap34xx_mcspi2_slaves
[] = {
2813 &omap34xx_l4_core__mcspi2
,
2816 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr
= {
2817 .num_chipselect
= 2,
2820 static struct omap_hwmod omap34xx_mcspi2
= {
2822 .mpu_irqs
= omap2_mcspi2_mpu_irqs
,
2823 .sdma_reqs
= omap2_mcspi2_sdma_reqs
,
2824 .main_clk
= "mcspi2_fck",
2827 .module_offs
= CORE_MOD
,
2829 .module_bit
= OMAP3430_EN_MCSPI2_SHIFT
,
2831 .idlest_idle_bit
= OMAP3430_ST_MCSPI2_SHIFT
,
2834 .slaves
= omap34xx_mcspi2_slaves
,
2835 .slaves_cnt
= ARRAY_SIZE(omap34xx_mcspi2_slaves
),
2836 .class = &omap34xx_mcspi_class
,
2837 .dev_attr
= &omap_mcspi2_dev_attr
,
2841 static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs
[] = {
2842 { .name
= "irq", .irq
= 91 }, /* 91 */
2846 static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs
[] = {
2847 { .name
= "tx0", .dma_req
= 15 },
2848 { .name
= "rx0", .dma_req
= 16 },
2849 { .name
= "tx1", .dma_req
= 23 },
2850 { .name
= "rx1", .dma_req
= 24 },
2854 static struct omap_hwmod_ocp_if
*omap34xx_mcspi3_slaves
[] = {
2855 &omap34xx_l4_core__mcspi3
,
2858 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr
= {
2859 .num_chipselect
= 2,
2862 static struct omap_hwmod omap34xx_mcspi3
= {
2864 .mpu_irqs
= omap34xx_mcspi3_mpu_irqs
,
2865 .sdma_reqs
= omap34xx_mcspi3_sdma_reqs
,
2866 .main_clk
= "mcspi3_fck",
2869 .module_offs
= CORE_MOD
,
2871 .module_bit
= OMAP3430_EN_MCSPI3_SHIFT
,
2873 .idlest_idle_bit
= OMAP3430_ST_MCSPI3_SHIFT
,
2876 .slaves
= omap34xx_mcspi3_slaves
,
2877 .slaves_cnt
= ARRAY_SIZE(omap34xx_mcspi3_slaves
),
2878 .class = &omap34xx_mcspi_class
,
2879 .dev_attr
= &omap_mcspi3_dev_attr
,
2883 static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs
[] = {
2884 { .name
= "irq", .irq
= INT_34XX_SPI4_IRQ
}, /* 48 */
2888 static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs
[] = {
2889 { .name
= "tx0", .dma_req
= 70 }, /* DMA_SPI4_TX0 */
2890 { .name
= "rx0", .dma_req
= 71 }, /* DMA_SPI4_RX0 */
2894 static struct omap_hwmod_ocp_if
*omap34xx_mcspi4_slaves
[] = {
2895 &omap34xx_l4_core__mcspi4
,
2898 static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr
= {
2899 .num_chipselect
= 1,
2902 static struct omap_hwmod omap34xx_mcspi4
= {
2904 .mpu_irqs
= omap34xx_mcspi4_mpu_irqs
,
2905 .sdma_reqs
= omap34xx_mcspi4_sdma_reqs
,
2906 .main_clk
= "mcspi4_fck",
2909 .module_offs
= CORE_MOD
,
2911 .module_bit
= OMAP3430_EN_MCSPI4_SHIFT
,
2913 .idlest_idle_bit
= OMAP3430_ST_MCSPI4_SHIFT
,
2916 .slaves
= omap34xx_mcspi4_slaves
,
2917 .slaves_cnt
= ARRAY_SIZE(omap34xx_mcspi4_slaves
),
2918 .class = &omap34xx_mcspi_class
,
2919 .dev_attr
= &omap_mcspi4_dev_attr
,
2925 static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc
= {
2927 .sysc_offs
= 0x0404,
2928 .syss_offs
= 0x0408,
2929 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
2930 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
2932 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
2933 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
2934 .sysc_fields
= &omap_hwmod_sysc_type1
,
2937 static struct omap_hwmod_class usbotg_class
= {
2939 .sysc
= &omap3xxx_usbhsotg_sysc
,
2942 static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs
[] = {
2944 { .name
= "mc", .irq
= 92 },
2945 { .name
= "dma", .irq
= 93 },
2949 static struct omap_hwmod omap3xxx_usbhsotg_hwmod
= {
2950 .name
= "usb_otg_hs",
2951 .mpu_irqs
= omap3xxx_usbhsotg_mpu_irqs
,
2952 .main_clk
= "hsotgusb_ick",
2956 .module_bit
= OMAP3430_EN_HSOTGUSB_SHIFT
,
2957 .module_offs
= CORE_MOD
,
2959 .idlest_idle_bit
= OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT
,
2960 .idlest_stdby_bit
= OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT
2963 .masters
= omap3xxx_usbhsotg_masters
,
2964 .masters_cnt
= ARRAY_SIZE(omap3xxx_usbhsotg_masters
),
2965 .slaves
= omap3xxx_usbhsotg_slaves
,
2966 .slaves_cnt
= ARRAY_SIZE(omap3xxx_usbhsotg_slaves
),
2967 .class = &usbotg_class
,
2970 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
2971 * broken when autoidle is enabled
2972 * workaround is to disable the autoidle bit at module level.
2974 .flags
= HWMOD_NO_OCP_AUTOIDLE
| HWMOD_SWSUP_SIDLE
2975 | HWMOD_SWSUP_MSTANDBY
,
2979 static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs
[] = {
2981 { .name
= "mc", .irq
= 71 },
2985 static struct omap_hwmod_class am35xx_usbotg_class
= {
2986 .name
= "am35xx_usbotg",
2990 static struct omap_hwmod am35xx_usbhsotg_hwmod
= {
2991 .name
= "am35x_otg_hs",
2992 .mpu_irqs
= am35xx_usbhsotg_mpu_irqs
,
2998 .masters
= am35xx_usbhsotg_masters
,
2999 .masters_cnt
= ARRAY_SIZE(am35xx_usbhsotg_masters
),
3000 .slaves
= am35xx_usbhsotg_slaves
,
3001 .slaves_cnt
= ARRAY_SIZE(am35xx_usbhsotg_slaves
),
3002 .class = &am35xx_usbotg_class
,
3005 /* MMC/SD/SDIO common */
3007 static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc
= {
3011 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
3012 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
3013 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
3014 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
3015 .sysc_fields
= &omap_hwmod_sysc_type1
,
3018 static struct omap_hwmod_class omap34xx_mmc_class
= {
3020 .sysc
= &omap34xx_mmc_sysc
,
3025 static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs
[] = {
3030 static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs
[] = {
3031 { .name
= "tx", .dma_req
= 61, },
3032 { .name
= "rx", .dma_req
= 62, },
3036 static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks
[] = {
3037 { .role
= "dbck", .clk
= "omap_32k_fck", },
3040 static struct omap_hwmod_ocp_if
*omap3xxx_mmc1_slaves
[] = {
3041 &omap3xxx_l4_core__mmc1
,
3044 static struct omap_mmc_dev_attr mmc1_dev_attr
= {
3045 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
3048 static struct omap_hwmod omap3xxx_mmc1_hwmod
= {
3050 .mpu_irqs
= omap34xx_mmc1_mpu_irqs
,
3051 .sdma_reqs
= omap34xx_mmc1_sdma_reqs
,
3052 .opt_clks
= omap34xx_mmc1_opt_clks
,
3053 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc1_opt_clks
),
3054 .main_clk
= "mmchs1_fck",
3057 .module_offs
= CORE_MOD
,
3059 .module_bit
= OMAP3430_EN_MMC1_SHIFT
,
3061 .idlest_idle_bit
= OMAP3430_ST_MMC1_SHIFT
,
3064 .dev_attr
= &mmc1_dev_attr
,
3065 .slaves
= omap3xxx_mmc1_slaves
,
3066 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mmc1_slaves
),
3067 .class = &omap34xx_mmc_class
,
3072 static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs
[] = {
3073 { .irq
= INT_24XX_MMC2_IRQ
, },
3077 static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs
[] = {
3078 { .name
= "tx", .dma_req
= 47, },
3079 { .name
= "rx", .dma_req
= 48, },
3083 static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks
[] = {
3084 { .role
= "dbck", .clk
= "omap_32k_fck", },
3087 static struct omap_hwmod_ocp_if
*omap3xxx_mmc2_slaves
[] = {
3088 &omap3xxx_l4_core__mmc2
,
3091 static struct omap_hwmod omap3xxx_mmc2_hwmod
= {
3093 .mpu_irqs
= omap34xx_mmc2_mpu_irqs
,
3094 .sdma_reqs
= omap34xx_mmc2_sdma_reqs
,
3095 .opt_clks
= omap34xx_mmc2_opt_clks
,
3096 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc2_opt_clks
),
3097 .main_clk
= "mmchs2_fck",
3100 .module_offs
= CORE_MOD
,
3102 .module_bit
= OMAP3430_EN_MMC2_SHIFT
,
3104 .idlest_idle_bit
= OMAP3430_ST_MMC2_SHIFT
,
3107 .slaves
= omap3xxx_mmc2_slaves
,
3108 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mmc2_slaves
),
3109 .class = &omap34xx_mmc_class
,
3114 static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs
[] = {
3119 static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs
[] = {
3120 { .name
= "tx", .dma_req
= 77, },
3121 { .name
= "rx", .dma_req
= 78, },
3125 static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks
[] = {
3126 { .role
= "dbck", .clk
= "omap_32k_fck", },
3129 static struct omap_hwmod_ocp_if
*omap3xxx_mmc3_slaves
[] = {
3130 &omap3xxx_l4_core__mmc3
,
3133 static struct omap_hwmod omap3xxx_mmc3_hwmod
= {
3135 .mpu_irqs
= omap34xx_mmc3_mpu_irqs
,
3136 .sdma_reqs
= omap34xx_mmc3_sdma_reqs
,
3137 .opt_clks
= omap34xx_mmc3_opt_clks
,
3138 .opt_clks_cnt
= ARRAY_SIZE(omap34xx_mmc3_opt_clks
),
3139 .main_clk
= "mmchs3_fck",
3143 .module_bit
= OMAP3430_EN_MMC3_SHIFT
,
3145 .idlest_idle_bit
= OMAP3430_ST_MMC3_SHIFT
,
3148 .slaves
= omap3xxx_mmc3_slaves
,
3149 .slaves_cnt
= ARRAY_SIZE(omap3xxx_mmc3_slaves
),
3150 .class = &omap34xx_mmc_class
,
3153 static __initdata
struct omap_hwmod
*omap3xxx_hwmods
[] = {
3154 &omap3xxx_l3_main_hwmod
,
3155 &omap3xxx_l4_core_hwmod
,
3156 &omap3xxx_l4_per_hwmod
,
3157 &omap3xxx_l4_wkup_hwmod
,
3158 &omap3xxx_mmc1_hwmod
,
3159 &omap3xxx_mmc2_hwmod
,
3160 &omap3xxx_mmc3_hwmod
,
3161 &omap3xxx_mpu_hwmod
,
3163 &omap3xxx_timer1_hwmod
,
3164 &omap3xxx_timer2_hwmod
,
3165 &omap3xxx_timer3_hwmod
,
3166 &omap3xxx_timer4_hwmod
,
3167 &omap3xxx_timer5_hwmod
,
3168 &omap3xxx_timer6_hwmod
,
3169 &omap3xxx_timer7_hwmod
,
3170 &omap3xxx_timer8_hwmod
,
3171 &omap3xxx_timer9_hwmod
,
3172 &omap3xxx_timer10_hwmod
,
3173 &omap3xxx_timer11_hwmod
,
3174 &omap3xxx_timer12_hwmod
,
3176 &omap3xxx_wd_timer2_hwmod
,
3177 &omap3xxx_uart1_hwmod
,
3178 &omap3xxx_uart2_hwmod
,
3179 &omap3xxx_uart3_hwmod
,
3181 &omap3xxx_dss_dispc_hwmod
,
3182 &omap3xxx_dss_dsi1_hwmod
,
3183 &omap3xxx_dss_rfbi_hwmod
,
3184 &omap3xxx_dss_venc_hwmod
,
3187 &omap3xxx_i2c1_hwmod
,
3188 &omap3xxx_i2c2_hwmod
,
3189 &omap3xxx_i2c3_hwmod
,
3192 &omap3xxx_gpio1_hwmod
,
3193 &omap3xxx_gpio2_hwmod
,
3194 &omap3xxx_gpio3_hwmod
,
3195 &omap3xxx_gpio4_hwmod
,
3196 &omap3xxx_gpio5_hwmod
,
3197 &omap3xxx_gpio6_hwmod
,
3199 /* dma_system class*/
3200 &omap3xxx_dma_system_hwmod
,
3203 &omap3xxx_mcbsp1_hwmod
,
3204 &omap3xxx_mcbsp2_hwmod
,
3205 &omap3xxx_mcbsp3_hwmod
,
3206 &omap3xxx_mcbsp4_hwmod
,
3207 &omap3xxx_mcbsp5_hwmod
,
3208 &omap3xxx_mcbsp2_sidetone_hwmod
,
3209 &omap3xxx_mcbsp3_sidetone_hwmod
,
3221 /* 3430ES1-only hwmods */
3222 static __initdata
struct omap_hwmod
*omap3430es1_hwmods
[] = {
3223 &omap3xxx_iva_hwmod
,
3224 &omap3430es1_dss_core_hwmod
,
3225 &omap3xxx_mailbox_hwmod
,
3229 /* 3430ES2+-only hwmods */
3230 static __initdata
struct omap_hwmod
*omap3430es2plus_hwmods
[] = {
3231 &omap3xxx_iva_hwmod
,
3232 &omap3xxx_dss_core_hwmod
,
3233 &omap3xxx_usbhsotg_hwmod
,
3234 &omap3xxx_mailbox_hwmod
,
3238 /* 34xx-only hwmods (all ES revisions) */
3239 static __initdata
struct omap_hwmod
*omap34xx_hwmods
[] = {
3240 &omap3xxx_iva_hwmod
,
3241 &omap34xx_sr1_hwmod
,
3242 &omap34xx_sr2_hwmod
,
3243 &omap3xxx_mailbox_hwmod
,
3247 /* 36xx-only hwmods (all ES revisions) */
3248 static __initdata
struct omap_hwmod
*omap36xx_hwmods
[] = {
3249 &omap3xxx_iva_hwmod
,
3250 &omap3xxx_uart4_hwmod
,
3251 &omap3xxx_dss_core_hwmod
,
3252 &omap36xx_sr1_hwmod
,
3253 &omap36xx_sr2_hwmod
,
3254 &omap3xxx_usbhsotg_hwmod
,
3255 &omap3xxx_mailbox_hwmod
,
3259 static __initdata
struct omap_hwmod
*am35xx_hwmods
[] = {
3260 &omap3xxx_dss_core_hwmod
, /* XXX ??? */
3261 &am35xx_usbhsotg_hwmod
,
3265 int __init
omap3xxx_hwmod_init(void)
3268 struct omap_hwmod
**h
= NULL
;
3271 /* Register hwmods common to all OMAP3 */
3272 r
= omap_hwmod_register(omap3xxx_hwmods
);
3279 * Register hwmods common to individual OMAP3 families, all
3280 * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx)
3281 * All possible revisions should be included in this conditional.
3283 if (rev
== OMAP3430_REV_ES1_0
|| rev
== OMAP3430_REV_ES2_0
||
3284 rev
== OMAP3430_REV_ES2_1
|| rev
== OMAP3430_REV_ES3_0
||
3285 rev
== OMAP3430_REV_ES3_1
|| rev
== OMAP3430_REV_ES3_1_2
) {
3286 h
= omap34xx_hwmods
;
3287 } else if (rev
== OMAP3517_REV_ES1_0
|| rev
== OMAP3517_REV_ES1_1
) {
3289 } else if (rev
== OMAP3630_REV_ES1_0
|| rev
== OMAP3630_REV_ES1_1
||
3290 rev
== OMAP3630_REV_ES1_2
) {
3291 h
= omap36xx_hwmods
;
3293 WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
3297 r
= omap_hwmod_register(h
);
3302 * Register hwmods specific to certain ES levels of a
3303 * particular family of silicon (e.g., 34xx ES1.0)
3306 if (rev
== OMAP3430_REV_ES1_0
) {
3307 h
= omap3430es1_hwmods
;
3308 } else if (rev
== OMAP3430_REV_ES2_0
|| rev
== OMAP3430_REV_ES2_1
||
3309 rev
== OMAP3430_REV_ES3_0
|| rev
== OMAP3430_REV_ES3_1
||
3310 rev
== OMAP3430_REV_ES3_1_2
) {
3311 h
= omap3430es2plus_hwmods
;
3315 r
= omap_hwmod_register(h
);