blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / arm / mach-omap2 / omap_hwmod_44xx_data.c
blob43eebf2c59e2f71a375cdbc5d3dbf227f7b99378
1 /*
2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2012 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
7 * Paul Walmsley
8 * Benoit Cousson
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.
15 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
23 #include <linux/io.h>
24 #include <linux/platform_data/gpio-omap.h>
25 #include <linux/platform_data/hsmmc-omap.h>
26 #include <linux/power/smartreflex.h>
27 #include <linux/i2c-omap.h>
29 #include <linux/omap-dma.h>
31 #include <linux/platform_data/spi-omap2-mcspi.h>
32 #include <linux/platform_data/asoc-ti-mcbsp.h>
33 #include <linux/platform_data/iommu-omap.h>
34 #include <plat/dmtimer.h>
36 #include "omap_hwmod.h"
37 #include "omap_hwmod_common_data.h"
38 #include "cm1_44xx.h"
39 #include "cm2_44xx.h"
40 #include "prm44xx.h"
41 #include "prm-regbits-44xx.h"
42 #include "i2c.h"
43 #include "wd_timer.h"
45 /* Base offset for all OMAP4 interrupts external to MPUSS */
46 #define OMAP44XX_IRQ_GIC_START 32
48 /* Base offset for all OMAP4 dma requests */
49 #define OMAP44XX_DMA_REQ_START 1
52 * IP blocks
56 * 'dmm' class
57 * instance(s): dmm
59 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
60 .name = "dmm",
63 /* dmm */
64 static struct omap_hwmod omap44xx_dmm_hwmod = {
65 .name = "dmm",
66 .class = &omap44xx_dmm_hwmod_class,
67 .clkdm_name = "l3_emif_clkdm",
68 .prcm = {
69 .omap4 = {
70 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
71 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
77 * 'l3' class
78 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
80 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
81 .name = "l3",
84 /* l3_instr */
85 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
86 .name = "l3_instr",
87 .class = &omap44xx_l3_hwmod_class,
88 .clkdm_name = "l3_instr_clkdm",
89 .prcm = {
90 .omap4 = {
91 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
92 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
93 .modulemode = MODULEMODE_HWCTRL,
98 /* l3_main_1 */
99 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
100 .name = "l3_main_1",
101 .class = &omap44xx_l3_hwmod_class,
102 .clkdm_name = "l3_1_clkdm",
103 .prcm = {
104 .omap4 = {
105 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
106 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
111 /* l3_main_2 */
112 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
113 .name = "l3_main_2",
114 .class = &omap44xx_l3_hwmod_class,
115 .clkdm_name = "l3_2_clkdm",
116 .prcm = {
117 .omap4 = {
118 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
119 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
124 /* l3_main_3 */
125 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
126 .name = "l3_main_3",
127 .class = &omap44xx_l3_hwmod_class,
128 .clkdm_name = "l3_instr_clkdm",
129 .prcm = {
130 .omap4 = {
131 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
132 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
133 .modulemode = MODULEMODE_HWCTRL,
139 * 'l4' class
140 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
142 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
143 .name = "l4",
146 /* l4_abe */
147 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
148 .name = "l4_abe",
149 .class = &omap44xx_l4_hwmod_class,
150 .clkdm_name = "abe_clkdm",
151 .prcm = {
152 .omap4 = {
153 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
154 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
155 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
156 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
161 /* l4_cfg */
162 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
163 .name = "l4_cfg",
164 .class = &omap44xx_l4_hwmod_class,
165 .clkdm_name = "l4_cfg_clkdm",
166 .prcm = {
167 .omap4 = {
168 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
169 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
174 /* l4_per */
175 static struct omap_hwmod omap44xx_l4_per_hwmod = {
176 .name = "l4_per",
177 .class = &omap44xx_l4_hwmod_class,
178 .clkdm_name = "l4_per_clkdm",
179 .prcm = {
180 .omap4 = {
181 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
182 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
187 /* l4_wkup */
188 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
189 .name = "l4_wkup",
190 .class = &omap44xx_l4_hwmod_class,
191 .clkdm_name = "l4_wkup_clkdm",
192 .prcm = {
193 .omap4 = {
194 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
195 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
201 * 'mpu_bus' class
202 * instance(s): mpu_private
204 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
205 .name = "mpu_bus",
208 /* mpu_private */
209 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
210 .name = "mpu_private",
211 .class = &omap44xx_mpu_bus_hwmod_class,
212 .clkdm_name = "mpuss_clkdm",
213 .prcm = {
214 .omap4 = {
215 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
221 * 'ocp_wp_noc' class
222 * instance(s): ocp_wp_noc
224 static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
225 .name = "ocp_wp_noc",
228 /* ocp_wp_noc */
229 static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
230 .name = "ocp_wp_noc",
231 .class = &omap44xx_ocp_wp_noc_hwmod_class,
232 .clkdm_name = "l3_instr_clkdm",
233 .prcm = {
234 .omap4 = {
235 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
236 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
237 .modulemode = MODULEMODE_HWCTRL,
243 * Modules omap_hwmod structures
245 * The following IPs are excluded for the moment because:
246 * - They do not need an explicit SW control using omap_hwmod API.
247 * - They still need to be validated with the driver
248 * properly adapted to omap_hwmod / omap_device
250 * usim
254 * 'aess' class
255 * audio engine sub system
258 static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
259 .rev_offs = 0x0000,
260 .sysc_offs = 0x0010,
261 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
262 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
263 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
264 MSTANDBY_SMART_WKUP),
265 .sysc_fields = &omap_hwmod_sysc_type2,
268 static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
269 .name = "aess",
270 .sysc = &omap44xx_aess_sysc,
271 .enable_preprogram = omap_hwmod_aess_preprogram,
274 /* aess */
275 static struct omap_hwmod omap44xx_aess_hwmod = {
276 .name = "aess",
277 .class = &omap44xx_aess_hwmod_class,
278 .clkdm_name = "abe_clkdm",
279 .main_clk = "aess_fclk",
280 .prcm = {
281 .omap4 = {
282 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
283 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
284 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
285 .modulemode = MODULEMODE_SWCTRL,
291 * 'c2c' class
292 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
293 * soc
296 static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
297 .name = "c2c",
300 /* c2c */
301 static struct omap_hwmod omap44xx_c2c_hwmod = {
302 .name = "c2c",
303 .class = &omap44xx_c2c_hwmod_class,
304 .clkdm_name = "d2d_clkdm",
305 .prcm = {
306 .omap4 = {
307 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
308 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
314 * 'counter' class
315 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
318 static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
319 .rev_offs = 0x0000,
320 .sysc_offs = 0x0004,
321 .sysc_flags = SYSC_HAS_SIDLEMODE,
322 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
323 .sysc_fields = &omap_hwmod_sysc_type1,
326 static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
327 .name = "counter",
328 .sysc = &omap44xx_counter_sysc,
331 /* counter_32k */
332 static struct omap_hwmod omap44xx_counter_32k_hwmod = {
333 .name = "counter_32k",
334 .class = &omap44xx_counter_hwmod_class,
335 .clkdm_name = "l4_wkup_clkdm",
336 .flags = HWMOD_SWSUP_SIDLE,
337 .main_clk = "sys_32k_ck",
338 .prcm = {
339 .omap4 = {
340 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
341 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
347 * 'ctrl_module' class
348 * attila core control module + core pad control module + wkup pad control
349 * module + attila wkup control module
352 static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
353 .rev_offs = 0x0000,
354 .sysc_offs = 0x0010,
355 .sysc_flags = SYSC_HAS_SIDLEMODE,
356 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
357 SIDLE_SMART_WKUP),
358 .sysc_fields = &omap_hwmod_sysc_type2,
361 static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
362 .name = "ctrl_module",
363 .sysc = &omap44xx_ctrl_module_sysc,
366 /* ctrl_module_core */
367 static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
368 .name = "ctrl_module_core",
369 .class = &omap44xx_ctrl_module_hwmod_class,
370 .clkdm_name = "l4_cfg_clkdm",
371 .prcm = {
372 .omap4 = {
373 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
378 /* ctrl_module_pad_core */
379 static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
380 .name = "ctrl_module_pad_core",
381 .class = &omap44xx_ctrl_module_hwmod_class,
382 .clkdm_name = "l4_cfg_clkdm",
383 .prcm = {
384 .omap4 = {
385 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
390 /* ctrl_module_wkup */
391 static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
392 .name = "ctrl_module_wkup",
393 .class = &omap44xx_ctrl_module_hwmod_class,
394 .clkdm_name = "l4_wkup_clkdm",
395 .prcm = {
396 .omap4 = {
397 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
402 /* ctrl_module_pad_wkup */
403 static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
404 .name = "ctrl_module_pad_wkup",
405 .class = &omap44xx_ctrl_module_hwmod_class,
406 .clkdm_name = "l4_wkup_clkdm",
407 .prcm = {
408 .omap4 = {
409 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
415 * 'debugss' class
416 * debug and emulation sub system
419 static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
420 .name = "debugss",
423 /* debugss */
424 static struct omap_hwmod omap44xx_debugss_hwmod = {
425 .name = "debugss",
426 .class = &omap44xx_debugss_hwmod_class,
427 .clkdm_name = "emu_sys_clkdm",
428 .main_clk = "trace_clk_div_ck",
429 .prcm = {
430 .omap4 = {
431 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
432 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
438 * 'dma' class
439 * dma controller for data exchange between memory to memory (i.e. internal or
440 * external memory) and gp peripherals to memory or memory to gp peripherals
443 static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
444 .rev_offs = 0x0000,
445 .sysc_offs = 0x002c,
446 .syss_offs = 0x0028,
447 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
448 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
449 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
450 SYSS_HAS_RESET_STATUS),
451 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
452 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
453 .sysc_fields = &omap_hwmod_sysc_type1,
456 static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
457 .name = "dma",
458 .sysc = &omap44xx_dma_sysc,
461 /* dma dev_attr */
462 static struct omap_dma_dev_attr dma_dev_attr = {
463 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
464 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
465 .lch_count = 32,
468 /* dma_system */
469 static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
470 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
471 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
472 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
473 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
474 { .irq = -1 }
477 static struct omap_hwmod omap44xx_dma_system_hwmod = {
478 .name = "dma_system",
479 .class = &omap44xx_dma_hwmod_class,
480 .clkdm_name = "l3_dma_clkdm",
481 .mpu_irqs = omap44xx_dma_system_irqs,
482 .xlate_irq = omap4_xlate_irq,
483 .main_clk = "l3_div_ck",
484 .prcm = {
485 .omap4 = {
486 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
487 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
490 .dev_attr = &dma_dev_attr,
494 * 'dmic' class
495 * digital microphone controller
498 static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
499 .rev_offs = 0x0000,
500 .sysc_offs = 0x0010,
501 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
502 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
503 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
504 SIDLE_SMART_WKUP),
505 .sysc_fields = &omap_hwmod_sysc_type2,
508 static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
509 .name = "dmic",
510 .sysc = &omap44xx_dmic_sysc,
513 /* dmic */
514 static struct omap_hwmod omap44xx_dmic_hwmod = {
515 .name = "dmic",
516 .class = &omap44xx_dmic_hwmod_class,
517 .clkdm_name = "abe_clkdm",
518 .main_clk = "func_dmic_abe_gfclk",
519 .prcm = {
520 .omap4 = {
521 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
522 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
523 .modulemode = MODULEMODE_SWCTRL,
529 * 'dsp' class
530 * dsp sub-system
533 static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
534 .name = "dsp",
537 /* dsp */
538 static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
539 { .name = "dsp", .rst_shift = 0 },
542 static struct omap_hwmod omap44xx_dsp_hwmod = {
543 .name = "dsp",
544 .class = &omap44xx_dsp_hwmod_class,
545 .clkdm_name = "tesla_clkdm",
546 .rst_lines = omap44xx_dsp_resets,
547 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
548 .main_clk = "dpll_iva_m4x2_ck",
549 .prcm = {
550 .omap4 = {
551 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
552 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
553 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
554 .modulemode = MODULEMODE_HWCTRL,
560 * 'dss' class
561 * display sub-system
564 static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
565 .rev_offs = 0x0000,
566 .syss_offs = 0x0014,
567 .sysc_flags = SYSS_HAS_RESET_STATUS,
570 static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
571 .name = "dss",
572 .sysc = &omap44xx_dss_sysc,
573 .reset = omap_dss_reset,
576 /* dss */
577 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
578 { .role = "sys_clk", .clk = "dss_sys_clk" },
579 { .role = "tv_clk", .clk = "dss_tv_clk" },
580 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
583 static struct omap_hwmod omap44xx_dss_hwmod = {
584 .name = "dss_core",
585 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
586 .class = &omap44xx_dss_hwmod_class,
587 .clkdm_name = "l3_dss_clkdm",
588 .main_clk = "dss_dss_clk",
589 .prcm = {
590 .omap4 = {
591 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
592 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
593 .modulemode = MODULEMODE_SWCTRL,
596 .opt_clks = dss_opt_clks,
597 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
601 * 'dispc' class
602 * display controller
605 static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
606 .rev_offs = 0x0000,
607 .sysc_offs = 0x0010,
608 .syss_offs = 0x0014,
609 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
610 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
611 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
612 SYSS_HAS_RESET_STATUS),
613 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
614 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
615 .sysc_fields = &omap_hwmod_sysc_type1,
618 static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
619 .name = "dispc",
620 .sysc = &omap44xx_dispc_sysc,
623 /* dss_dispc */
624 static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
625 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
626 { .irq = -1 }
629 static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
630 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
631 { .dma_req = -1 }
634 static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
635 .manager_count = 3,
636 .has_framedonetv_irq = 1
639 static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
640 .name = "dss_dispc",
641 .class = &omap44xx_dispc_hwmod_class,
642 .clkdm_name = "l3_dss_clkdm",
643 .mpu_irqs = omap44xx_dss_dispc_irqs,
644 .xlate_irq = omap4_xlate_irq,
645 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
646 .main_clk = "dss_dss_clk",
647 .prcm = {
648 .omap4 = {
649 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
650 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
653 .dev_attr = &omap44xx_dss_dispc_dev_attr,
654 .parent_hwmod = &omap44xx_dss_hwmod,
658 * 'dsi' class
659 * display serial interface controller
662 static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
663 .rev_offs = 0x0000,
664 .sysc_offs = 0x0010,
665 .syss_offs = 0x0014,
666 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
667 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
668 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
669 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
670 .sysc_fields = &omap_hwmod_sysc_type1,
673 static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
674 .name = "dsi",
675 .sysc = &omap44xx_dsi_sysc,
678 /* dss_dsi1 */
679 static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
680 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
681 { .irq = -1 }
684 static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
685 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
686 { .dma_req = -1 }
689 static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
690 { .role = "sys_clk", .clk = "dss_sys_clk" },
693 static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
694 .name = "dss_dsi1",
695 .class = &omap44xx_dsi_hwmod_class,
696 .clkdm_name = "l3_dss_clkdm",
697 .mpu_irqs = omap44xx_dss_dsi1_irqs,
698 .xlate_irq = omap4_xlate_irq,
699 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
700 .main_clk = "dss_dss_clk",
701 .prcm = {
702 .omap4 = {
703 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
704 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
707 .opt_clks = dss_dsi1_opt_clks,
708 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
709 .parent_hwmod = &omap44xx_dss_hwmod,
712 /* dss_dsi2 */
713 static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
714 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
715 { .irq = -1 }
718 static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
719 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
720 { .dma_req = -1 }
723 static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
724 { .role = "sys_clk", .clk = "dss_sys_clk" },
727 static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
728 .name = "dss_dsi2",
729 .class = &omap44xx_dsi_hwmod_class,
730 .clkdm_name = "l3_dss_clkdm",
731 .mpu_irqs = omap44xx_dss_dsi2_irqs,
732 .xlate_irq = omap4_xlate_irq,
733 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
734 .main_clk = "dss_dss_clk",
735 .prcm = {
736 .omap4 = {
737 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
738 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
741 .opt_clks = dss_dsi2_opt_clks,
742 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
743 .parent_hwmod = &omap44xx_dss_hwmod,
747 * 'hdmi' class
748 * hdmi controller
751 static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
752 .rev_offs = 0x0000,
753 .sysc_offs = 0x0010,
754 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
755 SYSC_HAS_SOFTRESET),
756 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
757 SIDLE_SMART_WKUP),
758 .sysc_fields = &omap_hwmod_sysc_type2,
761 static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
762 .name = "hdmi",
763 .sysc = &omap44xx_hdmi_sysc,
766 /* dss_hdmi */
767 static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
768 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
769 { .irq = -1 }
772 static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
773 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
774 { .dma_req = -1 }
777 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
778 { .role = "sys_clk", .clk = "dss_sys_clk" },
781 static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
782 .name = "dss_hdmi",
783 .class = &omap44xx_hdmi_hwmod_class,
784 .clkdm_name = "l3_dss_clkdm",
786 * HDMI audio requires to use no-idle mode. Hence,
787 * set idle mode by software.
789 .flags = HWMOD_SWSUP_SIDLE,
790 .mpu_irqs = omap44xx_dss_hdmi_irqs,
791 .xlate_irq = omap4_xlate_irq,
792 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
793 .main_clk = "dss_48mhz_clk",
794 .prcm = {
795 .omap4 = {
796 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
797 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
800 .opt_clks = dss_hdmi_opt_clks,
801 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
802 .parent_hwmod = &omap44xx_dss_hwmod,
806 * 'rfbi' class
807 * remote frame buffer interface
810 static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
811 .rev_offs = 0x0000,
812 .sysc_offs = 0x0010,
813 .syss_offs = 0x0014,
814 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
815 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
817 .sysc_fields = &omap_hwmod_sysc_type1,
820 static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
821 .name = "rfbi",
822 .sysc = &omap44xx_rfbi_sysc,
825 /* dss_rfbi */
826 static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
827 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
828 { .dma_req = -1 }
831 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
832 { .role = "ick", .clk = "l3_div_ck" },
835 static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
836 .name = "dss_rfbi",
837 .class = &omap44xx_rfbi_hwmod_class,
838 .clkdm_name = "l3_dss_clkdm",
839 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
840 .main_clk = "dss_dss_clk",
841 .prcm = {
842 .omap4 = {
843 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
844 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
847 .opt_clks = dss_rfbi_opt_clks,
848 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
849 .parent_hwmod = &omap44xx_dss_hwmod,
853 * 'venc' class
854 * video encoder
857 static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
858 .name = "venc",
861 /* dss_venc */
862 static struct omap_hwmod omap44xx_dss_venc_hwmod = {
863 .name = "dss_venc",
864 .class = &omap44xx_venc_hwmod_class,
865 .clkdm_name = "l3_dss_clkdm",
866 .main_clk = "dss_tv_clk",
867 .prcm = {
868 .omap4 = {
869 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
870 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
873 .parent_hwmod = &omap44xx_dss_hwmod,
877 * 'elm' class
878 * bch error location module
881 static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
882 .rev_offs = 0x0000,
883 .sysc_offs = 0x0010,
884 .syss_offs = 0x0014,
885 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
886 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
887 SYSS_HAS_RESET_STATUS),
888 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
889 .sysc_fields = &omap_hwmod_sysc_type1,
892 static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
893 .name = "elm",
894 .sysc = &omap44xx_elm_sysc,
897 /* elm */
898 static struct omap_hwmod omap44xx_elm_hwmod = {
899 .name = "elm",
900 .class = &omap44xx_elm_hwmod_class,
901 .clkdm_name = "l4_per_clkdm",
902 .prcm = {
903 .omap4 = {
904 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
905 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
911 * 'emif' class
912 * external memory interface no1
915 static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
916 .rev_offs = 0x0000,
919 static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
920 .name = "emif",
921 .sysc = &omap44xx_emif_sysc,
924 /* emif1 */
925 static struct omap_hwmod omap44xx_emif1_hwmod = {
926 .name = "emif1",
927 .class = &omap44xx_emif_hwmod_class,
928 .clkdm_name = "l3_emif_clkdm",
929 .flags = HWMOD_INIT_NO_IDLE,
930 .main_clk = "ddrphy_ck",
931 .prcm = {
932 .omap4 = {
933 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
934 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
935 .modulemode = MODULEMODE_HWCTRL,
940 /* emif2 */
941 static struct omap_hwmod omap44xx_emif2_hwmod = {
942 .name = "emif2",
943 .class = &omap44xx_emif_hwmod_class,
944 .clkdm_name = "l3_emif_clkdm",
945 .flags = HWMOD_INIT_NO_IDLE,
946 .main_clk = "ddrphy_ck",
947 .prcm = {
948 .omap4 = {
949 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
950 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
951 .modulemode = MODULEMODE_HWCTRL,
957 * 'fdif' class
958 * face detection hw accelerator module
961 static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
962 .rev_offs = 0x0000,
963 .sysc_offs = 0x0010,
965 * FDIF needs 100 OCP clk cycles delay after a softreset before
966 * accessing sysconfig again.
967 * The lowest frequency at the moment for L3 bus is 100 MHz, so
968 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
970 * TODO: Indicate errata when available.
972 .srst_udelay = 2,
973 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
974 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
975 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
976 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
977 .sysc_fields = &omap_hwmod_sysc_type2,
980 static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
981 .name = "fdif",
982 .sysc = &omap44xx_fdif_sysc,
985 /* fdif */
986 static struct omap_hwmod omap44xx_fdif_hwmod = {
987 .name = "fdif",
988 .class = &omap44xx_fdif_hwmod_class,
989 .clkdm_name = "iss_clkdm",
990 .main_clk = "fdif_fck",
991 .prcm = {
992 .omap4 = {
993 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
994 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
995 .modulemode = MODULEMODE_SWCTRL,
1001 * 'gpio' class
1002 * general purpose io module
1005 static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1006 .rev_offs = 0x0000,
1007 .sysc_offs = 0x0010,
1008 .syss_offs = 0x0114,
1009 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1010 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1011 SYSS_HAS_RESET_STATUS),
1012 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1013 SIDLE_SMART_WKUP),
1014 .sysc_fields = &omap_hwmod_sysc_type1,
1017 static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
1018 .name = "gpio",
1019 .sysc = &omap44xx_gpio_sysc,
1020 .rev = 2,
1023 /* gpio dev_attr */
1024 static struct omap_gpio_dev_attr gpio_dev_attr = {
1025 .bank_width = 32,
1026 .dbck_flag = true,
1029 /* gpio1 */
1030 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1031 { .role = "dbclk", .clk = "gpio1_dbclk" },
1034 static struct omap_hwmod omap44xx_gpio1_hwmod = {
1035 .name = "gpio1",
1036 .class = &omap44xx_gpio_hwmod_class,
1037 .clkdm_name = "l4_wkup_clkdm",
1038 .main_clk = "l4_wkup_clk_mux_ck",
1039 .prcm = {
1040 .omap4 = {
1041 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
1042 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
1043 .modulemode = MODULEMODE_HWCTRL,
1046 .opt_clks = gpio1_opt_clks,
1047 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1048 .dev_attr = &gpio_dev_attr,
1051 /* gpio2 */
1052 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1053 { .role = "dbclk", .clk = "gpio2_dbclk" },
1056 static struct omap_hwmod omap44xx_gpio2_hwmod = {
1057 .name = "gpio2",
1058 .class = &omap44xx_gpio_hwmod_class,
1059 .clkdm_name = "l4_per_clkdm",
1060 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1061 .main_clk = "l4_div_ck",
1062 .prcm = {
1063 .omap4 = {
1064 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
1065 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
1066 .modulemode = MODULEMODE_HWCTRL,
1069 .opt_clks = gpio2_opt_clks,
1070 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1071 .dev_attr = &gpio_dev_attr,
1074 /* gpio3 */
1075 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1076 { .role = "dbclk", .clk = "gpio3_dbclk" },
1079 static struct omap_hwmod omap44xx_gpio3_hwmod = {
1080 .name = "gpio3",
1081 .class = &omap44xx_gpio_hwmod_class,
1082 .clkdm_name = "l4_per_clkdm",
1083 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1084 .main_clk = "l4_div_ck",
1085 .prcm = {
1086 .omap4 = {
1087 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
1088 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
1089 .modulemode = MODULEMODE_HWCTRL,
1092 .opt_clks = gpio3_opt_clks,
1093 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1094 .dev_attr = &gpio_dev_attr,
1097 /* gpio4 */
1098 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
1099 { .role = "dbclk", .clk = "gpio4_dbclk" },
1102 static struct omap_hwmod omap44xx_gpio4_hwmod = {
1103 .name = "gpio4",
1104 .class = &omap44xx_gpio_hwmod_class,
1105 .clkdm_name = "l4_per_clkdm",
1106 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1107 .main_clk = "l4_div_ck",
1108 .prcm = {
1109 .omap4 = {
1110 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
1111 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
1112 .modulemode = MODULEMODE_HWCTRL,
1115 .opt_clks = gpio4_opt_clks,
1116 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1117 .dev_attr = &gpio_dev_attr,
1120 /* gpio5 */
1121 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1122 { .role = "dbclk", .clk = "gpio5_dbclk" },
1125 static struct omap_hwmod omap44xx_gpio5_hwmod = {
1126 .name = "gpio5",
1127 .class = &omap44xx_gpio_hwmod_class,
1128 .clkdm_name = "l4_per_clkdm",
1129 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1130 .main_clk = "l4_div_ck",
1131 .prcm = {
1132 .omap4 = {
1133 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
1134 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
1135 .modulemode = MODULEMODE_HWCTRL,
1138 .opt_clks = gpio5_opt_clks,
1139 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1140 .dev_attr = &gpio_dev_attr,
1143 /* gpio6 */
1144 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
1145 { .role = "dbclk", .clk = "gpio6_dbclk" },
1148 static struct omap_hwmod omap44xx_gpio6_hwmod = {
1149 .name = "gpio6",
1150 .class = &omap44xx_gpio_hwmod_class,
1151 .clkdm_name = "l4_per_clkdm",
1152 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1153 .main_clk = "l4_div_ck",
1154 .prcm = {
1155 .omap4 = {
1156 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
1157 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
1158 .modulemode = MODULEMODE_HWCTRL,
1161 .opt_clks = gpio6_opt_clks,
1162 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1163 .dev_attr = &gpio_dev_attr,
1167 * 'gpmc' class
1168 * general purpose memory controller
1171 static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1172 .rev_offs = 0x0000,
1173 .sysc_offs = 0x0010,
1174 .syss_offs = 0x0014,
1175 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1176 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1177 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1178 .sysc_fields = &omap_hwmod_sysc_type1,
1181 static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1182 .name = "gpmc",
1183 .sysc = &omap44xx_gpmc_sysc,
1186 /* gpmc */
1187 static struct omap_hwmod omap44xx_gpmc_hwmod = {
1188 .name = "gpmc",
1189 .class = &omap44xx_gpmc_hwmod_class,
1190 .clkdm_name = "l3_2_clkdm",
1191 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1192 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
1193 .prcm = {
1194 .omap4 = {
1195 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1196 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1197 .modulemode = MODULEMODE_HWCTRL,
1203 * 'gpu' class
1204 * 2d/3d graphics accelerator
1207 static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1208 .rev_offs = 0x1fc00,
1209 .sysc_offs = 0x1fc10,
1210 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1211 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1212 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1213 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1214 .sysc_fields = &omap_hwmod_sysc_type2,
1217 static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1218 .name = "gpu",
1219 .sysc = &omap44xx_gpu_sysc,
1222 /* gpu */
1223 static struct omap_hwmod omap44xx_gpu_hwmod = {
1224 .name = "gpu",
1225 .class = &omap44xx_gpu_hwmod_class,
1226 .clkdm_name = "l3_gfx_clkdm",
1227 .main_clk = "sgx_clk_mux",
1228 .prcm = {
1229 .omap4 = {
1230 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1231 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1232 .modulemode = MODULEMODE_SWCTRL,
1238 * 'hdq1w' class
1239 * hdq / 1-wire serial interface controller
1242 static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1243 .rev_offs = 0x0000,
1244 .sysc_offs = 0x0014,
1245 .syss_offs = 0x0018,
1246 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1247 SYSS_HAS_RESET_STATUS),
1248 .sysc_fields = &omap_hwmod_sysc_type1,
1251 static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1252 .name = "hdq1w",
1253 .sysc = &omap44xx_hdq1w_sysc,
1256 /* hdq1w */
1257 static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1258 .name = "hdq1w",
1259 .class = &omap44xx_hdq1w_hwmod_class,
1260 .clkdm_name = "l4_per_clkdm",
1261 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1262 .main_clk = "func_12m_fclk",
1263 .prcm = {
1264 .omap4 = {
1265 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1266 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1267 .modulemode = MODULEMODE_SWCTRL,
1273 * 'hsi' class
1274 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1275 * serial if)
1278 static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1279 .rev_offs = 0x0000,
1280 .sysc_offs = 0x0010,
1281 .syss_offs = 0x0014,
1282 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1283 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1284 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1285 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1286 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1287 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1288 .sysc_fields = &omap_hwmod_sysc_type1,
1291 static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1292 .name = "hsi",
1293 .sysc = &omap44xx_hsi_sysc,
1296 /* hsi */
1297 static struct omap_hwmod omap44xx_hsi_hwmod = {
1298 .name = "hsi",
1299 .class = &omap44xx_hsi_hwmod_class,
1300 .clkdm_name = "l3_init_clkdm",
1301 .main_clk = "hsi_fck",
1302 .prcm = {
1303 .omap4 = {
1304 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
1305 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
1306 .modulemode = MODULEMODE_HWCTRL,
1312 * 'i2c' class
1313 * multimaster high-speed i2c controller
1316 static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1317 .sysc_offs = 0x0010,
1318 .syss_offs = 0x0090,
1319 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1320 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1321 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1322 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1323 SIDLE_SMART_WKUP),
1324 .clockact = CLOCKACT_TEST_ICLK,
1325 .sysc_fields = &omap_hwmod_sysc_type1,
1328 static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1329 .name = "i2c",
1330 .sysc = &omap44xx_i2c_sysc,
1331 .rev = OMAP_I2C_IP_VERSION_2,
1332 .reset = &omap_i2c_reset,
1335 static struct omap_i2c_dev_attr i2c_dev_attr = {
1336 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
1339 /* i2c1 */
1340 static struct omap_hwmod omap44xx_i2c1_hwmod = {
1341 .name = "i2c1",
1342 .class = &omap44xx_i2c_hwmod_class,
1343 .clkdm_name = "l4_per_clkdm",
1344 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1345 .main_clk = "func_96m_fclk",
1346 .prcm = {
1347 .omap4 = {
1348 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
1349 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
1350 .modulemode = MODULEMODE_SWCTRL,
1353 .dev_attr = &i2c_dev_attr,
1356 /* i2c2 */
1357 static struct omap_hwmod omap44xx_i2c2_hwmod = {
1358 .name = "i2c2",
1359 .class = &omap44xx_i2c_hwmod_class,
1360 .clkdm_name = "l4_per_clkdm",
1361 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1362 .main_clk = "func_96m_fclk",
1363 .prcm = {
1364 .omap4 = {
1365 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
1366 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
1367 .modulemode = MODULEMODE_SWCTRL,
1370 .dev_attr = &i2c_dev_attr,
1373 /* i2c3 */
1374 static struct omap_hwmod omap44xx_i2c3_hwmod = {
1375 .name = "i2c3",
1376 .class = &omap44xx_i2c_hwmod_class,
1377 .clkdm_name = "l4_per_clkdm",
1378 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1379 .main_clk = "func_96m_fclk",
1380 .prcm = {
1381 .omap4 = {
1382 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
1383 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
1384 .modulemode = MODULEMODE_SWCTRL,
1387 .dev_attr = &i2c_dev_attr,
1390 /* i2c4 */
1391 static struct omap_hwmod omap44xx_i2c4_hwmod = {
1392 .name = "i2c4",
1393 .class = &omap44xx_i2c_hwmod_class,
1394 .clkdm_name = "l4_per_clkdm",
1395 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1396 .main_clk = "func_96m_fclk",
1397 .prcm = {
1398 .omap4 = {
1399 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
1400 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
1401 .modulemode = MODULEMODE_SWCTRL,
1404 .dev_attr = &i2c_dev_attr,
1408 * 'ipu' class
1409 * imaging processor unit
1412 static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1413 .name = "ipu",
1416 /* ipu */
1417 static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
1418 { .name = "cpu0", .rst_shift = 0 },
1419 { .name = "cpu1", .rst_shift = 1 },
1422 static struct omap_hwmod omap44xx_ipu_hwmod = {
1423 .name = "ipu",
1424 .class = &omap44xx_ipu_hwmod_class,
1425 .clkdm_name = "ducati_clkdm",
1426 .rst_lines = omap44xx_ipu_resets,
1427 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
1428 .main_clk = "ducati_clk_mux_ck",
1429 .prcm = {
1430 .omap4 = {
1431 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1432 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1433 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1434 .modulemode = MODULEMODE_HWCTRL,
1440 * 'iss' class
1441 * external images sensor pixel data processor
1444 static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1445 .rev_offs = 0x0000,
1446 .sysc_offs = 0x0010,
1448 * ISS needs 100 OCP clk cycles delay after a softreset before
1449 * accessing sysconfig again.
1450 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1451 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1453 * TODO: Indicate errata when available.
1455 .srst_udelay = 2,
1456 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1457 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1458 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1459 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1460 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1461 .sysc_fields = &omap_hwmod_sysc_type2,
1464 static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1465 .name = "iss",
1466 .sysc = &omap44xx_iss_sysc,
1469 /* iss */
1470 static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1471 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1474 static struct omap_hwmod omap44xx_iss_hwmod = {
1475 .name = "iss",
1476 .class = &omap44xx_iss_hwmod_class,
1477 .clkdm_name = "iss_clkdm",
1478 .main_clk = "ducati_clk_mux_ck",
1479 .prcm = {
1480 .omap4 = {
1481 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
1482 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
1483 .modulemode = MODULEMODE_SWCTRL,
1486 .opt_clks = iss_opt_clks,
1487 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
1491 * 'iva' class
1492 * multi-standard video encoder/decoder hardware accelerator
1495 static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1496 .name = "iva",
1499 /* iva */
1500 static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1501 { .name = "seq0", .rst_shift = 0 },
1502 { .name = "seq1", .rst_shift = 1 },
1503 { .name = "logic", .rst_shift = 2 },
1506 static struct omap_hwmod omap44xx_iva_hwmod = {
1507 .name = "iva",
1508 .class = &omap44xx_iva_hwmod_class,
1509 .clkdm_name = "ivahd_clkdm",
1510 .rst_lines = omap44xx_iva_resets,
1511 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1512 .main_clk = "dpll_iva_m5x2_ck",
1513 .prcm = {
1514 .omap4 = {
1515 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
1516 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
1517 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
1518 .modulemode = MODULEMODE_HWCTRL,
1524 * 'kbd' class
1525 * keyboard controller
1528 static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1529 .rev_offs = 0x0000,
1530 .sysc_offs = 0x0010,
1531 .syss_offs = 0x0014,
1532 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1533 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1534 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1535 SYSS_HAS_RESET_STATUS),
1536 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1537 .sysc_fields = &omap_hwmod_sysc_type1,
1540 static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1541 .name = "kbd",
1542 .sysc = &omap44xx_kbd_sysc,
1545 /* kbd */
1546 static struct omap_hwmod omap44xx_kbd_hwmod = {
1547 .name = "kbd",
1548 .class = &omap44xx_kbd_hwmod_class,
1549 .clkdm_name = "l4_wkup_clkdm",
1550 .main_clk = "sys_32k_ck",
1551 .prcm = {
1552 .omap4 = {
1553 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
1554 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
1555 .modulemode = MODULEMODE_SWCTRL,
1561 * 'mailbox' class
1562 * mailbox module allowing communication between the on-chip processors using a
1563 * queued mailbox-interrupt mechanism.
1566 static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1567 .rev_offs = 0x0000,
1568 .sysc_offs = 0x0010,
1569 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1570 SYSC_HAS_SOFTRESET),
1571 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1572 .sysc_fields = &omap_hwmod_sysc_type2,
1575 static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1576 .name = "mailbox",
1577 .sysc = &omap44xx_mailbox_sysc,
1580 /* mailbox */
1581 static struct omap_hwmod omap44xx_mailbox_hwmod = {
1582 .name = "mailbox",
1583 .class = &omap44xx_mailbox_hwmod_class,
1584 .clkdm_name = "l4_cfg_clkdm",
1585 .prcm = {
1586 .omap4 = {
1587 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
1588 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
1594 * 'mcasp' class
1595 * multi-channel audio serial port controller
1598 /* The IP is not compliant to type1 / type2 scheme */
1599 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1600 .sidle_shift = 0,
1603 static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1604 .sysc_offs = 0x0004,
1605 .sysc_flags = SYSC_HAS_SIDLEMODE,
1606 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1607 SIDLE_SMART_WKUP),
1608 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1611 static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1612 .name = "mcasp",
1613 .sysc = &omap44xx_mcasp_sysc,
1616 /* mcasp */
1617 static struct omap_hwmod omap44xx_mcasp_hwmod = {
1618 .name = "mcasp",
1619 .class = &omap44xx_mcasp_hwmod_class,
1620 .clkdm_name = "abe_clkdm",
1621 .main_clk = "func_mcasp_abe_gfclk",
1622 .prcm = {
1623 .omap4 = {
1624 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1625 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1626 .modulemode = MODULEMODE_SWCTRL,
1632 * 'mcbsp' class
1633 * multi channel buffered serial port controller
1636 static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1637 .sysc_offs = 0x008c,
1638 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1639 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1640 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1641 .sysc_fields = &omap_hwmod_sysc_type1,
1644 static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1645 .name = "mcbsp",
1646 .sysc = &omap44xx_mcbsp_sysc,
1647 .rev = MCBSP_CONFIG_TYPE4,
1650 /* mcbsp1 */
1651 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1652 { .role = "pad_fck", .clk = "pad_clks_ck" },
1653 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
1656 static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1657 .name = "mcbsp1",
1658 .class = &omap44xx_mcbsp_hwmod_class,
1659 .clkdm_name = "abe_clkdm",
1660 .main_clk = "func_mcbsp1_gfclk",
1661 .prcm = {
1662 .omap4 = {
1663 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
1664 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
1665 .modulemode = MODULEMODE_SWCTRL,
1668 .opt_clks = mcbsp1_opt_clks,
1669 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
1672 /* mcbsp2 */
1673 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1674 { .role = "pad_fck", .clk = "pad_clks_ck" },
1675 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
1678 static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1679 .name = "mcbsp2",
1680 .class = &omap44xx_mcbsp_hwmod_class,
1681 .clkdm_name = "abe_clkdm",
1682 .main_clk = "func_mcbsp2_gfclk",
1683 .prcm = {
1684 .omap4 = {
1685 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
1686 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
1687 .modulemode = MODULEMODE_SWCTRL,
1690 .opt_clks = mcbsp2_opt_clks,
1691 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
1694 /* mcbsp3 */
1695 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1696 { .role = "pad_fck", .clk = "pad_clks_ck" },
1697 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
1700 static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1701 .name = "mcbsp3",
1702 .class = &omap44xx_mcbsp_hwmod_class,
1703 .clkdm_name = "abe_clkdm",
1704 .main_clk = "func_mcbsp3_gfclk",
1705 .prcm = {
1706 .omap4 = {
1707 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
1708 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
1709 .modulemode = MODULEMODE_SWCTRL,
1712 .opt_clks = mcbsp3_opt_clks,
1713 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
1716 /* mcbsp4 */
1717 static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1718 { .role = "pad_fck", .clk = "pad_clks_ck" },
1719 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
1722 static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1723 .name = "mcbsp4",
1724 .class = &omap44xx_mcbsp_hwmod_class,
1725 .clkdm_name = "l4_per_clkdm",
1726 .main_clk = "per_mcbsp4_gfclk",
1727 .prcm = {
1728 .omap4 = {
1729 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
1730 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
1731 .modulemode = MODULEMODE_SWCTRL,
1734 .opt_clks = mcbsp4_opt_clks,
1735 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
1739 * 'mcpdm' class
1740 * multi channel pdm controller (proprietary interface with phoenix power
1741 * ic)
1744 static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1745 .rev_offs = 0x0000,
1746 .sysc_offs = 0x0010,
1747 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1748 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1749 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1750 SIDLE_SMART_WKUP),
1751 .sysc_fields = &omap_hwmod_sysc_type2,
1754 static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1755 .name = "mcpdm",
1756 .sysc = &omap44xx_mcpdm_sysc,
1759 /* mcpdm */
1760 static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1761 .name = "mcpdm",
1762 .class = &omap44xx_mcpdm_hwmod_class,
1763 .clkdm_name = "abe_clkdm",
1765 * It's suspected that the McPDM requires an off-chip main
1766 * functional clock, controlled via I2C. This IP block is
1767 * currently reset very early during boot, before I2C is
1768 * available, so it doesn't seem that we have any choice in
1769 * the kernel other than to avoid resetting it.
1771 * Also, McPDM needs to be configured to NO_IDLE mode when it
1772 * is in used otherwise vital clocks will be gated which
1773 * results 'slow motion' audio playback.
1775 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1776 .main_clk = "pad_clks_ck",
1777 .prcm = {
1778 .omap4 = {
1779 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
1780 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
1781 .modulemode = MODULEMODE_SWCTRL,
1787 * 'mcspi' class
1788 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1789 * bus
1792 static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1793 .rev_offs = 0x0000,
1794 .sysc_offs = 0x0010,
1795 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1796 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1797 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1798 SIDLE_SMART_WKUP),
1799 .sysc_fields = &omap_hwmod_sysc_type2,
1802 static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1803 .name = "mcspi",
1804 .sysc = &omap44xx_mcspi_sysc,
1805 .rev = OMAP4_MCSPI_REV,
1808 /* mcspi1 */
1809 static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1810 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1811 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1812 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1813 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1814 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1815 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1816 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1817 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
1818 { .dma_req = -1 }
1821 /* mcspi1 dev_attr */
1822 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1823 .num_chipselect = 4,
1826 static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1827 .name = "mcspi1",
1828 .class = &omap44xx_mcspi_hwmod_class,
1829 .clkdm_name = "l4_per_clkdm",
1830 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
1831 .main_clk = "func_48m_fclk",
1832 .prcm = {
1833 .omap4 = {
1834 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1835 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1836 .modulemode = MODULEMODE_SWCTRL,
1839 .dev_attr = &mcspi1_dev_attr,
1842 /* mcspi2 */
1843 static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1844 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1845 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1846 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1847 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
1848 { .dma_req = -1 }
1851 /* mcspi2 dev_attr */
1852 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1853 .num_chipselect = 2,
1856 static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1857 .name = "mcspi2",
1858 .class = &omap44xx_mcspi_hwmod_class,
1859 .clkdm_name = "l4_per_clkdm",
1860 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
1861 .main_clk = "func_48m_fclk",
1862 .prcm = {
1863 .omap4 = {
1864 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1865 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1866 .modulemode = MODULEMODE_SWCTRL,
1869 .dev_attr = &mcspi2_dev_attr,
1872 /* mcspi3 */
1873 static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1874 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1875 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1876 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1877 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
1878 { .dma_req = -1 }
1881 /* mcspi3 dev_attr */
1882 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1883 .num_chipselect = 2,
1886 static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1887 .name = "mcspi3",
1888 .class = &omap44xx_mcspi_hwmod_class,
1889 .clkdm_name = "l4_per_clkdm",
1890 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
1891 .main_clk = "func_48m_fclk",
1892 .prcm = {
1893 .omap4 = {
1894 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1895 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1896 .modulemode = MODULEMODE_SWCTRL,
1899 .dev_attr = &mcspi3_dev_attr,
1902 /* mcspi4 */
1903 static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1904 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1905 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
1906 { .dma_req = -1 }
1909 /* mcspi4 dev_attr */
1910 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1911 .num_chipselect = 1,
1914 static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1915 .name = "mcspi4",
1916 .class = &omap44xx_mcspi_hwmod_class,
1917 .clkdm_name = "l4_per_clkdm",
1918 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
1919 .main_clk = "func_48m_fclk",
1920 .prcm = {
1921 .omap4 = {
1922 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1923 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1924 .modulemode = MODULEMODE_SWCTRL,
1927 .dev_attr = &mcspi4_dev_attr,
1931 * 'mmc' class
1932 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1935 static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1936 .rev_offs = 0x0000,
1937 .sysc_offs = 0x0010,
1938 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1939 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1940 SYSC_HAS_SOFTRESET),
1941 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1942 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1943 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1944 .sysc_fields = &omap_hwmod_sysc_type2,
1947 static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1948 .name = "mmc",
1949 .sysc = &omap44xx_mmc_sysc,
1952 /* mmc1 */
1953 static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
1954 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
1955 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
1956 { .dma_req = -1 }
1959 /* mmc1 dev_attr */
1960 static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
1961 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1964 static struct omap_hwmod omap44xx_mmc1_hwmod = {
1965 .name = "mmc1",
1966 .class = &omap44xx_mmc_hwmod_class,
1967 .clkdm_name = "l3_init_clkdm",
1968 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
1969 .main_clk = "hsmmc1_fclk",
1970 .prcm = {
1971 .omap4 = {
1972 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1973 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1974 .modulemode = MODULEMODE_SWCTRL,
1977 .dev_attr = &mmc1_dev_attr,
1980 /* mmc2 */
1981 static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
1982 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
1983 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
1984 { .dma_req = -1 }
1987 static struct omap_hwmod omap44xx_mmc2_hwmod = {
1988 .name = "mmc2",
1989 .class = &omap44xx_mmc_hwmod_class,
1990 .clkdm_name = "l3_init_clkdm",
1991 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
1992 .main_clk = "hsmmc2_fclk",
1993 .prcm = {
1994 .omap4 = {
1995 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1996 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1997 .modulemode = MODULEMODE_SWCTRL,
2002 /* mmc3 */
2003 static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2004 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2005 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
2006 { .dma_req = -1 }
2009 static struct omap_hwmod omap44xx_mmc3_hwmod = {
2010 .name = "mmc3",
2011 .class = &omap44xx_mmc_hwmod_class,
2012 .clkdm_name = "l4_per_clkdm",
2013 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
2014 .main_clk = "func_48m_fclk",
2015 .prcm = {
2016 .omap4 = {
2017 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
2018 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
2019 .modulemode = MODULEMODE_SWCTRL,
2024 /* mmc4 */
2025 static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2026 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2027 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
2028 { .dma_req = -1 }
2031 static struct omap_hwmod omap44xx_mmc4_hwmod = {
2032 .name = "mmc4",
2033 .class = &omap44xx_mmc_hwmod_class,
2034 .clkdm_name = "l4_per_clkdm",
2035 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
2036 .main_clk = "func_48m_fclk",
2037 .prcm = {
2038 .omap4 = {
2039 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
2040 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
2041 .modulemode = MODULEMODE_SWCTRL,
2046 /* mmc5 */
2047 static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2048 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2049 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
2050 { .dma_req = -1 }
2053 static struct omap_hwmod omap44xx_mmc5_hwmod = {
2054 .name = "mmc5",
2055 .class = &omap44xx_mmc_hwmod_class,
2056 .clkdm_name = "l4_per_clkdm",
2057 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
2058 .main_clk = "func_48m_fclk",
2059 .prcm = {
2060 .omap4 = {
2061 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
2062 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
2063 .modulemode = MODULEMODE_SWCTRL,
2069 * 'mmu' class
2070 * The memory management unit performs virtual to physical address translation
2071 * for its requestors.
2074 static struct omap_hwmod_class_sysconfig mmu_sysc = {
2075 .rev_offs = 0x000,
2076 .sysc_offs = 0x010,
2077 .syss_offs = 0x014,
2078 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2079 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2080 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2081 .sysc_fields = &omap_hwmod_sysc_type1,
2084 static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2085 .name = "mmu",
2086 .sysc = &mmu_sysc,
2089 /* mmu ipu */
2091 static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
2092 .nr_tlb_entries = 32,
2095 static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
2096 static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2097 { .name = "mmu_cache", .rst_shift = 2 },
2100 static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2102 .pa_start = 0x55082000,
2103 .pa_end = 0x550820ff,
2104 .flags = ADDR_TYPE_RT,
2109 /* l3_main_2 -> mmu_ipu */
2110 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2111 .master = &omap44xx_l3_main_2_hwmod,
2112 .slave = &omap44xx_mmu_ipu_hwmod,
2113 .clk = "l3_div_ck",
2114 .addr = omap44xx_mmu_ipu_addrs,
2115 .user = OCP_USER_MPU | OCP_USER_SDMA,
2118 static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2119 .name = "mmu_ipu",
2120 .class = &omap44xx_mmu_hwmod_class,
2121 .clkdm_name = "ducati_clkdm",
2122 .rst_lines = omap44xx_mmu_ipu_resets,
2123 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2124 .main_clk = "ducati_clk_mux_ck",
2125 .prcm = {
2126 .omap4 = {
2127 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2128 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2129 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2130 .modulemode = MODULEMODE_HWCTRL,
2133 .dev_attr = &mmu_ipu_dev_attr,
2136 /* mmu dsp */
2138 static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
2139 .nr_tlb_entries = 32,
2142 static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
2143 static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2144 { .name = "mmu_cache", .rst_shift = 1 },
2147 static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2149 .pa_start = 0x4a066000,
2150 .pa_end = 0x4a0660ff,
2151 .flags = ADDR_TYPE_RT,
2156 /* l4_cfg -> dsp */
2157 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2158 .master = &omap44xx_l4_cfg_hwmod,
2159 .slave = &omap44xx_mmu_dsp_hwmod,
2160 .clk = "l4_div_ck",
2161 .addr = omap44xx_mmu_dsp_addrs,
2162 .user = OCP_USER_MPU | OCP_USER_SDMA,
2165 static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2166 .name = "mmu_dsp",
2167 .class = &omap44xx_mmu_hwmod_class,
2168 .clkdm_name = "tesla_clkdm",
2169 .rst_lines = omap44xx_mmu_dsp_resets,
2170 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2171 .main_clk = "dpll_iva_m4x2_ck",
2172 .prcm = {
2173 .omap4 = {
2174 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2175 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2176 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2177 .modulemode = MODULEMODE_HWCTRL,
2180 .dev_attr = &mmu_dsp_dev_attr,
2184 * 'mpu' class
2185 * mpu sub-system
2188 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
2189 .name = "mpu",
2192 /* mpu */
2193 static struct omap_hwmod omap44xx_mpu_hwmod = {
2194 .name = "mpu",
2195 .class = &omap44xx_mpu_hwmod_class,
2196 .clkdm_name = "mpuss_clkdm",
2197 .flags = HWMOD_INIT_NO_IDLE,
2198 .main_clk = "dpll_mpu_m2_ck",
2199 .prcm = {
2200 .omap4 = {
2201 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
2202 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
2208 * 'ocmc_ram' class
2209 * top-level core on-chip ram
2212 static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2213 .name = "ocmc_ram",
2216 /* ocmc_ram */
2217 static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2218 .name = "ocmc_ram",
2219 .class = &omap44xx_ocmc_ram_hwmod_class,
2220 .clkdm_name = "l3_2_clkdm",
2221 .prcm = {
2222 .omap4 = {
2223 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2224 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2230 * 'ocp2scp' class
2231 * bridge to transform ocp interface protocol to scp (serial control port)
2232 * protocol
2235 static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2236 .rev_offs = 0x0000,
2237 .sysc_offs = 0x0010,
2238 .syss_offs = 0x0014,
2239 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2240 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2241 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2242 .sysc_fields = &omap_hwmod_sysc_type1,
2245 static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2246 .name = "ocp2scp",
2247 .sysc = &omap44xx_ocp2scp_sysc,
2250 /* ocp2scp_usb_phy */
2251 static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2252 .name = "ocp2scp_usb_phy",
2253 .class = &omap44xx_ocp2scp_hwmod_class,
2254 .clkdm_name = "l3_init_clkdm",
2256 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2257 * block as an "optional clock," and normally should never be
2258 * specified as the main_clk for an OMAP IP block. However it
2259 * turns out that this clock is actually the main clock for
2260 * the ocp2scp_usb_phy IP block:
2261 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2262 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2263 * to be the best workaround.
2265 .main_clk = "ocp2scp_usb_phy_phy_48m",
2266 .prcm = {
2267 .omap4 = {
2268 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2269 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2270 .modulemode = MODULEMODE_HWCTRL,
2276 * 'prcm' class
2277 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2278 * + clock manager 1 (in always on power domain) + local prm in mpu
2281 static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2282 .name = "prcm",
2285 /* prcm_mpu */
2286 static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2287 .name = "prcm_mpu",
2288 .class = &omap44xx_prcm_hwmod_class,
2289 .clkdm_name = "l4_wkup_clkdm",
2290 .flags = HWMOD_NO_IDLEST,
2291 .prcm = {
2292 .omap4 = {
2293 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2298 /* cm_core_aon */
2299 static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2300 .name = "cm_core_aon",
2301 .class = &omap44xx_prcm_hwmod_class,
2302 .flags = HWMOD_NO_IDLEST,
2303 .prcm = {
2304 .omap4 = {
2305 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2310 /* cm_core */
2311 static struct omap_hwmod omap44xx_cm_core_hwmod = {
2312 .name = "cm_core",
2313 .class = &omap44xx_prcm_hwmod_class,
2314 .flags = HWMOD_NO_IDLEST,
2315 .prcm = {
2316 .omap4 = {
2317 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2322 /* prm */
2323 static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2324 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2325 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2328 static struct omap_hwmod omap44xx_prm_hwmod = {
2329 .name = "prm",
2330 .class = &omap44xx_prcm_hwmod_class,
2331 .rst_lines = omap44xx_prm_resets,
2332 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2336 * 'scrm' class
2337 * system clock and reset manager
2340 static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2341 .name = "scrm",
2344 /* scrm */
2345 static struct omap_hwmod omap44xx_scrm_hwmod = {
2346 .name = "scrm",
2347 .class = &omap44xx_scrm_hwmod_class,
2348 .clkdm_name = "l4_wkup_clkdm",
2349 .prcm = {
2350 .omap4 = {
2351 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2357 * 'sl2if' class
2358 * shared level 2 memory interface
2361 static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2362 .name = "sl2if",
2365 /* sl2if */
2366 static struct omap_hwmod omap44xx_sl2if_hwmod = {
2367 .name = "sl2if",
2368 .class = &omap44xx_sl2if_hwmod_class,
2369 .clkdm_name = "ivahd_clkdm",
2370 .prcm = {
2371 .omap4 = {
2372 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2373 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2374 .modulemode = MODULEMODE_HWCTRL,
2380 * 'slimbus' class
2381 * bidirectional, multi-drop, multi-channel two-line serial interface between
2382 * the device and external components
2385 static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2386 .rev_offs = 0x0000,
2387 .sysc_offs = 0x0010,
2388 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2389 SYSC_HAS_SOFTRESET),
2390 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2391 SIDLE_SMART_WKUP),
2392 .sysc_fields = &omap_hwmod_sysc_type2,
2395 static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2396 .name = "slimbus",
2397 .sysc = &omap44xx_slimbus_sysc,
2400 /* slimbus1 */
2401 static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2402 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2403 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2404 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2405 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2408 static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2409 .name = "slimbus1",
2410 .class = &omap44xx_slimbus_hwmod_class,
2411 .clkdm_name = "abe_clkdm",
2412 .prcm = {
2413 .omap4 = {
2414 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2415 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2416 .modulemode = MODULEMODE_SWCTRL,
2419 .opt_clks = slimbus1_opt_clks,
2420 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2423 /* slimbus2 */
2424 static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2425 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2426 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2427 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2430 static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2431 .name = "slimbus2",
2432 .class = &omap44xx_slimbus_hwmod_class,
2433 .clkdm_name = "l4_per_clkdm",
2434 .prcm = {
2435 .omap4 = {
2436 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2437 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2438 .modulemode = MODULEMODE_SWCTRL,
2441 .opt_clks = slimbus2_opt_clks,
2442 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2446 * 'smartreflex' class
2447 * smartreflex module (monitor silicon performance and outputs a measure of
2448 * performance error)
2451 /* The IP is not compliant to type1 / type2 scheme */
2452 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2453 .sidle_shift = 24,
2454 .enwkup_shift = 26,
2457 static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2458 .sysc_offs = 0x0038,
2459 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2460 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2461 SIDLE_SMART_WKUP),
2462 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2465 static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
2466 .name = "smartreflex",
2467 .sysc = &omap44xx_smartreflex_sysc,
2468 .rev = 2,
2471 /* smartreflex_core */
2472 static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2473 .sensor_voltdm_name = "core",
2476 static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2477 .name = "smartreflex_core",
2478 .class = &omap44xx_smartreflex_hwmod_class,
2479 .clkdm_name = "l4_ao_clkdm",
2481 .main_clk = "smartreflex_core_fck",
2482 .prcm = {
2483 .omap4 = {
2484 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
2485 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
2486 .modulemode = MODULEMODE_SWCTRL,
2489 .dev_attr = &smartreflex_core_dev_attr,
2492 /* smartreflex_iva */
2493 static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2494 .sensor_voltdm_name = "iva",
2497 static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2498 .name = "smartreflex_iva",
2499 .class = &omap44xx_smartreflex_hwmod_class,
2500 .clkdm_name = "l4_ao_clkdm",
2501 .main_clk = "smartreflex_iva_fck",
2502 .prcm = {
2503 .omap4 = {
2504 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
2505 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
2506 .modulemode = MODULEMODE_SWCTRL,
2509 .dev_attr = &smartreflex_iva_dev_attr,
2512 /* smartreflex_mpu */
2513 static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2514 .sensor_voltdm_name = "mpu",
2517 static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2518 .name = "smartreflex_mpu",
2519 .class = &omap44xx_smartreflex_hwmod_class,
2520 .clkdm_name = "l4_ao_clkdm",
2521 .main_clk = "smartreflex_mpu_fck",
2522 .prcm = {
2523 .omap4 = {
2524 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
2525 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
2526 .modulemode = MODULEMODE_SWCTRL,
2529 .dev_attr = &smartreflex_mpu_dev_attr,
2533 * 'spinlock' class
2534 * spinlock provides hardware assistance for synchronizing the processes
2535 * running on multiple processors
2538 static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2539 .rev_offs = 0x0000,
2540 .sysc_offs = 0x0010,
2541 .syss_offs = 0x0014,
2542 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2543 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2544 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2545 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2546 .sysc_fields = &omap_hwmod_sysc_type1,
2549 static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2550 .name = "spinlock",
2551 .sysc = &omap44xx_spinlock_sysc,
2554 /* spinlock */
2555 static struct omap_hwmod omap44xx_spinlock_hwmod = {
2556 .name = "spinlock",
2557 .class = &omap44xx_spinlock_hwmod_class,
2558 .clkdm_name = "l4_cfg_clkdm",
2559 .prcm = {
2560 .omap4 = {
2561 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
2562 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
2568 * 'timer' class
2569 * general purpose timer module with accurate 1ms tick
2570 * This class contains several variants: ['timer_1ms', 'timer']
2573 static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2574 .rev_offs = 0x0000,
2575 .sysc_offs = 0x0010,
2576 .syss_offs = 0x0014,
2577 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2578 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2579 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2580 SYSS_HAS_RESET_STATUS),
2581 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2582 .clockact = CLOCKACT_TEST_ICLK,
2583 .sysc_fields = &omap_hwmod_sysc_type1,
2586 static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2587 .name = "timer",
2588 .sysc = &omap44xx_timer_1ms_sysc,
2591 static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2592 .rev_offs = 0x0000,
2593 .sysc_offs = 0x0010,
2594 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2595 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2596 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2597 SIDLE_SMART_WKUP),
2598 .sysc_fields = &omap_hwmod_sysc_type2,
2601 static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2602 .name = "timer",
2603 .sysc = &omap44xx_timer_sysc,
2606 /* always-on timers dev attribute */
2607 static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2608 .timer_capability = OMAP_TIMER_ALWON,
2611 /* pwm timers dev attribute */
2612 static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2613 .timer_capability = OMAP_TIMER_HAS_PWM,
2616 /* timers with DSP interrupt dev attribute */
2617 static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2618 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2621 /* pwm timers with DSP interrupt dev attribute */
2622 static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2623 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2626 /* timer1 */
2627 static struct omap_hwmod omap44xx_timer1_hwmod = {
2628 .name = "timer1",
2629 .class = &omap44xx_timer_1ms_hwmod_class,
2630 .clkdm_name = "l4_wkup_clkdm",
2631 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2632 .main_clk = "dmt1_clk_mux",
2633 .prcm = {
2634 .omap4 = {
2635 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
2636 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
2637 .modulemode = MODULEMODE_SWCTRL,
2640 .dev_attr = &capability_alwon_dev_attr,
2643 /* timer2 */
2644 static struct omap_hwmod omap44xx_timer2_hwmod = {
2645 .name = "timer2",
2646 .class = &omap44xx_timer_1ms_hwmod_class,
2647 .clkdm_name = "l4_per_clkdm",
2648 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2649 .main_clk = "cm2_dm2_mux",
2650 .prcm = {
2651 .omap4 = {
2652 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
2653 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
2654 .modulemode = MODULEMODE_SWCTRL,
2659 /* timer3 */
2660 static struct omap_hwmod omap44xx_timer3_hwmod = {
2661 .name = "timer3",
2662 .class = &omap44xx_timer_hwmod_class,
2663 .clkdm_name = "l4_per_clkdm",
2664 .main_clk = "cm2_dm3_mux",
2665 .prcm = {
2666 .omap4 = {
2667 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
2668 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
2669 .modulemode = MODULEMODE_SWCTRL,
2674 /* timer4 */
2675 static struct omap_hwmod omap44xx_timer4_hwmod = {
2676 .name = "timer4",
2677 .class = &omap44xx_timer_hwmod_class,
2678 .clkdm_name = "l4_per_clkdm",
2679 .main_clk = "cm2_dm4_mux",
2680 .prcm = {
2681 .omap4 = {
2682 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
2683 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
2684 .modulemode = MODULEMODE_SWCTRL,
2689 /* timer5 */
2690 static struct omap_hwmod omap44xx_timer5_hwmod = {
2691 .name = "timer5",
2692 .class = &omap44xx_timer_hwmod_class,
2693 .clkdm_name = "abe_clkdm",
2694 .main_clk = "timer5_sync_mux",
2695 .prcm = {
2696 .omap4 = {
2697 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
2698 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
2699 .modulemode = MODULEMODE_SWCTRL,
2702 .dev_attr = &capability_dsp_dev_attr,
2705 /* timer6 */
2706 static struct omap_hwmod omap44xx_timer6_hwmod = {
2707 .name = "timer6",
2708 .class = &omap44xx_timer_hwmod_class,
2709 .clkdm_name = "abe_clkdm",
2710 .main_clk = "timer6_sync_mux",
2711 .prcm = {
2712 .omap4 = {
2713 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
2714 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
2715 .modulemode = MODULEMODE_SWCTRL,
2718 .dev_attr = &capability_dsp_dev_attr,
2721 /* timer7 */
2722 static struct omap_hwmod omap44xx_timer7_hwmod = {
2723 .name = "timer7",
2724 .class = &omap44xx_timer_hwmod_class,
2725 .clkdm_name = "abe_clkdm",
2726 .main_clk = "timer7_sync_mux",
2727 .prcm = {
2728 .omap4 = {
2729 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
2730 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
2731 .modulemode = MODULEMODE_SWCTRL,
2734 .dev_attr = &capability_dsp_dev_attr,
2737 /* timer8 */
2738 static struct omap_hwmod omap44xx_timer8_hwmod = {
2739 .name = "timer8",
2740 .class = &omap44xx_timer_hwmod_class,
2741 .clkdm_name = "abe_clkdm",
2742 .main_clk = "timer8_sync_mux",
2743 .prcm = {
2744 .omap4 = {
2745 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
2746 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
2747 .modulemode = MODULEMODE_SWCTRL,
2750 .dev_attr = &capability_dsp_pwm_dev_attr,
2753 /* timer9 */
2754 static struct omap_hwmod omap44xx_timer9_hwmod = {
2755 .name = "timer9",
2756 .class = &omap44xx_timer_hwmod_class,
2757 .clkdm_name = "l4_per_clkdm",
2758 .main_clk = "cm2_dm9_mux",
2759 .prcm = {
2760 .omap4 = {
2761 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
2762 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
2763 .modulemode = MODULEMODE_SWCTRL,
2766 .dev_attr = &capability_pwm_dev_attr,
2769 /* timer10 */
2770 static struct omap_hwmod omap44xx_timer10_hwmod = {
2771 .name = "timer10",
2772 .class = &omap44xx_timer_1ms_hwmod_class,
2773 .clkdm_name = "l4_per_clkdm",
2774 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2775 .main_clk = "cm2_dm10_mux",
2776 .prcm = {
2777 .omap4 = {
2778 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
2779 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
2780 .modulemode = MODULEMODE_SWCTRL,
2783 .dev_attr = &capability_pwm_dev_attr,
2786 /* timer11 */
2787 static struct omap_hwmod omap44xx_timer11_hwmod = {
2788 .name = "timer11",
2789 .class = &omap44xx_timer_hwmod_class,
2790 .clkdm_name = "l4_per_clkdm",
2791 .main_clk = "cm2_dm11_mux",
2792 .prcm = {
2793 .omap4 = {
2794 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
2795 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
2796 .modulemode = MODULEMODE_SWCTRL,
2799 .dev_attr = &capability_pwm_dev_attr,
2803 * 'uart' class
2804 * universal asynchronous receiver/transmitter (uart)
2807 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2808 .rev_offs = 0x0050,
2809 .sysc_offs = 0x0054,
2810 .syss_offs = 0x0058,
2811 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2812 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2813 SYSS_HAS_RESET_STATUS),
2814 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2815 SIDLE_SMART_WKUP),
2816 .sysc_fields = &omap_hwmod_sysc_type1,
2819 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
2820 .name = "uart",
2821 .sysc = &omap44xx_uart_sysc,
2824 /* uart1 */
2825 static struct omap_hwmod omap44xx_uart1_hwmod = {
2826 .name = "uart1",
2827 .class = &omap44xx_uart_hwmod_class,
2828 .clkdm_name = "l4_per_clkdm",
2829 .flags = HWMOD_SWSUP_SIDLE_ACT,
2830 .main_clk = "func_48m_fclk",
2831 .prcm = {
2832 .omap4 = {
2833 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
2834 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
2835 .modulemode = MODULEMODE_SWCTRL,
2840 /* uart2 */
2841 static struct omap_hwmod omap44xx_uart2_hwmod = {
2842 .name = "uart2",
2843 .class = &omap44xx_uart_hwmod_class,
2844 .clkdm_name = "l4_per_clkdm",
2845 .flags = HWMOD_SWSUP_SIDLE_ACT,
2846 .main_clk = "func_48m_fclk",
2847 .prcm = {
2848 .omap4 = {
2849 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
2850 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
2851 .modulemode = MODULEMODE_SWCTRL,
2856 /* uart3 */
2857 static struct omap_hwmod omap44xx_uart3_hwmod = {
2858 .name = "uart3",
2859 .class = &omap44xx_uart_hwmod_class,
2860 .clkdm_name = "l4_per_clkdm",
2861 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
2862 .main_clk = "func_48m_fclk",
2863 .prcm = {
2864 .omap4 = {
2865 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
2866 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
2867 .modulemode = MODULEMODE_SWCTRL,
2872 /* uart4 */
2873 static struct omap_hwmod omap44xx_uart4_hwmod = {
2874 .name = "uart4",
2875 .class = &omap44xx_uart_hwmod_class,
2876 .clkdm_name = "l4_per_clkdm",
2877 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
2878 .main_clk = "func_48m_fclk",
2879 .prcm = {
2880 .omap4 = {
2881 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
2882 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
2883 .modulemode = MODULEMODE_SWCTRL,
2889 * 'usb_host_fs' class
2890 * full-speed usb host controller
2893 /* The IP is not compliant to type1 / type2 scheme */
2894 static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2895 .midle_shift = 4,
2896 .sidle_shift = 2,
2897 .srst_shift = 1,
2900 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2901 .rev_offs = 0x0000,
2902 .sysc_offs = 0x0210,
2903 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2904 SYSC_HAS_SOFTRESET),
2905 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2906 SIDLE_SMART_WKUP),
2907 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2910 static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2911 .name = "usb_host_fs",
2912 .sysc = &omap44xx_usb_host_fs_sysc,
2915 /* usb_host_fs */
2916 static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2917 .name = "usb_host_fs",
2918 .class = &omap44xx_usb_host_fs_hwmod_class,
2919 .clkdm_name = "l3_init_clkdm",
2920 .main_clk = "usb_host_fs_fck",
2921 .prcm = {
2922 .omap4 = {
2923 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2924 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2925 .modulemode = MODULEMODE_SWCTRL,
2931 * 'usb_host_hs' class
2932 * high-speed multi-port usb host controller
2935 static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2936 .rev_offs = 0x0000,
2937 .sysc_offs = 0x0010,
2938 .syss_offs = 0x0014,
2939 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2940 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
2941 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2942 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2943 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2944 .sysc_fields = &omap_hwmod_sysc_type2,
2947 static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
2948 .name = "usb_host_hs",
2949 .sysc = &omap44xx_usb_host_hs_sysc,
2952 /* usb_host_hs */
2953 static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2954 .name = "usb_host_hs",
2955 .class = &omap44xx_usb_host_hs_hwmod_class,
2956 .clkdm_name = "l3_init_clkdm",
2957 .main_clk = "usb_host_hs_fck",
2958 .prcm = {
2959 .omap4 = {
2960 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2961 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2962 .modulemode = MODULEMODE_SWCTRL,
2967 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2968 * id: i660
2970 * Description:
2971 * In the following configuration :
2972 * - USBHOST module is set to smart-idle mode
2973 * - PRCM asserts idle_req to the USBHOST module ( This typically
2974 * happens when the system is going to a low power mode : all ports
2975 * have been suspended, the master part of the USBHOST module has
2976 * entered the standby state, and SW has cut the functional clocks)
2977 * - an USBHOST interrupt occurs before the module is able to answer
2978 * idle_ack, typically a remote wakeup IRQ.
2979 * Then the USB HOST module will enter a deadlock situation where it
2980 * is no more accessible nor functional.
2982 * Workaround:
2983 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2987 * Errata: USB host EHCI may stall when entering smart-standby mode
2988 * Id: i571
2990 * Description:
2991 * When the USBHOST module is set to smart-standby mode, and when it is
2992 * ready to enter the standby state (i.e. all ports are suspended and
2993 * all attached devices are in suspend mode), then it can wrongly assert
2994 * the Mstandby signal too early while there are still some residual OCP
2995 * transactions ongoing. If this condition occurs, the internal state
2996 * machine may go to an undefined state and the USB link may be stuck
2997 * upon the next resume.
2999 * Workaround:
3000 * Don't use smart standby; use only force standby,
3001 * hence HWMOD_SWSUP_MSTANDBY
3004 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
3008 * 'usb_otg_hs' class
3009 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3012 static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3013 .rev_offs = 0x0400,
3014 .sysc_offs = 0x0404,
3015 .syss_offs = 0x0408,
3016 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3017 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3018 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3019 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3020 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3021 MSTANDBY_SMART),
3022 .sysc_fields = &omap_hwmod_sysc_type1,
3025 static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3026 .name = "usb_otg_hs",
3027 .sysc = &omap44xx_usb_otg_hs_sysc,
3030 /* usb_otg_hs */
3031 static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3032 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3035 static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3036 .name = "usb_otg_hs",
3037 .class = &omap44xx_usb_otg_hs_hwmod_class,
3038 .clkdm_name = "l3_init_clkdm",
3039 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
3040 .main_clk = "usb_otg_hs_ick",
3041 .prcm = {
3042 .omap4 = {
3043 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3044 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3045 .modulemode = MODULEMODE_HWCTRL,
3048 .opt_clks = usb_otg_hs_opt_clks,
3049 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3053 * 'usb_tll_hs' class
3054 * usb_tll_hs module is the adapter on the usb_host_hs ports
3057 static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3058 .rev_offs = 0x0000,
3059 .sysc_offs = 0x0010,
3060 .syss_offs = 0x0014,
3061 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3062 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3063 SYSC_HAS_AUTOIDLE),
3064 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3065 .sysc_fields = &omap_hwmod_sysc_type1,
3068 static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
3069 .name = "usb_tll_hs",
3070 .sysc = &omap44xx_usb_tll_hs_sysc,
3073 static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3074 .name = "usb_tll_hs",
3075 .class = &omap44xx_usb_tll_hs_hwmod_class,
3076 .clkdm_name = "l3_init_clkdm",
3077 .main_clk = "usb_tll_hs_ick",
3078 .prcm = {
3079 .omap4 = {
3080 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3081 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3082 .modulemode = MODULEMODE_HWCTRL,
3088 * 'wd_timer' class
3089 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3090 * overflow condition
3093 static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3094 .rev_offs = 0x0000,
3095 .sysc_offs = 0x0010,
3096 .syss_offs = 0x0014,
3097 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3098 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3099 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3100 SIDLE_SMART_WKUP),
3101 .sysc_fields = &omap_hwmod_sysc_type1,
3104 static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3105 .name = "wd_timer",
3106 .sysc = &omap44xx_wd_timer_sysc,
3107 .pre_shutdown = &omap2_wd_timer_disable,
3108 .reset = &omap2_wd_timer_reset,
3111 /* wd_timer2 */
3112 static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3113 .name = "wd_timer2",
3114 .class = &omap44xx_wd_timer_hwmod_class,
3115 .clkdm_name = "l4_wkup_clkdm",
3116 .main_clk = "sys_32k_ck",
3117 .prcm = {
3118 .omap4 = {
3119 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3120 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3121 .modulemode = MODULEMODE_SWCTRL,
3126 /* wd_timer3 */
3127 static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3128 .name = "wd_timer3",
3129 .class = &omap44xx_wd_timer_hwmod_class,
3130 .clkdm_name = "abe_clkdm",
3131 .main_clk = "sys_32k_ck",
3132 .prcm = {
3133 .omap4 = {
3134 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3135 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3136 .modulemode = MODULEMODE_SWCTRL,
3143 * interfaces
3146 /* l3_main_1 -> dmm */
3147 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3148 .master = &omap44xx_l3_main_1_hwmod,
3149 .slave = &omap44xx_dmm_hwmod,
3150 .clk = "l3_div_ck",
3151 .user = OCP_USER_SDMA,
3154 /* mpu -> dmm */
3155 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3156 .master = &omap44xx_mpu_hwmod,
3157 .slave = &omap44xx_dmm_hwmod,
3158 .clk = "l3_div_ck",
3159 .user = OCP_USER_MPU,
3162 /* iva -> l3_instr */
3163 static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3164 .master = &omap44xx_iva_hwmod,
3165 .slave = &omap44xx_l3_instr_hwmod,
3166 .clk = "l3_div_ck",
3167 .user = OCP_USER_MPU | OCP_USER_SDMA,
3170 /* l3_main_3 -> l3_instr */
3171 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3172 .master = &omap44xx_l3_main_3_hwmod,
3173 .slave = &omap44xx_l3_instr_hwmod,
3174 .clk = "l3_div_ck",
3175 .user = OCP_USER_MPU | OCP_USER_SDMA,
3178 /* ocp_wp_noc -> l3_instr */
3179 static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3180 .master = &omap44xx_ocp_wp_noc_hwmod,
3181 .slave = &omap44xx_l3_instr_hwmod,
3182 .clk = "l3_div_ck",
3183 .user = OCP_USER_MPU | OCP_USER_SDMA,
3186 /* dsp -> l3_main_1 */
3187 static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3188 .master = &omap44xx_dsp_hwmod,
3189 .slave = &omap44xx_l3_main_1_hwmod,
3190 .clk = "l3_div_ck",
3191 .user = OCP_USER_MPU | OCP_USER_SDMA,
3194 /* dss -> l3_main_1 */
3195 static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3196 .master = &omap44xx_dss_hwmod,
3197 .slave = &omap44xx_l3_main_1_hwmod,
3198 .clk = "l3_div_ck",
3199 .user = OCP_USER_MPU | OCP_USER_SDMA,
3202 /* l3_main_2 -> l3_main_1 */
3203 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3204 .master = &omap44xx_l3_main_2_hwmod,
3205 .slave = &omap44xx_l3_main_1_hwmod,
3206 .clk = "l3_div_ck",
3207 .user = OCP_USER_MPU | OCP_USER_SDMA,
3210 /* l4_cfg -> l3_main_1 */
3211 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3212 .master = &omap44xx_l4_cfg_hwmod,
3213 .slave = &omap44xx_l3_main_1_hwmod,
3214 .clk = "l4_div_ck",
3215 .user = OCP_USER_MPU | OCP_USER_SDMA,
3218 /* mmc1 -> l3_main_1 */
3219 static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3220 .master = &omap44xx_mmc1_hwmod,
3221 .slave = &omap44xx_l3_main_1_hwmod,
3222 .clk = "l3_div_ck",
3223 .user = OCP_USER_MPU | OCP_USER_SDMA,
3226 /* mmc2 -> l3_main_1 */
3227 static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3228 .master = &omap44xx_mmc2_hwmod,
3229 .slave = &omap44xx_l3_main_1_hwmod,
3230 .clk = "l3_div_ck",
3231 .user = OCP_USER_MPU | OCP_USER_SDMA,
3234 /* mpu -> l3_main_1 */
3235 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3236 .master = &omap44xx_mpu_hwmod,
3237 .slave = &omap44xx_l3_main_1_hwmod,
3238 .clk = "l3_div_ck",
3239 .user = OCP_USER_MPU,
3242 /* debugss -> l3_main_2 */
3243 static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3244 .master = &omap44xx_debugss_hwmod,
3245 .slave = &omap44xx_l3_main_2_hwmod,
3246 .clk = "dbgclk_mux_ck",
3247 .user = OCP_USER_MPU | OCP_USER_SDMA,
3250 /* dma_system -> l3_main_2 */
3251 static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3252 .master = &omap44xx_dma_system_hwmod,
3253 .slave = &omap44xx_l3_main_2_hwmod,
3254 .clk = "l3_div_ck",
3255 .user = OCP_USER_MPU | OCP_USER_SDMA,
3258 /* fdif -> l3_main_2 */
3259 static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3260 .master = &omap44xx_fdif_hwmod,
3261 .slave = &omap44xx_l3_main_2_hwmod,
3262 .clk = "l3_div_ck",
3263 .user = OCP_USER_MPU | OCP_USER_SDMA,
3266 /* gpu -> l3_main_2 */
3267 static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3268 .master = &omap44xx_gpu_hwmod,
3269 .slave = &omap44xx_l3_main_2_hwmod,
3270 .clk = "l3_div_ck",
3271 .user = OCP_USER_MPU | OCP_USER_SDMA,
3274 /* hsi -> l3_main_2 */
3275 static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3276 .master = &omap44xx_hsi_hwmod,
3277 .slave = &omap44xx_l3_main_2_hwmod,
3278 .clk = "l3_div_ck",
3279 .user = OCP_USER_MPU | OCP_USER_SDMA,
3282 /* ipu -> l3_main_2 */
3283 static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3284 .master = &omap44xx_ipu_hwmod,
3285 .slave = &omap44xx_l3_main_2_hwmod,
3286 .clk = "l3_div_ck",
3287 .user = OCP_USER_MPU | OCP_USER_SDMA,
3290 /* iss -> l3_main_2 */
3291 static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3292 .master = &omap44xx_iss_hwmod,
3293 .slave = &omap44xx_l3_main_2_hwmod,
3294 .clk = "l3_div_ck",
3295 .user = OCP_USER_MPU | OCP_USER_SDMA,
3298 /* iva -> l3_main_2 */
3299 static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3300 .master = &omap44xx_iva_hwmod,
3301 .slave = &omap44xx_l3_main_2_hwmod,
3302 .clk = "l3_div_ck",
3303 .user = OCP_USER_MPU | OCP_USER_SDMA,
3306 /* l3_main_1 -> l3_main_2 */
3307 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3308 .master = &omap44xx_l3_main_1_hwmod,
3309 .slave = &omap44xx_l3_main_2_hwmod,
3310 .clk = "l3_div_ck",
3311 .user = OCP_USER_MPU,
3314 /* l4_cfg -> l3_main_2 */
3315 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3316 .master = &omap44xx_l4_cfg_hwmod,
3317 .slave = &omap44xx_l3_main_2_hwmod,
3318 .clk = "l4_div_ck",
3319 .user = OCP_USER_MPU | OCP_USER_SDMA,
3322 /* usb_host_fs -> l3_main_2 */
3323 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
3324 .master = &omap44xx_usb_host_fs_hwmod,
3325 .slave = &omap44xx_l3_main_2_hwmod,
3326 .clk = "l3_div_ck",
3327 .user = OCP_USER_MPU | OCP_USER_SDMA,
3330 /* usb_host_hs -> l3_main_2 */
3331 static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3332 .master = &omap44xx_usb_host_hs_hwmod,
3333 .slave = &omap44xx_l3_main_2_hwmod,
3334 .clk = "l3_div_ck",
3335 .user = OCP_USER_MPU | OCP_USER_SDMA,
3338 /* usb_otg_hs -> l3_main_2 */
3339 static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3340 .master = &omap44xx_usb_otg_hs_hwmod,
3341 .slave = &omap44xx_l3_main_2_hwmod,
3342 .clk = "l3_div_ck",
3343 .user = OCP_USER_MPU | OCP_USER_SDMA,
3346 /* l3_main_1 -> l3_main_3 */
3347 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3348 .master = &omap44xx_l3_main_1_hwmod,
3349 .slave = &omap44xx_l3_main_3_hwmod,
3350 .clk = "l3_div_ck",
3351 .user = OCP_USER_MPU,
3354 /* l3_main_2 -> l3_main_3 */
3355 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3356 .master = &omap44xx_l3_main_2_hwmod,
3357 .slave = &omap44xx_l3_main_3_hwmod,
3358 .clk = "l3_div_ck",
3359 .user = OCP_USER_MPU | OCP_USER_SDMA,
3362 /* l4_cfg -> l3_main_3 */
3363 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3364 .master = &omap44xx_l4_cfg_hwmod,
3365 .slave = &omap44xx_l3_main_3_hwmod,
3366 .clk = "l4_div_ck",
3367 .user = OCP_USER_MPU | OCP_USER_SDMA,
3370 /* aess -> l4_abe */
3371 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
3372 .master = &omap44xx_aess_hwmod,
3373 .slave = &omap44xx_l4_abe_hwmod,
3374 .clk = "ocp_abe_iclk",
3375 .user = OCP_USER_MPU | OCP_USER_SDMA,
3378 /* dsp -> l4_abe */
3379 static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3380 .master = &omap44xx_dsp_hwmod,
3381 .slave = &omap44xx_l4_abe_hwmod,
3382 .clk = "ocp_abe_iclk",
3383 .user = OCP_USER_MPU | OCP_USER_SDMA,
3386 /* l3_main_1 -> l4_abe */
3387 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3388 .master = &omap44xx_l3_main_1_hwmod,
3389 .slave = &omap44xx_l4_abe_hwmod,
3390 .clk = "l3_div_ck",
3391 .user = OCP_USER_MPU | OCP_USER_SDMA,
3394 /* mpu -> l4_abe */
3395 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3396 .master = &omap44xx_mpu_hwmod,
3397 .slave = &omap44xx_l4_abe_hwmod,
3398 .clk = "ocp_abe_iclk",
3399 .user = OCP_USER_MPU | OCP_USER_SDMA,
3402 /* l3_main_1 -> l4_cfg */
3403 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3404 .master = &omap44xx_l3_main_1_hwmod,
3405 .slave = &omap44xx_l4_cfg_hwmod,
3406 .clk = "l3_div_ck",
3407 .user = OCP_USER_MPU | OCP_USER_SDMA,
3410 /* l3_main_2 -> l4_per */
3411 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3412 .master = &omap44xx_l3_main_2_hwmod,
3413 .slave = &omap44xx_l4_per_hwmod,
3414 .clk = "l3_div_ck",
3415 .user = OCP_USER_MPU | OCP_USER_SDMA,
3418 /* l4_cfg -> l4_wkup */
3419 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3420 .master = &omap44xx_l4_cfg_hwmod,
3421 .slave = &omap44xx_l4_wkup_hwmod,
3422 .clk = "l4_div_ck",
3423 .user = OCP_USER_MPU | OCP_USER_SDMA,
3426 /* mpu -> mpu_private */
3427 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3428 .master = &omap44xx_mpu_hwmod,
3429 .slave = &omap44xx_mpu_private_hwmod,
3430 .clk = "l3_div_ck",
3431 .user = OCP_USER_MPU | OCP_USER_SDMA,
3434 /* l4_cfg -> ocp_wp_noc */
3435 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3436 .master = &omap44xx_l4_cfg_hwmod,
3437 .slave = &omap44xx_ocp_wp_noc_hwmod,
3438 .clk = "l4_div_ck",
3439 .user = OCP_USER_MPU | OCP_USER_SDMA,
3442 static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3444 .name = "dmem",
3445 .pa_start = 0x40180000,
3446 .pa_end = 0x4018ffff
3449 .name = "cmem",
3450 .pa_start = 0x401a0000,
3451 .pa_end = 0x401a1fff
3454 .name = "smem",
3455 .pa_start = 0x401c0000,
3456 .pa_end = 0x401c5fff
3459 .name = "pmem",
3460 .pa_start = 0x401e0000,
3461 .pa_end = 0x401e1fff
3464 .name = "mpu",
3465 .pa_start = 0x401f1000,
3466 .pa_end = 0x401f13ff,
3467 .flags = ADDR_TYPE_RT
3472 /* l4_abe -> aess */
3473 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
3474 .master = &omap44xx_l4_abe_hwmod,
3475 .slave = &omap44xx_aess_hwmod,
3476 .clk = "ocp_abe_iclk",
3477 .addr = omap44xx_aess_addrs,
3478 .user = OCP_USER_MPU,
3481 static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3483 .name = "dmem_dma",
3484 .pa_start = 0x49080000,
3485 .pa_end = 0x4908ffff
3488 .name = "cmem_dma",
3489 .pa_start = 0x490a0000,
3490 .pa_end = 0x490a1fff
3493 .name = "smem_dma",
3494 .pa_start = 0x490c0000,
3495 .pa_end = 0x490c5fff
3498 .name = "pmem_dma",
3499 .pa_start = 0x490e0000,
3500 .pa_end = 0x490e1fff
3503 .name = "dma",
3504 .pa_start = 0x490f1000,
3505 .pa_end = 0x490f13ff,
3506 .flags = ADDR_TYPE_RT
3511 /* l4_abe -> aess (dma) */
3512 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
3513 .master = &omap44xx_l4_abe_hwmod,
3514 .slave = &omap44xx_aess_hwmod,
3515 .clk = "ocp_abe_iclk",
3516 .addr = omap44xx_aess_dma_addrs,
3517 .user = OCP_USER_SDMA,
3520 /* l3_main_2 -> c2c */
3521 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3522 .master = &omap44xx_l3_main_2_hwmod,
3523 .slave = &omap44xx_c2c_hwmod,
3524 .clk = "l3_div_ck",
3525 .user = OCP_USER_MPU | OCP_USER_SDMA,
3528 /* l4_wkup -> counter_32k */
3529 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3530 .master = &omap44xx_l4_wkup_hwmod,
3531 .slave = &omap44xx_counter_32k_hwmod,
3532 .clk = "l4_wkup_clk_mux_ck",
3533 .user = OCP_USER_MPU | OCP_USER_SDMA,
3536 static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3538 .pa_start = 0x4a002000,
3539 .pa_end = 0x4a0027ff,
3540 .flags = ADDR_TYPE_RT
3545 /* l4_cfg -> ctrl_module_core */
3546 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3547 .master = &omap44xx_l4_cfg_hwmod,
3548 .slave = &omap44xx_ctrl_module_core_hwmod,
3549 .clk = "l4_div_ck",
3550 .addr = omap44xx_ctrl_module_core_addrs,
3551 .user = OCP_USER_MPU | OCP_USER_SDMA,
3554 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3556 .pa_start = 0x4a100000,
3557 .pa_end = 0x4a1007ff,
3558 .flags = ADDR_TYPE_RT
3563 /* l4_cfg -> ctrl_module_pad_core */
3564 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3565 .master = &omap44xx_l4_cfg_hwmod,
3566 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3567 .clk = "l4_div_ck",
3568 .addr = omap44xx_ctrl_module_pad_core_addrs,
3569 .user = OCP_USER_MPU | OCP_USER_SDMA,
3572 static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3574 .pa_start = 0x4a30c000,
3575 .pa_end = 0x4a30c7ff,
3576 .flags = ADDR_TYPE_RT
3581 /* l4_wkup -> ctrl_module_wkup */
3582 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3583 .master = &omap44xx_l4_wkup_hwmod,
3584 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3585 .clk = "l4_wkup_clk_mux_ck",
3586 .addr = omap44xx_ctrl_module_wkup_addrs,
3587 .user = OCP_USER_MPU | OCP_USER_SDMA,
3590 static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3592 .pa_start = 0x4a31e000,
3593 .pa_end = 0x4a31e7ff,
3594 .flags = ADDR_TYPE_RT
3599 /* l4_wkup -> ctrl_module_pad_wkup */
3600 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3601 .master = &omap44xx_l4_wkup_hwmod,
3602 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3603 .clk = "l4_wkup_clk_mux_ck",
3604 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3605 .user = OCP_USER_MPU | OCP_USER_SDMA,
3608 /* l3_instr -> debugss */
3609 static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3610 .master = &omap44xx_l3_instr_hwmod,
3611 .slave = &omap44xx_debugss_hwmod,
3612 .clk = "l3_div_ck",
3613 .user = OCP_USER_MPU | OCP_USER_SDMA,
3616 static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3618 .pa_start = 0x4a056000,
3619 .pa_end = 0x4a056fff,
3620 .flags = ADDR_TYPE_RT
3625 /* l4_cfg -> dma_system */
3626 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3627 .master = &omap44xx_l4_cfg_hwmod,
3628 .slave = &omap44xx_dma_system_hwmod,
3629 .clk = "l4_div_ck",
3630 .addr = omap44xx_dma_system_addrs,
3631 .user = OCP_USER_MPU | OCP_USER_SDMA,
3634 /* l4_abe -> dmic */
3635 static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3636 .master = &omap44xx_l4_abe_hwmod,
3637 .slave = &omap44xx_dmic_hwmod,
3638 .clk = "ocp_abe_iclk",
3639 .user = OCP_USER_MPU | OCP_USER_SDMA,
3642 /* dsp -> iva */
3643 static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3644 .master = &omap44xx_dsp_hwmod,
3645 .slave = &omap44xx_iva_hwmod,
3646 .clk = "dpll_iva_m5x2_ck",
3647 .user = OCP_USER_DSP,
3650 /* dsp -> sl2if */
3651 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
3652 .master = &omap44xx_dsp_hwmod,
3653 .slave = &omap44xx_sl2if_hwmod,
3654 .clk = "dpll_iva_m5x2_ck",
3655 .user = OCP_USER_DSP,
3658 /* l4_cfg -> dsp */
3659 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3660 .master = &omap44xx_l4_cfg_hwmod,
3661 .slave = &omap44xx_dsp_hwmod,
3662 .clk = "l4_div_ck",
3663 .user = OCP_USER_MPU | OCP_USER_SDMA,
3666 static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3668 .pa_start = 0x58000000,
3669 .pa_end = 0x5800007f,
3670 .flags = ADDR_TYPE_RT
3675 /* l3_main_2 -> dss */
3676 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3677 .master = &omap44xx_l3_main_2_hwmod,
3678 .slave = &omap44xx_dss_hwmod,
3679 .clk = "l3_div_ck",
3680 .addr = omap44xx_dss_dma_addrs,
3681 .user = OCP_USER_SDMA,
3684 static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3686 .pa_start = 0x48040000,
3687 .pa_end = 0x4804007f,
3688 .flags = ADDR_TYPE_RT
3693 /* l4_per -> dss */
3694 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3695 .master = &omap44xx_l4_per_hwmod,
3696 .slave = &omap44xx_dss_hwmod,
3697 .clk = "l4_div_ck",
3698 .addr = omap44xx_dss_addrs,
3699 .user = OCP_USER_MPU,
3702 static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3704 .pa_start = 0x58001000,
3705 .pa_end = 0x58001fff,
3706 .flags = ADDR_TYPE_RT
3711 /* l3_main_2 -> dss_dispc */
3712 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3713 .master = &omap44xx_l3_main_2_hwmod,
3714 .slave = &omap44xx_dss_dispc_hwmod,
3715 .clk = "l3_div_ck",
3716 .addr = omap44xx_dss_dispc_dma_addrs,
3717 .user = OCP_USER_SDMA,
3720 static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3722 .pa_start = 0x48041000,
3723 .pa_end = 0x48041fff,
3724 .flags = ADDR_TYPE_RT
3729 /* l4_per -> dss_dispc */
3730 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3731 .master = &omap44xx_l4_per_hwmod,
3732 .slave = &omap44xx_dss_dispc_hwmod,
3733 .clk = "l4_div_ck",
3734 .addr = omap44xx_dss_dispc_addrs,
3735 .user = OCP_USER_MPU,
3738 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3740 .pa_start = 0x58004000,
3741 .pa_end = 0x580041ff,
3742 .flags = ADDR_TYPE_RT
3747 /* l3_main_2 -> dss_dsi1 */
3748 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3749 .master = &omap44xx_l3_main_2_hwmod,
3750 .slave = &omap44xx_dss_dsi1_hwmod,
3751 .clk = "l3_div_ck",
3752 .addr = omap44xx_dss_dsi1_dma_addrs,
3753 .user = OCP_USER_SDMA,
3756 static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3758 .pa_start = 0x48044000,
3759 .pa_end = 0x480441ff,
3760 .flags = ADDR_TYPE_RT
3765 /* l4_per -> dss_dsi1 */
3766 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3767 .master = &omap44xx_l4_per_hwmod,
3768 .slave = &omap44xx_dss_dsi1_hwmod,
3769 .clk = "l4_div_ck",
3770 .addr = omap44xx_dss_dsi1_addrs,
3771 .user = OCP_USER_MPU,
3774 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3776 .pa_start = 0x58005000,
3777 .pa_end = 0x580051ff,
3778 .flags = ADDR_TYPE_RT
3783 /* l3_main_2 -> dss_dsi2 */
3784 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3785 .master = &omap44xx_l3_main_2_hwmod,
3786 .slave = &omap44xx_dss_dsi2_hwmod,
3787 .clk = "l3_div_ck",
3788 .addr = omap44xx_dss_dsi2_dma_addrs,
3789 .user = OCP_USER_SDMA,
3792 static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3794 .pa_start = 0x48045000,
3795 .pa_end = 0x480451ff,
3796 .flags = ADDR_TYPE_RT
3801 /* l4_per -> dss_dsi2 */
3802 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3803 .master = &omap44xx_l4_per_hwmod,
3804 .slave = &omap44xx_dss_dsi2_hwmod,
3805 .clk = "l4_div_ck",
3806 .addr = omap44xx_dss_dsi2_addrs,
3807 .user = OCP_USER_MPU,
3810 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3812 .pa_start = 0x58006000,
3813 .pa_end = 0x58006fff,
3814 .flags = ADDR_TYPE_RT
3819 /* l3_main_2 -> dss_hdmi */
3820 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3821 .master = &omap44xx_l3_main_2_hwmod,
3822 .slave = &omap44xx_dss_hdmi_hwmod,
3823 .clk = "l3_div_ck",
3824 .addr = omap44xx_dss_hdmi_dma_addrs,
3825 .user = OCP_USER_SDMA,
3828 static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3830 .pa_start = 0x48046000,
3831 .pa_end = 0x48046fff,
3832 .flags = ADDR_TYPE_RT
3837 /* l4_per -> dss_hdmi */
3838 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3839 .master = &omap44xx_l4_per_hwmod,
3840 .slave = &omap44xx_dss_hdmi_hwmod,
3841 .clk = "l4_div_ck",
3842 .addr = omap44xx_dss_hdmi_addrs,
3843 .user = OCP_USER_MPU,
3846 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3848 .pa_start = 0x58002000,
3849 .pa_end = 0x580020ff,
3850 .flags = ADDR_TYPE_RT
3855 /* l3_main_2 -> dss_rfbi */
3856 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3857 .master = &omap44xx_l3_main_2_hwmod,
3858 .slave = &omap44xx_dss_rfbi_hwmod,
3859 .clk = "l3_div_ck",
3860 .addr = omap44xx_dss_rfbi_dma_addrs,
3861 .user = OCP_USER_SDMA,
3864 static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3866 .pa_start = 0x48042000,
3867 .pa_end = 0x480420ff,
3868 .flags = ADDR_TYPE_RT
3873 /* l4_per -> dss_rfbi */
3874 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3875 .master = &omap44xx_l4_per_hwmod,
3876 .slave = &omap44xx_dss_rfbi_hwmod,
3877 .clk = "l4_div_ck",
3878 .addr = omap44xx_dss_rfbi_addrs,
3879 .user = OCP_USER_MPU,
3882 static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3884 .pa_start = 0x58003000,
3885 .pa_end = 0x580030ff,
3886 .flags = ADDR_TYPE_RT
3891 /* l3_main_2 -> dss_venc */
3892 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3893 .master = &omap44xx_l3_main_2_hwmod,
3894 .slave = &omap44xx_dss_venc_hwmod,
3895 .clk = "l3_div_ck",
3896 .addr = omap44xx_dss_venc_dma_addrs,
3897 .user = OCP_USER_SDMA,
3900 static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3902 .pa_start = 0x48043000,
3903 .pa_end = 0x480430ff,
3904 .flags = ADDR_TYPE_RT
3909 /* l4_per -> dss_venc */
3910 static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3911 .master = &omap44xx_l4_per_hwmod,
3912 .slave = &omap44xx_dss_venc_hwmod,
3913 .clk = "l4_div_ck",
3914 .addr = omap44xx_dss_venc_addrs,
3915 .user = OCP_USER_MPU,
3918 static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
3920 .pa_start = 0x48078000,
3921 .pa_end = 0x48078fff,
3922 .flags = ADDR_TYPE_RT
3927 /* l4_per -> elm */
3928 static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3929 .master = &omap44xx_l4_per_hwmod,
3930 .slave = &omap44xx_elm_hwmod,
3931 .clk = "l4_div_ck",
3932 .addr = omap44xx_elm_addrs,
3933 .user = OCP_USER_MPU | OCP_USER_SDMA,
3936 static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3938 .pa_start = 0x4a10a000,
3939 .pa_end = 0x4a10a1ff,
3940 .flags = ADDR_TYPE_RT
3945 /* l4_cfg -> fdif */
3946 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3947 .master = &omap44xx_l4_cfg_hwmod,
3948 .slave = &omap44xx_fdif_hwmod,
3949 .clk = "l4_div_ck",
3950 .addr = omap44xx_fdif_addrs,
3951 .user = OCP_USER_MPU | OCP_USER_SDMA,
3954 /* l4_wkup -> gpio1 */
3955 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3956 .master = &omap44xx_l4_wkup_hwmod,
3957 .slave = &omap44xx_gpio1_hwmod,
3958 .clk = "l4_wkup_clk_mux_ck",
3959 .user = OCP_USER_MPU | OCP_USER_SDMA,
3962 /* l4_per -> gpio2 */
3963 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3964 .master = &omap44xx_l4_per_hwmod,
3965 .slave = &omap44xx_gpio2_hwmod,
3966 .clk = "l4_div_ck",
3967 .user = OCP_USER_MPU | OCP_USER_SDMA,
3970 /* l4_per -> gpio3 */
3971 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3972 .master = &omap44xx_l4_per_hwmod,
3973 .slave = &omap44xx_gpio3_hwmod,
3974 .clk = "l4_div_ck",
3975 .user = OCP_USER_MPU | OCP_USER_SDMA,
3978 /* l4_per -> gpio4 */
3979 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3980 .master = &omap44xx_l4_per_hwmod,
3981 .slave = &omap44xx_gpio4_hwmod,
3982 .clk = "l4_div_ck",
3983 .user = OCP_USER_MPU | OCP_USER_SDMA,
3986 /* l4_per -> gpio5 */
3987 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3988 .master = &omap44xx_l4_per_hwmod,
3989 .slave = &omap44xx_gpio5_hwmod,
3990 .clk = "l4_div_ck",
3991 .user = OCP_USER_MPU | OCP_USER_SDMA,
3994 /* l4_per -> gpio6 */
3995 static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
3996 .master = &omap44xx_l4_per_hwmod,
3997 .slave = &omap44xx_gpio6_hwmod,
3998 .clk = "l4_div_ck",
3999 .user = OCP_USER_MPU | OCP_USER_SDMA,
4002 /* l3_main_2 -> gpmc */
4003 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4004 .master = &omap44xx_l3_main_2_hwmod,
4005 .slave = &omap44xx_gpmc_hwmod,
4006 .clk = "l3_div_ck",
4007 .user = OCP_USER_MPU | OCP_USER_SDMA,
4010 static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4012 .pa_start = 0x56000000,
4013 .pa_end = 0x5600ffff,
4014 .flags = ADDR_TYPE_RT
4019 /* l3_main_2 -> gpu */
4020 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4021 .master = &omap44xx_l3_main_2_hwmod,
4022 .slave = &omap44xx_gpu_hwmod,
4023 .clk = "l3_div_ck",
4024 .addr = omap44xx_gpu_addrs,
4025 .user = OCP_USER_MPU | OCP_USER_SDMA,
4028 static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4030 .pa_start = 0x480b2000,
4031 .pa_end = 0x480b201f,
4032 .flags = ADDR_TYPE_RT
4037 /* l4_per -> hdq1w */
4038 static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4039 .master = &omap44xx_l4_per_hwmod,
4040 .slave = &omap44xx_hdq1w_hwmod,
4041 .clk = "l4_div_ck",
4042 .addr = omap44xx_hdq1w_addrs,
4043 .user = OCP_USER_MPU | OCP_USER_SDMA,
4046 static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4048 .pa_start = 0x4a058000,
4049 .pa_end = 0x4a05bfff,
4050 .flags = ADDR_TYPE_RT
4055 /* l4_cfg -> hsi */
4056 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4057 .master = &omap44xx_l4_cfg_hwmod,
4058 .slave = &omap44xx_hsi_hwmod,
4059 .clk = "l4_div_ck",
4060 .addr = omap44xx_hsi_addrs,
4061 .user = OCP_USER_MPU | OCP_USER_SDMA,
4064 /* l4_per -> i2c1 */
4065 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4066 .master = &omap44xx_l4_per_hwmod,
4067 .slave = &omap44xx_i2c1_hwmod,
4068 .clk = "l4_div_ck",
4069 .user = OCP_USER_MPU | OCP_USER_SDMA,
4072 /* l4_per -> i2c2 */
4073 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4074 .master = &omap44xx_l4_per_hwmod,
4075 .slave = &omap44xx_i2c2_hwmod,
4076 .clk = "l4_div_ck",
4077 .user = OCP_USER_MPU | OCP_USER_SDMA,
4080 /* l4_per -> i2c3 */
4081 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4082 .master = &omap44xx_l4_per_hwmod,
4083 .slave = &omap44xx_i2c3_hwmod,
4084 .clk = "l4_div_ck",
4085 .user = OCP_USER_MPU | OCP_USER_SDMA,
4088 /* l4_per -> i2c4 */
4089 static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4090 .master = &omap44xx_l4_per_hwmod,
4091 .slave = &omap44xx_i2c4_hwmod,
4092 .clk = "l4_div_ck",
4093 .user = OCP_USER_MPU | OCP_USER_SDMA,
4096 /* l3_main_2 -> ipu */
4097 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4098 .master = &omap44xx_l3_main_2_hwmod,
4099 .slave = &omap44xx_ipu_hwmod,
4100 .clk = "l3_div_ck",
4101 .user = OCP_USER_MPU | OCP_USER_SDMA,
4104 static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4106 .pa_start = 0x52000000,
4107 .pa_end = 0x520000ff,
4108 .flags = ADDR_TYPE_RT
4113 /* l3_main_2 -> iss */
4114 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4115 .master = &omap44xx_l3_main_2_hwmod,
4116 .slave = &omap44xx_iss_hwmod,
4117 .clk = "l3_div_ck",
4118 .addr = omap44xx_iss_addrs,
4119 .user = OCP_USER_MPU | OCP_USER_SDMA,
4122 /* iva -> sl2if */
4123 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
4124 .master = &omap44xx_iva_hwmod,
4125 .slave = &omap44xx_sl2if_hwmod,
4126 .clk = "dpll_iva_m5x2_ck",
4127 .user = OCP_USER_IVA,
4130 /* l3_main_2 -> iva */
4131 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4132 .master = &omap44xx_l3_main_2_hwmod,
4133 .slave = &omap44xx_iva_hwmod,
4134 .clk = "l3_div_ck",
4135 .user = OCP_USER_MPU,
4138 /* l4_wkup -> kbd */
4139 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4140 .master = &omap44xx_l4_wkup_hwmod,
4141 .slave = &omap44xx_kbd_hwmod,
4142 .clk = "l4_wkup_clk_mux_ck",
4143 .user = OCP_USER_MPU | OCP_USER_SDMA,
4146 /* l4_cfg -> mailbox */
4147 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4148 .master = &omap44xx_l4_cfg_hwmod,
4149 .slave = &omap44xx_mailbox_hwmod,
4150 .clk = "l4_div_ck",
4151 .user = OCP_USER_MPU | OCP_USER_SDMA,
4154 static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4156 .pa_start = 0x40128000,
4157 .pa_end = 0x401283ff,
4158 .flags = ADDR_TYPE_RT
4163 /* l4_abe -> mcasp */
4164 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4165 .master = &omap44xx_l4_abe_hwmod,
4166 .slave = &omap44xx_mcasp_hwmod,
4167 .clk = "ocp_abe_iclk",
4168 .addr = omap44xx_mcasp_addrs,
4169 .user = OCP_USER_MPU,
4172 static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4174 .pa_start = 0x49028000,
4175 .pa_end = 0x490283ff,
4176 .flags = ADDR_TYPE_RT
4181 /* l4_abe -> mcasp (dma) */
4182 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4183 .master = &omap44xx_l4_abe_hwmod,
4184 .slave = &omap44xx_mcasp_hwmod,
4185 .clk = "ocp_abe_iclk",
4186 .addr = omap44xx_mcasp_dma_addrs,
4187 .user = OCP_USER_SDMA,
4190 /* l4_abe -> mcbsp1 */
4191 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4192 .master = &omap44xx_l4_abe_hwmod,
4193 .slave = &omap44xx_mcbsp1_hwmod,
4194 .clk = "ocp_abe_iclk",
4195 .user = OCP_USER_MPU | OCP_USER_SDMA,
4198 /* l4_abe -> mcbsp2 */
4199 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4200 .master = &omap44xx_l4_abe_hwmod,
4201 .slave = &omap44xx_mcbsp2_hwmod,
4202 .clk = "ocp_abe_iclk",
4203 .user = OCP_USER_MPU | OCP_USER_SDMA,
4206 /* l4_abe -> mcbsp3 */
4207 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4208 .master = &omap44xx_l4_abe_hwmod,
4209 .slave = &omap44xx_mcbsp3_hwmod,
4210 .clk = "ocp_abe_iclk",
4211 .user = OCP_USER_MPU | OCP_USER_SDMA,
4214 /* l4_per -> mcbsp4 */
4215 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4216 .master = &omap44xx_l4_per_hwmod,
4217 .slave = &omap44xx_mcbsp4_hwmod,
4218 .clk = "l4_div_ck",
4219 .user = OCP_USER_MPU | OCP_USER_SDMA,
4222 /* l4_abe -> mcpdm */
4223 static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4224 .master = &omap44xx_l4_abe_hwmod,
4225 .slave = &omap44xx_mcpdm_hwmod,
4226 .clk = "ocp_abe_iclk",
4227 .user = OCP_USER_MPU | OCP_USER_SDMA,
4230 /* l4_per -> mcspi1 */
4231 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4232 .master = &omap44xx_l4_per_hwmod,
4233 .slave = &omap44xx_mcspi1_hwmod,
4234 .clk = "l4_div_ck",
4235 .user = OCP_USER_MPU | OCP_USER_SDMA,
4238 /* l4_per -> mcspi2 */
4239 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4240 .master = &omap44xx_l4_per_hwmod,
4241 .slave = &omap44xx_mcspi2_hwmod,
4242 .clk = "l4_div_ck",
4243 .user = OCP_USER_MPU | OCP_USER_SDMA,
4246 /* l4_per -> mcspi3 */
4247 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4248 .master = &omap44xx_l4_per_hwmod,
4249 .slave = &omap44xx_mcspi3_hwmod,
4250 .clk = "l4_div_ck",
4251 .user = OCP_USER_MPU | OCP_USER_SDMA,
4254 /* l4_per -> mcspi4 */
4255 static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4256 .master = &omap44xx_l4_per_hwmod,
4257 .slave = &omap44xx_mcspi4_hwmod,
4258 .clk = "l4_div_ck",
4259 .user = OCP_USER_MPU | OCP_USER_SDMA,
4262 /* l4_per -> mmc1 */
4263 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4264 .master = &omap44xx_l4_per_hwmod,
4265 .slave = &omap44xx_mmc1_hwmod,
4266 .clk = "l4_div_ck",
4267 .user = OCP_USER_MPU | OCP_USER_SDMA,
4270 /* l4_per -> mmc2 */
4271 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4272 .master = &omap44xx_l4_per_hwmod,
4273 .slave = &omap44xx_mmc2_hwmod,
4274 .clk = "l4_div_ck",
4275 .user = OCP_USER_MPU | OCP_USER_SDMA,
4278 /* l4_per -> mmc3 */
4279 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4280 .master = &omap44xx_l4_per_hwmod,
4281 .slave = &omap44xx_mmc3_hwmod,
4282 .clk = "l4_div_ck",
4283 .user = OCP_USER_MPU | OCP_USER_SDMA,
4286 /* l4_per -> mmc4 */
4287 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4288 .master = &omap44xx_l4_per_hwmod,
4289 .slave = &omap44xx_mmc4_hwmod,
4290 .clk = "l4_div_ck",
4291 .user = OCP_USER_MPU | OCP_USER_SDMA,
4294 /* l4_per -> mmc5 */
4295 static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4296 .master = &omap44xx_l4_per_hwmod,
4297 .slave = &omap44xx_mmc5_hwmod,
4298 .clk = "l4_div_ck",
4299 .user = OCP_USER_MPU | OCP_USER_SDMA,
4302 /* l3_main_2 -> ocmc_ram */
4303 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4304 .master = &omap44xx_l3_main_2_hwmod,
4305 .slave = &omap44xx_ocmc_ram_hwmod,
4306 .clk = "l3_div_ck",
4307 .user = OCP_USER_MPU | OCP_USER_SDMA,
4310 /* l4_cfg -> ocp2scp_usb_phy */
4311 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4312 .master = &omap44xx_l4_cfg_hwmod,
4313 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4314 .clk = "l4_div_ck",
4315 .user = OCP_USER_MPU | OCP_USER_SDMA,
4318 /* mpu_private -> prcm_mpu */
4319 static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4320 .master = &omap44xx_mpu_private_hwmod,
4321 .slave = &omap44xx_prcm_mpu_hwmod,
4322 .clk = "l3_div_ck",
4323 .user = OCP_USER_MPU | OCP_USER_SDMA,
4326 /* l4_wkup -> cm_core_aon */
4327 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4328 .master = &omap44xx_l4_wkup_hwmod,
4329 .slave = &omap44xx_cm_core_aon_hwmod,
4330 .clk = "l4_wkup_clk_mux_ck",
4331 .user = OCP_USER_MPU | OCP_USER_SDMA,
4334 /* l4_cfg -> cm_core */
4335 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4336 .master = &omap44xx_l4_cfg_hwmod,
4337 .slave = &omap44xx_cm_core_hwmod,
4338 .clk = "l4_div_ck",
4339 .user = OCP_USER_MPU | OCP_USER_SDMA,
4342 /* l4_wkup -> prm */
4343 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4344 .master = &omap44xx_l4_wkup_hwmod,
4345 .slave = &omap44xx_prm_hwmod,
4346 .clk = "l4_wkup_clk_mux_ck",
4347 .user = OCP_USER_MPU | OCP_USER_SDMA,
4350 /* l4_wkup -> scrm */
4351 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4352 .master = &omap44xx_l4_wkup_hwmod,
4353 .slave = &omap44xx_scrm_hwmod,
4354 .clk = "l4_wkup_clk_mux_ck",
4355 .user = OCP_USER_MPU | OCP_USER_SDMA,
4358 /* l3_main_2 -> sl2if */
4359 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
4360 .master = &omap44xx_l3_main_2_hwmod,
4361 .slave = &omap44xx_sl2if_hwmod,
4362 .clk = "l3_div_ck",
4363 .user = OCP_USER_MPU | OCP_USER_SDMA,
4366 static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4368 .pa_start = 0x4012c000,
4369 .pa_end = 0x4012c3ff,
4370 .flags = ADDR_TYPE_RT
4375 /* l4_abe -> slimbus1 */
4376 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4377 .master = &omap44xx_l4_abe_hwmod,
4378 .slave = &omap44xx_slimbus1_hwmod,
4379 .clk = "ocp_abe_iclk",
4380 .addr = omap44xx_slimbus1_addrs,
4381 .user = OCP_USER_MPU,
4384 static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4386 .pa_start = 0x4902c000,
4387 .pa_end = 0x4902c3ff,
4388 .flags = ADDR_TYPE_RT
4393 /* l4_abe -> slimbus1 (dma) */
4394 static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4395 .master = &omap44xx_l4_abe_hwmod,
4396 .slave = &omap44xx_slimbus1_hwmod,
4397 .clk = "ocp_abe_iclk",
4398 .addr = omap44xx_slimbus1_dma_addrs,
4399 .user = OCP_USER_SDMA,
4402 static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4404 .pa_start = 0x48076000,
4405 .pa_end = 0x480763ff,
4406 .flags = ADDR_TYPE_RT
4411 /* l4_per -> slimbus2 */
4412 static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4413 .master = &omap44xx_l4_per_hwmod,
4414 .slave = &omap44xx_slimbus2_hwmod,
4415 .clk = "l4_div_ck",
4416 .addr = omap44xx_slimbus2_addrs,
4417 .user = OCP_USER_MPU | OCP_USER_SDMA,
4420 static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4422 .pa_start = 0x4a0dd000,
4423 .pa_end = 0x4a0dd03f,
4424 .flags = ADDR_TYPE_RT
4429 /* l4_cfg -> smartreflex_core */
4430 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4431 .master = &omap44xx_l4_cfg_hwmod,
4432 .slave = &omap44xx_smartreflex_core_hwmod,
4433 .clk = "l4_div_ck",
4434 .addr = omap44xx_smartreflex_core_addrs,
4435 .user = OCP_USER_MPU | OCP_USER_SDMA,
4438 static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4440 .pa_start = 0x4a0db000,
4441 .pa_end = 0x4a0db03f,
4442 .flags = ADDR_TYPE_RT
4447 /* l4_cfg -> smartreflex_iva */
4448 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4449 .master = &omap44xx_l4_cfg_hwmod,
4450 .slave = &omap44xx_smartreflex_iva_hwmod,
4451 .clk = "l4_div_ck",
4452 .addr = omap44xx_smartreflex_iva_addrs,
4453 .user = OCP_USER_MPU | OCP_USER_SDMA,
4456 static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4458 .pa_start = 0x4a0d9000,
4459 .pa_end = 0x4a0d903f,
4460 .flags = ADDR_TYPE_RT
4465 /* l4_cfg -> smartreflex_mpu */
4466 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4467 .master = &omap44xx_l4_cfg_hwmod,
4468 .slave = &omap44xx_smartreflex_mpu_hwmod,
4469 .clk = "l4_div_ck",
4470 .addr = omap44xx_smartreflex_mpu_addrs,
4471 .user = OCP_USER_MPU | OCP_USER_SDMA,
4474 static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4476 .pa_start = 0x4a0f6000,
4477 .pa_end = 0x4a0f6fff,
4478 .flags = ADDR_TYPE_RT
4483 /* l4_cfg -> spinlock */
4484 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4485 .master = &omap44xx_l4_cfg_hwmod,
4486 .slave = &omap44xx_spinlock_hwmod,
4487 .clk = "l4_div_ck",
4488 .addr = omap44xx_spinlock_addrs,
4489 .user = OCP_USER_MPU | OCP_USER_SDMA,
4492 /* l4_wkup -> timer1 */
4493 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4494 .master = &omap44xx_l4_wkup_hwmod,
4495 .slave = &omap44xx_timer1_hwmod,
4496 .clk = "l4_wkup_clk_mux_ck",
4497 .user = OCP_USER_MPU | OCP_USER_SDMA,
4500 /* l4_per -> timer2 */
4501 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4502 .master = &omap44xx_l4_per_hwmod,
4503 .slave = &omap44xx_timer2_hwmod,
4504 .clk = "l4_div_ck",
4505 .user = OCP_USER_MPU | OCP_USER_SDMA,
4508 /* l4_per -> timer3 */
4509 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4510 .master = &omap44xx_l4_per_hwmod,
4511 .slave = &omap44xx_timer3_hwmod,
4512 .clk = "l4_div_ck",
4513 .user = OCP_USER_MPU | OCP_USER_SDMA,
4516 /* l4_per -> timer4 */
4517 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4518 .master = &omap44xx_l4_per_hwmod,
4519 .slave = &omap44xx_timer4_hwmod,
4520 .clk = "l4_div_ck",
4521 .user = OCP_USER_MPU | OCP_USER_SDMA,
4524 /* l4_abe -> timer5 */
4525 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4526 .master = &omap44xx_l4_abe_hwmod,
4527 .slave = &omap44xx_timer5_hwmod,
4528 .clk = "ocp_abe_iclk",
4529 .user = OCP_USER_MPU | OCP_USER_SDMA,
4532 /* l4_abe -> timer6 */
4533 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4534 .master = &omap44xx_l4_abe_hwmod,
4535 .slave = &omap44xx_timer6_hwmod,
4536 .clk = "ocp_abe_iclk",
4537 .user = OCP_USER_MPU | OCP_USER_SDMA,
4540 /* l4_abe -> timer7 */
4541 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4542 .master = &omap44xx_l4_abe_hwmod,
4543 .slave = &omap44xx_timer7_hwmod,
4544 .clk = "ocp_abe_iclk",
4545 .user = OCP_USER_MPU | OCP_USER_SDMA,
4548 /* l4_abe -> timer8 */
4549 static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4550 .master = &omap44xx_l4_abe_hwmod,
4551 .slave = &omap44xx_timer8_hwmod,
4552 .clk = "ocp_abe_iclk",
4553 .user = OCP_USER_MPU | OCP_USER_SDMA,
4556 /* l4_per -> timer9 */
4557 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4558 .master = &omap44xx_l4_per_hwmod,
4559 .slave = &omap44xx_timer9_hwmod,
4560 .clk = "l4_div_ck",
4561 .user = OCP_USER_MPU | OCP_USER_SDMA,
4564 /* l4_per -> timer10 */
4565 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4566 .master = &omap44xx_l4_per_hwmod,
4567 .slave = &omap44xx_timer10_hwmod,
4568 .clk = "l4_div_ck",
4569 .user = OCP_USER_MPU | OCP_USER_SDMA,
4572 /* l4_per -> timer11 */
4573 static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4574 .master = &omap44xx_l4_per_hwmod,
4575 .slave = &omap44xx_timer11_hwmod,
4576 .clk = "l4_div_ck",
4577 .user = OCP_USER_MPU | OCP_USER_SDMA,
4580 /* l4_per -> uart1 */
4581 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4582 .master = &omap44xx_l4_per_hwmod,
4583 .slave = &omap44xx_uart1_hwmod,
4584 .clk = "l4_div_ck",
4585 .user = OCP_USER_MPU | OCP_USER_SDMA,
4588 /* l4_per -> uart2 */
4589 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4590 .master = &omap44xx_l4_per_hwmod,
4591 .slave = &omap44xx_uart2_hwmod,
4592 .clk = "l4_div_ck",
4593 .user = OCP_USER_MPU | OCP_USER_SDMA,
4596 /* l4_per -> uart3 */
4597 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4598 .master = &omap44xx_l4_per_hwmod,
4599 .slave = &omap44xx_uart3_hwmod,
4600 .clk = "l4_div_ck",
4601 .user = OCP_USER_MPU | OCP_USER_SDMA,
4604 /* l4_per -> uart4 */
4605 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4606 .master = &omap44xx_l4_per_hwmod,
4607 .slave = &omap44xx_uart4_hwmod,
4608 .clk = "l4_div_ck",
4609 .user = OCP_USER_MPU | OCP_USER_SDMA,
4612 /* l4_cfg -> usb_host_fs */
4613 static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
4614 .master = &omap44xx_l4_cfg_hwmod,
4615 .slave = &omap44xx_usb_host_fs_hwmod,
4616 .clk = "l4_div_ck",
4617 .user = OCP_USER_MPU | OCP_USER_SDMA,
4620 /* l4_cfg -> usb_host_hs */
4621 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4622 .master = &omap44xx_l4_cfg_hwmod,
4623 .slave = &omap44xx_usb_host_hs_hwmod,
4624 .clk = "l4_div_ck",
4625 .user = OCP_USER_MPU | OCP_USER_SDMA,
4628 /* l4_cfg -> usb_otg_hs */
4629 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4630 .master = &omap44xx_l4_cfg_hwmod,
4631 .slave = &omap44xx_usb_otg_hs_hwmod,
4632 .clk = "l4_div_ck",
4633 .user = OCP_USER_MPU | OCP_USER_SDMA,
4636 /* l4_cfg -> usb_tll_hs */
4637 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4638 .master = &omap44xx_l4_cfg_hwmod,
4639 .slave = &omap44xx_usb_tll_hs_hwmod,
4640 .clk = "l4_div_ck",
4641 .user = OCP_USER_MPU | OCP_USER_SDMA,
4644 /* l4_wkup -> wd_timer2 */
4645 static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4646 .master = &omap44xx_l4_wkup_hwmod,
4647 .slave = &omap44xx_wd_timer2_hwmod,
4648 .clk = "l4_wkup_clk_mux_ck",
4649 .user = OCP_USER_MPU | OCP_USER_SDMA,
4652 static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4654 .pa_start = 0x40130000,
4655 .pa_end = 0x4013007f,
4656 .flags = ADDR_TYPE_RT
4661 /* l4_abe -> wd_timer3 */
4662 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4663 .master = &omap44xx_l4_abe_hwmod,
4664 .slave = &omap44xx_wd_timer3_hwmod,
4665 .clk = "ocp_abe_iclk",
4666 .addr = omap44xx_wd_timer3_addrs,
4667 .user = OCP_USER_MPU,
4670 static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4672 .pa_start = 0x49030000,
4673 .pa_end = 0x4903007f,
4674 .flags = ADDR_TYPE_RT
4679 /* l4_abe -> wd_timer3 (dma) */
4680 static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4681 .master = &omap44xx_l4_abe_hwmod,
4682 .slave = &omap44xx_wd_timer3_hwmod,
4683 .clk = "ocp_abe_iclk",
4684 .addr = omap44xx_wd_timer3_dma_addrs,
4685 .user = OCP_USER_SDMA,
4688 /* mpu -> emif1 */
4689 static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4690 .master = &omap44xx_mpu_hwmod,
4691 .slave = &omap44xx_emif1_hwmod,
4692 .clk = "l3_div_ck",
4693 .user = OCP_USER_MPU | OCP_USER_SDMA,
4696 /* mpu -> emif2 */
4697 static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4698 .master = &omap44xx_mpu_hwmod,
4699 .slave = &omap44xx_emif2_hwmod,
4700 .clk = "l3_div_ck",
4701 .user = OCP_USER_MPU | OCP_USER_SDMA,
4704 static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4705 &omap44xx_l3_main_1__dmm,
4706 &omap44xx_mpu__dmm,
4707 &omap44xx_iva__l3_instr,
4708 &omap44xx_l3_main_3__l3_instr,
4709 &omap44xx_ocp_wp_noc__l3_instr,
4710 &omap44xx_dsp__l3_main_1,
4711 &omap44xx_dss__l3_main_1,
4712 &omap44xx_l3_main_2__l3_main_1,
4713 &omap44xx_l4_cfg__l3_main_1,
4714 &omap44xx_mmc1__l3_main_1,
4715 &omap44xx_mmc2__l3_main_1,
4716 &omap44xx_mpu__l3_main_1,
4717 &omap44xx_debugss__l3_main_2,
4718 &omap44xx_dma_system__l3_main_2,
4719 &omap44xx_fdif__l3_main_2,
4720 &omap44xx_gpu__l3_main_2,
4721 &omap44xx_hsi__l3_main_2,
4722 &omap44xx_ipu__l3_main_2,
4723 &omap44xx_iss__l3_main_2,
4724 &omap44xx_iva__l3_main_2,
4725 &omap44xx_l3_main_1__l3_main_2,
4726 &omap44xx_l4_cfg__l3_main_2,
4727 /* &omap44xx_usb_host_fs__l3_main_2, */
4728 &omap44xx_usb_host_hs__l3_main_2,
4729 &omap44xx_usb_otg_hs__l3_main_2,
4730 &omap44xx_l3_main_1__l3_main_3,
4731 &omap44xx_l3_main_2__l3_main_3,
4732 &omap44xx_l4_cfg__l3_main_3,
4733 &omap44xx_aess__l4_abe,
4734 &omap44xx_dsp__l4_abe,
4735 &omap44xx_l3_main_1__l4_abe,
4736 &omap44xx_mpu__l4_abe,
4737 &omap44xx_l3_main_1__l4_cfg,
4738 &omap44xx_l3_main_2__l4_per,
4739 &omap44xx_l4_cfg__l4_wkup,
4740 &omap44xx_mpu__mpu_private,
4741 &omap44xx_l4_cfg__ocp_wp_noc,
4742 &omap44xx_l4_abe__aess,
4743 &omap44xx_l4_abe__aess_dma,
4744 &omap44xx_l3_main_2__c2c,
4745 &omap44xx_l4_wkup__counter_32k,
4746 &omap44xx_l4_cfg__ctrl_module_core,
4747 &omap44xx_l4_cfg__ctrl_module_pad_core,
4748 &omap44xx_l4_wkup__ctrl_module_wkup,
4749 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
4750 &omap44xx_l3_instr__debugss,
4751 &omap44xx_l4_cfg__dma_system,
4752 &omap44xx_l4_abe__dmic,
4753 &omap44xx_dsp__iva,
4754 /* &omap44xx_dsp__sl2if, */
4755 &omap44xx_l4_cfg__dsp,
4756 &omap44xx_l3_main_2__dss,
4757 &omap44xx_l4_per__dss,
4758 &omap44xx_l3_main_2__dss_dispc,
4759 &omap44xx_l4_per__dss_dispc,
4760 &omap44xx_l3_main_2__dss_dsi1,
4761 &omap44xx_l4_per__dss_dsi1,
4762 &omap44xx_l3_main_2__dss_dsi2,
4763 &omap44xx_l4_per__dss_dsi2,
4764 &omap44xx_l3_main_2__dss_hdmi,
4765 &omap44xx_l4_per__dss_hdmi,
4766 &omap44xx_l3_main_2__dss_rfbi,
4767 &omap44xx_l4_per__dss_rfbi,
4768 &omap44xx_l3_main_2__dss_venc,
4769 &omap44xx_l4_per__dss_venc,
4770 &omap44xx_l4_per__elm,
4771 &omap44xx_l4_cfg__fdif,
4772 &omap44xx_l4_wkup__gpio1,
4773 &omap44xx_l4_per__gpio2,
4774 &omap44xx_l4_per__gpio3,
4775 &omap44xx_l4_per__gpio4,
4776 &omap44xx_l4_per__gpio5,
4777 &omap44xx_l4_per__gpio6,
4778 &omap44xx_l3_main_2__gpmc,
4779 &omap44xx_l3_main_2__gpu,
4780 &omap44xx_l4_per__hdq1w,
4781 &omap44xx_l4_cfg__hsi,
4782 &omap44xx_l4_per__i2c1,
4783 &omap44xx_l4_per__i2c2,
4784 &omap44xx_l4_per__i2c3,
4785 &omap44xx_l4_per__i2c4,
4786 &omap44xx_l3_main_2__ipu,
4787 &omap44xx_l3_main_2__iss,
4788 /* &omap44xx_iva__sl2if, */
4789 &omap44xx_l3_main_2__iva,
4790 &omap44xx_l4_wkup__kbd,
4791 &omap44xx_l4_cfg__mailbox,
4792 &omap44xx_l4_abe__mcasp,
4793 &omap44xx_l4_abe__mcasp_dma,
4794 &omap44xx_l4_abe__mcbsp1,
4795 &omap44xx_l4_abe__mcbsp2,
4796 &omap44xx_l4_abe__mcbsp3,
4797 &omap44xx_l4_per__mcbsp4,
4798 &omap44xx_l4_abe__mcpdm,
4799 &omap44xx_l4_per__mcspi1,
4800 &omap44xx_l4_per__mcspi2,
4801 &omap44xx_l4_per__mcspi3,
4802 &omap44xx_l4_per__mcspi4,
4803 &omap44xx_l4_per__mmc1,
4804 &omap44xx_l4_per__mmc2,
4805 &omap44xx_l4_per__mmc3,
4806 &omap44xx_l4_per__mmc4,
4807 &omap44xx_l4_per__mmc5,
4808 &omap44xx_l3_main_2__mmu_ipu,
4809 &omap44xx_l4_cfg__mmu_dsp,
4810 &omap44xx_l3_main_2__ocmc_ram,
4811 &omap44xx_l4_cfg__ocp2scp_usb_phy,
4812 &omap44xx_mpu_private__prcm_mpu,
4813 &omap44xx_l4_wkup__cm_core_aon,
4814 &omap44xx_l4_cfg__cm_core,
4815 &omap44xx_l4_wkup__prm,
4816 &omap44xx_l4_wkup__scrm,
4817 /* &omap44xx_l3_main_2__sl2if, */
4818 &omap44xx_l4_abe__slimbus1,
4819 &omap44xx_l4_abe__slimbus1_dma,
4820 &omap44xx_l4_per__slimbus2,
4821 &omap44xx_l4_cfg__smartreflex_core,
4822 &omap44xx_l4_cfg__smartreflex_iva,
4823 &omap44xx_l4_cfg__smartreflex_mpu,
4824 &omap44xx_l4_cfg__spinlock,
4825 &omap44xx_l4_wkup__timer1,
4826 &omap44xx_l4_per__timer2,
4827 &omap44xx_l4_per__timer3,
4828 &omap44xx_l4_per__timer4,
4829 &omap44xx_l4_abe__timer5,
4830 &omap44xx_l4_abe__timer6,
4831 &omap44xx_l4_abe__timer7,
4832 &omap44xx_l4_abe__timer8,
4833 &omap44xx_l4_per__timer9,
4834 &omap44xx_l4_per__timer10,
4835 &omap44xx_l4_per__timer11,
4836 &omap44xx_l4_per__uart1,
4837 &omap44xx_l4_per__uart2,
4838 &omap44xx_l4_per__uart3,
4839 &omap44xx_l4_per__uart4,
4840 /* &omap44xx_l4_cfg__usb_host_fs, */
4841 &omap44xx_l4_cfg__usb_host_hs,
4842 &omap44xx_l4_cfg__usb_otg_hs,
4843 &omap44xx_l4_cfg__usb_tll_hs,
4844 &omap44xx_l4_wkup__wd_timer2,
4845 &omap44xx_l4_abe__wd_timer3,
4846 &omap44xx_l4_abe__wd_timer3_dma,
4847 &omap44xx_mpu__emif1,
4848 &omap44xx_mpu__emif2,
4849 NULL,
4852 int __init omap44xx_hwmod_init(void)
4854 omap_hwmod_init();
4855 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);