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,
102 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
103 .master = &omap44xx_mpu_hwmod,
104 .slave = &omap44xx_dmm_hwmod,
106 .addr = 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 },
121 static struct omap_hwmod omap44xx_dmm_hwmod = {
123 .class = &omap44xx_dmm_hwmod_class,
124 .slaves = omap44xx_dmm_slaves,
125 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
126 .mpu_irqs = 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
156 /* l4_cfg -> emif_fw */
157 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
158 .master = &omap44xx_l4_cfg_hwmod,
159 .slave = &omap44xx_emif_fw_hwmod,
161 .addr = 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 },
274 static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
276 .pa_start = 0x44000000,
277 .pa_end = 0x44000fff,
278 .flags = ADDR_TYPE_RT,
283 /* mpu -> l3_main_1 */
284 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
285 .master = &omap44xx_mpu_hwmod,
286 .slave = &omap44xx_l3_main_1_hwmod,
288 .addr = omap44xx_l3_main_1_addrs,
289 .user = OCP_USER_MPU | OCP_USER_SDMA,
292 /* l3_main_1 slave ports */
293 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
294 &omap44xx_dsp__l3_main_1,
295 &omap44xx_dss__l3_main_1,
296 &omap44xx_l3_main_2__l3_main_1,
297 &omap44xx_l4_cfg__l3_main_1,
298 &omap44xx_mmc1__l3_main_1,
299 &omap44xx_mmc2__l3_main_1,
300 &omap44xx_mpu__l3_main_1,
303 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
305 .class = &omap44xx_l3_hwmod_class,
306 .mpu_irqs = 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,
362 /* l3_main_1 -> l3_main_2 */
363 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
364 .master = &omap44xx_l3_main_1_hwmod,
365 .slave = &omap44xx_l3_main_2_hwmod,
367 .addr = 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,
417 /* l3_main_1 -> l3_main_3 */
418 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
419 .master = &omap44xx_l3_main_1_hwmod,
420 .slave = &omap44xx_l3_main_3_hwmod,
422 .addr = 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 .sysc_fields = &omap_hwmod_sysc_type2,
667 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
669 .sysc = &omap44xx_aess_sysc,
673 static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
674 { .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
704 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
705 .master = &omap44xx_l4_abe_hwmod,
706 .slave = &omap44xx_aess_hwmod,
707 .clk = "ocp_abe_iclk",
708 .addr = 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
721 /* l4_abe -> aess (dma) */
722 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
723 .master = &omap44xx_l4_abe_hwmod,
724 .slave = &omap44xx_aess_hwmod,
725 .clk = "ocp_abe_iclk",
726 .addr = 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 .sdma_reqs = omap44xx_aess_sdma_reqs,
741 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_aess_sdma_reqs),
742 .main_clk = "aess_fck",
745 .clkctrl_reg = OMAP4430_CM1_ABE_AESS_CLKCTRL,
748 .slaves = omap44xx_aess_slaves,
749 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
750 .masters = omap44xx_aess_masters,
751 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
752 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
757 * bangap reference for ldo regulators
760 static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
765 static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
766 { .role = "fclk", .clk = "bandgap_fclk" },
769 static struct omap_hwmod omap44xx_bandgap_hwmod = {
771 .class = &omap44xx_bandgap_hwmod_class,
774 .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
777 .opt_clks = bandgap_opt_clks,
778 .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
779 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
784 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
787 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
790 .sysc_flags = SYSC_HAS_SIDLEMODE,
791 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
793 .sysc_fields = &omap_hwmod_sysc_type1,
796 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
798 .sysc = &omap44xx_counter_sysc,
802 static struct omap_hwmod omap44xx_counter_32k_hwmod;
803 static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
805 .pa_start = 0x4a304000,
806 .pa_end = 0x4a30401f,
807 .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 .user = OCP_USER_MPU | OCP_USER_SDMA,
821 /* counter_32k slave ports */
822 static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
823 &omap44xx_l4_wkup__counter_32k,
826 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
827 .name = "counter_32k",
828 .class = &omap44xx_counter_hwmod_class,
829 .flags = HWMOD_SWSUP_SIDLE,
830 .main_clk = "sys_32k_ck",
833 .clkctrl_reg = OMAP4430_CM_WKUP_SYNCTIMER_CLKCTRL,
836 .slaves = omap44xx_counter_32k_slaves,
837 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
838 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
843 * dma controller for data exchange between memory to memory (i.e. internal or
844 * external memory) and gp peripherals to memory or memory to gp peripherals
847 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
851 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
852 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
853 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
854 SYSS_HAS_RESET_STATUS),
855 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
856 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
857 .sysc_fields = &omap_hwmod_sysc_type1,
860 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
862 .sysc = &omap44xx_dma_sysc,
866 static struct omap_dma_dev_attr dma_dev_attr = {
867 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
868 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
873 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
874 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
875 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
876 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
877 { .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
895 /* l4_cfg -> dma_system */
896 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
897 .master = &omap44xx_l4_cfg_hwmod,
898 .slave = &omap44xx_dma_system_hwmod,
900 .addr = 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 .main_clk = "l3_div_ck",
916 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
919 .dev_attr = &dma_dev_attr,
920 .slaves = omap44xx_dma_system_slaves,
921 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
922 .masters = omap44xx_dma_system_masters,
923 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
924 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
929 * digital microphone controller
932 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
935 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
936 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
937 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
939 .sysc_fields = &omap_hwmod_sysc_type2,
942 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
944 .sysc = &omap44xx_dmic_sysc,
948 static struct omap_hwmod omap44xx_dmic_hwmod;
949 static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
950 { .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
968 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
969 .master = &omap44xx_l4_abe_hwmod,
970 .slave = &omap44xx_dmic_hwmod,
971 .clk = "ocp_abe_iclk",
972 .addr = 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
985 /* l4_abe -> dmic (dma) */
986 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
987 .master = &omap44xx_l4_abe_hwmod,
988 .slave = &omap44xx_dmic_hwmod,
989 .clk = "ocp_abe_iclk",
990 .addr = 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 .sdma_reqs = omap44xx_dmic_sdma_reqs,
1005 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dmic_sdma_reqs),
1006 .main_clk = "dmic_fck",
1009 .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
1012 .slaves = omap44xx_dmic_slaves,
1013 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
1014 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1022 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
1027 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
1028 { .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 .rst_lines = omap44xx_dsp_resets,
1087 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1088 .main_clk = "dsp_fck",
1091 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
1092 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1095 .slaves = omap44xx_dsp_slaves,
1096 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1097 .masters = omap44xx_dsp_masters,
1098 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
1099 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1104 * display sub-system
1107 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1109 .syss_offs = 0x0014,
1110 .sysc_flags = SYSS_HAS_RESET_STATUS,
1113 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1115 .sysc = &omap44xx_dss_sysc,
1119 /* dss master ports */
1120 static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1121 &omap44xx_dss__l3_main_1,
1124 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1126 .pa_start = 0x58000000,
1127 .pa_end = 0x5800007f,
1128 .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 .user = OCP_USER_SDMA,
1142 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1144 .pa_start = 0x48040000,
1145 .pa_end = 0x4804007f,
1146 .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 .user = OCP_USER_MPU,
1160 /* dss slave ports */
1161 static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1162 &omap44xx_l3_main_2__dss,
1163 &omap44xx_l4_per__dss,
1166 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1167 { .role = "sys_clk", .clk = "dss_sys_clk" },
1168 { .role = "tv_clk", .clk = "dss_tv_clk" },
1169 { .role = "dss_clk", .clk = "dss_dss_clk" },
1170 { .role = "video_clk", .clk = "dss_48mhz_clk" },
1173 static struct omap_hwmod omap44xx_dss_hwmod = {
1175 .class = &omap44xx_dss_hwmod_class,
1176 .main_clk = "dss_fck",
1179 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1182 .opt_clks = dss_opt_clks,
1183 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1184 .slaves = omap44xx_dss_slaves,
1185 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1186 .masters = omap44xx_dss_masters,
1187 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
1188 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1193 * display controller
1196 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1198 .sysc_offs = 0x0010,
1199 .syss_offs = 0x0014,
1200 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1201 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1202 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1203 SYSS_HAS_RESET_STATUS),
1204 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1205 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1206 .sysc_fields = &omap_hwmod_sysc_type1,
1209 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1211 .sysc = &omap44xx_dispc_sysc,
1215 static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1216 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1217 { .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
1234 /* l3_main_2 -> dss_dispc */
1235 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1236 .master = &omap44xx_l3_main_2_hwmod,
1237 .slave = &omap44xx_dss_dispc_hwmod,
1239 .addr = 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
1252 /* l4_per -> dss_dispc */
1253 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1254 .master = &omap44xx_l4_per_hwmod,
1255 .slave = &omap44xx_dss_dispc_hwmod,
1257 .addr = 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 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
1272 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
1273 .main_clk = "dss_fck",
1276 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1279 .slaves = omap44xx_dss_dispc_slaves,
1280 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
1281 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1286 * display serial interface controller
1289 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1291 .sysc_offs = 0x0010,
1292 .syss_offs = 0x0014,
1293 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1294 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1295 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1296 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1297 .sysc_fields = &omap_hwmod_sysc_type1,
1300 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1302 .sysc = &omap44xx_dsi_sysc,
1306 static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1307 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1308 { .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
1325 /* l3_main_2 -> dss_dsi1 */
1326 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1327 .master = &omap44xx_l3_main_2_hwmod,
1328 .slave = &omap44xx_dss_dsi1_hwmod,
1330 .addr = 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
1343 /* l4_per -> dss_dsi1 */
1344 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1345 .master = &omap44xx_l4_per_hwmod,
1346 .slave = &omap44xx_dss_dsi1_hwmod,
1348 .addr = 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 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
1363 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
1364 .main_clk = "dss_fck",
1367 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1370 .slaves = omap44xx_dss_dsi1_slaves,
1371 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
1372 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1376 static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1377 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1378 { .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
1395 /* l3_main_2 -> dss_dsi2 */
1396 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1397 .master = &omap44xx_l3_main_2_hwmod,
1398 .slave = &omap44xx_dss_dsi2_hwmod,
1400 .addr = 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
1413 /* l4_per -> dss_dsi2 */
1414 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1415 .master = &omap44xx_l4_per_hwmod,
1416 .slave = &omap44xx_dss_dsi2_hwmod,
1418 .addr = 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 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
1433 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
1434 .main_clk = "dss_fck",
1437 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1440 .slaves = omap44xx_dss_dsi2_slaves,
1441 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
1442 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1450 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1452 .sysc_offs = 0x0010,
1453 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1454 SYSC_HAS_SOFTRESET),
1455 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1457 .sysc_fields = &omap_hwmod_sysc_type2,
1460 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1462 .sysc = &omap44xx_hdmi_sysc,
1466 static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1467 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1468 { .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
1485 /* l3_main_2 -> dss_hdmi */
1486 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1487 .master = &omap44xx_l3_main_2_hwmod,
1488 .slave = &omap44xx_dss_hdmi_hwmod,
1490 .addr = 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
1503 /* l4_per -> dss_hdmi */
1504 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1505 .master = &omap44xx_l4_per_hwmod,
1506 .slave = &omap44xx_dss_hdmi_hwmod,
1508 .addr = 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 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
1523 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
1524 .main_clk = "dss_fck",
1527 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1530 .slaves = omap44xx_dss_hdmi_slaves,
1531 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
1532 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1537 * remote frame buffer interface
1540 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1542 .sysc_offs = 0x0010,
1543 .syss_offs = 0x0014,
1544 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1545 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1546 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1547 .sysc_fields = &omap_hwmod_sysc_type1,
1550 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1552 .sysc = &omap44xx_rfbi_sysc,
1556 static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1557 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1558 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
1561 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1563 .pa_start = 0x58002000,
1564 .pa_end = 0x580020ff,
1565 .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 .user = OCP_USER_SDMA,
1579 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1581 .pa_start = 0x48042000,
1582 .pa_end = 0x480420ff,
1583 .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 .user = OCP_USER_MPU,
1597 /* dss_rfbi slave ports */
1598 static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1599 &omap44xx_l3_main_2__dss_rfbi,
1600 &omap44xx_l4_per__dss_rfbi,
1603 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1605 .class = &omap44xx_rfbi_hwmod_class,
1606 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
1607 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
1608 .main_clk = "dss_fck",
1611 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1614 .slaves = omap44xx_dss_rfbi_slaves,
1615 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
1616 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1624 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1629 static struct omap_hwmod omap44xx_dss_venc_hwmod;
1630 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1632 .pa_start = 0x58003000,
1633 .pa_end = 0x580030ff,
1634 .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 .user = OCP_USER_SDMA,
1648 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1650 .pa_start = 0x48043000,
1651 .pa_end = 0x480430ff,
1652 .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 .user = OCP_USER_MPU,
1666 /* dss_venc slave ports */
1667 static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1668 &omap44xx_l3_main_2__dss_venc,
1669 &omap44xx_l4_per__dss_venc,
1672 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1674 .class = &omap44xx_venc_hwmod_class,
1675 .main_clk = "dss_fck",
1678 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1681 .slaves = omap44xx_dss_venc_slaves,
1682 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
1683 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1688 * general purpose io module
1691 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1693 .sysc_offs = 0x0010,
1694 .syss_offs = 0x0114,
1695 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1696 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1697 SYSS_HAS_RESET_STATUS),
1698 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1700 .sysc_fields = &omap_hwmod_sysc_type1,
1703 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1705 .sysc = &omap44xx_gpio_sysc,
1710 static struct omap_gpio_dev_attr gpio_dev_attr = {
1716 static struct omap_hwmod omap44xx_gpio1_hwmod;
1717 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1718 { .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
1731 /* l4_wkup -> gpio1 */
1732 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1733 .master = &omap44xx_l4_wkup_hwmod,
1734 .slave = &omap44xx_gpio1_hwmod,
1735 .clk = "l4_wkup_clk_mux_ck",
1736 .addr = 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 .main_clk = "gpio1_ick",
1756 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1759 .opt_clks = gpio1_opt_clks,
1760 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1761 .dev_attr = &gpio_dev_attr,
1762 .slaves = omap44xx_gpio1_slaves,
1763 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
1764 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1768 static struct omap_hwmod omap44xx_gpio2_hwmod;
1769 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1770 { .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
1783 /* l4_per -> gpio2 */
1784 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1785 .master = &omap44xx_l4_per_hwmod,
1786 .slave = &omap44xx_gpio2_hwmod,
1788 .addr = 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 .main_clk = "gpio2_ick",
1809 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1812 .opt_clks = gpio2_opt_clks,
1813 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1814 .dev_attr = &gpio_dev_attr,
1815 .slaves = omap44xx_gpio2_slaves,
1816 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
1817 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1821 static struct omap_hwmod omap44xx_gpio3_hwmod;
1822 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1823 { .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
1836 /* l4_per -> gpio3 */
1837 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1838 .master = &omap44xx_l4_per_hwmod,
1839 .slave = &omap44xx_gpio3_hwmod,
1841 .addr = 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 .main_clk = "gpio3_ick",
1862 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1865 .opt_clks = gpio3_opt_clks,
1866 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1867 .dev_attr = &gpio_dev_attr,
1868 .slaves = omap44xx_gpio3_slaves,
1869 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
1870 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1874 static struct omap_hwmod omap44xx_gpio4_hwmod;
1875 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1876 { .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
1889 /* l4_per -> gpio4 */
1890 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
1891 .master = &omap44xx_l4_per_hwmod,
1892 .slave = &omap44xx_gpio4_hwmod,
1894 .addr = 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 .main_clk = "gpio4_ick",
1915 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1918 .opt_clks = gpio4_opt_clks,
1919 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1920 .dev_attr = &gpio_dev_attr,
1921 .slaves = omap44xx_gpio4_slaves,
1922 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
1923 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1927 static struct omap_hwmod omap44xx_gpio5_hwmod;
1928 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1929 { .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
1942 /* l4_per -> gpio5 */
1943 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
1944 .master = &omap44xx_l4_per_hwmod,
1945 .slave = &omap44xx_gpio5_hwmod,
1947 .addr = 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 .main_clk = "gpio5_ick",
1968 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1971 .opt_clks = gpio5_opt_clks,
1972 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1973 .dev_attr = &gpio_dev_attr,
1974 .slaves = omap44xx_gpio5_slaves,
1975 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1976 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1980 static struct omap_hwmod omap44xx_gpio6_hwmod;
1981 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1982 { .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
1995 /* l4_per -> gpio6 */
1996 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1997 .master = &omap44xx_l4_per_hwmod,
1998 .slave = &omap44xx_gpio6_hwmod,
2000 .addr = 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 .main_clk = "gpio6_ick",
2021 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
2024 .opt_clks = gpio6_opt_clks,
2025 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2026 .dev_attr = &gpio_dev_attr,
2027 .slaves = omap44xx_gpio6_slaves,
2028 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
2029 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2034 * mipi high-speed synchronous serial interface (multichannel and full-duplex
2038 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2040 .sysc_offs = 0x0010,
2041 .syss_offs = 0x0014,
2042 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2043 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2044 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2045 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2046 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2048 .sysc_fields = &omap_hwmod_sysc_type1,
2051 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2053 .sysc = &omap44xx_hsi_sysc,
2057 static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2058 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2059 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2060 { .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
2079 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2080 .master = &omap44xx_l4_cfg_hwmod,
2081 .slave = &omap44xx_hsi_hwmod,
2083 .addr = 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 .main_clk = "hsi_fck",
2099 .clkctrl_reg = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
2102 .slaves = omap44xx_hsi_slaves,
2103 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2104 .masters = omap44xx_hsi_masters,
2105 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
2106 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2111 * multimaster high-speed i2c controller
2114 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2115 .sysc_offs = 0x0010,
2116 .syss_offs = 0x0090,
2117 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2118 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2119 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2120 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2122 .sysc_fields = &omap_hwmod_sysc_type1,
2125 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
2127 .sysc = &omap44xx_i2c_sysc,
2131 static struct omap_hwmod omap44xx_i2c1_hwmod;
2132 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2133 { .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
2151 /* l4_per -> i2c1 */
2152 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2153 .master = &omap44xx_l4_per_hwmod,
2154 .slave = &omap44xx_i2c1_hwmod,
2156 .addr = 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 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
2171 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
2172 .main_clk = "i2c1_fck",
2175 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
2178 .slaves = omap44xx_i2c1_slaves,
2179 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2180 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2184 static struct omap_hwmod omap44xx_i2c2_hwmod;
2185 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2186 { .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
2204 /* l4_per -> i2c2 */
2205 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2206 .master = &omap44xx_l4_per_hwmod,
2207 .slave = &omap44xx_i2c2_hwmod,
2209 .addr = 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 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
2224 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
2225 .main_clk = "i2c2_fck",
2228 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
2231 .slaves = omap44xx_i2c2_slaves,
2232 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2233 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2237 static struct omap_hwmod omap44xx_i2c3_hwmod;
2238 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2239 { .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
2257 /* l4_per -> i2c3 */
2258 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2259 .master = &omap44xx_l4_per_hwmod,
2260 .slave = &omap44xx_i2c3_hwmod,
2262 .addr = 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 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
2277 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
2278 .main_clk = "i2c3_fck",
2281 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
2284 .slaves = omap44xx_i2c3_slaves,
2285 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2286 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2290 static struct omap_hwmod omap44xx_i2c4_hwmod;
2291 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2292 { .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
2310 /* l4_per -> i2c4 */
2311 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2312 .master = &omap44xx_l4_per_hwmod,
2313 .slave = &omap44xx_i2c4_hwmod,
2315 .addr = 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 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
2330 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
2331 .main_clk = "i2c4_fck",
2334 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
2337 .slaves = omap44xx_i2c4_slaves,
2338 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2339 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2344 * imaging processor unit
2347 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2352 static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2353 { .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 .rst_lines = omap44xx_ipu_resets,
2422 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2423 .main_clk = "ipu_fck",
2426 .clkctrl_reg = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
2427 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2430 .slaves = omap44xx_ipu_slaves,
2431 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2432 .masters = omap44xx_ipu_masters,
2433 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
2434 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2439 * external images sensor pixel data processor
2442 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2444 .sysc_offs = 0x0010,
2445 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2446 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2447 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2448 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2450 .sysc_fields = &omap_hwmod_sysc_type2,
2453 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2455 .sysc = &omap44xx_iss_sysc,
2459 static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2460 { .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
2485 /* l3_main_2 -> iss */
2486 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2487 .master = &omap44xx_l3_main_2_hwmod,
2488 .slave = &omap44xx_iss_hwmod,
2490 .addr = 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 .sdma_reqs = omap44xx_iss_sdma_reqs,
2508 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_iss_sdma_reqs),
2509 .main_clk = "iss_fck",
2512 .clkctrl_reg = OMAP4430_CM_CAM_ISS_CLKCTRL,
2515 .opt_clks = iss_opt_clks,
2516 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2517 .slaves = omap44xx_iss_slaves,
2518 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2519 .masters = omap44xx_iss_masters,
2520 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
2521 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2526 * multi-standard video encoder/decoder hardware accelerator
2529 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
2534 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2535 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2536 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2537 { .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
2568 /* l3_main_2 -> iva */
2569 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2570 .master = &omap44xx_l3_main_2_hwmod,
2571 .slave = &omap44xx_iva_hwmod,
2573 .addr = 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 .rst_lines = omap44xx_iva_resets,
2618 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2619 .main_clk = "iva_fck",
2622 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
2623 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2626 .slaves = omap44xx_iva_slaves,
2627 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2628 .masters = omap44xx_iva_masters,
2629 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
2630 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2635 * keyboard controller
2638 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2640 .sysc_offs = 0x0010,
2641 .syss_offs = 0x0014,
2642 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2643 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2644 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2645 SYSS_HAS_RESET_STATUS),
2646 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2647 .sysc_fields = &omap_hwmod_sysc_type1,
2650 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2652 .sysc = &omap44xx_kbd_sysc,
2656 static struct omap_hwmod omap44xx_kbd_hwmod;
2657 static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2658 { .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
2671 /* l4_wkup -> kbd */
2672 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2673 .master = &omap44xx_l4_wkup_hwmod,
2674 .slave = &omap44xx_kbd_hwmod,
2675 .clk = "l4_wkup_clk_mux_ck",
2676 .addr = 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 .main_clk = "kbd_fck",
2692 .clkctrl_reg = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
2695 .slaves = omap44xx_kbd_slaves,
2696 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
2697 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2702 * mailbox module allowing communication between the on-chip processors using a
2703 * queued mailbox-interrupt mechanism.
2706 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2708 .sysc_offs = 0x0010,
2709 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2710 SYSC_HAS_SOFTRESET),
2711 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2712 .sysc_fields = &omap_hwmod_sysc_type2,
2715 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2717 .sysc = &omap44xx_mailbox_sysc,
2721 static struct omap_hwmod omap44xx_mailbox_hwmod;
2722 static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2723 { .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
2736 /* l4_cfg -> mailbox */
2737 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2738 .master = &omap44xx_l4_cfg_hwmod,
2739 .slave = &omap44xx_mailbox_hwmod,
2741 .addr = 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,
2756 .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
2759 .slaves = omap44xx_mailbox_slaves,
2760 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
2761 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2766 * multi channel buffered serial port controller
2769 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2770 .sysc_offs = 0x008c,
2771 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2772 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2773 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2774 .sysc_fields = &omap_hwmod_sysc_type1,
2777 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2779 .sysc = &omap44xx_mcbsp_sysc,
2780 .rev = MCBSP_CONFIG_TYPE4,
2784 static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2785 static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2786 { .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
2805 /* l4_abe -> mcbsp1 */
2806 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2807 .master = &omap44xx_l4_abe_hwmod,
2808 .slave = &omap44xx_mcbsp1_hwmod,
2809 .clk = "ocp_abe_iclk",
2810 .addr = 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
2824 /* l4_abe -> mcbsp1 (dma) */
2825 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2826 .master = &omap44xx_l4_abe_hwmod,
2827 .slave = &omap44xx_mcbsp1_hwmod,
2828 .clk = "ocp_abe_iclk",
2829 .addr = 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 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
2844 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_sdma_reqs),
2845 .main_clk = "mcbsp1_fck",
2848 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
2851 .slaves = omap44xx_mcbsp1_slaves,
2852 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
2853 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2857 static struct omap_hwmod omap44xx_mcbsp2_hwmod;
2858 static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
2859 { .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
2878 /* l4_abe -> mcbsp2 */
2879 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2880 .master = &omap44xx_l4_abe_hwmod,
2881 .slave = &omap44xx_mcbsp2_hwmod,
2882 .clk = "ocp_abe_iclk",
2883 .addr = 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
2897 /* l4_abe -> mcbsp2 (dma) */
2898 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
2899 .master = &omap44xx_l4_abe_hwmod,
2900 .slave = &omap44xx_mcbsp2_hwmod,
2901 .clk = "ocp_abe_iclk",
2902 .addr = 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 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
2917 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_sdma_reqs),
2918 .main_clk = "mcbsp2_fck",
2921 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
2924 .slaves = omap44xx_mcbsp2_slaves,
2925 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
2926 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2930 static struct omap_hwmod omap44xx_mcbsp3_hwmod;
2931 static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
2932 { .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
2951 /* l4_abe -> mcbsp3 */
2952 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
2953 .master = &omap44xx_l4_abe_hwmod,
2954 .slave = &omap44xx_mcbsp3_hwmod,
2955 .clk = "ocp_abe_iclk",
2956 .addr = 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
2970 /* l4_abe -> mcbsp3 (dma) */
2971 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
2972 .master = &omap44xx_l4_abe_hwmod,
2973 .slave = &omap44xx_mcbsp3_hwmod,
2974 .clk = "ocp_abe_iclk",
2975 .addr = 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 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
2990 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_sdma_reqs),
2991 .main_clk = "mcbsp3_fck",
2994 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
2997 .slaves = omap44xx_mcbsp3_slaves,
2998 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
2999 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3003 static struct omap_hwmod omap44xx_mcbsp4_hwmod;
3004 static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
3005 { .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
3023 /* l4_per -> mcbsp4 */
3024 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3025 .master = &omap44xx_l4_per_hwmod,
3026 .slave = &omap44xx_mcbsp4_hwmod,
3028 .addr = 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 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
3042 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_sdma_reqs),
3043 .main_clk = "mcbsp4_fck",
3046 .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
3049 .slaves = omap44xx_mcbsp4_slaves,
3050 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
3051 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3056 * multi channel pdm controller (proprietary interface with phoenix power
3060 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3062 .sysc_offs = 0x0010,
3063 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3064 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3065 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3067 .sysc_fields = &omap_hwmod_sysc_type2,
3070 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3072 .sysc = &omap44xx_mcpdm_sysc,
3076 static struct omap_hwmod omap44xx_mcpdm_hwmod;
3077 static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3078 { .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
3096 /* l4_abe -> mcpdm */
3097 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3098 .master = &omap44xx_l4_abe_hwmod,
3099 .slave = &omap44xx_mcpdm_hwmod,
3100 .clk = "ocp_abe_iclk",
3101 .addr = 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
3114 /* l4_abe -> mcpdm (dma) */
3115 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3116 .master = &omap44xx_l4_abe_hwmod,
3117 .slave = &omap44xx_mcpdm_hwmod,
3118 .clk = "ocp_abe_iclk",
3119 .addr = 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 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
3134 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_sdma_reqs),
3135 .main_clk = "mcpdm_fck",
3138 .clkctrl_reg = OMAP4430_CM1_ABE_PDM_CLKCTRL,
3141 .slaves = omap44xx_mcpdm_slaves,
3142 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
3143 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3148 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3152 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3154 .sysc_offs = 0x0010,
3155 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3156 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3157 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3159 .sysc_fields = &omap_hwmod_sysc_type2,
3162 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3164 .sysc = &omap44xx_mcspi_sysc,
3165 .rev = OMAP4_MCSPI_REV,
3169 static struct omap_hwmod omap44xx_mcspi1_hwmod;
3170 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3171 { .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
3195 /* l4_per -> mcspi1 */
3196 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3197 .master = &omap44xx_l4_per_hwmod,
3198 .slave = &omap44xx_mcspi1_hwmod,
3200 .addr = 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 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
3219 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
3220 .main_clk = "mcspi1_fck",
3223 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
3226 .dev_attr = &mcspi1_dev_attr,
3227 .slaves = omap44xx_mcspi1_slaves,
3228 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
3229 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3233 static struct omap_hwmod omap44xx_mcspi2_hwmod;
3234 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3235 { .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
3255 /* l4_per -> mcspi2 */
3256 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3257 .master = &omap44xx_l4_per_hwmod,
3258 .slave = &omap44xx_mcspi2_hwmod,
3260 .addr = 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 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
3279 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
3280 .main_clk = "mcspi2_fck",
3283 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
3286 .dev_attr = &mcspi2_dev_attr,
3287 .slaves = omap44xx_mcspi2_slaves,
3288 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
3289 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3293 static struct omap_hwmod omap44xx_mcspi3_hwmod;
3294 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3295 { .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
3315 /* l4_per -> mcspi3 */
3316 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3317 .master = &omap44xx_l4_per_hwmod,
3318 .slave = &omap44xx_mcspi3_hwmod,
3320 .addr = 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 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
3339 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
3340 .main_clk = "mcspi3_fck",
3343 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
3346 .dev_attr = &mcspi3_dev_attr,
3347 .slaves = omap44xx_mcspi3_slaves,
3348 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
3349 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3353 static struct omap_hwmod omap44xx_mcspi4_hwmod;
3354 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3355 { .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
3373 /* l4_per -> mcspi4 */
3374 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3375 .master = &omap44xx_l4_per_hwmod,
3376 .slave = &omap44xx_mcspi4_hwmod,
3378 .addr = 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 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
3397 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
3398 .main_clk = "mcspi4_fck",
3401 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
3404 .dev_attr = &mcspi4_dev_attr,
3405 .slaves = omap44xx_mcspi4_slaves,
3406 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
3407 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3412 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3415 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3417 .sysc_offs = 0x0010,
3418 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3419 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3420 SYSC_HAS_SOFTRESET),
3421 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3422 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3424 .sysc_fields = &omap_hwmod_sysc_type2,
3427 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3429 .sysc = &omap44xx_mmc_sysc,
3434 static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3435 { .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
3458 /* l4_per -> mmc1 */
3459 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3460 .master = &omap44xx_l4_per_hwmod,
3461 .slave = &omap44xx_mmc1_hwmod,
3463 .addr = 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 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
3482 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc1_sdma_reqs),
3483 .main_clk = "mmc1_fck",
3486 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
3489 .dev_attr = &mmc1_dev_attr,
3490 .slaves = omap44xx_mmc1_slaves,
3491 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3492 .masters = omap44xx_mmc1_masters,
3493 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
3494 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3498 static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3499 { .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
3522 /* l4_per -> mmc2 */
3523 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3524 .master = &omap44xx_l4_per_hwmod,
3525 .slave = &omap44xx_mmc2_hwmod,
3527 .addr = 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 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
3541 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc2_sdma_reqs),
3542 .main_clk = "mmc2_fck",
3545 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
3548 .slaves = omap44xx_mmc2_slaves,
3549 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3550 .masters = omap44xx_mmc2_masters,
3551 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
3552 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3556 static struct omap_hwmod omap44xx_mmc3_hwmod;
3557 static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3558 { .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
3576 /* l4_per -> mmc3 */
3577 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3578 .master = &omap44xx_l4_per_hwmod,
3579 .slave = &omap44xx_mmc3_hwmod,
3581 .addr = 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 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
3595 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc3_sdma_reqs),
3596 .main_clk = "mmc3_fck",
3599 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
3602 .slaves = omap44xx_mmc3_slaves,
3603 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
3604 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3608 static struct omap_hwmod omap44xx_mmc4_hwmod;
3609 static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3610 { .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
3628 /* l4_per -> mmc4 */
3629 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3630 .master = &omap44xx_l4_per_hwmod,
3631 .slave = &omap44xx_mmc4_hwmod,
3633 .addr = 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,
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 },
3667 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3668 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3669 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
3672 static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3674 .pa_start = 0x480d5000,
3675 .pa_end = 0x480d53ff,
3676 .flags = ADDR_TYPE_RT
3681 /* l4_per -> mmc5 */
3682 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3683 .master = &omap44xx_l4_per_hwmod,
3684 .slave = &omap44xx_mmc5_hwmod,
3686 .addr = omap44xx_mmc5_addrs,
3687 .user = OCP_USER_MPU | OCP_USER_SDMA,
3690 /* mmc5 slave ports */
3691 static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3692 &omap44xx_l4_per__mmc5,
3695 static struct omap_hwmod omap44xx_mmc5_hwmod = {
3697 .class = &omap44xx_mmc_hwmod_class,
3698 .mpu_irqs = 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 },
3729 /* mpu master ports */
3730 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3731 &omap44xx_mpu__l3_main_1,
3732 &omap44xx_mpu__l4_abe,
3736 static struct omap_hwmod omap44xx_mpu_hwmod = {
3738 .class = &omap44xx_mpu_hwmod_class,
3739 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
3740 .mpu_irqs = 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 },
3785 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3787 .pa_start = 0x4a0dd000,
3788 .pa_end = 0x4a0dd03f,
3789 .flags = ADDR_TYPE_RT
3794 /* l4_cfg -> smartreflex_core */
3795 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3796 .master = &omap44xx_l4_cfg_hwmod,
3797 .slave = &omap44xx_smartreflex_core_hwmod,
3799 .addr = omap44xx_smartreflex_core_addrs,
3800 .user = OCP_USER_MPU | OCP_USER_SDMA,
3803 /* smartreflex_core slave ports */
3804 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3805 &omap44xx_l4_cfg__smartreflex_core,
3808 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3809 .name = "smartreflex_core",
3810 .class = &omap44xx_smartreflex_hwmod_class,
3811 .mpu_irqs = omap44xx_smartreflex_core_irqs,
3813 .main_clk = "smartreflex_core_fck",
3817 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
3820 .slaves = omap44xx_smartreflex_core_slaves,
3821 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
3822 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3825 /* smartreflex_iva */
3826 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
3827 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3828 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
3832 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
3834 .pa_start = 0x4a0db000,
3835 .pa_end = 0x4a0db03f,
3836 .flags = ADDR_TYPE_RT
3841 /* l4_cfg -> smartreflex_iva */
3842 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3843 .master = &omap44xx_l4_cfg_hwmod,
3844 .slave = &omap44xx_smartreflex_iva_hwmod,
3846 .addr = omap44xx_smartreflex_iva_addrs,
3847 .user = OCP_USER_MPU | OCP_USER_SDMA,
3850 /* smartreflex_iva slave ports */
3851 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
3852 &omap44xx_l4_cfg__smartreflex_iva,
3855 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3856 .name = "smartreflex_iva",
3857 .class = &omap44xx_smartreflex_hwmod_class,
3858 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
3859 .main_clk = "smartreflex_iva_fck",
3863 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
3866 .slaves = omap44xx_smartreflex_iva_slaves,
3867 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
3868 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3871 /* smartreflex_mpu */
3872 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
3873 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3874 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
3878 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
3880 .pa_start = 0x4a0d9000,
3881 .pa_end = 0x4a0d903f,
3882 .flags = ADDR_TYPE_RT
3887 /* l4_cfg -> smartreflex_mpu */
3888 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3889 .master = &omap44xx_l4_cfg_hwmod,
3890 .slave = &omap44xx_smartreflex_mpu_hwmod,
3892 .addr = omap44xx_smartreflex_mpu_addrs,
3893 .user = OCP_USER_MPU | OCP_USER_SDMA,
3896 /* smartreflex_mpu slave ports */
3897 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
3898 &omap44xx_l4_cfg__smartreflex_mpu,
3901 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3902 .name = "smartreflex_mpu",
3903 .class = &omap44xx_smartreflex_hwmod_class,
3904 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
3905 .main_clk = "smartreflex_mpu_fck",
3909 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
3912 .slaves = omap44xx_smartreflex_mpu_slaves,
3913 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
3914 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3919 * spinlock provides hardware assistance for synchronizing the processes
3920 * running on multiple processors
3923 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3925 .sysc_offs = 0x0010,
3926 .syss_offs = 0x0014,
3927 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3928 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3929 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3930 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3932 .sysc_fields = &omap_hwmod_sysc_type1,
3935 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3937 .sysc = &omap44xx_spinlock_sysc,
3941 static struct omap_hwmod omap44xx_spinlock_hwmod;
3942 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
3944 .pa_start = 0x4a0f6000,
3945 .pa_end = 0x4a0f6fff,
3946 .flags = ADDR_TYPE_RT
3951 /* l4_cfg -> spinlock */
3952 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3953 .master = &omap44xx_l4_cfg_hwmod,
3954 .slave = &omap44xx_spinlock_hwmod,
3956 .addr = omap44xx_spinlock_addrs,
3957 .user = OCP_USER_MPU | OCP_USER_SDMA,
3960 /* spinlock slave ports */
3961 static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
3962 &omap44xx_l4_cfg__spinlock,
3965 static struct omap_hwmod omap44xx_spinlock_hwmod = {
3967 .class = &omap44xx_spinlock_hwmod_class,
3970 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
3973 .slaves = omap44xx_spinlock_slaves,
3974 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
3975 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3980 * general purpose timer module with accurate 1ms tick
3981 * This class contains several variants: ['timer_1ms', 'timer']
3984 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3986 .sysc_offs = 0x0010,
3987 .syss_offs = 0x0014,
3988 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3989 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3990 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3991 SYSS_HAS_RESET_STATUS),
3992 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3993 .sysc_fields = &omap_hwmod_sysc_type1,
3996 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3998 .sysc = &omap44xx_timer_1ms_sysc,
4001 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
4003 .sysc_offs = 0x0010,
4004 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
4005 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
4006 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4008 .sysc_fields = &omap_hwmod_sysc_type2,
4011 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
4013 .sysc = &omap44xx_timer_sysc,
4017 static struct omap_hwmod omap44xx_timer1_hwmod;
4018 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
4019 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
4023 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
4025 .pa_start = 0x4a318000,
4026 .pa_end = 0x4a31807f,
4027 .flags = ADDR_TYPE_RT
4032 /* l4_wkup -> timer1 */
4033 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4034 .master = &omap44xx_l4_wkup_hwmod,
4035 .slave = &omap44xx_timer1_hwmod,
4036 .clk = "l4_wkup_clk_mux_ck",
4037 .addr = omap44xx_timer1_addrs,
4038 .user = OCP_USER_MPU | OCP_USER_SDMA,
4041 /* timer1 slave ports */
4042 static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
4043 &omap44xx_l4_wkup__timer1,
4046 static struct omap_hwmod omap44xx_timer1_hwmod = {
4048 .class = &omap44xx_timer_1ms_hwmod_class,
4049 .mpu_irqs = omap44xx_timer1_irqs,
4050 .main_clk = "timer1_fck",
4053 .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
4056 .slaves = omap44xx_timer1_slaves,
4057 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
4058 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4062 static struct omap_hwmod omap44xx_timer2_hwmod;
4063 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4064 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
4068 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4070 .pa_start = 0x48032000,
4071 .pa_end = 0x4803207f,
4072 .flags = ADDR_TYPE_RT
4077 /* l4_per -> timer2 */
4078 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4079 .master = &omap44xx_l4_per_hwmod,
4080 .slave = &omap44xx_timer2_hwmod,
4082 .addr = omap44xx_timer2_addrs,
4083 .user = OCP_USER_MPU | OCP_USER_SDMA,
4086 /* timer2 slave ports */
4087 static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4088 &omap44xx_l4_per__timer2,
4091 static struct omap_hwmod omap44xx_timer2_hwmod = {
4093 .class = &omap44xx_timer_1ms_hwmod_class,
4094 .mpu_irqs = omap44xx_timer2_irqs,
4095 .main_clk = "timer2_fck",
4098 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
4101 .slaves = omap44xx_timer2_slaves,
4102 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
4103 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4107 static struct omap_hwmod omap44xx_timer3_hwmod;
4108 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4109 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
4113 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4115 .pa_start = 0x48034000,
4116 .pa_end = 0x4803407f,
4117 .flags = ADDR_TYPE_RT
4122 /* l4_per -> timer3 */
4123 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4124 .master = &omap44xx_l4_per_hwmod,
4125 .slave = &omap44xx_timer3_hwmod,
4127 .addr = omap44xx_timer3_addrs,
4128 .user = OCP_USER_MPU | OCP_USER_SDMA,
4131 /* timer3 slave ports */
4132 static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4133 &omap44xx_l4_per__timer3,
4136 static struct omap_hwmod omap44xx_timer3_hwmod = {
4138 .class = &omap44xx_timer_hwmod_class,
4139 .mpu_irqs = omap44xx_timer3_irqs,
4140 .main_clk = "timer3_fck",
4143 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
4146 .slaves = omap44xx_timer3_slaves,
4147 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
4148 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4152 static struct omap_hwmod omap44xx_timer4_hwmod;
4153 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4154 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
4158 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4160 .pa_start = 0x48036000,
4161 .pa_end = 0x4803607f,
4162 .flags = ADDR_TYPE_RT
4167 /* l4_per -> timer4 */
4168 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4169 .master = &omap44xx_l4_per_hwmod,
4170 .slave = &omap44xx_timer4_hwmod,
4172 .addr = omap44xx_timer4_addrs,
4173 .user = OCP_USER_MPU | OCP_USER_SDMA,
4176 /* timer4 slave ports */
4177 static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4178 &omap44xx_l4_per__timer4,
4181 static struct omap_hwmod omap44xx_timer4_hwmod = {
4183 .class = &omap44xx_timer_hwmod_class,
4184 .mpu_irqs = omap44xx_timer4_irqs,
4185 .main_clk = "timer4_fck",
4188 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
4191 .slaves = omap44xx_timer4_slaves,
4192 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
4193 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4197 static struct omap_hwmod omap44xx_timer5_hwmod;
4198 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4199 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
4203 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4205 .pa_start = 0x40138000,
4206 .pa_end = 0x4013807f,
4207 .flags = ADDR_TYPE_RT
4212 /* l4_abe -> timer5 */
4213 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4214 .master = &omap44xx_l4_abe_hwmod,
4215 .slave = &omap44xx_timer5_hwmod,
4216 .clk = "ocp_abe_iclk",
4217 .addr = omap44xx_timer5_addrs,
4218 .user = OCP_USER_MPU,
4221 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4223 .pa_start = 0x49038000,
4224 .pa_end = 0x4903807f,
4225 .flags = ADDR_TYPE_RT
4230 /* l4_abe -> timer5 (dma) */
4231 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4232 .master = &omap44xx_l4_abe_hwmod,
4233 .slave = &omap44xx_timer5_hwmod,
4234 .clk = "ocp_abe_iclk",
4235 .addr = omap44xx_timer5_dma_addrs,
4236 .user = OCP_USER_SDMA,
4239 /* timer5 slave ports */
4240 static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4241 &omap44xx_l4_abe__timer5,
4242 &omap44xx_l4_abe__timer5_dma,
4245 static struct omap_hwmod omap44xx_timer5_hwmod = {
4247 .class = &omap44xx_timer_hwmod_class,
4248 .mpu_irqs = omap44xx_timer5_irqs,
4249 .main_clk = "timer5_fck",
4252 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
4255 .slaves = omap44xx_timer5_slaves,
4256 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
4257 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4261 static struct omap_hwmod omap44xx_timer6_hwmod;
4262 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4263 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
4267 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4269 .pa_start = 0x4013a000,
4270 .pa_end = 0x4013a07f,
4271 .flags = ADDR_TYPE_RT
4276 /* l4_abe -> timer6 */
4277 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4278 .master = &omap44xx_l4_abe_hwmod,
4279 .slave = &omap44xx_timer6_hwmod,
4280 .clk = "ocp_abe_iclk",
4281 .addr = omap44xx_timer6_addrs,
4282 .user = OCP_USER_MPU,
4285 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4287 .pa_start = 0x4903a000,
4288 .pa_end = 0x4903a07f,
4289 .flags = ADDR_TYPE_RT
4294 /* l4_abe -> timer6 (dma) */
4295 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4296 .master = &omap44xx_l4_abe_hwmod,
4297 .slave = &omap44xx_timer6_hwmod,
4298 .clk = "ocp_abe_iclk",
4299 .addr = omap44xx_timer6_dma_addrs,
4300 .user = OCP_USER_SDMA,
4303 /* timer6 slave ports */
4304 static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4305 &omap44xx_l4_abe__timer6,
4306 &omap44xx_l4_abe__timer6_dma,
4309 static struct omap_hwmod omap44xx_timer6_hwmod = {
4311 .class = &omap44xx_timer_hwmod_class,
4312 .mpu_irqs = omap44xx_timer6_irqs,
4314 .main_clk = "timer6_fck",
4317 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
4320 .slaves = omap44xx_timer6_slaves,
4321 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
4322 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4326 static struct omap_hwmod omap44xx_timer7_hwmod;
4327 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4328 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
4332 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4334 .pa_start = 0x4013c000,
4335 .pa_end = 0x4013c07f,
4336 .flags = ADDR_TYPE_RT
4341 /* l4_abe -> timer7 */
4342 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4343 .master = &omap44xx_l4_abe_hwmod,
4344 .slave = &omap44xx_timer7_hwmod,
4345 .clk = "ocp_abe_iclk",
4346 .addr = omap44xx_timer7_addrs,
4347 .user = OCP_USER_MPU,
4350 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4352 .pa_start = 0x4903c000,
4353 .pa_end = 0x4903c07f,
4354 .flags = ADDR_TYPE_RT
4359 /* l4_abe -> timer7 (dma) */
4360 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4361 .master = &omap44xx_l4_abe_hwmod,
4362 .slave = &omap44xx_timer7_hwmod,
4363 .clk = "ocp_abe_iclk",
4364 .addr = omap44xx_timer7_dma_addrs,
4365 .user = OCP_USER_SDMA,
4368 /* timer7 slave ports */
4369 static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4370 &omap44xx_l4_abe__timer7,
4371 &omap44xx_l4_abe__timer7_dma,
4374 static struct omap_hwmod omap44xx_timer7_hwmod = {
4376 .class = &omap44xx_timer_hwmod_class,
4377 .mpu_irqs = omap44xx_timer7_irqs,
4378 .main_clk = "timer7_fck",
4381 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
4384 .slaves = omap44xx_timer7_slaves,
4385 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
4386 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4390 static struct omap_hwmod omap44xx_timer8_hwmod;
4391 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4392 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
4396 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4398 .pa_start = 0x4013e000,
4399 .pa_end = 0x4013e07f,
4400 .flags = ADDR_TYPE_RT
4405 /* l4_abe -> timer8 */
4406 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4407 .master = &omap44xx_l4_abe_hwmod,
4408 .slave = &omap44xx_timer8_hwmod,
4409 .clk = "ocp_abe_iclk",
4410 .addr = omap44xx_timer8_addrs,
4411 .user = OCP_USER_MPU,
4414 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4416 .pa_start = 0x4903e000,
4417 .pa_end = 0x4903e07f,
4418 .flags = ADDR_TYPE_RT
4423 /* l4_abe -> timer8 (dma) */
4424 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4425 .master = &omap44xx_l4_abe_hwmod,
4426 .slave = &omap44xx_timer8_hwmod,
4427 .clk = "ocp_abe_iclk",
4428 .addr = omap44xx_timer8_dma_addrs,
4429 .user = OCP_USER_SDMA,
4432 /* timer8 slave ports */
4433 static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4434 &omap44xx_l4_abe__timer8,
4435 &omap44xx_l4_abe__timer8_dma,
4438 static struct omap_hwmod omap44xx_timer8_hwmod = {
4440 .class = &omap44xx_timer_hwmod_class,
4441 .mpu_irqs = omap44xx_timer8_irqs,
4442 .main_clk = "timer8_fck",
4445 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
4448 .slaves = omap44xx_timer8_slaves,
4449 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
4450 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4454 static struct omap_hwmod omap44xx_timer9_hwmod;
4455 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4456 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
4460 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4462 .pa_start = 0x4803e000,
4463 .pa_end = 0x4803e07f,
4464 .flags = ADDR_TYPE_RT
4469 /* l4_per -> timer9 */
4470 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4471 .master = &omap44xx_l4_per_hwmod,
4472 .slave = &omap44xx_timer9_hwmod,
4474 .addr = omap44xx_timer9_addrs,
4475 .user = OCP_USER_MPU | OCP_USER_SDMA,
4478 /* timer9 slave ports */
4479 static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4480 &omap44xx_l4_per__timer9,
4483 static struct omap_hwmod omap44xx_timer9_hwmod = {
4485 .class = &omap44xx_timer_hwmod_class,
4486 .mpu_irqs = omap44xx_timer9_irqs,
4487 .main_clk = "timer9_fck",
4490 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
4493 .slaves = omap44xx_timer9_slaves,
4494 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
4495 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4499 static struct omap_hwmod omap44xx_timer10_hwmod;
4500 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4501 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
4505 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4507 .pa_start = 0x48086000,
4508 .pa_end = 0x4808607f,
4509 .flags = ADDR_TYPE_RT
4514 /* l4_per -> timer10 */
4515 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4516 .master = &omap44xx_l4_per_hwmod,
4517 .slave = &omap44xx_timer10_hwmod,
4519 .addr = omap44xx_timer10_addrs,
4520 .user = OCP_USER_MPU | OCP_USER_SDMA,
4523 /* timer10 slave ports */
4524 static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4525 &omap44xx_l4_per__timer10,
4528 static struct omap_hwmod omap44xx_timer10_hwmod = {
4530 .class = &omap44xx_timer_1ms_hwmod_class,
4531 .mpu_irqs = omap44xx_timer10_irqs,
4532 .main_clk = "timer10_fck",
4535 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
4538 .slaves = omap44xx_timer10_slaves,
4539 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
4540 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4544 static struct omap_hwmod omap44xx_timer11_hwmod;
4545 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4546 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
4550 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4552 .pa_start = 0x48088000,
4553 .pa_end = 0x4808807f,
4554 .flags = ADDR_TYPE_RT
4559 /* l4_per -> timer11 */
4560 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4561 .master = &omap44xx_l4_per_hwmod,
4562 .slave = &omap44xx_timer11_hwmod,
4564 .addr = omap44xx_timer11_addrs,
4565 .user = OCP_USER_MPU | OCP_USER_SDMA,
4568 /* timer11 slave ports */
4569 static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4570 &omap44xx_l4_per__timer11,
4573 static struct omap_hwmod omap44xx_timer11_hwmod = {
4575 .class = &omap44xx_timer_hwmod_class,
4576 .mpu_irqs = omap44xx_timer11_irqs,
4577 .main_clk = "timer11_fck",
4580 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
4583 .slaves = omap44xx_timer11_slaves,
4584 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
4585 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4590 * universal asynchronous receiver/transmitter (uart)
4593 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4595 .sysc_offs = 0x0054,
4596 .syss_offs = 0x0058,
4597 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4598 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4599 SYSS_HAS_RESET_STATUS),
4600 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4602 .sysc_fields = &omap_hwmod_sysc_type1,
4605 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
4607 .sysc = &omap44xx_uart_sysc,
4611 static struct omap_hwmod omap44xx_uart1_hwmod;
4612 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4613 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
4617 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4618 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4619 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
4622 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4624 .pa_start = 0x4806a000,
4625 .pa_end = 0x4806a0ff,
4626 .flags = ADDR_TYPE_RT
4631 /* l4_per -> uart1 */
4632 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4633 .master = &omap44xx_l4_per_hwmod,
4634 .slave = &omap44xx_uart1_hwmod,
4636 .addr = omap44xx_uart1_addrs,
4637 .user = OCP_USER_MPU | OCP_USER_SDMA,
4640 /* uart1 slave ports */
4641 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4642 &omap44xx_l4_per__uart1,
4645 static struct omap_hwmod omap44xx_uart1_hwmod = {
4647 .class = &omap44xx_uart_hwmod_class,
4648 .mpu_irqs = omap44xx_uart1_irqs,
4649 .sdma_reqs = omap44xx_uart1_sdma_reqs,
4650 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
4651 .main_clk = "uart1_fck",
4654 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
4657 .slaves = omap44xx_uart1_slaves,
4658 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
4659 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4663 static struct omap_hwmod omap44xx_uart2_hwmod;
4664 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4665 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
4669 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4670 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4671 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
4674 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4676 .pa_start = 0x4806c000,
4677 .pa_end = 0x4806c0ff,
4678 .flags = ADDR_TYPE_RT
4683 /* l4_per -> uart2 */
4684 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4685 .master = &omap44xx_l4_per_hwmod,
4686 .slave = &omap44xx_uart2_hwmod,
4688 .addr = omap44xx_uart2_addrs,
4689 .user = OCP_USER_MPU | OCP_USER_SDMA,
4692 /* uart2 slave ports */
4693 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4694 &omap44xx_l4_per__uart2,
4697 static struct omap_hwmod omap44xx_uart2_hwmod = {
4699 .class = &omap44xx_uart_hwmod_class,
4700 .mpu_irqs = omap44xx_uart2_irqs,
4701 .sdma_reqs = omap44xx_uart2_sdma_reqs,
4702 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
4703 .main_clk = "uart2_fck",
4706 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
4709 .slaves = omap44xx_uart2_slaves,
4710 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
4711 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4715 static struct omap_hwmod omap44xx_uart3_hwmod;
4716 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4717 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
4721 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4722 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4723 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
4726 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4728 .pa_start = 0x48020000,
4729 .pa_end = 0x480200ff,
4730 .flags = ADDR_TYPE_RT
4735 /* l4_per -> uart3 */
4736 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4737 .master = &omap44xx_l4_per_hwmod,
4738 .slave = &omap44xx_uart3_hwmod,
4740 .addr = omap44xx_uart3_addrs,
4741 .user = OCP_USER_MPU | OCP_USER_SDMA,
4744 /* uart3 slave ports */
4745 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4746 &omap44xx_l4_per__uart3,
4749 static struct omap_hwmod omap44xx_uart3_hwmod = {
4751 .class = &omap44xx_uart_hwmod_class,
4752 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
4753 .mpu_irqs = omap44xx_uart3_irqs,
4754 .sdma_reqs = omap44xx_uart3_sdma_reqs,
4755 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
4756 .main_clk = "uart3_fck",
4759 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
4762 .slaves = omap44xx_uart3_slaves,
4763 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
4764 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4768 static struct omap_hwmod omap44xx_uart4_hwmod;
4769 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
4770 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
4774 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
4775 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
4776 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
4779 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
4781 .pa_start = 0x4806e000,
4782 .pa_end = 0x4806e0ff,
4783 .flags = ADDR_TYPE_RT
4788 /* l4_per -> uart4 */
4789 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4790 .master = &omap44xx_l4_per_hwmod,
4791 .slave = &omap44xx_uart4_hwmod,
4793 .addr = omap44xx_uart4_addrs,
4794 .user = OCP_USER_MPU | OCP_USER_SDMA,
4797 /* uart4 slave ports */
4798 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
4799 &omap44xx_l4_per__uart4,
4802 static struct omap_hwmod omap44xx_uart4_hwmod = {
4804 .class = &omap44xx_uart_hwmod_class,
4805 .mpu_irqs = omap44xx_uart4_irqs,
4806 .sdma_reqs = omap44xx_uart4_sdma_reqs,
4807 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
4808 .main_clk = "uart4_fck",
4811 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
4814 .slaves = omap44xx_uart4_slaves,
4815 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
4816 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4820 * 'usb_otg_hs' class
4821 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
4824 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
4826 .sysc_offs = 0x0404,
4827 .syss_offs = 0x0408,
4828 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4829 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
4830 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4831 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4832 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
4834 .sysc_fields = &omap_hwmod_sysc_type1,
4837 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
4838 .name = "usb_otg_hs",
4839 .sysc = &omap44xx_usb_otg_hs_sysc,
4843 static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
4844 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
4845 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
4849 /* usb_otg_hs master ports */
4850 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
4851 &omap44xx_usb_otg_hs__l3_main_2,
4854 static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
4856 .pa_start = 0x4a0ab000,
4857 .pa_end = 0x4a0ab003,
4858 .flags = ADDR_TYPE_RT
4863 /* l4_cfg -> usb_otg_hs */
4864 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4865 .master = &omap44xx_l4_cfg_hwmod,
4866 .slave = &omap44xx_usb_otg_hs_hwmod,
4868 .addr = omap44xx_usb_otg_hs_addrs,
4869 .user = OCP_USER_MPU | OCP_USER_SDMA,
4872 /* usb_otg_hs slave ports */
4873 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
4874 &omap44xx_l4_cfg__usb_otg_hs,
4877 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
4878 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
4881 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
4882 .name = "usb_otg_hs",
4883 .class = &omap44xx_usb_otg_hs_hwmod_class,
4884 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
4885 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
4886 .main_clk = "usb_otg_hs_ick",
4889 .clkctrl_reg = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
4892 .opt_clks = usb_otg_hs_opt_clks,
4893 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
4894 .slaves = omap44xx_usb_otg_hs_slaves,
4895 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
4896 .masters = omap44xx_usb_otg_hs_masters,
4897 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
4898 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4903 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
4904 * overflow condition
4907 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
4909 .sysc_offs = 0x0010,
4910 .syss_offs = 0x0014,
4911 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
4912 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4913 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4915 .sysc_fields = &omap_hwmod_sysc_type1,
4918 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
4920 .sysc = &omap44xx_wd_timer_sysc,
4921 .pre_shutdown = &omap2_wd_timer_disable,
4925 static struct omap_hwmod omap44xx_wd_timer2_hwmod;
4926 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
4927 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
4931 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
4933 .pa_start = 0x4a314000,
4934 .pa_end = 0x4a31407f,
4935 .flags = ADDR_TYPE_RT
4940 /* l4_wkup -> wd_timer2 */
4941 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4942 .master = &omap44xx_l4_wkup_hwmod,
4943 .slave = &omap44xx_wd_timer2_hwmod,
4944 .clk = "l4_wkup_clk_mux_ck",
4945 .addr = omap44xx_wd_timer2_addrs,
4946 .user = OCP_USER_MPU | OCP_USER_SDMA,
4949 /* wd_timer2 slave ports */
4950 static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
4951 &omap44xx_l4_wkup__wd_timer2,
4954 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
4955 .name = "wd_timer2",
4956 .class = &omap44xx_wd_timer_hwmod_class,
4957 .mpu_irqs = omap44xx_wd_timer2_irqs,
4958 .main_clk = "wd_timer2_fck",
4961 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
4964 .slaves = omap44xx_wd_timer2_slaves,
4965 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
4966 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4970 static struct omap_hwmod omap44xx_wd_timer3_hwmod;
4971 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
4972 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
4976 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4978 .pa_start = 0x40130000,
4979 .pa_end = 0x4013007f,
4980 .flags = ADDR_TYPE_RT
4985 /* l4_abe -> wd_timer3 */
4986 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4987 .master = &omap44xx_l4_abe_hwmod,
4988 .slave = &omap44xx_wd_timer3_hwmod,
4989 .clk = "ocp_abe_iclk",
4990 .addr = omap44xx_wd_timer3_addrs,
4991 .user = OCP_USER_MPU,
4994 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4996 .pa_start = 0x49030000,
4997 .pa_end = 0x4903007f,
4998 .flags = ADDR_TYPE_RT
5003 /* l4_abe -> wd_timer3 (dma) */
5004 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
5005 .master = &omap44xx_l4_abe_hwmod,
5006 .slave = &omap44xx_wd_timer3_hwmod,
5007 .clk = "ocp_abe_iclk",
5008 .addr = omap44xx_wd_timer3_dma_addrs,
5009 .user = OCP_USER_SDMA,
5012 /* wd_timer3 slave ports */
5013 static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
5014 &omap44xx_l4_abe__wd_timer3,
5015 &omap44xx_l4_abe__wd_timer3_dma,
5018 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
5019 .name = "wd_timer3",
5020 .class = &omap44xx_wd_timer_hwmod_class,
5021 .mpu_irqs = omap44xx_wd_timer3_irqs,
5022 .main_clk = "wd_timer3_fck",
5025 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
5028 .slaves = omap44xx_wd_timer3_slaves,
5029 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
5030 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
5033 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
5036 &omap44xx_dmm_hwmod,
5039 &omap44xx_emif_fw_hwmod,
5042 &omap44xx_l3_instr_hwmod,
5043 &omap44xx_l3_main_1_hwmod,
5044 &omap44xx_l3_main_2_hwmod,
5045 &omap44xx_l3_main_3_hwmod,
5048 &omap44xx_l4_abe_hwmod,
5049 &omap44xx_l4_cfg_hwmod,
5050 &omap44xx_l4_per_hwmod,
5051 &omap44xx_l4_wkup_hwmod,
5054 &omap44xx_mpu_private_hwmod,
5057 /* &omap44xx_aess_hwmod, */
5060 &omap44xx_bandgap_hwmod,
5063 /* &omap44xx_counter_32k_hwmod, */
5066 &omap44xx_dma_system_hwmod,
5069 &omap44xx_dmic_hwmod,
5072 &omap44xx_dsp_hwmod,
5073 &omap44xx_dsp_c0_hwmod,
5076 &omap44xx_dss_hwmod,
5077 &omap44xx_dss_dispc_hwmod,
5078 &omap44xx_dss_dsi1_hwmod,
5079 &omap44xx_dss_dsi2_hwmod,
5080 &omap44xx_dss_hdmi_hwmod,
5081 &omap44xx_dss_rfbi_hwmod,
5082 &omap44xx_dss_venc_hwmod,
5085 &omap44xx_gpio1_hwmod,
5086 &omap44xx_gpio2_hwmod,
5087 &omap44xx_gpio3_hwmod,
5088 &omap44xx_gpio4_hwmod,
5089 &omap44xx_gpio5_hwmod,
5090 &omap44xx_gpio6_hwmod,
5093 /* &omap44xx_hsi_hwmod, */
5096 &omap44xx_i2c1_hwmod,
5097 &omap44xx_i2c2_hwmod,
5098 &omap44xx_i2c3_hwmod,
5099 &omap44xx_i2c4_hwmod,
5102 &omap44xx_ipu_hwmod,
5103 &omap44xx_ipu_c0_hwmod,
5104 &omap44xx_ipu_c1_hwmod,
5107 /* &omap44xx_iss_hwmod, */
5110 &omap44xx_iva_hwmod,
5111 &omap44xx_iva_seq0_hwmod,
5112 &omap44xx_iva_seq1_hwmod,
5115 &omap44xx_kbd_hwmod,
5118 &omap44xx_mailbox_hwmod,
5121 &omap44xx_mcbsp1_hwmod,
5122 &omap44xx_mcbsp2_hwmod,
5123 &omap44xx_mcbsp3_hwmod,
5124 &omap44xx_mcbsp4_hwmod,
5127 /* &omap44xx_mcpdm_hwmod, */
5130 &omap44xx_mcspi1_hwmod,
5131 &omap44xx_mcspi2_hwmod,
5132 &omap44xx_mcspi3_hwmod,
5133 &omap44xx_mcspi4_hwmod,
5136 &omap44xx_mmc1_hwmod,
5137 &omap44xx_mmc2_hwmod,
5138 &omap44xx_mmc3_hwmod,
5139 &omap44xx_mmc4_hwmod,
5140 &omap44xx_mmc5_hwmod,
5143 &omap44xx_mpu_hwmod,
5145 /* smartreflex class */
5146 &omap44xx_smartreflex_core_hwmod,
5147 &omap44xx_smartreflex_iva_hwmod,
5148 &omap44xx_smartreflex_mpu_hwmod,
5150 /* spinlock class */
5151 &omap44xx_spinlock_hwmod,
5154 &omap44xx_timer1_hwmod,
5155 &omap44xx_timer2_hwmod,
5156 &omap44xx_timer3_hwmod,
5157 &omap44xx_timer4_hwmod,
5158 &omap44xx_timer5_hwmod,
5159 &omap44xx_timer6_hwmod,
5160 &omap44xx_timer7_hwmod,
5161 &omap44xx_timer8_hwmod,
5162 &omap44xx_timer9_hwmod,
5163 &omap44xx_timer10_hwmod,
5164 &omap44xx_timer11_hwmod,
5167 &omap44xx_uart1_hwmod,
5168 &omap44xx_uart2_hwmod,
5169 &omap44xx_uart3_hwmod,
5170 &omap44xx_uart4_hwmod,
5172 /* usb_otg_hs class */
5173 &omap44xx_usb_otg_hs_hwmod,
5175 /* wd_timer class */
5176 &omap44xx_wd_timer2_hwmod,
5177 &omap44xx_wd_timer3_hwmod,
5182 int __init omap44xx_hwmod_init(void)
5184 return omap_hwmod_register(omap44xx_hwmods);