ARM: tegra: fix compilation error due to mach/hardware.h removal
[linux-btrfs-devel.git] / arch / arm / mach-omap2 / omap_hwmod_2430_data.c
blob408193d8e044b6288a2c8e696f5f50f94ca46fe3
1 /*
2 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
4 * Copyright (C) 2009-2011 Nokia Corporation
5 * Paul Walmsley
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>
16 #include <plat/cpu.h>
17 #include <plat/dma.h>
18 #include <plat/serial.h>
19 #include <plat/i2c.h>
20 #include <plat/gpio.h>
21 #include <plat/mcbsp.h>
22 #include <plat/mcspi.h>
23 #include <plat/dmtimer.h>
24 #include <plat/mmc.h>
25 #include <plat/l3_2xxx.h>
27 #include "omap_hwmod_common_data.h"
29 #include "prm-regbits-24xx.h"
30 #include "cm-regbits-24xx.h"
31 #include "wd_timer.h"
34 * OMAP2430 hardware module integration data
36 * ALl of the data in this section should be autogeneratable from the
37 * TI hardware database or other technical documentation. Data that
38 * is driver-specific or driver-kernel integration-specific belongs
39 * elsewhere.
42 static struct omap_hwmod omap2430_mpu_hwmod;
43 static struct omap_hwmod omap2430_iva_hwmod;
44 static struct omap_hwmod omap2430_l3_main_hwmod;
45 static struct omap_hwmod omap2430_l4_core_hwmod;
46 static struct omap_hwmod omap2430_dss_core_hwmod;
47 static struct omap_hwmod omap2430_dss_dispc_hwmod;
48 static struct omap_hwmod omap2430_dss_rfbi_hwmod;
49 static struct omap_hwmod omap2430_dss_venc_hwmod;
50 static struct omap_hwmod omap2430_wd_timer2_hwmod;
51 static struct omap_hwmod omap2430_gpio1_hwmod;
52 static struct omap_hwmod omap2430_gpio2_hwmod;
53 static struct omap_hwmod omap2430_gpio3_hwmod;
54 static struct omap_hwmod omap2430_gpio4_hwmod;
55 static struct omap_hwmod omap2430_gpio5_hwmod;
56 static struct omap_hwmod omap2430_dma_system_hwmod;
57 static struct omap_hwmod omap2430_mcbsp1_hwmod;
58 static struct omap_hwmod omap2430_mcbsp2_hwmod;
59 static struct omap_hwmod omap2430_mcbsp3_hwmod;
60 static struct omap_hwmod omap2430_mcbsp4_hwmod;
61 static struct omap_hwmod omap2430_mcbsp5_hwmod;
62 static struct omap_hwmod omap2430_mcspi1_hwmod;
63 static struct omap_hwmod omap2430_mcspi2_hwmod;
64 static struct omap_hwmod omap2430_mcspi3_hwmod;
65 static struct omap_hwmod omap2430_mmc1_hwmod;
66 static struct omap_hwmod omap2430_mmc2_hwmod;
68 /* L3 -> L4_CORE interface */
69 static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
70 .master = &omap2430_l3_main_hwmod,
71 .slave = &omap2430_l4_core_hwmod,
72 .user = OCP_USER_MPU | OCP_USER_SDMA,
75 /* MPU -> L3 interface */
76 static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
77 .master = &omap2430_mpu_hwmod,
78 .slave = &omap2430_l3_main_hwmod,
79 .user = OCP_USER_MPU,
82 /* Slave interfaces on the L3 interconnect */
83 static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
84 &omap2430_mpu__l3_main,
87 /* DSS -> l3 */
88 static struct omap_hwmod_ocp_if omap2430_dss__l3 = {
89 .master = &omap2430_dss_core_hwmod,
90 .slave = &omap2430_l3_main_hwmod,
91 .fw = {
92 .omap2 = {
93 .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
94 .flags = OMAP_FIREWALL_L3,
97 .user = OCP_USER_MPU | OCP_USER_SDMA,
100 /* Master interfaces on the L3 interconnect */
101 static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
102 &omap2430_l3_main__l4_core,
105 /* L3 */
106 static struct omap_hwmod omap2430_l3_main_hwmod = {
107 .name = "l3_main",
108 .class = &l3_hwmod_class,
109 .masters = omap2430_l3_main_masters,
110 .masters_cnt = ARRAY_SIZE(omap2430_l3_main_masters),
111 .slaves = omap2430_l3_main_slaves,
112 .slaves_cnt = ARRAY_SIZE(omap2430_l3_main_slaves),
113 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
114 .flags = HWMOD_NO_IDLEST,
117 static struct omap_hwmod omap2430_l4_wkup_hwmod;
118 static struct omap_hwmod omap2430_uart1_hwmod;
119 static struct omap_hwmod omap2430_uart2_hwmod;
120 static struct omap_hwmod omap2430_uart3_hwmod;
121 static struct omap_hwmod omap2430_i2c1_hwmod;
122 static struct omap_hwmod omap2430_i2c2_hwmod;
124 static struct omap_hwmod omap2430_usbhsotg_hwmod;
126 /* l3_core -> usbhsotg interface */
127 static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
128 .master = &omap2430_usbhsotg_hwmod,
129 .slave = &omap2430_l3_main_hwmod,
130 .clk = "core_l3_ck",
131 .user = OCP_USER_MPU,
134 /* L4 CORE -> I2C1 interface */
135 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
136 .master = &omap2430_l4_core_hwmod,
137 .slave = &omap2430_i2c1_hwmod,
138 .clk = "i2c1_ick",
139 .addr = omap2_i2c1_addr_space,
140 .user = OCP_USER_MPU | OCP_USER_SDMA,
143 /* L4 CORE -> I2C2 interface */
144 static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
145 .master = &omap2430_l4_core_hwmod,
146 .slave = &omap2430_i2c2_hwmod,
147 .clk = "i2c2_ick",
148 .addr = omap2_i2c2_addr_space,
149 .user = OCP_USER_MPU | OCP_USER_SDMA,
152 /* L4_CORE -> L4_WKUP interface */
153 static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
154 .master = &omap2430_l4_core_hwmod,
155 .slave = &omap2430_l4_wkup_hwmod,
156 .user = OCP_USER_MPU | OCP_USER_SDMA,
159 /* L4 CORE -> UART1 interface */
160 static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
161 .master = &omap2430_l4_core_hwmod,
162 .slave = &omap2430_uart1_hwmod,
163 .clk = "uart1_ick",
164 .addr = omap2xxx_uart1_addr_space,
165 .user = OCP_USER_MPU | OCP_USER_SDMA,
168 /* L4 CORE -> UART2 interface */
169 static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
170 .master = &omap2430_l4_core_hwmod,
171 .slave = &omap2430_uart2_hwmod,
172 .clk = "uart2_ick",
173 .addr = omap2xxx_uart2_addr_space,
174 .user = OCP_USER_MPU | OCP_USER_SDMA,
177 /* L4 PER -> UART3 interface */
178 static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
179 .master = &omap2430_l4_core_hwmod,
180 .slave = &omap2430_uart3_hwmod,
181 .clk = "uart3_ick",
182 .addr = omap2xxx_uart3_addr_space,
183 .user = OCP_USER_MPU | OCP_USER_SDMA,
187 * usbhsotg interface data
189 static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
191 .pa_start = OMAP243X_HS_BASE,
192 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
193 .flags = ADDR_TYPE_RT
198 /* l4_core ->usbhsotg interface */
199 static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
200 .master = &omap2430_l4_core_hwmod,
201 .slave = &omap2430_usbhsotg_hwmod,
202 .clk = "usb_l4_ick",
203 .addr = omap2430_usbhsotg_addrs,
204 .user = OCP_USER_MPU,
207 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
208 &omap2430_usbhsotg__l3,
211 static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
212 &omap2430_l4_core__usbhsotg,
215 /* L4 CORE -> MMC1 interface */
216 static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
217 .master = &omap2430_l4_core_hwmod,
218 .slave = &omap2430_mmc1_hwmod,
219 .clk = "mmchs1_ick",
220 .addr = omap2430_mmc1_addr_space,
221 .user = OCP_USER_MPU | OCP_USER_SDMA,
224 /* L4 CORE -> MMC2 interface */
225 static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
226 .master = &omap2430_l4_core_hwmod,
227 .slave = &omap2430_mmc2_hwmod,
228 .clk = "mmchs2_ick",
229 .addr = omap2430_mmc2_addr_space,
230 .user = OCP_USER_MPU | OCP_USER_SDMA,
233 /* Slave interfaces on the L4_CORE interconnect */
234 static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
235 &omap2430_l3_main__l4_core,
238 /* Master interfaces on the L4_CORE interconnect */
239 static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
240 &omap2430_l4_core__l4_wkup,
241 &omap2430_l4_core__mmc1,
242 &omap2430_l4_core__mmc2,
245 /* L4 CORE */
246 static struct omap_hwmod omap2430_l4_core_hwmod = {
247 .name = "l4_core",
248 .class = &l4_hwmod_class,
249 .masters = omap2430_l4_core_masters,
250 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
251 .slaves = omap2430_l4_core_slaves,
252 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
253 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
254 .flags = HWMOD_NO_IDLEST,
257 /* Slave interfaces on the L4_WKUP interconnect */
258 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
259 &omap2430_l4_core__l4_wkup,
260 &omap2_l4_core__uart1,
261 &omap2_l4_core__uart2,
262 &omap2_l4_core__uart3,
265 /* Master interfaces on the L4_WKUP interconnect */
266 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
269 /* l4 core -> mcspi1 interface */
270 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
271 .master = &omap2430_l4_core_hwmod,
272 .slave = &omap2430_mcspi1_hwmod,
273 .clk = "mcspi1_ick",
274 .addr = omap2_mcspi1_addr_space,
275 .user = OCP_USER_MPU | OCP_USER_SDMA,
278 /* l4 core -> mcspi2 interface */
279 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
280 .master = &omap2430_l4_core_hwmod,
281 .slave = &omap2430_mcspi2_hwmod,
282 .clk = "mcspi2_ick",
283 .addr = omap2_mcspi2_addr_space,
284 .user = OCP_USER_MPU | OCP_USER_SDMA,
287 /* l4 core -> mcspi3 interface */
288 static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
289 .master = &omap2430_l4_core_hwmod,
290 .slave = &omap2430_mcspi3_hwmod,
291 .clk = "mcspi3_ick",
292 .addr = omap2430_mcspi3_addr_space,
293 .user = OCP_USER_MPU | OCP_USER_SDMA,
296 /* L4 WKUP */
297 static struct omap_hwmod omap2430_l4_wkup_hwmod = {
298 .name = "l4_wkup",
299 .class = &l4_hwmod_class,
300 .masters = omap2430_l4_wkup_masters,
301 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
302 .slaves = omap2430_l4_wkup_slaves,
303 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
304 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
305 .flags = HWMOD_NO_IDLEST,
308 /* Master interfaces on the MPU device */
309 static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
310 &omap2430_mpu__l3_main,
313 /* MPU */
314 static struct omap_hwmod omap2430_mpu_hwmod = {
315 .name = "mpu",
316 .class = &mpu_hwmod_class,
317 .main_clk = "mpu_ck",
318 .masters = omap2430_mpu_masters,
319 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
320 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
324 * IVA2_1 interface data
327 /* IVA2 <- L3 interface */
328 static struct omap_hwmod_ocp_if omap2430_l3__iva = {
329 .master = &omap2430_l3_main_hwmod,
330 .slave = &omap2430_iva_hwmod,
331 .clk = "dsp_fck",
332 .user = OCP_USER_MPU | OCP_USER_SDMA,
335 static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
336 &omap2430_l3__iva,
340 * IVA2 (IVA2)
343 static struct omap_hwmod omap2430_iva_hwmod = {
344 .name = "iva",
345 .class = &iva_hwmod_class,
346 .masters = omap2430_iva_masters,
347 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
348 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
351 /* timer1 */
352 static struct omap_hwmod omap2430_timer1_hwmod;
354 static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
356 .pa_start = 0x49018000,
357 .pa_end = 0x49018000 + SZ_1K - 1,
358 .flags = ADDR_TYPE_RT
363 /* l4_wkup -> timer1 */
364 static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
365 .master = &omap2430_l4_wkup_hwmod,
366 .slave = &omap2430_timer1_hwmod,
367 .clk = "gpt1_ick",
368 .addr = omap2430_timer1_addrs,
369 .user = OCP_USER_MPU | OCP_USER_SDMA,
372 /* timer1 slave port */
373 static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
374 &omap2430_l4_wkup__timer1,
377 /* timer1 hwmod */
378 static struct omap_hwmod omap2430_timer1_hwmod = {
379 .name = "timer1",
380 .mpu_irqs = omap2_timer1_mpu_irqs,
381 .main_clk = "gpt1_fck",
382 .prcm = {
383 .omap2 = {
384 .prcm_reg_id = 1,
385 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
386 .module_offs = WKUP_MOD,
387 .idlest_reg_id = 1,
388 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
391 .slaves = omap2430_timer1_slaves,
392 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
393 .class = &omap2xxx_timer_hwmod_class,
394 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
397 /* timer2 */
398 static struct omap_hwmod omap2430_timer2_hwmod;
400 /* l4_core -> timer2 */
401 static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
402 .master = &omap2430_l4_core_hwmod,
403 .slave = &omap2430_timer2_hwmod,
404 .clk = "gpt2_ick",
405 .addr = omap2xxx_timer2_addrs,
406 .user = OCP_USER_MPU | OCP_USER_SDMA,
409 /* timer2 slave port */
410 static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
411 &omap2430_l4_core__timer2,
414 /* timer2 hwmod */
415 static struct omap_hwmod omap2430_timer2_hwmod = {
416 .name = "timer2",
417 .mpu_irqs = omap2_timer2_mpu_irqs,
418 .main_clk = "gpt2_fck",
419 .prcm = {
420 .omap2 = {
421 .prcm_reg_id = 1,
422 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
423 .module_offs = CORE_MOD,
424 .idlest_reg_id = 1,
425 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
428 .slaves = omap2430_timer2_slaves,
429 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
430 .class = &omap2xxx_timer_hwmod_class,
431 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
434 /* timer3 */
435 static struct omap_hwmod omap2430_timer3_hwmod;
437 /* l4_core -> timer3 */
438 static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
439 .master = &omap2430_l4_core_hwmod,
440 .slave = &omap2430_timer3_hwmod,
441 .clk = "gpt3_ick",
442 .addr = omap2xxx_timer3_addrs,
443 .user = OCP_USER_MPU | OCP_USER_SDMA,
446 /* timer3 slave port */
447 static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
448 &omap2430_l4_core__timer3,
451 /* timer3 hwmod */
452 static struct omap_hwmod omap2430_timer3_hwmod = {
453 .name = "timer3",
454 .mpu_irqs = omap2_timer3_mpu_irqs,
455 .main_clk = "gpt3_fck",
456 .prcm = {
457 .omap2 = {
458 .prcm_reg_id = 1,
459 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
460 .module_offs = CORE_MOD,
461 .idlest_reg_id = 1,
462 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
465 .slaves = omap2430_timer3_slaves,
466 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
467 .class = &omap2xxx_timer_hwmod_class,
468 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
471 /* timer4 */
472 static struct omap_hwmod omap2430_timer4_hwmod;
474 /* l4_core -> timer4 */
475 static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
476 .master = &omap2430_l4_core_hwmod,
477 .slave = &omap2430_timer4_hwmod,
478 .clk = "gpt4_ick",
479 .addr = omap2xxx_timer4_addrs,
480 .user = OCP_USER_MPU | OCP_USER_SDMA,
483 /* timer4 slave port */
484 static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
485 &omap2430_l4_core__timer4,
488 /* timer4 hwmod */
489 static struct omap_hwmod omap2430_timer4_hwmod = {
490 .name = "timer4",
491 .mpu_irqs = omap2_timer4_mpu_irqs,
492 .main_clk = "gpt4_fck",
493 .prcm = {
494 .omap2 = {
495 .prcm_reg_id = 1,
496 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
497 .module_offs = CORE_MOD,
498 .idlest_reg_id = 1,
499 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
502 .slaves = omap2430_timer4_slaves,
503 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
504 .class = &omap2xxx_timer_hwmod_class,
505 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
508 /* timer5 */
509 static struct omap_hwmod omap2430_timer5_hwmod;
511 /* l4_core -> timer5 */
512 static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
513 .master = &omap2430_l4_core_hwmod,
514 .slave = &omap2430_timer5_hwmod,
515 .clk = "gpt5_ick",
516 .addr = omap2xxx_timer5_addrs,
517 .user = OCP_USER_MPU | OCP_USER_SDMA,
520 /* timer5 slave port */
521 static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
522 &omap2430_l4_core__timer5,
525 /* timer5 hwmod */
526 static struct omap_hwmod omap2430_timer5_hwmod = {
527 .name = "timer5",
528 .mpu_irqs = omap2_timer5_mpu_irqs,
529 .main_clk = "gpt5_fck",
530 .prcm = {
531 .omap2 = {
532 .prcm_reg_id = 1,
533 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
534 .module_offs = CORE_MOD,
535 .idlest_reg_id = 1,
536 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
539 .slaves = omap2430_timer5_slaves,
540 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
541 .class = &omap2xxx_timer_hwmod_class,
542 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
545 /* timer6 */
546 static struct omap_hwmod omap2430_timer6_hwmod;
548 /* l4_core -> timer6 */
549 static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
550 .master = &omap2430_l4_core_hwmod,
551 .slave = &omap2430_timer6_hwmod,
552 .clk = "gpt6_ick",
553 .addr = omap2xxx_timer6_addrs,
554 .user = OCP_USER_MPU | OCP_USER_SDMA,
557 /* timer6 slave port */
558 static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
559 &omap2430_l4_core__timer6,
562 /* timer6 hwmod */
563 static struct omap_hwmod omap2430_timer6_hwmod = {
564 .name = "timer6",
565 .mpu_irqs = omap2_timer6_mpu_irqs,
566 .main_clk = "gpt6_fck",
567 .prcm = {
568 .omap2 = {
569 .prcm_reg_id = 1,
570 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
571 .module_offs = CORE_MOD,
572 .idlest_reg_id = 1,
573 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
576 .slaves = omap2430_timer6_slaves,
577 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
578 .class = &omap2xxx_timer_hwmod_class,
579 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
582 /* timer7 */
583 static struct omap_hwmod omap2430_timer7_hwmod;
585 /* l4_core -> timer7 */
586 static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
587 .master = &omap2430_l4_core_hwmod,
588 .slave = &omap2430_timer7_hwmod,
589 .clk = "gpt7_ick",
590 .addr = omap2xxx_timer7_addrs,
591 .user = OCP_USER_MPU | OCP_USER_SDMA,
594 /* timer7 slave port */
595 static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
596 &omap2430_l4_core__timer7,
599 /* timer7 hwmod */
600 static struct omap_hwmod omap2430_timer7_hwmod = {
601 .name = "timer7",
602 .mpu_irqs = omap2_timer7_mpu_irqs,
603 .main_clk = "gpt7_fck",
604 .prcm = {
605 .omap2 = {
606 .prcm_reg_id = 1,
607 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
608 .module_offs = CORE_MOD,
609 .idlest_reg_id = 1,
610 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
613 .slaves = omap2430_timer7_slaves,
614 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
615 .class = &omap2xxx_timer_hwmod_class,
616 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
619 /* timer8 */
620 static struct omap_hwmod omap2430_timer8_hwmod;
622 /* l4_core -> timer8 */
623 static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
624 .master = &omap2430_l4_core_hwmod,
625 .slave = &omap2430_timer8_hwmod,
626 .clk = "gpt8_ick",
627 .addr = omap2xxx_timer8_addrs,
628 .user = OCP_USER_MPU | OCP_USER_SDMA,
631 /* timer8 slave port */
632 static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
633 &omap2430_l4_core__timer8,
636 /* timer8 hwmod */
637 static struct omap_hwmod omap2430_timer8_hwmod = {
638 .name = "timer8",
639 .mpu_irqs = omap2_timer8_mpu_irqs,
640 .main_clk = "gpt8_fck",
641 .prcm = {
642 .omap2 = {
643 .prcm_reg_id = 1,
644 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
645 .module_offs = CORE_MOD,
646 .idlest_reg_id = 1,
647 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
650 .slaves = omap2430_timer8_slaves,
651 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
652 .class = &omap2xxx_timer_hwmod_class,
653 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
656 /* timer9 */
657 static struct omap_hwmod omap2430_timer9_hwmod;
659 /* l4_core -> timer9 */
660 static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
661 .master = &omap2430_l4_core_hwmod,
662 .slave = &omap2430_timer9_hwmod,
663 .clk = "gpt9_ick",
664 .addr = omap2xxx_timer9_addrs,
665 .user = OCP_USER_MPU | OCP_USER_SDMA,
668 /* timer9 slave port */
669 static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
670 &omap2430_l4_core__timer9,
673 /* timer9 hwmod */
674 static struct omap_hwmod omap2430_timer9_hwmod = {
675 .name = "timer9",
676 .mpu_irqs = omap2_timer9_mpu_irqs,
677 .main_clk = "gpt9_fck",
678 .prcm = {
679 .omap2 = {
680 .prcm_reg_id = 1,
681 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
682 .module_offs = CORE_MOD,
683 .idlest_reg_id = 1,
684 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
687 .slaves = omap2430_timer9_slaves,
688 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
689 .class = &omap2xxx_timer_hwmod_class,
690 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
693 /* timer10 */
694 static struct omap_hwmod omap2430_timer10_hwmod;
696 /* l4_core -> timer10 */
697 static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
698 .master = &omap2430_l4_core_hwmod,
699 .slave = &omap2430_timer10_hwmod,
700 .clk = "gpt10_ick",
701 .addr = omap2_timer10_addrs,
702 .user = OCP_USER_MPU | OCP_USER_SDMA,
705 /* timer10 slave port */
706 static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
707 &omap2430_l4_core__timer10,
710 /* timer10 hwmod */
711 static struct omap_hwmod omap2430_timer10_hwmod = {
712 .name = "timer10",
713 .mpu_irqs = omap2_timer10_mpu_irqs,
714 .main_clk = "gpt10_fck",
715 .prcm = {
716 .omap2 = {
717 .prcm_reg_id = 1,
718 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
719 .module_offs = CORE_MOD,
720 .idlest_reg_id = 1,
721 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
724 .slaves = omap2430_timer10_slaves,
725 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
726 .class = &omap2xxx_timer_hwmod_class,
727 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
730 /* timer11 */
731 static struct omap_hwmod omap2430_timer11_hwmod;
733 /* l4_core -> timer11 */
734 static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
735 .master = &omap2430_l4_core_hwmod,
736 .slave = &omap2430_timer11_hwmod,
737 .clk = "gpt11_ick",
738 .addr = omap2_timer11_addrs,
739 .user = OCP_USER_MPU | OCP_USER_SDMA,
742 /* timer11 slave port */
743 static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
744 &omap2430_l4_core__timer11,
747 /* timer11 hwmod */
748 static struct omap_hwmod omap2430_timer11_hwmod = {
749 .name = "timer11",
750 .mpu_irqs = omap2_timer11_mpu_irqs,
751 .main_clk = "gpt11_fck",
752 .prcm = {
753 .omap2 = {
754 .prcm_reg_id = 1,
755 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
756 .module_offs = CORE_MOD,
757 .idlest_reg_id = 1,
758 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
761 .slaves = omap2430_timer11_slaves,
762 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
763 .class = &omap2xxx_timer_hwmod_class,
764 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
767 /* timer12 */
768 static struct omap_hwmod omap2430_timer12_hwmod;
770 /* l4_core -> timer12 */
771 static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
772 .master = &omap2430_l4_core_hwmod,
773 .slave = &omap2430_timer12_hwmod,
774 .clk = "gpt12_ick",
775 .addr = omap2xxx_timer12_addrs,
776 .user = OCP_USER_MPU | OCP_USER_SDMA,
779 /* timer12 slave port */
780 static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
781 &omap2430_l4_core__timer12,
784 /* timer12 hwmod */
785 static struct omap_hwmod omap2430_timer12_hwmod = {
786 .name = "timer12",
787 .mpu_irqs = omap2xxx_timer12_mpu_irqs,
788 .main_clk = "gpt12_fck",
789 .prcm = {
790 .omap2 = {
791 .prcm_reg_id = 1,
792 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
793 .module_offs = CORE_MOD,
794 .idlest_reg_id = 1,
795 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
798 .slaves = omap2430_timer12_slaves,
799 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
800 .class = &omap2xxx_timer_hwmod_class,
801 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
804 /* l4_wkup -> wd_timer2 */
805 static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
807 .pa_start = 0x49016000,
808 .pa_end = 0x4901607f,
809 .flags = ADDR_TYPE_RT
814 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
815 .master = &omap2430_l4_wkup_hwmod,
816 .slave = &omap2430_wd_timer2_hwmod,
817 .clk = "mpu_wdt_ick",
818 .addr = omap2430_wd_timer2_addrs,
819 .user = OCP_USER_MPU | OCP_USER_SDMA,
822 /* wd_timer2 */
823 static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
824 &omap2430_l4_wkup__wd_timer2,
827 static struct omap_hwmod omap2430_wd_timer2_hwmod = {
828 .name = "wd_timer2",
829 .class = &omap2xxx_wd_timer_hwmod_class,
830 .main_clk = "mpu_wdt_fck",
831 .prcm = {
832 .omap2 = {
833 .prcm_reg_id = 1,
834 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
835 .module_offs = WKUP_MOD,
836 .idlest_reg_id = 1,
837 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
840 .slaves = omap2430_wd_timer2_slaves,
841 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
842 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
845 /* UART1 */
847 static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
848 &omap2_l4_core__uart1,
851 static struct omap_hwmod omap2430_uart1_hwmod = {
852 .name = "uart1",
853 .mpu_irqs = omap2_uart1_mpu_irqs,
854 .sdma_reqs = omap2_uart1_sdma_reqs,
855 .main_clk = "uart1_fck",
856 .prcm = {
857 .omap2 = {
858 .module_offs = CORE_MOD,
859 .prcm_reg_id = 1,
860 .module_bit = OMAP24XX_EN_UART1_SHIFT,
861 .idlest_reg_id = 1,
862 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
865 .slaves = omap2430_uart1_slaves,
866 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
867 .class = &omap2_uart_class,
868 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
871 /* UART2 */
873 static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
874 &omap2_l4_core__uart2,
877 static struct omap_hwmod omap2430_uart2_hwmod = {
878 .name = "uart2",
879 .mpu_irqs = omap2_uart2_mpu_irqs,
880 .sdma_reqs = omap2_uart2_sdma_reqs,
881 .main_clk = "uart2_fck",
882 .prcm = {
883 .omap2 = {
884 .module_offs = CORE_MOD,
885 .prcm_reg_id = 1,
886 .module_bit = OMAP24XX_EN_UART2_SHIFT,
887 .idlest_reg_id = 1,
888 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
891 .slaves = omap2430_uart2_slaves,
892 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
893 .class = &omap2_uart_class,
894 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
897 /* UART3 */
899 static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
900 &omap2_l4_core__uart3,
903 static struct omap_hwmod omap2430_uart3_hwmod = {
904 .name = "uart3",
905 .mpu_irqs = omap2_uart3_mpu_irqs,
906 .sdma_reqs = omap2_uart3_sdma_reqs,
907 .main_clk = "uart3_fck",
908 .prcm = {
909 .omap2 = {
910 .module_offs = CORE_MOD,
911 .prcm_reg_id = 2,
912 .module_bit = OMAP24XX_EN_UART3_SHIFT,
913 .idlest_reg_id = 2,
914 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
917 .slaves = omap2430_uart3_slaves,
918 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
919 .class = &omap2_uart_class,
920 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
923 /* dss */
924 /* dss master ports */
925 static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
926 &omap2430_dss__l3,
929 /* l4_core -> dss */
930 static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
931 .master = &omap2430_l4_core_hwmod,
932 .slave = &omap2430_dss_core_hwmod,
933 .clk = "dss_ick",
934 .addr = omap2_dss_addrs,
935 .user = OCP_USER_MPU | OCP_USER_SDMA,
938 /* dss slave ports */
939 static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
940 &omap2430_l4_core__dss,
943 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
944 { .role = "tv_clk", .clk = "dss_54m_fck" },
945 { .role = "sys_clk", .clk = "dss2_fck" },
948 static struct omap_hwmod omap2430_dss_core_hwmod = {
949 .name = "dss_core",
950 .class = &omap2_dss_hwmod_class,
951 .main_clk = "dss1_fck", /* instead of dss_fck */
952 .sdma_reqs = omap2xxx_dss_sdma_chs,
953 .prcm = {
954 .omap2 = {
955 .prcm_reg_id = 1,
956 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
957 .module_offs = CORE_MOD,
958 .idlest_reg_id = 1,
959 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
962 .opt_clks = dss_opt_clks,
963 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
964 .slaves = omap2430_dss_slaves,
965 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
966 .masters = omap2430_dss_masters,
967 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
968 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
969 .flags = HWMOD_NO_IDLEST,
972 /* l4_core -> dss_dispc */
973 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
974 .master = &omap2430_l4_core_hwmod,
975 .slave = &omap2430_dss_dispc_hwmod,
976 .clk = "dss_ick",
977 .addr = omap2_dss_dispc_addrs,
978 .user = OCP_USER_MPU | OCP_USER_SDMA,
981 /* dss_dispc slave ports */
982 static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
983 &omap2430_l4_core__dss_dispc,
986 static struct omap_hwmod omap2430_dss_dispc_hwmod = {
987 .name = "dss_dispc",
988 .class = &omap2_dispc_hwmod_class,
989 .mpu_irqs = omap2_dispc_irqs,
990 .main_clk = "dss1_fck",
991 .prcm = {
992 .omap2 = {
993 .prcm_reg_id = 1,
994 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
995 .module_offs = CORE_MOD,
996 .idlest_reg_id = 1,
997 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1000 .slaves = omap2430_dss_dispc_slaves,
1001 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1002 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1003 .flags = HWMOD_NO_IDLEST,
1006 /* l4_core -> dss_rfbi */
1007 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1008 .master = &omap2430_l4_core_hwmod,
1009 .slave = &omap2430_dss_rfbi_hwmod,
1010 .clk = "dss_ick",
1011 .addr = omap2_dss_rfbi_addrs,
1012 .user = OCP_USER_MPU | OCP_USER_SDMA,
1015 /* dss_rfbi slave ports */
1016 static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1017 &omap2430_l4_core__dss_rfbi,
1020 static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1021 .name = "dss_rfbi",
1022 .class = &omap2_rfbi_hwmod_class,
1023 .main_clk = "dss1_fck",
1024 .prcm = {
1025 .omap2 = {
1026 .prcm_reg_id = 1,
1027 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1028 .module_offs = CORE_MOD,
1031 .slaves = omap2430_dss_rfbi_slaves,
1032 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1033 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1034 .flags = HWMOD_NO_IDLEST,
1037 /* l4_core -> dss_venc */
1038 static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1039 .master = &omap2430_l4_core_hwmod,
1040 .slave = &omap2430_dss_venc_hwmod,
1041 .clk = "dss_54m_fck",
1042 .addr = omap2_dss_venc_addrs,
1043 .flags = OCPIF_SWSUP_IDLE,
1044 .user = OCP_USER_MPU | OCP_USER_SDMA,
1047 /* dss_venc slave ports */
1048 static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1049 &omap2430_l4_core__dss_venc,
1052 static struct omap_hwmod omap2430_dss_venc_hwmod = {
1053 .name = "dss_venc",
1054 .class = &omap2_venc_hwmod_class,
1055 .main_clk = "dss1_fck",
1056 .prcm = {
1057 .omap2 = {
1058 .prcm_reg_id = 1,
1059 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1060 .module_offs = CORE_MOD,
1063 .slaves = omap2430_dss_venc_slaves,
1064 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1065 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1066 .flags = HWMOD_NO_IDLEST,
1069 /* I2C common */
1070 static struct omap_hwmod_class_sysconfig i2c_sysc = {
1071 .rev_offs = 0x00,
1072 .sysc_offs = 0x20,
1073 .syss_offs = 0x10,
1074 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1075 SYSS_HAS_RESET_STATUS),
1076 .sysc_fields = &omap_hwmod_sysc_type1,
1079 static struct omap_hwmod_class i2c_class = {
1080 .name = "i2c",
1081 .sysc = &i2c_sysc,
1082 .rev = OMAP_I2C_IP_VERSION_1,
1083 .reset = &omap_i2c_reset,
1086 static struct omap_i2c_dev_attr i2c_dev_attr = {
1087 .fifo_depth = 8, /* bytes */
1088 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
1089 OMAP_I2C_FLAG_BUS_SHIFT_2 |
1090 OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
1093 /* I2C1 */
1095 static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1096 &omap2430_l4_core__i2c1,
1099 static struct omap_hwmod omap2430_i2c1_hwmod = {
1100 .name = "i2c1",
1101 .flags = HWMOD_16BIT_REG,
1102 .mpu_irqs = omap2_i2c1_mpu_irqs,
1103 .sdma_reqs = omap2_i2c1_sdma_reqs,
1104 .main_clk = "i2chs1_fck",
1105 .prcm = {
1106 .omap2 = {
1108 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1109 * I2CHS IP's do not follow the usual pattern.
1110 * prcm_reg_id alone cannot be used to program
1111 * the iclk and fclk. Needs to be handled using
1112 * additional flags when clk handling is moved
1113 * to hwmod framework.
1115 .module_offs = CORE_MOD,
1116 .prcm_reg_id = 1,
1117 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1118 .idlest_reg_id = 1,
1119 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1122 .slaves = omap2430_i2c1_slaves,
1123 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1124 .class = &i2c_class,
1125 .dev_attr = &i2c_dev_attr,
1126 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1129 /* I2C2 */
1131 static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1132 &omap2430_l4_core__i2c2,
1135 static struct omap_hwmod omap2430_i2c2_hwmod = {
1136 .name = "i2c2",
1137 .flags = HWMOD_16BIT_REG,
1138 .mpu_irqs = omap2_i2c2_mpu_irqs,
1139 .sdma_reqs = omap2_i2c2_sdma_reqs,
1140 .main_clk = "i2chs2_fck",
1141 .prcm = {
1142 .omap2 = {
1143 .module_offs = CORE_MOD,
1144 .prcm_reg_id = 1,
1145 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1146 .idlest_reg_id = 1,
1147 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1150 .slaves = omap2430_i2c2_slaves,
1151 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1152 .class = &i2c_class,
1153 .dev_attr = &i2c_dev_attr,
1154 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1157 /* l4_wkup -> gpio1 */
1158 static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1160 .pa_start = 0x4900C000,
1161 .pa_end = 0x4900C1ff,
1162 .flags = ADDR_TYPE_RT
1167 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1168 .master = &omap2430_l4_wkup_hwmod,
1169 .slave = &omap2430_gpio1_hwmod,
1170 .clk = "gpios_ick",
1171 .addr = omap2430_gpio1_addr_space,
1172 .user = OCP_USER_MPU | OCP_USER_SDMA,
1175 /* l4_wkup -> gpio2 */
1176 static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1178 .pa_start = 0x4900E000,
1179 .pa_end = 0x4900E1ff,
1180 .flags = ADDR_TYPE_RT
1185 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1186 .master = &omap2430_l4_wkup_hwmod,
1187 .slave = &omap2430_gpio2_hwmod,
1188 .clk = "gpios_ick",
1189 .addr = omap2430_gpio2_addr_space,
1190 .user = OCP_USER_MPU | OCP_USER_SDMA,
1193 /* l4_wkup -> gpio3 */
1194 static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1196 .pa_start = 0x49010000,
1197 .pa_end = 0x490101ff,
1198 .flags = ADDR_TYPE_RT
1203 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1204 .master = &omap2430_l4_wkup_hwmod,
1205 .slave = &omap2430_gpio3_hwmod,
1206 .clk = "gpios_ick",
1207 .addr = omap2430_gpio3_addr_space,
1208 .user = OCP_USER_MPU | OCP_USER_SDMA,
1211 /* l4_wkup -> gpio4 */
1212 static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1214 .pa_start = 0x49012000,
1215 .pa_end = 0x490121ff,
1216 .flags = ADDR_TYPE_RT
1221 static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1222 .master = &omap2430_l4_wkup_hwmod,
1223 .slave = &omap2430_gpio4_hwmod,
1224 .clk = "gpios_ick",
1225 .addr = omap2430_gpio4_addr_space,
1226 .user = OCP_USER_MPU | OCP_USER_SDMA,
1229 /* l4_core -> gpio5 */
1230 static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1232 .pa_start = 0x480B6000,
1233 .pa_end = 0x480B61ff,
1234 .flags = ADDR_TYPE_RT
1239 static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1240 .master = &omap2430_l4_core_hwmod,
1241 .slave = &omap2430_gpio5_hwmod,
1242 .clk = "gpio5_ick",
1243 .addr = omap2430_gpio5_addr_space,
1244 .user = OCP_USER_MPU | OCP_USER_SDMA,
1247 /* gpio dev_attr */
1248 static struct omap_gpio_dev_attr gpio_dev_attr = {
1249 .bank_width = 32,
1250 .dbck_flag = false,
1253 /* gpio1 */
1254 static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1255 &omap2430_l4_wkup__gpio1,
1258 static struct omap_hwmod omap2430_gpio1_hwmod = {
1259 .name = "gpio1",
1260 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1261 .mpu_irqs = omap2_gpio1_irqs,
1262 .main_clk = "gpios_fck",
1263 .prcm = {
1264 .omap2 = {
1265 .prcm_reg_id = 1,
1266 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1267 .module_offs = WKUP_MOD,
1268 .idlest_reg_id = 1,
1269 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1272 .slaves = omap2430_gpio1_slaves,
1273 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1274 .class = &omap2xxx_gpio_hwmod_class,
1275 .dev_attr = &gpio_dev_attr,
1276 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1279 /* gpio2 */
1280 static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1281 &omap2430_l4_wkup__gpio2,
1284 static struct omap_hwmod omap2430_gpio2_hwmod = {
1285 .name = "gpio2",
1286 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1287 .mpu_irqs = omap2_gpio2_irqs,
1288 .main_clk = "gpios_fck",
1289 .prcm = {
1290 .omap2 = {
1291 .prcm_reg_id = 1,
1292 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1293 .module_offs = WKUP_MOD,
1294 .idlest_reg_id = 1,
1295 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1298 .slaves = omap2430_gpio2_slaves,
1299 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1300 .class = &omap2xxx_gpio_hwmod_class,
1301 .dev_attr = &gpio_dev_attr,
1302 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1305 /* gpio3 */
1306 static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1307 &omap2430_l4_wkup__gpio3,
1310 static struct omap_hwmod omap2430_gpio3_hwmod = {
1311 .name = "gpio3",
1312 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1313 .mpu_irqs = omap2_gpio3_irqs,
1314 .main_clk = "gpios_fck",
1315 .prcm = {
1316 .omap2 = {
1317 .prcm_reg_id = 1,
1318 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1319 .module_offs = WKUP_MOD,
1320 .idlest_reg_id = 1,
1321 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1324 .slaves = omap2430_gpio3_slaves,
1325 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1326 .class = &omap2xxx_gpio_hwmod_class,
1327 .dev_attr = &gpio_dev_attr,
1328 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1331 /* gpio4 */
1332 static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1333 &omap2430_l4_wkup__gpio4,
1336 static struct omap_hwmod omap2430_gpio4_hwmod = {
1337 .name = "gpio4",
1338 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1339 .mpu_irqs = omap2_gpio4_irqs,
1340 .main_clk = "gpios_fck",
1341 .prcm = {
1342 .omap2 = {
1343 .prcm_reg_id = 1,
1344 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1345 .module_offs = WKUP_MOD,
1346 .idlest_reg_id = 1,
1347 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1350 .slaves = omap2430_gpio4_slaves,
1351 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1352 .class = &omap2xxx_gpio_hwmod_class,
1353 .dev_attr = &gpio_dev_attr,
1354 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1357 /* gpio5 */
1358 static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1359 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1360 { .irq = -1 }
1363 static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1364 &omap2430_l4_core__gpio5,
1367 static struct omap_hwmod omap2430_gpio5_hwmod = {
1368 .name = "gpio5",
1369 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1370 .mpu_irqs = omap243x_gpio5_irqs,
1371 .main_clk = "gpio5_fck",
1372 .prcm = {
1373 .omap2 = {
1374 .prcm_reg_id = 2,
1375 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1376 .module_offs = CORE_MOD,
1377 .idlest_reg_id = 2,
1378 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1381 .slaves = omap2430_gpio5_slaves,
1382 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1383 .class = &omap2xxx_gpio_hwmod_class,
1384 .dev_attr = &gpio_dev_attr,
1385 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1388 /* dma attributes */
1389 static struct omap_dma_dev_attr dma_dev_attr = {
1390 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1391 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1392 .lch_count = 32,
1395 /* dma_system -> L3 */
1396 static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1397 .master = &omap2430_dma_system_hwmod,
1398 .slave = &omap2430_l3_main_hwmod,
1399 .clk = "core_l3_ck",
1400 .user = OCP_USER_MPU | OCP_USER_SDMA,
1403 /* dma_system master ports */
1404 static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1405 &omap2430_dma_system__l3,
1408 /* l4_core -> dma_system */
1409 static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1410 .master = &omap2430_l4_core_hwmod,
1411 .slave = &omap2430_dma_system_hwmod,
1412 .clk = "sdma_ick",
1413 .addr = omap2_dma_system_addrs,
1414 .user = OCP_USER_MPU | OCP_USER_SDMA,
1417 /* dma_system slave ports */
1418 static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1419 &omap2430_l4_core__dma_system,
1422 static struct omap_hwmod omap2430_dma_system_hwmod = {
1423 .name = "dma",
1424 .class = &omap2xxx_dma_hwmod_class,
1425 .mpu_irqs = omap2_dma_system_irqs,
1426 .main_clk = "core_l3_ck",
1427 .slaves = omap2430_dma_system_slaves,
1428 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1429 .masters = omap2430_dma_system_masters,
1430 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1431 .dev_attr = &dma_dev_attr,
1432 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1433 .flags = HWMOD_NO_IDLEST,
1436 /* mailbox */
1437 static struct omap_hwmod omap2430_mailbox_hwmod;
1438 static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1439 { .irq = 26 },
1440 { .irq = -1 }
1443 /* l4_core -> mailbox */
1444 static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1445 .master = &omap2430_l4_core_hwmod,
1446 .slave = &omap2430_mailbox_hwmod,
1447 .addr = omap2_mailbox_addrs,
1448 .user = OCP_USER_MPU | OCP_USER_SDMA,
1451 /* mailbox slave ports */
1452 static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1453 &omap2430_l4_core__mailbox,
1456 static struct omap_hwmod omap2430_mailbox_hwmod = {
1457 .name = "mailbox",
1458 .class = &omap2xxx_mailbox_hwmod_class,
1459 .mpu_irqs = omap2430_mailbox_irqs,
1460 .main_clk = "mailboxes_ick",
1461 .prcm = {
1462 .omap2 = {
1463 .prcm_reg_id = 1,
1464 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1465 .module_offs = CORE_MOD,
1466 .idlest_reg_id = 1,
1467 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1470 .slaves = omap2430_mailbox_slaves,
1471 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1472 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1475 /* mcspi1 */
1476 static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1477 &omap2430_l4_core__mcspi1,
1480 static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1481 .num_chipselect = 4,
1484 static struct omap_hwmod omap2430_mcspi1_hwmod = {
1485 .name = "mcspi1_hwmod",
1486 .mpu_irqs = omap2_mcspi1_mpu_irqs,
1487 .sdma_reqs = omap2_mcspi1_sdma_reqs,
1488 .main_clk = "mcspi1_fck",
1489 .prcm = {
1490 .omap2 = {
1491 .module_offs = CORE_MOD,
1492 .prcm_reg_id = 1,
1493 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1494 .idlest_reg_id = 1,
1495 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1498 .slaves = omap2430_mcspi1_slaves,
1499 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
1500 .class = &omap2xxx_mcspi_class,
1501 .dev_attr = &omap_mcspi1_dev_attr,
1502 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1505 /* mcspi2 */
1506 static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1507 &omap2430_l4_core__mcspi2,
1510 static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1511 .num_chipselect = 2,
1514 static struct omap_hwmod omap2430_mcspi2_hwmod = {
1515 .name = "mcspi2_hwmod",
1516 .mpu_irqs = omap2_mcspi2_mpu_irqs,
1517 .sdma_reqs = omap2_mcspi2_sdma_reqs,
1518 .main_clk = "mcspi2_fck",
1519 .prcm = {
1520 .omap2 = {
1521 .module_offs = CORE_MOD,
1522 .prcm_reg_id = 1,
1523 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1524 .idlest_reg_id = 1,
1525 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1528 .slaves = omap2430_mcspi2_slaves,
1529 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
1530 .class = &omap2xxx_mcspi_class,
1531 .dev_attr = &omap_mcspi2_dev_attr,
1532 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1535 /* mcspi3 */
1536 static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1537 { .irq = 91 },
1538 { .irq = -1 }
1541 static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1542 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1543 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1544 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1545 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
1546 { .dma_req = -1 }
1549 static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1550 &omap2430_l4_core__mcspi3,
1553 static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1554 .num_chipselect = 2,
1557 static struct omap_hwmod omap2430_mcspi3_hwmod = {
1558 .name = "mcspi3_hwmod",
1559 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
1560 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
1561 .main_clk = "mcspi3_fck",
1562 .prcm = {
1563 .omap2 = {
1564 .module_offs = CORE_MOD,
1565 .prcm_reg_id = 2,
1566 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1567 .idlest_reg_id = 2,
1568 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1571 .slaves = omap2430_mcspi3_slaves,
1572 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
1573 .class = &omap2xxx_mcspi_class,
1574 .dev_attr = &omap_mcspi3_dev_attr,
1575 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1579 * usbhsotg
1581 static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1582 .rev_offs = 0x0400,
1583 .sysc_offs = 0x0404,
1584 .syss_offs = 0x0408,
1585 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1586 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1587 SYSC_HAS_AUTOIDLE),
1588 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1589 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1590 .sysc_fields = &omap_hwmod_sysc_type1,
1593 static struct omap_hwmod_class usbotg_class = {
1594 .name = "usbotg",
1595 .sysc = &omap2430_usbhsotg_sysc,
1598 /* usb_otg_hs */
1599 static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1601 { .name = "mc", .irq = 92 },
1602 { .name = "dma", .irq = 93 },
1603 { .irq = -1 }
1606 static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1607 .name = "usb_otg_hs",
1608 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
1609 .main_clk = "usbhs_ick",
1610 .prcm = {
1611 .omap2 = {
1612 .prcm_reg_id = 1,
1613 .module_bit = OMAP2430_EN_USBHS_MASK,
1614 .module_offs = CORE_MOD,
1615 .idlest_reg_id = 1,
1616 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1619 .masters = omap2430_usbhsotg_masters,
1620 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1621 .slaves = omap2430_usbhsotg_slaves,
1622 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1623 .class = &usbotg_class,
1625 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1626 * broken when autoidle is enabled
1627 * workaround is to disable the autoidle bit at module level.
1629 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1630 | HWMOD_SWSUP_MSTANDBY,
1631 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1635 * 'mcbsp' class
1636 * multi channel buffered serial port controller
1639 static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
1640 .rev_offs = 0x007C,
1641 .sysc_offs = 0x008C,
1642 .sysc_flags = (SYSC_HAS_SOFTRESET),
1643 .sysc_fields = &omap_hwmod_sysc_type1,
1646 static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
1647 .name = "mcbsp",
1648 .sysc = &omap2430_mcbsp_sysc,
1649 .rev = MCBSP_CONFIG_TYPE2,
1652 /* mcbsp1 */
1653 static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
1654 { .name = "tx", .irq = 59 },
1655 { .name = "rx", .irq = 60 },
1656 { .name = "ovr", .irq = 61 },
1657 { .name = "common", .irq = 64 },
1658 { .irq = -1 }
1661 /* l4_core -> mcbsp1 */
1662 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
1663 .master = &omap2430_l4_core_hwmod,
1664 .slave = &omap2430_mcbsp1_hwmod,
1665 .clk = "mcbsp1_ick",
1666 .addr = omap2_mcbsp1_addrs,
1667 .user = OCP_USER_MPU | OCP_USER_SDMA,
1670 /* mcbsp1 slave ports */
1671 static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
1672 &omap2430_l4_core__mcbsp1,
1675 static struct omap_hwmod omap2430_mcbsp1_hwmod = {
1676 .name = "mcbsp1",
1677 .class = &omap2430_mcbsp_hwmod_class,
1678 .mpu_irqs = omap2430_mcbsp1_irqs,
1679 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
1680 .main_clk = "mcbsp1_fck",
1681 .prcm = {
1682 .omap2 = {
1683 .prcm_reg_id = 1,
1684 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
1685 .module_offs = CORE_MOD,
1686 .idlest_reg_id = 1,
1687 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
1690 .slaves = omap2430_mcbsp1_slaves,
1691 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
1692 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1695 /* mcbsp2 */
1696 static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
1697 { .name = "tx", .irq = 62 },
1698 { .name = "rx", .irq = 63 },
1699 { .name = "common", .irq = 16 },
1700 { .irq = -1 }
1703 /* l4_core -> mcbsp2 */
1704 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
1705 .master = &omap2430_l4_core_hwmod,
1706 .slave = &omap2430_mcbsp2_hwmod,
1707 .clk = "mcbsp2_ick",
1708 .addr = omap2xxx_mcbsp2_addrs,
1709 .user = OCP_USER_MPU | OCP_USER_SDMA,
1712 /* mcbsp2 slave ports */
1713 static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
1714 &omap2430_l4_core__mcbsp2,
1717 static struct omap_hwmod omap2430_mcbsp2_hwmod = {
1718 .name = "mcbsp2",
1719 .class = &omap2430_mcbsp_hwmod_class,
1720 .mpu_irqs = omap2430_mcbsp2_irqs,
1721 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
1722 .main_clk = "mcbsp2_fck",
1723 .prcm = {
1724 .omap2 = {
1725 .prcm_reg_id = 1,
1726 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
1727 .module_offs = CORE_MOD,
1728 .idlest_reg_id = 1,
1729 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
1732 .slaves = omap2430_mcbsp2_slaves,
1733 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
1734 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1737 /* mcbsp3 */
1738 static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
1739 { .name = "tx", .irq = 89 },
1740 { .name = "rx", .irq = 90 },
1741 { .name = "common", .irq = 17 },
1742 { .irq = -1 }
1745 static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
1747 .name = "mpu",
1748 .pa_start = 0x4808C000,
1749 .pa_end = 0x4808C0ff,
1750 .flags = ADDR_TYPE_RT
1755 /* l4_core -> mcbsp3 */
1756 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
1757 .master = &omap2430_l4_core_hwmod,
1758 .slave = &omap2430_mcbsp3_hwmod,
1759 .clk = "mcbsp3_ick",
1760 .addr = omap2430_mcbsp3_addrs,
1761 .user = OCP_USER_MPU | OCP_USER_SDMA,
1764 /* mcbsp3 slave ports */
1765 static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
1766 &omap2430_l4_core__mcbsp3,
1769 static struct omap_hwmod omap2430_mcbsp3_hwmod = {
1770 .name = "mcbsp3",
1771 .class = &omap2430_mcbsp_hwmod_class,
1772 .mpu_irqs = omap2430_mcbsp3_irqs,
1773 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
1774 .main_clk = "mcbsp3_fck",
1775 .prcm = {
1776 .omap2 = {
1777 .prcm_reg_id = 1,
1778 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
1779 .module_offs = CORE_MOD,
1780 .idlest_reg_id = 2,
1781 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
1784 .slaves = omap2430_mcbsp3_slaves,
1785 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
1786 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1789 /* mcbsp4 */
1790 static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
1791 { .name = "tx", .irq = 54 },
1792 { .name = "rx", .irq = 55 },
1793 { .name = "common", .irq = 18 },
1794 { .irq = -1 }
1797 static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
1798 { .name = "rx", .dma_req = 20 },
1799 { .name = "tx", .dma_req = 19 },
1800 { .dma_req = -1 }
1803 static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
1805 .name = "mpu",
1806 .pa_start = 0x4808E000,
1807 .pa_end = 0x4808E0ff,
1808 .flags = ADDR_TYPE_RT
1813 /* l4_core -> mcbsp4 */
1814 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
1815 .master = &omap2430_l4_core_hwmod,
1816 .slave = &omap2430_mcbsp4_hwmod,
1817 .clk = "mcbsp4_ick",
1818 .addr = omap2430_mcbsp4_addrs,
1819 .user = OCP_USER_MPU | OCP_USER_SDMA,
1822 /* mcbsp4 slave ports */
1823 static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
1824 &omap2430_l4_core__mcbsp4,
1827 static struct omap_hwmod omap2430_mcbsp4_hwmod = {
1828 .name = "mcbsp4",
1829 .class = &omap2430_mcbsp_hwmod_class,
1830 .mpu_irqs = omap2430_mcbsp4_irqs,
1831 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
1832 .main_clk = "mcbsp4_fck",
1833 .prcm = {
1834 .omap2 = {
1835 .prcm_reg_id = 1,
1836 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
1837 .module_offs = CORE_MOD,
1838 .idlest_reg_id = 2,
1839 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
1842 .slaves = omap2430_mcbsp4_slaves,
1843 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
1844 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1847 /* mcbsp5 */
1848 static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
1849 { .name = "tx", .irq = 81 },
1850 { .name = "rx", .irq = 82 },
1851 { .name = "common", .irq = 19 },
1852 { .irq = -1 }
1855 static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
1856 { .name = "rx", .dma_req = 22 },
1857 { .name = "tx", .dma_req = 21 },
1858 { .dma_req = -1 }
1861 static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
1863 .name = "mpu",
1864 .pa_start = 0x48096000,
1865 .pa_end = 0x480960ff,
1866 .flags = ADDR_TYPE_RT
1871 /* l4_core -> mcbsp5 */
1872 static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
1873 .master = &omap2430_l4_core_hwmod,
1874 .slave = &omap2430_mcbsp5_hwmod,
1875 .clk = "mcbsp5_ick",
1876 .addr = omap2430_mcbsp5_addrs,
1877 .user = OCP_USER_MPU | OCP_USER_SDMA,
1880 /* mcbsp5 slave ports */
1881 static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
1882 &omap2430_l4_core__mcbsp5,
1885 static struct omap_hwmod omap2430_mcbsp5_hwmod = {
1886 .name = "mcbsp5",
1887 .class = &omap2430_mcbsp_hwmod_class,
1888 .mpu_irqs = omap2430_mcbsp5_irqs,
1889 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
1890 .main_clk = "mcbsp5_fck",
1891 .prcm = {
1892 .omap2 = {
1893 .prcm_reg_id = 1,
1894 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
1895 .module_offs = CORE_MOD,
1896 .idlest_reg_id = 2,
1897 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
1900 .slaves = omap2430_mcbsp5_slaves,
1901 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
1902 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1905 /* MMC/SD/SDIO common */
1907 static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
1908 .rev_offs = 0x1fc,
1909 .sysc_offs = 0x10,
1910 .syss_offs = 0x14,
1911 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1912 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1913 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1914 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1915 .sysc_fields = &omap_hwmod_sysc_type1,
1918 static struct omap_hwmod_class omap2430_mmc_class = {
1919 .name = "mmc",
1920 .sysc = &omap2430_mmc_sysc,
1923 /* MMC/SD/SDIO1 */
1925 static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
1926 { .irq = 83 },
1927 { .irq = -1 }
1930 static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
1931 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
1932 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
1933 { .dma_req = -1 }
1936 static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
1937 { .role = "dbck", .clk = "mmchsdb1_fck" },
1940 static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
1941 &omap2430_l4_core__mmc1,
1944 static struct omap_mmc_dev_attr mmc1_dev_attr = {
1945 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1948 static struct omap_hwmod omap2430_mmc1_hwmod = {
1949 .name = "mmc1",
1950 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1951 .mpu_irqs = omap2430_mmc1_mpu_irqs,
1952 .sdma_reqs = omap2430_mmc1_sdma_reqs,
1953 .opt_clks = omap2430_mmc1_opt_clks,
1954 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
1955 .main_clk = "mmchs1_fck",
1956 .prcm = {
1957 .omap2 = {
1958 .module_offs = CORE_MOD,
1959 .prcm_reg_id = 2,
1960 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
1961 .idlest_reg_id = 2,
1962 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
1965 .dev_attr = &mmc1_dev_attr,
1966 .slaves = omap2430_mmc1_slaves,
1967 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
1968 .class = &omap2430_mmc_class,
1969 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1972 /* MMC/SD/SDIO2 */
1974 static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
1975 { .irq = 86 },
1976 { .irq = -1 }
1979 static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
1980 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
1981 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
1982 { .dma_req = -1 }
1985 static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
1986 { .role = "dbck", .clk = "mmchsdb2_fck" },
1989 static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
1990 &omap2430_l4_core__mmc2,
1993 static struct omap_hwmod omap2430_mmc2_hwmod = {
1994 .name = "mmc2",
1995 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1996 .mpu_irqs = omap2430_mmc2_mpu_irqs,
1997 .sdma_reqs = omap2430_mmc2_sdma_reqs,
1998 .opt_clks = omap2430_mmc2_opt_clks,
1999 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
2000 .main_clk = "mmchs2_fck",
2001 .prcm = {
2002 .omap2 = {
2003 .module_offs = CORE_MOD,
2004 .prcm_reg_id = 2,
2005 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2006 .idlest_reg_id = 2,
2007 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2010 .slaves = omap2430_mmc2_slaves,
2011 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2012 .class = &omap2430_mmc_class,
2013 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2016 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
2017 &omap2430_l3_main_hwmod,
2018 &omap2430_l4_core_hwmod,
2019 &omap2430_l4_wkup_hwmod,
2020 &omap2430_mpu_hwmod,
2021 &omap2430_iva_hwmod,
2023 &omap2430_timer1_hwmod,
2024 &omap2430_timer2_hwmod,
2025 &omap2430_timer3_hwmod,
2026 &omap2430_timer4_hwmod,
2027 &omap2430_timer5_hwmod,
2028 &omap2430_timer6_hwmod,
2029 &omap2430_timer7_hwmod,
2030 &omap2430_timer8_hwmod,
2031 &omap2430_timer9_hwmod,
2032 &omap2430_timer10_hwmod,
2033 &omap2430_timer11_hwmod,
2034 &omap2430_timer12_hwmod,
2036 &omap2430_wd_timer2_hwmod,
2037 &omap2430_uart1_hwmod,
2038 &omap2430_uart2_hwmod,
2039 &omap2430_uart3_hwmod,
2040 /* dss class */
2041 &omap2430_dss_core_hwmod,
2042 &omap2430_dss_dispc_hwmod,
2043 &omap2430_dss_rfbi_hwmod,
2044 &omap2430_dss_venc_hwmod,
2045 /* i2c class */
2046 &omap2430_i2c1_hwmod,
2047 &omap2430_i2c2_hwmod,
2048 &omap2430_mmc1_hwmod,
2049 &omap2430_mmc2_hwmod,
2051 /* gpio class */
2052 &omap2430_gpio1_hwmod,
2053 &omap2430_gpio2_hwmod,
2054 &omap2430_gpio3_hwmod,
2055 &omap2430_gpio4_hwmod,
2056 &omap2430_gpio5_hwmod,
2058 /* dma_system class*/
2059 &omap2430_dma_system_hwmod,
2061 /* mcbsp class */
2062 &omap2430_mcbsp1_hwmod,
2063 &omap2430_mcbsp2_hwmod,
2064 &omap2430_mcbsp3_hwmod,
2065 &omap2430_mcbsp4_hwmod,
2066 &omap2430_mcbsp5_hwmod,
2068 /* mailbox class */
2069 &omap2430_mailbox_hwmod,
2071 /* mcspi class */
2072 &omap2430_mcspi1_hwmod,
2073 &omap2430_mcspi2_hwmod,
2074 &omap2430_mcspi3_hwmod,
2076 /* usbotg class*/
2077 &omap2430_usbhsotg_hwmod,
2079 NULL,
2082 int __init omap2430_hwmod_init(void)
2084 return omap_hwmod_register(omap2430_hwmods);