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>
30 #include "omap_hwmod_common_data.h"
35 #include "prm-regbits-44xx.h"
38 /* Base offset for all OMAP4 interrupts external to MPUSS */
39 #define OMAP44XX_IRQ_GIC_START 32
41 /* Base offset for all OMAP4 dma requests */
42 #define OMAP44XX_DMA_REQ_START 1
44 /* Backward references (IPs with Bus Master capability) */
45 static struct omap_hwmod omap44xx_aess_hwmod;
46 static struct omap_hwmod omap44xx_dma_system_hwmod;
47 static struct omap_hwmod omap44xx_dmm_hwmod;
48 static struct omap_hwmod omap44xx_dsp_hwmod;
49 static struct omap_hwmod omap44xx_dss_hwmod;
50 static struct omap_hwmod omap44xx_emif_fw_hwmod;
51 static struct omap_hwmod omap44xx_hsi_hwmod;
52 static struct omap_hwmod omap44xx_ipu_hwmod;
53 static struct omap_hwmod omap44xx_iss_hwmod;
54 static struct omap_hwmod omap44xx_iva_hwmod;
55 static struct omap_hwmod omap44xx_l3_instr_hwmod;
56 static struct omap_hwmod omap44xx_l3_main_1_hwmod;
57 static struct omap_hwmod omap44xx_l3_main_2_hwmod;
58 static struct omap_hwmod omap44xx_l3_main_3_hwmod;
59 static struct omap_hwmod omap44xx_l4_abe_hwmod;
60 static struct omap_hwmod omap44xx_l4_cfg_hwmod;
61 static struct omap_hwmod omap44xx_l4_per_hwmod;
62 static struct omap_hwmod omap44xx_l4_wkup_hwmod;
63 static struct omap_hwmod omap44xx_mmc1_hwmod;
64 static struct omap_hwmod omap44xx_mmc2_hwmod;
65 static struct omap_hwmod omap44xx_mpu_hwmod;
66 static struct omap_hwmod omap44xx_mpu_private_hwmod;
67 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
70 * Interconnects omap_hwmod structures
71 * hwmods that compose the global OMAP interconnect
78 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
82 /* dmm interface data */
83 /* l3_main_1 -> dmm */
84 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
85 .master = &omap44xx_l3_main_1_hwmod,
86 .slave = &omap44xx_dmm_hwmod,
88 .user = OCP_USER_SDMA,
91 static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
93 .pa_start = 0x4e000000,
100 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
101 .master = &omap44xx_mpu_hwmod,
102 .slave = &omap44xx_dmm_hwmod,
104 .addr = omap44xx_dmm_addrs,
105 .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
106 .user = OCP_USER_MPU,
109 /* dmm slave ports */
110 static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
111 &omap44xx_l3_main_1__dmm,
115 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
116 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
119 static struct omap_hwmod omap44xx_dmm_hwmod = {
121 .class = &omap44xx_dmm_hwmod_class,
122 .slaves = omap44xx_dmm_slaves,
123 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
124 .mpu_irqs = omap44xx_dmm_irqs,
125 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
126 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
131 * instance(s): emif_fw
133 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
137 /* emif_fw interface data */
139 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
140 .master = &omap44xx_dmm_hwmod,
141 .slave = &omap44xx_emif_fw_hwmod,
143 .user = OCP_USER_MPU | OCP_USER_SDMA,
146 static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
148 .pa_start = 0x4a20c000,
149 .pa_end = 0x4a20c0ff,
150 .flags = ADDR_TYPE_RT
154 /* l4_cfg -> emif_fw */
155 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
156 .master = &omap44xx_l4_cfg_hwmod,
157 .slave = &omap44xx_emif_fw_hwmod,
159 .addr = omap44xx_emif_fw_addrs,
160 .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
161 .user = OCP_USER_MPU,
164 /* emif_fw slave ports */
165 static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
166 &omap44xx_dmm__emif_fw,
167 &omap44xx_l4_cfg__emif_fw,
170 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
172 .class = &omap44xx_emif_fw_hwmod_class,
173 .slaves = omap44xx_emif_fw_slaves,
174 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
175 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
180 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
182 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
186 /* l3_instr interface data */
187 /* iva -> l3_instr */
188 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
189 .master = &omap44xx_iva_hwmod,
190 .slave = &omap44xx_l3_instr_hwmod,
192 .user = OCP_USER_MPU | OCP_USER_SDMA,
195 /* l3_main_3 -> l3_instr */
196 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
197 .master = &omap44xx_l3_main_3_hwmod,
198 .slave = &omap44xx_l3_instr_hwmod,
200 .user = OCP_USER_MPU | OCP_USER_SDMA,
203 /* l3_instr slave ports */
204 static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
205 &omap44xx_iva__l3_instr,
206 &omap44xx_l3_main_3__l3_instr,
209 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
211 .class = &omap44xx_l3_hwmod_class,
212 .slaves = omap44xx_l3_instr_slaves,
213 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
214 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
217 /* l3_main_1 interface data */
218 /* dsp -> l3_main_1 */
219 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
220 .master = &omap44xx_dsp_hwmod,
221 .slave = &omap44xx_l3_main_1_hwmod,
223 .user = OCP_USER_MPU | OCP_USER_SDMA,
226 /* dss -> l3_main_1 */
227 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
228 .master = &omap44xx_dss_hwmod,
229 .slave = &omap44xx_l3_main_1_hwmod,
231 .user = OCP_USER_MPU | OCP_USER_SDMA,
234 /* l3_main_2 -> l3_main_1 */
235 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
236 .master = &omap44xx_l3_main_2_hwmod,
237 .slave = &omap44xx_l3_main_1_hwmod,
239 .user = OCP_USER_MPU | OCP_USER_SDMA,
242 /* l4_cfg -> l3_main_1 */
243 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
244 .master = &omap44xx_l4_cfg_hwmod,
245 .slave = &omap44xx_l3_main_1_hwmod,
247 .user = OCP_USER_MPU | OCP_USER_SDMA,
250 /* mmc1 -> l3_main_1 */
251 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
252 .master = &omap44xx_mmc1_hwmod,
253 .slave = &omap44xx_l3_main_1_hwmod,
255 .user = OCP_USER_MPU | OCP_USER_SDMA,
258 /* mmc2 -> l3_main_1 */
259 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
260 .master = &omap44xx_mmc2_hwmod,
261 .slave = &omap44xx_l3_main_1_hwmod,
263 .user = OCP_USER_MPU | OCP_USER_SDMA,
266 /* mpu -> l3_main_1 */
267 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
268 .master = &omap44xx_mpu_hwmod,
269 .slave = &omap44xx_l3_main_1_hwmod,
271 .user = OCP_USER_MPU | OCP_USER_SDMA,
274 /* l3_main_1 slave ports */
275 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
276 &omap44xx_dsp__l3_main_1,
277 &omap44xx_dss__l3_main_1,
278 &omap44xx_l3_main_2__l3_main_1,
279 &omap44xx_l4_cfg__l3_main_1,
280 &omap44xx_mmc1__l3_main_1,
281 &omap44xx_mmc2__l3_main_1,
282 &omap44xx_mpu__l3_main_1,
285 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
287 .class = &omap44xx_l3_hwmod_class,
288 .slaves = omap44xx_l3_main_1_slaves,
289 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
290 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
293 /* l3_main_2 interface data */
294 /* dma_system -> l3_main_2 */
295 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
296 .master = &omap44xx_dma_system_hwmod,
297 .slave = &omap44xx_l3_main_2_hwmod,
299 .user = OCP_USER_MPU | OCP_USER_SDMA,
302 /* hsi -> l3_main_2 */
303 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
304 .master = &omap44xx_hsi_hwmod,
305 .slave = &omap44xx_l3_main_2_hwmod,
307 .user = OCP_USER_MPU | OCP_USER_SDMA,
310 /* ipu -> l3_main_2 */
311 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
312 .master = &omap44xx_ipu_hwmod,
313 .slave = &omap44xx_l3_main_2_hwmod,
315 .user = OCP_USER_MPU | OCP_USER_SDMA,
318 /* iss -> l3_main_2 */
319 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
320 .master = &omap44xx_iss_hwmod,
321 .slave = &omap44xx_l3_main_2_hwmod,
323 .user = OCP_USER_MPU | OCP_USER_SDMA,
326 /* iva -> l3_main_2 */
327 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
328 .master = &omap44xx_iva_hwmod,
329 .slave = &omap44xx_l3_main_2_hwmod,
331 .user = OCP_USER_MPU | OCP_USER_SDMA,
334 /* l3_main_1 -> l3_main_2 */
335 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
336 .master = &omap44xx_l3_main_1_hwmod,
337 .slave = &omap44xx_l3_main_2_hwmod,
339 .user = OCP_USER_MPU | OCP_USER_SDMA,
342 /* l4_cfg -> l3_main_2 */
343 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
344 .master = &omap44xx_l4_cfg_hwmod,
345 .slave = &omap44xx_l3_main_2_hwmod,
347 .user = OCP_USER_MPU | OCP_USER_SDMA,
350 /* usb_otg_hs -> l3_main_2 */
351 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
352 .master = &omap44xx_usb_otg_hs_hwmod,
353 .slave = &omap44xx_l3_main_2_hwmod,
355 .user = OCP_USER_MPU | OCP_USER_SDMA,
358 /* l3_main_2 slave ports */
359 static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
360 &omap44xx_dma_system__l3_main_2,
361 &omap44xx_hsi__l3_main_2,
362 &omap44xx_ipu__l3_main_2,
363 &omap44xx_iss__l3_main_2,
364 &omap44xx_iva__l3_main_2,
365 &omap44xx_l3_main_1__l3_main_2,
366 &omap44xx_l4_cfg__l3_main_2,
367 &omap44xx_usb_otg_hs__l3_main_2,
370 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
372 .class = &omap44xx_l3_hwmod_class,
373 .slaves = omap44xx_l3_main_2_slaves,
374 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
375 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
378 /* l3_main_3 interface data */
379 /* l3_main_1 -> l3_main_3 */
380 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
381 .master = &omap44xx_l3_main_1_hwmod,
382 .slave = &omap44xx_l3_main_3_hwmod,
384 .user = OCP_USER_MPU | OCP_USER_SDMA,
387 /* l3_main_2 -> l3_main_3 */
388 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
389 .master = &omap44xx_l3_main_2_hwmod,
390 .slave = &omap44xx_l3_main_3_hwmod,
392 .user = OCP_USER_MPU | OCP_USER_SDMA,
395 /* l4_cfg -> l3_main_3 */
396 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
397 .master = &omap44xx_l4_cfg_hwmod,
398 .slave = &omap44xx_l3_main_3_hwmod,
400 .user = OCP_USER_MPU | OCP_USER_SDMA,
403 /* l3_main_3 slave ports */
404 static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
405 &omap44xx_l3_main_1__l3_main_3,
406 &omap44xx_l3_main_2__l3_main_3,
407 &omap44xx_l4_cfg__l3_main_3,
410 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
412 .class = &omap44xx_l3_hwmod_class,
413 .slaves = omap44xx_l3_main_3_slaves,
414 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
415 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
420 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
422 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
426 /* l4_abe interface data */
428 static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
429 .master = &omap44xx_aess_hwmod,
430 .slave = &omap44xx_l4_abe_hwmod,
431 .clk = "ocp_abe_iclk",
432 .user = OCP_USER_MPU | OCP_USER_SDMA,
436 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
437 .master = &omap44xx_dsp_hwmod,
438 .slave = &omap44xx_l4_abe_hwmod,
439 .clk = "ocp_abe_iclk",
440 .user = OCP_USER_MPU | OCP_USER_SDMA,
443 /* l3_main_1 -> l4_abe */
444 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
445 .master = &omap44xx_l3_main_1_hwmod,
446 .slave = &omap44xx_l4_abe_hwmod,
448 .user = OCP_USER_MPU | OCP_USER_SDMA,
452 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
453 .master = &omap44xx_mpu_hwmod,
454 .slave = &omap44xx_l4_abe_hwmod,
455 .clk = "ocp_abe_iclk",
456 .user = OCP_USER_MPU | OCP_USER_SDMA,
459 /* l4_abe slave ports */
460 static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
461 &omap44xx_aess__l4_abe,
462 &omap44xx_dsp__l4_abe,
463 &omap44xx_l3_main_1__l4_abe,
464 &omap44xx_mpu__l4_abe,
467 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
469 .class = &omap44xx_l4_hwmod_class,
470 .slaves = omap44xx_l4_abe_slaves,
471 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
472 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
475 /* l4_cfg interface data */
476 /* l3_main_1 -> l4_cfg */
477 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
478 .master = &omap44xx_l3_main_1_hwmod,
479 .slave = &omap44xx_l4_cfg_hwmod,
481 .user = OCP_USER_MPU | OCP_USER_SDMA,
484 /* l4_cfg slave ports */
485 static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
486 &omap44xx_l3_main_1__l4_cfg,
489 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
491 .class = &omap44xx_l4_hwmod_class,
492 .slaves = omap44xx_l4_cfg_slaves,
493 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
494 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
497 /* l4_per interface data */
498 /* l3_main_2 -> l4_per */
499 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
500 .master = &omap44xx_l3_main_2_hwmod,
501 .slave = &omap44xx_l4_per_hwmod,
503 .user = OCP_USER_MPU | OCP_USER_SDMA,
506 /* l4_per slave ports */
507 static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
508 &omap44xx_l3_main_2__l4_per,
511 static struct omap_hwmod omap44xx_l4_per_hwmod = {
513 .class = &omap44xx_l4_hwmod_class,
514 .slaves = omap44xx_l4_per_slaves,
515 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
516 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
519 /* l4_wkup interface data */
520 /* l4_cfg -> l4_wkup */
521 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
522 .master = &omap44xx_l4_cfg_hwmod,
523 .slave = &omap44xx_l4_wkup_hwmod,
525 .user = OCP_USER_MPU | OCP_USER_SDMA,
528 /* l4_wkup slave ports */
529 static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
530 &omap44xx_l4_cfg__l4_wkup,
533 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
535 .class = &omap44xx_l4_hwmod_class,
536 .slaves = omap44xx_l4_wkup_slaves,
537 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
538 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
543 * instance(s): mpu_private
545 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
549 /* mpu_private interface data */
550 /* mpu -> mpu_private */
551 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
552 .master = &omap44xx_mpu_hwmod,
553 .slave = &omap44xx_mpu_private_hwmod,
555 .user = OCP_USER_MPU | OCP_USER_SDMA,
558 /* mpu_private slave ports */
559 static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
560 &omap44xx_mpu__mpu_private,
563 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
564 .name = "mpu_private",
565 .class = &omap44xx_mpu_bus_hwmod_class,
566 .slaves = omap44xx_mpu_private_slaves,
567 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
568 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
572 * Modules omap_hwmod structures
574 * The following IPs are excluded for the moment because:
575 * - They do not need an explicit SW control using omap_hwmod API.
576 * - They still need to be validated with the driver
577 * properly adapted to omap_hwmod / omap_device
584 * ctrl_module_pad_core
585 * ctrl_module_pad_wkup
616 * audio engine sub system
619 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
622 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
623 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
624 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
625 .sysc_fields = &omap_hwmod_sysc_type2,
628 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
630 .sysc = &omap44xx_aess_sysc,
634 static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
635 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
638 static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
639 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
640 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
641 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
642 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
643 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
644 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
645 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
646 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
649 /* aess master ports */
650 static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
651 &omap44xx_aess__l4_abe,
654 static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
656 .pa_start = 0x401f1000,
657 .pa_end = 0x401f13ff,
658 .flags = ADDR_TYPE_RT
663 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
664 .master = &omap44xx_l4_abe_hwmod,
665 .slave = &omap44xx_aess_hwmod,
666 .clk = "ocp_abe_iclk",
667 .addr = omap44xx_aess_addrs,
668 .addr_cnt = ARRAY_SIZE(omap44xx_aess_addrs),
669 .user = OCP_USER_MPU,
672 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
674 .pa_start = 0x490f1000,
675 .pa_end = 0x490f13ff,
676 .flags = ADDR_TYPE_RT
680 /* l4_abe -> aess (dma) */
681 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
682 .master = &omap44xx_l4_abe_hwmod,
683 .slave = &omap44xx_aess_hwmod,
684 .clk = "ocp_abe_iclk",
685 .addr = omap44xx_aess_dma_addrs,
686 .addr_cnt = ARRAY_SIZE(omap44xx_aess_dma_addrs),
687 .user = OCP_USER_SDMA,
690 /* aess slave ports */
691 static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
692 &omap44xx_l4_abe__aess,
693 &omap44xx_l4_abe__aess_dma,
696 static struct omap_hwmod omap44xx_aess_hwmod = {
698 .class = &omap44xx_aess_hwmod_class,
699 .mpu_irqs = omap44xx_aess_irqs,
700 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_aess_irqs),
701 .sdma_reqs = omap44xx_aess_sdma_reqs,
702 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_aess_sdma_reqs),
703 .main_clk = "aess_fck",
706 .clkctrl_reg = OMAP4430_CM1_ABE_AESS_CLKCTRL,
709 .slaves = omap44xx_aess_slaves,
710 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
711 .masters = omap44xx_aess_masters,
712 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
713 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
718 * bangap reference for ldo regulators
721 static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
726 static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
727 { .role = "fclk", .clk = "bandgap_fclk" },
730 static struct omap_hwmod omap44xx_bandgap_hwmod = {
732 .class = &omap44xx_bandgap_hwmod_class,
735 .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
738 .opt_clks = bandgap_opt_clks,
739 .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
740 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
745 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
748 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
751 .sysc_flags = SYSC_HAS_SIDLEMODE,
752 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
754 .sysc_fields = &omap_hwmod_sysc_type1,
757 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
759 .sysc = &omap44xx_counter_sysc,
763 static struct omap_hwmod omap44xx_counter_32k_hwmod;
764 static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
766 .pa_start = 0x4a304000,
767 .pa_end = 0x4a30401f,
768 .flags = ADDR_TYPE_RT
772 /* l4_wkup -> counter_32k */
773 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
774 .master = &omap44xx_l4_wkup_hwmod,
775 .slave = &omap44xx_counter_32k_hwmod,
776 .clk = "l4_wkup_clk_mux_ck",
777 .addr = omap44xx_counter_32k_addrs,
778 .addr_cnt = ARRAY_SIZE(omap44xx_counter_32k_addrs),
779 .user = OCP_USER_MPU | OCP_USER_SDMA,
782 /* counter_32k slave ports */
783 static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
784 &omap44xx_l4_wkup__counter_32k,
787 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
788 .name = "counter_32k",
789 .class = &omap44xx_counter_hwmod_class,
790 .flags = HWMOD_SWSUP_SIDLE,
791 .main_clk = "sys_32k_ck",
794 .clkctrl_reg = OMAP4430_CM_WKUP_SYNCTIMER_CLKCTRL,
797 .slaves = omap44xx_counter_32k_slaves,
798 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
799 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
804 * dma controller for data exchange between memory to memory (i.e. internal or
805 * external memory) and gp peripherals to memory or memory to gp peripherals
808 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
812 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
813 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
814 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
815 SYSS_HAS_RESET_STATUS),
816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
817 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
818 .sysc_fields = &omap_hwmod_sysc_type1,
821 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
823 .sysc = &omap44xx_dma_sysc,
827 static struct omap_dma_dev_attr dma_dev_attr = {
828 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
829 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
834 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
835 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
836 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
837 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
838 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
841 /* dma_system master ports */
842 static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
843 &omap44xx_dma_system__l3_main_2,
846 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
848 .pa_start = 0x4a056000,
849 .pa_end = 0x4a0560ff,
850 .flags = ADDR_TYPE_RT
854 /* l4_cfg -> dma_system */
855 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
856 .master = &omap44xx_l4_cfg_hwmod,
857 .slave = &omap44xx_dma_system_hwmod,
859 .addr = omap44xx_dma_system_addrs,
860 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
861 .user = OCP_USER_MPU | OCP_USER_SDMA,
864 /* dma_system slave ports */
865 static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
866 &omap44xx_l4_cfg__dma_system,
869 static struct omap_hwmod omap44xx_dma_system_hwmod = {
870 .name = "dma_system",
871 .class = &omap44xx_dma_hwmod_class,
872 .mpu_irqs = omap44xx_dma_system_irqs,
873 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
874 .main_clk = "l3_div_ck",
877 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
880 .dev_attr = &dma_dev_attr,
881 .slaves = omap44xx_dma_system_slaves,
882 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
883 .masters = omap44xx_dma_system_masters,
884 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
885 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
890 * digital microphone controller
893 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
896 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
897 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
898 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
900 .sysc_fields = &omap_hwmod_sysc_type2,
903 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
905 .sysc = &omap44xx_dmic_sysc,
909 static struct omap_hwmod omap44xx_dmic_hwmod;
910 static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
911 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
914 static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
915 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
918 static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
920 .pa_start = 0x4012e000,
921 .pa_end = 0x4012e07f,
922 .flags = ADDR_TYPE_RT
927 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
928 .master = &omap44xx_l4_abe_hwmod,
929 .slave = &omap44xx_dmic_hwmod,
930 .clk = "ocp_abe_iclk",
931 .addr = omap44xx_dmic_addrs,
932 .addr_cnt = ARRAY_SIZE(omap44xx_dmic_addrs),
933 .user = OCP_USER_MPU,
936 static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
938 .pa_start = 0x4902e000,
939 .pa_end = 0x4902e07f,
940 .flags = ADDR_TYPE_RT
944 /* l4_abe -> dmic (dma) */
945 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
946 .master = &omap44xx_l4_abe_hwmod,
947 .slave = &omap44xx_dmic_hwmod,
948 .clk = "ocp_abe_iclk",
949 .addr = omap44xx_dmic_dma_addrs,
950 .addr_cnt = ARRAY_SIZE(omap44xx_dmic_dma_addrs),
951 .user = OCP_USER_SDMA,
954 /* dmic slave ports */
955 static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
956 &omap44xx_l4_abe__dmic,
957 &omap44xx_l4_abe__dmic_dma,
960 static struct omap_hwmod omap44xx_dmic_hwmod = {
962 .class = &omap44xx_dmic_hwmod_class,
963 .mpu_irqs = omap44xx_dmic_irqs,
964 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmic_irqs),
965 .sdma_reqs = omap44xx_dmic_sdma_reqs,
966 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dmic_sdma_reqs),
967 .main_clk = "dmic_fck",
970 .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
973 .slaves = omap44xx_dmic_slaves,
974 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
975 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
983 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
988 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
989 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
992 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
993 { .name = "mmu_cache", .rst_shift = 1 },
996 static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
997 { .name = "dsp", .rst_shift = 0 },
1001 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
1002 .master = &omap44xx_dsp_hwmod,
1003 .slave = &omap44xx_iva_hwmod,
1004 .clk = "dpll_iva_m5x2_ck",
1007 /* dsp master ports */
1008 static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
1009 &omap44xx_dsp__l3_main_1,
1010 &omap44xx_dsp__l4_abe,
1015 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
1016 .master = &omap44xx_l4_cfg_hwmod,
1017 .slave = &omap44xx_dsp_hwmod,
1019 .user = OCP_USER_MPU | OCP_USER_SDMA,
1022 /* dsp slave ports */
1023 static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
1024 &omap44xx_l4_cfg__dsp,
1027 /* Pseudo hwmod for reset control purpose only */
1028 static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
1030 .class = &omap44xx_dsp_hwmod_class,
1031 .flags = HWMOD_INIT_NO_RESET,
1032 .rst_lines = omap44xx_dsp_c0_resets,
1033 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
1036 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1039 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1042 static struct omap_hwmod omap44xx_dsp_hwmod = {
1044 .class = &omap44xx_dsp_hwmod_class,
1045 .mpu_irqs = omap44xx_dsp_irqs,
1046 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
1047 .rst_lines = omap44xx_dsp_resets,
1048 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1049 .main_clk = "dsp_fck",
1052 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
1053 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1056 .slaves = omap44xx_dsp_slaves,
1057 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1058 .masters = omap44xx_dsp_masters,
1059 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
1060 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1065 * display sub-system
1068 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1070 .syss_offs = 0x0014,
1071 .sysc_flags = SYSS_HAS_RESET_STATUS,
1074 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1076 .sysc = &omap44xx_dss_sysc,
1080 /* dss master ports */
1081 static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1082 &omap44xx_dss__l3_main_1,
1085 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1087 .pa_start = 0x58000000,
1088 .pa_end = 0x5800007f,
1089 .flags = ADDR_TYPE_RT
1093 /* l3_main_2 -> dss */
1094 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
1095 .master = &omap44xx_l3_main_2_hwmod,
1096 .slave = &omap44xx_dss_hwmod,
1098 .addr = omap44xx_dss_dma_addrs,
1099 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dma_addrs),
1100 .user = OCP_USER_SDMA,
1103 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1105 .pa_start = 0x48040000,
1106 .pa_end = 0x4804007f,
1107 .flags = ADDR_TYPE_RT
1112 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
1113 .master = &omap44xx_l4_per_hwmod,
1114 .slave = &omap44xx_dss_hwmod,
1116 .addr = omap44xx_dss_addrs,
1117 .addr_cnt = ARRAY_SIZE(omap44xx_dss_addrs),
1118 .user = OCP_USER_MPU,
1121 /* dss slave ports */
1122 static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1123 &omap44xx_l3_main_2__dss,
1124 &omap44xx_l4_per__dss,
1127 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1128 { .role = "sys_clk", .clk = "dss_sys_clk" },
1129 { .role = "tv_clk", .clk = "dss_tv_clk" },
1130 { .role = "dss_clk", .clk = "dss_dss_clk" },
1131 { .role = "video_clk", .clk = "dss_48mhz_clk" },
1134 static struct omap_hwmod omap44xx_dss_hwmod = {
1136 .class = &omap44xx_dss_hwmod_class,
1137 .main_clk = "dss_fck",
1140 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1143 .opt_clks = dss_opt_clks,
1144 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1145 .slaves = omap44xx_dss_slaves,
1146 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1147 .masters = omap44xx_dss_masters,
1148 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
1149 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1154 * display controller
1157 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1159 .sysc_offs = 0x0010,
1160 .syss_offs = 0x0014,
1161 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1162 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1163 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1164 SYSS_HAS_RESET_STATUS),
1165 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1166 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1167 .sysc_fields = &omap_hwmod_sysc_type1,
1170 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1172 .sysc = &omap44xx_dispc_sysc,
1176 static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1177 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1178 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
1181 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
1182 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
1185 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
1187 .pa_start = 0x58001000,
1188 .pa_end = 0x58001fff,
1189 .flags = ADDR_TYPE_RT
1193 /* l3_main_2 -> dss_dispc */
1194 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1195 .master = &omap44xx_l3_main_2_hwmod,
1196 .slave = &omap44xx_dss_dispc_hwmod,
1198 .addr = omap44xx_dss_dispc_dma_addrs,
1199 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_dma_addrs),
1200 .user = OCP_USER_SDMA,
1203 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
1205 .pa_start = 0x48041000,
1206 .pa_end = 0x48041fff,
1207 .flags = ADDR_TYPE_RT
1211 /* l4_per -> dss_dispc */
1212 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1213 .master = &omap44xx_l4_per_hwmod,
1214 .slave = &omap44xx_dss_dispc_hwmod,
1216 .addr = omap44xx_dss_dispc_addrs,
1217 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_addrs),
1218 .user = OCP_USER_MPU,
1221 /* dss_dispc slave ports */
1222 static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
1223 &omap44xx_l3_main_2__dss_dispc,
1224 &omap44xx_l4_per__dss_dispc,
1227 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
1228 .name = "dss_dispc",
1229 .class = &omap44xx_dispc_hwmod_class,
1230 .mpu_irqs = omap44xx_dss_dispc_irqs,
1231 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_irqs),
1232 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
1233 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
1234 .main_clk = "dss_fck",
1237 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1240 .slaves = omap44xx_dss_dispc_slaves,
1241 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
1242 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1247 * display serial interface controller
1250 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1252 .sysc_offs = 0x0010,
1253 .syss_offs = 0x0014,
1254 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1255 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1256 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1257 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1258 .sysc_fields = &omap_hwmod_sysc_type1,
1261 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1263 .sysc = &omap44xx_dsi_sysc,
1267 static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1268 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1269 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
1272 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
1273 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
1276 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
1278 .pa_start = 0x58004000,
1279 .pa_end = 0x580041ff,
1280 .flags = ADDR_TYPE_RT
1284 /* l3_main_2 -> dss_dsi1 */
1285 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1286 .master = &omap44xx_l3_main_2_hwmod,
1287 .slave = &omap44xx_dss_dsi1_hwmod,
1289 .addr = omap44xx_dss_dsi1_dma_addrs,
1290 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_dma_addrs),
1291 .user = OCP_USER_SDMA,
1294 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
1296 .pa_start = 0x48044000,
1297 .pa_end = 0x480441ff,
1298 .flags = ADDR_TYPE_RT
1302 /* l4_per -> dss_dsi1 */
1303 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1304 .master = &omap44xx_l4_per_hwmod,
1305 .slave = &omap44xx_dss_dsi1_hwmod,
1307 .addr = omap44xx_dss_dsi1_addrs,
1308 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_addrs),
1309 .user = OCP_USER_MPU,
1312 /* dss_dsi1 slave ports */
1313 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
1314 &omap44xx_l3_main_2__dss_dsi1,
1315 &omap44xx_l4_per__dss_dsi1,
1318 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
1320 .class = &omap44xx_dsi_hwmod_class,
1321 .mpu_irqs = omap44xx_dss_dsi1_irqs,
1322 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_irqs),
1323 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
1324 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
1325 .main_clk = "dss_fck",
1328 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1331 .slaves = omap44xx_dss_dsi1_slaves,
1332 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
1333 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1337 static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1338 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1339 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
1342 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
1343 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
1346 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
1348 .pa_start = 0x58005000,
1349 .pa_end = 0x580051ff,
1350 .flags = ADDR_TYPE_RT
1354 /* l3_main_2 -> dss_dsi2 */
1355 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1356 .master = &omap44xx_l3_main_2_hwmod,
1357 .slave = &omap44xx_dss_dsi2_hwmod,
1359 .addr = omap44xx_dss_dsi2_dma_addrs,
1360 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_dma_addrs),
1361 .user = OCP_USER_SDMA,
1364 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
1366 .pa_start = 0x48045000,
1367 .pa_end = 0x480451ff,
1368 .flags = ADDR_TYPE_RT
1372 /* l4_per -> dss_dsi2 */
1373 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1374 .master = &omap44xx_l4_per_hwmod,
1375 .slave = &omap44xx_dss_dsi2_hwmod,
1377 .addr = omap44xx_dss_dsi2_addrs,
1378 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_addrs),
1379 .user = OCP_USER_MPU,
1382 /* dss_dsi2 slave ports */
1383 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
1384 &omap44xx_l3_main_2__dss_dsi2,
1385 &omap44xx_l4_per__dss_dsi2,
1388 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
1390 .class = &omap44xx_dsi_hwmod_class,
1391 .mpu_irqs = omap44xx_dss_dsi2_irqs,
1392 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_irqs),
1393 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
1394 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
1395 .main_clk = "dss_fck",
1398 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1401 .slaves = omap44xx_dss_dsi2_slaves,
1402 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
1403 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1411 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1413 .sysc_offs = 0x0010,
1414 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1415 SYSC_HAS_SOFTRESET),
1416 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1418 .sysc_fields = &omap_hwmod_sysc_type2,
1421 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1423 .sysc = &omap44xx_hdmi_sysc,
1427 static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1428 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1429 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
1432 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
1433 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
1436 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
1438 .pa_start = 0x58006000,
1439 .pa_end = 0x58006fff,
1440 .flags = ADDR_TYPE_RT
1444 /* l3_main_2 -> dss_hdmi */
1445 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1446 .master = &omap44xx_l3_main_2_hwmod,
1447 .slave = &omap44xx_dss_hdmi_hwmod,
1449 .addr = omap44xx_dss_hdmi_dma_addrs,
1450 .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_dma_addrs),
1451 .user = OCP_USER_SDMA,
1454 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
1456 .pa_start = 0x48046000,
1457 .pa_end = 0x48046fff,
1458 .flags = ADDR_TYPE_RT
1462 /* l4_per -> dss_hdmi */
1463 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1464 .master = &omap44xx_l4_per_hwmod,
1465 .slave = &omap44xx_dss_hdmi_hwmod,
1467 .addr = omap44xx_dss_hdmi_addrs,
1468 .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_addrs),
1469 .user = OCP_USER_MPU,
1472 /* dss_hdmi slave ports */
1473 static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
1474 &omap44xx_l3_main_2__dss_hdmi,
1475 &omap44xx_l4_per__dss_hdmi,
1478 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
1480 .class = &omap44xx_hdmi_hwmod_class,
1481 .mpu_irqs = omap44xx_dss_hdmi_irqs,
1482 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_irqs),
1483 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
1484 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
1485 .main_clk = "dss_fck",
1488 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1491 .slaves = omap44xx_dss_hdmi_slaves,
1492 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
1493 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1498 * remote frame buffer interface
1501 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1503 .sysc_offs = 0x0010,
1504 .syss_offs = 0x0014,
1505 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1506 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1507 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1508 .sysc_fields = &omap_hwmod_sysc_type1,
1511 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1513 .sysc = &omap44xx_rfbi_sysc,
1517 static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1518 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1519 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
1522 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1524 .pa_start = 0x58002000,
1525 .pa_end = 0x580020ff,
1526 .flags = ADDR_TYPE_RT
1530 /* l3_main_2 -> dss_rfbi */
1531 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
1532 .master = &omap44xx_l3_main_2_hwmod,
1533 .slave = &omap44xx_dss_rfbi_hwmod,
1535 .addr = omap44xx_dss_rfbi_dma_addrs,
1536 .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_dma_addrs),
1537 .user = OCP_USER_SDMA,
1540 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1542 .pa_start = 0x48042000,
1543 .pa_end = 0x480420ff,
1544 .flags = ADDR_TYPE_RT
1548 /* l4_per -> dss_rfbi */
1549 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
1550 .master = &omap44xx_l4_per_hwmod,
1551 .slave = &omap44xx_dss_rfbi_hwmod,
1553 .addr = omap44xx_dss_rfbi_addrs,
1554 .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_addrs),
1555 .user = OCP_USER_MPU,
1558 /* dss_rfbi slave ports */
1559 static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1560 &omap44xx_l3_main_2__dss_rfbi,
1561 &omap44xx_l4_per__dss_rfbi,
1564 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1566 .class = &omap44xx_rfbi_hwmod_class,
1567 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
1568 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
1569 .main_clk = "dss_fck",
1572 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1575 .slaves = omap44xx_dss_rfbi_slaves,
1576 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
1577 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1585 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1590 static struct omap_hwmod omap44xx_dss_venc_hwmod;
1591 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1593 .pa_start = 0x58003000,
1594 .pa_end = 0x580030ff,
1595 .flags = ADDR_TYPE_RT
1599 /* l3_main_2 -> dss_venc */
1600 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
1601 .master = &omap44xx_l3_main_2_hwmod,
1602 .slave = &omap44xx_dss_venc_hwmod,
1604 .addr = omap44xx_dss_venc_dma_addrs,
1605 .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_dma_addrs),
1606 .user = OCP_USER_SDMA,
1609 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1611 .pa_start = 0x48043000,
1612 .pa_end = 0x480430ff,
1613 .flags = ADDR_TYPE_RT
1617 /* l4_per -> dss_venc */
1618 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
1619 .master = &omap44xx_l4_per_hwmod,
1620 .slave = &omap44xx_dss_venc_hwmod,
1622 .addr = omap44xx_dss_venc_addrs,
1623 .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_addrs),
1624 .user = OCP_USER_MPU,
1627 /* dss_venc slave ports */
1628 static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1629 &omap44xx_l3_main_2__dss_venc,
1630 &omap44xx_l4_per__dss_venc,
1633 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1635 .class = &omap44xx_venc_hwmod_class,
1636 .main_clk = "dss_fck",
1639 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1642 .slaves = omap44xx_dss_venc_slaves,
1643 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
1644 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1649 * general purpose io module
1652 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1654 .sysc_offs = 0x0010,
1655 .syss_offs = 0x0114,
1656 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1657 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1658 SYSS_HAS_RESET_STATUS),
1659 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1661 .sysc_fields = &omap_hwmod_sysc_type1,
1664 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1666 .sysc = &omap44xx_gpio_sysc,
1671 static struct omap_gpio_dev_attr gpio_dev_attr = {
1677 static struct omap_hwmod omap44xx_gpio1_hwmod;
1678 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1679 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
1682 static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
1684 .pa_start = 0x4a310000,
1685 .pa_end = 0x4a3101ff,
1686 .flags = ADDR_TYPE_RT
1690 /* l4_wkup -> gpio1 */
1691 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1692 .master = &omap44xx_l4_wkup_hwmod,
1693 .slave = &omap44xx_gpio1_hwmod,
1694 .clk = "l4_wkup_clk_mux_ck",
1695 .addr = omap44xx_gpio1_addrs,
1696 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
1697 .user = OCP_USER_MPU | OCP_USER_SDMA,
1700 /* gpio1 slave ports */
1701 static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
1702 &omap44xx_l4_wkup__gpio1,
1705 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1706 { .role = "dbclk", .clk = "gpio1_dbclk" },
1709 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1711 .class = &omap44xx_gpio_hwmod_class,
1712 .mpu_irqs = omap44xx_gpio1_irqs,
1713 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
1714 .main_clk = "gpio1_ick",
1717 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1720 .opt_clks = gpio1_opt_clks,
1721 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1722 .dev_attr = &gpio_dev_attr,
1723 .slaves = omap44xx_gpio1_slaves,
1724 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
1725 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1729 static struct omap_hwmod omap44xx_gpio2_hwmod;
1730 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1731 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
1734 static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
1736 .pa_start = 0x48055000,
1737 .pa_end = 0x480551ff,
1738 .flags = ADDR_TYPE_RT
1742 /* l4_per -> gpio2 */
1743 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1744 .master = &omap44xx_l4_per_hwmod,
1745 .slave = &omap44xx_gpio2_hwmod,
1747 .addr = omap44xx_gpio2_addrs,
1748 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
1749 .user = OCP_USER_MPU | OCP_USER_SDMA,
1752 /* gpio2 slave ports */
1753 static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
1754 &omap44xx_l4_per__gpio2,
1757 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1758 { .role = "dbclk", .clk = "gpio2_dbclk" },
1761 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1763 .class = &omap44xx_gpio_hwmod_class,
1764 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1765 .mpu_irqs = omap44xx_gpio2_irqs,
1766 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
1767 .main_clk = "gpio2_ick",
1770 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1773 .opt_clks = gpio2_opt_clks,
1774 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1775 .dev_attr = &gpio_dev_attr,
1776 .slaves = omap44xx_gpio2_slaves,
1777 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
1778 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1782 static struct omap_hwmod omap44xx_gpio3_hwmod;
1783 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1784 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
1787 static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
1789 .pa_start = 0x48057000,
1790 .pa_end = 0x480571ff,
1791 .flags = ADDR_TYPE_RT
1795 /* l4_per -> gpio3 */
1796 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1797 .master = &omap44xx_l4_per_hwmod,
1798 .slave = &omap44xx_gpio3_hwmod,
1800 .addr = omap44xx_gpio3_addrs,
1801 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
1802 .user = OCP_USER_MPU | OCP_USER_SDMA,
1805 /* gpio3 slave ports */
1806 static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
1807 &omap44xx_l4_per__gpio3,
1810 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1811 { .role = "dbclk", .clk = "gpio3_dbclk" },
1814 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1816 .class = &omap44xx_gpio_hwmod_class,
1817 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1818 .mpu_irqs = omap44xx_gpio3_irqs,
1819 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
1820 .main_clk = "gpio3_ick",
1823 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1826 .opt_clks = gpio3_opt_clks,
1827 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1828 .dev_attr = &gpio_dev_attr,
1829 .slaves = omap44xx_gpio3_slaves,
1830 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
1831 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1835 static struct omap_hwmod omap44xx_gpio4_hwmod;
1836 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1837 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
1840 static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
1842 .pa_start = 0x48059000,
1843 .pa_end = 0x480591ff,
1844 .flags = ADDR_TYPE_RT
1848 /* l4_per -> gpio4 */
1849 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
1850 .master = &omap44xx_l4_per_hwmod,
1851 .slave = &omap44xx_gpio4_hwmod,
1853 .addr = omap44xx_gpio4_addrs,
1854 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
1855 .user = OCP_USER_MPU | OCP_USER_SDMA,
1858 /* gpio4 slave ports */
1859 static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
1860 &omap44xx_l4_per__gpio4,
1863 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1864 { .role = "dbclk", .clk = "gpio4_dbclk" },
1867 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1869 .class = &omap44xx_gpio_hwmod_class,
1870 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1871 .mpu_irqs = omap44xx_gpio4_irqs,
1872 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
1873 .main_clk = "gpio4_ick",
1876 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1879 .opt_clks = gpio4_opt_clks,
1880 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1881 .dev_attr = &gpio_dev_attr,
1882 .slaves = omap44xx_gpio4_slaves,
1883 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
1884 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1888 static struct omap_hwmod omap44xx_gpio5_hwmod;
1889 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1890 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
1893 static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
1895 .pa_start = 0x4805b000,
1896 .pa_end = 0x4805b1ff,
1897 .flags = ADDR_TYPE_RT
1901 /* l4_per -> gpio5 */
1902 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
1903 .master = &omap44xx_l4_per_hwmod,
1904 .slave = &omap44xx_gpio5_hwmod,
1906 .addr = omap44xx_gpio5_addrs,
1907 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
1908 .user = OCP_USER_MPU | OCP_USER_SDMA,
1911 /* gpio5 slave ports */
1912 static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
1913 &omap44xx_l4_per__gpio5,
1916 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1917 { .role = "dbclk", .clk = "gpio5_dbclk" },
1920 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1922 .class = &omap44xx_gpio_hwmod_class,
1923 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1924 .mpu_irqs = omap44xx_gpio5_irqs,
1925 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
1926 .main_clk = "gpio5_ick",
1929 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1932 .opt_clks = gpio5_opt_clks,
1933 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1934 .dev_attr = &gpio_dev_attr,
1935 .slaves = omap44xx_gpio5_slaves,
1936 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1937 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1941 static struct omap_hwmod omap44xx_gpio6_hwmod;
1942 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1943 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
1946 static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
1948 .pa_start = 0x4805d000,
1949 .pa_end = 0x4805d1ff,
1950 .flags = ADDR_TYPE_RT
1954 /* l4_per -> gpio6 */
1955 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1956 .master = &omap44xx_l4_per_hwmod,
1957 .slave = &omap44xx_gpio6_hwmod,
1959 .addr = omap44xx_gpio6_addrs,
1960 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
1961 .user = OCP_USER_MPU | OCP_USER_SDMA,
1964 /* gpio6 slave ports */
1965 static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
1966 &omap44xx_l4_per__gpio6,
1969 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1970 { .role = "dbclk", .clk = "gpio6_dbclk" },
1973 static struct omap_hwmod omap44xx_gpio6_hwmod = {
1975 .class = &omap44xx_gpio_hwmod_class,
1976 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1977 .mpu_irqs = omap44xx_gpio6_irqs,
1978 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
1979 .main_clk = "gpio6_ick",
1982 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1985 .opt_clks = gpio6_opt_clks,
1986 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1987 .dev_attr = &gpio_dev_attr,
1988 .slaves = omap44xx_gpio6_slaves,
1989 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
1990 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1995 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1999 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2001 .sysc_offs = 0x0010,
2002 .syss_offs = 0x0014,
2003 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2004 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2005 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2006 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2007 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2009 .sysc_fields = &omap_hwmod_sysc_type1,
2012 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2014 .sysc = &omap44xx_hsi_sysc,
2018 static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2019 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2020 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2021 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
2024 /* hsi master ports */
2025 static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
2026 &omap44xx_hsi__l3_main_2,
2029 static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
2031 .pa_start = 0x4a058000,
2032 .pa_end = 0x4a05bfff,
2033 .flags = ADDR_TYPE_RT
2038 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2039 .master = &omap44xx_l4_cfg_hwmod,
2040 .slave = &omap44xx_hsi_hwmod,
2042 .addr = omap44xx_hsi_addrs,
2043 .addr_cnt = ARRAY_SIZE(omap44xx_hsi_addrs),
2044 .user = OCP_USER_MPU | OCP_USER_SDMA,
2047 /* hsi slave ports */
2048 static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
2049 &omap44xx_l4_cfg__hsi,
2052 static struct omap_hwmod omap44xx_hsi_hwmod = {
2054 .class = &omap44xx_hsi_hwmod_class,
2055 .mpu_irqs = omap44xx_hsi_irqs,
2056 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_hsi_irqs),
2057 .main_clk = "hsi_fck",
2060 .clkctrl_reg = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
2063 .slaves = omap44xx_hsi_slaves,
2064 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2065 .masters = omap44xx_hsi_masters,
2066 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
2067 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2072 * multimaster high-speed i2c controller
2075 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2076 .sysc_offs = 0x0010,
2077 .syss_offs = 0x0090,
2078 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2079 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2080 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2081 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2083 .sysc_fields = &omap_hwmod_sysc_type1,
2086 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
2088 .sysc = &omap44xx_i2c_sysc,
2092 static struct omap_hwmod omap44xx_i2c1_hwmod;
2093 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2094 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
2097 static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
2098 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
2099 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
2102 static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
2104 .pa_start = 0x48070000,
2105 .pa_end = 0x480700ff,
2106 .flags = ADDR_TYPE_RT
2110 /* l4_per -> i2c1 */
2111 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2112 .master = &omap44xx_l4_per_hwmod,
2113 .slave = &omap44xx_i2c1_hwmod,
2115 .addr = omap44xx_i2c1_addrs,
2116 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
2117 .user = OCP_USER_MPU | OCP_USER_SDMA,
2120 /* i2c1 slave ports */
2121 static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
2122 &omap44xx_l4_per__i2c1,
2125 static struct omap_hwmod omap44xx_i2c1_hwmod = {
2127 .class = &omap44xx_i2c_hwmod_class,
2128 .flags = HWMOD_INIT_NO_RESET,
2129 .mpu_irqs = omap44xx_i2c1_irqs,
2130 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
2131 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
2132 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
2133 .main_clk = "i2c1_fck",
2136 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
2139 .slaves = omap44xx_i2c1_slaves,
2140 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2141 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2145 static struct omap_hwmod omap44xx_i2c2_hwmod;
2146 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2147 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
2150 static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
2151 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
2152 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
2155 static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
2157 .pa_start = 0x48072000,
2158 .pa_end = 0x480720ff,
2159 .flags = ADDR_TYPE_RT
2163 /* l4_per -> i2c2 */
2164 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2165 .master = &omap44xx_l4_per_hwmod,
2166 .slave = &omap44xx_i2c2_hwmod,
2168 .addr = omap44xx_i2c2_addrs,
2169 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
2170 .user = OCP_USER_MPU | OCP_USER_SDMA,
2173 /* i2c2 slave ports */
2174 static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
2175 &omap44xx_l4_per__i2c2,
2178 static struct omap_hwmod omap44xx_i2c2_hwmod = {
2180 .class = &omap44xx_i2c_hwmod_class,
2181 .flags = HWMOD_INIT_NO_RESET,
2182 .mpu_irqs = omap44xx_i2c2_irqs,
2183 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
2184 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
2185 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
2186 .main_clk = "i2c2_fck",
2189 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
2192 .slaves = omap44xx_i2c2_slaves,
2193 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2194 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2198 static struct omap_hwmod omap44xx_i2c3_hwmod;
2199 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2200 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
2203 static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
2204 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
2205 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
2208 static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
2210 .pa_start = 0x48060000,
2211 .pa_end = 0x480600ff,
2212 .flags = ADDR_TYPE_RT
2216 /* l4_per -> i2c3 */
2217 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2218 .master = &omap44xx_l4_per_hwmod,
2219 .slave = &omap44xx_i2c3_hwmod,
2221 .addr = omap44xx_i2c3_addrs,
2222 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
2223 .user = OCP_USER_MPU | OCP_USER_SDMA,
2226 /* i2c3 slave ports */
2227 static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
2228 &omap44xx_l4_per__i2c3,
2231 static struct omap_hwmod omap44xx_i2c3_hwmod = {
2233 .class = &omap44xx_i2c_hwmod_class,
2234 .flags = HWMOD_INIT_NO_RESET,
2235 .mpu_irqs = omap44xx_i2c3_irqs,
2236 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
2237 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
2238 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
2239 .main_clk = "i2c3_fck",
2242 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
2245 .slaves = omap44xx_i2c3_slaves,
2246 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2247 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2251 static struct omap_hwmod omap44xx_i2c4_hwmod;
2252 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2253 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
2256 static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
2257 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
2258 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
2261 static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
2263 .pa_start = 0x48350000,
2264 .pa_end = 0x483500ff,
2265 .flags = ADDR_TYPE_RT
2269 /* l4_per -> i2c4 */
2270 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2271 .master = &omap44xx_l4_per_hwmod,
2272 .slave = &omap44xx_i2c4_hwmod,
2274 .addr = omap44xx_i2c4_addrs,
2275 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
2276 .user = OCP_USER_MPU | OCP_USER_SDMA,
2279 /* i2c4 slave ports */
2280 static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
2281 &omap44xx_l4_per__i2c4,
2284 static struct omap_hwmod omap44xx_i2c4_hwmod = {
2286 .class = &omap44xx_i2c_hwmod_class,
2287 .flags = HWMOD_INIT_NO_RESET,
2288 .mpu_irqs = omap44xx_i2c4_irqs,
2289 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
2290 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
2291 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
2292 .main_clk = "i2c4_fck",
2295 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
2298 .slaves = omap44xx_i2c4_slaves,
2299 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2300 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2305 * imaging processor unit
2308 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2313 static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2314 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
2317 static struct omap_hwmod_rst_info omap44xx_ipu_c0_resets[] = {
2318 { .name = "cpu0", .rst_shift = 0 },
2321 static struct omap_hwmod_rst_info omap44xx_ipu_c1_resets[] = {
2322 { .name = "cpu1", .rst_shift = 1 },
2325 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
2326 { .name = "mmu_cache", .rst_shift = 2 },
2329 /* ipu master ports */
2330 static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
2331 &omap44xx_ipu__l3_main_2,
2334 /* l3_main_2 -> ipu */
2335 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2336 .master = &omap44xx_l3_main_2_hwmod,
2337 .slave = &omap44xx_ipu_hwmod,
2339 .user = OCP_USER_MPU | OCP_USER_SDMA,
2342 /* ipu slave ports */
2343 static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
2344 &omap44xx_l3_main_2__ipu,
2347 /* Pseudo hwmod for reset control purpose only */
2348 static struct omap_hwmod omap44xx_ipu_c0_hwmod = {
2350 .class = &omap44xx_ipu_hwmod_class,
2351 .flags = HWMOD_INIT_NO_RESET,
2352 .rst_lines = omap44xx_ipu_c0_resets,
2353 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c0_resets),
2356 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2359 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2362 /* Pseudo hwmod for reset control purpose only */
2363 static struct omap_hwmod omap44xx_ipu_c1_hwmod = {
2365 .class = &omap44xx_ipu_hwmod_class,
2366 .flags = HWMOD_INIT_NO_RESET,
2367 .rst_lines = omap44xx_ipu_c1_resets,
2368 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c1_resets),
2371 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2374 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2377 static struct omap_hwmod omap44xx_ipu_hwmod = {
2379 .class = &omap44xx_ipu_hwmod_class,
2380 .mpu_irqs = omap44xx_ipu_irqs,
2381 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_ipu_irqs),
2382 .rst_lines = omap44xx_ipu_resets,
2383 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2384 .main_clk = "ipu_fck",
2387 .clkctrl_reg = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
2388 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2391 .slaves = omap44xx_ipu_slaves,
2392 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2393 .masters = omap44xx_ipu_masters,
2394 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
2395 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2400 * external images sensor pixel data processor
2403 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2405 .sysc_offs = 0x0010,
2406 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2407 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2408 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2409 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2411 .sysc_fields = &omap_hwmod_sysc_type2,
2414 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2416 .sysc = &omap44xx_iss_sysc,
2420 static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2421 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
2424 static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
2425 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
2426 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
2427 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
2428 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
2431 /* iss master ports */
2432 static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
2433 &omap44xx_iss__l3_main_2,
2436 static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
2438 .pa_start = 0x52000000,
2439 .pa_end = 0x520000ff,
2440 .flags = ADDR_TYPE_RT
2444 /* l3_main_2 -> iss */
2445 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2446 .master = &omap44xx_l3_main_2_hwmod,
2447 .slave = &omap44xx_iss_hwmod,
2449 .addr = omap44xx_iss_addrs,
2450 .addr_cnt = ARRAY_SIZE(omap44xx_iss_addrs),
2451 .user = OCP_USER_MPU | OCP_USER_SDMA,
2454 /* iss slave ports */
2455 static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
2456 &omap44xx_l3_main_2__iss,
2459 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
2460 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
2463 static struct omap_hwmod omap44xx_iss_hwmod = {
2465 .class = &omap44xx_iss_hwmod_class,
2466 .mpu_irqs = omap44xx_iss_irqs,
2467 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iss_irqs),
2468 .sdma_reqs = omap44xx_iss_sdma_reqs,
2469 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_iss_sdma_reqs),
2470 .main_clk = "iss_fck",
2473 .clkctrl_reg = OMAP4430_CM_CAM_ISS_CLKCTRL,
2476 .opt_clks = iss_opt_clks,
2477 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2478 .slaves = omap44xx_iss_slaves,
2479 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2480 .masters = omap44xx_iss_masters,
2481 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
2482 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2487 * multi-standard video encoder/decoder hardware accelerator
2490 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
2495 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2496 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2497 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2498 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
2501 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
2502 { .name = "logic", .rst_shift = 2 },
2505 static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
2506 { .name = "seq0", .rst_shift = 0 },
2509 static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
2510 { .name = "seq1", .rst_shift = 1 },
2513 /* iva master ports */
2514 static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
2515 &omap44xx_iva__l3_main_2,
2516 &omap44xx_iva__l3_instr,
2519 static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
2521 .pa_start = 0x5a000000,
2522 .pa_end = 0x5a07ffff,
2523 .flags = ADDR_TYPE_RT
2527 /* l3_main_2 -> iva */
2528 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2529 .master = &omap44xx_l3_main_2_hwmod,
2530 .slave = &omap44xx_iva_hwmod,
2532 .addr = omap44xx_iva_addrs,
2533 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
2534 .user = OCP_USER_MPU,
2537 /* iva slave ports */
2538 static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
2540 &omap44xx_l3_main_2__iva,
2543 /* Pseudo hwmod for reset control purpose only */
2544 static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
2546 .class = &omap44xx_iva_hwmod_class,
2547 .flags = HWMOD_INIT_NO_RESET,
2548 .rst_lines = omap44xx_iva_seq0_resets,
2549 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
2552 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2555 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2558 /* Pseudo hwmod for reset control purpose only */
2559 static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
2561 .class = &omap44xx_iva_hwmod_class,
2562 .flags = HWMOD_INIT_NO_RESET,
2563 .rst_lines = omap44xx_iva_seq1_resets,
2564 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
2567 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2570 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2573 static struct omap_hwmod omap44xx_iva_hwmod = {
2575 .class = &omap44xx_iva_hwmod_class,
2576 .mpu_irqs = omap44xx_iva_irqs,
2577 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
2578 .rst_lines = omap44xx_iva_resets,
2579 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2580 .main_clk = "iva_fck",
2583 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
2584 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2587 .slaves = omap44xx_iva_slaves,
2588 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2589 .masters = omap44xx_iva_masters,
2590 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
2591 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2596 * keyboard controller
2599 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2601 .sysc_offs = 0x0010,
2602 .syss_offs = 0x0014,
2603 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2604 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2605 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2606 SYSS_HAS_RESET_STATUS),
2607 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2608 .sysc_fields = &omap_hwmod_sysc_type1,
2611 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2613 .sysc = &omap44xx_kbd_sysc,
2617 static struct omap_hwmod omap44xx_kbd_hwmod;
2618 static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2619 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
2622 static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
2624 .pa_start = 0x4a31c000,
2625 .pa_end = 0x4a31c07f,
2626 .flags = ADDR_TYPE_RT
2630 /* l4_wkup -> kbd */
2631 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2632 .master = &omap44xx_l4_wkup_hwmod,
2633 .slave = &omap44xx_kbd_hwmod,
2634 .clk = "l4_wkup_clk_mux_ck",
2635 .addr = omap44xx_kbd_addrs,
2636 .addr_cnt = ARRAY_SIZE(omap44xx_kbd_addrs),
2637 .user = OCP_USER_MPU | OCP_USER_SDMA,
2640 /* kbd slave ports */
2641 static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
2642 &omap44xx_l4_wkup__kbd,
2645 static struct omap_hwmod omap44xx_kbd_hwmod = {
2647 .class = &omap44xx_kbd_hwmod_class,
2648 .mpu_irqs = omap44xx_kbd_irqs,
2649 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_kbd_irqs),
2650 .main_clk = "kbd_fck",
2653 .clkctrl_reg = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
2656 .slaves = omap44xx_kbd_slaves,
2657 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
2658 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2663 * mailbox module allowing communication between the on-chip processors using a
2664 * queued mailbox-interrupt mechanism.
2667 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2669 .sysc_offs = 0x0010,
2670 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2671 SYSC_HAS_SOFTRESET),
2672 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2673 .sysc_fields = &omap_hwmod_sysc_type2,
2676 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2678 .sysc = &omap44xx_mailbox_sysc,
2682 static struct omap_hwmod omap44xx_mailbox_hwmod;
2683 static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2684 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
2687 static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
2689 .pa_start = 0x4a0f4000,
2690 .pa_end = 0x4a0f41ff,
2691 .flags = ADDR_TYPE_RT
2695 /* l4_cfg -> mailbox */
2696 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2697 .master = &omap44xx_l4_cfg_hwmod,
2698 .slave = &omap44xx_mailbox_hwmod,
2700 .addr = omap44xx_mailbox_addrs,
2701 .addr_cnt = ARRAY_SIZE(omap44xx_mailbox_addrs),
2702 .user = OCP_USER_MPU | OCP_USER_SDMA,
2705 /* mailbox slave ports */
2706 static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
2707 &omap44xx_l4_cfg__mailbox,
2710 static struct omap_hwmod omap44xx_mailbox_hwmod = {
2712 .class = &omap44xx_mailbox_hwmod_class,
2713 .mpu_irqs = omap44xx_mailbox_irqs,
2714 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mailbox_irqs),
2717 .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
2720 .slaves = omap44xx_mailbox_slaves,
2721 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
2722 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2727 * multi channel buffered serial port controller
2730 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2731 .sysc_offs = 0x008c,
2732 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2733 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2734 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2735 .sysc_fields = &omap_hwmod_sysc_type1,
2738 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2740 .sysc = &omap44xx_mcbsp_sysc,
2741 .rev = MCBSP_CONFIG_TYPE4,
2745 static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2746 static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2747 { .irq = 17 + OMAP44XX_IRQ_GIC_START },
2750 static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
2751 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
2752 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
2755 static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
2758 .pa_start = 0x40122000,
2759 .pa_end = 0x401220ff,
2760 .flags = ADDR_TYPE_RT
2764 /* l4_abe -> mcbsp1 */
2765 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2766 .master = &omap44xx_l4_abe_hwmod,
2767 .slave = &omap44xx_mcbsp1_hwmod,
2768 .clk = "ocp_abe_iclk",
2769 .addr = omap44xx_mcbsp1_addrs,
2770 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_addrs),
2771 .user = OCP_USER_MPU,
2774 static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
2777 .pa_start = 0x49022000,
2778 .pa_end = 0x490220ff,
2779 .flags = ADDR_TYPE_RT
2783 /* l4_abe -> mcbsp1 (dma) */
2784 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2785 .master = &omap44xx_l4_abe_hwmod,
2786 .slave = &omap44xx_mcbsp1_hwmod,
2787 .clk = "ocp_abe_iclk",
2788 .addr = omap44xx_mcbsp1_dma_addrs,
2789 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_dma_addrs),
2790 .user = OCP_USER_SDMA,
2793 /* mcbsp1 slave ports */
2794 static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
2795 &omap44xx_l4_abe__mcbsp1,
2796 &omap44xx_l4_abe__mcbsp1_dma,
2799 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
2801 .class = &omap44xx_mcbsp_hwmod_class,
2802 .mpu_irqs = omap44xx_mcbsp1_irqs,
2803 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_irqs),
2804 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
2805 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_sdma_reqs),
2806 .main_clk = "mcbsp1_fck",
2809 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
2812 .slaves = omap44xx_mcbsp1_slaves,
2813 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
2814 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2818 static struct omap_hwmod omap44xx_mcbsp2_hwmod;
2819 static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
2820 { .irq = 22 + OMAP44XX_IRQ_GIC_START },
2823 static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
2824 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
2825 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
2828 static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
2831 .pa_start = 0x40124000,
2832 .pa_end = 0x401240ff,
2833 .flags = ADDR_TYPE_RT
2837 /* l4_abe -> mcbsp2 */
2838 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2839 .master = &omap44xx_l4_abe_hwmod,
2840 .slave = &omap44xx_mcbsp2_hwmod,
2841 .clk = "ocp_abe_iclk",
2842 .addr = omap44xx_mcbsp2_addrs,
2843 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_addrs),
2844 .user = OCP_USER_MPU,
2847 static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
2850 .pa_start = 0x49024000,
2851 .pa_end = 0x490240ff,
2852 .flags = ADDR_TYPE_RT
2856 /* l4_abe -> mcbsp2 (dma) */
2857 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
2858 .master = &omap44xx_l4_abe_hwmod,
2859 .slave = &omap44xx_mcbsp2_hwmod,
2860 .clk = "ocp_abe_iclk",
2861 .addr = omap44xx_mcbsp2_dma_addrs,
2862 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_dma_addrs),
2863 .user = OCP_USER_SDMA,
2866 /* mcbsp2 slave ports */
2867 static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
2868 &omap44xx_l4_abe__mcbsp2,
2869 &omap44xx_l4_abe__mcbsp2_dma,
2872 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2874 .class = &omap44xx_mcbsp_hwmod_class,
2875 .mpu_irqs = omap44xx_mcbsp2_irqs,
2876 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_irqs),
2877 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
2878 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_sdma_reqs),
2879 .main_clk = "mcbsp2_fck",
2882 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
2885 .slaves = omap44xx_mcbsp2_slaves,
2886 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
2887 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2891 static struct omap_hwmod omap44xx_mcbsp3_hwmod;
2892 static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
2893 { .irq = 23 + OMAP44XX_IRQ_GIC_START },
2896 static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2897 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2898 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
2901 static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
2904 .pa_start = 0x40126000,
2905 .pa_end = 0x401260ff,
2906 .flags = ADDR_TYPE_RT
2910 /* l4_abe -> mcbsp3 */
2911 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
2912 .master = &omap44xx_l4_abe_hwmod,
2913 .slave = &omap44xx_mcbsp3_hwmod,
2914 .clk = "ocp_abe_iclk",
2915 .addr = omap44xx_mcbsp3_addrs,
2916 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_addrs),
2917 .user = OCP_USER_MPU,
2920 static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
2923 .pa_start = 0x49026000,
2924 .pa_end = 0x490260ff,
2925 .flags = ADDR_TYPE_RT
2929 /* l4_abe -> mcbsp3 (dma) */
2930 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
2931 .master = &omap44xx_l4_abe_hwmod,
2932 .slave = &omap44xx_mcbsp3_hwmod,
2933 .clk = "ocp_abe_iclk",
2934 .addr = omap44xx_mcbsp3_dma_addrs,
2935 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_dma_addrs),
2936 .user = OCP_USER_SDMA,
2939 /* mcbsp3 slave ports */
2940 static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
2941 &omap44xx_l4_abe__mcbsp3,
2942 &omap44xx_l4_abe__mcbsp3_dma,
2945 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2947 .class = &omap44xx_mcbsp_hwmod_class,
2948 .mpu_irqs = omap44xx_mcbsp3_irqs,
2949 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_irqs),
2950 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
2951 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_sdma_reqs),
2952 .main_clk = "mcbsp3_fck",
2955 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
2958 .slaves = omap44xx_mcbsp3_slaves,
2959 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
2960 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2964 static struct omap_hwmod omap44xx_mcbsp4_hwmod;
2965 static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
2966 { .irq = 16 + OMAP44XX_IRQ_GIC_START },
2969 static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
2970 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
2971 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
2974 static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
2976 .pa_start = 0x48096000,
2977 .pa_end = 0x480960ff,
2978 .flags = ADDR_TYPE_RT
2982 /* l4_per -> mcbsp4 */
2983 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
2984 .master = &omap44xx_l4_per_hwmod,
2985 .slave = &omap44xx_mcbsp4_hwmod,
2987 .addr = omap44xx_mcbsp4_addrs,
2988 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp4_addrs),
2989 .user = OCP_USER_MPU | OCP_USER_SDMA,
2992 /* mcbsp4 slave ports */
2993 static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
2994 &omap44xx_l4_per__mcbsp4,
2997 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
2999 .class = &omap44xx_mcbsp_hwmod_class,
3000 .mpu_irqs = omap44xx_mcbsp4_irqs,
3001 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_irqs),
3002 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
3003 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_sdma_reqs),
3004 .main_clk = "mcbsp4_fck",
3007 .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
3010 .slaves = omap44xx_mcbsp4_slaves,
3011 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
3012 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3017 * multi channel pdm controller (proprietary interface with phoenix power
3021 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3023 .sysc_offs = 0x0010,
3024 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3025 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3026 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3028 .sysc_fields = &omap_hwmod_sysc_type2,
3031 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3033 .sysc = &omap44xx_mcpdm_sysc,
3037 static struct omap_hwmod omap44xx_mcpdm_hwmod;
3038 static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3039 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
3042 static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
3043 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
3044 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
3047 static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
3049 .pa_start = 0x40132000,
3050 .pa_end = 0x4013207f,
3051 .flags = ADDR_TYPE_RT
3055 /* l4_abe -> mcpdm */
3056 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3057 .master = &omap44xx_l4_abe_hwmod,
3058 .slave = &omap44xx_mcpdm_hwmod,
3059 .clk = "ocp_abe_iclk",
3060 .addr = omap44xx_mcpdm_addrs,
3061 .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_addrs),
3062 .user = OCP_USER_MPU,
3065 static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
3067 .pa_start = 0x49032000,
3068 .pa_end = 0x4903207f,
3069 .flags = ADDR_TYPE_RT
3073 /* l4_abe -> mcpdm (dma) */
3074 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3075 .master = &omap44xx_l4_abe_hwmod,
3076 .slave = &omap44xx_mcpdm_hwmod,
3077 .clk = "ocp_abe_iclk",
3078 .addr = omap44xx_mcpdm_dma_addrs,
3079 .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_dma_addrs),
3080 .user = OCP_USER_SDMA,
3083 /* mcpdm slave ports */
3084 static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
3085 &omap44xx_l4_abe__mcpdm,
3086 &omap44xx_l4_abe__mcpdm_dma,
3089 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
3091 .class = &omap44xx_mcpdm_hwmod_class,
3092 .mpu_irqs = omap44xx_mcpdm_irqs,
3093 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_irqs),
3094 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
3095 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_sdma_reqs),
3096 .main_clk = "mcpdm_fck",
3099 .clkctrl_reg = OMAP4430_CM1_ABE_PDM_CLKCTRL,
3102 .slaves = omap44xx_mcpdm_slaves,
3103 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
3104 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3109 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3113 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3115 .sysc_offs = 0x0010,
3116 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3117 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3118 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3120 .sysc_fields = &omap_hwmod_sysc_type2,
3123 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3125 .sysc = &omap44xx_mcspi_sysc,
3126 .rev = OMAP4_MCSPI_REV,
3130 static struct omap_hwmod omap44xx_mcspi1_hwmod;
3131 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3132 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
3135 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
3136 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
3137 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
3138 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
3139 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
3140 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
3141 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
3142 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
3143 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
3146 static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
3148 .pa_start = 0x48098000,
3149 .pa_end = 0x480981ff,
3150 .flags = ADDR_TYPE_RT
3154 /* l4_per -> mcspi1 */
3155 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3156 .master = &omap44xx_l4_per_hwmod,
3157 .slave = &omap44xx_mcspi1_hwmod,
3159 .addr = omap44xx_mcspi1_addrs,
3160 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
3161 .user = OCP_USER_MPU | OCP_USER_SDMA,
3164 /* mcspi1 slave ports */
3165 static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
3166 &omap44xx_l4_per__mcspi1,
3169 /* mcspi1 dev_attr */
3170 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
3171 .num_chipselect = 4,
3174 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
3176 .class = &omap44xx_mcspi_hwmod_class,
3177 .mpu_irqs = omap44xx_mcspi1_irqs,
3178 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
3179 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
3180 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
3181 .main_clk = "mcspi1_fck",
3184 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
3187 .dev_attr = &mcspi1_dev_attr,
3188 .slaves = omap44xx_mcspi1_slaves,
3189 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
3190 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3194 static struct omap_hwmod omap44xx_mcspi2_hwmod;
3195 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3196 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
3199 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
3200 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
3201 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
3202 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
3203 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
3206 static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
3208 .pa_start = 0x4809a000,
3209 .pa_end = 0x4809a1ff,
3210 .flags = ADDR_TYPE_RT
3214 /* l4_per -> mcspi2 */
3215 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3216 .master = &omap44xx_l4_per_hwmod,
3217 .slave = &omap44xx_mcspi2_hwmod,
3219 .addr = omap44xx_mcspi2_addrs,
3220 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
3221 .user = OCP_USER_MPU | OCP_USER_SDMA,
3224 /* mcspi2 slave ports */
3225 static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
3226 &omap44xx_l4_per__mcspi2,
3229 /* mcspi2 dev_attr */
3230 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
3231 .num_chipselect = 2,
3234 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
3236 .class = &omap44xx_mcspi_hwmod_class,
3237 .mpu_irqs = omap44xx_mcspi2_irqs,
3238 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
3239 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
3240 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
3241 .main_clk = "mcspi2_fck",
3244 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
3247 .dev_attr = &mcspi2_dev_attr,
3248 .slaves = omap44xx_mcspi2_slaves,
3249 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
3250 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3254 static struct omap_hwmod omap44xx_mcspi3_hwmod;
3255 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3256 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
3259 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
3260 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
3261 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
3262 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
3263 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
3266 static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
3268 .pa_start = 0x480b8000,
3269 .pa_end = 0x480b81ff,
3270 .flags = ADDR_TYPE_RT
3274 /* l4_per -> mcspi3 */
3275 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3276 .master = &omap44xx_l4_per_hwmod,
3277 .slave = &omap44xx_mcspi3_hwmod,
3279 .addr = omap44xx_mcspi3_addrs,
3280 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
3281 .user = OCP_USER_MPU | OCP_USER_SDMA,
3284 /* mcspi3 slave ports */
3285 static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
3286 &omap44xx_l4_per__mcspi3,
3289 /* mcspi3 dev_attr */
3290 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
3291 .num_chipselect = 2,
3294 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
3296 .class = &omap44xx_mcspi_hwmod_class,
3297 .mpu_irqs = omap44xx_mcspi3_irqs,
3298 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
3299 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
3300 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
3301 .main_clk = "mcspi3_fck",
3304 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
3307 .dev_attr = &mcspi3_dev_attr,
3308 .slaves = omap44xx_mcspi3_slaves,
3309 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
3310 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3314 static struct omap_hwmod omap44xx_mcspi4_hwmod;
3315 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3316 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
3319 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
3320 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
3321 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
3324 static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
3326 .pa_start = 0x480ba000,
3327 .pa_end = 0x480ba1ff,
3328 .flags = ADDR_TYPE_RT
3332 /* l4_per -> mcspi4 */
3333 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3334 .master = &omap44xx_l4_per_hwmod,
3335 .slave = &omap44xx_mcspi4_hwmod,
3337 .addr = omap44xx_mcspi4_addrs,
3338 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
3339 .user = OCP_USER_MPU | OCP_USER_SDMA,
3342 /* mcspi4 slave ports */
3343 static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
3344 &omap44xx_l4_per__mcspi4,
3347 /* mcspi4 dev_attr */
3348 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
3349 .num_chipselect = 1,
3352 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
3354 .class = &omap44xx_mcspi_hwmod_class,
3355 .mpu_irqs = omap44xx_mcspi4_irqs,
3356 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
3357 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
3358 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
3359 .main_clk = "mcspi4_fck",
3362 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
3365 .dev_attr = &mcspi4_dev_attr,
3366 .slaves = omap44xx_mcspi4_slaves,
3367 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
3368 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3373 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3376 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3378 .sysc_offs = 0x0010,
3379 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3380 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3381 SYSC_HAS_SOFTRESET),
3382 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3383 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3385 .sysc_fields = &omap_hwmod_sysc_type2,
3388 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3390 .sysc = &omap44xx_mmc_sysc,
3394 static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3395 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
3398 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
3399 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
3400 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
3403 /* mmc1 master ports */
3404 static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
3405 &omap44xx_mmc1__l3_main_1,
3408 static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
3410 .pa_start = 0x4809c000,
3411 .pa_end = 0x4809c3ff,
3412 .flags = ADDR_TYPE_RT
3416 /* l4_per -> mmc1 */
3417 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3418 .master = &omap44xx_l4_per_hwmod,
3419 .slave = &omap44xx_mmc1_hwmod,
3421 .addr = omap44xx_mmc1_addrs,
3422 .addr_cnt = ARRAY_SIZE(omap44xx_mmc1_addrs),
3423 .user = OCP_USER_MPU | OCP_USER_SDMA,
3426 /* mmc1 slave ports */
3427 static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3428 &omap44xx_l4_per__mmc1,
3431 static struct omap_hwmod omap44xx_mmc1_hwmod = {
3433 .class = &omap44xx_mmc_hwmod_class,
3434 .mpu_irqs = omap44xx_mmc1_irqs,
3435 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc1_irqs),
3436 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
3437 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc1_sdma_reqs),
3438 .main_clk = "mmc1_fck",
3441 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
3444 .slaves = omap44xx_mmc1_slaves,
3445 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3446 .masters = omap44xx_mmc1_masters,
3447 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
3448 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3452 static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3453 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
3456 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
3457 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
3458 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
3461 /* mmc2 master ports */
3462 static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
3463 &omap44xx_mmc2__l3_main_1,
3466 static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
3468 .pa_start = 0x480b4000,
3469 .pa_end = 0x480b43ff,
3470 .flags = ADDR_TYPE_RT
3474 /* l4_per -> mmc2 */
3475 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3476 .master = &omap44xx_l4_per_hwmod,
3477 .slave = &omap44xx_mmc2_hwmod,
3479 .addr = omap44xx_mmc2_addrs,
3480 .addr_cnt = ARRAY_SIZE(omap44xx_mmc2_addrs),
3481 .user = OCP_USER_MPU | OCP_USER_SDMA,
3484 /* mmc2 slave ports */
3485 static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
3486 &omap44xx_l4_per__mmc2,
3489 static struct omap_hwmod omap44xx_mmc2_hwmod = {
3491 .class = &omap44xx_mmc_hwmod_class,
3492 .mpu_irqs = omap44xx_mmc2_irqs,
3493 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc2_irqs),
3494 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
3495 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc2_sdma_reqs),
3496 .main_clk = "mmc2_fck",
3499 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
3502 .slaves = omap44xx_mmc2_slaves,
3503 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3504 .masters = omap44xx_mmc2_masters,
3505 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
3506 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3510 static struct omap_hwmod omap44xx_mmc3_hwmod;
3511 static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3512 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
3515 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
3516 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
3517 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
3520 static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
3522 .pa_start = 0x480ad000,
3523 .pa_end = 0x480ad3ff,
3524 .flags = ADDR_TYPE_RT
3528 /* l4_per -> mmc3 */
3529 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3530 .master = &omap44xx_l4_per_hwmod,
3531 .slave = &omap44xx_mmc3_hwmod,
3533 .addr = omap44xx_mmc3_addrs,
3534 .addr_cnt = ARRAY_SIZE(omap44xx_mmc3_addrs),
3535 .user = OCP_USER_MPU | OCP_USER_SDMA,
3538 /* mmc3 slave ports */
3539 static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
3540 &omap44xx_l4_per__mmc3,
3543 static struct omap_hwmod omap44xx_mmc3_hwmod = {
3545 .class = &omap44xx_mmc_hwmod_class,
3546 .mpu_irqs = omap44xx_mmc3_irqs,
3547 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc3_irqs),
3548 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
3549 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc3_sdma_reqs),
3550 .main_clk = "mmc3_fck",
3553 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
3556 .slaves = omap44xx_mmc3_slaves,
3557 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
3558 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3562 static struct omap_hwmod omap44xx_mmc4_hwmod;
3563 static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3564 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
3567 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
3568 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
3569 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
3572 static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
3574 .pa_start = 0x480d1000,
3575 .pa_end = 0x480d13ff,
3576 .flags = ADDR_TYPE_RT
3580 /* l4_per -> mmc4 */
3581 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3582 .master = &omap44xx_l4_per_hwmod,
3583 .slave = &omap44xx_mmc4_hwmod,
3585 .addr = omap44xx_mmc4_addrs,
3586 .addr_cnt = ARRAY_SIZE(omap44xx_mmc4_addrs),
3587 .user = OCP_USER_MPU | OCP_USER_SDMA,
3590 /* mmc4 slave ports */
3591 static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
3592 &omap44xx_l4_per__mmc4,
3595 static struct omap_hwmod omap44xx_mmc4_hwmod = {
3597 .class = &omap44xx_mmc_hwmod_class,
3598 .mpu_irqs = omap44xx_mmc4_irqs,
3599 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc4_irqs),
3600 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
3601 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc4_sdma_reqs),
3602 .main_clk = "mmc4_fck",
3605 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD4_CLKCTRL,
3608 .slaves = omap44xx_mmc4_slaves,
3609 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
3610 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3614 static struct omap_hwmod omap44xx_mmc5_hwmod;
3615 static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
3616 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
3619 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3620 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3621 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
3624 static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3626 .pa_start = 0x480d5000,
3627 .pa_end = 0x480d53ff,
3628 .flags = ADDR_TYPE_RT
3632 /* l4_per -> mmc5 */
3633 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3634 .master = &omap44xx_l4_per_hwmod,
3635 .slave = &omap44xx_mmc5_hwmod,
3637 .addr = omap44xx_mmc5_addrs,
3638 .addr_cnt = ARRAY_SIZE(omap44xx_mmc5_addrs),
3639 .user = OCP_USER_MPU | OCP_USER_SDMA,
3642 /* mmc5 slave ports */
3643 static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3644 &omap44xx_l4_per__mmc5,
3647 static struct omap_hwmod omap44xx_mmc5_hwmod = {
3649 .class = &omap44xx_mmc_hwmod_class,
3650 .mpu_irqs = omap44xx_mmc5_irqs,
3651 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc5_irqs),
3652 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
3653 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc5_sdma_reqs),
3654 .main_clk = "mmc5_fck",
3657 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD5_CLKCTRL,
3660 .slaves = omap44xx_mmc5_slaves,
3661 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
3662 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3670 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
3675 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
3676 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
3677 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
3678 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
3681 /* mpu master ports */
3682 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3683 &omap44xx_mpu__l3_main_1,
3684 &omap44xx_mpu__l4_abe,
3688 static struct omap_hwmod omap44xx_mpu_hwmod = {
3690 .class = &omap44xx_mpu_hwmod_class,
3691 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
3692 .mpu_irqs = omap44xx_mpu_irqs,
3693 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
3694 .main_clk = "dpll_mpu_m2_ck",
3697 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
3700 .masters = omap44xx_mpu_masters,
3701 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
3702 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3706 * 'smartreflex' class
3707 * smartreflex module (monitor silicon performance and outputs a measure of
3708 * performance error)
3711 /* The IP is not compliant to type1 / type2 scheme */
3712 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
3717 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
3718 .sysc_offs = 0x0038,
3719 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
3720 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3722 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
3725 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
3726 .name = "smartreflex",
3727 .sysc = &omap44xx_smartreflex_sysc,
3731 /* smartreflex_core */
3732 static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
3733 static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
3734 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
3737 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3739 .pa_start = 0x4a0dd000,
3740 .pa_end = 0x4a0dd03f,
3741 .flags = ADDR_TYPE_RT
3745 /* l4_cfg -> smartreflex_core */
3746 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3747 .master = &omap44xx_l4_cfg_hwmod,
3748 .slave = &omap44xx_smartreflex_core_hwmod,
3750 .addr = omap44xx_smartreflex_core_addrs,
3751 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
3752 .user = OCP_USER_MPU | OCP_USER_SDMA,
3755 /* smartreflex_core slave ports */
3756 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3757 &omap44xx_l4_cfg__smartreflex_core,
3760 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3761 .name = "smartreflex_core",
3762 .class = &omap44xx_smartreflex_hwmod_class,
3763 .mpu_irqs = omap44xx_smartreflex_core_irqs,
3764 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
3765 .main_clk = "smartreflex_core_fck",
3769 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
3772 .slaves = omap44xx_smartreflex_core_slaves,
3773 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
3774 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3777 /* smartreflex_iva */
3778 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
3779 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3780 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
3783 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
3785 .pa_start = 0x4a0db000,
3786 .pa_end = 0x4a0db03f,
3787 .flags = ADDR_TYPE_RT
3791 /* l4_cfg -> smartreflex_iva */
3792 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3793 .master = &omap44xx_l4_cfg_hwmod,
3794 .slave = &omap44xx_smartreflex_iva_hwmod,
3796 .addr = omap44xx_smartreflex_iva_addrs,
3797 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
3798 .user = OCP_USER_MPU | OCP_USER_SDMA,
3801 /* smartreflex_iva slave ports */
3802 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
3803 &omap44xx_l4_cfg__smartreflex_iva,
3806 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3807 .name = "smartreflex_iva",
3808 .class = &omap44xx_smartreflex_hwmod_class,
3809 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
3810 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
3811 .main_clk = "smartreflex_iva_fck",
3815 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
3818 .slaves = omap44xx_smartreflex_iva_slaves,
3819 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
3820 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3823 /* smartreflex_mpu */
3824 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
3825 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3826 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
3829 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
3831 .pa_start = 0x4a0d9000,
3832 .pa_end = 0x4a0d903f,
3833 .flags = ADDR_TYPE_RT
3837 /* l4_cfg -> smartreflex_mpu */
3838 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3839 .master = &omap44xx_l4_cfg_hwmod,
3840 .slave = &omap44xx_smartreflex_mpu_hwmod,
3842 .addr = omap44xx_smartreflex_mpu_addrs,
3843 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
3844 .user = OCP_USER_MPU | OCP_USER_SDMA,
3847 /* smartreflex_mpu slave ports */
3848 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
3849 &omap44xx_l4_cfg__smartreflex_mpu,
3852 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3853 .name = "smartreflex_mpu",
3854 .class = &omap44xx_smartreflex_hwmod_class,
3855 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
3856 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
3857 .main_clk = "smartreflex_mpu_fck",
3861 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
3864 .slaves = omap44xx_smartreflex_mpu_slaves,
3865 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
3866 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3871 * spinlock provides hardware assistance for synchronizing the processes
3872 * running on multiple processors
3875 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3877 .sysc_offs = 0x0010,
3878 .syss_offs = 0x0014,
3879 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3880 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3881 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3882 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3884 .sysc_fields = &omap_hwmod_sysc_type1,
3887 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3889 .sysc = &omap44xx_spinlock_sysc,
3893 static struct omap_hwmod omap44xx_spinlock_hwmod;
3894 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
3896 .pa_start = 0x4a0f6000,
3897 .pa_end = 0x4a0f6fff,
3898 .flags = ADDR_TYPE_RT
3902 /* l4_cfg -> spinlock */
3903 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3904 .master = &omap44xx_l4_cfg_hwmod,
3905 .slave = &omap44xx_spinlock_hwmod,
3907 .addr = omap44xx_spinlock_addrs,
3908 .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
3909 .user = OCP_USER_MPU | OCP_USER_SDMA,
3912 /* spinlock slave ports */
3913 static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
3914 &omap44xx_l4_cfg__spinlock,
3917 static struct omap_hwmod omap44xx_spinlock_hwmod = {
3919 .class = &omap44xx_spinlock_hwmod_class,
3922 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
3925 .slaves = omap44xx_spinlock_slaves,
3926 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
3927 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3932 * general purpose timer module with accurate 1ms tick
3933 * This class contains several variants: ['timer_1ms', 'timer']
3936 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3938 .sysc_offs = 0x0010,
3939 .syss_offs = 0x0014,
3940 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3941 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3942 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3943 SYSS_HAS_RESET_STATUS),
3944 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3945 .sysc_fields = &omap_hwmod_sysc_type1,
3948 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3950 .sysc = &omap44xx_timer_1ms_sysc,
3953 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
3955 .sysc_offs = 0x0010,
3956 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3957 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3958 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3960 .sysc_fields = &omap_hwmod_sysc_type2,
3963 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
3965 .sysc = &omap44xx_timer_sysc,
3969 static struct omap_hwmod omap44xx_timer1_hwmod;
3970 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
3971 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
3974 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
3976 .pa_start = 0x4a318000,
3977 .pa_end = 0x4a31807f,
3978 .flags = ADDR_TYPE_RT
3982 /* l4_wkup -> timer1 */
3983 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
3984 .master = &omap44xx_l4_wkup_hwmod,
3985 .slave = &omap44xx_timer1_hwmod,
3986 .clk = "l4_wkup_clk_mux_ck",
3987 .addr = omap44xx_timer1_addrs,
3988 .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
3989 .user = OCP_USER_MPU | OCP_USER_SDMA,
3992 /* timer1 slave ports */
3993 static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
3994 &omap44xx_l4_wkup__timer1,
3997 static struct omap_hwmod omap44xx_timer1_hwmod = {
3999 .class = &omap44xx_timer_1ms_hwmod_class,
4000 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
4001 .mpu_irqs = omap44xx_timer1_irqs,
4002 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
4003 .main_clk = "timer1_fck",
4006 .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
4009 .slaves = omap44xx_timer1_slaves,
4010 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
4011 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4015 static struct omap_hwmod omap44xx_timer2_hwmod;
4016 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4017 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
4020 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4022 .pa_start = 0x48032000,
4023 .pa_end = 0x4803207f,
4024 .flags = ADDR_TYPE_RT
4028 /* l4_per -> timer2 */
4029 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4030 .master = &omap44xx_l4_per_hwmod,
4031 .slave = &omap44xx_timer2_hwmod,
4033 .addr = omap44xx_timer2_addrs,
4034 .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
4035 .user = OCP_USER_MPU | OCP_USER_SDMA,
4038 /* timer2 slave ports */
4039 static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4040 &omap44xx_l4_per__timer2,
4043 static struct omap_hwmod omap44xx_timer2_hwmod = {
4045 .class = &omap44xx_timer_1ms_hwmod_class,
4046 .mpu_irqs = omap44xx_timer2_irqs,
4047 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
4048 .main_clk = "timer2_fck",
4051 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
4054 .slaves = omap44xx_timer2_slaves,
4055 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
4056 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4060 static struct omap_hwmod omap44xx_timer3_hwmod;
4061 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4062 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
4065 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4067 .pa_start = 0x48034000,
4068 .pa_end = 0x4803407f,
4069 .flags = ADDR_TYPE_RT
4073 /* l4_per -> timer3 */
4074 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4075 .master = &omap44xx_l4_per_hwmod,
4076 .slave = &omap44xx_timer3_hwmod,
4078 .addr = omap44xx_timer3_addrs,
4079 .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
4080 .user = OCP_USER_MPU | OCP_USER_SDMA,
4083 /* timer3 slave ports */
4084 static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4085 &omap44xx_l4_per__timer3,
4088 static struct omap_hwmod omap44xx_timer3_hwmod = {
4090 .class = &omap44xx_timer_hwmod_class,
4091 .mpu_irqs = omap44xx_timer3_irqs,
4092 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
4093 .main_clk = "timer3_fck",
4096 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
4099 .slaves = omap44xx_timer3_slaves,
4100 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
4101 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4105 static struct omap_hwmod omap44xx_timer4_hwmod;
4106 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4107 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
4110 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4112 .pa_start = 0x48036000,
4113 .pa_end = 0x4803607f,
4114 .flags = ADDR_TYPE_RT
4118 /* l4_per -> timer4 */
4119 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4120 .master = &omap44xx_l4_per_hwmod,
4121 .slave = &omap44xx_timer4_hwmod,
4123 .addr = omap44xx_timer4_addrs,
4124 .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
4125 .user = OCP_USER_MPU | OCP_USER_SDMA,
4128 /* timer4 slave ports */
4129 static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4130 &omap44xx_l4_per__timer4,
4133 static struct omap_hwmod omap44xx_timer4_hwmod = {
4135 .class = &omap44xx_timer_hwmod_class,
4136 .mpu_irqs = omap44xx_timer4_irqs,
4137 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
4138 .main_clk = "timer4_fck",
4141 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
4144 .slaves = omap44xx_timer4_slaves,
4145 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
4146 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4150 static struct omap_hwmod omap44xx_timer5_hwmod;
4151 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4152 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
4155 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4157 .pa_start = 0x40138000,
4158 .pa_end = 0x4013807f,
4159 .flags = ADDR_TYPE_RT
4163 /* l4_abe -> timer5 */
4164 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4165 .master = &omap44xx_l4_abe_hwmod,
4166 .slave = &omap44xx_timer5_hwmod,
4167 .clk = "ocp_abe_iclk",
4168 .addr = omap44xx_timer5_addrs,
4169 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
4170 .user = OCP_USER_MPU,
4173 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4175 .pa_start = 0x49038000,
4176 .pa_end = 0x4903807f,
4177 .flags = ADDR_TYPE_RT
4181 /* l4_abe -> timer5 (dma) */
4182 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4183 .master = &omap44xx_l4_abe_hwmod,
4184 .slave = &omap44xx_timer5_hwmod,
4185 .clk = "ocp_abe_iclk",
4186 .addr = omap44xx_timer5_dma_addrs,
4187 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
4188 .user = OCP_USER_SDMA,
4191 /* timer5 slave ports */
4192 static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4193 &omap44xx_l4_abe__timer5,
4194 &omap44xx_l4_abe__timer5_dma,
4197 static struct omap_hwmod omap44xx_timer5_hwmod = {
4199 .class = &omap44xx_timer_hwmod_class,
4200 .mpu_irqs = omap44xx_timer5_irqs,
4201 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
4202 .main_clk = "timer5_fck",
4205 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
4208 .slaves = omap44xx_timer5_slaves,
4209 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
4210 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4214 static struct omap_hwmod omap44xx_timer6_hwmod;
4215 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4216 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
4219 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4221 .pa_start = 0x4013a000,
4222 .pa_end = 0x4013a07f,
4223 .flags = ADDR_TYPE_RT
4227 /* l4_abe -> timer6 */
4228 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4229 .master = &omap44xx_l4_abe_hwmod,
4230 .slave = &omap44xx_timer6_hwmod,
4231 .clk = "ocp_abe_iclk",
4232 .addr = omap44xx_timer6_addrs,
4233 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
4234 .user = OCP_USER_MPU,
4237 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4239 .pa_start = 0x4903a000,
4240 .pa_end = 0x4903a07f,
4241 .flags = ADDR_TYPE_RT
4245 /* l4_abe -> timer6 (dma) */
4246 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4247 .master = &omap44xx_l4_abe_hwmod,
4248 .slave = &omap44xx_timer6_hwmod,
4249 .clk = "ocp_abe_iclk",
4250 .addr = omap44xx_timer6_dma_addrs,
4251 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
4252 .user = OCP_USER_SDMA,
4255 /* timer6 slave ports */
4256 static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4257 &omap44xx_l4_abe__timer6,
4258 &omap44xx_l4_abe__timer6_dma,
4261 static struct omap_hwmod omap44xx_timer6_hwmod = {
4263 .class = &omap44xx_timer_hwmod_class,
4264 .mpu_irqs = omap44xx_timer6_irqs,
4265 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
4266 .main_clk = "timer6_fck",
4269 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
4272 .slaves = omap44xx_timer6_slaves,
4273 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
4274 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4278 static struct omap_hwmod omap44xx_timer7_hwmod;
4279 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4280 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
4283 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4285 .pa_start = 0x4013c000,
4286 .pa_end = 0x4013c07f,
4287 .flags = ADDR_TYPE_RT
4291 /* l4_abe -> timer7 */
4292 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4293 .master = &omap44xx_l4_abe_hwmod,
4294 .slave = &omap44xx_timer7_hwmod,
4295 .clk = "ocp_abe_iclk",
4296 .addr = omap44xx_timer7_addrs,
4297 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
4298 .user = OCP_USER_MPU,
4301 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4303 .pa_start = 0x4903c000,
4304 .pa_end = 0x4903c07f,
4305 .flags = ADDR_TYPE_RT
4309 /* l4_abe -> timer7 (dma) */
4310 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4311 .master = &omap44xx_l4_abe_hwmod,
4312 .slave = &omap44xx_timer7_hwmod,
4313 .clk = "ocp_abe_iclk",
4314 .addr = omap44xx_timer7_dma_addrs,
4315 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
4316 .user = OCP_USER_SDMA,
4319 /* timer7 slave ports */
4320 static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4321 &omap44xx_l4_abe__timer7,
4322 &omap44xx_l4_abe__timer7_dma,
4325 static struct omap_hwmod omap44xx_timer7_hwmod = {
4327 .class = &omap44xx_timer_hwmod_class,
4328 .mpu_irqs = omap44xx_timer7_irqs,
4329 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
4330 .main_clk = "timer7_fck",
4333 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
4336 .slaves = omap44xx_timer7_slaves,
4337 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
4338 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4342 static struct omap_hwmod omap44xx_timer8_hwmod;
4343 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4344 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
4347 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4349 .pa_start = 0x4013e000,
4350 .pa_end = 0x4013e07f,
4351 .flags = ADDR_TYPE_RT
4355 /* l4_abe -> timer8 */
4356 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4357 .master = &omap44xx_l4_abe_hwmod,
4358 .slave = &omap44xx_timer8_hwmod,
4359 .clk = "ocp_abe_iclk",
4360 .addr = omap44xx_timer8_addrs,
4361 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
4362 .user = OCP_USER_MPU,
4365 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4367 .pa_start = 0x4903e000,
4368 .pa_end = 0x4903e07f,
4369 .flags = ADDR_TYPE_RT
4373 /* l4_abe -> timer8 (dma) */
4374 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4375 .master = &omap44xx_l4_abe_hwmod,
4376 .slave = &omap44xx_timer8_hwmod,
4377 .clk = "ocp_abe_iclk",
4378 .addr = omap44xx_timer8_dma_addrs,
4379 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
4380 .user = OCP_USER_SDMA,
4383 /* timer8 slave ports */
4384 static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4385 &omap44xx_l4_abe__timer8,
4386 &omap44xx_l4_abe__timer8_dma,
4389 static struct omap_hwmod omap44xx_timer8_hwmod = {
4391 .class = &omap44xx_timer_hwmod_class,
4392 .mpu_irqs = omap44xx_timer8_irqs,
4393 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
4394 .main_clk = "timer8_fck",
4397 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
4400 .slaves = omap44xx_timer8_slaves,
4401 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
4402 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4406 static struct omap_hwmod omap44xx_timer9_hwmod;
4407 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4408 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
4411 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4413 .pa_start = 0x4803e000,
4414 .pa_end = 0x4803e07f,
4415 .flags = ADDR_TYPE_RT
4419 /* l4_per -> timer9 */
4420 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4421 .master = &omap44xx_l4_per_hwmod,
4422 .slave = &omap44xx_timer9_hwmod,
4424 .addr = omap44xx_timer9_addrs,
4425 .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
4426 .user = OCP_USER_MPU | OCP_USER_SDMA,
4429 /* timer9 slave ports */
4430 static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4431 &omap44xx_l4_per__timer9,
4434 static struct omap_hwmod omap44xx_timer9_hwmod = {
4436 .class = &omap44xx_timer_hwmod_class,
4437 .mpu_irqs = omap44xx_timer9_irqs,
4438 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
4439 .main_clk = "timer9_fck",
4442 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
4445 .slaves = omap44xx_timer9_slaves,
4446 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
4447 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4451 static struct omap_hwmod omap44xx_timer10_hwmod;
4452 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4453 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
4456 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4458 .pa_start = 0x48086000,
4459 .pa_end = 0x4808607f,
4460 .flags = ADDR_TYPE_RT
4464 /* l4_per -> timer10 */
4465 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4466 .master = &omap44xx_l4_per_hwmod,
4467 .slave = &omap44xx_timer10_hwmod,
4469 .addr = omap44xx_timer10_addrs,
4470 .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
4471 .user = OCP_USER_MPU | OCP_USER_SDMA,
4474 /* timer10 slave ports */
4475 static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4476 &omap44xx_l4_per__timer10,
4479 static struct omap_hwmod omap44xx_timer10_hwmod = {
4481 .class = &omap44xx_timer_1ms_hwmod_class,
4482 .mpu_irqs = omap44xx_timer10_irqs,
4483 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
4484 .main_clk = "timer10_fck",
4487 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
4490 .slaves = omap44xx_timer10_slaves,
4491 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
4492 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4496 static struct omap_hwmod omap44xx_timer11_hwmod;
4497 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4498 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
4501 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4503 .pa_start = 0x48088000,
4504 .pa_end = 0x4808807f,
4505 .flags = ADDR_TYPE_RT
4509 /* l4_per -> timer11 */
4510 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4511 .master = &omap44xx_l4_per_hwmod,
4512 .slave = &omap44xx_timer11_hwmod,
4514 .addr = omap44xx_timer11_addrs,
4515 .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
4516 .user = OCP_USER_MPU | OCP_USER_SDMA,
4519 /* timer11 slave ports */
4520 static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4521 &omap44xx_l4_per__timer11,
4524 static struct omap_hwmod omap44xx_timer11_hwmod = {
4526 .class = &omap44xx_timer_hwmod_class,
4527 .mpu_irqs = omap44xx_timer11_irqs,
4528 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
4529 .main_clk = "timer11_fck",
4532 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
4535 .slaves = omap44xx_timer11_slaves,
4536 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
4537 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4542 * universal asynchronous receiver/transmitter (uart)
4545 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4547 .sysc_offs = 0x0054,
4548 .syss_offs = 0x0058,
4549 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4550 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4551 SYSS_HAS_RESET_STATUS),
4552 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4554 .sysc_fields = &omap_hwmod_sysc_type1,
4557 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
4559 .sysc = &omap44xx_uart_sysc,
4563 static struct omap_hwmod omap44xx_uart1_hwmod;
4564 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4565 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
4568 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4569 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4570 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
4573 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4575 .pa_start = 0x4806a000,
4576 .pa_end = 0x4806a0ff,
4577 .flags = ADDR_TYPE_RT
4581 /* l4_per -> uart1 */
4582 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4583 .master = &omap44xx_l4_per_hwmod,
4584 .slave = &omap44xx_uart1_hwmod,
4586 .addr = omap44xx_uart1_addrs,
4587 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
4588 .user = OCP_USER_MPU | OCP_USER_SDMA,
4591 /* uart1 slave ports */
4592 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4593 &omap44xx_l4_per__uart1,
4596 static struct omap_hwmod omap44xx_uart1_hwmod = {
4598 .class = &omap44xx_uart_hwmod_class,
4599 .mpu_irqs = omap44xx_uart1_irqs,
4600 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
4601 .sdma_reqs = omap44xx_uart1_sdma_reqs,
4602 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
4603 .main_clk = "uart1_fck",
4606 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
4609 .slaves = omap44xx_uart1_slaves,
4610 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
4611 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4615 static struct omap_hwmod omap44xx_uart2_hwmod;
4616 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4617 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
4620 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4621 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4622 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
4625 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4627 .pa_start = 0x4806c000,
4628 .pa_end = 0x4806c0ff,
4629 .flags = ADDR_TYPE_RT
4633 /* l4_per -> uart2 */
4634 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4635 .master = &omap44xx_l4_per_hwmod,
4636 .slave = &omap44xx_uart2_hwmod,
4638 .addr = omap44xx_uart2_addrs,
4639 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
4640 .user = OCP_USER_MPU | OCP_USER_SDMA,
4643 /* uart2 slave ports */
4644 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4645 &omap44xx_l4_per__uart2,
4648 static struct omap_hwmod omap44xx_uart2_hwmod = {
4650 .class = &omap44xx_uart_hwmod_class,
4651 .mpu_irqs = omap44xx_uart2_irqs,
4652 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
4653 .sdma_reqs = omap44xx_uart2_sdma_reqs,
4654 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
4655 .main_clk = "uart2_fck",
4658 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
4661 .slaves = omap44xx_uart2_slaves,
4662 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
4663 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4667 static struct omap_hwmod omap44xx_uart3_hwmod;
4668 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4669 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
4672 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4673 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4674 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
4677 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4679 .pa_start = 0x48020000,
4680 .pa_end = 0x480200ff,
4681 .flags = ADDR_TYPE_RT
4685 /* l4_per -> uart3 */
4686 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4687 .master = &omap44xx_l4_per_hwmod,
4688 .slave = &omap44xx_uart3_hwmod,
4690 .addr = omap44xx_uart3_addrs,
4691 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
4692 .user = OCP_USER_MPU | OCP_USER_SDMA,
4695 /* uart3 slave ports */
4696 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4697 &omap44xx_l4_per__uart3,
4700 static struct omap_hwmod omap44xx_uart3_hwmod = {
4702 .class = &omap44xx_uart_hwmod_class,
4703 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
4704 .mpu_irqs = omap44xx_uart3_irqs,
4705 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
4706 .sdma_reqs = omap44xx_uart3_sdma_reqs,
4707 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
4708 .main_clk = "uart3_fck",
4711 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
4714 .slaves = omap44xx_uart3_slaves,
4715 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
4716 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4720 static struct omap_hwmod omap44xx_uart4_hwmod;
4721 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
4722 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
4725 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
4726 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
4727 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
4730 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
4732 .pa_start = 0x4806e000,
4733 .pa_end = 0x4806e0ff,
4734 .flags = ADDR_TYPE_RT
4738 /* l4_per -> uart4 */
4739 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4740 .master = &omap44xx_l4_per_hwmod,
4741 .slave = &omap44xx_uart4_hwmod,
4743 .addr = omap44xx_uart4_addrs,
4744 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
4745 .user = OCP_USER_MPU | OCP_USER_SDMA,
4748 /* uart4 slave ports */
4749 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
4750 &omap44xx_l4_per__uart4,
4753 static struct omap_hwmod omap44xx_uart4_hwmod = {
4755 .class = &omap44xx_uart_hwmod_class,
4756 .mpu_irqs = omap44xx_uart4_irqs,
4757 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
4758 .sdma_reqs = omap44xx_uart4_sdma_reqs,
4759 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
4760 .main_clk = "uart4_fck",
4763 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
4766 .slaves = omap44xx_uart4_slaves,
4767 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
4768 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4772 * 'usb_otg_hs' class
4773 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
4776 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
4778 .sysc_offs = 0x0404,
4779 .syss_offs = 0x0408,
4780 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4781 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
4782 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4783 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4784 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
4786 .sysc_fields = &omap_hwmod_sysc_type1,
4789 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
4790 .name = "usb_otg_hs",
4791 .sysc = &omap44xx_usb_otg_hs_sysc,
4795 static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
4796 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
4797 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
4800 /* usb_otg_hs master ports */
4801 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
4802 &omap44xx_usb_otg_hs__l3_main_2,
4805 static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
4807 .pa_start = 0x4a0ab000,
4808 .pa_end = 0x4a0ab003,
4809 .flags = ADDR_TYPE_RT
4813 /* l4_cfg -> usb_otg_hs */
4814 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4815 .master = &omap44xx_l4_cfg_hwmod,
4816 .slave = &omap44xx_usb_otg_hs_hwmod,
4818 .addr = omap44xx_usb_otg_hs_addrs,
4819 .addr_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_addrs),
4820 .user = OCP_USER_MPU | OCP_USER_SDMA,
4823 /* usb_otg_hs slave ports */
4824 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
4825 &omap44xx_l4_cfg__usb_otg_hs,
4828 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
4829 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
4832 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
4833 .name = "usb_otg_hs",
4834 .class = &omap44xx_usb_otg_hs_hwmod_class,
4835 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
4836 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
4837 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_irqs),
4838 .main_clk = "usb_otg_hs_ick",
4841 .clkctrl_reg = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
4844 .opt_clks = usb_otg_hs_opt_clks,
4845 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
4846 .slaves = omap44xx_usb_otg_hs_slaves,
4847 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
4848 .masters = omap44xx_usb_otg_hs_masters,
4849 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
4850 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4855 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
4856 * overflow condition
4859 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
4861 .sysc_offs = 0x0010,
4862 .syss_offs = 0x0014,
4863 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
4864 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4865 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4867 .sysc_fields = &omap_hwmod_sysc_type1,
4870 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
4872 .sysc = &omap44xx_wd_timer_sysc,
4873 .pre_shutdown = &omap2_wd_timer_disable,
4877 static struct omap_hwmod omap44xx_wd_timer2_hwmod;
4878 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
4879 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
4882 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
4884 .pa_start = 0x4a314000,
4885 .pa_end = 0x4a31407f,
4886 .flags = ADDR_TYPE_RT
4890 /* l4_wkup -> wd_timer2 */
4891 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4892 .master = &omap44xx_l4_wkup_hwmod,
4893 .slave = &omap44xx_wd_timer2_hwmod,
4894 .clk = "l4_wkup_clk_mux_ck",
4895 .addr = omap44xx_wd_timer2_addrs,
4896 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
4897 .user = OCP_USER_MPU | OCP_USER_SDMA,
4900 /* wd_timer2 slave ports */
4901 static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
4902 &omap44xx_l4_wkup__wd_timer2,
4905 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
4906 .name = "wd_timer2",
4907 .class = &omap44xx_wd_timer_hwmod_class,
4908 .mpu_irqs = omap44xx_wd_timer2_irqs,
4909 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
4910 .main_clk = "wd_timer2_fck",
4913 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
4916 .slaves = omap44xx_wd_timer2_slaves,
4917 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
4918 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4922 static struct omap_hwmod omap44xx_wd_timer3_hwmod;
4923 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
4924 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
4927 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4929 .pa_start = 0x40130000,
4930 .pa_end = 0x4013007f,
4931 .flags = ADDR_TYPE_RT
4935 /* l4_abe -> wd_timer3 */
4936 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4937 .master = &omap44xx_l4_abe_hwmod,
4938 .slave = &omap44xx_wd_timer3_hwmod,
4939 .clk = "ocp_abe_iclk",
4940 .addr = omap44xx_wd_timer3_addrs,
4941 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
4942 .user = OCP_USER_MPU,
4945 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4947 .pa_start = 0x49030000,
4948 .pa_end = 0x4903007f,
4949 .flags = ADDR_TYPE_RT
4953 /* l4_abe -> wd_timer3 (dma) */
4954 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4955 .master = &omap44xx_l4_abe_hwmod,
4956 .slave = &omap44xx_wd_timer3_hwmod,
4957 .clk = "ocp_abe_iclk",
4958 .addr = omap44xx_wd_timer3_dma_addrs,
4959 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
4960 .user = OCP_USER_SDMA,
4963 /* wd_timer3 slave ports */
4964 static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
4965 &omap44xx_l4_abe__wd_timer3,
4966 &omap44xx_l4_abe__wd_timer3_dma,
4969 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
4970 .name = "wd_timer3",
4971 .class = &omap44xx_wd_timer_hwmod_class,
4972 .mpu_irqs = omap44xx_wd_timer3_irqs,
4973 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
4974 .main_clk = "wd_timer3_fck",
4977 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
4980 .slaves = omap44xx_wd_timer3_slaves,
4981 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
4982 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4985 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
4988 &omap44xx_dmm_hwmod,
4991 &omap44xx_emif_fw_hwmod,
4994 &omap44xx_l3_instr_hwmod,
4995 &omap44xx_l3_main_1_hwmod,
4996 &omap44xx_l3_main_2_hwmod,
4997 &omap44xx_l3_main_3_hwmod,
5000 &omap44xx_l4_abe_hwmod,
5001 &omap44xx_l4_cfg_hwmod,
5002 &omap44xx_l4_per_hwmod,
5003 &omap44xx_l4_wkup_hwmod,
5006 &omap44xx_mpu_private_hwmod,
5009 /* &omap44xx_aess_hwmod, */
5012 &omap44xx_bandgap_hwmod,
5015 /* &omap44xx_counter_32k_hwmod, */
5018 &omap44xx_dma_system_hwmod,
5021 &omap44xx_dmic_hwmod,
5024 &omap44xx_dsp_hwmod,
5025 &omap44xx_dsp_c0_hwmod,
5028 &omap44xx_dss_hwmod,
5029 &omap44xx_dss_dispc_hwmod,
5030 &omap44xx_dss_dsi1_hwmod,
5031 &omap44xx_dss_dsi2_hwmod,
5032 &omap44xx_dss_hdmi_hwmod,
5033 &omap44xx_dss_rfbi_hwmod,
5034 &omap44xx_dss_venc_hwmod,
5037 &omap44xx_gpio1_hwmod,
5038 &omap44xx_gpio2_hwmod,
5039 &omap44xx_gpio3_hwmod,
5040 &omap44xx_gpio4_hwmod,
5041 &omap44xx_gpio5_hwmod,
5042 &omap44xx_gpio6_hwmod,
5045 /* &omap44xx_hsi_hwmod, */
5048 &omap44xx_i2c1_hwmod,
5049 &omap44xx_i2c2_hwmod,
5050 &omap44xx_i2c3_hwmod,
5051 &omap44xx_i2c4_hwmod,
5054 &omap44xx_ipu_hwmod,
5055 &omap44xx_ipu_c0_hwmod,
5056 &omap44xx_ipu_c1_hwmod,
5059 /* &omap44xx_iss_hwmod, */
5062 &omap44xx_iva_hwmod,
5063 &omap44xx_iva_seq0_hwmod,
5064 &omap44xx_iva_seq1_hwmod,
5067 /* &omap44xx_kbd_hwmod, */
5070 &omap44xx_mailbox_hwmod,
5073 &omap44xx_mcbsp1_hwmod,
5074 &omap44xx_mcbsp2_hwmod,
5075 &omap44xx_mcbsp3_hwmod,
5076 &omap44xx_mcbsp4_hwmod,
5079 /* &omap44xx_mcpdm_hwmod, */
5082 &omap44xx_mcspi1_hwmod,
5083 &omap44xx_mcspi2_hwmod,
5084 &omap44xx_mcspi3_hwmod,
5085 &omap44xx_mcspi4_hwmod,
5088 /* &omap44xx_mmc1_hwmod, */
5089 /* &omap44xx_mmc2_hwmod, */
5090 /* &omap44xx_mmc3_hwmod, */
5091 /* &omap44xx_mmc4_hwmod, */
5092 /* &omap44xx_mmc5_hwmod, */
5095 &omap44xx_mpu_hwmod,
5097 /* smartreflex class */
5098 &omap44xx_smartreflex_core_hwmod,
5099 &omap44xx_smartreflex_iva_hwmod,
5100 &omap44xx_smartreflex_mpu_hwmod,
5102 /* spinlock class */
5103 &omap44xx_spinlock_hwmod,
5106 &omap44xx_timer1_hwmod,
5107 &omap44xx_timer2_hwmod,
5108 &omap44xx_timer3_hwmod,
5109 &omap44xx_timer4_hwmod,
5110 &omap44xx_timer5_hwmod,
5111 &omap44xx_timer6_hwmod,
5112 &omap44xx_timer7_hwmod,
5113 &omap44xx_timer8_hwmod,
5114 &omap44xx_timer9_hwmod,
5115 &omap44xx_timer10_hwmod,
5116 &omap44xx_timer11_hwmod,
5119 &omap44xx_uart1_hwmod,
5120 &omap44xx_uart2_hwmod,
5121 &omap44xx_uart3_hwmod,
5122 &omap44xx_uart4_hwmod,
5124 /* usb_otg_hs class */
5125 &omap44xx_usb_otg_hs_hwmod,
5127 /* wd_timer class */
5128 &omap44xx_wd_timer2_hwmod,
5129 &omap44xx_wd_timer3_hwmod,
5134 int __init omap44xx_hwmod_init(void)
5136 return omap_hwmod_init(omap44xx_hwmods);