2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2010 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>
28 #include "omap_hwmod_common_data.h"
33 #include "prm-regbits-44xx.h"
36 /* Base offset for all OMAP4 interrupts external to MPUSS */
37 #define OMAP44XX_IRQ_GIC_START 32
39 /* Base offset for all OMAP4 dma requests */
40 #define OMAP44XX_DMA_REQ_START 1
42 /* Backward references (IPs with Bus Master capability) */
43 static struct omap_hwmod omap44xx_dma_system_hwmod;
44 static struct omap_hwmod omap44xx_dmm_hwmod;
45 static struct omap_hwmod omap44xx_dsp_hwmod;
46 static struct omap_hwmod omap44xx_emif_fw_hwmod;
47 static struct omap_hwmod omap44xx_iva_hwmod;
48 static struct omap_hwmod omap44xx_l3_instr_hwmod;
49 static struct omap_hwmod omap44xx_l3_main_1_hwmod;
50 static struct omap_hwmod omap44xx_l3_main_2_hwmod;
51 static struct omap_hwmod omap44xx_l3_main_3_hwmod;
52 static struct omap_hwmod omap44xx_l4_abe_hwmod;
53 static struct omap_hwmod omap44xx_l4_cfg_hwmod;
54 static struct omap_hwmod omap44xx_l4_per_hwmod;
55 static struct omap_hwmod omap44xx_l4_wkup_hwmod;
56 static struct omap_hwmod omap44xx_mpu_hwmod;
57 static struct omap_hwmod omap44xx_mpu_private_hwmod;
60 * Interconnects omap_hwmod structures
61 * hwmods that compose the global OMAP interconnect
68 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
72 /* dmm interface data */
73 /* l3_main_1 -> dmm */
74 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
75 .master = &omap44xx_l3_main_1_hwmod,
76 .slave = &omap44xx_dmm_hwmod,
78 .user = OCP_USER_SDMA,
81 static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
83 .pa_start = 0x4e000000,
90 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
91 .master = &omap44xx_mpu_hwmod,
92 .slave = &omap44xx_dmm_hwmod,
94 .addr = omap44xx_dmm_addrs,
95 .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
100 static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
101 &omap44xx_l3_main_1__dmm,
105 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
106 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
109 static struct omap_hwmod omap44xx_dmm_hwmod = {
111 .class = &omap44xx_dmm_hwmod_class,
112 .slaves = omap44xx_dmm_slaves,
113 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
114 .mpu_irqs = omap44xx_dmm_irqs,
115 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
116 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
121 * instance(s): emif_fw
123 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
127 /* emif_fw interface data */
129 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
130 .master = &omap44xx_dmm_hwmod,
131 .slave = &omap44xx_emif_fw_hwmod,
133 .user = OCP_USER_MPU | OCP_USER_SDMA,
136 static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
138 .pa_start = 0x4a20c000,
139 .pa_end = 0x4a20c0ff,
140 .flags = ADDR_TYPE_RT
144 /* l4_cfg -> emif_fw */
145 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
146 .master = &omap44xx_l4_cfg_hwmod,
147 .slave = &omap44xx_emif_fw_hwmod,
149 .addr = omap44xx_emif_fw_addrs,
150 .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
151 .user = OCP_USER_MPU,
154 /* emif_fw slave ports */
155 static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
156 &omap44xx_dmm__emif_fw,
157 &omap44xx_l4_cfg__emif_fw,
160 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
162 .class = &omap44xx_emif_fw_hwmod_class,
163 .slaves = omap44xx_emif_fw_slaves,
164 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
165 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
170 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
172 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
176 /* l3_instr interface data */
177 /* iva -> l3_instr */
178 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
179 .master = &omap44xx_iva_hwmod,
180 .slave = &omap44xx_l3_instr_hwmod,
182 .user = OCP_USER_MPU | OCP_USER_SDMA,
185 /* l3_main_3 -> l3_instr */
186 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
187 .master = &omap44xx_l3_main_3_hwmod,
188 .slave = &omap44xx_l3_instr_hwmod,
190 .user = OCP_USER_MPU | OCP_USER_SDMA,
193 /* l3_instr slave ports */
194 static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
195 &omap44xx_iva__l3_instr,
196 &omap44xx_l3_main_3__l3_instr,
199 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
201 .class = &omap44xx_l3_hwmod_class,
202 .slaves = omap44xx_l3_instr_slaves,
203 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
204 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
207 /* l3_main_1 interface data */
208 /* dsp -> l3_main_1 */
209 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
210 .master = &omap44xx_dsp_hwmod,
211 .slave = &omap44xx_l3_main_1_hwmod,
213 .user = OCP_USER_MPU | OCP_USER_SDMA,
216 /* l3_main_2 -> l3_main_1 */
217 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
218 .master = &omap44xx_l3_main_2_hwmod,
219 .slave = &omap44xx_l3_main_1_hwmod,
221 .user = OCP_USER_MPU | OCP_USER_SDMA,
224 /* l4_cfg -> l3_main_1 */
225 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
226 .master = &omap44xx_l4_cfg_hwmod,
227 .slave = &omap44xx_l3_main_1_hwmod,
229 .user = OCP_USER_MPU | OCP_USER_SDMA,
232 /* mpu -> l3_main_1 */
233 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
234 .master = &omap44xx_mpu_hwmod,
235 .slave = &omap44xx_l3_main_1_hwmod,
237 .user = OCP_USER_MPU | OCP_USER_SDMA,
240 /* l3_main_1 slave ports */
241 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
242 &omap44xx_dsp__l3_main_1,
243 &omap44xx_l3_main_2__l3_main_1,
244 &omap44xx_l4_cfg__l3_main_1,
245 &omap44xx_mpu__l3_main_1,
248 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
250 .class = &omap44xx_l3_hwmod_class,
251 .slaves = omap44xx_l3_main_1_slaves,
252 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
253 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
256 /* l3_main_2 interface data */
257 /* dma_system -> l3_main_2 */
258 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
259 .master = &omap44xx_dma_system_hwmod,
260 .slave = &omap44xx_l3_main_2_hwmod,
262 .user = OCP_USER_MPU | OCP_USER_SDMA,
265 /* iva -> l3_main_2 */
266 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
267 .master = &omap44xx_iva_hwmod,
268 .slave = &omap44xx_l3_main_2_hwmod,
270 .user = OCP_USER_MPU | OCP_USER_SDMA,
273 /* l3_main_1 -> l3_main_2 */
274 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
275 .master = &omap44xx_l3_main_1_hwmod,
276 .slave = &omap44xx_l3_main_2_hwmod,
278 .user = OCP_USER_MPU | OCP_USER_SDMA,
281 /* l4_cfg -> l3_main_2 */
282 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
283 .master = &omap44xx_l4_cfg_hwmod,
284 .slave = &omap44xx_l3_main_2_hwmod,
286 .user = OCP_USER_MPU | OCP_USER_SDMA,
289 /* l3_main_2 slave ports */
290 static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
291 &omap44xx_dma_system__l3_main_2,
292 &omap44xx_iva__l3_main_2,
293 &omap44xx_l3_main_1__l3_main_2,
294 &omap44xx_l4_cfg__l3_main_2,
297 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
299 .class = &omap44xx_l3_hwmod_class,
300 .slaves = omap44xx_l3_main_2_slaves,
301 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
302 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
305 /* l3_main_3 interface data */
306 /* l3_main_1 -> l3_main_3 */
307 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
308 .master = &omap44xx_l3_main_1_hwmod,
309 .slave = &omap44xx_l3_main_3_hwmod,
311 .user = OCP_USER_MPU | OCP_USER_SDMA,
314 /* l3_main_2 -> l3_main_3 */
315 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
316 .master = &omap44xx_l3_main_2_hwmod,
317 .slave = &omap44xx_l3_main_3_hwmod,
319 .user = OCP_USER_MPU | OCP_USER_SDMA,
322 /* l4_cfg -> l3_main_3 */
323 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
324 .master = &omap44xx_l4_cfg_hwmod,
325 .slave = &omap44xx_l3_main_3_hwmod,
327 .user = OCP_USER_MPU | OCP_USER_SDMA,
330 /* l3_main_3 slave ports */
331 static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
332 &omap44xx_l3_main_1__l3_main_3,
333 &omap44xx_l3_main_2__l3_main_3,
334 &omap44xx_l4_cfg__l3_main_3,
337 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
339 .class = &omap44xx_l3_hwmod_class,
340 .slaves = omap44xx_l3_main_3_slaves,
341 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
342 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
347 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
349 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
353 /* l4_abe interface data */
355 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
356 .master = &omap44xx_dsp_hwmod,
357 .slave = &omap44xx_l4_abe_hwmod,
358 .clk = "ocp_abe_iclk",
359 .user = OCP_USER_MPU | OCP_USER_SDMA,
362 /* l3_main_1 -> l4_abe */
363 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
364 .master = &omap44xx_l3_main_1_hwmod,
365 .slave = &omap44xx_l4_abe_hwmod,
367 .user = OCP_USER_MPU | OCP_USER_SDMA,
371 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
372 .master = &omap44xx_mpu_hwmod,
373 .slave = &omap44xx_l4_abe_hwmod,
374 .clk = "ocp_abe_iclk",
375 .user = OCP_USER_MPU | OCP_USER_SDMA,
378 /* l4_abe slave ports */
379 static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
380 &omap44xx_dsp__l4_abe,
381 &omap44xx_l3_main_1__l4_abe,
382 &omap44xx_mpu__l4_abe,
385 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
387 .class = &omap44xx_l4_hwmod_class,
388 .slaves = omap44xx_l4_abe_slaves,
389 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
390 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
393 /* l4_cfg interface data */
394 /* l3_main_1 -> l4_cfg */
395 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
396 .master = &omap44xx_l3_main_1_hwmod,
397 .slave = &omap44xx_l4_cfg_hwmod,
399 .user = OCP_USER_MPU | OCP_USER_SDMA,
402 /* l4_cfg slave ports */
403 static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
404 &omap44xx_l3_main_1__l4_cfg,
407 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
409 .class = &omap44xx_l4_hwmod_class,
410 .slaves = omap44xx_l4_cfg_slaves,
411 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
412 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
415 /* l4_per interface data */
416 /* l3_main_2 -> l4_per */
417 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
418 .master = &omap44xx_l3_main_2_hwmod,
419 .slave = &omap44xx_l4_per_hwmod,
421 .user = OCP_USER_MPU | OCP_USER_SDMA,
424 /* l4_per slave ports */
425 static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
426 &omap44xx_l3_main_2__l4_per,
429 static struct omap_hwmod omap44xx_l4_per_hwmod = {
431 .class = &omap44xx_l4_hwmod_class,
432 .slaves = omap44xx_l4_per_slaves,
433 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
434 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
437 /* l4_wkup interface data */
438 /* l4_cfg -> l4_wkup */
439 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
440 .master = &omap44xx_l4_cfg_hwmod,
441 .slave = &omap44xx_l4_wkup_hwmod,
443 .user = OCP_USER_MPU | OCP_USER_SDMA,
446 /* l4_wkup slave ports */
447 static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
448 &omap44xx_l4_cfg__l4_wkup,
451 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
453 .class = &omap44xx_l4_hwmod_class,
454 .slaves = omap44xx_l4_wkup_slaves,
455 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
456 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
461 * instance(s): mpu_private
463 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
467 /* mpu_private interface data */
468 /* mpu -> mpu_private */
469 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
470 .master = &omap44xx_mpu_hwmod,
471 .slave = &omap44xx_mpu_private_hwmod,
473 .user = OCP_USER_MPU | OCP_USER_SDMA,
476 /* mpu_private slave ports */
477 static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
478 &omap44xx_mpu__mpu_private,
481 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
482 .name = "mpu_private",
483 .class = &omap44xx_mpu_bus_hwmod_class,
484 .slaves = omap44xx_mpu_private_slaves,
485 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
486 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
490 * Modules omap_hwmod structures
492 * The following IPs are excluded for the moment because:
493 * - They do not need an explicit SW control using omap_hwmod API.
494 * - They still need to be validated with the driver
495 * properly adapted to omap_hwmod / omap_device
505 * ctrl_module_pad_core
506 * ctrl_module_pad_wkup
564 * dma controller for data exchange between memory to memory (i.e. internal or
565 * external memory) and gp peripherals to memory or memory to gp peripherals
568 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
572 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
573 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
574 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
575 SYSS_HAS_RESET_STATUS),
576 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
577 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
578 .sysc_fields = &omap_hwmod_sysc_type1,
581 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
583 .sysc = &omap44xx_dma_sysc,
587 static struct omap_dma_dev_attr dma_dev_attr = {
588 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
589 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
594 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
595 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
596 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
597 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
598 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
601 /* dma_system master ports */
602 static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
603 &omap44xx_dma_system__l3_main_2,
606 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
608 .pa_start = 0x4a056000,
609 .pa_end = 0x4a0560ff,
610 .flags = ADDR_TYPE_RT
614 /* l4_cfg -> dma_system */
615 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
616 .master = &omap44xx_l4_cfg_hwmod,
617 .slave = &omap44xx_dma_system_hwmod,
619 .addr = omap44xx_dma_system_addrs,
620 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
621 .user = OCP_USER_MPU | OCP_USER_SDMA,
624 /* dma_system slave ports */
625 static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
626 &omap44xx_l4_cfg__dma_system,
629 static struct omap_hwmod omap44xx_dma_system_hwmod = {
630 .name = "dma_system",
631 .class = &omap44xx_dma_hwmod_class,
632 .mpu_irqs = omap44xx_dma_system_irqs,
633 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
634 .main_clk = "l3_div_ck",
637 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
640 .dev_attr = &dma_dev_attr,
641 .slaves = omap44xx_dma_system_slaves,
642 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
643 .masters = omap44xx_dma_system_masters,
644 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
645 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
653 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
658 static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
659 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
662 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
663 { .name = "mmu_cache", .rst_shift = 1 },
666 static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
667 { .name = "dsp", .rst_shift = 0 },
671 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
672 .master = &omap44xx_dsp_hwmod,
673 .slave = &omap44xx_iva_hwmod,
674 .clk = "dpll_iva_m5x2_ck",
677 /* dsp master ports */
678 static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
679 &omap44xx_dsp__l3_main_1,
680 &omap44xx_dsp__l4_abe,
685 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
686 .master = &omap44xx_l4_cfg_hwmod,
687 .slave = &omap44xx_dsp_hwmod,
689 .user = OCP_USER_MPU | OCP_USER_SDMA,
692 /* dsp slave ports */
693 static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
694 &omap44xx_l4_cfg__dsp,
697 /* Pseudo hwmod for reset control purpose only */
698 static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
700 .class = &omap44xx_dsp_hwmod_class,
701 .flags = HWMOD_INIT_NO_RESET,
702 .rst_lines = omap44xx_dsp_c0_resets,
703 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
706 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
709 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
712 static struct omap_hwmod omap44xx_dsp_hwmod = {
714 .class = &omap44xx_dsp_hwmod_class,
715 .mpu_irqs = omap44xx_dsp_irqs,
716 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
717 .rst_lines = omap44xx_dsp_resets,
718 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
719 .main_clk = "dsp_fck",
722 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
723 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
726 .slaves = omap44xx_dsp_slaves,
727 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
728 .masters = omap44xx_dsp_masters,
729 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
730 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
735 * general purpose io module
738 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
742 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
743 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
744 SYSS_HAS_RESET_STATUS),
745 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
747 .sysc_fields = &omap_hwmod_sysc_type1,
750 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
752 .sysc = &omap44xx_gpio_sysc,
757 static struct omap_gpio_dev_attr gpio_dev_attr = {
763 static struct omap_hwmod omap44xx_gpio1_hwmod;
764 static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
765 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
768 static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
770 .pa_start = 0x4a310000,
771 .pa_end = 0x4a3101ff,
772 .flags = ADDR_TYPE_RT
776 /* l4_wkup -> gpio1 */
777 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
778 .master = &omap44xx_l4_wkup_hwmod,
779 .slave = &omap44xx_gpio1_hwmod,
780 .clk = "l4_wkup_clk_mux_ck",
781 .addr = omap44xx_gpio1_addrs,
782 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
783 .user = OCP_USER_MPU | OCP_USER_SDMA,
786 /* gpio1 slave ports */
787 static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
788 &omap44xx_l4_wkup__gpio1,
791 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
792 { .role = "dbclk", .clk = "gpio1_dbclk" },
795 static struct omap_hwmod omap44xx_gpio1_hwmod = {
797 .class = &omap44xx_gpio_hwmod_class,
798 .mpu_irqs = omap44xx_gpio1_irqs,
799 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
800 .main_clk = "gpio1_ick",
803 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
806 .opt_clks = gpio1_opt_clks,
807 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
808 .dev_attr = &gpio_dev_attr,
809 .slaves = omap44xx_gpio1_slaves,
810 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
811 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
815 static struct omap_hwmod omap44xx_gpio2_hwmod;
816 static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
817 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
820 static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
822 .pa_start = 0x48055000,
823 .pa_end = 0x480551ff,
824 .flags = ADDR_TYPE_RT
828 /* l4_per -> gpio2 */
829 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
830 .master = &omap44xx_l4_per_hwmod,
831 .slave = &omap44xx_gpio2_hwmod,
833 .addr = omap44xx_gpio2_addrs,
834 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
835 .user = OCP_USER_MPU | OCP_USER_SDMA,
838 /* gpio2 slave ports */
839 static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
840 &omap44xx_l4_per__gpio2,
843 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
844 { .role = "dbclk", .clk = "gpio2_dbclk" },
847 static struct omap_hwmod omap44xx_gpio2_hwmod = {
849 .class = &omap44xx_gpio_hwmod_class,
850 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
851 .mpu_irqs = omap44xx_gpio2_irqs,
852 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
853 .main_clk = "gpio2_ick",
856 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
859 .opt_clks = gpio2_opt_clks,
860 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
861 .dev_attr = &gpio_dev_attr,
862 .slaves = omap44xx_gpio2_slaves,
863 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
864 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
868 static struct omap_hwmod omap44xx_gpio3_hwmod;
869 static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
870 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
873 static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
875 .pa_start = 0x48057000,
876 .pa_end = 0x480571ff,
877 .flags = ADDR_TYPE_RT
881 /* l4_per -> gpio3 */
882 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
883 .master = &omap44xx_l4_per_hwmod,
884 .slave = &omap44xx_gpio3_hwmod,
886 .addr = omap44xx_gpio3_addrs,
887 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
888 .user = OCP_USER_MPU | OCP_USER_SDMA,
891 /* gpio3 slave ports */
892 static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
893 &omap44xx_l4_per__gpio3,
896 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
897 { .role = "dbclk", .clk = "gpio3_dbclk" },
900 static struct omap_hwmod omap44xx_gpio3_hwmod = {
902 .class = &omap44xx_gpio_hwmod_class,
903 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
904 .mpu_irqs = omap44xx_gpio3_irqs,
905 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
906 .main_clk = "gpio3_ick",
909 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
912 .opt_clks = gpio3_opt_clks,
913 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
914 .dev_attr = &gpio_dev_attr,
915 .slaves = omap44xx_gpio3_slaves,
916 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
917 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
921 static struct omap_hwmod omap44xx_gpio4_hwmod;
922 static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
923 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
926 static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
928 .pa_start = 0x48059000,
929 .pa_end = 0x480591ff,
930 .flags = ADDR_TYPE_RT
934 /* l4_per -> gpio4 */
935 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
936 .master = &omap44xx_l4_per_hwmod,
937 .slave = &omap44xx_gpio4_hwmod,
939 .addr = omap44xx_gpio4_addrs,
940 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
941 .user = OCP_USER_MPU | OCP_USER_SDMA,
944 /* gpio4 slave ports */
945 static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
946 &omap44xx_l4_per__gpio4,
949 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
950 { .role = "dbclk", .clk = "gpio4_dbclk" },
953 static struct omap_hwmod omap44xx_gpio4_hwmod = {
955 .class = &omap44xx_gpio_hwmod_class,
956 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
957 .mpu_irqs = omap44xx_gpio4_irqs,
958 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
959 .main_clk = "gpio4_ick",
962 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
965 .opt_clks = gpio4_opt_clks,
966 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
967 .dev_attr = &gpio_dev_attr,
968 .slaves = omap44xx_gpio4_slaves,
969 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
970 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
974 static struct omap_hwmod omap44xx_gpio5_hwmod;
975 static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
976 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
979 static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
981 .pa_start = 0x4805b000,
982 .pa_end = 0x4805b1ff,
983 .flags = ADDR_TYPE_RT
987 /* l4_per -> gpio5 */
988 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
989 .master = &omap44xx_l4_per_hwmod,
990 .slave = &omap44xx_gpio5_hwmod,
992 .addr = omap44xx_gpio5_addrs,
993 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
994 .user = OCP_USER_MPU | OCP_USER_SDMA,
997 /* gpio5 slave ports */
998 static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
999 &omap44xx_l4_per__gpio5,
1002 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1003 { .role = "dbclk", .clk = "gpio5_dbclk" },
1006 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1008 .class = &omap44xx_gpio_hwmod_class,
1009 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1010 .mpu_irqs = omap44xx_gpio5_irqs,
1011 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
1012 .main_clk = "gpio5_ick",
1015 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1018 .opt_clks = gpio5_opt_clks,
1019 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1020 .dev_attr = &gpio_dev_attr,
1021 .slaves = omap44xx_gpio5_slaves,
1022 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1023 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1027 static struct omap_hwmod omap44xx_gpio6_hwmod;
1028 static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1029 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
1032 static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
1034 .pa_start = 0x4805d000,
1035 .pa_end = 0x4805d1ff,
1036 .flags = ADDR_TYPE_RT
1040 /* l4_per -> gpio6 */
1041 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1042 .master = &omap44xx_l4_per_hwmod,
1043 .slave = &omap44xx_gpio6_hwmod,
1045 .addr = omap44xx_gpio6_addrs,
1046 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
1047 .user = OCP_USER_MPU | OCP_USER_SDMA,
1050 /* gpio6 slave ports */
1051 static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
1052 &omap44xx_l4_per__gpio6,
1055 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1056 { .role = "dbclk", .clk = "gpio6_dbclk" },
1059 static struct omap_hwmod omap44xx_gpio6_hwmod = {
1061 .class = &omap44xx_gpio_hwmod_class,
1062 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1063 .mpu_irqs = omap44xx_gpio6_irqs,
1064 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
1065 .main_clk = "gpio6_ick",
1068 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1071 .opt_clks = gpio6_opt_clks,
1072 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1073 .dev_attr = &gpio_dev_attr,
1074 .slaves = omap44xx_gpio6_slaves,
1075 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
1076 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1081 * multimaster high-speed i2c controller
1084 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1085 .sysc_offs = 0x0010,
1086 .syss_offs = 0x0090,
1087 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1088 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1089 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1090 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1092 .sysc_fields = &omap_hwmod_sysc_type1,
1095 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1097 .sysc = &omap44xx_i2c_sysc,
1101 static struct omap_hwmod omap44xx_i2c1_hwmod;
1102 static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1103 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
1106 static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1107 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1108 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
1111 static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
1113 .pa_start = 0x48070000,
1114 .pa_end = 0x480700ff,
1115 .flags = ADDR_TYPE_RT
1119 /* l4_per -> i2c1 */
1120 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
1121 .master = &omap44xx_l4_per_hwmod,
1122 .slave = &omap44xx_i2c1_hwmod,
1124 .addr = omap44xx_i2c1_addrs,
1125 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
1126 .user = OCP_USER_MPU | OCP_USER_SDMA,
1129 /* i2c1 slave ports */
1130 static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
1131 &omap44xx_l4_per__i2c1,
1134 static struct omap_hwmod omap44xx_i2c1_hwmod = {
1136 .class = &omap44xx_i2c_hwmod_class,
1137 .flags = HWMOD_INIT_NO_RESET,
1138 .mpu_irqs = omap44xx_i2c1_irqs,
1139 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
1140 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
1141 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
1142 .main_clk = "i2c1_fck",
1145 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
1148 .slaves = omap44xx_i2c1_slaves,
1149 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
1150 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1154 static struct omap_hwmod omap44xx_i2c2_hwmod;
1155 static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1156 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
1159 static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1160 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1161 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
1164 static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
1166 .pa_start = 0x48072000,
1167 .pa_end = 0x480720ff,
1168 .flags = ADDR_TYPE_RT
1172 /* l4_per -> i2c2 */
1173 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
1174 .master = &omap44xx_l4_per_hwmod,
1175 .slave = &omap44xx_i2c2_hwmod,
1177 .addr = omap44xx_i2c2_addrs,
1178 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
1179 .user = OCP_USER_MPU | OCP_USER_SDMA,
1182 /* i2c2 slave ports */
1183 static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
1184 &omap44xx_l4_per__i2c2,
1187 static struct omap_hwmod omap44xx_i2c2_hwmod = {
1189 .class = &omap44xx_i2c_hwmod_class,
1190 .flags = HWMOD_INIT_NO_RESET,
1191 .mpu_irqs = omap44xx_i2c2_irqs,
1192 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
1193 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
1194 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
1195 .main_clk = "i2c2_fck",
1198 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
1201 .slaves = omap44xx_i2c2_slaves,
1202 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
1203 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1207 static struct omap_hwmod omap44xx_i2c3_hwmod;
1208 static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1209 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
1212 static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1213 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1214 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
1217 static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
1219 .pa_start = 0x48060000,
1220 .pa_end = 0x480600ff,
1221 .flags = ADDR_TYPE_RT
1225 /* l4_per -> i2c3 */
1226 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
1227 .master = &omap44xx_l4_per_hwmod,
1228 .slave = &omap44xx_i2c3_hwmod,
1230 .addr = omap44xx_i2c3_addrs,
1231 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
1232 .user = OCP_USER_MPU | OCP_USER_SDMA,
1235 /* i2c3 slave ports */
1236 static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
1237 &omap44xx_l4_per__i2c3,
1240 static struct omap_hwmod omap44xx_i2c3_hwmod = {
1242 .class = &omap44xx_i2c_hwmod_class,
1243 .flags = HWMOD_INIT_NO_RESET,
1244 .mpu_irqs = omap44xx_i2c3_irqs,
1245 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
1246 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
1247 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
1248 .main_clk = "i2c3_fck",
1251 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
1254 .slaves = omap44xx_i2c3_slaves,
1255 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
1256 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1260 static struct omap_hwmod omap44xx_i2c4_hwmod;
1261 static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1262 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
1265 static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1266 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1267 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
1270 static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
1272 .pa_start = 0x48350000,
1273 .pa_end = 0x483500ff,
1274 .flags = ADDR_TYPE_RT
1278 /* l4_per -> i2c4 */
1279 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
1280 .master = &omap44xx_l4_per_hwmod,
1281 .slave = &omap44xx_i2c4_hwmod,
1283 .addr = omap44xx_i2c4_addrs,
1284 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
1285 .user = OCP_USER_MPU | OCP_USER_SDMA,
1288 /* i2c4 slave ports */
1289 static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
1290 &omap44xx_l4_per__i2c4,
1293 static struct omap_hwmod omap44xx_i2c4_hwmod = {
1295 .class = &omap44xx_i2c_hwmod_class,
1296 .flags = HWMOD_INIT_NO_RESET,
1297 .mpu_irqs = omap44xx_i2c4_irqs,
1298 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
1299 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
1300 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
1301 .main_clk = "i2c4_fck",
1304 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
1307 .slaves = omap44xx_i2c4_slaves,
1308 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
1309 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1314 * multi-standard video encoder/decoder hardware accelerator
1317 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1322 static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1323 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1324 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1325 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
1328 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1329 { .name = "logic", .rst_shift = 2 },
1332 static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
1333 { .name = "seq0", .rst_shift = 0 },
1336 static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
1337 { .name = "seq1", .rst_shift = 1 },
1340 /* iva master ports */
1341 static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
1342 &omap44xx_iva__l3_main_2,
1343 &omap44xx_iva__l3_instr,
1346 static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
1348 .pa_start = 0x5a000000,
1349 .pa_end = 0x5a07ffff,
1350 .flags = ADDR_TYPE_RT
1354 /* l3_main_2 -> iva */
1355 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
1356 .master = &omap44xx_l3_main_2_hwmod,
1357 .slave = &omap44xx_iva_hwmod,
1359 .addr = omap44xx_iva_addrs,
1360 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
1361 .user = OCP_USER_MPU,
1364 /* iva slave ports */
1365 static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
1367 &omap44xx_l3_main_2__iva,
1370 /* Pseudo hwmod for reset control purpose only */
1371 static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
1373 .class = &omap44xx_iva_hwmod_class,
1374 .flags = HWMOD_INIT_NO_RESET,
1375 .rst_lines = omap44xx_iva_seq0_resets,
1376 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
1379 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1382 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1385 /* Pseudo hwmod for reset control purpose only */
1386 static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
1388 .class = &omap44xx_iva_hwmod_class,
1389 .flags = HWMOD_INIT_NO_RESET,
1390 .rst_lines = omap44xx_iva_seq1_resets,
1391 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
1394 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1397 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1400 static struct omap_hwmod omap44xx_iva_hwmod = {
1402 .class = &omap44xx_iva_hwmod_class,
1403 .mpu_irqs = omap44xx_iva_irqs,
1404 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
1405 .rst_lines = omap44xx_iva_resets,
1406 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1407 .main_clk = "iva_fck",
1410 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
1411 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1414 .slaves = omap44xx_iva_slaves,
1415 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
1416 .masters = omap44xx_iva_masters,
1417 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
1418 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1423 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1427 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1429 .sysc_offs = 0x0010,
1430 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1431 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1432 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1434 .sysc_fields = &omap_hwmod_sysc_type2,
1437 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1439 .sysc = &omap44xx_mcspi_sysc,
1443 static struct omap_hwmod omap44xx_mcspi1_hwmod;
1444 static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
1445 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
1448 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1449 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1450 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1451 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1452 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1453 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1454 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1455 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1456 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
1459 static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
1461 .pa_start = 0x48098000,
1462 .pa_end = 0x480981ff,
1463 .flags = ADDR_TYPE_RT
1467 /* l4_per -> mcspi1 */
1468 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
1469 .master = &omap44xx_l4_per_hwmod,
1470 .slave = &omap44xx_mcspi1_hwmod,
1472 .addr = omap44xx_mcspi1_addrs,
1473 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
1474 .user = OCP_USER_MPU | OCP_USER_SDMA,
1477 /* mcspi1 slave ports */
1478 static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
1479 &omap44xx_l4_per__mcspi1,
1482 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1484 .class = &omap44xx_mcspi_hwmod_class,
1485 .mpu_irqs = omap44xx_mcspi1_irqs,
1486 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
1487 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
1488 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
1489 .main_clk = "mcspi1_fck",
1492 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
1495 .slaves = omap44xx_mcspi1_slaves,
1496 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
1497 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1501 static struct omap_hwmod omap44xx_mcspi2_hwmod;
1502 static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
1503 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
1506 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1507 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1508 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1509 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1510 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
1513 static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
1515 .pa_start = 0x4809a000,
1516 .pa_end = 0x4809a1ff,
1517 .flags = ADDR_TYPE_RT
1521 /* l4_per -> mcspi2 */
1522 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
1523 .master = &omap44xx_l4_per_hwmod,
1524 .slave = &omap44xx_mcspi2_hwmod,
1526 .addr = omap44xx_mcspi2_addrs,
1527 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
1528 .user = OCP_USER_MPU | OCP_USER_SDMA,
1531 /* mcspi2 slave ports */
1532 static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
1533 &omap44xx_l4_per__mcspi2,
1536 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1538 .class = &omap44xx_mcspi_hwmod_class,
1539 .mpu_irqs = omap44xx_mcspi2_irqs,
1540 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
1541 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
1542 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
1543 .main_clk = "mcspi2_fck",
1546 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
1549 .slaves = omap44xx_mcspi2_slaves,
1550 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
1551 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1555 static struct omap_hwmod omap44xx_mcspi3_hwmod;
1556 static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
1557 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
1560 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1561 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1562 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1563 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1564 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
1567 static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
1569 .pa_start = 0x480b8000,
1570 .pa_end = 0x480b81ff,
1571 .flags = ADDR_TYPE_RT
1575 /* l4_per -> mcspi3 */
1576 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
1577 .master = &omap44xx_l4_per_hwmod,
1578 .slave = &omap44xx_mcspi3_hwmod,
1580 .addr = omap44xx_mcspi3_addrs,
1581 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
1582 .user = OCP_USER_MPU | OCP_USER_SDMA,
1585 /* mcspi3 slave ports */
1586 static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
1587 &omap44xx_l4_per__mcspi3,
1590 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1592 .class = &omap44xx_mcspi_hwmod_class,
1593 .mpu_irqs = omap44xx_mcspi3_irqs,
1594 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
1595 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
1596 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
1597 .main_clk = "mcspi3_fck",
1600 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
1603 .slaves = omap44xx_mcspi3_slaves,
1604 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
1605 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1609 static struct omap_hwmod omap44xx_mcspi4_hwmod;
1610 static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
1611 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
1614 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1615 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1616 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
1619 static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
1621 .pa_start = 0x480ba000,
1622 .pa_end = 0x480ba1ff,
1623 .flags = ADDR_TYPE_RT
1627 /* l4_per -> mcspi4 */
1628 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
1629 .master = &omap44xx_l4_per_hwmod,
1630 .slave = &omap44xx_mcspi4_hwmod,
1632 .addr = omap44xx_mcspi4_addrs,
1633 .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
1634 .user = OCP_USER_MPU | OCP_USER_SDMA,
1637 /* mcspi4 slave ports */
1638 static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
1639 &omap44xx_l4_per__mcspi4,
1642 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1644 .class = &omap44xx_mcspi_hwmod_class,
1645 .mpu_irqs = omap44xx_mcspi4_irqs,
1646 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
1647 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
1648 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
1649 .main_clk = "mcspi4_fck",
1652 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
1655 .slaves = omap44xx_mcspi4_slaves,
1656 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
1657 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1665 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1670 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
1671 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
1672 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
1673 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
1676 /* mpu master ports */
1677 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
1678 &omap44xx_mpu__l3_main_1,
1679 &omap44xx_mpu__l4_abe,
1683 static struct omap_hwmod omap44xx_mpu_hwmod = {
1685 .class = &omap44xx_mpu_hwmod_class,
1686 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1687 .mpu_irqs = omap44xx_mpu_irqs,
1688 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
1689 .main_clk = "dpll_mpu_m2_ck",
1692 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
1695 .masters = omap44xx_mpu_masters,
1696 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
1697 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1701 * 'smartreflex' class
1702 * smartreflex module (monitor silicon performance and outputs a measure of
1703 * performance error)
1706 /* The IP is not compliant to type1 / type2 scheme */
1707 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1712 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1713 .sysc_offs = 0x0038,
1714 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1715 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1717 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
1720 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1721 .name = "smartreflex",
1722 .sysc = &omap44xx_smartreflex_sysc,
1726 /* smartreflex_core */
1727 static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
1728 static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
1729 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
1732 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
1734 .pa_start = 0x4a0dd000,
1735 .pa_end = 0x4a0dd03f,
1736 .flags = ADDR_TYPE_RT
1740 /* l4_cfg -> smartreflex_core */
1741 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
1742 .master = &omap44xx_l4_cfg_hwmod,
1743 .slave = &omap44xx_smartreflex_core_hwmod,
1745 .addr = omap44xx_smartreflex_core_addrs,
1746 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
1747 .user = OCP_USER_MPU | OCP_USER_SDMA,
1750 /* smartreflex_core slave ports */
1751 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
1752 &omap44xx_l4_cfg__smartreflex_core,
1755 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1756 .name = "smartreflex_core",
1757 .class = &omap44xx_smartreflex_hwmod_class,
1758 .mpu_irqs = omap44xx_smartreflex_core_irqs,
1759 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
1760 .main_clk = "smartreflex_core_fck",
1764 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
1767 .slaves = omap44xx_smartreflex_core_slaves,
1768 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
1769 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1772 /* smartreflex_iva */
1773 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
1774 static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
1775 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
1778 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
1780 .pa_start = 0x4a0db000,
1781 .pa_end = 0x4a0db03f,
1782 .flags = ADDR_TYPE_RT
1786 /* l4_cfg -> smartreflex_iva */
1787 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
1788 .master = &omap44xx_l4_cfg_hwmod,
1789 .slave = &omap44xx_smartreflex_iva_hwmod,
1791 .addr = omap44xx_smartreflex_iva_addrs,
1792 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
1793 .user = OCP_USER_MPU | OCP_USER_SDMA,
1796 /* smartreflex_iva slave ports */
1797 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
1798 &omap44xx_l4_cfg__smartreflex_iva,
1801 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1802 .name = "smartreflex_iva",
1803 .class = &omap44xx_smartreflex_hwmod_class,
1804 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
1805 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
1806 .main_clk = "smartreflex_iva_fck",
1810 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
1813 .slaves = omap44xx_smartreflex_iva_slaves,
1814 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
1815 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1818 /* smartreflex_mpu */
1819 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
1820 static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
1821 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
1824 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
1826 .pa_start = 0x4a0d9000,
1827 .pa_end = 0x4a0d903f,
1828 .flags = ADDR_TYPE_RT
1832 /* l4_cfg -> smartreflex_mpu */
1833 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
1834 .master = &omap44xx_l4_cfg_hwmod,
1835 .slave = &omap44xx_smartreflex_mpu_hwmod,
1837 .addr = omap44xx_smartreflex_mpu_addrs,
1838 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
1839 .user = OCP_USER_MPU | OCP_USER_SDMA,
1842 /* smartreflex_mpu slave ports */
1843 static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
1844 &omap44xx_l4_cfg__smartreflex_mpu,
1847 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1848 .name = "smartreflex_mpu",
1849 .class = &omap44xx_smartreflex_hwmod_class,
1850 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
1851 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
1852 .main_clk = "smartreflex_mpu_fck",
1856 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
1859 .slaves = omap44xx_smartreflex_mpu_slaves,
1860 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
1861 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1866 * spinlock provides hardware assistance for synchronizing the processes
1867 * running on multiple processors
1870 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
1872 .sysc_offs = 0x0010,
1873 .syss_offs = 0x0014,
1874 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1875 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1876 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1877 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1879 .sysc_fields = &omap_hwmod_sysc_type1,
1882 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
1884 .sysc = &omap44xx_spinlock_sysc,
1888 static struct omap_hwmod omap44xx_spinlock_hwmod;
1889 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
1891 .pa_start = 0x4a0f6000,
1892 .pa_end = 0x4a0f6fff,
1893 .flags = ADDR_TYPE_RT
1897 /* l4_cfg -> spinlock */
1898 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
1899 .master = &omap44xx_l4_cfg_hwmod,
1900 .slave = &omap44xx_spinlock_hwmod,
1902 .addr = omap44xx_spinlock_addrs,
1903 .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
1904 .user = OCP_USER_MPU | OCP_USER_SDMA,
1907 /* spinlock slave ports */
1908 static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
1909 &omap44xx_l4_cfg__spinlock,
1912 static struct omap_hwmod omap44xx_spinlock_hwmod = {
1914 .class = &omap44xx_spinlock_hwmod_class,
1917 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
1920 .slaves = omap44xx_spinlock_slaves,
1921 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
1922 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1927 * general purpose timer module with accurate 1ms tick
1928 * This class contains several variants: ['timer_1ms', 'timer']
1931 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
1933 .sysc_offs = 0x0010,
1934 .syss_offs = 0x0014,
1935 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1936 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1937 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1938 SYSS_HAS_RESET_STATUS),
1939 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1940 .sysc_fields = &omap_hwmod_sysc_type1,
1943 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
1945 .sysc = &omap44xx_timer_1ms_sysc,
1948 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
1950 .sysc_offs = 0x0010,
1951 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1952 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1953 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1955 .sysc_fields = &omap_hwmod_sysc_type2,
1958 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
1960 .sysc = &omap44xx_timer_sysc,
1964 static struct omap_hwmod omap44xx_timer1_hwmod;
1965 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
1966 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
1969 static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
1971 .pa_start = 0x4a318000,
1972 .pa_end = 0x4a31807f,
1973 .flags = ADDR_TYPE_RT
1977 /* l4_wkup -> timer1 */
1978 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
1979 .master = &omap44xx_l4_wkup_hwmod,
1980 .slave = &omap44xx_timer1_hwmod,
1981 .clk = "l4_wkup_clk_mux_ck",
1982 .addr = omap44xx_timer1_addrs,
1983 .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
1984 .user = OCP_USER_MPU | OCP_USER_SDMA,
1987 /* timer1 slave ports */
1988 static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
1989 &omap44xx_l4_wkup__timer1,
1992 static struct omap_hwmod omap44xx_timer1_hwmod = {
1994 .class = &omap44xx_timer_1ms_hwmod_class,
1995 .mpu_irqs = omap44xx_timer1_irqs,
1996 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
1997 .main_clk = "timer1_fck",
2000 .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
2003 .slaves = omap44xx_timer1_slaves,
2004 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
2005 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2009 static struct omap_hwmod omap44xx_timer2_hwmod;
2010 static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
2011 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
2014 static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
2016 .pa_start = 0x48032000,
2017 .pa_end = 0x4803207f,
2018 .flags = ADDR_TYPE_RT
2022 /* l4_per -> timer2 */
2023 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
2024 .master = &omap44xx_l4_per_hwmod,
2025 .slave = &omap44xx_timer2_hwmod,
2027 .addr = omap44xx_timer2_addrs,
2028 .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
2029 .user = OCP_USER_MPU | OCP_USER_SDMA,
2032 /* timer2 slave ports */
2033 static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
2034 &omap44xx_l4_per__timer2,
2037 static struct omap_hwmod omap44xx_timer2_hwmod = {
2039 .class = &omap44xx_timer_1ms_hwmod_class,
2040 .mpu_irqs = omap44xx_timer2_irqs,
2041 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
2042 .main_clk = "timer2_fck",
2045 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
2048 .slaves = omap44xx_timer2_slaves,
2049 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
2050 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2054 static struct omap_hwmod omap44xx_timer3_hwmod;
2055 static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
2056 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
2059 static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
2061 .pa_start = 0x48034000,
2062 .pa_end = 0x4803407f,
2063 .flags = ADDR_TYPE_RT
2067 /* l4_per -> timer3 */
2068 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
2069 .master = &omap44xx_l4_per_hwmod,
2070 .slave = &omap44xx_timer3_hwmod,
2072 .addr = omap44xx_timer3_addrs,
2073 .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
2074 .user = OCP_USER_MPU | OCP_USER_SDMA,
2077 /* timer3 slave ports */
2078 static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
2079 &omap44xx_l4_per__timer3,
2082 static struct omap_hwmod omap44xx_timer3_hwmod = {
2084 .class = &omap44xx_timer_hwmod_class,
2085 .mpu_irqs = omap44xx_timer3_irqs,
2086 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
2087 .main_clk = "timer3_fck",
2090 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
2093 .slaves = omap44xx_timer3_slaves,
2094 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
2095 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2099 static struct omap_hwmod omap44xx_timer4_hwmod;
2100 static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
2101 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
2104 static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
2106 .pa_start = 0x48036000,
2107 .pa_end = 0x4803607f,
2108 .flags = ADDR_TYPE_RT
2112 /* l4_per -> timer4 */
2113 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
2114 .master = &omap44xx_l4_per_hwmod,
2115 .slave = &omap44xx_timer4_hwmod,
2117 .addr = omap44xx_timer4_addrs,
2118 .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
2119 .user = OCP_USER_MPU | OCP_USER_SDMA,
2122 /* timer4 slave ports */
2123 static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
2124 &omap44xx_l4_per__timer4,
2127 static struct omap_hwmod omap44xx_timer4_hwmod = {
2129 .class = &omap44xx_timer_hwmod_class,
2130 .mpu_irqs = omap44xx_timer4_irqs,
2131 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
2132 .main_clk = "timer4_fck",
2135 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
2138 .slaves = omap44xx_timer4_slaves,
2139 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
2140 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2144 static struct omap_hwmod omap44xx_timer5_hwmod;
2145 static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
2146 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
2149 static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
2151 .pa_start = 0x40138000,
2152 .pa_end = 0x4013807f,
2153 .flags = ADDR_TYPE_RT
2157 /* l4_abe -> timer5 */
2158 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
2159 .master = &omap44xx_l4_abe_hwmod,
2160 .slave = &omap44xx_timer5_hwmod,
2161 .clk = "ocp_abe_iclk",
2162 .addr = omap44xx_timer5_addrs,
2163 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
2164 .user = OCP_USER_MPU,
2167 static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
2169 .pa_start = 0x49038000,
2170 .pa_end = 0x4903807f,
2171 .flags = ADDR_TYPE_RT
2175 /* l4_abe -> timer5 (dma) */
2176 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
2177 .master = &omap44xx_l4_abe_hwmod,
2178 .slave = &omap44xx_timer5_hwmod,
2179 .clk = "ocp_abe_iclk",
2180 .addr = omap44xx_timer5_dma_addrs,
2181 .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
2182 .user = OCP_USER_SDMA,
2185 /* timer5 slave ports */
2186 static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
2187 &omap44xx_l4_abe__timer5,
2188 &omap44xx_l4_abe__timer5_dma,
2191 static struct omap_hwmod omap44xx_timer5_hwmod = {
2193 .class = &omap44xx_timer_hwmod_class,
2194 .mpu_irqs = omap44xx_timer5_irqs,
2195 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
2196 .main_clk = "timer5_fck",
2199 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
2202 .slaves = omap44xx_timer5_slaves,
2203 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
2204 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2208 static struct omap_hwmod omap44xx_timer6_hwmod;
2209 static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
2210 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
2213 static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
2215 .pa_start = 0x4013a000,
2216 .pa_end = 0x4013a07f,
2217 .flags = ADDR_TYPE_RT
2221 /* l4_abe -> timer6 */
2222 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
2223 .master = &omap44xx_l4_abe_hwmod,
2224 .slave = &omap44xx_timer6_hwmod,
2225 .clk = "ocp_abe_iclk",
2226 .addr = omap44xx_timer6_addrs,
2227 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
2228 .user = OCP_USER_MPU,
2231 static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
2233 .pa_start = 0x4903a000,
2234 .pa_end = 0x4903a07f,
2235 .flags = ADDR_TYPE_RT
2239 /* l4_abe -> timer6 (dma) */
2240 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
2241 .master = &omap44xx_l4_abe_hwmod,
2242 .slave = &omap44xx_timer6_hwmod,
2243 .clk = "ocp_abe_iclk",
2244 .addr = omap44xx_timer6_dma_addrs,
2245 .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
2246 .user = OCP_USER_SDMA,
2249 /* timer6 slave ports */
2250 static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
2251 &omap44xx_l4_abe__timer6,
2252 &omap44xx_l4_abe__timer6_dma,
2255 static struct omap_hwmod omap44xx_timer6_hwmod = {
2257 .class = &omap44xx_timer_hwmod_class,
2258 .mpu_irqs = omap44xx_timer6_irqs,
2259 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
2260 .main_clk = "timer6_fck",
2263 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
2266 .slaves = omap44xx_timer6_slaves,
2267 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
2268 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2272 static struct omap_hwmod omap44xx_timer7_hwmod;
2273 static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
2274 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
2277 static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
2279 .pa_start = 0x4013c000,
2280 .pa_end = 0x4013c07f,
2281 .flags = ADDR_TYPE_RT
2285 /* l4_abe -> timer7 */
2286 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
2287 .master = &omap44xx_l4_abe_hwmod,
2288 .slave = &omap44xx_timer7_hwmod,
2289 .clk = "ocp_abe_iclk",
2290 .addr = omap44xx_timer7_addrs,
2291 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
2292 .user = OCP_USER_MPU,
2295 static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
2297 .pa_start = 0x4903c000,
2298 .pa_end = 0x4903c07f,
2299 .flags = ADDR_TYPE_RT
2303 /* l4_abe -> timer7 (dma) */
2304 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
2305 .master = &omap44xx_l4_abe_hwmod,
2306 .slave = &omap44xx_timer7_hwmod,
2307 .clk = "ocp_abe_iclk",
2308 .addr = omap44xx_timer7_dma_addrs,
2309 .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
2310 .user = OCP_USER_SDMA,
2313 /* timer7 slave ports */
2314 static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
2315 &omap44xx_l4_abe__timer7,
2316 &omap44xx_l4_abe__timer7_dma,
2319 static struct omap_hwmod omap44xx_timer7_hwmod = {
2321 .class = &omap44xx_timer_hwmod_class,
2322 .mpu_irqs = omap44xx_timer7_irqs,
2323 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
2324 .main_clk = "timer7_fck",
2327 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
2330 .slaves = omap44xx_timer7_slaves,
2331 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
2332 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2336 static struct omap_hwmod omap44xx_timer8_hwmod;
2337 static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
2338 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
2341 static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
2343 .pa_start = 0x4013e000,
2344 .pa_end = 0x4013e07f,
2345 .flags = ADDR_TYPE_RT
2349 /* l4_abe -> timer8 */
2350 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
2351 .master = &omap44xx_l4_abe_hwmod,
2352 .slave = &omap44xx_timer8_hwmod,
2353 .clk = "ocp_abe_iclk",
2354 .addr = omap44xx_timer8_addrs,
2355 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
2356 .user = OCP_USER_MPU,
2359 static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
2361 .pa_start = 0x4903e000,
2362 .pa_end = 0x4903e07f,
2363 .flags = ADDR_TYPE_RT
2367 /* l4_abe -> timer8 (dma) */
2368 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
2369 .master = &omap44xx_l4_abe_hwmod,
2370 .slave = &omap44xx_timer8_hwmod,
2371 .clk = "ocp_abe_iclk",
2372 .addr = omap44xx_timer8_dma_addrs,
2373 .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
2374 .user = OCP_USER_SDMA,
2377 /* timer8 slave ports */
2378 static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
2379 &omap44xx_l4_abe__timer8,
2380 &omap44xx_l4_abe__timer8_dma,
2383 static struct omap_hwmod omap44xx_timer8_hwmod = {
2385 .class = &omap44xx_timer_hwmod_class,
2386 .mpu_irqs = omap44xx_timer8_irqs,
2387 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
2388 .main_clk = "timer8_fck",
2391 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
2394 .slaves = omap44xx_timer8_slaves,
2395 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
2396 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2400 static struct omap_hwmod omap44xx_timer9_hwmod;
2401 static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
2402 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
2405 static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
2407 .pa_start = 0x4803e000,
2408 .pa_end = 0x4803e07f,
2409 .flags = ADDR_TYPE_RT
2413 /* l4_per -> timer9 */
2414 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
2415 .master = &omap44xx_l4_per_hwmod,
2416 .slave = &omap44xx_timer9_hwmod,
2418 .addr = omap44xx_timer9_addrs,
2419 .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
2420 .user = OCP_USER_MPU | OCP_USER_SDMA,
2423 /* timer9 slave ports */
2424 static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
2425 &omap44xx_l4_per__timer9,
2428 static struct omap_hwmod omap44xx_timer9_hwmod = {
2430 .class = &omap44xx_timer_hwmod_class,
2431 .mpu_irqs = omap44xx_timer9_irqs,
2432 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
2433 .main_clk = "timer9_fck",
2436 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
2439 .slaves = omap44xx_timer9_slaves,
2440 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
2441 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2445 static struct omap_hwmod omap44xx_timer10_hwmod;
2446 static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
2447 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
2450 static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
2452 .pa_start = 0x48086000,
2453 .pa_end = 0x4808607f,
2454 .flags = ADDR_TYPE_RT
2458 /* l4_per -> timer10 */
2459 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
2460 .master = &omap44xx_l4_per_hwmod,
2461 .slave = &omap44xx_timer10_hwmod,
2463 .addr = omap44xx_timer10_addrs,
2464 .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
2465 .user = OCP_USER_MPU | OCP_USER_SDMA,
2468 /* timer10 slave ports */
2469 static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
2470 &omap44xx_l4_per__timer10,
2473 static struct omap_hwmod omap44xx_timer10_hwmod = {
2475 .class = &omap44xx_timer_1ms_hwmod_class,
2476 .mpu_irqs = omap44xx_timer10_irqs,
2477 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
2478 .main_clk = "timer10_fck",
2481 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
2484 .slaves = omap44xx_timer10_slaves,
2485 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
2486 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2490 static struct omap_hwmod omap44xx_timer11_hwmod;
2491 static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
2492 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
2495 static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
2497 .pa_start = 0x48088000,
2498 .pa_end = 0x4808807f,
2499 .flags = ADDR_TYPE_RT
2503 /* l4_per -> timer11 */
2504 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
2505 .master = &omap44xx_l4_per_hwmod,
2506 .slave = &omap44xx_timer11_hwmod,
2508 .addr = omap44xx_timer11_addrs,
2509 .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
2510 .user = OCP_USER_MPU | OCP_USER_SDMA,
2513 /* timer11 slave ports */
2514 static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
2515 &omap44xx_l4_per__timer11,
2518 static struct omap_hwmod omap44xx_timer11_hwmod = {
2520 .class = &omap44xx_timer_hwmod_class,
2521 .mpu_irqs = omap44xx_timer11_irqs,
2522 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
2523 .main_clk = "timer11_fck",
2526 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
2529 .slaves = omap44xx_timer11_slaves,
2530 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
2531 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2536 * universal asynchronous receiver/transmitter (uart)
2539 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2541 .sysc_offs = 0x0054,
2542 .syss_offs = 0x0058,
2543 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2544 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2545 SYSS_HAS_RESET_STATUS),
2546 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2548 .sysc_fields = &omap_hwmod_sysc_type1,
2551 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
2553 .sysc = &omap44xx_uart_sysc,
2557 static struct omap_hwmod omap44xx_uart1_hwmod;
2558 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
2559 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
2562 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
2563 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
2564 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
2567 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
2569 .pa_start = 0x4806a000,
2570 .pa_end = 0x4806a0ff,
2571 .flags = ADDR_TYPE_RT
2575 /* l4_per -> uart1 */
2576 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
2577 .master = &omap44xx_l4_per_hwmod,
2578 .slave = &omap44xx_uart1_hwmod,
2580 .addr = omap44xx_uart1_addrs,
2581 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
2582 .user = OCP_USER_MPU | OCP_USER_SDMA,
2585 /* uart1 slave ports */
2586 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
2587 &omap44xx_l4_per__uart1,
2590 static struct omap_hwmod omap44xx_uart1_hwmod = {
2592 .class = &omap44xx_uart_hwmod_class,
2593 .mpu_irqs = omap44xx_uart1_irqs,
2594 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
2595 .sdma_reqs = omap44xx_uart1_sdma_reqs,
2596 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
2597 .main_clk = "uart1_fck",
2600 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
2603 .slaves = omap44xx_uart1_slaves,
2604 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
2605 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2609 static struct omap_hwmod omap44xx_uart2_hwmod;
2610 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
2611 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
2614 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
2615 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
2616 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
2619 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
2621 .pa_start = 0x4806c000,
2622 .pa_end = 0x4806c0ff,
2623 .flags = ADDR_TYPE_RT
2627 /* l4_per -> uart2 */
2628 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
2629 .master = &omap44xx_l4_per_hwmod,
2630 .slave = &omap44xx_uart2_hwmod,
2632 .addr = omap44xx_uart2_addrs,
2633 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
2634 .user = OCP_USER_MPU | OCP_USER_SDMA,
2637 /* uart2 slave ports */
2638 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
2639 &omap44xx_l4_per__uart2,
2642 static struct omap_hwmod omap44xx_uart2_hwmod = {
2644 .class = &omap44xx_uart_hwmod_class,
2645 .mpu_irqs = omap44xx_uart2_irqs,
2646 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
2647 .sdma_reqs = omap44xx_uart2_sdma_reqs,
2648 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
2649 .main_clk = "uart2_fck",
2652 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
2655 .slaves = omap44xx_uart2_slaves,
2656 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
2657 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2661 static struct omap_hwmod omap44xx_uart3_hwmod;
2662 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
2663 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
2666 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
2667 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
2668 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
2671 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
2673 .pa_start = 0x48020000,
2674 .pa_end = 0x480200ff,
2675 .flags = ADDR_TYPE_RT
2679 /* l4_per -> uart3 */
2680 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
2681 .master = &omap44xx_l4_per_hwmod,
2682 .slave = &omap44xx_uart3_hwmod,
2684 .addr = omap44xx_uart3_addrs,
2685 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
2686 .user = OCP_USER_MPU | OCP_USER_SDMA,
2689 /* uart3 slave ports */
2690 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
2691 &omap44xx_l4_per__uart3,
2694 static struct omap_hwmod omap44xx_uart3_hwmod = {
2696 .class = &omap44xx_uart_hwmod_class,
2697 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
2698 .mpu_irqs = omap44xx_uart3_irqs,
2699 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
2700 .sdma_reqs = omap44xx_uart3_sdma_reqs,
2701 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
2702 .main_clk = "uart3_fck",
2705 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
2708 .slaves = omap44xx_uart3_slaves,
2709 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
2710 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2714 static struct omap_hwmod omap44xx_uart4_hwmod;
2715 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
2716 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
2719 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
2720 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
2721 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
2724 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
2726 .pa_start = 0x4806e000,
2727 .pa_end = 0x4806e0ff,
2728 .flags = ADDR_TYPE_RT
2732 /* l4_per -> uart4 */
2733 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
2734 .master = &omap44xx_l4_per_hwmod,
2735 .slave = &omap44xx_uart4_hwmod,
2737 .addr = omap44xx_uart4_addrs,
2738 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
2739 .user = OCP_USER_MPU | OCP_USER_SDMA,
2742 /* uart4 slave ports */
2743 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
2744 &omap44xx_l4_per__uart4,
2747 static struct omap_hwmod omap44xx_uart4_hwmod = {
2749 .class = &omap44xx_uart_hwmod_class,
2750 .mpu_irqs = omap44xx_uart4_irqs,
2751 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
2752 .sdma_reqs = omap44xx_uart4_sdma_reqs,
2753 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
2754 .main_clk = "uart4_fck",
2757 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
2760 .slaves = omap44xx_uart4_slaves,
2761 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
2762 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2767 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
2768 * overflow condition
2771 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
2773 .sysc_offs = 0x0010,
2774 .syss_offs = 0x0014,
2775 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2776 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2777 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2779 .sysc_fields = &omap_hwmod_sysc_type1,
2782 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
2784 .sysc = &omap44xx_wd_timer_sysc,
2785 .pre_shutdown = &omap2_wd_timer_disable,
2789 static struct omap_hwmod omap44xx_wd_timer2_hwmod;
2790 static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
2791 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
2794 static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
2796 .pa_start = 0x4a314000,
2797 .pa_end = 0x4a31407f,
2798 .flags = ADDR_TYPE_RT
2802 /* l4_wkup -> wd_timer2 */
2803 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
2804 .master = &omap44xx_l4_wkup_hwmod,
2805 .slave = &omap44xx_wd_timer2_hwmod,
2806 .clk = "l4_wkup_clk_mux_ck",
2807 .addr = omap44xx_wd_timer2_addrs,
2808 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
2809 .user = OCP_USER_MPU | OCP_USER_SDMA,
2812 /* wd_timer2 slave ports */
2813 static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
2814 &omap44xx_l4_wkup__wd_timer2,
2817 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
2818 .name = "wd_timer2",
2819 .class = &omap44xx_wd_timer_hwmod_class,
2820 .mpu_irqs = omap44xx_wd_timer2_irqs,
2821 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
2822 .main_clk = "wd_timer2_fck",
2825 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
2828 .slaves = omap44xx_wd_timer2_slaves,
2829 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
2830 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2834 static struct omap_hwmod omap44xx_wd_timer3_hwmod;
2835 static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
2836 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
2839 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
2841 .pa_start = 0x40130000,
2842 .pa_end = 0x4013007f,
2843 .flags = ADDR_TYPE_RT
2847 /* l4_abe -> wd_timer3 */
2848 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
2849 .master = &omap44xx_l4_abe_hwmod,
2850 .slave = &omap44xx_wd_timer3_hwmod,
2851 .clk = "ocp_abe_iclk",
2852 .addr = omap44xx_wd_timer3_addrs,
2853 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
2854 .user = OCP_USER_MPU,
2857 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
2859 .pa_start = 0x49030000,
2860 .pa_end = 0x4903007f,
2861 .flags = ADDR_TYPE_RT
2865 /* l4_abe -> wd_timer3 (dma) */
2866 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
2867 .master = &omap44xx_l4_abe_hwmod,
2868 .slave = &omap44xx_wd_timer3_hwmod,
2869 .clk = "ocp_abe_iclk",
2870 .addr = omap44xx_wd_timer3_dma_addrs,
2871 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
2872 .user = OCP_USER_SDMA,
2875 /* wd_timer3 slave ports */
2876 static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
2877 &omap44xx_l4_abe__wd_timer3,
2878 &omap44xx_l4_abe__wd_timer3_dma,
2881 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
2882 .name = "wd_timer3",
2883 .class = &omap44xx_wd_timer_hwmod_class,
2884 .mpu_irqs = omap44xx_wd_timer3_irqs,
2885 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
2886 .main_clk = "wd_timer3_fck",
2889 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
2892 .slaves = omap44xx_wd_timer3_slaves,
2893 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
2894 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2897 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
2900 &omap44xx_dmm_hwmod,
2903 &omap44xx_emif_fw_hwmod,
2906 &omap44xx_l3_instr_hwmod,
2907 &omap44xx_l3_main_1_hwmod,
2908 &omap44xx_l3_main_2_hwmod,
2909 &omap44xx_l3_main_3_hwmod,
2912 &omap44xx_l4_abe_hwmod,
2913 &omap44xx_l4_cfg_hwmod,
2914 &omap44xx_l4_per_hwmod,
2915 &omap44xx_l4_wkup_hwmod,
2918 &omap44xx_mpu_private_hwmod,
2921 &omap44xx_dma_system_hwmod,
2924 &omap44xx_dsp_hwmod,
2925 &omap44xx_dsp_c0_hwmod,
2928 &omap44xx_gpio1_hwmod,
2929 &omap44xx_gpio2_hwmod,
2930 &omap44xx_gpio3_hwmod,
2931 &omap44xx_gpio4_hwmod,
2932 &omap44xx_gpio5_hwmod,
2933 &omap44xx_gpio6_hwmod,
2936 &omap44xx_i2c1_hwmod,
2937 &omap44xx_i2c2_hwmod,
2938 &omap44xx_i2c3_hwmod,
2939 &omap44xx_i2c4_hwmod,
2942 &omap44xx_iva_hwmod,
2943 &omap44xx_iva_seq0_hwmod,
2944 &omap44xx_iva_seq1_hwmod,
2947 &omap44xx_mcspi1_hwmod,
2948 &omap44xx_mcspi2_hwmod,
2949 &omap44xx_mcspi3_hwmod,
2950 &omap44xx_mcspi4_hwmod,
2953 &omap44xx_mpu_hwmod,
2955 /* smartreflex class */
2956 &omap44xx_smartreflex_core_hwmod,
2957 &omap44xx_smartreflex_iva_hwmod,
2958 &omap44xx_smartreflex_mpu_hwmod,
2960 /* spinlock class */
2961 &omap44xx_spinlock_hwmod,
2964 &omap44xx_timer1_hwmod,
2965 &omap44xx_timer2_hwmod,
2966 &omap44xx_timer3_hwmod,
2967 &omap44xx_timer4_hwmod,
2968 &omap44xx_timer5_hwmod,
2969 &omap44xx_timer6_hwmod,
2970 &omap44xx_timer7_hwmod,
2971 &omap44xx_timer8_hwmod,
2972 &omap44xx_timer9_hwmod,
2973 &omap44xx_timer10_hwmod,
2974 &omap44xx_timer11_hwmod,
2977 &omap44xx_uart1_hwmod,
2978 &omap44xx_uart2_hwmod,
2979 &omap44xx_uart3_hwmod,
2980 &omap44xx_uart4_hwmod,
2982 /* wd_timer class */
2983 &omap44xx_wd_timer2_hwmod,
2984 &omap44xx_wd_timer3_hwmod,
2989 int __init omap44xx_hwmod_init(void)
2991 return omap_hwmod_init(omap44xx_hwmods);