2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2011 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2 as
18 * published by the Free Software Foundation.
23 #include <plat/omap_hwmod.h>
25 #include <plat/gpio.h>
27 #include <plat/mcspi.h>
28 #include <plat/mcbsp.h>
31 #include "omap_hwmod_common_data.h"
36 #include "prm-regbits-44xx.h"
39 /* Base offset for all OMAP4 interrupts external to MPUSS */
40 #define OMAP44XX_IRQ_GIC_START 32
42 /* Base offset for all OMAP4 dma requests */
43 #define OMAP44XX_DMA_REQ_START 1
45 /* Backward references (IPs with Bus Master capability) */
46 static struct omap_hwmod omap44xx_aess_hwmod;
47 static struct omap_hwmod omap44xx_dma_system_hwmod;
48 static struct omap_hwmod omap44xx_dmm_hwmod;
49 static struct omap_hwmod omap44xx_dsp_hwmod;
50 static struct omap_hwmod omap44xx_dss_hwmod;
51 static struct omap_hwmod omap44xx_emif_fw_hwmod;
52 static struct omap_hwmod omap44xx_hsi_hwmod;
53 static struct omap_hwmod omap44xx_ipu_hwmod;
54 static struct omap_hwmod omap44xx_iss_hwmod;
55 static struct omap_hwmod omap44xx_iva_hwmod;
56 static struct omap_hwmod omap44xx_l3_instr_hwmod;
57 static struct omap_hwmod omap44xx_l3_main_1_hwmod;
58 static struct omap_hwmod omap44xx_l3_main_2_hwmod;
59 static struct omap_hwmod omap44xx_l3_main_3_hwmod;
60 static struct omap_hwmod omap44xx_l4_abe_hwmod;
61 static struct omap_hwmod omap44xx_l4_cfg_hwmod;
62 static struct omap_hwmod omap44xx_l4_per_hwmod;
63 static struct omap_hwmod omap44xx_l4_wkup_hwmod;
64 static struct omap_hwmod omap44xx_mmc1_hwmod;
65 static struct omap_hwmod omap44xx_mmc2_hwmod;
66 static struct omap_hwmod omap44xx_mpu_hwmod;
67 static struct omap_hwmod omap44xx_mpu_private_hwmod;
68 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
71 * Interconnects omap_hwmod structures
72 * hwmods that compose the global OMAP interconnect
79 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
83 /* dmm interface data */
84 /* l3_main_1 -> dmm */
85 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
86 .master = &omap44xx_l3_main_1_hwmod,
87 .slave = &omap44xx_dmm_hwmod,
89 .user = OCP_USER_SDMA,
92 static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
94 .pa_start = 0x4e000000,
101 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
102 .master = &omap44xx_mpu_hwmod,
103 .slave = &omap44xx_dmm_hwmod,
105 .addr = omap44xx_dmm_addrs,
106 .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
107 .user = OCP_USER_MPU,
110 /* dmm slave ports */
111 static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
112 &omap44xx_l3_main_1__dmm,
116 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
117 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
120 static struct omap_hwmod omap44xx_dmm_hwmod = {
122 .class = &omap44xx_dmm_hwmod_class,
123 .slaves = omap44xx_dmm_slaves,
124 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
125 .mpu_irqs = omap44xx_dmm_irqs,
126 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
127 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
132 * instance(s): emif_fw
134 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
138 /* emif_fw interface data */
140 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
141 .master = &omap44xx_dmm_hwmod,
142 .slave = &omap44xx_emif_fw_hwmod,
144 .user = OCP_USER_MPU | OCP_USER_SDMA,
147 static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
149 .pa_start = 0x4a20c000,
150 .pa_end = 0x4a20c0ff,
151 .flags = ADDR_TYPE_RT
155 /* l4_cfg -> emif_fw */
156 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
157 .master = &omap44xx_l4_cfg_hwmod,
158 .slave = &omap44xx_emif_fw_hwmod,
160 .addr = omap44xx_emif_fw_addrs,
161 .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
162 .user = OCP_USER_MPU,
165 /* emif_fw slave ports */
166 static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
167 &omap44xx_dmm__emif_fw,
168 &omap44xx_l4_cfg__emif_fw,
171 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
173 .class = &omap44xx_emif_fw_hwmod_class,
174 .slaves = omap44xx_emif_fw_slaves,
175 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
176 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
181 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
183 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
187 /* l3_instr interface data */
188 /* iva -> l3_instr */
189 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
190 .master = &omap44xx_iva_hwmod,
191 .slave = &omap44xx_l3_instr_hwmod,
193 .user = OCP_USER_MPU | OCP_USER_SDMA,
196 /* l3_main_3 -> l3_instr */
197 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
198 .master = &omap44xx_l3_main_3_hwmod,
199 .slave = &omap44xx_l3_instr_hwmod,
201 .user = OCP_USER_MPU | OCP_USER_SDMA,
204 /* l3_instr slave ports */
205 static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
206 &omap44xx_iva__l3_instr,
207 &omap44xx_l3_main_3__l3_instr,
210 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
212 .class = &omap44xx_l3_hwmod_class,
213 .slaves = omap44xx_l3_instr_slaves,
214 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
215 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
218 /* l3_main_1 interface data */
219 /* dsp -> l3_main_1 */
220 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
221 .master = &omap44xx_dsp_hwmod,
222 .slave = &omap44xx_l3_main_1_hwmod,
224 .user = OCP_USER_MPU | OCP_USER_SDMA,
227 /* dss -> l3_main_1 */
228 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
229 .master = &omap44xx_dss_hwmod,
230 .slave = &omap44xx_l3_main_1_hwmod,
232 .user = OCP_USER_MPU | OCP_USER_SDMA,
235 /* l3_main_2 -> l3_main_1 */
236 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
237 .master = &omap44xx_l3_main_2_hwmod,
238 .slave = &omap44xx_l3_main_1_hwmod,
240 .user = OCP_USER_MPU | OCP_USER_SDMA,
243 /* l4_cfg -> l3_main_1 */
244 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
245 .master = &omap44xx_l4_cfg_hwmod,
246 .slave = &omap44xx_l3_main_1_hwmod,
248 .user = OCP_USER_MPU | OCP_USER_SDMA,
251 /* mmc1 -> l3_main_1 */
252 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
253 .master = &omap44xx_mmc1_hwmod,
254 .slave = &omap44xx_l3_main_1_hwmod,
256 .user = OCP_USER_MPU | OCP_USER_SDMA,
259 /* mmc2 -> l3_main_1 */
260 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
261 .master = &omap44xx_mmc2_hwmod,
262 .slave = &omap44xx_l3_main_1_hwmod,
264 .user = OCP_USER_MPU | OCP_USER_SDMA,
267 /* mpu -> l3_main_1 */
268 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
269 .master = &omap44xx_mpu_hwmod,
270 .slave = &omap44xx_l3_main_1_hwmod,
272 .user = OCP_USER_MPU | OCP_USER_SDMA,
275 /* l3_main_1 slave ports */
276 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
277 &omap44xx_dsp__l3_main_1,
278 &omap44xx_dss__l3_main_1,
279 &omap44xx_l3_main_2__l3_main_1,
280 &omap44xx_l4_cfg__l3_main_1,
281 &omap44xx_mmc1__l3_main_1,
282 &omap44xx_mmc2__l3_main_1,
283 &omap44xx_mpu__l3_main_1,
286 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
288 .class = &omap44xx_l3_hwmod_class,
289 .slaves = omap44xx_l3_main_1_slaves,
290 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
291 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
294 /* l3_main_2 interface data */
295 /* dma_system -> l3_main_2 */
296 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
297 .master = &omap44xx_dma_system_hwmod,
298 .slave = &omap44xx_l3_main_2_hwmod,
300 .user = OCP_USER_MPU | OCP_USER_SDMA,
303 /* hsi -> l3_main_2 */
304 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
305 .master = &omap44xx_hsi_hwmod,
306 .slave = &omap44xx_l3_main_2_hwmod,
308 .user = OCP_USER_MPU | OCP_USER_SDMA,
311 /* ipu -> l3_main_2 */
312 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
313 .master = &omap44xx_ipu_hwmod,
314 .slave = &omap44xx_l3_main_2_hwmod,
316 .user = OCP_USER_MPU | OCP_USER_SDMA,
319 /* iss -> l3_main_2 */
320 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
321 .master = &omap44xx_iss_hwmod,
322 .slave = &omap44xx_l3_main_2_hwmod,
324 .user = OCP_USER_MPU | OCP_USER_SDMA,
327 /* iva -> l3_main_2 */
328 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
329 .master = &omap44xx_iva_hwmod,
330 .slave = &omap44xx_l3_main_2_hwmod,
332 .user = OCP_USER_MPU | OCP_USER_SDMA,
335 /* l3_main_1 -> l3_main_2 */
336 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
337 .master = &omap44xx_l3_main_1_hwmod,
338 .slave = &omap44xx_l3_main_2_hwmod,
340 .user = OCP_USER_MPU | OCP_USER_SDMA,
343 /* l4_cfg -> l3_main_2 */
344 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
345 .master = &omap44xx_l4_cfg_hwmod,
346 .slave = &omap44xx_l3_main_2_hwmod,
348 .user = OCP_USER_MPU | OCP_USER_SDMA,
351 /* usb_otg_hs -> l3_main_2 */
352 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
353 .master = &omap44xx_usb_otg_hs_hwmod,
354 .slave = &omap44xx_l3_main_2_hwmod,
356 .user = OCP_USER_MPU | OCP_USER_SDMA,
359 /* l3_main_2 slave ports */
360 static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
361 &omap44xx_dma_system__l3_main_2,
362 &omap44xx_hsi__l3_main_2,
363 &omap44xx_ipu__l3_main_2,
364 &omap44xx_iss__l3_main_2,
365 &omap44xx_iva__l3_main_2,
366 &omap44xx_l3_main_1__l3_main_2,
367 &omap44xx_l4_cfg__l3_main_2,
368 &omap44xx_usb_otg_hs__l3_main_2,
371 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
373 .class = &omap44xx_l3_hwmod_class,
374 .slaves = omap44xx_l3_main_2_slaves,
375 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
376 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
379 /* l3_main_3 interface data */
380 /* l3_main_1 -> l3_main_3 */
381 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
382 .master = &omap44xx_l3_main_1_hwmod,
383 .slave = &omap44xx_l3_main_3_hwmod,
385 .user = OCP_USER_MPU | OCP_USER_SDMA,
388 /* l3_main_2 -> l3_main_3 */
389 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
390 .master = &omap44xx_l3_main_2_hwmod,
391 .slave = &omap44xx_l3_main_3_hwmod,
393 .user = OCP_USER_MPU | OCP_USER_SDMA,
396 /* l4_cfg -> l3_main_3 */
397 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
398 .master = &omap44xx_l4_cfg_hwmod,
399 .slave = &omap44xx_l3_main_3_hwmod,
401 .user = OCP_USER_MPU | OCP_USER_SDMA,
404 /* l3_main_3 slave ports */
405 static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
406 &omap44xx_l3_main_1__l3_main_3,
407 &omap44xx_l3_main_2__l3_main_3,
408 &omap44xx_l4_cfg__l3_main_3,
411 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
413 .class = &omap44xx_l3_hwmod_class,
414 .slaves = omap44xx_l3_main_3_slaves,
415 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
416 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
421 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
423 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
427 /* l4_abe interface data */
429 static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
430 .master = &omap44xx_aess_hwmod,
431 .slave = &omap44xx_l4_abe_hwmod,
432 .clk = "ocp_abe_iclk",
433 .user = OCP_USER_MPU | OCP_USER_SDMA,
437 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
438 .master = &omap44xx_dsp_hwmod,
439 .slave = &omap44xx_l4_abe_hwmod,
440 .clk = "ocp_abe_iclk",
441 .user = OCP_USER_MPU | OCP_USER_SDMA,
444 /* l3_main_1 -> l4_abe */
445 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
446 .master = &omap44xx_l3_main_1_hwmod,
447 .slave = &omap44xx_l4_abe_hwmod,
449 .user = OCP_USER_MPU | OCP_USER_SDMA,
453 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
454 .master = &omap44xx_mpu_hwmod,
455 .slave = &omap44xx_l4_abe_hwmod,
456 .clk = "ocp_abe_iclk",
457 .user = OCP_USER_MPU | OCP_USER_SDMA,
460 /* l4_abe slave ports */
461 static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
462 &omap44xx_aess__l4_abe,
463 &omap44xx_dsp__l4_abe,
464 &omap44xx_l3_main_1__l4_abe,
465 &omap44xx_mpu__l4_abe,
468 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
470 .class = &omap44xx_l4_hwmod_class,
471 .slaves = omap44xx_l4_abe_slaves,
472 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
473 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
476 /* l4_cfg interface data */
477 /* l3_main_1 -> l4_cfg */
478 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
479 .master = &omap44xx_l3_main_1_hwmod,
480 .slave = &omap44xx_l4_cfg_hwmod,
482 .user = OCP_USER_MPU | OCP_USER_SDMA,
485 /* l4_cfg slave ports */
486 static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
487 &omap44xx_l3_main_1__l4_cfg,
490 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
492 .class = &omap44xx_l4_hwmod_class,
493 .slaves = omap44xx_l4_cfg_slaves,
494 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
495 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
498 /* l4_per interface data */
499 /* l3_main_2 -> l4_per */
500 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
501 .master = &omap44xx_l3_main_2_hwmod,
502 .slave = &omap44xx_l4_per_hwmod,
504 .user = OCP_USER_MPU | OCP_USER_SDMA,
507 /* l4_per slave ports */
508 static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
509 &omap44xx_l3_main_2__l4_per,
512 static struct omap_hwmod omap44xx_l4_per_hwmod = {
514 .class = &omap44xx_l4_hwmod_class,
515 .slaves = omap44xx_l4_per_slaves,
516 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
517 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
520 /* l4_wkup interface data */
521 /* l4_cfg -> l4_wkup */
522 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
523 .master = &omap44xx_l4_cfg_hwmod,
524 .slave = &omap44xx_l4_wkup_hwmod,
526 .user = OCP_USER_MPU | OCP_USER_SDMA,
529 /* l4_wkup slave ports */
530 static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
531 &omap44xx_l4_cfg__l4_wkup,
534 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
536 .class = &omap44xx_l4_hwmod_class,
537 .slaves = omap44xx_l4_wkup_slaves,
538 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
539 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
544 * instance(s): mpu_private
546 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
550 /* mpu_private interface data */
551 /* mpu -> mpu_private */
552 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
553 .master = &omap44xx_mpu_hwmod,
554 .slave = &omap44xx_mpu_private_hwmod,
556 .user = OCP_USER_MPU | OCP_USER_SDMA,
559 /* mpu_private slave ports */
560 static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
561 &omap44xx_mpu__mpu_private,
564 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
565 .name = "mpu_private",
566 .class = &omap44xx_mpu_bus_hwmod_class,
567 .slaves = omap44xx_mpu_private_slaves,
568 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
569 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
573 * Modules omap_hwmod structures
575 * The following IPs are excluded for the moment because:
576 * - They do not need an explicit SW control using omap_hwmod API.
577 * - They still need to be validated with the driver
578 * properly adapted to omap_hwmod / omap_device
585 * ctrl_module_pad_core
586 * ctrl_module_pad_wkup
617 * audio engine sub system
620 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
623 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
624 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
625 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
626 .sysc_fields = &omap_hwmod_sysc_type2,
629 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
631 .sysc = &omap44xx_aess_sysc,
635 static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
636 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
639 static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
640 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
641 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
642 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
643 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
644 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
645 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
646 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
647 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
650 /* aess master ports */
651 static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
652 &omap44xx_aess__l4_abe,
655 static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
657 .pa_start = 0x401f1000,
658 .pa_end = 0x401f13ff,
659 .flags = ADDR_TYPE_RT
664 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
665 .master = &omap44xx_l4_abe_hwmod,
666 .slave = &omap44xx_aess_hwmod,
667 .clk = "ocp_abe_iclk",
668 .addr = omap44xx_aess_addrs,
669 .addr_cnt = ARRAY_SIZE(omap44xx_aess_addrs),
670 .user = OCP_USER_MPU,
673 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
675 .pa_start = 0x490f1000,
676 .pa_end = 0x490f13ff,
677 .flags = ADDR_TYPE_RT
681 /* l4_abe -> aess (dma) */
682 static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
683 .master = &omap44xx_l4_abe_hwmod,
684 .slave = &omap44xx_aess_hwmod,
685 .clk = "ocp_abe_iclk",
686 .addr = omap44xx_aess_dma_addrs,
687 .addr_cnt = ARRAY_SIZE(omap44xx_aess_dma_addrs),
688 .user = OCP_USER_SDMA,
691 /* aess slave ports */
692 static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
693 &omap44xx_l4_abe__aess,
694 &omap44xx_l4_abe__aess_dma,
697 static struct omap_hwmod omap44xx_aess_hwmod = {
699 .class = &omap44xx_aess_hwmod_class,
700 .mpu_irqs = omap44xx_aess_irqs,
701 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_aess_irqs),
702 .sdma_reqs = omap44xx_aess_sdma_reqs,
703 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_aess_sdma_reqs),
704 .main_clk = "aess_fck",
707 .clkctrl_reg = OMAP4430_CM1_ABE_AESS_CLKCTRL,
710 .slaves = omap44xx_aess_slaves,
711 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
712 .masters = omap44xx_aess_masters,
713 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
714 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
719 * bangap reference for ldo regulators
722 static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
727 static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
728 { .role = "fclk", .clk = "bandgap_fclk" },
731 static struct omap_hwmod omap44xx_bandgap_hwmod = {
733 .class = &omap44xx_bandgap_hwmod_class,
736 .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
739 .opt_clks = bandgap_opt_clks,
740 .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
741 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
746 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
749 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
752 .sysc_flags = SYSC_HAS_SIDLEMODE,
753 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
755 .sysc_fields = &omap_hwmod_sysc_type1,
758 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
760 .sysc = &omap44xx_counter_sysc,
764 static struct omap_hwmod omap44xx_counter_32k_hwmod;
765 static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
767 .pa_start = 0x4a304000,
768 .pa_end = 0x4a30401f,
769 .flags = ADDR_TYPE_RT
773 /* l4_wkup -> counter_32k */
774 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
775 .master = &omap44xx_l4_wkup_hwmod,
776 .slave = &omap44xx_counter_32k_hwmod,
777 .clk = "l4_wkup_clk_mux_ck",
778 .addr = omap44xx_counter_32k_addrs,
779 .addr_cnt = ARRAY_SIZE(omap44xx_counter_32k_addrs),
780 .user = OCP_USER_MPU | OCP_USER_SDMA,
783 /* counter_32k slave ports */
784 static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
785 &omap44xx_l4_wkup__counter_32k,
788 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
789 .name = "counter_32k",
790 .class = &omap44xx_counter_hwmod_class,
791 .flags = HWMOD_SWSUP_SIDLE,
792 .main_clk = "sys_32k_ck",
795 .clkctrl_reg = OMAP4430_CM_WKUP_SYNCTIMER_CLKCTRL,
798 .slaves = omap44xx_counter_32k_slaves,
799 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
800 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
805 * dma controller for data exchange between memory to memory (i.e. internal or
806 * external memory) and gp peripherals to memory or memory to gp peripherals
809 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
813 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
814 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
815 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
816 SYSS_HAS_RESET_STATUS),
817 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
818 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
819 .sysc_fields = &omap_hwmod_sysc_type1,
822 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
824 .sysc = &omap44xx_dma_sysc,
828 static struct omap_dma_dev_attr dma_dev_attr = {
829 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
830 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
835 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
836 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
837 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
838 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
839 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
842 /* dma_system master ports */
843 static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
844 &omap44xx_dma_system__l3_main_2,
847 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
849 .pa_start = 0x4a056000,
850 .pa_end = 0x4a0560ff,
851 .flags = ADDR_TYPE_RT
855 /* l4_cfg -> dma_system */
856 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
857 .master = &omap44xx_l4_cfg_hwmod,
858 .slave = &omap44xx_dma_system_hwmod,
860 .addr = omap44xx_dma_system_addrs,
861 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
862 .user = OCP_USER_MPU | OCP_USER_SDMA,
865 /* dma_system slave ports */
866 static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
867 &omap44xx_l4_cfg__dma_system,
870 static struct omap_hwmod omap44xx_dma_system_hwmod = {
871 .name = "dma_system",
872 .class = &omap44xx_dma_hwmod_class,
873 .mpu_irqs = omap44xx_dma_system_irqs,
874 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
875 .main_clk = "l3_div_ck",
878 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
881 .dev_attr = &dma_dev_attr,
882 .slaves = omap44xx_dma_system_slaves,
883 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
884 .masters = omap44xx_dma_system_masters,
885 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
886 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
891 * digital microphone controller
894 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
897 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
898 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
899 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
901 .sysc_fields = &omap_hwmod_sysc_type2,
904 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
906 .sysc = &omap44xx_dmic_sysc,
910 static struct omap_hwmod omap44xx_dmic_hwmod;
911 static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
912 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
915 static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
916 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
919 static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
921 .pa_start = 0x4012e000,
922 .pa_end = 0x4012e07f,
923 .flags = ADDR_TYPE_RT
928 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
929 .master = &omap44xx_l4_abe_hwmod,
930 .slave = &omap44xx_dmic_hwmod,
931 .clk = "ocp_abe_iclk",
932 .addr = omap44xx_dmic_addrs,
933 .addr_cnt = ARRAY_SIZE(omap44xx_dmic_addrs),
934 .user = OCP_USER_MPU,
937 static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
939 .pa_start = 0x4902e000,
940 .pa_end = 0x4902e07f,
941 .flags = ADDR_TYPE_RT
945 /* l4_abe -> dmic (dma) */
946 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
947 .master = &omap44xx_l4_abe_hwmod,
948 .slave = &omap44xx_dmic_hwmod,
949 .clk = "ocp_abe_iclk",
950 .addr = omap44xx_dmic_dma_addrs,
951 .addr_cnt = ARRAY_SIZE(omap44xx_dmic_dma_addrs),
952 .user = OCP_USER_SDMA,
955 /* dmic slave ports */
956 static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
957 &omap44xx_l4_abe__dmic,
958 &omap44xx_l4_abe__dmic_dma,
961 static struct omap_hwmod omap44xx_dmic_hwmod = {
963 .class = &omap44xx_dmic_hwmod_class,
964 .mpu_irqs = omap44xx_dmic_irqs,
965 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmic_irqs),
966 .sdma_reqs = omap44xx_dmic_sdma_reqs,
967 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dmic_sdma_reqs),
968 .main_clk = "dmic_fck",
971 .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
974 .slaves = omap44xx_dmic_slaves,
975 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
976 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
984 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
989 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
990 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
993 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
994 { .name = "mmu_cache", .rst_shift = 1 },
997 static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
998 { .name = "dsp", .rst_shift = 0 },
1002 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
1003 .master = &omap44xx_dsp_hwmod,
1004 .slave = &omap44xx_iva_hwmod,
1005 .clk = "dpll_iva_m5x2_ck",
1008 /* dsp master ports */
1009 static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
1010 &omap44xx_dsp__l3_main_1,
1011 &omap44xx_dsp__l4_abe,
1016 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
1017 .master = &omap44xx_l4_cfg_hwmod,
1018 .slave = &omap44xx_dsp_hwmod,
1020 .user = OCP_USER_MPU | OCP_USER_SDMA,
1023 /* dsp slave ports */
1024 static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
1025 &omap44xx_l4_cfg__dsp,
1028 /* Pseudo hwmod for reset control purpose only */
1029 static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
1031 .class = &omap44xx_dsp_hwmod_class,
1032 .flags = HWMOD_INIT_NO_RESET,
1033 .rst_lines = omap44xx_dsp_c0_resets,
1034 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
1037 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1040 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1043 static struct omap_hwmod omap44xx_dsp_hwmod = {
1045 .class = &omap44xx_dsp_hwmod_class,
1046 .mpu_irqs = omap44xx_dsp_irqs,
1047 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
1048 .rst_lines = omap44xx_dsp_resets,
1049 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1050 .main_clk = "dsp_fck",
1053 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
1054 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1057 .slaves = omap44xx_dsp_slaves,
1058 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1059 .masters = omap44xx_dsp_masters,
1060 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
1061 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1066 * display sub-system
1069 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1071 .syss_offs = 0x0014,
1072 .sysc_flags = SYSS_HAS_RESET_STATUS,
1075 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1077 .sysc = &omap44xx_dss_sysc,
1081 /* dss master ports */
1082 static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1083 &omap44xx_dss__l3_main_1,
1086 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1088 .pa_start = 0x58000000,
1089 .pa_end = 0x5800007f,
1090 .flags = ADDR_TYPE_RT
1094 /* l3_main_2 -> dss */
1095 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
1096 .master = &omap44xx_l3_main_2_hwmod,
1097 .slave = &omap44xx_dss_hwmod,
1099 .addr = omap44xx_dss_dma_addrs,
1100 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dma_addrs),
1101 .user = OCP_USER_SDMA,
1104 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1106 .pa_start = 0x48040000,
1107 .pa_end = 0x4804007f,
1108 .flags = ADDR_TYPE_RT
1113 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
1114 .master = &omap44xx_l4_per_hwmod,
1115 .slave = &omap44xx_dss_hwmod,
1117 .addr = omap44xx_dss_addrs,
1118 .addr_cnt = ARRAY_SIZE(omap44xx_dss_addrs),
1119 .user = OCP_USER_MPU,
1122 /* dss slave ports */
1123 static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1124 &omap44xx_l3_main_2__dss,
1125 &omap44xx_l4_per__dss,
1128 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1129 { .role = "sys_clk", .clk = "dss_sys_clk" },
1130 { .role = "tv_clk", .clk = "dss_tv_clk" },
1131 { .role = "dss_clk", .clk = "dss_dss_clk" },
1132 { .role = "video_clk", .clk = "dss_48mhz_clk" },
1135 static struct omap_hwmod omap44xx_dss_hwmod = {
1137 .class = &omap44xx_dss_hwmod_class,
1138 .main_clk = "dss_fck",
1141 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1144 .opt_clks = dss_opt_clks,
1145 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1146 .slaves = omap44xx_dss_slaves,
1147 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1148 .masters = omap44xx_dss_masters,
1149 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
1150 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1155 * display controller
1158 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1160 .sysc_offs = 0x0010,
1161 .syss_offs = 0x0014,
1162 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1163 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1164 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1165 SYSS_HAS_RESET_STATUS),
1166 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1167 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1168 .sysc_fields = &omap_hwmod_sysc_type1,
1171 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1173 .sysc = &omap44xx_dispc_sysc,
1177 static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1178 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1179 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
1182 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
1183 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
1186 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
1188 .pa_start = 0x58001000,
1189 .pa_end = 0x58001fff,
1190 .flags = ADDR_TYPE_RT
1194 /* l3_main_2 -> dss_dispc */
1195 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1196 .master = &omap44xx_l3_main_2_hwmod,
1197 .slave = &omap44xx_dss_dispc_hwmod,
1199 .addr = omap44xx_dss_dispc_dma_addrs,
1200 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_dma_addrs),
1201 .user = OCP_USER_SDMA,
1204 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
1206 .pa_start = 0x48041000,
1207 .pa_end = 0x48041fff,
1208 .flags = ADDR_TYPE_RT
1212 /* l4_per -> dss_dispc */
1213 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1214 .master = &omap44xx_l4_per_hwmod,
1215 .slave = &omap44xx_dss_dispc_hwmod,
1217 .addr = omap44xx_dss_dispc_addrs,
1218 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_addrs),
1219 .user = OCP_USER_MPU,
1222 /* dss_dispc slave ports */
1223 static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
1224 &omap44xx_l3_main_2__dss_dispc,
1225 &omap44xx_l4_per__dss_dispc,
1228 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
1229 .name = "dss_dispc",
1230 .class = &omap44xx_dispc_hwmod_class,
1231 .mpu_irqs = omap44xx_dss_dispc_irqs,
1232 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_irqs),
1233 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
1234 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
1235 .main_clk = "dss_fck",
1238 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1241 .slaves = omap44xx_dss_dispc_slaves,
1242 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
1243 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1248 * display serial interface controller
1251 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1253 .sysc_offs = 0x0010,
1254 .syss_offs = 0x0014,
1255 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1256 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1257 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1258 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1259 .sysc_fields = &omap_hwmod_sysc_type1,
1262 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1264 .sysc = &omap44xx_dsi_sysc,
1268 static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1269 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1270 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
1273 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
1274 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
1277 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
1279 .pa_start = 0x58004000,
1280 .pa_end = 0x580041ff,
1281 .flags = ADDR_TYPE_RT
1285 /* l3_main_2 -> dss_dsi1 */
1286 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1287 .master = &omap44xx_l3_main_2_hwmod,
1288 .slave = &omap44xx_dss_dsi1_hwmod,
1290 .addr = omap44xx_dss_dsi1_dma_addrs,
1291 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_dma_addrs),
1292 .user = OCP_USER_SDMA,
1295 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
1297 .pa_start = 0x48044000,
1298 .pa_end = 0x480441ff,
1299 .flags = ADDR_TYPE_RT
1303 /* l4_per -> dss_dsi1 */
1304 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1305 .master = &omap44xx_l4_per_hwmod,
1306 .slave = &omap44xx_dss_dsi1_hwmod,
1308 .addr = omap44xx_dss_dsi1_addrs,
1309 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_addrs),
1310 .user = OCP_USER_MPU,
1313 /* dss_dsi1 slave ports */
1314 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
1315 &omap44xx_l3_main_2__dss_dsi1,
1316 &omap44xx_l4_per__dss_dsi1,
1319 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
1321 .class = &omap44xx_dsi_hwmod_class,
1322 .mpu_irqs = omap44xx_dss_dsi1_irqs,
1323 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_irqs),
1324 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
1325 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
1326 .main_clk = "dss_fck",
1329 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1332 .slaves = omap44xx_dss_dsi1_slaves,
1333 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
1334 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1338 static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1339 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1340 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
1343 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
1344 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
1347 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
1349 .pa_start = 0x58005000,
1350 .pa_end = 0x580051ff,
1351 .flags = ADDR_TYPE_RT
1355 /* l3_main_2 -> dss_dsi2 */
1356 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1357 .master = &omap44xx_l3_main_2_hwmod,
1358 .slave = &omap44xx_dss_dsi2_hwmod,
1360 .addr = omap44xx_dss_dsi2_dma_addrs,
1361 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_dma_addrs),
1362 .user = OCP_USER_SDMA,
1365 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
1367 .pa_start = 0x48045000,
1368 .pa_end = 0x480451ff,
1369 .flags = ADDR_TYPE_RT
1373 /* l4_per -> dss_dsi2 */
1374 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1375 .master = &omap44xx_l4_per_hwmod,
1376 .slave = &omap44xx_dss_dsi2_hwmod,
1378 .addr = omap44xx_dss_dsi2_addrs,
1379 .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_addrs),
1380 .user = OCP_USER_MPU,
1383 /* dss_dsi2 slave ports */
1384 static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
1385 &omap44xx_l3_main_2__dss_dsi2,
1386 &omap44xx_l4_per__dss_dsi2,
1389 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
1391 .class = &omap44xx_dsi_hwmod_class,
1392 .mpu_irqs = omap44xx_dss_dsi2_irqs,
1393 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_irqs),
1394 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
1395 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
1396 .main_clk = "dss_fck",
1399 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1402 .slaves = omap44xx_dss_dsi2_slaves,
1403 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
1404 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1412 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1414 .sysc_offs = 0x0010,
1415 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1416 SYSC_HAS_SOFTRESET),
1417 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1419 .sysc_fields = &omap_hwmod_sysc_type2,
1422 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1424 .sysc = &omap44xx_hdmi_sysc,
1428 static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1429 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1430 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
1433 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
1434 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
1437 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
1439 .pa_start = 0x58006000,
1440 .pa_end = 0x58006fff,
1441 .flags = ADDR_TYPE_RT
1445 /* l3_main_2 -> dss_hdmi */
1446 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1447 .master = &omap44xx_l3_main_2_hwmod,
1448 .slave = &omap44xx_dss_hdmi_hwmod,
1450 .addr = omap44xx_dss_hdmi_dma_addrs,
1451 .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_dma_addrs),
1452 .user = OCP_USER_SDMA,
1455 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
1457 .pa_start = 0x48046000,
1458 .pa_end = 0x48046fff,
1459 .flags = ADDR_TYPE_RT
1463 /* l4_per -> dss_hdmi */
1464 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1465 .master = &omap44xx_l4_per_hwmod,
1466 .slave = &omap44xx_dss_hdmi_hwmod,
1468 .addr = omap44xx_dss_hdmi_addrs,
1469 .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_addrs),
1470 .user = OCP_USER_MPU,
1473 /* dss_hdmi slave ports */
1474 static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
1475 &omap44xx_l3_main_2__dss_hdmi,
1476 &omap44xx_l4_per__dss_hdmi,
1479 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
1481 .class = &omap44xx_hdmi_hwmod_class,
1482 .mpu_irqs = omap44xx_dss_hdmi_irqs,
1483 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_irqs),
1484 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
1485 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
1486 .main_clk = "dss_fck",
1489 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1492 .slaves = omap44xx_dss_hdmi_slaves,
1493 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
1494 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1499 * remote frame buffer interface
1502 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1504 .sysc_offs = 0x0010,
1505 .syss_offs = 0x0014,
1506 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1507 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1508 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1509 .sysc_fields = &omap_hwmod_sysc_type1,
1512 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1514 .sysc = &omap44xx_rfbi_sysc,
1518 static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1519 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1520 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
1523 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1525 .pa_start = 0x58002000,
1526 .pa_end = 0x580020ff,
1527 .flags = ADDR_TYPE_RT
1531 /* l3_main_2 -> dss_rfbi */
1532 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
1533 .master = &omap44xx_l3_main_2_hwmod,
1534 .slave = &omap44xx_dss_rfbi_hwmod,
1536 .addr = omap44xx_dss_rfbi_dma_addrs,
1537 .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_dma_addrs),
1538 .user = OCP_USER_SDMA,
1541 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1543 .pa_start = 0x48042000,
1544 .pa_end = 0x480420ff,
1545 .flags = ADDR_TYPE_RT
1549 /* l4_per -> dss_rfbi */
1550 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
1551 .master = &omap44xx_l4_per_hwmod,
1552 .slave = &omap44xx_dss_rfbi_hwmod,
1554 .addr = omap44xx_dss_rfbi_addrs,
1555 .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_addrs),
1556 .user = OCP_USER_MPU,
1559 /* dss_rfbi slave ports */
1560 static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1561 &omap44xx_l3_main_2__dss_rfbi,
1562 &omap44xx_l4_per__dss_rfbi,
1565 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1567 .class = &omap44xx_rfbi_hwmod_class,
1568 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
1569 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
1570 .main_clk = "dss_fck",
1573 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1576 .slaves = omap44xx_dss_rfbi_slaves,
1577 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
1578 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1586 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1591 static struct omap_hwmod omap44xx_dss_venc_hwmod;
1592 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1594 .pa_start = 0x58003000,
1595 .pa_end = 0x580030ff,
1596 .flags = ADDR_TYPE_RT
1600 /* l3_main_2 -> dss_venc */
1601 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
1602 .master = &omap44xx_l3_main_2_hwmod,
1603 .slave = &omap44xx_dss_venc_hwmod,
1605 .addr = omap44xx_dss_venc_dma_addrs,
1606 .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_dma_addrs),
1607 .user = OCP_USER_SDMA,
1610 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1612 .pa_start = 0x48043000,
1613 .pa_end = 0x480430ff,
1614 .flags = ADDR_TYPE_RT
1618 /* l4_per -> dss_venc */
1619 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
1620 .master = &omap44xx_l4_per_hwmod,
1621 .slave = &omap44xx_dss_venc_hwmod,
1623 .addr = omap44xx_dss_venc_addrs,
1624 .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_addrs),
1625 .user = OCP_USER_MPU,
1628 /* dss_venc slave ports */
1629 static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1630 &omap44xx_l3_main_2__dss_venc,
1631 &omap44xx_l4_per__dss_venc,
1634 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1636 .class = &omap44xx_venc_hwmod_class,
1637 .main_clk = "dss_fck",
1640 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1643 .slaves = omap44xx_dss_venc_slaves,
1644 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
1645 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1650 * general purpose io module
1653 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1655 .sysc_offs = 0x0010,
1656 .syss_offs = 0x0114,
1657 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1658 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1659 SYSS_HAS_RESET_STATUS),
1660 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1662 .sysc_fields = &omap_hwmod_sysc_type1,
1665 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1667 .sysc = &omap44xx_gpio_sysc,
1672 static struct omap_gpio_dev_attr gpio_dev_attr = {
1678 static struct omap_hwmod omap44xx_gpio1_hwmod;
1679 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1680 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
1683 static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
1685 .pa_start = 0x4a310000,
1686 .pa_end = 0x4a3101ff,
1687 .flags = ADDR_TYPE_RT
1691 /* l4_wkup -> gpio1 */
1692 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1693 .master = &omap44xx_l4_wkup_hwmod,
1694 .slave = &omap44xx_gpio1_hwmod,
1695 .clk = "l4_wkup_clk_mux_ck",
1696 .addr = omap44xx_gpio1_addrs,
1697 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
1698 .user = OCP_USER_MPU | OCP_USER_SDMA,
1701 /* gpio1 slave ports */
1702 static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
1703 &omap44xx_l4_wkup__gpio1,
1706 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1707 { .role = "dbclk", .clk = "gpio1_dbclk" },
1710 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1712 .class = &omap44xx_gpio_hwmod_class,
1713 .mpu_irqs = omap44xx_gpio1_irqs,
1714 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
1715 .main_clk = "gpio1_ick",
1718 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1721 .opt_clks = gpio1_opt_clks,
1722 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1723 .dev_attr = &gpio_dev_attr,
1724 .slaves = omap44xx_gpio1_slaves,
1725 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
1726 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1730 static struct omap_hwmod omap44xx_gpio2_hwmod;
1731 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1732 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
1735 static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
1737 .pa_start = 0x48055000,
1738 .pa_end = 0x480551ff,
1739 .flags = ADDR_TYPE_RT
1743 /* l4_per -> gpio2 */
1744 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1745 .master = &omap44xx_l4_per_hwmod,
1746 .slave = &omap44xx_gpio2_hwmod,
1748 .addr = omap44xx_gpio2_addrs,
1749 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
1750 .user = OCP_USER_MPU | OCP_USER_SDMA,
1753 /* gpio2 slave ports */
1754 static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
1755 &omap44xx_l4_per__gpio2,
1758 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1759 { .role = "dbclk", .clk = "gpio2_dbclk" },
1762 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1764 .class = &omap44xx_gpio_hwmod_class,
1765 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1766 .mpu_irqs = omap44xx_gpio2_irqs,
1767 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
1768 .main_clk = "gpio2_ick",
1771 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1774 .opt_clks = gpio2_opt_clks,
1775 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1776 .dev_attr = &gpio_dev_attr,
1777 .slaves = omap44xx_gpio2_slaves,
1778 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
1779 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1783 static struct omap_hwmod omap44xx_gpio3_hwmod;
1784 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1785 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
1788 static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
1790 .pa_start = 0x48057000,
1791 .pa_end = 0x480571ff,
1792 .flags = ADDR_TYPE_RT
1796 /* l4_per -> gpio3 */
1797 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1798 .master = &omap44xx_l4_per_hwmod,
1799 .slave = &omap44xx_gpio3_hwmod,
1801 .addr = omap44xx_gpio3_addrs,
1802 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
1803 .user = OCP_USER_MPU | OCP_USER_SDMA,
1806 /* gpio3 slave ports */
1807 static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
1808 &omap44xx_l4_per__gpio3,
1811 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1812 { .role = "dbclk", .clk = "gpio3_dbclk" },
1815 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1817 .class = &omap44xx_gpio_hwmod_class,
1818 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1819 .mpu_irqs = omap44xx_gpio3_irqs,
1820 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
1821 .main_clk = "gpio3_ick",
1824 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1827 .opt_clks = gpio3_opt_clks,
1828 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1829 .dev_attr = &gpio_dev_attr,
1830 .slaves = omap44xx_gpio3_slaves,
1831 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
1832 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1836 static struct omap_hwmod omap44xx_gpio4_hwmod;
1837 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1838 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
1841 static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
1843 .pa_start = 0x48059000,
1844 .pa_end = 0x480591ff,
1845 .flags = ADDR_TYPE_RT
1849 /* l4_per -> gpio4 */
1850 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
1851 .master = &omap44xx_l4_per_hwmod,
1852 .slave = &omap44xx_gpio4_hwmod,
1854 .addr = omap44xx_gpio4_addrs,
1855 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
1856 .user = OCP_USER_MPU | OCP_USER_SDMA,
1859 /* gpio4 slave ports */
1860 static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
1861 &omap44xx_l4_per__gpio4,
1864 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1865 { .role = "dbclk", .clk = "gpio4_dbclk" },
1868 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1870 .class = &omap44xx_gpio_hwmod_class,
1871 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1872 .mpu_irqs = omap44xx_gpio4_irqs,
1873 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
1874 .main_clk = "gpio4_ick",
1877 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1880 .opt_clks = gpio4_opt_clks,
1881 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1882 .dev_attr = &gpio_dev_attr,
1883 .slaves = omap44xx_gpio4_slaves,
1884 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
1885 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1889 static struct omap_hwmod omap44xx_gpio5_hwmod;
1890 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1891 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
1894 static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
1896 .pa_start = 0x4805b000,
1897 .pa_end = 0x4805b1ff,
1898 .flags = ADDR_TYPE_RT
1902 /* l4_per -> gpio5 */
1903 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
1904 .master = &omap44xx_l4_per_hwmod,
1905 .slave = &omap44xx_gpio5_hwmod,
1907 .addr = omap44xx_gpio5_addrs,
1908 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
1909 .user = OCP_USER_MPU | OCP_USER_SDMA,
1912 /* gpio5 slave ports */
1913 static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
1914 &omap44xx_l4_per__gpio5,
1917 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1918 { .role = "dbclk", .clk = "gpio5_dbclk" },
1921 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1923 .class = &omap44xx_gpio_hwmod_class,
1924 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1925 .mpu_irqs = omap44xx_gpio5_irqs,
1926 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
1927 .main_clk = "gpio5_ick",
1930 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1933 .opt_clks = gpio5_opt_clks,
1934 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1935 .dev_attr = &gpio_dev_attr,
1936 .slaves = omap44xx_gpio5_slaves,
1937 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1938 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1942 static struct omap_hwmod omap44xx_gpio6_hwmod;
1943 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1944 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
1947 static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
1949 .pa_start = 0x4805d000,
1950 .pa_end = 0x4805d1ff,
1951 .flags = ADDR_TYPE_RT
1955 /* l4_per -> gpio6 */
1956 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1957 .master = &omap44xx_l4_per_hwmod,
1958 .slave = &omap44xx_gpio6_hwmod,
1960 .addr = omap44xx_gpio6_addrs,
1961 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
1962 .user = OCP_USER_MPU | OCP_USER_SDMA,
1965 /* gpio6 slave ports */
1966 static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
1967 &omap44xx_l4_per__gpio6,
1970 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1971 { .role = "dbclk", .clk = "gpio6_dbclk" },
1974 static struct omap_hwmod omap44xx_gpio6_hwmod = {
1976 .class = &omap44xx_gpio_hwmod_class,
1977 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1978 .mpu_irqs = omap44xx_gpio6_irqs,
1979 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
1980 .main_clk = "gpio6_ick",
1983 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1986 .opt_clks = gpio6_opt_clks,
1987 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1988 .dev_attr = &gpio_dev_attr,
1989 .slaves = omap44xx_gpio6_slaves,
1990 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
1991 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1996 * mipi high-speed synchronous serial interface (multichannel and full-duplex
2000 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2002 .sysc_offs = 0x0010,
2003 .syss_offs = 0x0014,
2004 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2005 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2006 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2007 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2008 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2010 .sysc_fields = &omap_hwmod_sysc_type1,
2013 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2015 .sysc = &omap44xx_hsi_sysc,
2019 static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2020 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2021 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2022 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
2025 /* hsi master ports */
2026 static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
2027 &omap44xx_hsi__l3_main_2,
2030 static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
2032 .pa_start = 0x4a058000,
2033 .pa_end = 0x4a05bfff,
2034 .flags = ADDR_TYPE_RT
2039 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2040 .master = &omap44xx_l4_cfg_hwmod,
2041 .slave = &omap44xx_hsi_hwmod,
2043 .addr = omap44xx_hsi_addrs,
2044 .addr_cnt = ARRAY_SIZE(omap44xx_hsi_addrs),
2045 .user = OCP_USER_MPU | OCP_USER_SDMA,
2048 /* hsi slave ports */
2049 static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
2050 &omap44xx_l4_cfg__hsi,
2053 static struct omap_hwmod omap44xx_hsi_hwmod = {
2055 .class = &omap44xx_hsi_hwmod_class,
2056 .mpu_irqs = omap44xx_hsi_irqs,
2057 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_hsi_irqs),
2058 .main_clk = "hsi_fck",
2061 .clkctrl_reg = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
2064 .slaves = omap44xx_hsi_slaves,
2065 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2066 .masters = omap44xx_hsi_masters,
2067 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
2068 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2073 * multimaster high-speed i2c controller
2076 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2077 .sysc_offs = 0x0010,
2078 .syss_offs = 0x0090,
2079 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2080 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2081 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2082 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2084 .sysc_fields = &omap_hwmod_sysc_type1,
2087 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
2089 .sysc = &omap44xx_i2c_sysc,
2093 static struct omap_hwmod omap44xx_i2c1_hwmod;
2094 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2095 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
2098 static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
2099 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
2100 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
2103 static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
2105 .pa_start = 0x48070000,
2106 .pa_end = 0x480700ff,
2107 .flags = ADDR_TYPE_RT
2111 /* l4_per -> i2c1 */
2112 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2113 .master = &omap44xx_l4_per_hwmod,
2114 .slave = &omap44xx_i2c1_hwmod,
2116 .addr = omap44xx_i2c1_addrs,
2117 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
2118 .user = OCP_USER_MPU | OCP_USER_SDMA,
2121 /* i2c1 slave ports */
2122 static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
2123 &omap44xx_l4_per__i2c1,
2126 static struct omap_hwmod omap44xx_i2c1_hwmod = {
2128 .class = &omap44xx_i2c_hwmod_class,
2129 .flags = HWMOD_INIT_NO_RESET,
2130 .mpu_irqs = omap44xx_i2c1_irqs,
2131 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
2132 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
2133 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
2134 .main_clk = "i2c1_fck",
2137 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
2140 .slaves = omap44xx_i2c1_slaves,
2141 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2142 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2146 static struct omap_hwmod omap44xx_i2c2_hwmod;
2147 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2148 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
2151 static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
2152 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
2153 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
2156 static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
2158 .pa_start = 0x48072000,
2159 .pa_end = 0x480720ff,
2160 .flags = ADDR_TYPE_RT
2164 /* l4_per -> i2c2 */
2165 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2166 .master = &omap44xx_l4_per_hwmod,
2167 .slave = &omap44xx_i2c2_hwmod,
2169 .addr = omap44xx_i2c2_addrs,
2170 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
2171 .user = OCP_USER_MPU | OCP_USER_SDMA,
2174 /* i2c2 slave ports */
2175 static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
2176 &omap44xx_l4_per__i2c2,
2179 static struct omap_hwmod omap44xx_i2c2_hwmod = {
2181 .class = &omap44xx_i2c_hwmod_class,
2182 .flags = HWMOD_INIT_NO_RESET,
2183 .mpu_irqs = omap44xx_i2c2_irqs,
2184 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
2185 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
2186 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
2187 .main_clk = "i2c2_fck",
2190 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
2193 .slaves = omap44xx_i2c2_slaves,
2194 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2195 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2199 static struct omap_hwmod omap44xx_i2c3_hwmod;
2200 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2201 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
2204 static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
2205 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
2206 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
2209 static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
2211 .pa_start = 0x48060000,
2212 .pa_end = 0x480600ff,
2213 .flags = ADDR_TYPE_RT
2217 /* l4_per -> i2c3 */
2218 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2219 .master = &omap44xx_l4_per_hwmod,
2220 .slave = &omap44xx_i2c3_hwmod,
2222 .addr = omap44xx_i2c3_addrs,
2223 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
2224 .user = OCP_USER_MPU | OCP_USER_SDMA,
2227 /* i2c3 slave ports */
2228 static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
2229 &omap44xx_l4_per__i2c3,
2232 static struct omap_hwmod omap44xx_i2c3_hwmod = {
2234 .class = &omap44xx_i2c_hwmod_class,
2235 .flags = HWMOD_INIT_NO_RESET,
2236 .mpu_irqs = omap44xx_i2c3_irqs,
2237 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
2238 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
2239 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
2240 .main_clk = "i2c3_fck",
2243 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
2246 .slaves = omap44xx_i2c3_slaves,
2247 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2248 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2252 static struct omap_hwmod omap44xx_i2c4_hwmod;
2253 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2254 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
2257 static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
2258 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
2259 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
2262 static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
2264 .pa_start = 0x48350000,
2265 .pa_end = 0x483500ff,
2266 .flags = ADDR_TYPE_RT
2270 /* l4_per -> i2c4 */
2271 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2272 .master = &omap44xx_l4_per_hwmod,
2273 .slave = &omap44xx_i2c4_hwmod,
2275 .addr = omap44xx_i2c4_addrs,
2276 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
2277 .user = OCP_USER_MPU | OCP_USER_SDMA,
2280 /* i2c4 slave ports */
2281 static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
2282 &omap44xx_l4_per__i2c4,
2285 static struct omap_hwmod omap44xx_i2c4_hwmod = {
2287 .class = &omap44xx_i2c_hwmod_class,
2288 .flags = HWMOD_INIT_NO_RESET,
2289 .mpu_irqs = omap44xx_i2c4_irqs,
2290 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
2291 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
2292 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
2293 .main_clk = "i2c4_fck",
2296 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
2299 .slaves = omap44xx_i2c4_slaves,
2300 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2301 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2306 * imaging processor unit
2309 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2314 static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2315 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
2318 static struct omap_hwmod_rst_info omap44xx_ipu_c0_resets[] = {
2319 { .name = "cpu0", .rst_shift = 0 },
2322 static struct omap_hwmod_rst_info omap44xx_ipu_c1_resets[] = {
2323 { .name = "cpu1", .rst_shift = 1 },
2326 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
2327 { .name = "mmu_cache", .rst_shift = 2 },
2330 /* ipu master ports */
2331 static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
2332 &omap44xx_ipu__l3_main_2,
2335 /* l3_main_2 -> ipu */
2336 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2337 .master = &omap44xx_l3_main_2_hwmod,
2338 .slave = &omap44xx_ipu_hwmod,
2340 .user = OCP_USER_MPU | OCP_USER_SDMA,
2343 /* ipu slave ports */
2344 static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
2345 &omap44xx_l3_main_2__ipu,
2348 /* Pseudo hwmod for reset control purpose only */
2349 static struct omap_hwmod omap44xx_ipu_c0_hwmod = {
2351 .class = &omap44xx_ipu_hwmod_class,
2352 .flags = HWMOD_INIT_NO_RESET,
2353 .rst_lines = omap44xx_ipu_c0_resets,
2354 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c0_resets),
2357 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2360 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2363 /* Pseudo hwmod for reset control purpose only */
2364 static struct omap_hwmod omap44xx_ipu_c1_hwmod = {
2366 .class = &omap44xx_ipu_hwmod_class,
2367 .flags = HWMOD_INIT_NO_RESET,
2368 .rst_lines = omap44xx_ipu_c1_resets,
2369 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c1_resets),
2372 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2375 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2378 static struct omap_hwmod omap44xx_ipu_hwmod = {
2380 .class = &omap44xx_ipu_hwmod_class,
2381 .mpu_irqs = omap44xx_ipu_irqs,
2382 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_ipu_irqs),
2383 .rst_lines = omap44xx_ipu_resets,
2384 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2385 .main_clk = "ipu_fck",
2388 .clkctrl_reg = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
2389 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2392 .slaves = omap44xx_ipu_slaves,
2393 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2394 .masters = omap44xx_ipu_masters,
2395 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
2396 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2401 * external images sensor pixel data processor
2404 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2406 .sysc_offs = 0x0010,
2407 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2408 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2409 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2410 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2412 .sysc_fields = &omap_hwmod_sysc_type2,
2415 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2417 .sysc = &omap44xx_iss_sysc,
2421 static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2422 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
2425 static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
2426 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
2427 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
2428 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
2429 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
2432 /* iss master ports */
2433 static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
2434 &omap44xx_iss__l3_main_2,
2437 static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
2439 .pa_start = 0x52000000,
2440 .pa_end = 0x520000ff,
2441 .flags = ADDR_TYPE_RT
2445 /* l3_main_2 -> iss */
2446 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2447 .master = &omap44xx_l3_main_2_hwmod,
2448 .slave = &omap44xx_iss_hwmod,
2450 .addr = omap44xx_iss_addrs,
2451 .addr_cnt = ARRAY_SIZE(omap44xx_iss_addrs),
2452 .user = OCP_USER_MPU | OCP_USER_SDMA,
2455 /* iss slave ports */
2456 static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
2457 &omap44xx_l3_main_2__iss,
2460 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
2461 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
2464 static struct omap_hwmod omap44xx_iss_hwmod = {
2466 .class = &omap44xx_iss_hwmod_class,
2467 .mpu_irqs = omap44xx_iss_irqs,
2468 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iss_irqs),
2469 .sdma_reqs = omap44xx_iss_sdma_reqs,
2470 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_iss_sdma_reqs),
2471 .main_clk = "iss_fck",
2474 .clkctrl_reg = OMAP4430_CM_CAM_ISS_CLKCTRL,
2477 .opt_clks = iss_opt_clks,
2478 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2479 .slaves = omap44xx_iss_slaves,
2480 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2481 .masters = omap44xx_iss_masters,
2482 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
2483 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2488 * multi-standard video encoder/decoder hardware accelerator
2491 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
2496 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2497 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2498 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2499 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
2502 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
2503 { .name = "logic", .rst_shift = 2 },
2506 static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
2507 { .name = "seq0", .rst_shift = 0 },
2510 static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
2511 { .name = "seq1", .rst_shift = 1 },
2514 /* iva master ports */
2515 static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
2516 &omap44xx_iva__l3_main_2,
2517 &omap44xx_iva__l3_instr,
2520 static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
2522 .pa_start = 0x5a000000,
2523 .pa_end = 0x5a07ffff,
2524 .flags = ADDR_TYPE_RT
2528 /* l3_main_2 -> iva */
2529 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2530 .master = &omap44xx_l3_main_2_hwmod,
2531 .slave = &omap44xx_iva_hwmod,
2533 .addr = omap44xx_iva_addrs,
2534 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
2535 .user = OCP_USER_MPU,
2538 /* iva slave ports */
2539 static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
2541 &omap44xx_l3_main_2__iva,
2544 /* Pseudo hwmod for reset control purpose only */
2545 static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
2547 .class = &omap44xx_iva_hwmod_class,
2548 .flags = HWMOD_INIT_NO_RESET,
2549 .rst_lines = omap44xx_iva_seq0_resets,
2550 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
2553 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2556 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2559 /* Pseudo hwmod for reset control purpose only */
2560 static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
2562 .class = &omap44xx_iva_hwmod_class,
2563 .flags = HWMOD_INIT_NO_RESET,
2564 .rst_lines = omap44xx_iva_seq1_resets,
2565 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
2568 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2571 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2574 static struct omap_hwmod omap44xx_iva_hwmod = {
2576 .class = &omap44xx_iva_hwmod_class,
2577 .mpu_irqs = omap44xx_iva_irqs,
2578 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
2579 .rst_lines = omap44xx_iva_resets,
2580 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2581 .main_clk = "iva_fck",
2584 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
2585 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2588 .slaves = omap44xx_iva_slaves,
2589 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2590 .masters = omap44xx_iva_masters,
2591 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
2592 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2597 * keyboard controller
2600 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2602 .sysc_offs = 0x0010,
2603 .syss_offs = 0x0014,
2604 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2605 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2606 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2607 SYSS_HAS_RESET_STATUS),
2608 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2609 .sysc_fields = &omap_hwmod_sysc_type1,
2612 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2614 .sysc = &omap44xx_kbd_sysc,
2618 static struct omap_hwmod omap44xx_kbd_hwmod;
2619 static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2620 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
2623 static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
2625 .pa_start = 0x4a31c000,
2626 .pa_end = 0x4a31c07f,
2627 .flags = ADDR_TYPE_RT
2631 /* l4_wkup -> kbd */
2632 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2633 .master = &omap44xx_l4_wkup_hwmod,
2634 .slave = &omap44xx_kbd_hwmod,
2635 .clk = "l4_wkup_clk_mux_ck",
2636 .addr = omap44xx_kbd_addrs,
2637 .addr_cnt = ARRAY_SIZE(omap44xx_kbd_addrs),
2638 .user = OCP_USER_MPU | OCP_USER_SDMA,
2641 /* kbd slave ports */
2642 static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
2643 &omap44xx_l4_wkup__kbd,
2646 static struct omap_hwmod omap44xx_kbd_hwmod = {
2648 .class = &omap44xx_kbd_hwmod_class,
2649 .mpu_irqs = omap44xx_kbd_irqs,
2650 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_kbd_irqs),
2651 .main_clk = "kbd_fck",
2654 .clkctrl_reg = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
2657 .slaves = omap44xx_kbd_slaves,
2658 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
2659 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2664 * mailbox module allowing communication between the on-chip processors using a
2665 * queued mailbox-interrupt mechanism.
2668 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2670 .sysc_offs = 0x0010,
2671 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2672 SYSC_HAS_SOFTRESET),
2673 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2674 .sysc_fields = &omap_hwmod_sysc_type2,
2677 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2679 .sysc = &omap44xx_mailbox_sysc,
2683 static struct omap_hwmod omap44xx_mailbox_hwmod;
2684 static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2685 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
2688 static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
2690 .pa_start = 0x4a0f4000,
2691 .pa_end = 0x4a0f41ff,
2692 .flags = ADDR_TYPE_RT
2696 /* l4_cfg -> mailbox */
2697 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2698 .master = &omap44xx_l4_cfg_hwmod,
2699 .slave = &omap44xx_mailbox_hwmod,
2701 .addr = omap44xx_mailbox_addrs,
2702 .addr_cnt = ARRAY_SIZE(omap44xx_mailbox_addrs),
2703 .user = OCP_USER_MPU | OCP_USER_SDMA,
2706 /* mailbox slave ports */
2707 static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
2708 &omap44xx_l4_cfg__mailbox,
2711 static struct omap_hwmod omap44xx_mailbox_hwmod = {
2713 .class = &omap44xx_mailbox_hwmod_class,
2714 .mpu_irqs = omap44xx_mailbox_irqs,
2715 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mailbox_irqs),
2718 .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
2721 .slaves = omap44xx_mailbox_slaves,
2722 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
2723 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2728 * multi channel buffered serial port controller
2731 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2732 .sysc_offs = 0x008c,
2733 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2734 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2735 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2736 .sysc_fields = &omap_hwmod_sysc_type1,
2739 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2741 .sysc = &omap44xx_mcbsp_sysc,
2742 .rev = MCBSP_CONFIG_TYPE4,
2746 static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2747 static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2748 { .irq = 17 + OMAP44XX_IRQ_GIC_START },
2751 static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
2752 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
2753 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
2756 static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
2759 .pa_start = 0x40122000,
2760 .pa_end = 0x401220ff,
2761 .flags = ADDR_TYPE_RT
2765 /* l4_abe -> mcbsp1 */
2766 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2767 .master = &omap44xx_l4_abe_hwmod,
2768 .slave = &omap44xx_mcbsp1_hwmod,
2769 .clk = "ocp_abe_iclk",
2770 .addr = omap44xx_mcbsp1_addrs,
2771 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_addrs),
2772 .user = OCP_USER_MPU,
2775 static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
2778 .pa_start = 0x49022000,
2779 .pa_end = 0x490220ff,
2780 .flags = ADDR_TYPE_RT
2784 /* l4_abe -> mcbsp1 (dma) */
2785 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2786 .master = &omap44xx_l4_abe_hwmod,
2787 .slave = &omap44xx_mcbsp1_hwmod,
2788 .clk = "ocp_abe_iclk",
2789 .addr = omap44xx_mcbsp1_dma_addrs,
2790 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_dma_addrs),
2791 .user = OCP_USER_SDMA,
2794 /* mcbsp1 slave ports */
2795 static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
2796 &omap44xx_l4_abe__mcbsp1,
2797 &omap44xx_l4_abe__mcbsp1_dma,
2800 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
2802 .class = &omap44xx_mcbsp_hwmod_class,
2803 .mpu_irqs = omap44xx_mcbsp1_irqs,
2804 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_irqs),
2805 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
2806 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_sdma_reqs),
2807 .main_clk = "mcbsp1_fck",
2810 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
2813 .slaves = omap44xx_mcbsp1_slaves,
2814 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
2815 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2819 static struct omap_hwmod omap44xx_mcbsp2_hwmod;
2820 static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
2821 { .irq = 22 + OMAP44XX_IRQ_GIC_START },
2824 static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
2825 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
2826 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
2829 static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
2832 .pa_start = 0x40124000,
2833 .pa_end = 0x401240ff,
2834 .flags = ADDR_TYPE_RT
2838 /* l4_abe -> mcbsp2 */
2839 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2840 .master = &omap44xx_l4_abe_hwmod,
2841 .slave = &omap44xx_mcbsp2_hwmod,
2842 .clk = "ocp_abe_iclk",
2843 .addr = omap44xx_mcbsp2_addrs,
2844 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_addrs),
2845 .user = OCP_USER_MPU,
2848 static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
2851 .pa_start = 0x49024000,
2852 .pa_end = 0x490240ff,
2853 .flags = ADDR_TYPE_RT
2857 /* l4_abe -> mcbsp2 (dma) */
2858 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
2859 .master = &omap44xx_l4_abe_hwmod,
2860 .slave = &omap44xx_mcbsp2_hwmod,
2861 .clk = "ocp_abe_iclk",
2862 .addr = omap44xx_mcbsp2_dma_addrs,
2863 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_dma_addrs),
2864 .user = OCP_USER_SDMA,
2867 /* mcbsp2 slave ports */
2868 static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
2869 &omap44xx_l4_abe__mcbsp2,
2870 &omap44xx_l4_abe__mcbsp2_dma,
2873 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2875 .class = &omap44xx_mcbsp_hwmod_class,
2876 .mpu_irqs = omap44xx_mcbsp2_irqs,
2877 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_irqs),
2878 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
2879 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_sdma_reqs),
2880 .main_clk = "mcbsp2_fck",
2883 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
2886 .slaves = omap44xx_mcbsp2_slaves,
2887 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
2888 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2892 static struct omap_hwmod omap44xx_mcbsp3_hwmod;
2893 static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
2894 { .irq = 23 + OMAP44XX_IRQ_GIC_START },
2897 static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2898 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2899 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
2902 static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
2905 .pa_start = 0x40126000,
2906 .pa_end = 0x401260ff,
2907 .flags = ADDR_TYPE_RT
2911 /* l4_abe -> mcbsp3 */
2912 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
2913 .master = &omap44xx_l4_abe_hwmod,
2914 .slave = &omap44xx_mcbsp3_hwmod,
2915 .clk = "ocp_abe_iclk",
2916 .addr = omap44xx_mcbsp3_addrs,
2917 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_addrs),
2918 .user = OCP_USER_MPU,
2921 static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
2924 .pa_start = 0x49026000,
2925 .pa_end = 0x490260ff,
2926 .flags = ADDR_TYPE_RT
2930 /* l4_abe -> mcbsp3 (dma) */
2931 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
2932 .master = &omap44xx_l4_abe_hwmod,
2933 .slave = &omap44xx_mcbsp3_hwmod,
2934 .clk = "ocp_abe_iclk",
2935 .addr = omap44xx_mcbsp3_dma_addrs,
2936 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_dma_addrs),
2937 .user = OCP_USER_SDMA,
2940 /* mcbsp3 slave ports */
2941 static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
2942 &omap44xx_l4_abe__mcbsp3,
2943 &omap44xx_l4_abe__mcbsp3_dma,
2946 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2948 .class = &omap44xx_mcbsp_hwmod_class,
2949 .mpu_irqs = omap44xx_mcbsp3_irqs,
2950 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_irqs),
2951 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
2952 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_sdma_reqs),
2953 .main_clk = "mcbsp3_fck",
2956 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
2959 .slaves = omap44xx_mcbsp3_slaves,
2960 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
2961 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2965 static struct omap_hwmod omap44xx_mcbsp4_hwmod;
2966 static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
2967 { .irq = 16 + OMAP44XX_IRQ_GIC_START },
2970 static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
2971 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
2972 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
2975 static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
2977 .pa_start = 0x48096000,
2978 .pa_end = 0x480960ff,
2979 .flags = ADDR_TYPE_RT
2983 /* l4_per -> mcbsp4 */
2984 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
2985 .master = &omap44xx_l4_per_hwmod,
2986 .slave = &omap44xx_mcbsp4_hwmod,
2988 .addr = omap44xx_mcbsp4_addrs,
2989 .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp4_addrs),
2990 .user = OCP_USER_MPU | OCP_USER_SDMA,
2993 /* mcbsp4 slave ports */
2994 static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
2995 &omap44xx_l4_per__mcbsp4,
2998 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
3000 .class = &omap44xx_mcbsp_hwmod_class,
3001 .mpu_irqs = omap44xx_mcbsp4_irqs,
3002 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_irqs),
3003 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
3004 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_sdma_reqs),
3005 .main_clk = "mcbsp4_fck",
3008 .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
3011 .slaves = omap44xx_mcbsp4_slaves,
3012 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
3013 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3018 * multi channel pdm controller (proprietary interface with phoenix power
3022 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3024 .sysc_offs = 0x0010,
3025 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3026 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3029 .sysc_fields = &omap_hwmod_sysc_type2,
3032 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3034 .sysc = &omap44xx_mcpdm_sysc,
3038 static struct omap_hwmod omap44xx_mcpdm_hwmod;
3039 static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3040 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
3043 static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
3044 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
3045 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
3048 static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
3050 .pa_start = 0x40132000,
3051 .pa_end = 0x4013207f,
3052 .flags = ADDR_TYPE_RT
3056 /* l4_abe -> mcpdm */
3057 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3058 .master = &omap44xx_l4_abe_hwmod,
3059 .slave = &omap44xx_mcpdm_hwmod,
3060 .clk = "ocp_abe_iclk",
3061 .addr = omap44xx_mcpdm_addrs,
3062 .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_addrs),
3063 .user = OCP_USER_MPU,
3066 static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
3068 .pa_start = 0x49032000,
3069 .pa_end = 0x4903207f,
3070 .flags = ADDR_TYPE_RT
3074 /* l4_abe -> mcpdm (dma) */
3075 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3076 .master = &omap44xx_l4_abe_hwmod,
3077 .slave = &omap44xx_mcpdm_hwmod,
3078 .clk = "ocp_abe_iclk",
3079 .addr = omap44xx_mcpdm_dma_addrs,
3080 .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_dma_addrs),
3081 .user = OCP_USER_SDMA,
3084 /* mcpdm slave ports */
3085 static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
3086 &omap44xx_l4_abe__mcpdm,
3087 &omap44xx_l4_abe__mcpdm_dma,
3090 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
3092 .class = &omap44xx_mcpdm_hwmod_class,
3093 .mpu_irqs = omap44xx_mcpdm_irqs,
3094 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_irqs),
3095 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
3096 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_sdma_reqs),
3097 .main_clk = "mcpdm_fck",
3100 .clkctrl_reg = OMAP4430_CM1_ABE_PDM_CLKCTRL,
3103 .slaves = omap44xx_mcpdm_slaves,
3104 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
3105 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3110 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3114 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3116 .sysc_offs = 0x0010,
3117 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3118 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3119 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3121 .sysc_fields = &omap_hwmod_sysc_type2,
3124 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3126 .sysc = &omap44xx_mcspi_sysc,
3127 .rev = OMAP4_MCSPI_REV,
3131 static struct omap_hwmod omap44xx_mcspi1_hwmod;
3132 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3133 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
3136 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
3137 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
3138 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
3139 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
3140 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
3141 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
3142 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
3143 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
3144 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
3147 static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
3149 .pa_start = 0x48098000,
3150 .pa_end = 0x480981ff,
3151 .flags = ADDR_TYPE_RT
3155 /* l4_per -> mcspi1 */
3156 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3157 .master = &omap44xx_l4_per_hwmod,
3158 .slave = &omap44xx_mcspi1_hwmod,
3160 .addr = omap44xx_mcspi1_addrs,
3161 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
3162 .user = OCP_USER_MPU | OCP_USER_SDMA,
3165 /* mcspi1 slave ports */
3166 static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
3167 &omap44xx_l4_per__mcspi1,
3170 /* mcspi1 dev_attr */
3171 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
3172 .num_chipselect = 4,
3175 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
3177 .class = &omap44xx_mcspi_hwmod_class,
3178 .mpu_irqs = omap44xx_mcspi1_irqs,
3179 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
3180 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
3181 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
3182 .main_clk = "mcspi1_fck",
3185 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
3188 .dev_attr = &mcspi1_dev_attr,
3189 .slaves = omap44xx_mcspi1_slaves,
3190 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
3191 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3195 static struct omap_hwmod omap44xx_mcspi2_hwmod;
3196 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3197 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
3200 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
3201 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
3202 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
3203 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
3204 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
3207 static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
3209 .pa_start = 0x4809a000,
3210 .pa_end = 0x4809a1ff,
3211 .flags = ADDR_TYPE_RT
3215 /* l4_per -> mcspi2 */
3216 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3217 .master = &omap44xx_l4_per_hwmod,
3218 .slave = &omap44xx_mcspi2_hwmod,
3220 .addr = omap44xx_mcspi2_addrs,
3221 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
3222 .user = OCP_USER_MPU | OCP_USER_SDMA,
3225 /* mcspi2 slave ports */
3226 static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
3227 &omap44xx_l4_per__mcspi2,
3230 /* mcspi2 dev_attr */
3231 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
3232 .num_chipselect = 2,
3235 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
3237 .class = &omap44xx_mcspi_hwmod_class,
3238 .mpu_irqs = omap44xx_mcspi2_irqs,
3239 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
3240 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
3241 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
3242 .main_clk = "mcspi2_fck",
3245 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
3248 .dev_attr = &mcspi2_dev_attr,
3249 .slaves = omap44xx_mcspi2_slaves,
3250 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
3251 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3255 static struct omap_hwmod omap44xx_mcspi3_hwmod;
3256 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3257 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
3260 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
3261 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
3262 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
3263 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
3264 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
3267 static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
3269 .pa_start = 0x480b8000,
3270 .pa_end = 0x480b81ff,
3271 .flags = ADDR_TYPE_RT
3275 /* l4_per -> mcspi3 */
3276 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3277 .master = &omap44xx_l4_per_hwmod,
3278 .slave = &omap44xx_mcspi3_hwmod,
3280 .addr = omap44xx_mcspi3_addrs,
3281 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
3282 .user = OCP_USER_MPU | OCP_USER_SDMA,
3285 /* mcspi3 slave ports */
3286 static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
3287 &omap44xx_l4_per__mcspi3,
3290 /* mcspi3 dev_attr */
3291 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
3292 .num_chipselect = 2,
3295 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
3297 .class = &omap44xx_mcspi_hwmod_class,
3298 .mpu_irqs = omap44xx_mcspi3_irqs,
3299 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
3300 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
3301 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
3302 .main_clk = "mcspi3_fck",
3305 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
3308 .dev_attr = &mcspi3_dev_attr,
3309 .slaves = omap44xx_mcspi3_slaves,
3310 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
3311 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3315 static struct omap_hwmod omap44xx_mcspi4_hwmod;
3316 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3317 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
3320 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
3321 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
3322 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
3325 static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
3327 .pa_start = 0x480ba000,
3328 .pa_end = 0x480ba1ff,
3329 .flags = ADDR_TYPE_RT
3333 /* l4_per -> mcspi4 */
3334 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3335 .master = &omap44xx_l4_per_hwmod,
3336 .slave = &omap44xx_mcspi4_hwmod,
3338 .addr = omap44xx_mcspi4_addrs,
3339 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
3340 .user = OCP_USER_MPU | OCP_USER_SDMA,
3343 /* mcspi4 slave ports */
3344 static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
3345 &omap44xx_l4_per__mcspi4,
3348 /* mcspi4 dev_attr */
3349 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
3350 .num_chipselect = 1,
3353 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
3355 .class = &omap44xx_mcspi_hwmod_class,
3356 .mpu_irqs = omap44xx_mcspi4_irqs,
3357 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
3358 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
3359 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
3360 .main_clk = "mcspi4_fck",
3363 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
3366 .dev_attr = &mcspi4_dev_attr,
3367 .slaves = omap44xx_mcspi4_slaves,
3368 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
3369 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3374 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3377 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3379 .sysc_offs = 0x0010,
3380 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3381 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3382 SYSC_HAS_SOFTRESET),
3383 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3384 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3386 .sysc_fields = &omap_hwmod_sysc_type2,
3389 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3391 .sysc = &omap44xx_mmc_sysc,
3396 static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3397 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
3400 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
3401 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
3402 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
3405 /* mmc1 master ports */
3406 static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
3407 &omap44xx_mmc1__l3_main_1,
3410 static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
3412 .pa_start = 0x4809c000,
3413 .pa_end = 0x4809c3ff,
3414 .flags = ADDR_TYPE_RT
3418 /* l4_per -> mmc1 */
3419 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3420 .master = &omap44xx_l4_per_hwmod,
3421 .slave = &omap44xx_mmc1_hwmod,
3423 .addr = omap44xx_mmc1_addrs,
3424 .addr_cnt = ARRAY_SIZE(omap44xx_mmc1_addrs),
3425 .user = OCP_USER_MPU | OCP_USER_SDMA,
3428 /* mmc1 slave ports */
3429 static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3430 &omap44xx_l4_per__mmc1,
3434 static struct omap_mmc_dev_attr mmc1_dev_attr = {
3435 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3438 static struct omap_hwmod omap44xx_mmc1_hwmod = {
3440 .class = &omap44xx_mmc_hwmod_class,
3441 .mpu_irqs = omap44xx_mmc1_irqs,
3442 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc1_irqs),
3443 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
3444 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc1_sdma_reqs),
3445 .main_clk = "mmc1_fck",
3448 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
3451 .dev_attr = &mmc1_dev_attr,
3452 .slaves = omap44xx_mmc1_slaves,
3453 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3454 .masters = omap44xx_mmc1_masters,
3455 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
3456 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3460 static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3461 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
3464 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
3465 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
3466 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
3469 /* mmc2 master ports */
3470 static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
3471 &omap44xx_mmc2__l3_main_1,
3474 static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
3476 .pa_start = 0x480b4000,
3477 .pa_end = 0x480b43ff,
3478 .flags = ADDR_TYPE_RT
3482 /* l4_per -> mmc2 */
3483 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3484 .master = &omap44xx_l4_per_hwmod,
3485 .slave = &omap44xx_mmc2_hwmod,
3487 .addr = omap44xx_mmc2_addrs,
3488 .addr_cnt = ARRAY_SIZE(omap44xx_mmc2_addrs),
3489 .user = OCP_USER_MPU | OCP_USER_SDMA,
3492 /* mmc2 slave ports */
3493 static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
3494 &omap44xx_l4_per__mmc2,
3497 static struct omap_hwmod omap44xx_mmc2_hwmod = {
3499 .class = &omap44xx_mmc_hwmod_class,
3500 .mpu_irqs = omap44xx_mmc2_irqs,
3501 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc2_irqs),
3502 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
3503 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc2_sdma_reqs),
3504 .main_clk = "mmc2_fck",
3507 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
3510 .slaves = omap44xx_mmc2_slaves,
3511 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3512 .masters = omap44xx_mmc2_masters,
3513 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
3514 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3518 static struct omap_hwmod omap44xx_mmc3_hwmod;
3519 static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3520 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
3523 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
3524 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
3525 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
3528 static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
3530 .pa_start = 0x480ad000,
3531 .pa_end = 0x480ad3ff,
3532 .flags = ADDR_TYPE_RT
3536 /* l4_per -> mmc3 */
3537 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3538 .master = &omap44xx_l4_per_hwmod,
3539 .slave = &omap44xx_mmc3_hwmod,
3541 .addr = omap44xx_mmc3_addrs,
3542 .addr_cnt = ARRAY_SIZE(omap44xx_mmc3_addrs),
3543 .user = OCP_USER_MPU | OCP_USER_SDMA,
3546 /* mmc3 slave ports */
3547 static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
3548 &omap44xx_l4_per__mmc3,
3551 static struct omap_hwmod omap44xx_mmc3_hwmod = {
3553 .class = &omap44xx_mmc_hwmod_class,
3554 .mpu_irqs = omap44xx_mmc3_irqs,
3555 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc3_irqs),
3556 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
3557 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc3_sdma_reqs),
3558 .main_clk = "mmc3_fck",
3561 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
3564 .slaves = omap44xx_mmc3_slaves,
3565 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
3566 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3570 static struct omap_hwmod omap44xx_mmc4_hwmod;
3571 static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3572 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
3575 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
3576 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
3577 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
3580 static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
3582 .pa_start = 0x480d1000,
3583 .pa_end = 0x480d13ff,
3584 .flags = ADDR_TYPE_RT
3588 /* l4_per -> mmc4 */
3589 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3590 .master = &omap44xx_l4_per_hwmod,
3591 .slave = &omap44xx_mmc4_hwmod,
3593 .addr = omap44xx_mmc4_addrs,
3594 .addr_cnt = ARRAY_SIZE(omap44xx_mmc4_addrs),
3595 .user = OCP_USER_MPU | OCP_USER_SDMA,
3598 /* mmc4 slave ports */
3599 static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
3600 &omap44xx_l4_per__mmc4,
3603 static struct omap_hwmod omap44xx_mmc4_hwmod = {
3605 .class = &omap44xx_mmc_hwmod_class,
3606 .mpu_irqs = omap44xx_mmc4_irqs,
3607 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc4_irqs),
3608 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
3609 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc4_sdma_reqs),
3610 .main_clk = "mmc4_fck",
3613 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD4_CLKCTRL,
3616 .slaves = omap44xx_mmc4_slaves,
3617 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
3618 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3622 static struct omap_hwmod omap44xx_mmc5_hwmod;
3623 static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
3624 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
3627 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3628 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3629 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
3632 static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3634 .pa_start = 0x480d5000,
3635 .pa_end = 0x480d53ff,
3636 .flags = ADDR_TYPE_RT
3640 /* l4_per -> mmc5 */
3641 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3642 .master = &omap44xx_l4_per_hwmod,
3643 .slave = &omap44xx_mmc5_hwmod,
3645 .addr = omap44xx_mmc5_addrs,
3646 .addr_cnt = ARRAY_SIZE(omap44xx_mmc5_addrs),
3647 .user = OCP_USER_MPU | OCP_USER_SDMA,
3650 /* mmc5 slave ports */
3651 static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3652 &omap44xx_l4_per__mmc5,
3655 static struct omap_hwmod omap44xx_mmc5_hwmod = {
3657 .class = &omap44xx_mmc_hwmod_class,
3658 .mpu_irqs = omap44xx_mmc5_irqs,
3659 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc5_irqs),
3660 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
3661 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc5_sdma_reqs),
3662 .main_clk = "mmc5_fck",
3665 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD5_CLKCTRL,
3668 .slaves = omap44xx_mmc5_slaves,
3669 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
3670 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3678 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
3683 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
3684 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
3685 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
3686 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
3689 /* mpu master ports */
3690 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3691 &omap44xx_mpu__l3_main_1,
3692 &omap44xx_mpu__l4_abe,
3696 static struct omap_hwmod omap44xx_mpu_hwmod = {
3698 .class = &omap44xx_mpu_hwmod_class,
3699 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
3700 .mpu_irqs = omap44xx_mpu_irqs,
3701 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
3702 .main_clk = "dpll_mpu_m2_ck",
3705 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
3708 .masters = omap44xx_mpu_masters,
3709 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
3710 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3714 * 'smartreflex' class
3715 * smartreflex module (monitor silicon performance and outputs a measure of
3716 * performance error)
3719 /* The IP is not compliant to type1 / type2 scheme */
3720 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
3725 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
3726 .sysc_offs = 0x0038,
3727 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
3728 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3730 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
3733 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
3734 .name = "smartreflex",
3735 .sysc = &omap44xx_smartreflex_sysc,
3739 /* smartreflex_core */
3740 static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
3741 static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
3742 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
3745 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3747 .pa_start = 0x4a0dd000,
3748 .pa_end = 0x4a0dd03f,
3749 .flags = ADDR_TYPE_RT
3753 /* l4_cfg -> smartreflex_core */
3754 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3755 .master = &omap44xx_l4_cfg_hwmod,
3756 .slave = &omap44xx_smartreflex_core_hwmod,
3758 .addr = omap44xx_smartreflex_core_addrs,
3759 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
3760 .user = OCP_USER_MPU | OCP_USER_SDMA,
3763 /* smartreflex_core slave ports */
3764 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3765 &omap44xx_l4_cfg__smartreflex_core,
3768 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3769 .name = "smartreflex_core",
3770 .class = &omap44xx_smartreflex_hwmod_class,
3771 .mpu_irqs = omap44xx_smartreflex_core_irqs,
3772 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
3773 .main_clk = "smartreflex_core_fck",
3777 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
3780 .slaves = omap44xx_smartreflex_core_slaves,
3781 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
3782 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3785 /* smartreflex_iva */
3786 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
3787 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3788 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
3791 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
3793 .pa_start = 0x4a0db000,
3794 .pa_end = 0x4a0db03f,
3795 .flags = ADDR_TYPE_RT
3799 /* l4_cfg -> smartreflex_iva */
3800 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3801 .master = &omap44xx_l4_cfg_hwmod,
3802 .slave = &omap44xx_smartreflex_iva_hwmod,
3804 .addr = omap44xx_smartreflex_iva_addrs,
3805 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
3806 .user = OCP_USER_MPU | OCP_USER_SDMA,
3809 /* smartreflex_iva slave ports */
3810 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
3811 &omap44xx_l4_cfg__smartreflex_iva,
3814 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3815 .name = "smartreflex_iva",
3816 .class = &omap44xx_smartreflex_hwmod_class,
3817 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
3818 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
3819 .main_clk = "smartreflex_iva_fck",
3823 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
3826 .slaves = omap44xx_smartreflex_iva_slaves,
3827 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
3828 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3831 /* smartreflex_mpu */
3832 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
3833 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3834 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
3837 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
3839 .pa_start = 0x4a0d9000,
3840 .pa_end = 0x4a0d903f,
3841 .flags = ADDR_TYPE_RT
3845 /* l4_cfg -> smartreflex_mpu */
3846 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3847 .master = &omap44xx_l4_cfg_hwmod,
3848 .slave = &omap44xx_smartreflex_mpu_hwmod,
3850 .addr = omap44xx_smartreflex_mpu_addrs,
3851 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
3852 .user = OCP_USER_MPU | OCP_USER_SDMA,
3855 /* smartreflex_mpu slave ports */
3856 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
3857 &omap44xx_l4_cfg__smartreflex_mpu,
3860 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3861 .name = "smartreflex_mpu",
3862 .class = &omap44xx_smartreflex_hwmod_class,
3863 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
3864 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
3865 .main_clk = "smartreflex_mpu_fck",
3869 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
3872 .slaves = omap44xx_smartreflex_mpu_slaves,
3873 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
3874 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3879 * spinlock provides hardware assistance for synchronizing the processes
3880 * running on multiple processors
3883 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3885 .sysc_offs = 0x0010,
3886 .syss_offs = 0x0014,
3887 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3888 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3889 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3890 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3892 .sysc_fields = &omap_hwmod_sysc_type1,
3895 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3897 .sysc = &omap44xx_spinlock_sysc,
3901 static struct omap_hwmod omap44xx_spinlock_hwmod;
3902 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
3904 .pa_start = 0x4a0f6000,
3905 .pa_end = 0x4a0f6fff,
3906 .flags = ADDR_TYPE_RT
3910 /* l4_cfg -> spinlock */
3911 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3912 .master = &omap44xx_l4_cfg_hwmod,
3913 .slave = &omap44xx_spinlock_hwmod,
3915 .addr = omap44xx_spinlock_addrs,
3916 .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
3917 .user = OCP_USER_MPU | OCP_USER_SDMA,
3920 /* spinlock slave ports */
3921 static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
3922 &omap44xx_l4_cfg__spinlock,
3925 static struct omap_hwmod omap44xx_spinlock_hwmod = {
3927 .class = &omap44xx_spinlock_hwmod_class,
3930 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
3933 .slaves = omap44xx_spinlock_slaves,
3934 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
3935 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3940 * general purpose timer module with accurate 1ms tick
3941 * This class contains several variants: ['timer_1ms', 'timer']
3944 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3946 .sysc_offs = 0x0010,
3947 .syss_offs = 0x0014,
3948 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3949 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3950 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3951 SYSS_HAS_RESET_STATUS),
3952 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3953 .sysc_fields = &omap_hwmod_sysc_type1,
3956 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3958 .sysc = &omap44xx_timer_1ms_sysc,
3961 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
3963 .sysc_offs = 0x0010,
3964 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3965 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3966 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3968 .sysc_fields = &omap_hwmod_sysc_type2,
3971 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
3973 .sysc = &omap44xx_timer_sysc,
3977 static struct omap_hwmod omap44xx_timer1_hwmod;
3978 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
3979 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
3982 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
3984 .pa_start = 0x4a318000,
3985 .pa_end = 0x4a31807f,
3986 .flags = ADDR_TYPE_RT
3990 /* l4_wkup -> timer1 */
3991 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
3992 .master = &omap44xx_l4_wkup_hwmod,
3993 .slave = &omap44xx_timer1_hwmod,
3994 .clk = "l4_wkup_clk_mux_ck",
3995 .addr = omap44xx_timer1_addrs,
3996 .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
3997 .user = OCP_USER_MPU | OCP_USER_SDMA,
4000 /* timer1 slave ports */
4001 static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
4002 &omap44xx_l4_wkup__timer1,
4005 static struct omap_hwmod omap44xx_timer1_hwmod = {
4007 .class = &omap44xx_timer_1ms_hwmod_class,
4008 .mpu_irqs = omap44xx_timer1_irqs,
4009 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
4010 .main_clk = "timer1_fck",
4013 .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
4016 .slaves = omap44xx_timer1_slaves,
4017 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
4018 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4022 static struct omap_hwmod omap44xx_timer2_hwmod;
4023 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4024 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
4027 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4029 .pa_start = 0x48032000,
4030 .pa_end = 0x4803207f,
4031 .flags = ADDR_TYPE_RT
4035 /* l4_per -> timer2 */
4036 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4037 .master = &omap44xx_l4_per_hwmod,
4038 .slave = &omap44xx_timer2_hwmod,
4040 .addr = omap44xx_timer2_addrs,
4041 .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
4042 .user = OCP_USER_MPU | OCP_USER_SDMA,
4045 /* timer2 slave ports */
4046 static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4047 &omap44xx_l4_per__timer2,
4050 static struct omap_hwmod omap44xx_timer2_hwmod = {
4052 .class = &omap44xx_timer_1ms_hwmod_class,
4053 .mpu_irqs = omap44xx_timer2_irqs,
4054 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
4055 .main_clk = "timer2_fck",
4058 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
4061 .slaves = omap44xx_timer2_slaves,
4062 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
4063 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4067 static struct omap_hwmod omap44xx_timer3_hwmod;
4068 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4069 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
4072 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4074 .pa_start = 0x48034000,
4075 .pa_end = 0x4803407f,
4076 .flags = ADDR_TYPE_RT
4080 /* l4_per -> timer3 */
4081 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4082 .master = &omap44xx_l4_per_hwmod,
4083 .slave = &omap44xx_timer3_hwmod,
4085 .addr = omap44xx_timer3_addrs,
4086 .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
4087 .user = OCP_USER_MPU | OCP_USER_SDMA,
4090 /* timer3 slave ports */
4091 static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4092 &omap44xx_l4_per__timer3,
4095 static struct omap_hwmod omap44xx_timer3_hwmod = {
4097 .class = &omap44xx_timer_hwmod_class,
4098 .mpu_irqs = omap44xx_timer3_irqs,
4099 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
4100 .main_clk = "timer3_fck",
4103 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
4106 .slaves = omap44xx_timer3_slaves,
4107 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
4108 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4112 static struct omap_hwmod omap44xx_timer4_hwmod;
4113 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4114 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
4117 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4119 .pa_start = 0x48036000,
4120 .pa_end = 0x4803607f,
4121 .flags = ADDR_TYPE_RT
4125 /* l4_per -> timer4 */
4126 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4127 .master = &omap44xx_l4_per_hwmod,
4128 .slave = &omap44xx_timer4_hwmod,
4130 .addr = omap44xx_timer4_addrs,
4131 .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
4132 .user = OCP_USER_MPU | OCP_USER_SDMA,
4135 /* timer4 slave ports */
4136 static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4137 &omap44xx_l4_per__timer4,
4140 static struct omap_hwmod omap44xx_timer4_hwmod = {
4142 .class = &omap44xx_timer_hwmod_class,
4143 .mpu_irqs = omap44xx_timer4_irqs,
4144 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
4145 .main_clk = "timer4_fck",
4148 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
4151 .slaves = omap44xx_timer4_slaves,
4152 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
4153 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4157 static struct omap_hwmod omap44xx_timer5_hwmod;
4158 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4159 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
4162 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4164 .pa_start = 0x40138000,
4165 .pa_end = 0x4013807f,
4166 .flags = ADDR_TYPE_RT
4170 /* l4_abe -> timer5 */
4171 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4172 .master = &omap44xx_l4_abe_hwmod,
4173 .slave = &omap44xx_timer5_hwmod,
4174 .clk = "ocp_abe_iclk",
4175 .addr = omap44xx_timer5_addrs,
4176 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
4177 .user = OCP_USER_MPU,
4180 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4182 .pa_start = 0x49038000,
4183 .pa_end = 0x4903807f,
4184 .flags = ADDR_TYPE_RT
4188 /* l4_abe -> timer5 (dma) */
4189 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4190 .master = &omap44xx_l4_abe_hwmod,
4191 .slave = &omap44xx_timer5_hwmod,
4192 .clk = "ocp_abe_iclk",
4193 .addr = omap44xx_timer5_dma_addrs,
4194 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
4195 .user = OCP_USER_SDMA,
4198 /* timer5 slave ports */
4199 static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4200 &omap44xx_l4_abe__timer5,
4201 &omap44xx_l4_abe__timer5_dma,
4204 static struct omap_hwmod omap44xx_timer5_hwmod = {
4206 .class = &omap44xx_timer_hwmod_class,
4207 .mpu_irqs = omap44xx_timer5_irqs,
4208 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
4209 .main_clk = "timer5_fck",
4212 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
4215 .slaves = omap44xx_timer5_slaves,
4216 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
4217 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4221 static struct omap_hwmod omap44xx_timer6_hwmod;
4222 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4223 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
4226 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4228 .pa_start = 0x4013a000,
4229 .pa_end = 0x4013a07f,
4230 .flags = ADDR_TYPE_RT
4234 /* l4_abe -> timer6 */
4235 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4236 .master = &omap44xx_l4_abe_hwmod,
4237 .slave = &omap44xx_timer6_hwmod,
4238 .clk = "ocp_abe_iclk",
4239 .addr = omap44xx_timer6_addrs,
4240 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
4241 .user = OCP_USER_MPU,
4244 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4246 .pa_start = 0x4903a000,
4247 .pa_end = 0x4903a07f,
4248 .flags = ADDR_TYPE_RT
4252 /* l4_abe -> timer6 (dma) */
4253 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4254 .master = &omap44xx_l4_abe_hwmod,
4255 .slave = &omap44xx_timer6_hwmod,
4256 .clk = "ocp_abe_iclk",
4257 .addr = omap44xx_timer6_dma_addrs,
4258 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
4259 .user = OCP_USER_SDMA,
4262 /* timer6 slave ports */
4263 static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4264 &omap44xx_l4_abe__timer6,
4265 &omap44xx_l4_abe__timer6_dma,
4268 static struct omap_hwmod omap44xx_timer6_hwmod = {
4270 .class = &omap44xx_timer_hwmod_class,
4271 .mpu_irqs = omap44xx_timer6_irqs,
4272 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
4273 .main_clk = "timer6_fck",
4276 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
4279 .slaves = omap44xx_timer6_slaves,
4280 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
4281 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4285 static struct omap_hwmod omap44xx_timer7_hwmod;
4286 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4287 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
4290 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4292 .pa_start = 0x4013c000,
4293 .pa_end = 0x4013c07f,
4294 .flags = ADDR_TYPE_RT
4298 /* l4_abe -> timer7 */
4299 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4300 .master = &omap44xx_l4_abe_hwmod,
4301 .slave = &omap44xx_timer7_hwmod,
4302 .clk = "ocp_abe_iclk",
4303 .addr = omap44xx_timer7_addrs,
4304 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
4305 .user = OCP_USER_MPU,
4308 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4310 .pa_start = 0x4903c000,
4311 .pa_end = 0x4903c07f,
4312 .flags = ADDR_TYPE_RT
4316 /* l4_abe -> timer7 (dma) */
4317 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4318 .master = &omap44xx_l4_abe_hwmod,
4319 .slave = &omap44xx_timer7_hwmod,
4320 .clk = "ocp_abe_iclk",
4321 .addr = omap44xx_timer7_dma_addrs,
4322 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
4323 .user = OCP_USER_SDMA,
4326 /* timer7 slave ports */
4327 static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4328 &omap44xx_l4_abe__timer7,
4329 &omap44xx_l4_abe__timer7_dma,
4332 static struct omap_hwmod omap44xx_timer7_hwmod = {
4334 .class = &omap44xx_timer_hwmod_class,
4335 .mpu_irqs = omap44xx_timer7_irqs,
4336 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
4337 .main_clk = "timer7_fck",
4340 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
4343 .slaves = omap44xx_timer7_slaves,
4344 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
4345 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4349 static struct omap_hwmod omap44xx_timer8_hwmod;
4350 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4351 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
4354 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4356 .pa_start = 0x4013e000,
4357 .pa_end = 0x4013e07f,
4358 .flags = ADDR_TYPE_RT
4362 /* l4_abe -> timer8 */
4363 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4364 .master = &omap44xx_l4_abe_hwmod,
4365 .slave = &omap44xx_timer8_hwmod,
4366 .clk = "ocp_abe_iclk",
4367 .addr = omap44xx_timer8_addrs,
4368 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
4369 .user = OCP_USER_MPU,
4372 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4374 .pa_start = 0x4903e000,
4375 .pa_end = 0x4903e07f,
4376 .flags = ADDR_TYPE_RT
4380 /* l4_abe -> timer8 (dma) */
4381 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4382 .master = &omap44xx_l4_abe_hwmod,
4383 .slave = &omap44xx_timer8_hwmod,
4384 .clk = "ocp_abe_iclk",
4385 .addr = omap44xx_timer8_dma_addrs,
4386 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
4387 .user = OCP_USER_SDMA,
4390 /* timer8 slave ports */
4391 static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4392 &omap44xx_l4_abe__timer8,
4393 &omap44xx_l4_abe__timer8_dma,
4396 static struct omap_hwmod omap44xx_timer8_hwmod = {
4398 .class = &omap44xx_timer_hwmod_class,
4399 .mpu_irqs = omap44xx_timer8_irqs,
4400 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
4401 .main_clk = "timer8_fck",
4404 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
4407 .slaves = omap44xx_timer8_slaves,
4408 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
4409 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4413 static struct omap_hwmod omap44xx_timer9_hwmod;
4414 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4415 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
4418 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4420 .pa_start = 0x4803e000,
4421 .pa_end = 0x4803e07f,
4422 .flags = ADDR_TYPE_RT
4426 /* l4_per -> timer9 */
4427 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4428 .master = &omap44xx_l4_per_hwmod,
4429 .slave = &omap44xx_timer9_hwmod,
4431 .addr = omap44xx_timer9_addrs,
4432 .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
4433 .user = OCP_USER_MPU | OCP_USER_SDMA,
4436 /* timer9 slave ports */
4437 static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4438 &omap44xx_l4_per__timer9,
4441 static struct omap_hwmod omap44xx_timer9_hwmod = {
4443 .class = &omap44xx_timer_hwmod_class,
4444 .mpu_irqs = omap44xx_timer9_irqs,
4445 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
4446 .main_clk = "timer9_fck",
4449 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
4452 .slaves = omap44xx_timer9_slaves,
4453 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
4454 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4458 static struct omap_hwmod omap44xx_timer10_hwmod;
4459 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4460 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
4463 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4465 .pa_start = 0x48086000,
4466 .pa_end = 0x4808607f,
4467 .flags = ADDR_TYPE_RT
4471 /* l4_per -> timer10 */
4472 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4473 .master = &omap44xx_l4_per_hwmod,
4474 .slave = &omap44xx_timer10_hwmod,
4476 .addr = omap44xx_timer10_addrs,
4477 .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
4478 .user = OCP_USER_MPU | OCP_USER_SDMA,
4481 /* timer10 slave ports */
4482 static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4483 &omap44xx_l4_per__timer10,
4486 static struct omap_hwmod omap44xx_timer10_hwmod = {
4488 .class = &omap44xx_timer_1ms_hwmod_class,
4489 .mpu_irqs = omap44xx_timer10_irqs,
4490 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
4491 .main_clk = "timer10_fck",
4494 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
4497 .slaves = omap44xx_timer10_slaves,
4498 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
4499 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4503 static struct omap_hwmod omap44xx_timer11_hwmod;
4504 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4505 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
4508 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4510 .pa_start = 0x48088000,
4511 .pa_end = 0x4808807f,
4512 .flags = ADDR_TYPE_RT
4516 /* l4_per -> timer11 */
4517 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4518 .master = &omap44xx_l4_per_hwmod,
4519 .slave = &omap44xx_timer11_hwmod,
4521 .addr = omap44xx_timer11_addrs,
4522 .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
4523 .user = OCP_USER_MPU | OCP_USER_SDMA,
4526 /* timer11 slave ports */
4527 static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4528 &omap44xx_l4_per__timer11,
4531 static struct omap_hwmod omap44xx_timer11_hwmod = {
4533 .class = &omap44xx_timer_hwmod_class,
4534 .mpu_irqs = omap44xx_timer11_irqs,
4535 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
4536 .main_clk = "timer11_fck",
4539 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
4542 .slaves = omap44xx_timer11_slaves,
4543 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
4544 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4549 * universal asynchronous receiver/transmitter (uart)
4552 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4554 .sysc_offs = 0x0054,
4555 .syss_offs = 0x0058,
4556 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4557 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4558 SYSS_HAS_RESET_STATUS),
4559 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4561 .sysc_fields = &omap_hwmod_sysc_type1,
4564 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
4566 .sysc = &omap44xx_uart_sysc,
4570 static struct omap_hwmod omap44xx_uart1_hwmod;
4571 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4572 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
4575 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4576 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4577 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
4580 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4582 .pa_start = 0x4806a000,
4583 .pa_end = 0x4806a0ff,
4584 .flags = ADDR_TYPE_RT
4588 /* l4_per -> uart1 */
4589 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4590 .master = &omap44xx_l4_per_hwmod,
4591 .slave = &omap44xx_uart1_hwmod,
4593 .addr = omap44xx_uart1_addrs,
4594 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
4595 .user = OCP_USER_MPU | OCP_USER_SDMA,
4598 /* uart1 slave ports */
4599 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4600 &omap44xx_l4_per__uart1,
4603 static struct omap_hwmod omap44xx_uart1_hwmod = {
4605 .class = &omap44xx_uart_hwmod_class,
4606 .mpu_irqs = omap44xx_uart1_irqs,
4607 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
4608 .sdma_reqs = omap44xx_uart1_sdma_reqs,
4609 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
4610 .main_clk = "uart1_fck",
4613 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
4616 .slaves = omap44xx_uart1_slaves,
4617 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
4618 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4622 static struct omap_hwmod omap44xx_uart2_hwmod;
4623 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4624 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
4627 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4628 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4629 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
4632 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4634 .pa_start = 0x4806c000,
4635 .pa_end = 0x4806c0ff,
4636 .flags = ADDR_TYPE_RT
4640 /* l4_per -> uart2 */
4641 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4642 .master = &omap44xx_l4_per_hwmod,
4643 .slave = &omap44xx_uart2_hwmod,
4645 .addr = omap44xx_uart2_addrs,
4646 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
4647 .user = OCP_USER_MPU | OCP_USER_SDMA,
4650 /* uart2 slave ports */
4651 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4652 &omap44xx_l4_per__uart2,
4655 static struct omap_hwmod omap44xx_uart2_hwmod = {
4657 .class = &omap44xx_uart_hwmod_class,
4658 .mpu_irqs = omap44xx_uart2_irqs,
4659 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
4660 .sdma_reqs = omap44xx_uart2_sdma_reqs,
4661 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
4662 .main_clk = "uart2_fck",
4665 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
4668 .slaves = omap44xx_uart2_slaves,
4669 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
4670 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4674 static struct omap_hwmod omap44xx_uart3_hwmod;
4675 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4676 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
4679 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4680 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4681 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
4684 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4686 .pa_start = 0x48020000,
4687 .pa_end = 0x480200ff,
4688 .flags = ADDR_TYPE_RT
4692 /* l4_per -> uart3 */
4693 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4694 .master = &omap44xx_l4_per_hwmod,
4695 .slave = &omap44xx_uart3_hwmod,
4697 .addr = omap44xx_uart3_addrs,
4698 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
4699 .user = OCP_USER_MPU | OCP_USER_SDMA,
4702 /* uart3 slave ports */
4703 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4704 &omap44xx_l4_per__uart3,
4707 static struct omap_hwmod omap44xx_uart3_hwmod = {
4709 .class = &omap44xx_uart_hwmod_class,
4710 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
4711 .mpu_irqs = omap44xx_uart3_irqs,
4712 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
4713 .sdma_reqs = omap44xx_uart3_sdma_reqs,
4714 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
4715 .main_clk = "uart3_fck",
4718 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
4721 .slaves = omap44xx_uart3_slaves,
4722 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
4723 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4727 static struct omap_hwmod omap44xx_uart4_hwmod;
4728 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
4729 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
4732 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
4733 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
4734 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
4737 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
4739 .pa_start = 0x4806e000,
4740 .pa_end = 0x4806e0ff,
4741 .flags = ADDR_TYPE_RT
4745 /* l4_per -> uart4 */
4746 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4747 .master = &omap44xx_l4_per_hwmod,
4748 .slave = &omap44xx_uart4_hwmod,
4750 .addr = omap44xx_uart4_addrs,
4751 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
4752 .user = OCP_USER_MPU | OCP_USER_SDMA,
4755 /* uart4 slave ports */
4756 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
4757 &omap44xx_l4_per__uart4,
4760 static struct omap_hwmod omap44xx_uart4_hwmod = {
4762 .class = &omap44xx_uart_hwmod_class,
4763 .mpu_irqs = omap44xx_uart4_irqs,
4764 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
4765 .sdma_reqs = omap44xx_uart4_sdma_reqs,
4766 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
4767 .main_clk = "uart4_fck",
4770 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
4773 .slaves = omap44xx_uart4_slaves,
4774 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
4775 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4779 * 'usb_otg_hs' class
4780 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
4783 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
4785 .sysc_offs = 0x0404,
4786 .syss_offs = 0x0408,
4787 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4788 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
4789 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4790 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4791 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
4793 .sysc_fields = &omap_hwmod_sysc_type1,
4796 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
4797 .name = "usb_otg_hs",
4798 .sysc = &omap44xx_usb_otg_hs_sysc,
4802 static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
4803 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
4804 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
4807 /* usb_otg_hs master ports */
4808 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
4809 &omap44xx_usb_otg_hs__l3_main_2,
4812 static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
4814 .pa_start = 0x4a0ab000,
4815 .pa_end = 0x4a0ab003,
4816 .flags = ADDR_TYPE_RT
4820 /* l4_cfg -> usb_otg_hs */
4821 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4822 .master = &omap44xx_l4_cfg_hwmod,
4823 .slave = &omap44xx_usb_otg_hs_hwmod,
4825 .addr = omap44xx_usb_otg_hs_addrs,
4826 .addr_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_addrs),
4827 .user = OCP_USER_MPU | OCP_USER_SDMA,
4830 /* usb_otg_hs slave ports */
4831 static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
4832 &omap44xx_l4_cfg__usb_otg_hs,
4835 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
4836 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
4839 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
4840 .name = "usb_otg_hs",
4841 .class = &omap44xx_usb_otg_hs_hwmod_class,
4842 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
4843 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
4844 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_irqs),
4845 .main_clk = "usb_otg_hs_ick",
4848 .clkctrl_reg = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
4851 .opt_clks = usb_otg_hs_opt_clks,
4852 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
4853 .slaves = omap44xx_usb_otg_hs_slaves,
4854 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
4855 .masters = omap44xx_usb_otg_hs_masters,
4856 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
4857 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4862 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
4863 * overflow condition
4866 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
4868 .sysc_offs = 0x0010,
4869 .syss_offs = 0x0014,
4870 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
4871 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4872 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4874 .sysc_fields = &omap_hwmod_sysc_type1,
4877 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
4879 .sysc = &omap44xx_wd_timer_sysc,
4880 .pre_shutdown = &omap2_wd_timer_disable,
4884 static struct omap_hwmod omap44xx_wd_timer2_hwmod;
4885 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
4886 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
4889 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
4891 .pa_start = 0x4a314000,
4892 .pa_end = 0x4a31407f,
4893 .flags = ADDR_TYPE_RT
4897 /* l4_wkup -> wd_timer2 */
4898 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4899 .master = &omap44xx_l4_wkup_hwmod,
4900 .slave = &omap44xx_wd_timer2_hwmod,
4901 .clk = "l4_wkup_clk_mux_ck",
4902 .addr = omap44xx_wd_timer2_addrs,
4903 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
4904 .user = OCP_USER_MPU | OCP_USER_SDMA,
4907 /* wd_timer2 slave ports */
4908 static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
4909 &omap44xx_l4_wkup__wd_timer2,
4912 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
4913 .name = "wd_timer2",
4914 .class = &omap44xx_wd_timer_hwmod_class,
4915 .mpu_irqs = omap44xx_wd_timer2_irqs,
4916 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
4917 .main_clk = "wd_timer2_fck",
4920 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
4923 .slaves = omap44xx_wd_timer2_slaves,
4924 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
4925 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4929 static struct omap_hwmod omap44xx_wd_timer3_hwmod;
4930 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
4931 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
4934 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4936 .pa_start = 0x40130000,
4937 .pa_end = 0x4013007f,
4938 .flags = ADDR_TYPE_RT
4942 /* l4_abe -> wd_timer3 */
4943 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4944 .master = &omap44xx_l4_abe_hwmod,
4945 .slave = &omap44xx_wd_timer3_hwmod,
4946 .clk = "ocp_abe_iclk",
4947 .addr = omap44xx_wd_timer3_addrs,
4948 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
4949 .user = OCP_USER_MPU,
4952 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4954 .pa_start = 0x49030000,
4955 .pa_end = 0x4903007f,
4956 .flags = ADDR_TYPE_RT
4960 /* l4_abe -> wd_timer3 (dma) */
4961 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4962 .master = &omap44xx_l4_abe_hwmod,
4963 .slave = &omap44xx_wd_timer3_hwmod,
4964 .clk = "ocp_abe_iclk",
4965 .addr = omap44xx_wd_timer3_dma_addrs,
4966 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
4967 .user = OCP_USER_SDMA,
4970 /* wd_timer3 slave ports */
4971 static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
4972 &omap44xx_l4_abe__wd_timer3,
4973 &omap44xx_l4_abe__wd_timer3_dma,
4976 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
4977 .name = "wd_timer3",
4978 .class = &omap44xx_wd_timer_hwmod_class,
4979 .mpu_irqs = omap44xx_wd_timer3_irqs,
4980 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
4981 .main_clk = "wd_timer3_fck",
4984 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
4987 .slaves = omap44xx_wd_timer3_slaves,
4988 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
4989 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4992 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
4995 &omap44xx_dmm_hwmod,
4998 &omap44xx_emif_fw_hwmod,
5001 &omap44xx_l3_instr_hwmod,
5002 &omap44xx_l3_main_1_hwmod,
5003 &omap44xx_l3_main_2_hwmod,
5004 &omap44xx_l3_main_3_hwmod,
5007 &omap44xx_l4_abe_hwmod,
5008 &omap44xx_l4_cfg_hwmod,
5009 &omap44xx_l4_per_hwmod,
5010 &omap44xx_l4_wkup_hwmod,
5013 &omap44xx_mpu_private_hwmod,
5016 /* &omap44xx_aess_hwmod, */
5019 &omap44xx_bandgap_hwmod,
5022 /* &omap44xx_counter_32k_hwmod, */
5025 &omap44xx_dma_system_hwmod,
5028 &omap44xx_dmic_hwmod,
5031 &omap44xx_dsp_hwmod,
5032 &omap44xx_dsp_c0_hwmod,
5035 &omap44xx_dss_hwmod,
5036 &omap44xx_dss_dispc_hwmod,
5037 &omap44xx_dss_dsi1_hwmod,
5038 &omap44xx_dss_dsi2_hwmod,
5039 &omap44xx_dss_hdmi_hwmod,
5040 &omap44xx_dss_rfbi_hwmod,
5041 &omap44xx_dss_venc_hwmod,
5044 &omap44xx_gpio1_hwmod,
5045 &omap44xx_gpio2_hwmod,
5046 &omap44xx_gpio3_hwmod,
5047 &omap44xx_gpio4_hwmod,
5048 &omap44xx_gpio5_hwmod,
5049 &omap44xx_gpio6_hwmod,
5052 /* &omap44xx_hsi_hwmod, */
5055 &omap44xx_i2c1_hwmod,
5056 &omap44xx_i2c2_hwmod,
5057 &omap44xx_i2c3_hwmod,
5058 &omap44xx_i2c4_hwmod,
5061 &omap44xx_ipu_hwmod,
5062 &omap44xx_ipu_c0_hwmod,
5063 &omap44xx_ipu_c1_hwmod,
5066 /* &omap44xx_iss_hwmod, */
5069 &omap44xx_iva_hwmod,
5070 &omap44xx_iva_seq0_hwmod,
5071 &omap44xx_iva_seq1_hwmod,
5074 /* &omap44xx_kbd_hwmod, */
5077 &omap44xx_mailbox_hwmod,
5080 &omap44xx_mcbsp1_hwmod,
5081 &omap44xx_mcbsp2_hwmod,
5082 &omap44xx_mcbsp3_hwmod,
5083 &omap44xx_mcbsp4_hwmod,
5086 /* &omap44xx_mcpdm_hwmod, */
5089 &omap44xx_mcspi1_hwmod,
5090 &omap44xx_mcspi2_hwmod,
5091 &omap44xx_mcspi3_hwmod,
5092 &omap44xx_mcspi4_hwmod,
5095 &omap44xx_mmc1_hwmod,
5096 &omap44xx_mmc2_hwmod,
5097 &omap44xx_mmc3_hwmod,
5098 &omap44xx_mmc4_hwmod,
5099 &omap44xx_mmc5_hwmod,
5102 &omap44xx_mpu_hwmod,
5104 /* smartreflex class */
5105 &omap44xx_smartreflex_core_hwmod,
5106 &omap44xx_smartreflex_iva_hwmod,
5107 &omap44xx_smartreflex_mpu_hwmod,
5109 /* spinlock class */
5110 &omap44xx_spinlock_hwmod,
5113 &omap44xx_timer1_hwmod,
5114 &omap44xx_timer2_hwmod,
5115 &omap44xx_timer3_hwmod,
5116 &omap44xx_timer4_hwmod,
5117 &omap44xx_timer5_hwmod,
5118 &omap44xx_timer6_hwmod,
5119 &omap44xx_timer7_hwmod,
5120 &omap44xx_timer8_hwmod,
5121 &omap44xx_timer9_hwmod,
5122 &omap44xx_timer10_hwmod,
5123 &omap44xx_timer11_hwmod,
5126 &omap44xx_uart1_hwmod,
5127 &omap44xx_uart2_hwmod,
5128 &omap44xx_uart3_hwmod,
5129 &omap44xx_uart4_hwmod,
5131 /* usb_otg_hs class */
5132 &omap44xx_usb_otg_hs_hwmod,
5134 /* wd_timer class */
5135 &omap44xx_wd_timer2_hwmod,
5136 &omap44xx_wd_timer3_hwmod,
5141 int __init omap44xx_hwmod_init(void)
5143 return omap_hwmod_register(omap44xx_hwmods);