2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2011 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2 as
18 * published by the Free Software Foundation.
23 #include <plat/omap_hwmod.h>
25 #include <plat/gpio.h>
27 #include <plat/mcspi.h>
28 #include <plat/mcbsp.h>
31 #include "omap_hwmod_common_data.h"
36 #include "prm-regbits-44xx.h"
39 /* Base offset for all OMAP4 interrupts external to MPUSS */
40 #define OMAP44XX_IRQ_GIC_START 32
42 /* Base offset for all OMAP4 dma requests */
43 #define OMAP44XX_DMA_REQ_START 1
45 /* Backward references (IPs with Bus Master capability) */
46 static struct omap_hwmod omap44xx_aess_hwmod;
47 static struct omap_hwmod omap44xx_dma_system_hwmod;
48 static struct omap_hwmod omap44xx_dmm_hwmod;
49 static struct omap_hwmod omap44xx_dsp_hwmod;
50 static struct omap_hwmod omap44xx_dss_hwmod;
51 static struct omap_hwmod omap44xx_emif_fw_hwmod;
52 static struct omap_hwmod omap44xx_hsi_hwmod;
53 static struct omap_hwmod omap44xx_ipu_hwmod;
54 static struct omap_hwmod omap44xx_iss_hwmod;
55 static struct omap_hwmod omap44xx_iva_hwmod;
56 static struct omap_hwmod omap44xx_l3_instr_hwmod;
57 static struct omap_hwmod omap44xx_l3_main_1_hwmod;
58 static struct omap_hwmod omap44xx_l3_main_2_hwmod;
59 static struct omap_hwmod omap44xx_l3_main_3_hwmod;
60 static struct omap_hwmod omap44xx_l4_abe_hwmod;
61 static struct omap_hwmod omap44xx_l4_cfg_hwmod;
62 static struct omap_hwmod omap44xx_l4_per_hwmod;
63 static struct omap_hwmod omap44xx_l4_wkup_hwmod;
64 static struct omap_hwmod omap44xx_mmc1_hwmod;
65 static struct omap_hwmod omap44xx_mmc2_hwmod;
66 static struct omap_hwmod omap44xx_mpu_hwmod;
67 static struct omap_hwmod omap44xx_mpu_private_hwmod;
68 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
71 * Interconnects omap_hwmod structures
72 * hwmods that compose the global OMAP interconnect
79 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
83 /* dmm interface data */
84 /* l3_main_1 -> dmm */
85 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
86 .master = &omap44xx_l3_main_1_hwmod,
87 .slave = &omap44xx_dmm_hwmod,
89 .user = OCP_USER_SDMA,
92 static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
94 .pa_start = 0x4e000000,
101 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
102 .master = &omap44xx_mpu_hwmod,
103 .slave = &omap44xx_dmm_hwmod,
105 .addr = omap44xx_dmm_addrs,
106 .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
107 .user = OCP_USER_MPU,
110 /* dmm slave ports */
111 static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
112 &omap44xx_l3_main_1__dmm,
116 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
117 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
120 static struct omap_hwmod omap44xx_dmm_hwmod = {
122 .class = &omap44xx_dmm_hwmod_class,
123 .slaves = omap44xx_dmm_slaves,
124 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
125 .mpu_irqs = omap44xx_dmm_irqs,
126 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
127 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
132 * instance(s): emif_fw
134 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
138 /* emif_fw interface data */
140 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
141 .master = &omap44xx_dmm_hwmod,
142 .slave = &omap44xx_emif_fw_hwmod,
144 .user = OCP_USER_MPU | OCP_USER_SDMA,
147 static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
149 .pa_start = 0x4a20c000,
150 .pa_end = 0x4a20c0ff,
151 .flags = ADDR_TYPE_RT
155 /* l4_cfg -> emif_fw */
156 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
157 .master = &omap44xx_l4_cfg_hwmod,
158 .slave = &omap44xx_emif_fw_hwmod,
160 .addr = omap44xx_emif_fw_addrs,
161 .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
162 .user = OCP_USER_MPU,
165 /* emif_fw slave ports */
166 static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
167 &omap44xx_dmm__emif_fw,
168 &omap44xx_l4_cfg__emif_fw,
171 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
173 .class = &omap44xx_emif_fw_hwmod_class,
174 .slaves = omap44xx_emif_fw_slaves,
175 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
176 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
181 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
183 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
187 /* l3_instr interface data */
188 /* iva -> l3_instr */
189 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
190 .master = &omap44xx_iva_hwmod,
191 .slave = &omap44xx_l3_instr_hwmod,
193 .user = OCP_USER_MPU | OCP_USER_SDMA,
196 /* l3_main_3 -> l3_instr */
197 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
198 .master = &omap44xx_l3_main_3_hwmod,
199 .slave = &omap44xx_l3_instr_hwmod,
201 .user = OCP_USER_MPU | OCP_USER_SDMA,
204 /* l3_instr slave ports */
205 static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
206 &omap44xx_iva__l3_instr,
207 &omap44xx_l3_main_3__l3_instr,
210 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
212 .class = &omap44xx_l3_hwmod_class,
213 .slaves = omap44xx_l3_instr_slaves,
214 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
215 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
218 /* l3_main_1 interface data */
219 /* dsp -> l3_main_1 */
220 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
221 .master = &omap44xx_dsp_hwmod,
222 .slave = &omap44xx_l3_main_1_hwmod,
224 .user = OCP_USER_MPU | OCP_USER_SDMA,
227 /* dss -> l3_main_1 */
228 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
229 .master = &omap44xx_dss_hwmod,
230 .slave = &omap44xx_l3_main_1_hwmod,
232 .user = OCP_USER_MPU | OCP_USER_SDMA,
235 /* l3_main_2 -> l3_main_1 */
236 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
237 .master = &omap44xx_l3_main_2_hwmod,
238 .slave = &omap44xx_l3_main_1_hwmod,
240 .user = OCP_USER_MPU | OCP_USER_SDMA,
243 /* l4_cfg -> l3_main_1 */
244 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
245 .master = &omap44xx_l4_cfg_hwmod,
246 .slave = &omap44xx_l3_main_1_hwmod,
248 .user = OCP_USER_MPU | OCP_USER_SDMA,
251 /* mmc1 -> l3_main_1 */
252 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
253 .master = &omap44xx_mmc1_hwmod,
254 .slave = &omap44xx_l3_main_1_hwmod,
256 .user = OCP_USER_MPU | OCP_USER_SDMA,
259 /* mmc2 -> l3_main_1 */
260 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
261 .master = &omap44xx_mmc2_hwmod,
262 .slave = &omap44xx_l3_main_1_hwmod,
264 .user = OCP_USER_MPU | OCP_USER_SDMA,
267 /* L3 target configuration and error log registers */
268 static struct omap_hwmod_irq_info omap44xx_l3_targ_irqs[] = {
269 { .irq = 9 + OMAP44XX_IRQ_GIC_START },
270 { .irq = 10 + OMAP44XX_IRQ_GIC_START },
273 static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
275 .pa_start = 0x44000000,
276 .pa_end = 0x44000fff,
277 .flags = ADDR_TYPE_RT,
281 /* mpu -> l3_main_1 */
282 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
283 .master = &omap44xx_mpu_hwmod,
284 .slave = &omap44xx_l3_main_1_hwmod,
286 .addr = omap44xx_l3_main_1_addrs,
287 .addr_cnt = ARRAY_SIZE(omap44xx_l3_main_1_addrs),
288 .user = OCP_USER_MPU | OCP_USER_SDMA,
291 /* l3_main_1 slave ports */
292 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
293 &omap44xx_dsp__l3_main_1,
294 &omap44xx_dss__l3_main_1,
295 &omap44xx_l3_main_2__l3_main_1,
296 &omap44xx_l4_cfg__l3_main_1,
297 &omap44xx_mmc1__l3_main_1,
298 &omap44xx_mmc2__l3_main_1,
299 &omap44xx_mpu__l3_main_1,
302 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
304 .class = &omap44xx_l3_hwmod_class,
305 .mpu_irqs = omap44xx_l3_targ_irqs,
306 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_l3_targ_irqs),
307 .slaves = omap44xx_l3_main_1_slaves,
308 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
309 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
312 /* l3_main_2 interface data */
313 /* dma_system -> l3_main_2 */
314 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
315 .master = &omap44xx_dma_system_hwmod,
316 .slave = &omap44xx_l3_main_2_hwmod,
318 .user = OCP_USER_MPU | OCP_USER_SDMA,
321 /* hsi -> l3_main_2 */
322 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
323 .master = &omap44xx_hsi_hwmod,
324 .slave = &omap44xx_l3_main_2_hwmod,
326 .user = OCP_USER_MPU | OCP_USER_SDMA,
329 /* ipu -> l3_main_2 */
330 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
331 .master = &omap44xx_ipu_hwmod,
332 .slave = &omap44xx_l3_main_2_hwmod,
334 .user = OCP_USER_MPU | OCP_USER_SDMA,
337 /* iss -> l3_main_2 */
338 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
339 .master = &omap44xx_iss_hwmod,
340 .slave = &omap44xx_l3_main_2_hwmod,
342 .user = OCP_USER_MPU | OCP_USER_SDMA,
345 /* iva -> l3_main_2 */
346 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
347 .master = &omap44xx_iva_hwmod,
348 .slave = &omap44xx_l3_main_2_hwmod,
350 .user = OCP_USER_MPU | OCP_USER_SDMA,
353 static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
355 .pa_start = 0x44800000,
356 .pa_end = 0x44801fff,
357 .flags = ADDR_TYPE_RT,
361 /* l3_main_1 -> l3_main_2 */
362 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
363 .master = &omap44xx_l3_main_1_hwmod,
364 .slave = &omap44xx_l3_main_2_hwmod,
366 .addr = omap44xx_l3_main_2_addrs,
367 .addr_cnt = ARRAY_SIZE(omap44xx_l3_main_2_addrs),
368 .user = OCP_USER_MPU | OCP_USER_SDMA,
371 /* l4_cfg -> l3_main_2 */
372 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
373 .master = &omap44xx_l4_cfg_hwmod,
374 .slave = &omap44xx_l3_main_2_hwmod,
376 .user = OCP_USER_MPU | OCP_USER_SDMA,
379 /* usb_otg_hs -> l3_main_2 */
380 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
381 .master = &omap44xx_usb_otg_hs_hwmod,
382 .slave = &omap44xx_l3_main_2_hwmod,
384 .user = OCP_USER_MPU | OCP_USER_SDMA,
387 /* l3_main_2 slave ports */
388 static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
389 &omap44xx_dma_system__l3_main_2,
390 &omap44xx_hsi__l3_main_2,
391 &omap44xx_ipu__l3_main_2,
392 &omap44xx_iss__l3_main_2,
393 &omap44xx_iva__l3_main_2,
394 &omap44xx_l3_main_1__l3_main_2,
395 &omap44xx_l4_cfg__l3_main_2,
396 &omap44xx_usb_otg_hs__l3_main_2,
399 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
401 .class = &omap44xx_l3_hwmod_class,
402 .slaves = omap44xx_l3_main_2_slaves,
403 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
404 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
407 /* l3_main_3 interface data */
408 static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
410 .pa_start = 0x45000000,
411 .pa_end = 0x45000fff,
412 .flags = ADDR_TYPE_RT,
416 /* l3_main_1 -> l3_main_3 */
417 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
418 .master = &omap44xx_l3_main_1_hwmod,
419 .slave = &omap44xx_l3_main_3_hwmod,
421 .addr = omap44xx_l3_main_3_addrs,
422 .addr_cnt = ARRAY_SIZE(omap44xx_l3_main_3_addrs),
423 .user = OCP_USER_MPU | OCP_USER_SDMA,
426 /* l3_main_2 -> l3_main_3 */
427 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
428 .master = &omap44xx_l3_main_2_hwmod,
429 .slave = &omap44xx_l3_main_3_hwmod,
431 .user = OCP_USER_MPU | OCP_USER_SDMA,
434 /* l4_cfg -> l3_main_3 */
435 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
436 .master = &omap44xx_l4_cfg_hwmod,
437 .slave = &omap44xx_l3_main_3_hwmod,
439 .user = OCP_USER_MPU | OCP_USER_SDMA,
442 /* l3_main_3 slave ports */
443 static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
444 &omap44xx_l3_main_1__l3_main_3,
445 &omap44xx_l3_main_2__l3_main_3,
446 &omap44xx_l4_cfg__l3_main_3,
449 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
451 .class = &omap44xx_l3_hwmod_class,
452 .slaves = omap44xx_l3_main_3_slaves,
453 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
454 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
459 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
461 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
465 /* l4_abe interface data */
467 static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
468 .master = &omap44xx_aess_hwmod,
469 .slave = &omap44xx_l4_abe_hwmod,
470 .clk = "ocp_abe_iclk",
471 .user = OCP_USER_MPU | OCP_USER_SDMA,
475 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
476 .master = &omap44xx_dsp_hwmod,
477 .slave = &omap44xx_l4_abe_hwmod,
478 .clk = "ocp_abe_iclk",
479 .user = OCP_USER_MPU | OCP_USER_SDMA,
482 /* l3_main_1 -> l4_abe */
483 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
484 .master = &omap44xx_l3_main_1_hwmod,
485 .slave = &omap44xx_l4_abe_hwmod,
487 .user = OCP_USER_MPU | OCP_USER_SDMA,
491 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
492 .master = &omap44xx_mpu_hwmod,
493 .slave = &omap44xx_l4_abe_hwmod,
494 .clk = "ocp_abe_iclk",
495 .user = OCP_USER_MPU | OCP_USER_SDMA,
498 /* l4_abe slave ports */
499 static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
500 &omap44xx_aess__l4_abe,
501 &omap44xx_dsp__l4_abe,
502 &omap44xx_l3_main_1__l4_abe,
503 &omap44xx_mpu__l4_abe,
506 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
508 .class = &omap44xx_l4_hwmod_class,
509 .slaves = omap44xx_l4_abe_slaves,
510 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
511 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
514 /* l4_cfg interface data */
515 /* l3_main_1 -> l4_cfg */
516 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
517 .master = &omap44xx_l3_main_1_hwmod,
518 .slave = &omap44xx_l4_cfg_hwmod,
520 .user = OCP_USER_MPU | OCP_USER_SDMA,
523 /* l4_cfg slave ports */
524 static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
525 &omap44xx_l3_main_1__l4_cfg,
528 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
530 .class = &omap44xx_l4_hwmod_class,
531 .slaves = omap44xx_l4_cfg_slaves,
532 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
533 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
536 /* l4_per interface data */
537 /* l3_main_2 -> l4_per */
538 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
539 .master = &omap44xx_l3_main_2_hwmod,
540 .slave = &omap44xx_l4_per_hwmod,
542 .user = OCP_USER_MPU | OCP_USER_SDMA,
545 /* l4_per slave ports */
546 static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
547 &omap44xx_l3_main_2__l4_per,
550 static struct omap_hwmod omap44xx_l4_per_hwmod = {
552 .class = &omap44xx_l4_hwmod_class,
553 .slaves = omap44xx_l4_per_slaves,
554 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
555 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
558 /* l4_wkup interface data */
559 /* l4_cfg -> l4_wkup */
560 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
561 .master = &omap44xx_l4_cfg_hwmod,
562 .slave = &omap44xx_l4_wkup_hwmod,
564 .user = OCP_USER_MPU | OCP_USER_SDMA,
567 /* l4_wkup slave ports */
568 static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
569 &omap44xx_l4_cfg__l4_wkup,
572 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
574 .class = &omap44xx_l4_hwmod_class,
575 .slaves = omap44xx_l4_wkup_slaves,
576 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
577 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
582 * instance(s): mpu_private
584 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
588 /* mpu_private interface data */
589 /* mpu -> mpu_private */
590 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
591 .master = &omap44xx_mpu_hwmod,
592 .slave = &omap44xx_mpu_private_hwmod,
594 .user = OCP_USER_MPU | OCP_USER_SDMA,
597 /* mpu_private slave ports */
598 static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
599 &omap44xx_mpu__mpu_private,
602 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
603 .name = "mpu_private",
604 .class = &omap44xx_mpu_bus_hwmod_class,
605 .slaves = omap44xx_mpu_private_slaves,
606 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
607 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
611 * Modules omap_hwmod structures
613 * The following IPs are excluded for the moment because:
614 * - They do not need an explicit SW control using omap_hwmod API.
615 * - They still need to be validated with the driver
616 * properly adapted to omap_hwmod / omap_device
623 * ctrl_module_pad_core
624 * ctrl_module_pad_wkup
655 * audio engine sub system
658 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
661 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
662 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
663 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
664 MSTANDBY_SMART_WKUP),
665 .sysc_fields = &omap_hwmod_sysc_type2,
668 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
670 .sysc = &omap44xx_aess_sysc,
674 static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
675 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
678 static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
679 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
680 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
681 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
682 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
683 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
684 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
685 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
686 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
689 /* aess master ports */
690 static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
691 &omap44xx_aess__l4_abe,
694 static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
696 .pa_start = 0x401f1000,
697 .pa_end = 0x401f13ff,
698 .flags = ADDR_TYPE_RT
703 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
704 .master = &omap44xx_l4_abe_hwmod,
705 .slave = &omap44xx_aess_hwmod,
706 .clk = "ocp_abe_iclk",
707 .addr = omap44xx_aess_addrs,
708 .addr_cnt = ARRAY_SIZE(omap44xx_aess_addrs),
709 .user = OCP_USER_MPU,
712 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
714 .pa_start = 0x490f1000,
715 .pa_end = 0x490f13ff,
716 .flags = ADDR_TYPE_RT
720 /* l4_abe -> aess (dma) */
721 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
722 .master = &omap44xx_l4_abe_hwmod,
723 .slave = &omap44xx_aess_hwmod,
724 .clk = "ocp_abe_iclk",
725 .addr = omap44xx_aess_dma_addrs,
726 .addr_cnt = ARRAY_SIZE(omap44xx_aess_dma_addrs),
727 .user = OCP_USER_SDMA,
730 /* aess slave ports */
731 static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
732 &omap44xx_l4_abe__aess,
733 &omap44xx_l4_abe__aess_dma,
736 static struct omap_hwmod omap44xx_aess_hwmod = {
738 .class = &omap44xx_aess_hwmod_class,
739 .mpu_irqs = omap44xx_aess_irqs,
740 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_aess_irqs),
741 .sdma_reqs = omap44xx_aess_sdma_reqs,
742 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_aess_sdma_reqs),
743 .main_clk = "aess_fck",
746 .clkctrl_reg = OMAP4430_CM1_ABE_AESS_CLKCTRL,
749 .slaves = omap44xx_aess_slaves,
750 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
751 .masters = omap44xx_aess_masters,
752 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
753 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
758 * bangap reference for ldo regulators
761 static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
766 static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
767 { .role = "fclk", .clk = "bandgap_fclk" },
770 static struct omap_hwmod omap44xx_bandgap_hwmod = {
772 .class = &omap44xx_bandgap_hwmod_class,
775 .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
778 .opt_clks = bandgap_opt_clks,
779 .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
780 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
785 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
788 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
791 .sysc_flags = SYSC_HAS_SIDLEMODE,
792 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
794 .sysc_fields = &omap_hwmod_sysc_type1,
797 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
799 .sysc = &omap44xx_counter_sysc,
803 static struct omap_hwmod omap44xx_counter_32k_hwmod;
804 static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
806 .pa_start = 0x4a304000,
807 .pa_end = 0x4a30401f,
808 .flags = ADDR_TYPE_RT
812 /* l4_wkup -> counter_32k */
813 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
814 .master = &omap44xx_l4_wkup_hwmod,
815 .slave = &omap44xx_counter_32k_hwmod,
816 .clk = "l4_wkup_clk_mux_ck",
817 .addr = omap44xx_counter_32k_addrs,
818 .addr_cnt = ARRAY_SIZE(omap44xx_counter_32k_addrs),
819 .user = OCP_USER_MPU | OCP_USER_SDMA,
822 /* counter_32k slave ports */
823 static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
824 &omap44xx_l4_wkup__counter_32k,
827 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
828 .name = "counter_32k",
829 .class = &omap44xx_counter_hwmod_class,
830 .flags = HWMOD_SWSUP_SIDLE,
831 .main_clk = "sys_32k_ck",
834 .clkctrl_reg = OMAP4430_CM_WKUP_SYNCTIMER_CLKCTRL,
837 .slaves = omap44xx_counter_32k_slaves,
838 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
839 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
844 * dma controller for data exchange between memory to memory (i.e. internal or
845 * external memory) and gp peripherals to memory or memory to gp peripherals
848 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
852 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
853 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
854 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
855 SYSS_HAS_RESET_STATUS),
856 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
857 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
858 .sysc_fields = &omap_hwmod_sysc_type1,
861 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
863 .sysc = &omap44xx_dma_sysc,
867 static struct omap_dma_dev_attr dma_dev_attr = {
868 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
869 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
874 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
875 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
876 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
877 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
878 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
881 /* dma_system master ports */
882 static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
883 &omap44xx_dma_system__l3_main_2,
886 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
888 .pa_start = 0x4a056000,
889 .pa_end = 0x4a056fff,
890 .flags = ADDR_TYPE_RT
894 /* l4_cfg -> dma_system */
895 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
896 .master = &omap44xx_l4_cfg_hwmod,
897 .slave = &omap44xx_dma_system_hwmod,
899 .addr = omap44xx_dma_system_addrs,
900 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
901 .user = OCP_USER_MPU | OCP_USER_SDMA,
904 /* dma_system slave ports */
905 static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
906 &omap44xx_l4_cfg__dma_system,
909 static struct omap_hwmod omap44xx_dma_system_hwmod = {
910 .name = "dma_system",
911 .class = &omap44xx_dma_hwmod_class,
912 .mpu_irqs = omap44xx_dma_system_irqs,
913 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
914 .main_clk = "l3_div_ck",
917 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
920 .dev_attr = &dma_dev_attr,
921 .slaves = omap44xx_dma_system_slaves,
922 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
923 .masters = omap44xx_dma_system_masters,
924 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
925 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
930 * digital microphone controller
933 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
936 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
937 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
938 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
940 .sysc_fields = &omap_hwmod_sysc_type2,
943 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
945 .sysc = &omap44xx_dmic_sysc,
949 static struct omap_hwmod omap44xx_dmic_hwmod;
950 static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
951 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
954 static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
955 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
958 static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
960 .pa_start = 0x4012e000,
961 .pa_end = 0x4012e07f,
962 .flags = ADDR_TYPE_RT
967 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
968 .master = &omap44xx_l4_abe_hwmod,
969 .slave = &omap44xx_dmic_hwmod,
970 .clk = "ocp_abe_iclk",
971 .addr = omap44xx_dmic_addrs,
972 .addr_cnt = ARRAY_SIZE(omap44xx_dmic_addrs),
973 .user = OCP_USER_MPU,
976 static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
978 .pa_start = 0x4902e000,
979 .pa_end = 0x4902e07f,
980 .flags = ADDR_TYPE_RT
984 /* l4_abe -> dmic (dma) */
985 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
986 .master = &omap44xx_l4_abe_hwmod,
987 .slave = &omap44xx_dmic_hwmod,
988 .clk = "ocp_abe_iclk",
989 .addr = omap44xx_dmic_dma_addrs,
990 .addr_cnt = ARRAY_SIZE(omap44xx_dmic_dma_addrs),
991 .user = OCP_USER_SDMA,
994 /* dmic slave ports */
995 static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
996 &omap44xx_l4_abe__dmic,
997 &omap44xx_l4_abe__dmic_dma,
1000 static struct omap_hwmod omap44xx_dmic_hwmod = {
1002 .class = &omap44xx_dmic_hwmod_class,
1003 .mpu_irqs = omap44xx_dmic_irqs,
1004 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmic_irqs),
1005 .sdma_reqs = omap44xx_dmic_sdma_reqs,
1006 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dmic_sdma_reqs),
1007 .main_clk = "dmic_fck",
1010 .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
1013 .slaves = omap44xx_dmic_slaves,
1014 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
1015 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1023 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
1028 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
1029 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
1032 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
1033 { .name = "mmu_cache", .rst_shift = 1 },
1036 static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
1037 { .name = "dsp", .rst_shift = 0 },
1041 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
1042 .master = &omap44xx_dsp_hwmod,
1043 .slave = &omap44xx_iva_hwmod,
1044 .clk = "dpll_iva_m5x2_ck",
1047 /* dsp master ports */
1048 static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
1049 &omap44xx_dsp__l3_main_1,
1050 &omap44xx_dsp__l4_abe,
1055 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
1056 .master = &omap44xx_l4_cfg_hwmod,
1057 .slave = &omap44xx_dsp_hwmod,
1059 .user = OCP_USER_MPU | OCP_USER_SDMA,
1062 /* dsp slave ports */
1063 static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
1064 &omap44xx_l4_cfg__dsp,
1067 /* Pseudo hwmod for reset control purpose only */
1068 static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
1070 .class = &omap44xx_dsp_hwmod_class,
1071 .flags = HWMOD_INIT_NO_RESET,
1072 .rst_lines = omap44xx_dsp_c0_resets,
1073 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
1076 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1079 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1082 static struct omap_hwmod omap44xx_dsp_hwmod = {
1084 .class = &omap44xx_dsp_hwmod_class,
1085 .mpu_irqs = omap44xx_dsp_irqs,
1086 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
1087 .rst_lines = omap44xx_dsp_resets,
1088 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1089 .main_clk = "dsp_fck",
1092 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
1093 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1096 .slaves = omap44xx_dsp_slaves,
1097 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1098 .masters = omap44xx_dsp_masters,
1099 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
1100 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1105 * display sub-system
1108 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1110 .syss_offs = 0x0014,
1111 .sysc_flags = SYSS_HAS_RESET_STATUS,
1114 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1116 .sysc = &omap44xx_dss_sysc,
1120 /* dss master ports */
1121 static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1122 &omap44xx_dss__l3_main_1,
1125 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1127 .pa_start = 0x58000000,
1128 .pa_end = 0x5800007f,
1129 .flags = ADDR_TYPE_RT
1133 /* l3_main_2 -> dss */
1134 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
1135 .master = &omap44xx_l3_main_2_hwmod,
1136 .slave = &omap44xx_dss_hwmod,
1138 .addr = omap44xx_dss_dma_addrs,
1139 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dma_addrs),
1140 .user = OCP_USER_SDMA,
1143 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1145 .pa_start = 0x48040000,
1146 .pa_end = 0x4804007f,
1147 .flags = ADDR_TYPE_RT
1152 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
1153 .master = &omap44xx_l4_per_hwmod,
1154 .slave = &omap44xx_dss_hwmod,
1156 .addr = omap44xx_dss_addrs,
1157 .addr_cnt = ARRAY_SIZE(omap44xx_dss_addrs),
1158 .user = OCP_USER_MPU,
1161 /* dss slave ports */
1162 static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1163 &omap44xx_l3_main_2__dss,
1164 &omap44xx_l4_per__dss,
1167 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1168 { .role = "sys_clk", .clk = "dss_sys_clk" },
1169 { .role = "tv_clk", .clk = "dss_tv_clk" },
1170 { .role = "dss_clk", .clk = "dss_dss_clk" },
1171 { .role = "video_clk", .clk = "dss_48mhz_clk" },
1174 static struct omap_hwmod omap44xx_dss_hwmod = {
1176 .class = &omap44xx_dss_hwmod_class,
1177 .main_clk = "dss_fck",
1180 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1183 .opt_clks = dss_opt_clks,
1184 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1185 .slaves = omap44xx_dss_slaves,
1186 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1187 .masters = omap44xx_dss_masters,
1188 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
1189 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1194 * display controller
1197 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1199 .sysc_offs = 0x0010,
1200 .syss_offs = 0x0014,
1201 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1202 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1203 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1204 SYSS_HAS_RESET_STATUS),
1205 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1206 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1207 .sysc_fields = &omap_hwmod_sysc_type1,
1210 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1212 .sysc = &omap44xx_dispc_sysc,
1216 static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1217 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1218 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
1221 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
1222 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
1225 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
1227 .pa_start = 0x58001000,
1228 .pa_end = 0x58001fff,
1229 .flags = ADDR_TYPE_RT
1233 /* l3_main_2 -> dss_dispc */
1234 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1235 .master = &omap44xx_l3_main_2_hwmod,
1236 .slave = &omap44xx_dss_dispc_hwmod,
1238 .addr = omap44xx_dss_dispc_dma_addrs,
1239 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_dma_addrs),
1240 .user = OCP_USER_SDMA,
1243 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
1245 .pa_start = 0x48041000,
1246 .pa_end = 0x48041fff,
1247 .flags = ADDR_TYPE_RT
1251 /* l4_per -> dss_dispc */
1252 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1253 .master = &omap44xx_l4_per_hwmod,
1254 .slave = &omap44xx_dss_dispc_hwmod,
1256 .addr = omap44xx_dss_dispc_addrs,
1257 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_addrs),
1258 .user = OCP_USER_MPU,
1261 /* dss_dispc slave ports */
1262 static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
1263 &omap44xx_l3_main_2__dss_dispc,
1264 &omap44xx_l4_per__dss_dispc,
1267 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
1268 .name = "dss_dispc",
1269 .class = &omap44xx_dispc_hwmod_class,
1270 .mpu_irqs = omap44xx_dss_dispc_irqs,
1271 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_irqs),
1272 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
1273 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
1274 .main_clk = "dss_fck",
1277 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1280 .slaves = omap44xx_dss_dispc_slaves,
1281 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
1282 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1287 * display serial interface controller
1290 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1292 .sysc_offs = 0x0010,
1293 .syss_offs = 0x0014,
1294 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1295 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1296 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1297 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1298 .sysc_fields = &omap_hwmod_sysc_type1,
1301 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1303 .sysc = &omap44xx_dsi_sysc,
1307 static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1308 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1309 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
1312 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
1313 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
1316 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
1318 .pa_start = 0x58004000,
1319 .pa_end = 0x580041ff,
1320 .flags = ADDR_TYPE_RT
1324 /* l3_main_2 -> dss_dsi1 */
1325 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1326 .master = &omap44xx_l3_main_2_hwmod,
1327 .slave = &omap44xx_dss_dsi1_hwmod,
1329 .addr = omap44xx_dss_dsi1_dma_addrs,
1330 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_dma_addrs),
1331 .user = OCP_USER_SDMA,
1334 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
1336 .pa_start = 0x48044000,
1337 .pa_end = 0x480441ff,
1338 .flags = ADDR_TYPE_RT
1342 /* l4_per -> dss_dsi1 */
1343 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1344 .master = &omap44xx_l4_per_hwmod,
1345 .slave = &omap44xx_dss_dsi1_hwmod,
1347 .addr = omap44xx_dss_dsi1_addrs,
1348 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_addrs),
1349 .user = OCP_USER_MPU,
1352 /* dss_dsi1 slave ports */
1353 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
1354 &omap44xx_l3_main_2__dss_dsi1,
1355 &omap44xx_l4_per__dss_dsi1,
1358 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
1360 .class = &omap44xx_dsi_hwmod_class,
1361 .mpu_irqs = omap44xx_dss_dsi1_irqs,
1362 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_irqs),
1363 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
1364 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
1365 .main_clk = "dss_fck",
1368 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1371 .slaves = omap44xx_dss_dsi1_slaves,
1372 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
1373 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1377 static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1378 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1379 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
1382 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
1383 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
1386 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
1388 .pa_start = 0x58005000,
1389 .pa_end = 0x580051ff,
1390 .flags = ADDR_TYPE_RT
1394 /* l3_main_2 -> dss_dsi2 */
1395 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1396 .master = &omap44xx_l3_main_2_hwmod,
1397 .slave = &omap44xx_dss_dsi2_hwmod,
1399 .addr = omap44xx_dss_dsi2_dma_addrs,
1400 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_dma_addrs),
1401 .user = OCP_USER_SDMA,
1404 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
1406 .pa_start = 0x48045000,
1407 .pa_end = 0x480451ff,
1408 .flags = ADDR_TYPE_RT
1412 /* l4_per -> dss_dsi2 */
1413 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1414 .master = &omap44xx_l4_per_hwmod,
1415 .slave = &omap44xx_dss_dsi2_hwmod,
1417 .addr = omap44xx_dss_dsi2_addrs,
1418 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_addrs),
1419 .user = OCP_USER_MPU,
1422 /* dss_dsi2 slave ports */
1423 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
1424 &omap44xx_l3_main_2__dss_dsi2,
1425 &omap44xx_l4_per__dss_dsi2,
1428 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
1430 .class = &omap44xx_dsi_hwmod_class,
1431 .mpu_irqs = omap44xx_dss_dsi2_irqs,
1432 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_irqs),
1433 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
1434 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
1435 .main_clk = "dss_fck",
1438 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1441 .slaves = omap44xx_dss_dsi2_slaves,
1442 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
1443 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1451 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1453 .sysc_offs = 0x0010,
1454 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1455 SYSC_HAS_SOFTRESET),
1456 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1458 .sysc_fields = &omap_hwmod_sysc_type2,
1461 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1463 .sysc = &omap44xx_hdmi_sysc,
1467 static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1468 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1469 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
1472 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
1473 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
1476 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
1478 .pa_start = 0x58006000,
1479 .pa_end = 0x58006fff,
1480 .flags = ADDR_TYPE_RT
1484 /* l3_main_2 -> dss_hdmi */
1485 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1486 .master = &omap44xx_l3_main_2_hwmod,
1487 .slave = &omap44xx_dss_hdmi_hwmod,
1489 .addr = omap44xx_dss_hdmi_dma_addrs,
1490 .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_dma_addrs),
1491 .user = OCP_USER_SDMA,
1494 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
1496 .pa_start = 0x48046000,
1497 .pa_end = 0x48046fff,
1498 .flags = ADDR_TYPE_RT
1502 /* l4_per -> dss_hdmi */
1503 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1504 .master = &omap44xx_l4_per_hwmod,
1505 .slave = &omap44xx_dss_hdmi_hwmod,
1507 .addr = omap44xx_dss_hdmi_addrs,
1508 .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_addrs),
1509 .user = OCP_USER_MPU,
1512 /* dss_hdmi slave ports */
1513 static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
1514 &omap44xx_l3_main_2__dss_hdmi,
1515 &omap44xx_l4_per__dss_hdmi,
1518 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
1520 .class = &omap44xx_hdmi_hwmod_class,
1521 .mpu_irqs = omap44xx_dss_hdmi_irqs,
1522 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_irqs),
1523 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
1524 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
1525 .main_clk = "dss_fck",
1528 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1531 .slaves = omap44xx_dss_hdmi_slaves,
1532 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
1533 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1538 * remote frame buffer interface
1541 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1543 .sysc_offs = 0x0010,
1544 .syss_offs = 0x0014,
1545 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1546 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1547 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1548 .sysc_fields = &omap_hwmod_sysc_type1,
1551 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1553 .sysc = &omap44xx_rfbi_sysc,
1557 static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1558 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1559 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
1562 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1564 .pa_start = 0x58002000,
1565 .pa_end = 0x580020ff,
1566 .flags = ADDR_TYPE_RT
1570 /* l3_main_2 -> dss_rfbi */
1571 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
1572 .master = &omap44xx_l3_main_2_hwmod,
1573 .slave = &omap44xx_dss_rfbi_hwmod,
1575 .addr = omap44xx_dss_rfbi_dma_addrs,
1576 .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_dma_addrs),
1577 .user = OCP_USER_SDMA,
1580 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1582 .pa_start = 0x48042000,
1583 .pa_end = 0x480420ff,
1584 .flags = ADDR_TYPE_RT
1588 /* l4_per -> dss_rfbi */
1589 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
1590 .master = &omap44xx_l4_per_hwmod,
1591 .slave = &omap44xx_dss_rfbi_hwmod,
1593 .addr = omap44xx_dss_rfbi_addrs,
1594 .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_addrs),
1595 .user = OCP_USER_MPU,
1598 /* dss_rfbi slave ports */
1599 static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1600 &omap44xx_l3_main_2__dss_rfbi,
1601 &omap44xx_l4_per__dss_rfbi,
1604 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1606 .class = &omap44xx_rfbi_hwmod_class,
1607 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
1608 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
1609 .main_clk = "dss_fck",
1612 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1615 .slaves = omap44xx_dss_rfbi_slaves,
1616 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
1617 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1625 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1630 static struct omap_hwmod omap44xx_dss_venc_hwmod;
1631 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1633 .pa_start = 0x58003000,
1634 .pa_end = 0x580030ff,
1635 .flags = ADDR_TYPE_RT
1639 /* l3_main_2 -> dss_venc */
1640 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
1641 .master = &omap44xx_l3_main_2_hwmod,
1642 .slave = &omap44xx_dss_venc_hwmod,
1644 .addr = omap44xx_dss_venc_dma_addrs,
1645 .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_dma_addrs),
1646 .user = OCP_USER_SDMA,
1649 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1651 .pa_start = 0x48043000,
1652 .pa_end = 0x480430ff,
1653 .flags = ADDR_TYPE_RT
1657 /* l4_per -> dss_venc */
1658 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
1659 .master = &omap44xx_l4_per_hwmod,
1660 .slave = &omap44xx_dss_venc_hwmod,
1662 .addr = omap44xx_dss_venc_addrs,
1663 .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_addrs),
1664 .user = OCP_USER_MPU,
1667 /* dss_venc slave ports */
1668 static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1669 &omap44xx_l3_main_2__dss_venc,
1670 &omap44xx_l4_per__dss_venc,
1673 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1675 .class = &omap44xx_venc_hwmod_class,
1676 .main_clk = "dss_fck",
1679 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1682 .slaves = omap44xx_dss_venc_slaves,
1683 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
1684 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1689 * general purpose io module
1692 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1694 .sysc_offs = 0x0010,
1695 .syss_offs = 0x0114,
1696 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1697 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1698 SYSS_HAS_RESET_STATUS),
1699 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1701 .sysc_fields = &omap_hwmod_sysc_type1,
1704 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1706 .sysc = &omap44xx_gpio_sysc,
1711 static struct omap_gpio_dev_attr gpio_dev_attr = {
1717 static struct omap_hwmod omap44xx_gpio1_hwmod;
1718 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1719 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
1722 static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
1724 .pa_start = 0x4a310000,
1725 .pa_end = 0x4a3101ff,
1726 .flags = ADDR_TYPE_RT
1730 /* l4_wkup -> gpio1 */
1731 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1732 .master = &omap44xx_l4_wkup_hwmod,
1733 .slave = &omap44xx_gpio1_hwmod,
1734 .clk = "l4_wkup_clk_mux_ck",
1735 .addr = omap44xx_gpio1_addrs,
1736 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
1737 .user = OCP_USER_MPU | OCP_USER_SDMA,
1740 /* gpio1 slave ports */
1741 static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
1742 &omap44xx_l4_wkup__gpio1,
1745 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1746 { .role = "dbclk", .clk = "gpio1_dbclk" },
1749 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1751 .class = &omap44xx_gpio_hwmod_class,
1752 .mpu_irqs = omap44xx_gpio1_irqs,
1753 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
1754 .main_clk = "gpio1_ick",
1757 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1760 .opt_clks = gpio1_opt_clks,
1761 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1762 .dev_attr = &gpio_dev_attr,
1763 .slaves = omap44xx_gpio1_slaves,
1764 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
1765 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1769 static struct omap_hwmod omap44xx_gpio2_hwmod;
1770 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1771 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
1774 static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
1776 .pa_start = 0x48055000,
1777 .pa_end = 0x480551ff,
1778 .flags = ADDR_TYPE_RT
1782 /* l4_per -> gpio2 */
1783 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1784 .master = &omap44xx_l4_per_hwmod,
1785 .slave = &omap44xx_gpio2_hwmod,
1787 .addr = omap44xx_gpio2_addrs,
1788 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
1789 .user = OCP_USER_MPU | OCP_USER_SDMA,
1792 /* gpio2 slave ports */
1793 static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
1794 &omap44xx_l4_per__gpio2,
1797 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1798 { .role = "dbclk", .clk = "gpio2_dbclk" },
1801 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1803 .class = &omap44xx_gpio_hwmod_class,
1804 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1805 .mpu_irqs = omap44xx_gpio2_irqs,
1806 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
1807 .main_clk = "gpio2_ick",
1810 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1813 .opt_clks = gpio2_opt_clks,
1814 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1815 .dev_attr = &gpio_dev_attr,
1816 .slaves = omap44xx_gpio2_slaves,
1817 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
1818 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1822 static struct omap_hwmod omap44xx_gpio3_hwmod;
1823 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1824 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
1827 static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
1829 .pa_start = 0x48057000,
1830 .pa_end = 0x480571ff,
1831 .flags = ADDR_TYPE_RT
1835 /* l4_per -> gpio3 */
1836 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1837 .master = &omap44xx_l4_per_hwmod,
1838 .slave = &omap44xx_gpio3_hwmod,
1840 .addr = omap44xx_gpio3_addrs,
1841 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
1842 .user = OCP_USER_MPU | OCP_USER_SDMA,
1845 /* gpio3 slave ports */
1846 static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
1847 &omap44xx_l4_per__gpio3,
1850 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1851 { .role = "dbclk", .clk = "gpio3_dbclk" },
1854 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1856 .class = &omap44xx_gpio_hwmod_class,
1857 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1858 .mpu_irqs = omap44xx_gpio3_irqs,
1859 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
1860 .main_clk = "gpio3_ick",
1863 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1866 .opt_clks = gpio3_opt_clks,
1867 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1868 .dev_attr = &gpio_dev_attr,
1869 .slaves = omap44xx_gpio3_slaves,
1870 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
1871 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1875 static struct omap_hwmod omap44xx_gpio4_hwmod;
1876 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1877 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
1880 static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
1882 .pa_start = 0x48059000,
1883 .pa_end = 0x480591ff,
1884 .flags = ADDR_TYPE_RT
1888 /* l4_per -> gpio4 */
1889 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
1890 .master = &omap44xx_l4_per_hwmod,
1891 .slave = &omap44xx_gpio4_hwmod,
1893 .addr = omap44xx_gpio4_addrs,
1894 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
1895 .user = OCP_USER_MPU | OCP_USER_SDMA,
1898 /* gpio4 slave ports */
1899 static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
1900 &omap44xx_l4_per__gpio4,
1903 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1904 { .role = "dbclk", .clk = "gpio4_dbclk" },
1907 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1909 .class = &omap44xx_gpio_hwmod_class,
1910 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1911 .mpu_irqs = omap44xx_gpio4_irqs,
1912 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
1913 .main_clk = "gpio4_ick",
1916 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1919 .opt_clks = gpio4_opt_clks,
1920 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1921 .dev_attr = &gpio_dev_attr,
1922 .slaves = omap44xx_gpio4_slaves,
1923 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
1924 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1928 static struct omap_hwmod omap44xx_gpio5_hwmod;
1929 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1930 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
1933 static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
1935 .pa_start = 0x4805b000,
1936 .pa_end = 0x4805b1ff,
1937 .flags = ADDR_TYPE_RT
1941 /* l4_per -> gpio5 */
1942 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
1943 .master = &omap44xx_l4_per_hwmod,
1944 .slave = &omap44xx_gpio5_hwmod,
1946 .addr = omap44xx_gpio5_addrs,
1947 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
1948 .user = OCP_USER_MPU | OCP_USER_SDMA,
1951 /* gpio5 slave ports */
1952 static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
1953 &omap44xx_l4_per__gpio5,
1956 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1957 { .role = "dbclk", .clk = "gpio5_dbclk" },
1960 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1962 .class = &omap44xx_gpio_hwmod_class,
1963 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1964 .mpu_irqs = omap44xx_gpio5_irqs,
1965 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
1966 .main_clk = "gpio5_ick",
1969 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1972 .opt_clks = gpio5_opt_clks,
1973 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1974 .dev_attr = &gpio_dev_attr,
1975 .slaves = omap44xx_gpio5_slaves,
1976 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1977 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1981 static struct omap_hwmod omap44xx_gpio6_hwmod;
1982 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1983 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
1986 static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
1988 .pa_start = 0x4805d000,
1989 .pa_end = 0x4805d1ff,
1990 .flags = ADDR_TYPE_RT
1994 /* l4_per -> gpio6 */
1995 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1996 .master = &omap44xx_l4_per_hwmod,
1997 .slave = &omap44xx_gpio6_hwmod,
1999 .addr = omap44xx_gpio6_addrs,
2000 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
2001 .user = OCP_USER_MPU | OCP_USER_SDMA,
2004 /* gpio6 slave ports */
2005 static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
2006 &omap44xx_l4_per__gpio6,
2009 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
2010 { .role = "dbclk", .clk = "gpio6_dbclk" },
2013 static struct omap_hwmod omap44xx_gpio6_hwmod = {
2015 .class = &omap44xx_gpio_hwmod_class,
2016 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2017 .mpu_irqs = omap44xx_gpio6_irqs,
2018 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
2019 .main_clk = "gpio6_ick",
2022 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
2025 .opt_clks = gpio6_opt_clks,
2026 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2027 .dev_attr = &gpio_dev_attr,
2028 .slaves = omap44xx_gpio6_slaves,
2029 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
2030 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2035 * mipi high-speed synchronous serial interface (multichannel and full-duplex
2039 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2041 .sysc_offs = 0x0010,
2042 .syss_offs = 0x0014,
2043 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2044 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2045 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2046 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2047 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2048 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2049 .sysc_fields = &omap_hwmod_sysc_type1,
2052 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2054 .sysc = &omap44xx_hsi_sysc,
2058 static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2059 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2060 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2061 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
2064 /* hsi master ports */
2065 static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
2066 &omap44xx_hsi__l3_main_2,
2069 static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
2071 .pa_start = 0x4a058000,
2072 .pa_end = 0x4a05bfff,
2073 .flags = ADDR_TYPE_RT
2078 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2079 .master = &omap44xx_l4_cfg_hwmod,
2080 .slave = &omap44xx_hsi_hwmod,
2082 .addr = omap44xx_hsi_addrs,
2083 .addr_cnt = ARRAY_SIZE(omap44xx_hsi_addrs),
2084 .user = OCP_USER_MPU | OCP_USER_SDMA,
2087 /* hsi slave ports */
2088 static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
2089 &omap44xx_l4_cfg__hsi,
2092 static struct omap_hwmod omap44xx_hsi_hwmod = {
2094 .class = &omap44xx_hsi_hwmod_class,
2095 .mpu_irqs = omap44xx_hsi_irqs,
2096 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_hsi_irqs),
2097 .main_clk = "hsi_fck",
2100 .clkctrl_reg = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
2103 .slaves = omap44xx_hsi_slaves,
2104 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2105 .masters = omap44xx_hsi_masters,
2106 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
2107 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2112 * multimaster high-speed i2c controller
2115 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2116 .sysc_offs = 0x0010,
2117 .syss_offs = 0x0090,
2118 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2119 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2120 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2121 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2123 .sysc_fields = &omap_hwmod_sysc_type1,
2126 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
2128 .sysc = &omap44xx_i2c_sysc,
2132 static struct omap_hwmod omap44xx_i2c1_hwmod;
2133 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2134 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
2137 static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
2138 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
2139 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
2142 static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
2144 .pa_start = 0x48070000,
2145 .pa_end = 0x480700ff,
2146 .flags = ADDR_TYPE_RT
2150 /* l4_per -> i2c1 */
2151 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2152 .master = &omap44xx_l4_per_hwmod,
2153 .slave = &omap44xx_i2c1_hwmod,
2155 .addr = omap44xx_i2c1_addrs,
2156 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
2157 .user = OCP_USER_MPU | OCP_USER_SDMA,
2160 /* i2c1 slave ports */
2161 static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
2162 &omap44xx_l4_per__i2c1,
2165 static struct omap_hwmod omap44xx_i2c1_hwmod = {
2167 .class = &omap44xx_i2c_hwmod_class,
2168 .flags = HWMOD_INIT_NO_RESET,
2169 .mpu_irqs = omap44xx_i2c1_irqs,
2170 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
2171 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
2172 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
2173 .main_clk = "i2c1_fck",
2176 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
2179 .slaves = omap44xx_i2c1_slaves,
2180 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2181 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2185 static struct omap_hwmod omap44xx_i2c2_hwmod;
2186 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2187 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
2190 static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
2191 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
2192 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
2195 static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
2197 .pa_start = 0x48072000,
2198 .pa_end = 0x480720ff,
2199 .flags = ADDR_TYPE_RT
2203 /* l4_per -> i2c2 */
2204 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2205 .master = &omap44xx_l4_per_hwmod,
2206 .slave = &omap44xx_i2c2_hwmod,
2208 .addr = omap44xx_i2c2_addrs,
2209 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
2210 .user = OCP_USER_MPU | OCP_USER_SDMA,
2213 /* i2c2 slave ports */
2214 static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
2215 &omap44xx_l4_per__i2c2,
2218 static struct omap_hwmod omap44xx_i2c2_hwmod = {
2220 .class = &omap44xx_i2c_hwmod_class,
2221 .flags = HWMOD_INIT_NO_RESET,
2222 .mpu_irqs = omap44xx_i2c2_irqs,
2223 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
2224 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
2225 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
2226 .main_clk = "i2c2_fck",
2229 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
2232 .slaves = omap44xx_i2c2_slaves,
2233 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2234 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2238 static struct omap_hwmod omap44xx_i2c3_hwmod;
2239 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2240 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
2243 static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
2244 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
2245 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
2248 static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
2250 .pa_start = 0x48060000,
2251 .pa_end = 0x480600ff,
2252 .flags = ADDR_TYPE_RT
2256 /* l4_per -> i2c3 */
2257 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2258 .master = &omap44xx_l4_per_hwmod,
2259 .slave = &omap44xx_i2c3_hwmod,
2261 .addr = omap44xx_i2c3_addrs,
2262 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
2263 .user = OCP_USER_MPU | OCP_USER_SDMA,
2266 /* i2c3 slave ports */
2267 static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
2268 &omap44xx_l4_per__i2c3,
2271 static struct omap_hwmod omap44xx_i2c3_hwmod = {
2273 .class = &omap44xx_i2c_hwmod_class,
2274 .flags = HWMOD_INIT_NO_RESET,
2275 .mpu_irqs = omap44xx_i2c3_irqs,
2276 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
2277 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
2278 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
2279 .main_clk = "i2c3_fck",
2282 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
2285 .slaves = omap44xx_i2c3_slaves,
2286 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2287 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2291 static struct omap_hwmod omap44xx_i2c4_hwmod;
2292 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2293 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
2296 static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
2297 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
2298 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
2301 static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
2303 .pa_start = 0x48350000,
2304 .pa_end = 0x483500ff,
2305 .flags = ADDR_TYPE_RT
2309 /* l4_per -> i2c4 */
2310 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2311 .master = &omap44xx_l4_per_hwmod,
2312 .slave = &omap44xx_i2c4_hwmod,
2314 .addr = omap44xx_i2c4_addrs,
2315 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
2316 .user = OCP_USER_MPU | OCP_USER_SDMA,
2319 /* i2c4 slave ports */
2320 static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
2321 &omap44xx_l4_per__i2c4,
2324 static struct omap_hwmod omap44xx_i2c4_hwmod = {
2326 .class = &omap44xx_i2c_hwmod_class,
2327 .flags = HWMOD_INIT_NO_RESET,
2328 .mpu_irqs = omap44xx_i2c4_irqs,
2329 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
2330 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
2331 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
2332 .main_clk = "i2c4_fck",
2335 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
2338 .slaves = omap44xx_i2c4_slaves,
2339 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2340 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2345 * imaging processor unit
2348 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2353 static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2354 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
2357 static struct omap_hwmod_rst_info omap44xx_ipu_c0_resets[] = {
2358 { .name = "cpu0", .rst_shift = 0 },
2361 static struct omap_hwmod_rst_info omap44xx_ipu_c1_resets[] = {
2362 { .name = "cpu1", .rst_shift = 1 },
2365 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
2366 { .name = "mmu_cache", .rst_shift = 2 },
2369 /* ipu master ports */
2370 static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
2371 &omap44xx_ipu__l3_main_2,
2374 /* l3_main_2 -> ipu */
2375 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2376 .master = &omap44xx_l3_main_2_hwmod,
2377 .slave = &omap44xx_ipu_hwmod,
2379 .user = OCP_USER_MPU | OCP_USER_SDMA,
2382 /* ipu slave ports */
2383 static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
2384 &omap44xx_l3_main_2__ipu,
2387 /* Pseudo hwmod for reset control purpose only */
2388 static struct omap_hwmod omap44xx_ipu_c0_hwmod = {
2390 .class = &omap44xx_ipu_hwmod_class,
2391 .flags = HWMOD_INIT_NO_RESET,
2392 .rst_lines = omap44xx_ipu_c0_resets,
2393 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c0_resets),
2396 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2399 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2402 /* Pseudo hwmod for reset control purpose only */
2403 static struct omap_hwmod omap44xx_ipu_c1_hwmod = {
2405 .class = &omap44xx_ipu_hwmod_class,
2406 .flags = HWMOD_INIT_NO_RESET,
2407 .rst_lines = omap44xx_ipu_c1_resets,
2408 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c1_resets),
2411 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2414 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2417 static struct omap_hwmod omap44xx_ipu_hwmod = {
2419 .class = &omap44xx_ipu_hwmod_class,
2420 .mpu_irqs = omap44xx_ipu_irqs,
2421 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_ipu_irqs),
2422 .rst_lines = omap44xx_ipu_resets,
2423 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2424 .main_clk = "ipu_fck",
2427 .clkctrl_reg = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
2428 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2431 .slaves = omap44xx_ipu_slaves,
2432 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2433 .masters = omap44xx_ipu_masters,
2434 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
2435 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2440 * external images sensor pixel data processor
2443 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2445 .sysc_offs = 0x0010,
2446 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2447 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2448 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2449 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2450 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2451 .sysc_fields = &omap_hwmod_sysc_type2,
2454 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2456 .sysc = &omap44xx_iss_sysc,
2460 static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2461 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
2464 static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
2465 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
2466 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
2467 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
2468 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
2471 /* iss master ports */
2472 static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
2473 &omap44xx_iss__l3_main_2,
2476 static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
2478 .pa_start = 0x52000000,
2479 .pa_end = 0x520000ff,
2480 .flags = ADDR_TYPE_RT
2484 /* l3_main_2 -> iss */
2485 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2486 .master = &omap44xx_l3_main_2_hwmod,
2487 .slave = &omap44xx_iss_hwmod,
2489 .addr = omap44xx_iss_addrs,
2490 .addr_cnt = ARRAY_SIZE(omap44xx_iss_addrs),
2491 .user = OCP_USER_MPU | OCP_USER_SDMA,
2494 /* iss slave ports */
2495 static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
2496 &omap44xx_l3_main_2__iss,
2499 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
2500 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
2503 static struct omap_hwmod omap44xx_iss_hwmod = {
2505 .class = &omap44xx_iss_hwmod_class,
2506 .mpu_irqs = omap44xx_iss_irqs,
2507 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iss_irqs),
2508 .sdma_reqs = omap44xx_iss_sdma_reqs,
2509 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_iss_sdma_reqs),
2510 .main_clk = "iss_fck",
2513 .clkctrl_reg = OMAP4430_CM_CAM_ISS_CLKCTRL,
2516 .opt_clks = iss_opt_clks,
2517 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2518 .slaves = omap44xx_iss_slaves,
2519 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2520 .masters = omap44xx_iss_masters,
2521 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
2522 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2527 * multi-standard video encoder/decoder hardware accelerator
2530 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
2535 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2536 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2537 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2538 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
2541 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
2542 { .name = "logic", .rst_shift = 2 },
2545 static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
2546 { .name = "seq0", .rst_shift = 0 },
2549 static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
2550 { .name = "seq1", .rst_shift = 1 },
2553 /* iva master ports */
2554 static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
2555 &omap44xx_iva__l3_main_2,
2556 &omap44xx_iva__l3_instr,
2559 static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
2561 .pa_start = 0x5a000000,
2562 .pa_end = 0x5a07ffff,
2563 .flags = ADDR_TYPE_RT
2567 /* l3_main_2 -> iva */
2568 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2569 .master = &omap44xx_l3_main_2_hwmod,
2570 .slave = &omap44xx_iva_hwmod,
2572 .addr = omap44xx_iva_addrs,
2573 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
2574 .user = OCP_USER_MPU,
2577 /* iva slave ports */
2578 static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
2580 &omap44xx_l3_main_2__iva,
2583 /* Pseudo hwmod for reset control purpose only */
2584 static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
2586 .class = &omap44xx_iva_hwmod_class,
2587 .flags = HWMOD_INIT_NO_RESET,
2588 .rst_lines = omap44xx_iva_seq0_resets,
2589 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
2592 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2595 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2598 /* Pseudo hwmod for reset control purpose only */
2599 static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
2601 .class = &omap44xx_iva_hwmod_class,
2602 .flags = HWMOD_INIT_NO_RESET,
2603 .rst_lines = omap44xx_iva_seq1_resets,
2604 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
2607 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2610 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2613 static struct omap_hwmod omap44xx_iva_hwmod = {
2615 .class = &omap44xx_iva_hwmod_class,
2616 .mpu_irqs = omap44xx_iva_irqs,
2617 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
2618 .rst_lines = omap44xx_iva_resets,
2619 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2620 .main_clk = "iva_fck",
2623 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
2624 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2627 .slaves = omap44xx_iva_slaves,
2628 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2629 .masters = omap44xx_iva_masters,
2630 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
2631 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2636 * keyboard controller
2639 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2641 .sysc_offs = 0x0010,
2642 .syss_offs = 0x0014,
2643 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2644 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2645 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2646 SYSS_HAS_RESET_STATUS),
2647 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2648 .sysc_fields = &omap_hwmod_sysc_type1,
2651 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2653 .sysc = &omap44xx_kbd_sysc,
2657 static struct omap_hwmod omap44xx_kbd_hwmod;
2658 static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2659 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
2662 static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
2664 .pa_start = 0x4a31c000,
2665 .pa_end = 0x4a31c07f,
2666 .flags = ADDR_TYPE_RT
2670 /* l4_wkup -> kbd */
2671 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2672 .master = &omap44xx_l4_wkup_hwmod,
2673 .slave = &omap44xx_kbd_hwmod,
2674 .clk = "l4_wkup_clk_mux_ck",
2675 .addr = omap44xx_kbd_addrs,
2676 .addr_cnt = ARRAY_SIZE(omap44xx_kbd_addrs),
2677 .user = OCP_USER_MPU | OCP_USER_SDMA,
2680 /* kbd slave ports */
2681 static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
2682 &omap44xx_l4_wkup__kbd,
2685 static struct omap_hwmod omap44xx_kbd_hwmod = {
2687 .class = &omap44xx_kbd_hwmod_class,
2688 .mpu_irqs = omap44xx_kbd_irqs,
2689 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_kbd_irqs),
2690 .main_clk = "kbd_fck",
2693 .clkctrl_reg = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
2696 .slaves = omap44xx_kbd_slaves,
2697 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
2698 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2703 * mailbox module allowing communication between the on-chip processors using a
2704 * queued mailbox-interrupt mechanism.
2707 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2709 .sysc_offs = 0x0010,
2710 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2711 SYSC_HAS_SOFTRESET),
2712 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2713 .sysc_fields = &omap_hwmod_sysc_type2,
2716 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2718 .sysc = &omap44xx_mailbox_sysc,
2722 static struct omap_hwmod omap44xx_mailbox_hwmod;
2723 static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2724 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
2727 static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
2729 .pa_start = 0x4a0f4000,
2730 .pa_end = 0x4a0f41ff,
2731 .flags = ADDR_TYPE_RT
2735 /* l4_cfg -> mailbox */
2736 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2737 .master = &omap44xx_l4_cfg_hwmod,
2738 .slave = &omap44xx_mailbox_hwmod,
2740 .addr = omap44xx_mailbox_addrs,
2741 .addr_cnt = ARRAY_SIZE(omap44xx_mailbox_addrs),
2742 .user = OCP_USER_MPU | OCP_USER_SDMA,
2745 /* mailbox slave ports */
2746 static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
2747 &omap44xx_l4_cfg__mailbox,
2750 static struct omap_hwmod omap44xx_mailbox_hwmod = {
2752 .class = &omap44xx_mailbox_hwmod_class,
2753 .mpu_irqs = omap44xx_mailbox_irqs,
2754 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mailbox_irqs),
2757 .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
2760 .slaves = omap44xx_mailbox_slaves,
2761 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
2762 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2767 * multi channel buffered serial port controller
2770 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2771 .sysc_offs = 0x008c,
2772 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2773 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2774 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2775 .sysc_fields = &omap_hwmod_sysc_type1,
2778 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2780 .sysc = &omap44xx_mcbsp_sysc,
2781 .rev = MCBSP_CONFIG_TYPE4,
2785 static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2786 static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2787 { .irq = 17 + OMAP44XX_IRQ_GIC_START },
2790 static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
2791 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
2792 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
2795 static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
2798 .pa_start = 0x40122000,
2799 .pa_end = 0x401220ff,
2800 .flags = ADDR_TYPE_RT
2804 /* l4_abe -> mcbsp1 */
2805 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2806 .master = &omap44xx_l4_abe_hwmod,
2807 .slave = &omap44xx_mcbsp1_hwmod,
2808 .clk = "ocp_abe_iclk",
2809 .addr = omap44xx_mcbsp1_addrs,
2810 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_addrs),
2811 .user = OCP_USER_MPU,
2814 static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
2817 .pa_start = 0x49022000,
2818 .pa_end = 0x490220ff,
2819 .flags = ADDR_TYPE_RT
2823 /* l4_abe -> mcbsp1 (dma) */
2824 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2825 .master = &omap44xx_l4_abe_hwmod,
2826 .slave = &omap44xx_mcbsp1_hwmod,
2827 .clk = "ocp_abe_iclk",
2828 .addr = omap44xx_mcbsp1_dma_addrs,
2829 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_dma_addrs),
2830 .user = OCP_USER_SDMA,
2833 /* mcbsp1 slave ports */
2834 static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
2835 &omap44xx_l4_abe__mcbsp1,
2836 &omap44xx_l4_abe__mcbsp1_dma,
2839 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
2841 .class = &omap44xx_mcbsp_hwmod_class,
2842 .mpu_irqs = omap44xx_mcbsp1_irqs,
2843 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_irqs),
2844 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
2845 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_sdma_reqs),
2846 .main_clk = "mcbsp1_fck",
2849 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
2852 .slaves = omap44xx_mcbsp1_slaves,
2853 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
2854 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2858 static struct omap_hwmod omap44xx_mcbsp2_hwmod;
2859 static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
2860 { .irq = 22 + OMAP44XX_IRQ_GIC_START },
2863 static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
2864 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
2865 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
2868 static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
2871 .pa_start = 0x40124000,
2872 .pa_end = 0x401240ff,
2873 .flags = ADDR_TYPE_RT
2877 /* l4_abe -> mcbsp2 */
2878 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2879 .master = &omap44xx_l4_abe_hwmod,
2880 .slave = &omap44xx_mcbsp2_hwmod,
2881 .clk = "ocp_abe_iclk",
2882 .addr = omap44xx_mcbsp2_addrs,
2883 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_addrs),
2884 .user = OCP_USER_MPU,
2887 static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
2890 .pa_start = 0x49024000,
2891 .pa_end = 0x490240ff,
2892 .flags = ADDR_TYPE_RT
2896 /* l4_abe -> mcbsp2 (dma) */
2897 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
2898 .master = &omap44xx_l4_abe_hwmod,
2899 .slave = &omap44xx_mcbsp2_hwmod,
2900 .clk = "ocp_abe_iclk",
2901 .addr = omap44xx_mcbsp2_dma_addrs,
2902 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_dma_addrs),
2903 .user = OCP_USER_SDMA,
2906 /* mcbsp2 slave ports */
2907 static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
2908 &omap44xx_l4_abe__mcbsp2,
2909 &omap44xx_l4_abe__mcbsp2_dma,
2912 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2914 .class = &omap44xx_mcbsp_hwmod_class,
2915 .mpu_irqs = omap44xx_mcbsp2_irqs,
2916 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_irqs),
2917 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
2918 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_sdma_reqs),
2919 .main_clk = "mcbsp2_fck",
2922 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
2925 .slaves = omap44xx_mcbsp2_slaves,
2926 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
2927 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2931 static struct omap_hwmod omap44xx_mcbsp3_hwmod;
2932 static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
2933 { .irq = 23 + OMAP44XX_IRQ_GIC_START },
2936 static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2937 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2938 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
2941 static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
2944 .pa_start = 0x40126000,
2945 .pa_end = 0x401260ff,
2946 .flags = ADDR_TYPE_RT
2950 /* l4_abe -> mcbsp3 */
2951 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
2952 .master = &omap44xx_l4_abe_hwmod,
2953 .slave = &omap44xx_mcbsp3_hwmod,
2954 .clk = "ocp_abe_iclk",
2955 .addr = omap44xx_mcbsp3_addrs,
2956 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_addrs),
2957 .user = OCP_USER_MPU,
2960 static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
2963 .pa_start = 0x49026000,
2964 .pa_end = 0x490260ff,
2965 .flags = ADDR_TYPE_RT
2969 /* l4_abe -> mcbsp3 (dma) */
2970 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
2971 .master = &omap44xx_l4_abe_hwmod,
2972 .slave = &omap44xx_mcbsp3_hwmod,
2973 .clk = "ocp_abe_iclk",
2974 .addr = omap44xx_mcbsp3_dma_addrs,
2975 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_dma_addrs),
2976 .user = OCP_USER_SDMA,
2979 /* mcbsp3 slave ports */
2980 static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
2981 &omap44xx_l4_abe__mcbsp3,
2982 &omap44xx_l4_abe__mcbsp3_dma,
2985 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2987 .class = &omap44xx_mcbsp_hwmod_class,
2988 .mpu_irqs = omap44xx_mcbsp3_irqs,
2989 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_irqs),
2990 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
2991 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_sdma_reqs),
2992 .main_clk = "mcbsp3_fck",
2995 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
2998 .slaves = omap44xx_mcbsp3_slaves,
2999 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
3000 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3004 static struct omap_hwmod omap44xx_mcbsp4_hwmod;
3005 static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
3006 { .irq = 16 + OMAP44XX_IRQ_GIC_START },
3009 static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
3010 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
3011 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
3014 static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
3016 .pa_start = 0x48096000,
3017 .pa_end = 0x480960ff,
3018 .flags = ADDR_TYPE_RT
3022 /* l4_per -> mcbsp4 */
3023 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3024 .master = &omap44xx_l4_per_hwmod,
3025 .slave = &omap44xx_mcbsp4_hwmod,
3027 .addr = omap44xx_mcbsp4_addrs,
3028 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp4_addrs),
3029 .user = OCP_USER_MPU | OCP_USER_SDMA,
3032 /* mcbsp4 slave ports */
3033 static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
3034 &omap44xx_l4_per__mcbsp4,
3037 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
3039 .class = &omap44xx_mcbsp_hwmod_class,
3040 .mpu_irqs = omap44xx_mcbsp4_irqs,
3041 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_irqs),
3042 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
3043 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_sdma_reqs),
3044 .main_clk = "mcbsp4_fck",
3047 .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
3050 .slaves = omap44xx_mcbsp4_slaves,
3051 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
3052 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3057 * multi channel pdm controller (proprietary interface with phoenix power
3061 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3063 .sysc_offs = 0x0010,
3064 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3065 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3066 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3068 .sysc_fields = &omap_hwmod_sysc_type2,
3071 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3073 .sysc = &omap44xx_mcpdm_sysc,
3077 static struct omap_hwmod omap44xx_mcpdm_hwmod;
3078 static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3079 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
3082 static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
3083 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
3084 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
3087 static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
3089 .pa_start = 0x40132000,
3090 .pa_end = 0x4013207f,
3091 .flags = ADDR_TYPE_RT
3095 /* l4_abe -> mcpdm */
3096 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3097 .master = &omap44xx_l4_abe_hwmod,
3098 .slave = &omap44xx_mcpdm_hwmod,
3099 .clk = "ocp_abe_iclk",
3100 .addr = omap44xx_mcpdm_addrs,
3101 .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_addrs),
3102 .user = OCP_USER_MPU,
3105 static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
3107 .pa_start = 0x49032000,
3108 .pa_end = 0x4903207f,
3109 .flags = ADDR_TYPE_RT
3113 /* l4_abe -> mcpdm (dma) */
3114 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3115 .master = &omap44xx_l4_abe_hwmod,
3116 .slave = &omap44xx_mcpdm_hwmod,
3117 .clk = "ocp_abe_iclk",
3118 .addr = omap44xx_mcpdm_dma_addrs,
3119 .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_dma_addrs),
3120 .user = OCP_USER_SDMA,
3123 /* mcpdm slave ports */
3124 static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
3125 &omap44xx_l4_abe__mcpdm,
3126 &omap44xx_l4_abe__mcpdm_dma,
3129 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
3131 .class = &omap44xx_mcpdm_hwmod_class,
3132 .mpu_irqs = omap44xx_mcpdm_irqs,
3133 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_irqs),
3134 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
3135 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_sdma_reqs),
3136 .main_clk = "mcpdm_fck",
3139 .clkctrl_reg = OMAP4430_CM1_ABE_PDM_CLKCTRL,
3142 .slaves = omap44xx_mcpdm_slaves,
3143 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
3144 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3149 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3153 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3155 .sysc_offs = 0x0010,
3156 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3157 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3158 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3160 .sysc_fields = &omap_hwmod_sysc_type2,
3163 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3165 .sysc = &omap44xx_mcspi_sysc,
3166 .rev = OMAP4_MCSPI_REV,
3170 static struct omap_hwmod omap44xx_mcspi1_hwmod;
3171 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3172 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
3175 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
3176 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
3177 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
3178 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
3179 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
3180 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
3181 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
3182 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
3183 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
3186 static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
3188 .pa_start = 0x48098000,
3189 .pa_end = 0x480981ff,
3190 .flags = ADDR_TYPE_RT
3194 /* l4_per -> mcspi1 */
3195 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3196 .master = &omap44xx_l4_per_hwmod,
3197 .slave = &omap44xx_mcspi1_hwmod,
3199 .addr = omap44xx_mcspi1_addrs,
3200 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
3201 .user = OCP_USER_MPU | OCP_USER_SDMA,
3204 /* mcspi1 slave ports */
3205 static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
3206 &omap44xx_l4_per__mcspi1,
3209 /* mcspi1 dev_attr */
3210 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
3211 .num_chipselect = 4,
3214 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
3216 .class = &omap44xx_mcspi_hwmod_class,
3217 .mpu_irqs = omap44xx_mcspi1_irqs,
3218 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
3219 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
3220 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
3221 .main_clk = "mcspi1_fck",
3224 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
3227 .dev_attr = &mcspi1_dev_attr,
3228 .slaves = omap44xx_mcspi1_slaves,
3229 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
3230 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3234 static struct omap_hwmod omap44xx_mcspi2_hwmod;
3235 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3236 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
3239 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
3240 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
3241 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
3242 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
3243 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
3246 static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
3248 .pa_start = 0x4809a000,
3249 .pa_end = 0x4809a1ff,
3250 .flags = ADDR_TYPE_RT
3254 /* l4_per -> mcspi2 */
3255 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3256 .master = &omap44xx_l4_per_hwmod,
3257 .slave = &omap44xx_mcspi2_hwmod,
3259 .addr = omap44xx_mcspi2_addrs,
3260 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
3261 .user = OCP_USER_MPU | OCP_USER_SDMA,
3264 /* mcspi2 slave ports */
3265 static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
3266 &omap44xx_l4_per__mcspi2,
3269 /* mcspi2 dev_attr */
3270 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
3271 .num_chipselect = 2,
3274 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
3276 .class = &omap44xx_mcspi_hwmod_class,
3277 .mpu_irqs = omap44xx_mcspi2_irqs,
3278 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
3279 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
3280 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
3281 .main_clk = "mcspi2_fck",
3284 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
3287 .dev_attr = &mcspi2_dev_attr,
3288 .slaves = omap44xx_mcspi2_slaves,
3289 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
3290 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3294 static struct omap_hwmod omap44xx_mcspi3_hwmod;
3295 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3296 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
3299 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
3300 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
3301 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
3302 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
3303 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
3306 static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
3308 .pa_start = 0x480b8000,
3309 .pa_end = 0x480b81ff,
3310 .flags = ADDR_TYPE_RT
3314 /* l4_per -> mcspi3 */
3315 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3316 .master = &omap44xx_l4_per_hwmod,
3317 .slave = &omap44xx_mcspi3_hwmod,
3319 .addr = omap44xx_mcspi3_addrs,
3320 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
3321 .user = OCP_USER_MPU | OCP_USER_SDMA,
3324 /* mcspi3 slave ports */
3325 static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
3326 &omap44xx_l4_per__mcspi3,
3329 /* mcspi3 dev_attr */
3330 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
3331 .num_chipselect = 2,
3334 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
3336 .class = &omap44xx_mcspi_hwmod_class,
3337 .mpu_irqs = omap44xx_mcspi3_irqs,
3338 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
3339 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
3340 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
3341 .main_clk = "mcspi3_fck",
3344 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
3347 .dev_attr = &mcspi3_dev_attr,
3348 .slaves = omap44xx_mcspi3_slaves,
3349 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
3350 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3354 static struct omap_hwmod omap44xx_mcspi4_hwmod;
3355 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3356 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
3359 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
3360 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
3361 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
3364 static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
3366 .pa_start = 0x480ba000,
3367 .pa_end = 0x480ba1ff,
3368 .flags = ADDR_TYPE_RT
3372 /* l4_per -> mcspi4 */
3373 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3374 .master = &omap44xx_l4_per_hwmod,
3375 .slave = &omap44xx_mcspi4_hwmod,
3377 .addr = omap44xx_mcspi4_addrs,
3378 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
3379 .user = OCP_USER_MPU | OCP_USER_SDMA,
3382 /* mcspi4 slave ports */
3383 static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
3384 &omap44xx_l4_per__mcspi4,
3387 /* mcspi4 dev_attr */
3388 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
3389 .num_chipselect = 1,
3392 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
3394 .class = &omap44xx_mcspi_hwmod_class,
3395 .mpu_irqs = omap44xx_mcspi4_irqs,
3396 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
3397 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
3398 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
3399 .main_clk = "mcspi4_fck",
3402 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
3405 .dev_attr = &mcspi4_dev_attr,
3406 .slaves = omap44xx_mcspi4_slaves,
3407 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
3408 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3413 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3416 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3418 .sysc_offs = 0x0010,
3419 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3420 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3421 SYSC_HAS_SOFTRESET),
3422 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3423 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3424 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
3425 .sysc_fields = &omap_hwmod_sysc_type2,
3428 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3430 .sysc = &omap44xx_mmc_sysc,
3435 static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3436 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
3439 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
3440 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
3441 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
3444 /* mmc1 master ports */
3445 static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
3446 &omap44xx_mmc1__l3_main_1,
3449 static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
3451 .pa_start = 0x4809c000,
3452 .pa_end = 0x4809c3ff,
3453 .flags = ADDR_TYPE_RT
3457 /* l4_per -> mmc1 */
3458 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3459 .master = &omap44xx_l4_per_hwmod,
3460 .slave = &omap44xx_mmc1_hwmod,
3462 .addr = omap44xx_mmc1_addrs,
3463 .addr_cnt = ARRAY_SIZE(omap44xx_mmc1_addrs),
3464 .user = OCP_USER_MPU | OCP_USER_SDMA,
3467 /* mmc1 slave ports */
3468 static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3469 &omap44xx_l4_per__mmc1,
3473 static struct omap_mmc_dev_attr mmc1_dev_attr = {
3474 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3477 static struct omap_hwmod omap44xx_mmc1_hwmod = {
3479 .class = &omap44xx_mmc_hwmod_class,
3480 .mpu_irqs = omap44xx_mmc1_irqs,
3481 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc1_irqs),
3482 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
3483 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc1_sdma_reqs),
3484 .main_clk = "mmc1_fck",
3487 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
3490 .dev_attr = &mmc1_dev_attr,
3491 .slaves = omap44xx_mmc1_slaves,
3492 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3493 .masters = omap44xx_mmc1_masters,
3494 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
3495 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3499 static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3500 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
3503 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
3504 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
3505 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
3508 /* mmc2 master ports */
3509 static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
3510 &omap44xx_mmc2__l3_main_1,
3513 static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
3515 .pa_start = 0x480b4000,
3516 .pa_end = 0x480b43ff,
3517 .flags = ADDR_TYPE_RT
3521 /* l4_per -> mmc2 */
3522 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3523 .master = &omap44xx_l4_per_hwmod,
3524 .slave = &omap44xx_mmc2_hwmod,
3526 .addr = omap44xx_mmc2_addrs,
3527 .addr_cnt = ARRAY_SIZE(omap44xx_mmc2_addrs),
3528 .user = OCP_USER_MPU | OCP_USER_SDMA,
3531 /* mmc2 slave ports */
3532 static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
3533 &omap44xx_l4_per__mmc2,
3536 static struct omap_hwmod omap44xx_mmc2_hwmod = {
3538 .class = &omap44xx_mmc_hwmod_class,
3539 .mpu_irqs = omap44xx_mmc2_irqs,
3540 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc2_irqs),
3541 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
3542 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc2_sdma_reqs),
3543 .main_clk = "mmc2_fck",
3546 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
3549 .slaves = omap44xx_mmc2_slaves,
3550 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3551 .masters = omap44xx_mmc2_masters,
3552 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
3553 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3557 static struct omap_hwmod omap44xx_mmc3_hwmod;
3558 static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3559 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
3562 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
3563 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
3564 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
3567 static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
3569 .pa_start = 0x480ad000,
3570 .pa_end = 0x480ad3ff,
3571 .flags = ADDR_TYPE_RT
3575 /* l4_per -> mmc3 */
3576 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3577 .master = &omap44xx_l4_per_hwmod,
3578 .slave = &omap44xx_mmc3_hwmod,
3580 .addr = omap44xx_mmc3_addrs,
3581 .addr_cnt = ARRAY_SIZE(omap44xx_mmc3_addrs),
3582 .user = OCP_USER_MPU | OCP_USER_SDMA,
3585 /* mmc3 slave ports */
3586 static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
3587 &omap44xx_l4_per__mmc3,
3590 static struct omap_hwmod omap44xx_mmc3_hwmod = {
3592 .class = &omap44xx_mmc_hwmod_class,
3593 .mpu_irqs = omap44xx_mmc3_irqs,
3594 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc3_irqs),
3595 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
3596 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc3_sdma_reqs),
3597 .main_clk = "mmc3_fck",
3600 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
3603 .slaves = omap44xx_mmc3_slaves,
3604 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
3605 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3609 static struct omap_hwmod omap44xx_mmc4_hwmod;
3610 static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3611 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
3614 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
3615 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
3616 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
3619 static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
3621 .pa_start = 0x480d1000,
3622 .pa_end = 0x480d13ff,
3623 .flags = ADDR_TYPE_RT
3627 /* l4_per -> mmc4 */
3628 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3629 .master = &omap44xx_l4_per_hwmod,
3630 .slave = &omap44xx_mmc4_hwmod,
3632 .addr = omap44xx_mmc4_addrs,
3633 .addr_cnt = ARRAY_SIZE(omap44xx_mmc4_addrs),
3634 .user = OCP_USER_MPU | OCP_USER_SDMA,
3637 /* mmc4 slave ports */
3638 static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
3639 &omap44xx_l4_per__mmc4,
3642 static struct omap_hwmod omap44xx_mmc4_hwmod = {
3644 .class = &omap44xx_mmc_hwmod_class,
3645 .mpu_irqs = omap44xx_mmc4_irqs,
3646 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc4_irqs),
3647 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
3648 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc4_sdma_reqs),
3649 .main_clk = "mmc4_fck",
3652 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD4_CLKCTRL,
3655 .slaves = omap44xx_mmc4_slaves,
3656 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
3657 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3661 static struct omap_hwmod omap44xx_mmc5_hwmod;
3662 static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
3663 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
3666 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3667 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3668 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
3671 static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3673 .pa_start = 0x480d5000,
3674 .pa_end = 0x480d53ff,
3675 .flags = ADDR_TYPE_RT
3679 /* l4_per -> mmc5 */
3680 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3681 .master = &omap44xx_l4_per_hwmod,
3682 .slave = &omap44xx_mmc5_hwmod,
3684 .addr = omap44xx_mmc5_addrs,
3685 .addr_cnt = ARRAY_SIZE(omap44xx_mmc5_addrs),
3686 .user = OCP_USER_MPU | OCP_USER_SDMA,
3689 /* mmc5 slave ports */
3690 static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3691 &omap44xx_l4_per__mmc5,
3694 static struct omap_hwmod omap44xx_mmc5_hwmod = {
3696 .class = &omap44xx_mmc_hwmod_class,
3697 .mpu_irqs = omap44xx_mmc5_irqs,
3698 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc5_irqs),
3699 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
3700 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc5_sdma_reqs),
3701 .main_clk = "mmc5_fck",
3704 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD5_CLKCTRL,
3707 .slaves = omap44xx_mmc5_slaves,
3708 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
3709 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3717 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
3722 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
3723 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
3724 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
3725 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
3728 /* mpu master ports */
3729 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3730 &omap44xx_mpu__l3_main_1,
3731 &omap44xx_mpu__l4_abe,
3735 static struct omap_hwmod omap44xx_mpu_hwmod = {
3737 .class = &omap44xx_mpu_hwmod_class,
3738 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
3739 .mpu_irqs = omap44xx_mpu_irqs,
3740 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
3741 .main_clk = "dpll_mpu_m2_ck",
3744 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
3747 .masters = omap44xx_mpu_masters,
3748 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
3749 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3753 * 'smartreflex' class
3754 * smartreflex module (monitor silicon performance and outputs a measure of
3755 * performance error)
3758 /* The IP is not compliant to type1 / type2 scheme */
3759 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
3764 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
3765 .sysc_offs = 0x0038,
3766 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
3767 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3769 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
3772 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
3773 .name = "smartreflex",
3774 .sysc = &omap44xx_smartreflex_sysc,
3778 /* smartreflex_core */
3779 static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
3780 static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
3781 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
3784 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3786 .pa_start = 0x4a0dd000,
3787 .pa_end = 0x4a0dd03f,
3788 .flags = ADDR_TYPE_RT
3792 /* l4_cfg -> smartreflex_core */
3793 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3794 .master = &omap44xx_l4_cfg_hwmod,
3795 .slave = &omap44xx_smartreflex_core_hwmod,
3797 .addr = omap44xx_smartreflex_core_addrs,
3798 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
3799 .user = OCP_USER_MPU | OCP_USER_SDMA,
3802 /* smartreflex_core slave ports */
3803 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3804 &omap44xx_l4_cfg__smartreflex_core,
3807 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3808 .name = "smartreflex_core",
3809 .class = &omap44xx_smartreflex_hwmod_class,
3810 .mpu_irqs = omap44xx_smartreflex_core_irqs,
3811 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
3812 .main_clk = "smartreflex_core_fck",
3816 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
3819 .slaves = omap44xx_smartreflex_core_slaves,
3820 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
3821 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3824 /* smartreflex_iva */
3825 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
3826 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3827 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
3830 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
3832 .pa_start = 0x4a0db000,
3833 .pa_end = 0x4a0db03f,
3834 .flags = ADDR_TYPE_RT
3838 /* l4_cfg -> smartreflex_iva */
3839 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3840 .master = &omap44xx_l4_cfg_hwmod,
3841 .slave = &omap44xx_smartreflex_iva_hwmod,
3843 .addr = omap44xx_smartreflex_iva_addrs,
3844 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
3845 .user = OCP_USER_MPU | OCP_USER_SDMA,
3848 /* smartreflex_iva slave ports */
3849 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
3850 &omap44xx_l4_cfg__smartreflex_iva,
3853 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3854 .name = "smartreflex_iva",
3855 .class = &omap44xx_smartreflex_hwmod_class,
3856 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
3857 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
3858 .main_clk = "smartreflex_iva_fck",
3862 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
3865 .slaves = omap44xx_smartreflex_iva_slaves,
3866 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
3867 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3870 /* smartreflex_mpu */
3871 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
3872 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3873 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
3876 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
3878 .pa_start = 0x4a0d9000,
3879 .pa_end = 0x4a0d903f,
3880 .flags = ADDR_TYPE_RT
3884 /* l4_cfg -> smartreflex_mpu */
3885 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3886 .master = &omap44xx_l4_cfg_hwmod,
3887 .slave = &omap44xx_smartreflex_mpu_hwmod,
3889 .addr = omap44xx_smartreflex_mpu_addrs,
3890 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
3891 .user = OCP_USER_MPU | OCP_USER_SDMA,
3894 /* smartreflex_mpu slave ports */
3895 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
3896 &omap44xx_l4_cfg__smartreflex_mpu,
3899 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3900 .name = "smartreflex_mpu",
3901 .class = &omap44xx_smartreflex_hwmod_class,
3902 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
3903 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
3904 .main_clk = "smartreflex_mpu_fck",
3908 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
3911 .slaves = omap44xx_smartreflex_mpu_slaves,
3912 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
3913 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3918 * spinlock provides hardware assistance for synchronizing the processes
3919 * running on multiple processors
3922 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3924 .sysc_offs = 0x0010,
3925 .syss_offs = 0x0014,
3926 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3927 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3928 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3929 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3931 .sysc_fields = &omap_hwmod_sysc_type1,
3934 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3936 .sysc = &omap44xx_spinlock_sysc,
3940 static struct omap_hwmod omap44xx_spinlock_hwmod;
3941 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
3943 .pa_start = 0x4a0f6000,
3944 .pa_end = 0x4a0f6fff,
3945 .flags = ADDR_TYPE_RT
3949 /* l4_cfg -> spinlock */
3950 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3951 .master = &omap44xx_l4_cfg_hwmod,
3952 .slave = &omap44xx_spinlock_hwmod,
3954 .addr = omap44xx_spinlock_addrs,
3955 .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
3956 .user = OCP_USER_MPU | OCP_USER_SDMA,
3959 /* spinlock slave ports */
3960 static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
3961 &omap44xx_l4_cfg__spinlock,
3964 static struct omap_hwmod omap44xx_spinlock_hwmod = {
3966 .class = &omap44xx_spinlock_hwmod_class,
3969 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
3972 .slaves = omap44xx_spinlock_slaves,
3973 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
3974 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3979 * general purpose timer module with accurate 1ms tick
3980 * This class contains several variants: ['timer_1ms', 'timer']
3983 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3985 .sysc_offs = 0x0010,
3986 .syss_offs = 0x0014,
3987 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3988 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3989 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3990 SYSS_HAS_RESET_STATUS),
3991 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3992 .sysc_fields = &omap_hwmod_sysc_type1,
3995 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3997 .sysc = &omap44xx_timer_1ms_sysc,
4000 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
4002 .sysc_offs = 0x0010,
4003 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
4004 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
4005 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4007 .sysc_fields = &omap_hwmod_sysc_type2,
4010 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
4012 .sysc = &omap44xx_timer_sysc,
4016 static struct omap_hwmod omap44xx_timer1_hwmod;
4017 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
4018 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
4021 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
4023 .pa_start = 0x4a318000,
4024 .pa_end = 0x4a31807f,
4025 .flags = ADDR_TYPE_RT
4029 /* l4_wkup -> timer1 */
4030 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4031 .master = &omap44xx_l4_wkup_hwmod,
4032 .slave = &omap44xx_timer1_hwmod,
4033 .clk = "l4_wkup_clk_mux_ck",
4034 .addr = omap44xx_timer1_addrs,
4035 .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
4036 .user = OCP_USER_MPU | OCP_USER_SDMA,
4039 /* timer1 slave ports */
4040 static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
4041 &omap44xx_l4_wkup__timer1,
4044 static struct omap_hwmod omap44xx_timer1_hwmod = {
4046 .class = &omap44xx_timer_1ms_hwmod_class,
4047 .mpu_irqs = omap44xx_timer1_irqs,
4048 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
4049 .main_clk = "timer1_fck",
4052 .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
4055 .slaves = omap44xx_timer1_slaves,
4056 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
4057 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4061 static struct omap_hwmod omap44xx_timer2_hwmod;
4062 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4063 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
4066 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4068 .pa_start = 0x48032000,
4069 .pa_end = 0x4803207f,
4070 .flags = ADDR_TYPE_RT
4074 /* l4_per -> timer2 */
4075 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4076 .master = &omap44xx_l4_per_hwmod,
4077 .slave = &omap44xx_timer2_hwmod,
4079 .addr = omap44xx_timer2_addrs,
4080 .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
4081 .user = OCP_USER_MPU | OCP_USER_SDMA,
4084 /* timer2 slave ports */
4085 static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4086 &omap44xx_l4_per__timer2,
4089 static struct omap_hwmod omap44xx_timer2_hwmod = {
4091 .class = &omap44xx_timer_1ms_hwmod_class,
4092 .mpu_irqs = omap44xx_timer2_irqs,
4093 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
4094 .main_clk = "timer2_fck",
4097 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
4100 .slaves = omap44xx_timer2_slaves,
4101 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
4102 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4106 static struct omap_hwmod omap44xx_timer3_hwmod;
4107 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4108 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
4111 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4113 .pa_start = 0x48034000,
4114 .pa_end = 0x4803407f,
4115 .flags = ADDR_TYPE_RT
4119 /* l4_per -> timer3 */
4120 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4121 .master = &omap44xx_l4_per_hwmod,
4122 .slave = &omap44xx_timer3_hwmod,
4124 .addr = omap44xx_timer3_addrs,
4125 .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
4126 .user = OCP_USER_MPU | OCP_USER_SDMA,
4129 /* timer3 slave ports */
4130 static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4131 &omap44xx_l4_per__timer3,
4134 static struct omap_hwmod omap44xx_timer3_hwmod = {
4136 .class = &omap44xx_timer_hwmod_class,
4137 .mpu_irqs = omap44xx_timer3_irqs,
4138 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
4139 .main_clk = "timer3_fck",
4142 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
4145 .slaves = omap44xx_timer3_slaves,
4146 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
4147 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4151 static struct omap_hwmod omap44xx_timer4_hwmod;
4152 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4153 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
4156 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4158 .pa_start = 0x48036000,
4159 .pa_end = 0x4803607f,
4160 .flags = ADDR_TYPE_RT
4164 /* l4_per -> timer4 */
4165 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4166 .master = &omap44xx_l4_per_hwmod,
4167 .slave = &omap44xx_timer4_hwmod,
4169 .addr = omap44xx_timer4_addrs,
4170 .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
4171 .user = OCP_USER_MPU | OCP_USER_SDMA,
4174 /* timer4 slave ports */
4175 static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4176 &omap44xx_l4_per__timer4,
4179 static struct omap_hwmod omap44xx_timer4_hwmod = {
4181 .class = &omap44xx_timer_hwmod_class,
4182 .mpu_irqs = omap44xx_timer4_irqs,
4183 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
4184 .main_clk = "timer4_fck",
4187 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
4190 .slaves = omap44xx_timer4_slaves,
4191 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
4192 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4196 static struct omap_hwmod omap44xx_timer5_hwmod;
4197 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4198 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
4201 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4203 .pa_start = 0x40138000,
4204 .pa_end = 0x4013807f,
4205 .flags = ADDR_TYPE_RT
4209 /* l4_abe -> timer5 */
4210 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4211 .master = &omap44xx_l4_abe_hwmod,
4212 .slave = &omap44xx_timer5_hwmod,
4213 .clk = "ocp_abe_iclk",
4214 .addr = omap44xx_timer5_addrs,
4215 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
4216 .user = OCP_USER_MPU,
4219 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4221 .pa_start = 0x49038000,
4222 .pa_end = 0x4903807f,
4223 .flags = ADDR_TYPE_RT
4227 /* l4_abe -> timer5 (dma) */
4228 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4229 .master = &omap44xx_l4_abe_hwmod,
4230 .slave = &omap44xx_timer5_hwmod,
4231 .clk = "ocp_abe_iclk",
4232 .addr = omap44xx_timer5_dma_addrs,
4233 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
4234 .user = OCP_USER_SDMA,
4237 /* timer5 slave ports */
4238 static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4239 &omap44xx_l4_abe__timer5,
4240 &omap44xx_l4_abe__timer5_dma,
4243 static struct omap_hwmod omap44xx_timer5_hwmod = {
4245 .class = &omap44xx_timer_hwmod_class,
4246 .mpu_irqs = omap44xx_timer5_irqs,
4247 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
4248 .main_clk = "timer5_fck",
4251 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
4254 .slaves = omap44xx_timer5_slaves,
4255 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
4256 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4260 static struct omap_hwmod omap44xx_timer6_hwmod;
4261 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4262 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
4265 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4267 .pa_start = 0x4013a000,
4268 .pa_end = 0x4013a07f,
4269 .flags = ADDR_TYPE_RT
4273 /* l4_abe -> timer6 */
4274 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4275 .master = &omap44xx_l4_abe_hwmod,
4276 .slave = &omap44xx_timer6_hwmod,
4277 .clk = "ocp_abe_iclk",
4278 .addr = omap44xx_timer6_addrs,
4279 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
4280 .user = OCP_USER_MPU,
4283 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4285 .pa_start = 0x4903a000,
4286 .pa_end = 0x4903a07f,
4287 .flags = ADDR_TYPE_RT
4291 /* l4_abe -> timer6 (dma) */
4292 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4293 .master = &omap44xx_l4_abe_hwmod,
4294 .slave = &omap44xx_timer6_hwmod,
4295 .clk = "ocp_abe_iclk",
4296 .addr = omap44xx_timer6_dma_addrs,
4297 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
4298 .user = OCP_USER_SDMA,
4301 /* timer6 slave ports */
4302 static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4303 &omap44xx_l4_abe__timer6,
4304 &omap44xx_l4_abe__timer6_dma,
4307 static struct omap_hwmod omap44xx_timer6_hwmod = {
4309 .class = &omap44xx_timer_hwmod_class,
4310 .mpu_irqs = omap44xx_timer6_irqs,
4311 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
4312 .main_clk = "timer6_fck",
4315 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
4318 .slaves = omap44xx_timer6_slaves,
4319 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
4320 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4324 static struct omap_hwmod omap44xx_timer7_hwmod;
4325 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4326 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
4329 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4331 .pa_start = 0x4013c000,
4332 .pa_end = 0x4013c07f,
4333 .flags = ADDR_TYPE_RT
4337 /* l4_abe -> timer7 */
4338 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4339 .master = &omap44xx_l4_abe_hwmod,
4340 .slave = &omap44xx_timer7_hwmod,
4341 .clk = "ocp_abe_iclk",
4342 .addr = omap44xx_timer7_addrs,
4343 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
4344 .user = OCP_USER_MPU,
4347 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4349 .pa_start = 0x4903c000,
4350 .pa_end = 0x4903c07f,
4351 .flags = ADDR_TYPE_RT
4355 /* l4_abe -> timer7 (dma) */
4356 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4357 .master = &omap44xx_l4_abe_hwmod,
4358 .slave = &omap44xx_timer7_hwmod,
4359 .clk = "ocp_abe_iclk",
4360 .addr = omap44xx_timer7_dma_addrs,
4361 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
4362 .user = OCP_USER_SDMA,
4365 /* timer7 slave ports */
4366 static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4367 &omap44xx_l4_abe__timer7,
4368 &omap44xx_l4_abe__timer7_dma,
4371 static struct omap_hwmod omap44xx_timer7_hwmod = {
4373 .class = &omap44xx_timer_hwmod_class,
4374 .mpu_irqs = omap44xx_timer7_irqs,
4375 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
4376 .main_clk = "timer7_fck",
4379 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
4382 .slaves = omap44xx_timer7_slaves,
4383 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
4384 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4388 static struct omap_hwmod omap44xx_timer8_hwmod;
4389 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4390 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
4393 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4395 .pa_start = 0x4013e000,
4396 .pa_end = 0x4013e07f,
4397 .flags = ADDR_TYPE_RT
4401 /* l4_abe -> timer8 */
4402 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4403 .master = &omap44xx_l4_abe_hwmod,
4404 .slave = &omap44xx_timer8_hwmod,
4405 .clk = "ocp_abe_iclk",
4406 .addr = omap44xx_timer8_addrs,
4407 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
4408 .user = OCP_USER_MPU,
4411 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4413 .pa_start = 0x4903e000,
4414 .pa_end = 0x4903e07f,
4415 .flags = ADDR_TYPE_RT
4419 /* l4_abe -> timer8 (dma) */
4420 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4421 .master = &omap44xx_l4_abe_hwmod,
4422 .slave = &omap44xx_timer8_hwmod,
4423 .clk = "ocp_abe_iclk",
4424 .addr = omap44xx_timer8_dma_addrs,
4425 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
4426 .user = OCP_USER_SDMA,
4429 /* timer8 slave ports */
4430 static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4431 &omap44xx_l4_abe__timer8,
4432 &omap44xx_l4_abe__timer8_dma,
4435 static struct omap_hwmod omap44xx_timer8_hwmod = {
4437 .class = &omap44xx_timer_hwmod_class,
4438 .mpu_irqs = omap44xx_timer8_irqs,
4439 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
4440 .main_clk = "timer8_fck",
4443 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
4446 .slaves = omap44xx_timer8_slaves,
4447 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
4448 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4452 static struct omap_hwmod omap44xx_timer9_hwmod;
4453 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4454 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
4457 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4459 .pa_start = 0x4803e000,
4460 .pa_end = 0x4803e07f,
4461 .flags = ADDR_TYPE_RT
4465 /* l4_per -> timer9 */
4466 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4467 .master = &omap44xx_l4_per_hwmod,
4468 .slave = &omap44xx_timer9_hwmod,
4470 .addr = omap44xx_timer9_addrs,
4471 .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
4472 .user = OCP_USER_MPU | OCP_USER_SDMA,
4475 /* timer9 slave ports */
4476 static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4477 &omap44xx_l4_per__timer9,
4480 static struct omap_hwmod omap44xx_timer9_hwmod = {
4482 .class = &omap44xx_timer_hwmod_class,
4483 .mpu_irqs = omap44xx_timer9_irqs,
4484 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
4485 .main_clk = "timer9_fck",
4488 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
4491 .slaves = omap44xx_timer9_slaves,
4492 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
4493 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4497 static struct omap_hwmod omap44xx_timer10_hwmod;
4498 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4499 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
4502 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4504 .pa_start = 0x48086000,
4505 .pa_end = 0x4808607f,
4506 .flags = ADDR_TYPE_RT
4510 /* l4_per -> timer10 */
4511 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4512 .master = &omap44xx_l4_per_hwmod,
4513 .slave = &omap44xx_timer10_hwmod,
4515 .addr = omap44xx_timer10_addrs,
4516 .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
4517 .user = OCP_USER_MPU | OCP_USER_SDMA,
4520 /* timer10 slave ports */
4521 static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4522 &omap44xx_l4_per__timer10,
4525 static struct omap_hwmod omap44xx_timer10_hwmod = {
4527 .class = &omap44xx_timer_1ms_hwmod_class,
4528 .mpu_irqs = omap44xx_timer10_irqs,
4529 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
4530 .main_clk = "timer10_fck",
4533 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
4536 .slaves = omap44xx_timer10_slaves,
4537 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
4538 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4542 static struct omap_hwmod omap44xx_timer11_hwmod;
4543 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4544 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
4547 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4549 .pa_start = 0x48088000,
4550 .pa_end = 0x4808807f,
4551 .flags = ADDR_TYPE_RT
4555 /* l4_per -> timer11 */
4556 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4557 .master = &omap44xx_l4_per_hwmod,
4558 .slave = &omap44xx_timer11_hwmod,
4560 .addr = omap44xx_timer11_addrs,
4561 .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
4562 .user = OCP_USER_MPU | OCP_USER_SDMA,
4565 /* timer11 slave ports */
4566 static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4567 &omap44xx_l4_per__timer11,
4570 static struct omap_hwmod omap44xx_timer11_hwmod = {
4572 .class = &omap44xx_timer_hwmod_class,
4573 .mpu_irqs = omap44xx_timer11_irqs,
4574 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
4575 .main_clk = "timer11_fck",
4578 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
4581 .slaves = omap44xx_timer11_slaves,
4582 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
4583 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4588 * universal asynchronous receiver/transmitter (uart)
4591 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4593 .sysc_offs = 0x0054,
4594 .syss_offs = 0x0058,
4595 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4596 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4597 SYSS_HAS_RESET_STATUS),
4598 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4600 .sysc_fields = &omap_hwmod_sysc_type1,
4603 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
4605 .sysc = &omap44xx_uart_sysc,
4609 static struct omap_hwmod omap44xx_uart1_hwmod;
4610 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4611 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
4614 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4615 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4616 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
4619 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4621 .pa_start = 0x4806a000,
4622 .pa_end = 0x4806a0ff,
4623 .flags = ADDR_TYPE_RT
4627 /* l4_per -> uart1 */
4628 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4629 .master = &omap44xx_l4_per_hwmod,
4630 .slave = &omap44xx_uart1_hwmod,
4632 .addr = omap44xx_uart1_addrs,
4633 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
4634 .user = OCP_USER_MPU | OCP_USER_SDMA,
4637 /* uart1 slave ports */
4638 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4639 &omap44xx_l4_per__uart1,
4642 static struct omap_hwmod omap44xx_uart1_hwmod = {
4644 .class = &omap44xx_uart_hwmod_class,
4645 .mpu_irqs = omap44xx_uart1_irqs,
4646 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
4647 .sdma_reqs = omap44xx_uart1_sdma_reqs,
4648 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
4649 .main_clk = "uart1_fck",
4652 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
4655 .slaves = omap44xx_uart1_slaves,
4656 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
4657 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4661 static struct omap_hwmod omap44xx_uart2_hwmod;
4662 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4663 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
4666 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4667 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4668 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
4671 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4673 .pa_start = 0x4806c000,
4674 .pa_end = 0x4806c0ff,
4675 .flags = ADDR_TYPE_RT
4679 /* l4_per -> uart2 */
4680 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4681 .master = &omap44xx_l4_per_hwmod,
4682 .slave = &omap44xx_uart2_hwmod,
4684 .addr = omap44xx_uart2_addrs,
4685 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
4686 .user = OCP_USER_MPU | OCP_USER_SDMA,
4689 /* uart2 slave ports */
4690 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4691 &omap44xx_l4_per__uart2,
4694 static struct omap_hwmod omap44xx_uart2_hwmod = {
4696 .class = &omap44xx_uart_hwmod_class,
4697 .mpu_irqs = omap44xx_uart2_irqs,
4698 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
4699 .sdma_reqs = omap44xx_uart2_sdma_reqs,
4700 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
4701 .main_clk = "uart2_fck",
4704 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
4707 .slaves = omap44xx_uart2_slaves,
4708 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
4709 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4713 static struct omap_hwmod omap44xx_uart3_hwmod;
4714 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4715 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
4718 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4719 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4720 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
4723 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4725 .pa_start = 0x48020000,
4726 .pa_end = 0x480200ff,
4727 .flags = ADDR_TYPE_RT
4731 /* l4_per -> uart3 */
4732 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4733 .master = &omap44xx_l4_per_hwmod,
4734 .slave = &omap44xx_uart3_hwmod,
4736 .addr = omap44xx_uart3_addrs,
4737 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
4738 .user = OCP_USER_MPU | OCP_USER_SDMA,
4741 /* uart3 slave ports */
4742 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4743 &omap44xx_l4_per__uart3,
4746 static struct omap_hwmod omap44xx_uart3_hwmod = {
4748 .class = &omap44xx_uart_hwmod_class,
4749 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
4750 .mpu_irqs = omap44xx_uart3_irqs,
4751 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
4752 .sdma_reqs = omap44xx_uart3_sdma_reqs,
4753 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
4754 .main_clk = "uart3_fck",
4757 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
4760 .slaves = omap44xx_uart3_slaves,
4761 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
4762 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4766 static struct omap_hwmod omap44xx_uart4_hwmod;
4767 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
4768 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
4771 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
4772 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
4773 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
4776 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
4778 .pa_start = 0x4806e000,
4779 .pa_end = 0x4806e0ff,
4780 .flags = ADDR_TYPE_RT
4784 /* l4_per -> uart4 */
4785 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4786 .master = &omap44xx_l4_per_hwmod,
4787 .slave = &omap44xx_uart4_hwmod,
4789 .addr = omap44xx_uart4_addrs,
4790 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
4791 .user = OCP_USER_MPU | OCP_USER_SDMA,
4794 /* uart4 slave ports */
4795 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
4796 &omap44xx_l4_per__uart4,
4799 static struct omap_hwmod omap44xx_uart4_hwmod = {
4801 .class = &omap44xx_uart_hwmod_class,
4802 .mpu_irqs = omap44xx_uart4_irqs,
4803 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
4804 .sdma_reqs = omap44xx_uart4_sdma_reqs,
4805 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
4806 .main_clk = "uart4_fck",
4809 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
4812 .slaves = omap44xx_uart4_slaves,
4813 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
4814 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4818 * 'usb_otg_hs' class
4819 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
4822 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
4824 .sysc_offs = 0x0404,
4825 .syss_offs = 0x0408,
4826 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4827 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
4828 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4829 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4830 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
4832 .sysc_fields = &omap_hwmod_sysc_type1,
4835 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
4836 .name = "usb_otg_hs",
4837 .sysc = &omap44xx_usb_otg_hs_sysc,
4841 static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
4842 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
4843 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
4846 /* usb_otg_hs master ports */
4847 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
4848 &omap44xx_usb_otg_hs__l3_main_2,
4851 static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
4853 .pa_start = 0x4a0ab000,
4854 .pa_end = 0x4a0ab003,
4855 .flags = ADDR_TYPE_RT
4859 /* l4_cfg -> usb_otg_hs */
4860 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4861 .master = &omap44xx_l4_cfg_hwmod,
4862 .slave = &omap44xx_usb_otg_hs_hwmod,
4864 .addr = omap44xx_usb_otg_hs_addrs,
4865 .addr_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_addrs),
4866 .user = OCP_USER_MPU | OCP_USER_SDMA,
4869 /* usb_otg_hs slave ports */
4870 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
4871 &omap44xx_l4_cfg__usb_otg_hs,
4874 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
4875 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
4878 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
4879 .name = "usb_otg_hs",
4880 .class = &omap44xx_usb_otg_hs_hwmod_class,
4881 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
4882 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
4883 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_irqs),
4884 .main_clk = "usb_otg_hs_ick",
4887 .clkctrl_reg = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
4890 .opt_clks = usb_otg_hs_opt_clks,
4891 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
4892 .slaves = omap44xx_usb_otg_hs_slaves,
4893 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
4894 .masters = omap44xx_usb_otg_hs_masters,
4895 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
4896 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4901 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
4902 * overflow condition
4905 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
4907 .sysc_offs = 0x0010,
4908 .syss_offs = 0x0014,
4909 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
4910 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4911 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4913 .sysc_fields = &omap_hwmod_sysc_type1,
4916 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
4918 .sysc = &omap44xx_wd_timer_sysc,
4919 .pre_shutdown = &omap2_wd_timer_disable,
4923 static struct omap_hwmod omap44xx_wd_timer2_hwmod;
4924 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
4925 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
4928 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
4930 .pa_start = 0x4a314000,
4931 .pa_end = 0x4a31407f,
4932 .flags = ADDR_TYPE_RT
4936 /* l4_wkup -> wd_timer2 */
4937 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4938 .master = &omap44xx_l4_wkup_hwmod,
4939 .slave = &omap44xx_wd_timer2_hwmod,
4940 .clk = "l4_wkup_clk_mux_ck",
4941 .addr = omap44xx_wd_timer2_addrs,
4942 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
4943 .user = OCP_USER_MPU | OCP_USER_SDMA,
4946 /* wd_timer2 slave ports */
4947 static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
4948 &omap44xx_l4_wkup__wd_timer2,
4951 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
4952 .name = "wd_timer2",
4953 .class = &omap44xx_wd_timer_hwmod_class,
4954 .mpu_irqs = omap44xx_wd_timer2_irqs,
4955 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
4956 .main_clk = "wd_timer2_fck",
4959 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
4962 .slaves = omap44xx_wd_timer2_slaves,
4963 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
4964 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4968 static struct omap_hwmod omap44xx_wd_timer3_hwmod;
4969 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
4970 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
4973 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4975 .pa_start = 0x40130000,
4976 .pa_end = 0x4013007f,
4977 .flags = ADDR_TYPE_RT
4981 /* l4_abe -> wd_timer3 */
4982 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4983 .master = &omap44xx_l4_abe_hwmod,
4984 .slave = &omap44xx_wd_timer3_hwmod,
4985 .clk = "ocp_abe_iclk",
4986 .addr = omap44xx_wd_timer3_addrs,
4987 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
4988 .user = OCP_USER_MPU,
4991 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4993 .pa_start = 0x49030000,
4994 .pa_end = 0x4903007f,
4995 .flags = ADDR_TYPE_RT
4999 /* l4_abe -> wd_timer3 (dma) */
5000 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
5001 .master = &omap44xx_l4_abe_hwmod,
5002 .slave = &omap44xx_wd_timer3_hwmod,
5003 .clk = "ocp_abe_iclk",
5004 .addr = omap44xx_wd_timer3_dma_addrs,
5005 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
5006 .user = OCP_USER_SDMA,
5009 /* wd_timer3 slave ports */
5010 static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
5011 &omap44xx_l4_abe__wd_timer3,
5012 &omap44xx_l4_abe__wd_timer3_dma,
5015 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
5016 .name = "wd_timer3",
5017 .class = &omap44xx_wd_timer_hwmod_class,
5018 .mpu_irqs = omap44xx_wd_timer3_irqs,
5019 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
5020 .main_clk = "wd_timer3_fck",
5023 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
5026 .slaves = omap44xx_wd_timer3_slaves,
5027 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
5028 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
5031 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
5034 &omap44xx_dmm_hwmod,
5037 &omap44xx_emif_fw_hwmod,
5040 &omap44xx_l3_instr_hwmod,
5041 &omap44xx_l3_main_1_hwmod,
5042 &omap44xx_l3_main_2_hwmod,
5043 &omap44xx_l3_main_3_hwmod,
5046 &omap44xx_l4_abe_hwmod,
5047 &omap44xx_l4_cfg_hwmod,
5048 &omap44xx_l4_per_hwmod,
5049 &omap44xx_l4_wkup_hwmod,
5052 &omap44xx_mpu_private_hwmod,
5055 /* &omap44xx_aess_hwmod, */
5058 &omap44xx_bandgap_hwmod,
5061 /* &omap44xx_counter_32k_hwmod, */
5064 &omap44xx_dma_system_hwmod,
5067 &omap44xx_dmic_hwmod,
5070 &omap44xx_dsp_hwmod,
5071 &omap44xx_dsp_c0_hwmod,
5074 &omap44xx_dss_hwmod,
5075 &omap44xx_dss_dispc_hwmod,
5076 &omap44xx_dss_dsi1_hwmod,
5077 &omap44xx_dss_dsi2_hwmod,
5078 &omap44xx_dss_hdmi_hwmod,
5079 &omap44xx_dss_rfbi_hwmod,
5080 &omap44xx_dss_venc_hwmod,
5083 &omap44xx_gpio1_hwmod,
5084 &omap44xx_gpio2_hwmod,
5085 &omap44xx_gpio3_hwmod,
5086 &omap44xx_gpio4_hwmod,
5087 &omap44xx_gpio5_hwmod,
5088 &omap44xx_gpio6_hwmod,
5091 /* &omap44xx_hsi_hwmod, */
5094 &omap44xx_i2c1_hwmod,
5095 &omap44xx_i2c2_hwmod,
5096 &omap44xx_i2c3_hwmod,
5097 &omap44xx_i2c4_hwmod,
5100 &omap44xx_ipu_hwmod,
5101 &omap44xx_ipu_c0_hwmod,
5102 &omap44xx_ipu_c1_hwmod,
5105 /* &omap44xx_iss_hwmod, */
5108 &omap44xx_iva_hwmod,
5109 &omap44xx_iva_seq0_hwmod,
5110 &omap44xx_iva_seq1_hwmod,
5113 &omap44xx_kbd_hwmod,
5116 &omap44xx_mailbox_hwmod,
5119 &omap44xx_mcbsp1_hwmod,
5120 &omap44xx_mcbsp2_hwmod,
5121 &omap44xx_mcbsp3_hwmod,
5122 &omap44xx_mcbsp4_hwmod,
5125 /* &omap44xx_mcpdm_hwmod, */
5128 &omap44xx_mcspi1_hwmod,
5129 &omap44xx_mcspi2_hwmod,
5130 &omap44xx_mcspi3_hwmod,
5131 &omap44xx_mcspi4_hwmod,
5134 &omap44xx_mmc1_hwmod,
5135 &omap44xx_mmc2_hwmod,
5136 &omap44xx_mmc3_hwmod,
5137 &omap44xx_mmc4_hwmod,
5138 &omap44xx_mmc5_hwmod,
5141 &omap44xx_mpu_hwmod,
5143 /* smartreflex class */
5144 &omap44xx_smartreflex_core_hwmod,
5145 &omap44xx_smartreflex_iva_hwmod,
5146 &omap44xx_smartreflex_mpu_hwmod,
5148 /* spinlock class */
5149 &omap44xx_spinlock_hwmod,
5152 &omap44xx_timer1_hwmod,
5153 &omap44xx_timer2_hwmod,
5154 &omap44xx_timer3_hwmod,
5155 &omap44xx_timer4_hwmod,
5156 &omap44xx_timer5_hwmod,
5157 &omap44xx_timer6_hwmod,
5158 &omap44xx_timer7_hwmod,
5159 &omap44xx_timer8_hwmod,
5160 &omap44xx_timer9_hwmod,
5161 &omap44xx_timer10_hwmod,
5162 &omap44xx_timer11_hwmod,
5165 &omap44xx_uart1_hwmod,
5166 &omap44xx_uart2_hwmod,
5167 &omap44xx_uart3_hwmod,
5168 &omap44xx_uart4_hwmod,
5170 /* usb_otg_hs class */
5171 &omap44xx_usb_otg_hs_hwmod,
5173 /* wd_timer class */
5174 &omap44xx_wd_timer2_hwmod,
5175 &omap44xx_wd_timer3_hwmod,
5180 int __init omap44xx_hwmod_init(void)
5182 return omap_hwmod_register(omap44xx_hwmods);