Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / arch / arm / mach-omap2 / omap_hwmod_44xx_data.c
CommitLineData
55d2cb08
BC
1/*
2 * Hardware modules present on the OMAP44xx chips
3 *
0a78c5c5 4 * Copyright (C) 2009-2012 Texas Instruments, Inc.
55d2cb08
BC
5 * Copyright (C) 2009-2010 Nokia Corporation
6 *
7 * Paul Walmsley
8 * Benoit Cousson
9 *
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 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2 as
18 * published by the Free Software Foundation.
19 */
20
21#include <linux/io.h>
4b25408f 22#include <linux/platform_data/gpio-omap.h>
b86aeafc 23#include <linux/power/smartreflex.h>
637874dd 24#include <linux/platform_data/omap_ocp2scp.h>
3a8761c0 25#include <linux/i2c-omap.h>
55d2cb08 26
45c3eb7d 27#include <linux/omap-dma.h>
2a296c8f 28
2203747c
AB
29#include <linux/platform_data/spi-omap2-mcspi.h>
30#include <linux/platform_data/asoc-ti-mcbsp.h>
2ab7c848 31#include <linux/platform_data/iommu-omap.h>
c345c8b0 32#include <plat/dmtimer.h>
55d2cb08 33
2a296c8f 34#include "omap_hwmod.h"
55d2cb08 35#include "omap_hwmod_common_data.h"
d198b514
PW
36#include "cm1_44xx.h"
37#include "cm2_44xx.h"
38#include "prm44xx.h"
55d2cb08 39#include "prm-regbits-44xx.h"
3a8761c0 40#include "i2c.h"
68f39e74 41#include "mmc.h"
ff2516fb 42#include "wd_timer.h"
55d2cb08
BC
43
44/* Base offset for all OMAP4 interrupts external to MPUSS */
45#define OMAP44XX_IRQ_GIC_START 32
46
47/* Base offset for all OMAP4 dma requests */
844a3b63 48#define OMAP44XX_DMA_REQ_START 1
55d2cb08
BC
49
50/*
844a3b63 51 * IP blocks
55d2cb08
BC
52 */
53
42b9e387
PW
54/*
55 * 'c2c_target_fw' class
56 * instance(s): c2c_target_fw
57 */
58static struct omap_hwmod_class omap44xx_c2c_target_fw_hwmod_class = {
59 .name = "c2c_target_fw",
60};
61
62/* c2c_target_fw */
63static struct omap_hwmod omap44xx_c2c_target_fw_hwmod = {
64 .name = "c2c_target_fw",
65 .class = &omap44xx_c2c_target_fw_hwmod_class,
66 .clkdm_name = "d2d_clkdm",
67 .prcm = {
68 .omap4 = {
69 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_FW_CLKCTRL_OFFSET,
70 .context_offs = OMAP4_RM_D2D_SAD2D_FW_CONTEXT_OFFSET,
71 },
72 },
73};
74
55d2cb08
BC
75/*
76 * 'dmm' class
77 * instance(s): dmm
78 */
79static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
fe13471c 80 .name = "dmm",
55d2cb08
BC
81};
82
7e69ed97
BC
83/* dmm */
84static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
85 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
86 { .irq = -1 }
87};
88
55d2cb08
BC
89static struct omap_hwmod omap44xx_dmm_hwmod = {
90 .name = "dmm",
91 .class = &omap44xx_dmm_hwmod_class,
a5322c6f 92 .clkdm_name = "l3_emif_clkdm",
844a3b63 93 .mpu_irqs = omap44xx_dmm_irqs,
d0f0631d
BC
94 .prcm = {
95 .omap4 = {
96 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
27bb00b5 97 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
d0f0631d
BC
98 },
99 },
55d2cb08
BC
100};
101
102/*
103 * 'emif_fw' class
104 * instance(s): emif_fw
105 */
106static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
fe13471c 107 .name = "emif_fw",
55d2cb08
BC
108};
109
7e69ed97 110/* emif_fw */
55d2cb08
BC
111static struct omap_hwmod omap44xx_emif_fw_hwmod = {
112 .name = "emif_fw",
113 .class = &omap44xx_emif_fw_hwmod_class,
a5322c6f 114 .clkdm_name = "l3_emif_clkdm",
d0f0631d
BC
115 .prcm = {
116 .omap4 = {
117 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET,
27bb00b5 118 .context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET,
d0f0631d
BC
119 },
120 },
55d2cb08
BC
121};
122
123/*
124 * 'l3' class
125 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
126 */
127static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
fe13471c 128 .name = "l3",
55d2cb08
BC
129};
130
7e69ed97 131/* l3_instr */
55d2cb08
BC
132static struct omap_hwmod omap44xx_l3_instr_hwmod = {
133 .name = "l3_instr",
134 .class = &omap44xx_l3_hwmod_class,
a5322c6f 135 .clkdm_name = "l3_instr_clkdm",
d0f0631d
BC
136 .prcm = {
137 .omap4 = {
138 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
27bb00b5 139 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
03fdefe5 140 .modulemode = MODULEMODE_HWCTRL,
d0f0631d
BC
141 },
142 },
55d2cb08
BC
143};
144
7e69ed97 145/* l3_main_1 */
9b4021be
BC
146static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = {
147 { .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START },
148 { .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START },
149 { .irq = -1 }
150};
151
55d2cb08
BC
152static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
153 .name = "l3_main_1",
154 .class = &omap44xx_l3_hwmod_class,
a5322c6f 155 .clkdm_name = "l3_1_clkdm",
7e69ed97 156 .mpu_irqs = omap44xx_l3_main_1_irqs,
d0f0631d
BC
157 .prcm = {
158 .omap4 = {
159 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
27bb00b5 160 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
d0f0631d
BC
161 },
162 },
55d2cb08
BC
163};
164
7e69ed97 165/* l3_main_2 */
55d2cb08
BC
166static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
167 .name = "l3_main_2",
168 .class = &omap44xx_l3_hwmod_class,
a5322c6f 169 .clkdm_name = "l3_2_clkdm",
d0f0631d
BC
170 .prcm = {
171 .omap4 = {
172 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
27bb00b5 173 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
d0f0631d
BC
174 },
175 },
55d2cb08
BC
176};
177
7e69ed97 178/* l3_main_3 */
55d2cb08
BC
179static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
180 .name = "l3_main_3",
181 .class = &omap44xx_l3_hwmod_class,
a5322c6f 182 .clkdm_name = "l3_instr_clkdm",
d0f0631d
BC
183 .prcm = {
184 .omap4 = {
185 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
27bb00b5 186 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
03fdefe5 187 .modulemode = MODULEMODE_HWCTRL,
d0f0631d
BC
188 },
189 },
55d2cb08
BC
190};
191
192/*
193 * 'l4' class
194 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
195 */
196static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
fe13471c 197 .name = "l4",
55d2cb08
BC
198};
199
7e69ed97 200/* l4_abe */
55d2cb08
BC
201static struct omap_hwmod omap44xx_l4_abe_hwmod = {
202 .name = "l4_abe",
203 .class = &omap44xx_l4_hwmod_class,
a5322c6f 204 .clkdm_name = "abe_clkdm",
d0f0631d
BC
205 .prcm = {
206 .omap4 = {
207 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
ce80979a
TK
208 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
209 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
46b3af27 210 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
d0f0631d
BC
211 },
212 },
55d2cb08
BC
213};
214
7e69ed97 215/* l4_cfg */
55d2cb08
BC
216static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
217 .name = "l4_cfg",
218 .class = &omap44xx_l4_hwmod_class,
a5322c6f 219 .clkdm_name = "l4_cfg_clkdm",
d0f0631d
BC
220 .prcm = {
221 .omap4 = {
222 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
27bb00b5 223 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
d0f0631d
BC
224 },
225 },
55d2cb08
BC
226};
227
7e69ed97 228/* l4_per */
55d2cb08
BC
229static struct omap_hwmod omap44xx_l4_per_hwmod = {
230 .name = "l4_per",
231 .class = &omap44xx_l4_hwmod_class,
a5322c6f 232 .clkdm_name = "l4_per_clkdm",
d0f0631d
BC
233 .prcm = {
234 .omap4 = {
235 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
27bb00b5 236 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
d0f0631d
BC
237 },
238 },
55d2cb08
BC
239};
240
7e69ed97 241/* l4_wkup */
55d2cb08
BC
242static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
243 .name = "l4_wkup",
244 .class = &omap44xx_l4_hwmod_class,
a5322c6f 245 .clkdm_name = "l4_wkup_clkdm",
d0f0631d
BC
246 .prcm = {
247 .omap4 = {
248 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
27bb00b5 249 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
d0f0631d
BC
250 },
251 },
55d2cb08
BC
252};
253
f776471f 254/*
3b54baad
BC
255 * 'mpu_bus' class
256 * instance(s): mpu_private
f776471f 257 */
3b54baad 258static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
fe13471c 259 .name = "mpu_bus",
3b54baad 260};
f776471f 261
7e69ed97 262/* mpu_private */
3b54baad
BC
263static struct omap_hwmod omap44xx_mpu_private_hwmod = {
264 .name = "mpu_private",
265 .class = &omap44xx_mpu_bus_hwmod_class,
a5322c6f 266 .clkdm_name = "mpuss_clkdm",
46b3af27
TK
267 .prcm = {
268 .omap4 = {
269 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
270 },
271 },
3b54baad
BC
272};
273
9a817bc8
BC
274/*
275 * 'ocp_wp_noc' class
276 * instance(s): ocp_wp_noc
277 */
278static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
279 .name = "ocp_wp_noc",
280};
281
282/* ocp_wp_noc */
283static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
284 .name = "ocp_wp_noc",
285 .class = &omap44xx_ocp_wp_noc_hwmod_class,
286 .clkdm_name = "l3_instr_clkdm",
287 .prcm = {
288 .omap4 = {
289 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
290 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
291 .modulemode = MODULEMODE_HWCTRL,
292 },
293 },
294};
295
3b54baad
BC
296/*
297 * Modules omap_hwmod structures
298 *
299 * The following IPs are excluded for the moment because:
300 * - They do not need an explicit SW control using omap_hwmod API.
301 * - They still need to be validated with the driver
302 * properly adapted to omap_hwmod / omap_device
303 *
96566043 304 * usim
3b54baad
BC
305 */
306
407a6888
BC
307/*
308 * 'aess' class
309 * audio engine sub system
310 */
311
312static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
313 .rev_offs = 0x0000,
314 .sysc_offs = 0x0010,
315 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
316 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
c614ebf6
BC
317 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
318 MSTANDBY_SMART_WKUP),
407a6888
BC
319 .sysc_fields = &omap_hwmod_sysc_type2,
320};
321
322static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
323 .name = "aess",
324 .sysc = &omap44xx_aess_sysc,
c02060d8 325 .enable_preprogram = omap_hwmod_aess_preprogram,
407a6888
BC
326};
327
328/* aess */
329static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
330 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
212738a4 331 { .irq = -1 }
407a6888
BC
332};
333
334static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
335 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
336 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
337 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
338 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
339 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
340 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
341 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
342 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
bc614958 343 { .dma_req = -1 }
407a6888
BC
344};
345
407a6888
BC
346static struct omap_hwmod omap44xx_aess_hwmod = {
347 .name = "aess",
348 .class = &omap44xx_aess_hwmod_class,
a5322c6f 349 .clkdm_name = "abe_clkdm",
407a6888 350 .mpu_irqs = omap44xx_aess_irqs,
407a6888 351 .sdma_reqs = omap44xx_aess_sdma_reqs,
9f0c5996 352 .main_clk = "aess_fclk",
00fe610b 353 .prcm = {
407a6888 354 .omap4 = {
d0f0631d 355 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
27bb00b5 356 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
ce80979a 357 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
03fdefe5 358 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
359 },
360 },
407a6888
BC
361};
362
42b9e387
PW
363/*
364 * 'c2c' class
365 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
366 * soc
367 */
368
369static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
370 .name = "c2c",
371};
372
373/* c2c */
374static struct omap_hwmod_irq_info omap44xx_c2c_irqs[] = {
375 { .irq = 88 + OMAP44XX_IRQ_GIC_START },
376 { .irq = -1 }
377};
378
379static struct omap_hwmod_dma_info omap44xx_c2c_sdma_reqs[] = {
380 { .dma_req = 68 + OMAP44XX_DMA_REQ_START },
381 { .dma_req = -1 }
382};
383
384static struct omap_hwmod omap44xx_c2c_hwmod = {
385 .name = "c2c",
386 .class = &omap44xx_c2c_hwmod_class,
387 .clkdm_name = "d2d_clkdm",
388 .mpu_irqs = omap44xx_c2c_irqs,
389 .sdma_reqs = omap44xx_c2c_sdma_reqs,
390 .prcm = {
391 .omap4 = {
392 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
393 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
394 },
395 },
396};
397
407a6888
BC
398/*
399 * 'counter' class
400 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
401 */
402
403static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
404 .rev_offs = 0x0000,
405 .sysc_offs = 0x0004,
406 .sysc_flags = SYSC_HAS_SIDLEMODE,
252a4c54 407 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
407a6888
BC
408 .sysc_fields = &omap_hwmod_sysc_type1,
409};
410
411static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
412 .name = "counter",
413 .sysc = &omap44xx_counter_sysc,
414};
415
416/* counter_32k */
407a6888
BC
417static struct omap_hwmod omap44xx_counter_32k_hwmod = {
418 .name = "counter_32k",
419 .class = &omap44xx_counter_hwmod_class,
a5322c6f 420 .clkdm_name = "l4_wkup_clkdm",
407a6888
BC
421 .flags = HWMOD_SWSUP_SIDLE,
422 .main_clk = "sys_32k_ck",
00fe610b 423 .prcm = {
407a6888 424 .omap4 = {
d0f0631d 425 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
27bb00b5 426 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
407a6888
BC
427 },
428 },
407a6888
BC
429};
430
a0b5d813
PW
431/*
432 * 'ctrl_module' class
433 * attila core control module + core pad control module + wkup pad control
434 * module + attila wkup control module
435 */
436
437static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
438 .rev_offs = 0x0000,
439 .sysc_offs = 0x0010,
440 .sysc_flags = SYSC_HAS_SIDLEMODE,
441 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
442 SIDLE_SMART_WKUP),
443 .sysc_fields = &omap_hwmod_sysc_type2,
444};
445
446static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
447 .name = "ctrl_module",
448 .sysc = &omap44xx_ctrl_module_sysc,
449};
450
451/* ctrl_module_core */
452static struct omap_hwmod_irq_info omap44xx_ctrl_module_core_irqs[] = {
453 { .irq = 8 + OMAP44XX_IRQ_GIC_START },
454 { .irq = -1 }
455};
456
457static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
458 .name = "ctrl_module_core",
459 .class = &omap44xx_ctrl_module_hwmod_class,
460 .clkdm_name = "l4_cfg_clkdm",
461 .mpu_irqs = omap44xx_ctrl_module_core_irqs,
46b3af27
TK
462 .prcm = {
463 .omap4 = {
464 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
465 },
466 },
a0b5d813
PW
467};
468
469/* ctrl_module_pad_core */
470static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
471 .name = "ctrl_module_pad_core",
472 .class = &omap44xx_ctrl_module_hwmod_class,
473 .clkdm_name = "l4_cfg_clkdm",
46b3af27
TK
474 .prcm = {
475 .omap4 = {
476 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
477 },
478 },
a0b5d813
PW
479};
480
481/* ctrl_module_wkup */
482static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
483 .name = "ctrl_module_wkup",
484 .class = &omap44xx_ctrl_module_hwmod_class,
485 .clkdm_name = "l4_wkup_clkdm",
46b3af27
TK
486 .prcm = {
487 .omap4 = {
488 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
489 },
490 },
a0b5d813
PW
491};
492
493/* ctrl_module_pad_wkup */
494static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
495 .name = "ctrl_module_pad_wkup",
496 .class = &omap44xx_ctrl_module_hwmod_class,
497 .clkdm_name = "l4_wkup_clkdm",
46b3af27
TK
498 .prcm = {
499 .omap4 = {
500 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
501 },
502 },
a0b5d813
PW
503};
504
96566043
BC
505/*
506 * 'debugss' class
507 * debug and emulation sub system
508 */
509
510static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
511 .name = "debugss",
512};
513
514/* debugss */
515static struct omap_hwmod omap44xx_debugss_hwmod = {
516 .name = "debugss",
517 .class = &omap44xx_debugss_hwmod_class,
518 .clkdm_name = "emu_sys_clkdm",
519 .main_clk = "trace_clk_div_ck",
520 .prcm = {
521 .omap4 = {
522 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
523 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
524 },
525 },
526};
527
d7cf5f33
BC
528/*
529 * 'dma' class
530 * dma controller for data exchange between memory to memory (i.e. internal or
531 * external memory) and gp peripherals to memory or memory to gp peripherals
532 */
533
534static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
535 .rev_offs = 0x0000,
536 .sysc_offs = 0x002c,
537 .syss_offs = 0x0028,
538 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
539 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
540 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
541 SYSS_HAS_RESET_STATUS),
542 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
543 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
544 .sysc_fields = &omap_hwmod_sysc_type1,
545};
546
547static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
548 .name = "dma",
549 .sysc = &omap44xx_dma_sysc,
550};
551
552/* dma dev_attr */
553static struct omap_dma_dev_attr dma_dev_attr = {
554 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
555 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
556 .lch_count = 32,
557};
558
559/* dma_system */
560static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
561 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
562 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
563 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
564 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
212738a4 565 { .irq = -1 }
d7cf5f33
BC
566};
567
d7cf5f33
BC
568static struct omap_hwmod omap44xx_dma_system_hwmod = {
569 .name = "dma_system",
570 .class = &omap44xx_dma_hwmod_class,
a5322c6f 571 .clkdm_name = "l3_dma_clkdm",
d7cf5f33 572 .mpu_irqs = omap44xx_dma_system_irqs,
d7cf5f33
BC
573 .main_clk = "l3_div_ck",
574 .prcm = {
575 .omap4 = {
d0f0631d 576 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
27bb00b5 577 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
d7cf5f33
BC
578 },
579 },
580 .dev_attr = &dma_dev_attr,
d7cf5f33
BC
581};
582
8ca476da
BC
583/*
584 * 'dmic' class
585 * digital microphone controller
586 */
587
588static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
589 .rev_offs = 0x0000,
590 .sysc_offs = 0x0010,
591 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
592 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
593 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
594 SIDLE_SMART_WKUP),
595 .sysc_fields = &omap_hwmod_sysc_type2,
596};
597
598static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
599 .name = "dmic",
600 .sysc = &omap44xx_dmic_sysc,
601};
602
603/* dmic */
8ca476da
BC
604static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
605 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
212738a4 606 { .irq = -1 }
8ca476da
BC
607};
608
609static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
610 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
bc614958 611 { .dma_req = -1 }
8ca476da
BC
612};
613
8ca476da
BC
614static struct omap_hwmod omap44xx_dmic_hwmod = {
615 .name = "dmic",
616 .class = &omap44xx_dmic_hwmod_class,
a5322c6f 617 .clkdm_name = "abe_clkdm",
8ca476da 618 .mpu_irqs = omap44xx_dmic_irqs,
8ca476da 619 .sdma_reqs = omap44xx_dmic_sdma_reqs,
ee877acd 620 .main_clk = "func_dmic_abe_gfclk",
00fe610b 621 .prcm = {
8ca476da 622 .omap4 = {
d0f0631d 623 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
27bb00b5 624 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
03fdefe5 625 .modulemode = MODULEMODE_SWCTRL,
8ca476da
BC
626 },
627 },
8ca476da
BC
628};
629
8f25bdc5
BC
630/*
631 * 'dsp' class
632 * dsp sub-system
633 */
634
635static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
fe13471c 636 .name = "dsp",
8f25bdc5
BC
637};
638
639/* dsp */
640static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
641 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
212738a4 642 { .irq = -1 }
8f25bdc5
BC
643};
644
645static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
8f25bdc5
BC
646 { .name = "dsp", .rst_shift = 0 },
647};
648
8f25bdc5
BC
649static struct omap_hwmod omap44xx_dsp_hwmod = {
650 .name = "dsp",
651 .class = &omap44xx_dsp_hwmod_class,
a5322c6f 652 .clkdm_name = "tesla_clkdm",
8f25bdc5 653 .mpu_irqs = omap44xx_dsp_irqs,
8f25bdc5
BC
654 .rst_lines = omap44xx_dsp_resets,
655 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
298ea44f 656 .main_clk = "dpll_iva_m4x2_ck",
8f25bdc5
BC
657 .prcm = {
658 .omap4 = {
d0f0631d 659 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
eaac329d 660 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
27bb00b5 661 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
03fdefe5 662 .modulemode = MODULEMODE_HWCTRL,
8f25bdc5
BC
663 },
664 },
8f25bdc5
BC
665};
666
d63bd74f
BC
667/*
668 * 'dss' class
669 * display sub-system
670 */
671
672static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
673 .rev_offs = 0x0000,
674 .syss_offs = 0x0014,
675 .sysc_flags = SYSS_HAS_RESET_STATUS,
676};
677
678static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
679 .name = "dss",
680 .sysc = &omap44xx_dss_sysc,
13662dc5 681 .reset = omap_dss_reset,
d63bd74f
BC
682};
683
684/* dss */
d63bd74f
BC
685static struct omap_hwmod_opt_clk dss_opt_clks[] = {
686 { .role = "sys_clk", .clk = "dss_sys_clk" },
687 { .role = "tv_clk", .clk = "dss_tv_clk" },
4d0698d9 688 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
d63bd74f
BC
689};
690
691static struct omap_hwmod omap44xx_dss_hwmod = {
692 .name = "dss_core",
37ad0855 693 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
d63bd74f 694 .class = &omap44xx_dss_hwmod_class,
a5322c6f 695 .clkdm_name = "l3_dss_clkdm",
da7cdfac 696 .main_clk = "dss_dss_clk",
d63bd74f
BC
697 .prcm = {
698 .omap4 = {
d0f0631d 699 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 700 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
701 },
702 },
703 .opt_clks = dss_opt_clks,
704 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
d63bd74f
BC
705};
706
707/*
708 * 'dispc' class
709 * display controller
710 */
711
712static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
713 .rev_offs = 0x0000,
714 .sysc_offs = 0x0010,
715 .syss_offs = 0x0014,
716 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
717 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
718 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
719 SYSS_HAS_RESET_STATUS),
720 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
721 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
722 .sysc_fields = &omap_hwmod_sysc_type1,
723};
724
725static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
726 .name = "dispc",
727 .sysc = &omap44xx_dispc_sysc,
728};
729
730/* dss_dispc */
d63bd74f
BC
731static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
732 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
212738a4 733 { .irq = -1 }
d63bd74f
BC
734};
735
736static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
737 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
bc614958 738 { .dma_req = -1 }
d63bd74f
BC
739};
740
b923d40d
AT
741static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
742 .manager_count = 3,
743 .has_framedonetv_irq = 1
744};
745
d63bd74f
BC
746static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
747 .name = "dss_dispc",
748 .class = &omap44xx_dispc_hwmod_class,
a5322c6f 749 .clkdm_name = "l3_dss_clkdm",
d63bd74f 750 .mpu_irqs = omap44xx_dss_dispc_irqs,
d63bd74f 751 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
da7cdfac 752 .main_clk = "dss_dss_clk",
d63bd74f
BC
753 .prcm = {
754 .omap4 = {
d0f0631d 755 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 756 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
757 },
758 },
b923d40d 759 .dev_attr = &omap44xx_dss_dispc_dev_attr
d63bd74f
BC
760};
761
762/*
763 * 'dsi' class
764 * display serial interface controller
765 */
766
767static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
768 .rev_offs = 0x0000,
769 .sysc_offs = 0x0010,
770 .syss_offs = 0x0014,
771 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
772 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
773 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
774 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
775 .sysc_fields = &omap_hwmod_sysc_type1,
776};
777
778static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
779 .name = "dsi",
780 .sysc = &omap44xx_dsi_sysc,
781};
782
783/* dss_dsi1 */
d63bd74f
BC
784static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
785 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
212738a4 786 { .irq = -1 }
d63bd74f
BC
787};
788
789static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
790 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
bc614958 791 { .dma_req = -1 }
d63bd74f
BC
792};
793
3a23aafc
TV
794static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
795 { .role = "sys_clk", .clk = "dss_sys_clk" },
796};
797
d63bd74f
BC
798static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
799 .name = "dss_dsi1",
800 .class = &omap44xx_dsi_hwmod_class,
a5322c6f 801 .clkdm_name = "l3_dss_clkdm",
d63bd74f 802 .mpu_irqs = omap44xx_dss_dsi1_irqs,
d63bd74f 803 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
da7cdfac 804 .main_clk = "dss_dss_clk",
d63bd74f
BC
805 .prcm = {
806 .omap4 = {
d0f0631d 807 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 808 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
809 },
810 },
3a23aafc
TV
811 .opt_clks = dss_dsi1_opt_clks,
812 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
d63bd74f
BC
813};
814
815/* dss_dsi2 */
d63bd74f
BC
816static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
817 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
212738a4 818 { .irq = -1 }
d63bd74f
BC
819};
820
821static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
822 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
bc614958 823 { .dma_req = -1 }
d63bd74f
BC
824};
825
3a23aafc
TV
826static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
827 { .role = "sys_clk", .clk = "dss_sys_clk" },
828};
829
d63bd74f
BC
830static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
831 .name = "dss_dsi2",
832 .class = &omap44xx_dsi_hwmod_class,
a5322c6f 833 .clkdm_name = "l3_dss_clkdm",
d63bd74f 834 .mpu_irqs = omap44xx_dss_dsi2_irqs,
d63bd74f 835 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
da7cdfac 836 .main_clk = "dss_dss_clk",
d63bd74f
BC
837 .prcm = {
838 .omap4 = {
d0f0631d 839 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 840 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
841 },
842 },
3a23aafc
TV
843 .opt_clks = dss_dsi2_opt_clks,
844 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
d63bd74f
BC
845};
846
847/*
848 * 'hdmi' class
849 * hdmi controller
850 */
851
852static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
853 .rev_offs = 0x0000,
854 .sysc_offs = 0x0010,
855 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
856 SYSC_HAS_SOFTRESET),
857 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
858 SIDLE_SMART_WKUP),
859 .sysc_fields = &omap_hwmod_sysc_type2,
860};
861
862static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
863 .name = "hdmi",
864 .sysc = &omap44xx_hdmi_sysc,
865};
866
867/* dss_hdmi */
d63bd74f
BC
868static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
869 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
212738a4 870 { .irq = -1 }
d63bd74f
BC
871};
872
873static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
874 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
bc614958 875 { .dma_req = -1 }
d63bd74f
BC
876};
877
3a23aafc
TV
878static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
879 { .role = "sys_clk", .clk = "dss_sys_clk" },
880};
881
d63bd74f
BC
882static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
883 .name = "dss_hdmi",
884 .class = &omap44xx_hdmi_hwmod_class,
a5322c6f 885 .clkdm_name = "l3_dss_clkdm",
dc57aef5
RN
886 /*
887 * HDMI audio requires to use no-idle mode. Hence,
888 * set idle mode by software.
889 */
890 .flags = HWMOD_SWSUP_SIDLE,
d63bd74f 891 .mpu_irqs = omap44xx_dss_hdmi_irqs,
d63bd74f 892 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
4d0698d9 893 .main_clk = "dss_48mhz_clk",
d63bd74f
BC
894 .prcm = {
895 .omap4 = {
d0f0631d 896 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 897 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
898 },
899 },
3a23aafc
TV
900 .opt_clks = dss_hdmi_opt_clks,
901 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
d63bd74f
BC
902};
903
904/*
905 * 'rfbi' class
906 * remote frame buffer interface
907 */
908
909static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
910 .rev_offs = 0x0000,
911 .sysc_offs = 0x0010,
912 .syss_offs = 0x0014,
913 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
914 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
915 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
916 .sysc_fields = &omap_hwmod_sysc_type1,
917};
918
919static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
920 .name = "rfbi",
921 .sysc = &omap44xx_rfbi_sysc,
922};
923
924/* dss_rfbi */
d63bd74f
BC
925static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
926 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
bc614958 927 { .dma_req = -1 }
d63bd74f
BC
928};
929
3a23aafc
TV
930static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
931 { .role = "ick", .clk = "dss_fck" },
932};
933
d63bd74f
BC
934static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
935 .name = "dss_rfbi",
936 .class = &omap44xx_rfbi_hwmod_class,
a5322c6f 937 .clkdm_name = "l3_dss_clkdm",
d63bd74f 938 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
da7cdfac 939 .main_clk = "dss_dss_clk",
d63bd74f
BC
940 .prcm = {
941 .omap4 = {
d0f0631d 942 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 943 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
944 },
945 },
3a23aafc
TV
946 .opt_clks = dss_rfbi_opt_clks,
947 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
d63bd74f
BC
948};
949
950/*
951 * 'venc' class
952 * video encoder
953 */
954
955static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
956 .name = "venc",
957};
958
959/* dss_venc */
d63bd74f
BC
960static struct omap_hwmod omap44xx_dss_venc_hwmod = {
961 .name = "dss_venc",
962 .class = &omap44xx_venc_hwmod_class,
a5322c6f 963 .clkdm_name = "l3_dss_clkdm",
4d0698d9 964 .main_clk = "dss_tv_clk",
d63bd74f
BC
965 .prcm = {
966 .omap4 = {
d0f0631d 967 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
27bb00b5 968 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
d63bd74f
BC
969 },
970 },
d63bd74f
BC
971};
972
42b9e387
PW
973/*
974 * 'elm' class
975 * bch error location module
976 */
977
978static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
979 .rev_offs = 0x0000,
980 .sysc_offs = 0x0010,
981 .syss_offs = 0x0014,
982 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
983 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
984 SYSS_HAS_RESET_STATUS),
985 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
986 .sysc_fields = &omap_hwmod_sysc_type1,
987};
988
989static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
990 .name = "elm",
991 .sysc = &omap44xx_elm_sysc,
992};
993
994/* elm */
995static struct omap_hwmod_irq_info omap44xx_elm_irqs[] = {
996 { .irq = 4 + OMAP44XX_IRQ_GIC_START },
997 { .irq = -1 }
998};
999
1000static struct omap_hwmod omap44xx_elm_hwmod = {
1001 .name = "elm",
1002 .class = &omap44xx_elm_hwmod_class,
1003 .clkdm_name = "l4_per_clkdm",
1004 .mpu_irqs = omap44xx_elm_irqs,
1005 .prcm = {
1006 .omap4 = {
1007 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
1008 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
1009 },
1010 },
1011};
1012
bf30f950
PW
1013/*
1014 * 'emif' class
1015 * external memory interface no1
1016 */
1017
1018static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
1019 .rev_offs = 0x0000,
1020};
1021
1022static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
1023 .name = "emif",
1024 .sysc = &omap44xx_emif_sysc,
1025};
1026
1027/* emif1 */
1028static struct omap_hwmod_irq_info omap44xx_emif1_irqs[] = {
1029 { .irq = 110 + OMAP44XX_IRQ_GIC_START },
1030 { .irq = -1 }
1031};
1032
1033static struct omap_hwmod omap44xx_emif1_hwmod = {
1034 .name = "emif1",
1035 .class = &omap44xx_emif_hwmod_class,
1036 .clkdm_name = "l3_emif_clkdm",
1037 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1038 .mpu_irqs = omap44xx_emif1_irqs,
1039 .main_clk = "ddrphy_ck",
1040 .prcm = {
1041 .omap4 = {
1042 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
1043 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
1044 .modulemode = MODULEMODE_HWCTRL,
1045 },
1046 },
1047};
1048
1049/* emif2 */
1050static struct omap_hwmod_irq_info omap44xx_emif2_irqs[] = {
1051 { .irq = 111 + OMAP44XX_IRQ_GIC_START },
1052 { .irq = -1 }
1053};
1054
1055static struct omap_hwmod omap44xx_emif2_hwmod = {
1056 .name = "emif2",
1057 .class = &omap44xx_emif_hwmod_class,
1058 .clkdm_name = "l3_emif_clkdm",
1059 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1060 .mpu_irqs = omap44xx_emif2_irqs,
1061 .main_clk = "ddrphy_ck",
1062 .prcm = {
1063 .omap4 = {
1064 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
1065 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
1066 .modulemode = MODULEMODE_HWCTRL,
1067 },
1068 },
1069};
1070
b050f688
ML
1071/*
1072 * 'fdif' class
1073 * face detection hw accelerator module
1074 */
1075
1076static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1077 .rev_offs = 0x0000,
1078 .sysc_offs = 0x0010,
1079 /*
1080 * FDIF needs 100 OCP clk cycles delay after a softreset before
1081 * accessing sysconfig again.
1082 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1083 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1084 *
1085 * TODO: Indicate errata when available.
1086 */
1087 .srst_udelay = 2,
1088 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1089 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1090 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1091 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1092 .sysc_fields = &omap_hwmod_sysc_type2,
1093};
1094
1095static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1096 .name = "fdif",
1097 .sysc = &omap44xx_fdif_sysc,
1098};
1099
1100/* fdif */
1101static struct omap_hwmod_irq_info omap44xx_fdif_irqs[] = {
1102 { .irq = 69 + OMAP44XX_IRQ_GIC_START },
1103 { .irq = -1 }
1104};
1105
1106static struct omap_hwmod omap44xx_fdif_hwmod = {
1107 .name = "fdif",
1108 .class = &omap44xx_fdif_hwmod_class,
1109 .clkdm_name = "iss_clkdm",
1110 .mpu_irqs = omap44xx_fdif_irqs,
1111 .main_clk = "fdif_fck",
1112 .prcm = {
1113 .omap4 = {
1114 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1115 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1116 .modulemode = MODULEMODE_SWCTRL,
1117 },
1118 },
1119};
1120
3b54baad
BC
1121/*
1122 * 'gpio' class
1123 * general purpose io module
1124 */
1125
1126static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1127 .rev_offs = 0x0000,
f776471f 1128 .sysc_offs = 0x0010,
3b54baad 1129 .syss_offs = 0x0114,
0cfe8751
BC
1130 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1131 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1132 SYSS_HAS_RESET_STATUS),
7cffa6b8
BC
1133 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1134 SIDLE_SMART_WKUP),
f776471f
BC
1135 .sysc_fields = &omap_hwmod_sysc_type1,
1136};
1137
3b54baad 1138static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
fe13471c
BC
1139 .name = "gpio",
1140 .sysc = &omap44xx_gpio_sysc,
1141 .rev = 2,
f776471f
BC
1142};
1143
3b54baad
BC
1144/* gpio dev_attr */
1145static struct omap_gpio_dev_attr gpio_dev_attr = {
fe13471c
BC
1146 .bank_width = 32,
1147 .dbck_flag = true,
f776471f
BC
1148};
1149
3b54baad 1150/* gpio1 */
3b54baad
BC
1151static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1152 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
212738a4 1153 { .irq = -1 }
f776471f
BC
1154};
1155
3b54baad 1156static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
b399bca8 1157 { .role = "dbclk", .clk = "gpio1_dbclk" },
3b54baad
BC
1158};
1159
1160static struct omap_hwmod omap44xx_gpio1_hwmod = {
1161 .name = "gpio1",
1162 .class = &omap44xx_gpio_hwmod_class,
a5322c6f 1163 .clkdm_name = "l4_wkup_clkdm",
3b54baad 1164 .mpu_irqs = omap44xx_gpio1_irqs,
17b7e7d3 1165 .main_clk = "l4_wkup_clk_mux_ck",
f776471f
BC
1166 .prcm = {
1167 .omap4 = {
d0f0631d 1168 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
27bb00b5 1169 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
03fdefe5 1170 .modulemode = MODULEMODE_HWCTRL,
f776471f
BC
1171 },
1172 },
3b54baad
BC
1173 .opt_clks = gpio1_opt_clks,
1174 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1175 .dev_attr = &gpio_dev_attr,
f776471f
BC
1176};
1177
3b54baad 1178/* gpio2 */
3b54baad
BC
1179static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1180 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
212738a4 1181 { .irq = -1 }
f776471f
BC
1182};
1183
3b54baad 1184static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
b399bca8 1185 { .role = "dbclk", .clk = "gpio2_dbclk" },
3b54baad
BC
1186};
1187
1188static struct omap_hwmod omap44xx_gpio2_hwmod = {
1189 .name = "gpio2",
1190 .class = &omap44xx_gpio_hwmod_class,
a5322c6f 1191 .clkdm_name = "l4_per_clkdm",
b399bca8 1192 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
3b54baad 1193 .mpu_irqs = omap44xx_gpio2_irqs,
17b7e7d3 1194 .main_clk = "l4_div_ck",
f776471f
BC
1195 .prcm = {
1196 .omap4 = {
d0f0631d 1197 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
27bb00b5 1198 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
03fdefe5 1199 .modulemode = MODULEMODE_HWCTRL,
f776471f
BC
1200 },
1201 },
3b54baad
BC
1202 .opt_clks = gpio2_opt_clks,
1203 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1204 .dev_attr = &gpio_dev_attr,
f776471f
BC
1205};
1206
3b54baad 1207/* gpio3 */
3b54baad
BC
1208static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1209 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
212738a4 1210 { .irq = -1 }
f776471f
BC
1211};
1212
3b54baad 1213static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
b399bca8 1214 { .role = "dbclk", .clk = "gpio3_dbclk" },
3b54baad
BC
1215};
1216
1217static struct omap_hwmod omap44xx_gpio3_hwmod = {
1218 .name = "gpio3",
1219 .class = &omap44xx_gpio_hwmod_class,
a5322c6f 1220 .clkdm_name = "l4_per_clkdm",
b399bca8 1221 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
3b54baad 1222 .mpu_irqs = omap44xx_gpio3_irqs,
17b7e7d3 1223 .main_clk = "l4_div_ck",
f776471f
BC
1224 .prcm = {
1225 .omap4 = {
d0f0631d 1226 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
27bb00b5 1227 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
03fdefe5 1228 .modulemode = MODULEMODE_HWCTRL,
f776471f
BC
1229 },
1230 },
3b54baad
BC
1231 .opt_clks = gpio3_opt_clks,
1232 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1233 .dev_attr = &gpio_dev_attr,
f776471f
BC
1234};
1235
3b54baad 1236/* gpio4 */
3b54baad
BC
1237static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1238 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
212738a4 1239 { .irq = -1 }
f776471f
BC
1240};
1241
3b54baad 1242static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
b399bca8 1243 { .role = "dbclk", .clk = "gpio4_dbclk" },
3b54baad
BC
1244};
1245
1246static struct omap_hwmod omap44xx_gpio4_hwmod = {
1247 .name = "gpio4",
1248 .class = &omap44xx_gpio_hwmod_class,
a5322c6f 1249 .clkdm_name = "l4_per_clkdm",
b399bca8 1250 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
3b54baad 1251 .mpu_irqs = omap44xx_gpio4_irqs,
17b7e7d3 1252 .main_clk = "l4_div_ck",
f776471f
BC
1253 .prcm = {
1254 .omap4 = {
d0f0631d 1255 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
27bb00b5 1256 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
03fdefe5 1257 .modulemode = MODULEMODE_HWCTRL,
f776471f
BC
1258 },
1259 },
3b54baad
BC
1260 .opt_clks = gpio4_opt_clks,
1261 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1262 .dev_attr = &gpio_dev_attr,
f776471f
BC
1263};
1264
3b54baad 1265/* gpio5 */
3b54baad
BC
1266static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1267 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
212738a4 1268 { .irq = -1 }
55d2cb08
BC
1269};
1270
844a3b63
PW
1271static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
1272 { .role = "dbclk", .clk = "gpio5_dbclk" },
55d2cb08
BC
1273};
1274
3b54baad
BC
1275static struct omap_hwmod omap44xx_gpio5_hwmod = {
1276 .name = "gpio5",
1277 .class = &omap44xx_gpio_hwmod_class,
a5322c6f 1278 .clkdm_name = "l4_per_clkdm",
b399bca8 1279 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
3b54baad 1280 .mpu_irqs = omap44xx_gpio5_irqs,
17b7e7d3 1281 .main_clk = "l4_div_ck",
55d2cb08
BC
1282 .prcm = {
1283 .omap4 = {
d0f0631d 1284 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
27bb00b5 1285 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
03fdefe5 1286 .modulemode = MODULEMODE_HWCTRL,
55d2cb08
BC
1287 },
1288 },
3b54baad
BC
1289 .opt_clks = gpio5_opt_clks,
1290 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1291 .dev_attr = &gpio_dev_attr,
55d2cb08
BC
1292};
1293
3b54baad 1294/* gpio6 */
3b54baad
BC
1295static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1296 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
212738a4 1297 { .irq = -1 }
92b18d1c
BC
1298};
1299
3b54baad 1300static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
b399bca8 1301 { .role = "dbclk", .clk = "gpio6_dbclk" },
db12ba53
BC
1302};
1303
3b54baad
BC
1304static struct omap_hwmod omap44xx_gpio6_hwmod = {
1305 .name = "gpio6",
1306 .class = &omap44xx_gpio_hwmod_class,
a5322c6f 1307 .clkdm_name = "l4_per_clkdm",
b399bca8 1308 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
3b54baad 1309 .mpu_irqs = omap44xx_gpio6_irqs,
17b7e7d3 1310 .main_clk = "l4_div_ck",
3b54baad
BC
1311 .prcm = {
1312 .omap4 = {
d0f0631d 1313 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
27bb00b5 1314 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
03fdefe5 1315 .modulemode = MODULEMODE_HWCTRL,
3b54baad 1316 },
db12ba53 1317 },
3b54baad
BC
1318 .opt_clks = gpio6_opt_clks,
1319 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1320 .dev_attr = &gpio_dev_attr,
db12ba53
BC
1321};
1322
eb42b5d3
BC
1323/*
1324 * 'gpmc' class
1325 * general purpose memory controller
1326 */
1327
1328static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1329 .rev_offs = 0x0000,
1330 .sysc_offs = 0x0010,
1331 .syss_offs = 0x0014,
1332 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1333 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1334 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1335 .sysc_fields = &omap_hwmod_sysc_type1,
1336};
1337
1338static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1339 .name = "gpmc",
1340 .sysc = &omap44xx_gpmc_sysc,
1341};
1342
1343/* gpmc */
1344static struct omap_hwmod_irq_info omap44xx_gpmc_irqs[] = {
1345 { .irq = 20 + OMAP44XX_IRQ_GIC_START },
1346 { .irq = -1 }
1347};
1348
1349static struct omap_hwmod_dma_info omap44xx_gpmc_sdma_reqs[] = {
1350 { .dma_req = 3 + OMAP44XX_DMA_REQ_START },
1351 { .dma_req = -1 }
1352};
1353
1354static struct omap_hwmod omap44xx_gpmc_hwmod = {
1355 .name = "gpmc",
1356 .class = &omap44xx_gpmc_hwmod_class,
1357 .clkdm_name = "l3_2_clkdm",
49484a60
AM
1358 /*
1359 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
1360 * block. It is not being added due to any known bugs with
1361 * resetting the GPMC IP block, but rather because any timings
1362 * set by the bootloader are not being correctly programmed by
1363 * the kernel from the board file or DT data.
1364 * HWMOD_INIT_NO_RESET should be removed ASAP.
1365 */
eb42b5d3
BC
1366 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1367 .mpu_irqs = omap44xx_gpmc_irqs,
1368 .sdma_reqs = omap44xx_gpmc_sdma_reqs,
1369 .prcm = {
1370 .omap4 = {
1371 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1372 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1373 .modulemode = MODULEMODE_HWCTRL,
1374 },
1375 },
1376};
1377
9def390e
PW
1378/*
1379 * 'gpu' class
1380 * 2d/3d graphics accelerator
1381 */
1382
1383static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1384 .rev_offs = 0x1fc00,
1385 .sysc_offs = 0x1fc10,
1386 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1387 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1388 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1389 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1390 .sysc_fields = &omap_hwmod_sysc_type2,
1391};
1392
1393static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1394 .name = "gpu",
1395 .sysc = &omap44xx_gpu_sysc,
1396};
1397
1398/* gpu */
1399static struct omap_hwmod_irq_info omap44xx_gpu_irqs[] = {
1400 { .irq = 21 + OMAP44XX_IRQ_GIC_START },
1401 { .irq = -1 }
1402};
1403
1404static struct omap_hwmod omap44xx_gpu_hwmod = {
1405 .name = "gpu",
1406 .class = &omap44xx_gpu_hwmod_class,
1407 .clkdm_name = "l3_gfx_clkdm",
1408 .mpu_irqs = omap44xx_gpu_irqs,
ee877acd 1409 .main_clk = "sgx_clk_mux",
9def390e
PW
1410 .prcm = {
1411 .omap4 = {
1412 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1413 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1414 .modulemode = MODULEMODE_SWCTRL,
1415 },
1416 },
1417};
1418
a091c08e
PW
1419/*
1420 * 'hdq1w' class
1421 * hdq / 1-wire serial interface controller
1422 */
1423
1424static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1425 .rev_offs = 0x0000,
1426 .sysc_offs = 0x0014,
1427 .syss_offs = 0x0018,
1428 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1429 SYSS_HAS_RESET_STATUS),
1430 .sysc_fields = &omap_hwmod_sysc_type1,
1431};
1432
1433static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1434 .name = "hdq1w",
1435 .sysc = &omap44xx_hdq1w_sysc,
1436};
1437
1438/* hdq1w */
1439static struct omap_hwmod_irq_info omap44xx_hdq1w_irqs[] = {
1440 { .irq = 58 + OMAP44XX_IRQ_GIC_START },
1441 { .irq = -1 }
1442};
1443
1444static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1445 .name = "hdq1w",
1446 .class = &omap44xx_hdq1w_hwmod_class,
1447 .clkdm_name = "l4_per_clkdm",
1448 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1449 .mpu_irqs = omap44xx_hdq1w_irqs,
17b7e7d3 1450 .main_clk = "func_12m_fclk",
a091c08e
PW
1451 .prcm = {
1452 .omap4 = {
1453 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1454 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1455 .modulemode = MODULEMODE_SWCTRL,
1456 },
1457 },
1458};
1459
407a6888
BC
1460/*
1461 * 'hsi' class
1462 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1463 * serial if)
1464 */
1465
1466static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1467 .rev_offs = 0x0000,
1468 .sysc_offs = 0x0010,
1469 .syss_offs = 0x0014,
1470 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1471 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1472 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1473 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1474 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
c614ebf6 1475 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
407a6888
BC
1476 .sysc_fields = &omap_hwmod_sysc_type1,
1477};
1478
1479static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1480 .name = "hsi",
1481 .sysc = &omap44xx_hsi_sysc,
1482};
1483
1484/* hsi */
1485static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
1486 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
1487 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
1488 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
212738a4 1489 { .irq = -1 }
407a6888
BC
1490};
1491
407a6888
BC
1492static struct omap_hwmod omap44xx_hsi_hwmod = {
1493 .name = "hsi",
1494 .class = &omap44xx_hsi_hwmod_class,
a5322c6f 1495 .clkdm_name = "l3_init_clkdm",
407a6888 1496 .mpu_irqs = omap44xx_hsi_irqs,
407a6888 1497 .main_clk = "hsi_fck",
00fe610b 1498 .prcm = {
407a6888 1499 .omap4 = {
d0f0631d 1500 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
27bb00b5 1501 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
03fdefe5 1502 .modulemode = MODULEMODE_HWCTRL,
407a6888
BC
1503 },
1504 },
407a6888
BC
1505};
1506
3b54baad
BC
1507/*
1508 * 'i2c' class
1509 * multimaster high-speed i2c controller
1510 */
db12ba53 1511
3b54baad
BC
1512static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1513 .sysc_offs = 0x0010,
1514 .syss_offs = 0x0090,
1515 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1516 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
0cfe8751 1517 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
7cffa6b8
BC
1518 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1519 SIDLE_SMART_WKUP),
3e47dc6a 1520 .clockact = CLOCKACT_TEST_ICLK,
3b54baad 1521 .sysc_fields = &omap_hwmod_sysc_type1,
db12ba53
BC
1522};
1523
3b54baad 1524static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
fe13471c
BC
1525 .name = "i2c",
1526 .sysc = &omap44xx_i2c_sysc,
db791a75 1527 .rev = OMAP_I2C_IP_VERSION_2,
6d3c55fd 1528 .reset = &omap_i2c_reset,
db12ba53
BC
1529};
1530
4d4441a6 1531static struct omap_i2c_dev_attr i2c_dev_attr = {
972deb4f 1532 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
4d4441a6
AG
1533};
1534
3b54baad 1535/* i2c1 */
3b54baad
BC
1536static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1537 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
212738a4 1538 { .irq = -1 }
db12ba53
BC
1539};
1540
3b54baad
BC
1541static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1542 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1543 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
bc614958 1544 { .dma_req = -1 }
db12ba53
BC
1545};
1546
3b54baad
BC
1547static struct omap_hwmod omap44xx_i2c1_hwmod = {
1548 .name = "i2c1",
1549 .class = &omap44xx_i2c_hwmod_class,
a5322c6f 1550 .clkdm_name = "l4_per_clkdm",
3e47dc6a 1551 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
3b54baad 1552 .mpu_irqs = omap44xx_i2c1_irqs,
3b54baad 1553 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
17b7e7d3 1554 .main_clk = "func_96m_fclk",
92b18d1c
BC
1555 .prcm = {
1556 .omap4 = {
d0f0631d 1557 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
27bb00b5 1558 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
03fdefe5 1559 .modulemode = MODULEMODE_SWCTRL,
92b18d1c
BC
1560 },
1561 },
4d4441a6 1562 .dev_attr = &i2c_dev_attr,
92b18d1c
BC
1563};
1564
3b54baad 1565/* i2c2 */
3b54baad
BC
1566static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1567 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
212738a4 1568 { .irq = -1 }
92b18d1c
BC
1569};
1570
3b54baad
BC
1571static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1572 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1573 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
bc614958 1574 { .dma_req = -1 }
3b54baad
BC
1575};
1576
3b54baad
BC
1577static struct omap_hwmod omap44xx_i2c2_hwmod = {
1578 .name = "i2c2",
1579 .class = &omap44xx_i2c_hwmod_class,
a5322c6f 1580 .clkdm_name = "l4_per_clkdm",
3e47dc6a 1581 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
3b54baad 1582 .mpu_irqs = omap44xx_i2c2_irqs,
3b54baad 1583 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
17b7e7d3 1584 .main_clk = "func_96m_fclk",
db12ba53
BC
1585 .prcm = {
1586 .omap4 = {
d0f0631d 1587 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
27bb00b5 1588 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
03fdefe5 1589 .modulemode = MODULEMODE_SWCTRL,
db12ba53
BC
1590 },
1591 },
4d4441a6 1592 .dev_attr = &i2c_dev_attr,
db12ba53
BC
1593};
1594
3b54baad 1595/* i2c3 */
3b54baad
BC
1596static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1597 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
212738a4 1598 { .irq = -1 }
db12ba53
BC
1599};
1600
3b54baad
BC
1601static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1602 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1603 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
bc614958 1604 { .dma_req = -1 }
92b18d1c
BC
1605};
1606
3b54baad
BC
1607static struct omap_hwmod omap44xx_i2c3_hwmod = {
1608 .name = "i2c3",
1609 .class = &omap44xx_i2c_hwmod_class,
a5322c6f 1610 .clkdm_name = "l4_per_clkdm",
3e47dc6a 1611 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
3b54baad 1612 .mpu_irqs = omap44xx_i2c3_irqs,
3b54baad 1613 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
17b7e7d3 1614 .main_clk = "func_96m_fclk",
db12ba53
BC
1615 .prcm = {
1616 .omap4 = {
d0f0631d 1617 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
27bb00b5 1618 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
03fdefe5 1619 .modulemode = MODULEMODE_SWCTRL,
db12ba53
BC
1620 },
1621 },
4d4441a6 1622 .dev_attr = &i2c_dev_attr,
db12ba53
BC
1623};
1624
3b54baad 1625/* i2c4 */
3b54baad
BC
1626static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1627 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
212738a4 1628 { .irq = -1 }
db12ba53
BC
1629};
1630
3b54baad
BC
1631static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1632 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1633 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
bc614958 1634 { .dma_req = -1 }
db12ba53
BC
1635};
1636
3b54baad
BC
1637static struct omap_hwmod omap44xx_i2c4_hwmod = {
1638 .name = "i2c4",
1639 .class = &omap44xx_i2c_hwmod_class,
a5322c6f 1640 .clkdm_name = "l4_per_clkdm",
3e47dc6a 1641 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
3b54baad 1642 .mpu_irqs = omap44xx_i2c4_irqs,
3b54baad 1643 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
17b7e7d3 1644 .main_clk = "func_96m_fclk",
92b18d1c
BC
1645 .prcm = {
1646 .omap4 = {
d0f0631d 1647 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
27bb00b5 1648 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
03fdefe5 1649 .modulemode = MODULEMODE_SWCTRL,
92b18d1c
BC
1650 },
1651 },
4d4441a6 1652 .dev_attr = &i2c_dev_attr,
92b18d1c
BC
1653};
1654
407a6888
BC
1655/*
1656 * 'ipu' class
1657 * imaging processor unit
1658 */
1659
1660static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1661 .name = "ipu",
1662};
1663
1664/* ipu */
1665static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
1666 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
212738a4 1667 { .irq = -1 }
407a6888
BC
1668};
1669
f2f5736c 1670static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
407a6888 1671 { .name = "cpu0", .rst_shift = 0 },
407a6888 1672 { .name = "cpu1", .rst_shift = 1 },
407a6888
BC
1673};
1674
407a6888
BC
1675static struct omap_hwmod omap44xx_ipu_hwmod = {
1676 .name = "ipu",
1677 .class = &omap44xx_ipu_hwmod_class,
a5322c6f 1678 .clkdm_name = "ducati_clkdm",
407a6888 1679 .mpu_irqs = omap44xx_ipu_irqs,
407a6888
BC
1680 .rst_lines = omap44xx_ipu_resets,
1681 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
298ea44f 1682 .main_clk = "ducati_clk_mux_ck",
00fe610b 1683 .prcm = {
407a6888 1684 .omap4 = {
d0f0631d 1685 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
eaac329d 1686 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
27bb00b5 1687 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
03fdefe5 1688 .modulemode = MODULEMODE_HWCTRL,
407a6888
BC
1689 },
1690 },
407a6888
BC
1691};
1692
1693/*
1694 * 'iss' class
1695 * external images sensor pixel data processor
1696 */
1697
1698static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1699 .rev_offs = 0x0000,
1700 .sysc_offs = 0x0010,
d99de7f5
FGL
1701 /*
1702 * ISS needs 100 OCP clk cycles delay after a softreset before
1703 * accessing sysconfig again.
1704 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1705 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1706 *
1707 * TODO: Indicate errata when available.
1708 */
1709 .srst_udelay = 2,
407a6888
BC
1710 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1711 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1712 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1713 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
c614ebf6 1714 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
407a6888
BC
1715 .sysc_fields = &omap_hwmod_sysc_type2,
1716};
1717
1718static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1719 .name = "iss",
1720 .sysc = &omap44xx_iss_sysc,
1721};
1722
1723/* iss */
1724static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
1725 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
212738a4 1726 { .irq = -1 }
407a6888
BC
1727};
1728
1729static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
1730 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
1731 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
1732 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
1733 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
bc614958 1734 { .dma_req = -1 }
407a6888
BC
1735};
1736
407a6888
BC
1737static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1738 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1739};
1740
1741static struct omap_hwmod omap44xx_iss_hwmod = {
1742 .name = "iss",
1743 .class = &omap44xx_iss_hwmod_class,
a5322c6f 1744 .clkdm_name = "iss_clkdm",
407a6888 1745 .mpu_irqs = omap44xx_iss_irqs,
407a6888 1746 .sdma_reqs = omap44xx_iss_sdma_reqs,
17b7e7d3 1747 .main_clk = "ducati_clk_mux_ck",
00fe610b 1748 .prcm = {
407a6888 1749 .omap4 = {
d0f0631d 1750 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
27bb00b5 1751 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
03fdefe5 1752 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
1753 },
1754 },
1755 .opt_clks = iss_opt_clks,
1756 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
407a6888
BC
1757};
1758
8f25bdc5
BC
1759/*
1760 * 'iva' class
1761 * multi-standard video encoder/decoder hardware accelerator
1762 */
1763
1764static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
fe13471c 1765 .name = "iva",
8f25bdc5
BC
1766};
1767
1768/* iva */
1769static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1770 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1771 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1772 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
212738a4 1773 { .irq = -1 }
8f25bdc5
BC
1774};
1775
1776static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
8f25bdc5 1777 { .name = "seq0", .rst_shift = 0 },
8f25bdc5 1778 { .name = "seq1", .rst_shift = 1 },
f2f5736c 1779 { .name = "logic", .rst_shift = 2 },
8f25bdc5
BC
1780};
1781
8f25bdc5
BC
1782static struct omap_hwmod omap44xx_iva_hwmod = {
1783 .name = "iva",
1784 .class = &omap44xx_iva_hwmod_class,
a5322c6f 1785 .clkdm_name = "ivahd_clkdm",
8f25bdc5 1786 .mpu_irqs = omap44xx_iva_irqs,
8f25bdc5
BC
1787 .rst_lines = omap44xx_iva_resets,
1788 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
17b7e7d3 1789 .main_clk = "dpll_iva_m5x2_ck",
8f25bdc5
BC
1790 .prcm = {
1791 .omap4 = {
d0f0631d 1792 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
eaac329d 1793 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
27bb00b5 1794 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
03fdefe5 1795 .modulemode = MODULEMODE_HWCTRL,
8f25bdc5
BC
1796 },
1797 },
8f25bdc5
BC
1798};
1799
407a6888
BC
1800/*
1801 * 'kbd' class
1802 * keyboard controller
1803 */
1804
1805static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1806 .rev_offs = 0x0000,
1807 .sysc_offs = 0x0010,
1808 .syss_offs = 0x0014,
1809 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1810 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1811 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1812 SYSS_HAS_RESET_STATUS),
1813 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1814 .sysc_fields = &omap_hwmod_sysc_type1,
1815};
1816
1817static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1818 .name = "kbd",
1819 .sysc = &omap44xx_kbd_sysc,
1820};
1821
1822/* kbd */
407a6888
BC
1823static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
1824 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
212738a4 1825 { .irq = -1 }
407a6888
BC
1826};
1827
407a6888
BC
1828static struct omap_hwmod omap44xx_kbd_hwmod = {
1829 .name = "kbd",
1830 .class = &omap44xx_kbd_hwmod_class,
a5322c6f 1831 .clkdm_name = "l4_wkup_clkdm",
407a6888 1832 .mpu_irqs = omap44xx_kbd_irqs,
17b7e7d3 1833 .main_clk = "sys_32k_ck",
00fe610b 1834 .prcm = {
407a6888 1835 .omap4 = {
d0f0631d 1836 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
27bb00b5 1837 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
03fdefe5 1838 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
1839 },
1840 },
407a6888
BC
1841};
1842
ec5df927
BC
1843/*
1844 * 'mailbox' class
1845 * mailbox module allowing communication between the on-chip processors using a
1846 * queued mailbox-interrupt mechanism.
1847 */
1848
1849static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1850 .rev_offs = 0x0000,
1851 .sysc_offs = 0x0010,
1852 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1853 SYSC_HAS_SOFTRESET),
1854 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1855 .sysc_fields = &omap_hwmod_sysc_type2,
1856};
1857
1858static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1859 .name = "mailbox",
1860 .sysc = &omap44xx_mailbox_sysc,
1861};
1862
1863/* mailbox */
ec5df927
BC
1864static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
1865 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
212738a4 1866 { .irq = -1 }
ec5df927
BC
1867};
1868
ec5df927
BC
1869static struct omap_hwmod omap44xx_mailbox_hwmod = {
1870 .name = "mailbox",
1871 .class = &omap44xx_mailbox_hwmod_class,
a5322c6f 1872 .clkdm_name = "l4_cfg_clkdm",
ec5df927 1873 .mpu_irqs = omap44xx_mailbox_irqs,
00fe610b 1874 .prcm = {
ec5df927 1875 .omap4 = {
d0f0631d 1876 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
27bb00b5 1877 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
ec5df927
BC
1878 },
1879 },
ec5df927
BC
1880};
1881
896d4e98
BC
1882/*
1883 * 'mcasp' class
1884 * multi-channel audio serial port controller
1885 */
1886
1887/* The IP is not compliant to type1 / type2 scheme */
1888static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1889 .sidle_shift = 0,
1890};
1891
1892static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1893 .sysc_offs = 0x0004,
1894 .sysc_flags = SYSC_HAS_SIDLEMODE,
1895 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1896 SIDLE_SMART_WKUP),
1897 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1898};
1899
1900static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1901 .name = "mcasp",
1902 .sysc = &omap44xx_mcasp_sysc,
1903};
1904
1905/* mcasp */
1906static struct omap_hwmod_irq_info omap44xx_mcasp_irqs[] = {
1907 { .name = "arevt", .irq = 108 + OMAP44XX_IRQ_GIC_START },
1908 { .name = "axevt", .irq = 109 + OMAP44XX_IRQ_GIC_START },
1909 { .irq = -1 }
1910};
1911
1912static struct omap_hwmod_dma_info omap44xx_mcasp_sdma_reqs[] = {
1913 { .name = "axevt", .dma_req = 7 + OMAP44XX_DMA_REQ_START },
1914 { .name = "arevt", .dma_req = 10 + OMAP44XX_DMA_REQ_START },
1915 { .dma_req = -1 }
1916};
1917
1918static struct omap_hwmod omap44xx_mcasp_hwmod = {
1919 .name = "mcasp",
1920 .class = &omap44xx_mcasp_hwmod_class,
1921 .clkdm_name = "abe_clkdm",
1922 .mpu_irqs = omap44xx_mcasp_irqs,
1923 .sdma_reqs = omap44xx_mcasp_sdma_reqs,
ee877acd 1924 .main_clk = "func_mcasp_abe_gfclk",
896d4e98
BC
1925 .prcm = {
1926 .omap4 = {
1927 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1928 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1929 .modulemode = MODULEMODE_SWCTRL,
1930 },
1931 },
1932};
1933
4ddff493
BC
1934/*
1935 * 'mcbsp' class
1936 * multi channel buffered serial port controller
1937 */
1938
1939static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1940 .sysc_offs = 0x008c,
1941 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1942 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1943 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1944 .sysc_fields = &omap_hwmod_sysc_type1,
1945};
1946
1947static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1948 .name = "mcbsp",
1949 .sysc = &omap44xx_mcbsp_sysc,
cb7e9ded 1950 .rev = MCBSP_CONFIG_TYPE4,
4ddff493
BC
1951};
1952
1953/* mcbsp1 */
4ddff493 1954static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
437e8970 1955 { .name = "common", .irq = 17 + OMAP44XX_IRQ_GIC_START },
212738a4 1956 { .irq = -1 }
4ddff493
BC
1957};
1958
1959static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
1960 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
1961 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
bc614958 1962 { .dma_req = -1 }
4ddff493
BC
1963};
1964
503d0ea2
PW
1965static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1966 { .role = "pad_fck", .clk = "pad_clks_ck" },
d7a0b513 1967 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
503d0ea2
PW
1968};
1969
4ddff493
BC
1970static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1971 .name = "mcbsp1",
1972 .class = &omap44xx_mcbsp_hwmod_class,
a5322c6f 1973 .clkdm_name = "abe_clkdm",
4ddff493 1974 .mpu_irqs = omap44xx_mcbsp1_irqs,
4ddff493 1975 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
ee877acd 1976 .main_clk = "func_mcbsp1_gfclk",
4ddff493
BC
1977 .prcm = {
1978 .omap4 = {
d0f0631d 1979 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
27bb00b5 1980 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
03fdefe5 1981 .modulemode = MODULEMODE_SWCTRL,
4ddff493
BC
1982 },
1983 },
503d0ea2
PW
1984 .opt_clks = mcbsp1_opt_clks,
1985 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
4ddff493
BC
1986};
1987
1988/* mcbsp2 */
4ddff493 1989static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
437e8970 1990 { .name = "common", .irq = 22 + OMAP44XX_IRQ_GIC_START },
212738a4 1991 { .irq = -1 }
4ddff493
BC
1992};
1993
1994static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
1995 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
1996 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
bc614958 1997 { .dma_req = -1 }
4ddff493
BC
1998};
1999
844a3b63
PW
2000static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
2001 { .role = "pad_fck", .clk = "pad_clks_ck" },
d7a0b513 2002 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
503d0ea2
PW
2003};
2004
4ddff493
BC
2005static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2006 .name = "mcbsp2",
2007 .class = &omap44xx_mcbsp_hwmod_class,
a5322c6f 2008 .clkdm_name = "abe_clkdm",
4ddff493 2009 .mpu_irqs = omap44xx_mcbsp2_irqs,
4ddff493 2010 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
ee877acd 2011 .main_clk = "func_mcbsp2_gfclk",
4ddff493
BC
2012 .prcm = {
2013 .omap4 = {
d0f0631d 2014 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
27bb00b5 2015 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
03fdefe5 2016 .modulemode = MODULEMODE_SWCTRL,
4ddff493
BC
2017 },
2018 },
503d0ea2
PW
2019 .opt_clks = mcbsp2_opt_clks,
2020 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
4ddff493
BC
2021};
2022
2023/* mcbsp3 */
4ddff493 2024static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
437e8970 2025 { .name = "common", .irq = 23 + OMAP44XX_IRQ_GIC_START },
212738a4 2026 { .irq = -1 }
4ddff493
BC
2027};
2028
2029static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2030 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2031 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
bc614958 2032 { .dma_req = -1 }
4ddff493
BC
2033};
2034
503d0ea2
PW
2035static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
2036 { .role = "pad_fck", .clk = "pad_clks_ck" },
d7a0b513 2037 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
503d0ea2
PW
2038};
2039
4ddff493
BC
2040static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2041 .name = "mcbsp3",
2042 .class = &omap44xx_mcbsp_hwmod_class,
a5322c6f 2043 .clkdm_name = "abe_clkdm",
4ddff493 2044 .mpu_irqs = omap44xx_mcbsp3_irqs,
4ddff493 2045 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
ee877acd 2046 .main_clk = "func_mcbsp3_gfclk",
4ddff493
BC
2047 .prcm = {
2048 .omap4 = {
d0f0631d 2049 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
27bb00b5 2050 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
03fdefe5 2051 .modulemode = MODULEMODE_SWCTRL,
4ddff493
BC
2052 },
2053 },
503d0ea2
PW
2054 .opt_clks = mcbsp3_opt_clks,
2055 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
4ddff493
BC
2056};
2057
2058/* mcbsp4 */
4ddff493 2059static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
437e8970 2060 { .name = "common", .irq = 16 + OMAP44XX_IRQ_GIC_START },
212738a4 2061 { .irq = -1 }
4ddff493
BC
2062};
2063
2064static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
2065 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
2066 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
bc614958 2067 { .dma_req = -1 }
4ddff493
BC
2068};
2069
503d0ea2
PW
2070static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
2071 { .role = "pad_fck", .clk = "pad_clks_ck" },
d7a0b513 2072 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
503d0ea2
PW
2073};
2074
4ddff493
BC
2075static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
2076 .name = "mcbsp4",
2077 .class = &omap44xx_mcbsp_hwmod_class,
a5322c6f 2078 .clkdm_name = "l4_per_clkdm",
4ddff493 2079 .mpu_irqs = omap44xx_mcbsp4_irqs,
4ddff493 2080 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
ee877acd 2081 .main_clk = "per_mcbsp4_gfclk",
4ddff493
BC
2082 .prcm = {
2083 .omap4 = {
d0f0631d 2084 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
27bb00b5 2085 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
03fdefe5 2086 .modulemode = MODULEMODE_SWCTRL,
4ddff493
BC
2087 },
2088 },
503d0ea2
PW
2089 .opt_clks = mcbsp4_opt_clks,
2090 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
4ddff493
BC
2091};
2092
407a6888
BC
2093/*
2094 * 'mcpdm' class
2095 * multi channel pdm controller (proprietary interface with phoenix power
2096 * ic)
2097 */
2098
2099static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
2100 .rev_offs = 0x0000,
2101 .sysc_offs = 0x0010,
2102 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2103 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2104 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2105 SIDLE_SMART_WKUP),
2106 .sysc_fields = &omap_hwmod_sysc_type2,
2107};
2108
2109static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
2110 .name = "mcpdm",
2111 .sysc = &omap44xx_mcpdm_sysc,
2112};
2113
2114/* mcpdm */
407a6888
BC
2115static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
2116 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
212738a4 2117 { .irq = -1 }
407a6888
BC
2118};
2119
2120static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
2121 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
2122 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
bc614958 2123 { .dma_req = -1 }
407a6888
BC
2124};
2125
407a6888
BC
2126static struct omap_hwmod omap44xx_mcpdm_hwmod = {
2127 .name = "mcpdm",
2128 .class = &omap44xx_mcpdm_hwmod_class,
a5322c6f 2129 .clkdm_name = "abe_clkdm",
bc05244e
PW
2130 /*
2131 * It's suspected that the McPDM requires an off-chip main
2132 * functional clock, controlled via I2C. This IP block is
2133 * currently reset very early during boot, before I2C is
2134 * available, so it doesn't seem that we have any choice in
2135 * the kernel other than to avoid resetting it.
12d82e4b
PU
2136 *
2137 * Also, McPDM needs to be configured to NO_IDLE mode when it
2138 * is in used otherwise vital clocks will be gated which
2139 * results 'slow motion' audio playback.
bc05244e 2140 */
12d82e4b 2141 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
407a6888 2142 .mpu_irqs = omap44xx_mcpdm_irqs,
407a6888 2143 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
17b7e7d3 2144 .main_clk = "pad_clks_ck",
00fe610b 2145 .prcm = {
407a6888 2146 .omap4 = {
d0f0631d 2147 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
27bb00b5 2148 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
03fdefe5 2149 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
2150 },
2151 },
407a6888
BC
2152};
2153
9bcbd7f0
BC
2154/*
2155 * 'mcspi' class
2156 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2157 * bus
2158 */
2159
2160static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
2161 .rev_offs = 0x0000,
2162 .sysc_offs = 0x0010,
2163 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2164 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2165 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2166 SIDLE_SMART_WKUP),
2167 .sysc_fields = &omap_hwmod_sysc_type2,
2168};
2169
2170static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
2171 .name = "mcspi",
2172 .sysc = &omap44xx_mcspi_sysc,
905a74d9 2173 .rev = OMAP4_MCSPI_REV,
9bcbd7f0
BC
2174};
2175
2176/* mcspi1 */
9bcbd7f0
BC
2177static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
2178 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
212738a4 2179 { .irq = -1 }
9bcbd7f0
BC
2180};
2181
2182static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
2183 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
2184 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
2185 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
2186 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
2187 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
2188 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
2189 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
2190 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
bc614958 2191 { .dma_req = -1 }
9bcbd7f0
BC
2192};
2193
905a74d9
BC
2194/* mcspi1 dev_attr */
2195static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
2196 .num_chipselect = 4,
2197};
2198
9bcbd7f0
BC
2199static struct omap_hwmod omap44xx_mcspi1_hwmod = {
2200 .name = "mcspi1",
2201 .class = &omap44xx_mcspi_hwmod_class,
a5322c6f 2202 .clkdm_name = "l4_per_clkdm",
9bcbd7f0 2203 .mpu_irqs = omap44xx_mcspi1_irqs,
9bcbd7f0 2204 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
17b7e7d3 2205 .main_clk = "func_48m_fclk",
9bcbd7f0
BC
2206 .prcm = {
2207 .omap4 = {
d0f0631d 2208 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
27bb00b5 2209 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
03fdefe5 2210 .modulemode = MODULEMODE_SWCTRL,
9bcbd7f0
BC
2211 },
2212 },
905a74d9 2213 .dev_attr = &mcspi1_dev_attr,
9bcbd7f0
BC
2214};
2215
2216/* mcspi2 */
9bcbd7f0
BC
2217static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
2218 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
212738a4 2219 { .irq = -1 }
9bcbd7f0
BC
2220};
2221
2222static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
2223 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
2224 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
2225 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
2226 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
bc614958 2227 { .dma_req = -1 }
9bcbd7f0
BC
2228};
2229
905a74d9
BC
2230/* mcspi2 dev_attr */
2231static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
2232 .num_chipselect = 2,
2233};
2234
9bcbd7f0
BC
2235static struct omap_hwmod omap44xx_mcspi2_hwmod = {
2236 .name = "mcspi2",
2237 .class = &omap44xx_mcspi_hwmod_class,
a5322c6f 2238 .clkdm_name = "l4_per_clkdm",
9bcbd7f0 2239 .mpu_irqs = omap44xx_mcspi2_irqs,
9bcbd7f0 2240 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
17b7e7d3 2241 .main_clk = "func_48m_fclk",
9bcbd7f0
BC
2242 .prcm = {
2243 .omap4 = {
d0f0631d 2244 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
27bb00b5 2245 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
03fdefe5 2246 .modulemode = MODULEMODE_SWCTRL,
9bcbd7f0
BC
2247 },
2248 },
905a74d9 2249 .dev_attr = &mcspi2_dev_attr,
9bcbd7f0
BC
2250};
2251
2252/* mcspi3 */
9bcbd7f0
BC
2253static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
2254 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
212738a4 2255 { .irq = -1 }
9bcbd7f0
BC
2256};
2257
2258static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
2259 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
2260 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
2261 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
2262 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
bc614958 2263 { .dma_req = -1 }
9bcbd7f0
BC
2264};
2265
905a74d9
BC
2266/* mcspi3 dev_attr */
2267static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
2268 .num_chipselect = 2,
2269};
2270
9bcbd7f0
BC
2271static struct omap_hwmod omap44xx_mcspi3_hwmod = {
2272 .name = "mcspi3",
2273 .class = &omap44xx_mcspi_hwmod_class,
a5322c6f 2274 .clkdm_name = "l4_per_clkdm",
9bcbd7f0 2275 .mpu_irqs = omap44xx_mcspi3_irqs,
9bcbd7f0 2276 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
17b7e7d3 2277 .main_clk = "func_48m_fclk",
9bcbd7f0
BC
2278 .prcm = {
2279 .omap4 = {
d0f0631d 2280 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
27bb00b5 2281 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
03fdefe5 2282 .modulemode = MODULEMODE_SWCTRL,
9bcbd7f0
BC
2283 },
2284 },
905a74d9 2285 .dev_attr = &mcspi3_dev_attr,
9bcbd7f0
BC
2286};
2287
2288/* mcspi4 */
9bcbd7f0
BC
2289static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
2290 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
212738a4 2291 { .irq = -1 }
9bcbd7f0
BC
2292};
2293
2294static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
2295 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
2296 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
bc614958 2297 { .dma_req = -1 }
9bcbd7f0
BC
2298};
2299
905a74d9
BC
2300/* mcspi4 dev_attr */
2301static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
2302 .num_chipselect = 1,
2303};
2304
9bcbd7f0
BC
2305static struct omap_hwmod omap44xx_mcspi4_hwmod = {
2306 .name = "mcspi4",
2307 .class = &omap44xx_mcspi_hwmod_class,
a5322c6f 2308 .clkdm_name = "l4_per_clkdm",
9bcbd7f0 2309 .mpu_irqs = omap44xx_mcspi4_irqs,
9bcbd7f0 2310 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
17b7e7d3 2311 .main_clk = "func_48m_fclk",
9bcbd7f0
BC
2312 .prcm = {
2313 .omap4 = {
d0f0631d 2314 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
27bb00b5 2315 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
03fdefe5 2316 .modulemode = MODULEMODE_SWCTRL,
9bcbd7f0
BC
2317 },
2318 },
905a74d9 2319 .dev_attr = &mcspi4_dev_attr,
9bcbd7f0
BC
2320};
2321
407a6888
BC
2322/*
2323 * 'mmc' class
2324 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
2325 */
2326
2327static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
2328 .rev_offs = 0x0000,
2329 .sysc_offs = 0x0010,
2330 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
2331 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2332 SYSC_HAS_SOFTRESET),
2333 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2334 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
c614ebf6 2335 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
407a6888
BC
2336 .sysc_fields = &omap_hwmod_sysc_type2,
2337};
2338
2339static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
2340 .name = "mmc",
2341 .sysc = &omap44xx_mmc_sysc,
2342};
2343
2344/* mmc1 */
2345static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
2346 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
212738a4 2347 { .irq = -1 }
407a6888
BC
2348};
2349
2350static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
2351 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
2352 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
bc614958 2353 { .dma_req = -1 }
407a6888
BC
2354};
2355
6ab8946f
KK
2356/* mmc1 dev_attr */
2357static struct omap_mmc_dev_attr mmc1_dev_attr = {
2358 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2359};
2360
407a6888
BC
2361static struct omap_hwmod omap44xx_mmc1_hwmod = {
2362 .name = "mmc1",
2363 .class = &omap44xx_mmc_hwmod_class,
a5322c6f 2364 .clkdm_name = "l3_init_clkdm",
407a6888 2365 .mpu_irqs = omap44xx_mmc1_irqs,
407a6888 2366 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
ee877acd 2367 .main_clk = "hsmmc1_fclk",
00fe610b 2368 .prcm = {
407a6888 2369 .omap4 = {
d0f0631d 2370 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
27bb00b5 2371 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
03fdefe5 2372 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
2373 },
2374 },
6ab8946f 2375 .dev_attr = &mmc1_dev_attr,
407a6888
BC
2376};
2377
2378/* mmc2 */
2379static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
2380 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
212738a4 2381 { .irq = -1 }
407a6888
BC
2382};
2383
2384static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
2385 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
2386 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
bc614958 2387 { .dma_req = -1 }
407a6888
BC
2388};
2389
407a6888
BC
2390static struct omap_hwmod omap44xx_mmc2_hwmod = {
2391 .name = "mmc2",
2392 .class = &omap44xx_mmc_hwmod_class,
a5322c6f 2393 .clkdm_name = "l3_init_clkdm",
407a6888 2394 .mpu_irqs = omap44xx_mmc2_irqs,
407a6888 2395 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
ee877acd 2396 .main_clk = "hsmmc2_fclk",
00fe610b 2397 .prcm = {
407a6888 2398 .omap4 = {
d0f0631d 2399 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
27bb00b5 2400 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
03fdefe5 2401 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
2402 },
2403 },
407a6888
BC
2404};
2405
2406/* mmc3 */
407a6888
BC
2407static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
2408 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
212738a4 2409 { .irq = -1 }
407a6888
BC
2410};
2411
2412static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2413 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2414 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
bc614958 2415 { .dma_req = -1 }
407a6888
BC
2416};
2417
407a6888
BC
2418static struct omap_hwmod omap44xx_mmc3_hwmod = {
2419 .name = "mmc3",
2420 .class = &omap44xx_mmc_hwmod_class,
a5322c6f 2421 .clkdm_name = "l4_per_clkdm",
407a6888 2422 .mpu_irqs = omap44xx_mmc3_irqs,
407a6888 2423 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
17b7e7d3 2424 .main_clk = "func_48m_fclk",
00fe610b 2425 .prcm = {
407a6888 2426 .omap4 = {
d0f0631d 2427 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
27bb00b5 2428 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
03fdefe5 2429 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
2430 },
2431 },
407a6888
BC
2432};
2433
2434/* mmc4 */
407a6888
BC
2435static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
2436 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
212738a4 2437 { .irq = -1 }
407a6888
BC
2438};
2439
2440static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2441 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2442 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
bc614958 2443 { .dma_req = -1 }
407a6888
BC
2444};
2445
407a6888
BC
2446static struct omap_hwmod omap44xx_mmc4_hwmod = {
2447 .name = "mmc4",
2448 .class = &omap44xx_mmc_hwmod_class,
a5322c6f 2449 .clkdm_name = "l4_per_clkdm",
407a6888 2450 .mpu_irqs = omap44xx_mmc4_irqs,
407a6888 2451 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
17b7e7d3 2452 .main_clk = "func_48m_fclk",
00fe610b 2453 .prcm = {
407a6888 2454 .omap4 = {
d0f0631d 2455 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
27bb00b5 2456 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
03fdefe5 2457 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
2458 },
2459 },
407a6888
BC
2460};
2461
2462/* mmc5 */
407a6888
BC
2463static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
2464 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
212738a4 2465 { .irq = -1 }
407a6888
BC
2466};
2467
2468static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2469 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2470 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
bc614958 2471 { .dma_req = -1 }
407a6888
BC
2472};
2473
407a6888
BC
2474static struct omap_hwmod omap44xx_mmc5_hwmod = {
2475 .name = "mmc5",
2476 .class = &omap44xx_mmc_hwmod_class,
a5322c6f 2477 .clkdm_name = "l4_per_clkdm",
407a6888 2478 .mpu_irqs = omap44xx_mmc5_irqs,
407a6888 2479 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
17b7e7d3 2480 .main_clk = "func_48m_fclk",
00fe610b 2481 .prcm = {
407a6888 2482 .omap4 = {
d0f0631d 2483 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
27bb00b5 2484 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
03fdefe5 2485 .modulemode = MODULEMODE_SWCTRL,
407a6888
BC
2486 },
2487 },
407a6888
BC
2488};
2489
230844db
ORL
2490/*
2491 * 'mmu' class
2492 * The memory management unit performs virtual to physical address translation
2493 * for its requestors.
2494 */
2495
2496static struct omap_hwmod_class_sysconfig mmu_sysc = {
2497 .rev_offs = 0x000,
2498 .sysc_offs = 0x010,
2499 .syss_offs = 0x014,
2500 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2501 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2503 .sysc_fields = &omap_hwmod_sysc_type1,
2504};
2505
2506static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2507 .name = "mmu",
2508 .sysc = &mmu_sysc,
2509};
2510
2511/* mmu ipu */
2512
2513static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
2514 .da_start = 0x0,
2515 .da_end = 0xfffff000,
2516 .nr_tlb_entries = 32,
2517};
2518
2519static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
2520static struct omap_hwmod_irq_info omap44xx_mmu_ipu_irqs[] = {
2521 { .irq = 100 + OMAP44XX_IRQ_GIC_START, },
2522 { .irq = -1 }
2523};
2524
2525static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2526 { .name = "mmu_cache", .rst_shift = 2 },
2527};
2528
2529static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2530 {
2531 .pa_start = 0x55082000,
2532 .pa_end = 0x550820ff,
2533 .flags = ADDR_TYPE_RT,
2534 },
2535 { }
2536};
2537
2538/* l3_main_2 -> mmu_ipu */
2539static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2540 .master = &omap44xx_l3_main_2_hwmod,
2541 .slave = &omap44xx_mmu_ipu_hwmod,
2542 .clk = "l3_div_ck",
2543 .addr = omap44xx_mmu_ipu_addrs,
2544 .user = OCP_USER_MPU | OCP_USER_SDMA,
2545};
2546
2547static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2548 .name = "mmu_ipu",
2549 .class = &omap44xx_mmu_hwmod_class,
2550 .clkdm_name = "ducati_clkdm",
2551 .mpu_irqs = omap44xx_mmu_ipu_irqs,
2552 .rst_lines = omap44xx_mmu_ipu_resets,
2553 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2554 .main_clk = "ducati_clk_mux_ck",
2555 .prcm = {
2556 .omap4 = {
2557 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2558 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2559 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2560 .modulemode = MODULEMODE_HWCTRL,
2561 },
2562 },
2563 .dev_attr = &mmu_ipu_dev_attr,
2564};
2565
2566/* mmu dsp */
2567
2568static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
2569 .da_start = 0x0,
2570 .da_end = 0xfffff000,
2571 .nr_tlb_entries = 32,
2572};
2573
2574static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
2575static struct omap_hwmod_irq_info omap44xx_mmu_dsp_irqs[] = {
2576 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
2577 { .irq = -1 }
2578};
2579
2580static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2581 { .name = "mmu_cache", .rst_shift = 1 },
2582};
2583
2584static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2585 {
2586 .pa_start = 0x4a066000,
2587 .pa_end = 0x4a0660ff,
2588 .flags = ADDR_TYPE_RT,
2589 },
2590 { }
2591};
2592
2593/* l4_cfg -> dsp */
2594static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2595 .master = &omap44xx_l4_cfg_hwmod,
2596 .slave = &omap44xx_mmu_dsp_hwmod,
2597 .clk = "l4_div_ck",
2598 .addr = omap44xx_mmu_dsp_addrs,
2599 .user = OCP_USER_MPU | OCP_USER_SDMA,
2600};
2601
2602static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2603 .name = "mmu_dsp",
2604 .class = &omap44xx_mmu_hwmod_class,
2605 .clkdm_name = "tesla_clkdm",
2606 .mpu_irqs = omap44xx_mmu_dsp_irqs,
2607 .rst_lines = omap44xx_mmu_dsp_resets,
2608 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2609 .main_clk = "dpll_iva_m4x2_ck",
2610 .prcm = {
2611 .omap4 = {
2612 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2613 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2614 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2615 .modulemode = MODULEMODE_HWCTRL,
2616 },
2617 },
2618 .dev_attr = &mmu_dsp_dev_attr,
2619};
2620
3b54baad
BC
2621/*
2622 * 'mpu' class
2623 * mpu sub-system
2624 */
2625
2626static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
fe13471c 2627 .name = "mpu",
db12ba53
BC
2628};
2629
3b54baad
BC
2630/* mpu */
2631static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
76a5d9bf
JH
2632 { .name = "pmu0", .irq = 54 + OMAP44XX_IRQ_GIC_START },
2633 { .name = "pmu1", .irq = 55 + OMAP44XX_IRQ_GIC_START },
3b54baad
BC
2634 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
2635 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
2636 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
212738a4 2637 { .irq = -1 }
db12ba53
BC
2638};
2639
3b54baad
BC
2640static struct omap_hwmod omap44xx_mpu_hwmod = {
2641 .name = "mpu",
2642 .class = &omap44xx_mpu_hwmod_class,
a5322c6f 2643 .clkdm_name = "mpuss_clkdm",
7ecc5373 2644 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
3b54baad 2645 .mpu_irqs = omap44xx_mpu_irqs,
3b54baad 2646 .main_clk = "dpll_mpu_m2_ck",
db12ba53
BC
2647 .prcm = {
2648 .omap4 = {
d0f0631d 2649 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
27bb00b5 2650 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
db12ba53
BC
2651 },
2652 },
db12ba53
BC
2653};
2654
e17f18c0
PW
2655/*
2656 * 'ocmc_ram' class
2657 * top-level core on-chip ram
2658 */
2659
2660static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2661 .name = "ocmc_ram",
2662};
2663
2664/* ocmc_ram */
2665static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2666 .name = "ocmc_ram",
2667 .class = &omap44xx_ocmc_ram_hwmod_class,
2668 .clkdm_name = "l3_2_clkdm",
2669 .prcm = {
2670 .omap4 = {
2671 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2672 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2673 },
2674 },
2675};
2676
0c668875
BC
2677/*
2678 * 'ocp2scp' class
2679 * bridge to transform ocp interface protocol to scp (serial control port)
2680 * protocol
2681 */
2682
33c976ec
BC
2683static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2684 .rev_offs = 0x0000,
2685 .sysc_offs = 0x0010,
2686 .syss_offs = 0x0014,
2687 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2688 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2689 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2690 .sysc_fields = &omap_hwmod_sysc_type1,
2691};
2692
0c668875
BC
2693static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2694 .name = "ocp2scp",
33c976ec 2695 .sysc = &omap44xx_ocp2scp_sysc,
0c668875
BC
2696};
2697
637874dd
KVA
2698/* ocp2scp dev_attr */
2699static struct resource omap44xx_usb_phy_and_pll_addrs[] = {
2700 {
2701 .name = "usb_phy",
2702 .start = 0x4a0ad080,
2703 .end = 0x4a0ae000,
2704 .flags = IORESOURCE_MEM,
2705 },
637874dd
KVA
2706 { }
2707};
2708
2709static struct omap_ocp2scp_dev ocp2scp_dev_attr[] = {
2710 {
2711 .drv_name = "omap-usb2",
2712 .res = omap44xx_usb_phy_and_pll_addrs,
2713 },
2714 { }
2715};
2716
0c668875 2717/* ocp2scp_usb_phy */
0c668875
BC
2718static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2719 .name = "ocp2scp_usb_phy",
2720 .class = &omap44xx_ocp2scp_hwmod_class,
2721 .clkdm_name = "l3_init_clkdm",
f4d7a536
KVA
2722 /*
2723 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2724 * block as an "optional clock," and normally should never be
2725 * specified as the main_clk for an OMAP IP block. However it
2726 * turns out that this clock is actually the main clock for
2727 * the ocp2scp_usb_phy IP block:
2728 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2729 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2730 * to be the best workaround.
2731 */
2732 .main_clk = "ocp2scp_usb_phy_phy_48m",
0c668875
BC
2733 .prcm = {
2734 .omap4 = {
2735 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2736 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2737 .modulemode = MODULEMODE_HWCTRL,
2738 },
2739 },
637874dd 2740 .dev_attr = ocp2scp_dev_attr,
0c668875
BC
2741};
2742
794b480a
PW
2743/*
2744 * 'prcm' class
2745 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2746 * + clock manager 1 (in always on power domain) + local prm in mpu
2747 */
2748
2749static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2750 .name = "prcm",
2751};
2752
2753/* prcm_mpu */
2754static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2755 .name = "prcm_mpu",
2756 .class = &omap44xx_prcm_hwmod_class,
2757 .clkdm_name = "l4_wkup_clkdm",
53cce97c 2758 .flags = HWMOD_NO_IDLEST,
46b3af27
TK
2759 .prcm = {
2760 .omap4 = {
2761 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2762 },
2763 },
794b480a
PW
2764};
2765
2766/* cm_core_aon */
2767static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2768 .name = "cm_core_aon",
2769 .class = &omap44xx_prcm_hwmod_class,
53cce97c 2770 .flags = HWMOD_NO_IDLEST,
46b3af27
TK
2771 .prcm = {
2772 .omap4 = {
2773 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2774 },
2775 },
794b480a
PW
2776};
2777
2778/* cm_core */
2779static struct omap_hwmod omap44xx_cm_core_hwmod = {
2780 .name = "cm_core",
2781 .class = &omap44xx_prcm_hwmod_class,
53cce97c 2782 .flags = HWMOD_NO_IDLEST,
46b3af27
TK
2783 .prcm = {
2784 .omap4 = {
2785 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2786 },
2787 },
794b480a
PW
2788};
2789
2790/* prm */
2791static struct omap_hwmod_irq_info omap44xx_prm_irqs[] = {
2792 { .irq = 11 + OMAP44XX_IRQ_GIC_START },
2793 { .irq = -1 }
2794};
2795
2796static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2797 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2798 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2799};
2800
2801static struct omap_hwmod omap44xx_prm_hwmod = {
2802 .name = "prm",
2803 .class = &omap44xx_prcm_hwmod_class,
794b480a
PW
2804 .mpu_irqs = omap44xx_prm_irqs,
2805 .rst_lines = omap44xx_prm_resets,
2806 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2807};
2808
2809/*
2810 * 'scrm' class
2811 * system clock and reset manager
2812 */
2813
2814static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2815 .name = "scrm",
2816};
2817
2818/* scrm */
2819static struct omap_hwmod omap44xx_scrm_hwmod = {
2820 .name = "scrm",
2821 .class = &omap44xx_scrm_hwmod_class,
2822 .clkdm_name = "l4_wkup_clkdm",
46b3af27
TK
2823 .prcm = {
2824 .omap4 = {
2825 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2826 },
2827 },
794b480a
PW
2828};
2829
42b9e387
PW
2830/*
2831 * 'sl2if' class
2832 * shared level 2 memory interface
2833 */
2834
2835static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2836 .name = "sl2if",
2837};
2838
2839/* sl2if */
2840static struct omap_hwmod omap44xx_sl2if_hwmod = {
2841 .name = "sl2if",
2842 .class = &omap44xx_sl2if_hwmod_class,
2843 .clkdm_name = "ivahd_clkdm",
2844 .prcm = {
2845 .omap4 = {
2846 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2847 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2848 .modulemode = MODULEMODE_HWCTRL,
2849 },
2850 },
2851};
2852
1e3b5e59
BC
2853/*
2854 * 'slimbus' class
2855 * bidirectional, multi-drop, multi-channel two-line serial interface between
2856 * the device and external components
2857 */
2858
2859static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2860 .rev_offs = 0x0000,
2861 .sysc_offs = 0x0010,
2862 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2863 SYSC_HAS_SOFTRESET),
2864 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2865 SIDLE_SMART_WKUP),
2866 .sysc_fields = &omap_hwmod_sysc_type2,
2867};
2868
2869static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2870 .name = "slimbus",
2871 .sysc = &omap44xx_slimbus_sysc,
2872};
2873
2874/* slimbus1 */
2875static struct omap_hwmod_irq_info omap44xx_slimbus1_irqs[] = {
2876 { .irq = 97 + OMAP44XX_IRQ_GIC_START },
2877 { .irq = -1 }
2878};
2879
2880static struct omap_hwmod_dma_info omap44xx_slimbus1_sdma_reqs[] = {
2881 { .name = "tx0", .dma_req = 84 + OMAP44XX_DMA_REQ_START },
2882 { .name = "tx1", .dma_req = 85 + OMAP44XX_DMA_REQ_START },
2883 { .name = "tx2", .dma_req = 86 + OMAP44XX_DMA_REQ_START },
2884 { .name = "tx3", .dma_req = 87 + OMAP44XX_DMA_REQ_START },
2885 { .name = "rx0", .dma_req = 88 + OMAP44XX_DMA_REQ_START },
2886 { .name = "rx1", .dma_req = 89 + OMAP44XX_DMA_REQ_START },
2887 { .name = "rx2", .dma_req = 90 + OMAP44XX_DMA_REQ_START },
2888 { .name = "rx3", .dma_req = 91 + OMAP44XX_DMA_REQ_START },
2889 { .dma_req = -1 }
2890};
2891
2892static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2893 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2894 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2895 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2896 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2897};
2898
2899static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2900 .name = "slimbus1",
2901 .class = &omap44xx_slimbus_hwmod_class,
2902 .clkdm_name = "abe_clkdm",
2903 .mpu_irqs = omap44xx_slimbus1_irqs,
2904 .sdma_reqs = omap44xx_slimbus1_sdma_reqs,
2905 .prcm = {
2906 .omap4 = {
2907 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2908 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2909 .modulemode = MODULEMODE_SWCTRL,
2910 },
2911 },
2912 .opt_clks = slimbus1_opt_clks,
2913 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2914};
2915
2916/* slimbus2 */
2917static struct omap_hwmod_irq_info omap44xx_slimbus2_irqs[] = {
2918 { .irq = 98 + OMAP44XX_IRQ_GIC_START },
2919 { .irq = -1 }
2920};
2921
2922static struct omap_hwmod_dma_info omap44xx_slimbus2_sdma_reqs[] = {
2923 { .name = "tx0", .dma_req = 92 + OMAP44XX_DMA_REQ_START },
2924 { .name = "tx1", .dma_req = 93 + OMAP44XX_DMA_REQ_START },
2925 { .name = "tx2", .dma_req = 94 + OMAP44XX_DMA_REQ_START },
2926 { .name = "tx3", .dma_req = 95 + OMAP44XX_DMA_REQ_START },
2927 { .name = "rx0", .dma_req = 96 + OMAP44XX_DMA_REQ_START },
2928 { .name = "rx1", .dma_req = 97 + OMAP44XX_DMA_REQ_START },
2929 { .name = "rx2", .dma_req = 98 + OMAP44XX_DMA_REQ_START },
2930 { .name = "rx3", .dma_req = 99 + OMAP44XX_DMA_REQ_START },
2931 { .dma_req = -1 }
2932};
2933
2934static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2935 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2936 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2937 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2938};
2939
2940static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2941 .name = "slimbus2",
2942 .class = &omap44xx_slimbus_hwmod_class,
2943 .clkdm_name = "l4_per_clkdm",
2944 .mpu_irqs = omap44xx_slimbus2_irqs,
2945 .sdma_reqs = omap44xx_slimbus2_sdma_reqs,
2946 .prcm = {
2947 .omap4 = {
2948 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2949 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2950 .modulemode = MODULEMODE_SWCTRL,
2951 },
2952 },
2953 .opt_clks = slimbus2_opt_clks,
2954 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2955};
2956
1f6a717f
BC
2957/*
2958 * 'smartreflex' class
2959 * smartreflex module (monitor silicon performance and outputs a measure of
2960 * performance error)
2961 */
2962
2963/* The IP is not compliant to type1 / type2 scheme */
2964static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2965 .sidle_shift = 24,
2966 .enwkup_shift = 26,
2967};
2968
2969static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2970 .sysc_offs = 0x0038,
2971 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2972 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2973 SIDLE_SMART_WKUP),
2974 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2975};
2976
2977static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
fe13471c
BC
2978 .name = "smartreflex",
2979 .sysc = &omap44xx_smartreflex_sysc,
2980 .rev = 2,
1f6a717f
BC
2981};
2982
2983/* smartreflex_core */
cea6b942
SG
2984static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2985 .sensor_voltdm_name = "core",
2986};
2987
1f6a717f
BC
2988static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
2989 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
212738a4 2990 { .irq = -1 }
1f6a717f
BC
2991};
2992
1f6a717f
BC
2993static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2994 .name = "smartreflex_core",
2995 .class = &omap44xx_smartreflex_hwmod_class,
a5322c6f 2996 .clkdm_name = "l4_ao_clkdm",
1f6a717f 2997 .mpu_irqs = omap44xx_smartreflex_core_irqs,
212738a4 2998
1f6a717f 2999 .main_clk = "smartreflex_core_fck",
1f6a717f
BC
3000 .prcm = {
3001 .omap4 = {
d0f0631d 3002 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
27bb00b5 3003 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
03fdefe5 3004 .modulemode = MODULEMODE_SWCTRL,
1f6a717f
BC
3005 },
3006 },
cea6b942 3007 .dev_attr = &smartreflex_core_dev_attr,
1f6a717f
BC
3008};
3009
3010/* smartreflex_iva */
cea6b942
SG
3011static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
3012 .sensor_voltdm_name = "iva",
3013};
3014
1f6a717f
BC
3015static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3016 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
212738a4 3017 { .irq = -1 }
1f6a717f
BC
3018};
3019
1f6a717f
BC
3020static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3021 .name = "smartreflex_iva",
3022 .class = &omap44xx_smartreflex_hwmod_class,
a5322c6f 3023 .clkdm_name = "l4_ao_clkdm",
1f6a717f 3024 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
1f6a717f 3025 .main_clk = "smartreflex_iva_fck",
1f6a717f
BC
3026 .prcm = {
3027 .omap4 = {
d0f0631d 3028 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
27bb00b5 3029 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
03fdefe5 3030 .modulemode = MODULEMODE_SWCTRL,
1f6a717f
BC
3031 },
3032 },
cea6b942 3033 .dev_attr = &smartreflex_iva_dev_attr,
1f6a717f
BC
3034};
3035
3036/* smartreflex_mpu */
cea6b942
SG
3037static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
3038 .sensor_voltdm_name = "mpu",
3039};
3040
1f6a717f
BC
3041static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3042 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
212738a4 3043 { .irq = -1 }
1f6a717f
BC
3044};
3045
1f6a717f
BC
3046static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3047 .name = "smartreflex_mpu",
3048 .class = &omap44xx_smartreflex_hwmod_class,
a5322c6f 3049 .clkdm_name = "l4_ao_clkdm",
1f6a717f 3050 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
1f6a717f 3051 .main_clk = "smartreflex_mpu_fck",
1f6a717f
BC
3052 .prcm = {
3053 .omap4 = {
d0f0631d 3054 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
27bb00b5 3055 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
03fdefe5 3056 .modulemode = MODULEMODE_SWCTRL,
1f6a717f
BC
3057 },
3058 },
cea6b942 3059 .dev_attr = &smartreflex_mpu_dev_attr,
1f6a717f
BC
3060};
3061
d11c217f
BC
3062/*
3063 * 'spinlock' class
3064 * spinlock provides hardware assistance for synchronizing the processes
3065 * running on multiple processors
3066 */
3067
3068static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3069 .rev_offs = 0x0000,
3070 .sysc_offs = 0x0010,
3071 .syss_offs = 0x0014,
3072 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3073 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3074 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3075 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3076 SIDLE_SMART_WKUP),
3077 .sysc_fields = &omap_hwmod_sysc_type1,
3078};
3079
3080static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3081 .name = "spinlock",
3082 .sysc = &omap44xx_spinlock_sysc,
3083};
3084
3085/* spinlock */
d11c217f
BC
3086static struct omap_hwmod omap44xx_spinlock_hwmod = {
3087 .name = "spinlock",
3088 .class = &omap44xx_spinlock_hwmod_class,
a5322c6f 3089 .clkdm_name = "l4_cfg_clkdm",
d11c217f
BC
3090 .prcm = {
3091 .omap4 = {
d0f0631d 3092 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
27bb00b5 3093 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
d11c217f
BC
3094 },
3095 },
d11c217f
BC
3096};
3097
35d1a66a
BC
3098/*
3099 * 'timer' class
3100 * general purpose timer module with accurate 1ms tick
3101 * This class contains several variants: ['timer_1ms', 'timer']
3102 */
3103
3104static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3105 .rev_offs = 0x0000,
3106 .sysc_offs = 0x0010,
3107 .syss_offs = 0x0014,
3108 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3109 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3110 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3111 SYSS_HAS_RESET_STATUS),
3112 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
10759e82 3113 .clockact = CLOCKACT_TEST_ICLK,
35d1a66a
BC
3114 .sysc_fields = &omap_hwmod_sysc_type1,
3115};
3116
3117static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3118 .name = "timer",
3119 .sysc = &omap44xx_timer_1ms_sysc,
3120};
3121
3122static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
3123 .rev_offs = 0x0000,
3124 .sysc_offs = 0x0010,
3125 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3126 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3127 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3128 SIDLE_SMART_WKUP),
3129 .sysc_fields = &omap_hwmod_sysc_type2,
3130};
3131
3132static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
3133 .name = "timer",
3134 .sysc = &omap44xx_timer_sysc,
3135};
3136
c345c8b0
TKD
3137/* always-on timers dev attribute */
3138static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
3139 .timer_capability = OMAP_TIMER_ALWON,
3140};
3141
3142/* pwm timers dev attribute */
3143static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
3144 .timer_capability = OMAP_TIMER_HAS_PWM,
3145};
3146
5c3e4ec4
JH
3147/* timers with DSP interrupt dev attribute */
3148static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
3149 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
3150};
3151
3152/* pwm timers with DSP interrupt dev attribute */
3153static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
3154 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
3155};
3156
35d1a66a 3157/* timer1 */
35d1a66a
BC
3158static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
3159 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
212738a4 3160 { .irq = -1 }
35d1a66a
BC
3161};
3162
35d1a66a
BC
3163static struct omap_hwmod omap44xx_timer1_hwmod = {
3164 .name = "timer1",
3165 .class = &omap44xx_timer_1ms_hwmod_class,
a5322c6f 3166 .clkdm_name = "l4_wkup_clkdm",
10759e82 3167 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
35d1a66a 3168 .mpu_irqs = omap44xx_timer1_irqs,
ee877acd 3169 .main_clk = "dmt1_clk_mux",
35d1a66a
BC
3170 .prcm = {
3171 .omap4 = {
d0f0631d 3172 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
27bb00b5 3173 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
03fdefe5 3174 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3175 },
3176 },
c345c8b0 3177 .dev_attr = &capability_alwon_dev_attr,
35d1a66a
BC
3178};
3179
3180/* timer2 */
35d1a66a
BC
3181static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
3182 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
212738a4 3183 { .irq = -1 }
35d1a66a
BC
3184};
3185
35d1a66a
BC
3186static struct omap_hwmod omap44xx_timer2_hwmod = {
3187 .name = "timer2",
3188 .class = &omap44xx_timer_1ms_hwmod_class,
a5322c6f 3189 .clkdm_name = "l4_per_clkdm",
10759e82 3190 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
35d1a66a 3191 .mpu_irqs = omap44xx_timer2_irqs,
ee877acd 3192 .main_clk = "cm2_dm2_mux",
35d1a66a
BC
3193 .prcm = {
3194 .omap4 = {
d0f0631d 3195 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
27bb00b5 3196 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
03fdefe5 3197 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3198 },
3199 },
35d1a66a
BC
3200};
3201
3202/* timer3 */
35d1a66a
BC
3203static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
3204 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
212738a4 3205 { .irq = -1 }
35d1a66a
BC
3206};
3207
35d1a66a
BC
3208static struct omap_hwmod omap44xx_timer3_hwmod = {
3209 .name = "timer3",
3210 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3211 .clkdm_name = "l4_per_clkdm",
35d1a66a 3212 .mpu_irqs = omap44xx_timer3_irqs,
ee877acd 3213 .main_clk = "cm2_dm3_mux",
35d1a66a
BC
3214 .prcm = {
3215 .omap4 = {
d0f0631d 3216 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
27bb00b5 3217 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
03fdefe5 3218 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3219 },
3220 },
35d1a66a
BC
3221};
3222
3223/* timer4 */
35d1a66a
BC
3224static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
3225 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
212738a4 3226 { .irq = -1 }
35d1a66a
BC
3227};
3228
35d1a66a
BC
3229static struct omap_hwmod omap44xx_timer4_hwmod = {
3230 .name = "timer4",
3231 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3232 .clkdm_name = "l4_per_clkdm",
35d1a66a 3233 .mpu_irqs = omap44xx_timer4_irqs,
ee877acd 3234 .main_clk = "cm2_dm4_mux",
35d1a66a
BC
3235 .prcm = {
3236 .omap4 = {
d0f0631d 3237 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
27bb00b5 3238 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
03fdefe5 3239 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3240 },
3241 },
35d1a66a
BC
3242};
3243
3244/* timer5 */
35d1a66a
BC
3245static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
3246 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
212738a4 3247 { .irq = -1 }
35d1a66a
BC
3248};
3249
35d1a66a
BC
3250static struct omap_hwmod omap44xx_timer5_hwmod = {
3251 .name = "timer5",
3252 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3253 .clkdm_name = "abe_clkdm",
35d1a66a 3254 .mpu_irqs = omap44xx_timer5_irqs,
ee877acd 3255 .main_clk = "timer5_sync_mux",
35d1a66a
BC
3256 .prcm = {
3257 .omap4 = {
d0f0631d 3258 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
27bb00b5 3259 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
03fdefe5 3260 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3261 },
3262 },
5c3e4ec4 3263 .dev_attr = &capability_dsp_dev_attr,
35d1a66a
BC
3264};
3265
3266/* timer6 */
35d1a66a
BC
3267static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
3268 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
212738a4 3269 { .irq = -1 }
35d1a66a
BC
3270};
3271
35d1a66a
BC
3272static struct omap_hwmod omap44xx_timer6_hwmod = {
3273 .name = "timer6",
3274 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3275 .clkdm_name = "abe_clkdm",
35d1a66a 3276 .mpu_irqs = omap44xx_timer6_irqs,
ee877acd 3277 .main_clk = "timer6_sync_mux",
35d1a66a
BC
3278 .prcm = {
3279 .omap4 = {
d0f0631d 3280 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
27bb00b5 3281 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
03fdefe5 3282 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3283 },
3284 },
5c3e4ec4 3285 .dev_attr = &capability_dsp_dev_attr,
35d1a66a
BC
3286};
3287
3288/* timer7 */
35d1a66a
BC
3289static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
3290 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
212738a4 3291 { .irq = -1 }
35d1a66a
BC
3292};
3293
35d1a66a
BC
3294static struct omap_hwmod omap44xx_timer7_hwmod = {
3295 .name = "timer7",
3296 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3297 .clkdm_name = "abe_clkdm",
35d1a66a 3298 .mpu_irqs = omap44xx_timer7_irqs,
ee877acd 3299 .main_clk = "timer7_sync_mux",
35d1a66a
BC
3300 .prcm = {
3301 .omap4 = {
d0f0631d 3302 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
27bb00b5 3303 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
03fdefe5 3304 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3305 },
3306 },
5c3e4ec4 3307 .dev_attr = &capability_dsp_dev_attr,
35d1a66a
BC
3308};
3309
3310/* timer8 */
35d1a66a
BC
3311static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
3312 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
212738a4 3313 { .irq = -1 }
35d1a66a
BC
3314};
3315
35d1a66a
BC
3316static struct omap_hwmod omap44xx_timer8_hwmod = {
3317 .name = "timer8",
3318 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3319 .clkdm_name = "abe_clkdm",
35d1a66a 3320 .mpu_irqs = omap44xx_timer8_irqs,
ee877acd 3321 .main_clk = "timer8_sync_mux",
35d1a66a
BC
3322 .prcm = {
3323 .omap4 = {
d0f0631d 3324 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
27bb00b5 3325 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
03fdefe5 3326 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3327 },
3328 },
5c3e4ec4 3329 .dev_attr = &capability_dsp_pwm_dev_attr,
35d1a66a
BC
3330};
3331
3332/* timer9 */
35d1a66a
BC
3333static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
3334 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
212738a4 3335 { .irq = -1 }
35d1a66a
BC
3336};
3337
35d1a66a
BC
3338static struct omap_hwmod omap44xx_timer9_hwmod = {
3339 .name = "timer9",
3340 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3341 .clkdm_name = "l4_per_clkdm",
35d1a66a 3342 .mpu_irqs = omap44xx_timer9_irqs,
ee877acd 3343 .main_clk = "cm2_dm9_mux",
35d1a66a
BC
3344 .prcm = {
3345 .omap4 = {
d0f0631d 3346 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
27bb00b5 3347 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
03fdefe5 3348 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3349 },
3350 },
c345c8b0 3351 .dev_attr = &capability_pwm_dev_attr,
35d1a66a
BC
3352};
3353
3354/* timer10 */
35d1a66a
BC
3355static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
3356 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
212738a4 3357 { .irq = -1 }
35d1a66a
BC
3358};
3359
35d1a66a
BC
3360static struct omap_hwmod omap44xx_timer10_hwmod = {
3361 .name = "timer10",
3362 .class = &omap44xx_timer_1ms_hwmod_class,
a5322c6f 3363 .clkdm_name = "l4_per_clkdm",
10759e82 3364 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
35d1a66a 3365 .mpu_irqs = omap44xx_timer10_irqs,
ee877acd 3366 .main_clk = "cm2_dm10_mux",
35d1a66a
BC
3367 .prcm = {
3368 .omap4 = {
d0f0631d 3369 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
27bb00b5 3370 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
03fdefe5 3371 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3372 },
3373 },
c345c8b0 3374 .dev_attr = &capability_pwm_dev_attr,
35d1a66a
BC
3375};
3376
3377/* timer11 */
35d1a66a
BC
3378static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
3379 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
212738a4 3380 { .irq = -1 }
35d1a66a
BC
3381};
3382
35d1a66a
BC
3383static struct omap_hwmod omap44xx_timer11_hwmod = {
3384 .name = "timer11",
3385 .class = &omap44xx_timer_hwmod_class,
a5322c6f 3386 .clkdm_name = "l4_per_clkdm",
35d1a66a 3387 .mpu_irqs = omap44xx_timer11_irqs,
ee877acd 3388 .main_clk = "cm2_dm11_mux",
35d1a66a
BC
3389 .prcm = {
3390 .omap4 = {
d0f0631d 3391 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
27bb00b5 3392 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
03fdefe5 3393 .modulemode = MODULEMODE_SWCTRL,
35d1a66a
BC
3394 },
3395 },
c345c8b0 3396 .dev_attr = &capability_pwm_dev_attr,
35d1a66a
BC
3397};
3398
9780a9cf 3399/*
3b54baad
BC
3400 * 'uart' class
3401 * universal asynchronous receiver/transmitter (uart)
9780a9cf
BC
3402 */
3403
3b54baad
BC
3404static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
3405 .rev_offs = 0x0050,
3406 .sysc_offs = 0x0054,
3407 .syss_offs = 0x0058,
3408 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
0cfe8751
BC
3409 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3410 SYSS_HAS_RESET_STATUS),
7cffa6b8
BC
3411 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3412 SIDLE_SMART_WKUP),
9780a9cf
BC
3413 .sysc_fields = &omap_hwmod_sysc_type1,
3414};
3415
3b54baad 3416static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
fe13471c
BC
3417 .name = "uart",
3418 .sysc = &omap44xx_uart_sysc,
9780a9cf
BC
3419};
3420
3b54baad 3421/* uart1 */
3b54baad
BC
3422static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
3423 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
212738a4 3424 { .irq = -1 }
9780a9cf
BC
3425};
3426
3b54baad
BC
3427static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
3428 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
3429 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
bc614958 3430 { .dma_req = -1 }
9780a9cf
BC
3431};
3432
3b54baad
BC
3433static struct omap_hwmod omap44xx_uart1_hwmod = {
3434 .name = "uart1",
3435 .class = &omap44xx_uart_hwmod_class,
a5322c6f 3436 .clkdm_name = "l4_per_clkdm",
3b54baad 3437 .mpu_irqs = omap44xx_uart1_irqs,
3b54baad 3438 .sdma_reqs = omap44xx_uart1_sdma_reqs,
17b7e7d3 3439 .main_clk = "func_48m_fclk",
9780a9cf
BC
3440 .prcm = {
3441 .omap4 = {
d0f0631d 3442 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
27bb00b5 3443 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
03fdefe5 3444 .modulemode = MODULEMODE_SWCTRL,
9780a9cf
BC
3445 },
3446 },
9780a9cf
BC
3447};
3448
3b54baad 3449/* uart2 */
3b54baad
BC
3450static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
3451 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
212738a4 3452 { .irq = -1 }
9780a9cf
BC
3453};
3454
3b54baad
BC
3455static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
3456 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
3457 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
bc614958 3458 { .dma_req = -1 }
3b54baad
BC
3459};
3460
3b54baad
BC
3461static struct omap_hwmod omap44xx_uart2_hwmod = {
3462 .name = "uart2",
3463 .class = &omap44xx_uart_hwmod_class,
a5322c6f 3464 .clkdm_name = "l4_per_clkdm",
3b54baad 3465 .mpu_irqs = omap44xx_uart2_irqs,
3b54baad 3466 .sdma_reqs = omap44xx_uart2_sdma_reqs,
17b7e7d3 3467 .main_clk = "func_48m_fclk",
9780a9cf
BC
3468 .prcm = {
3469 .omap4 = {
d0f0631d 3470 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
27bb00b5 3471 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
03fdefe5 3472 .modulemode = MODULEMODE_SWCTRL,
9780a9cf
BC
3473 },
3474 },
9780a9cf
BC
3475};
3476
3b54baad 3477/* uart3 */
3b54baad
BC
3478static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
3479 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
212738a4 3480 { .irq = -1 }
9780a9cf
BC
3481};
3482
3b54baad
BC
3483static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
3484 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
3485 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
bc614958 3486 { .dma_req = -1 }
3b54baad
BC
3487};
3488
3b54baad
BC
3489static struct omap_hwmod omap44xx_uart3_hwmod = {
3490 .name = "uart3",
3491 .class = &omap44xx_uart_hwmod_class,
a5322c6f 3492 .clkdm_name = "l4_per_clkdm",
7ecc5373 3493 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
3b54baad 3494 .mpu_irqs = omap44xx_uart3_irqs,
3b54baad 3495 .sdma_reqs = omap44xx_uart3_sdma_reqs,
17b7e7d3 3496 .main_clk = "func_48m_fclk",
9780a9cf
BC
3497 .prcm = {
3498 .omap4 = {
d0f0631d 3499 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
27bb00b5 3500 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
03fdefe5 3501 .modulemode = MODULEMODE_SWCTRL,
9780a9cf
BC
3502 },
3503 },
9780a9cf
BC
3504};
3505
3b54baad 3506/* uart4 */
3b54baad
BC
3507static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
3508 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
212738a4 3509 { .irq = -1 }
9780a9cf
BC
3510};
3511
3b54baad
BC
3512static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
3513 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
3514 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
bc614958 3515 { .dma_req = -1 }
3b54baad
BC
3516};
3517
3b54baad
BC
3518static struct omap_hwmod omap44xx_uart4_hwmod = {
3519 .name = "uart4",
3520 .class = &omap44xx_uart_hwmod_class,
a5322c6f 3521 .clkdm_name = "l4_per_clkdm",
3b54baad 3522 .mpu_irqs = omap44xx_uart4_irqs,
3b54baad 3523 .sdma_reqs = omap44xx_uart4_sdma_reqs,
17b7e7d3 3524 .main_clk = "func_48m_fclk",
9780a9cf
BC
3525 .prcm = {
3526 .omap4 = {
d0f0631d 3527 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
27bb00b5 3528 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
03fdefe5 3529 .modulemode = MODULEMODE_SWCTRL,
9780a9cf
BC
3530 },
3531 },
9780a9cf
BC
3532};
3533
0c668875
BC
3534/*
3535 * 'usb_host_fs' class
3536 * full-speed usb host controller
3537 */
3538
3539/* The IP is not compliant to type1 / type2 scheme */
3540static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
3541 .midle_shift = 4,
3542 .sidle_shift = 2,
3543 .srst_shift = 1,
3544};
3545
3546static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
3547 .rev_offs = 0x0000,
3548 .sysc_offs = 0x0210,
3549 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3550 SYSC_HAS_SOFTRESET),
3551 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3552 SIDLE_SMART_WKUP),
3553 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
3554};
3555
3556static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
3557 .name = "usb_host_fs",
3558 .sysc = &omap44xx_usb_host_fs_sysc,
3559};
3560
3561/* usb_host_fs */
3562static struct omap_hwmod_irq_info omap44xx_usb_host_fs_irqs[] = {
3563 { .name = "std", .irq = 89 + OMAP44XX_IRQ_GIC_START },
3564 { .name = "smi", .irq = 90 + OMAP44XX_IRQ_GIC_START },
3565 { .irq = -1 }
3566};
3567
3568static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
3569 .name = "usb_host_fs",
3570 .class = &omap44xx_usb_host_fs_hwmod_class,
3571 .clkdm_name = "l3_init_clkdm",
3572 .mpu_irqs = omap44xx_usb_host_fs_irqs,
3573 .main_clk = "usb_host_fs_fck",
3574 .prcm = {
3575 .omap4 = {
3576 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
3577 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
3578 .modulemode = MODULEMODE_SWCTRL,
3579 },
3580 },
3581};
3582
5844c4ea 3583/*
844a3b63
PW
3584 * 'usb_host_hs' class
3585 * high-speed multi-port usb host controller
5844c4ea
BC
3586 */
3587
844a3b63
PW
3588static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
3589 .rev_offs = 0x0000,
3590 .sysc_offs = 0x0010,
3591 .syss_offs = 0x0014,
3592 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3593 SYSC_HAS_SOFTRESET),
5844c4ea
BC
3594 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3595 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
844a3b63
PW
3596 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
3597 .sysc_fields = &omap_hwmod_sysc_type2,
5844c4ea
BC
3598};
3599
844a3b63
PW
3600static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
3601 .name = "usb_host_hs",
3602 .sysc = &omap44xx_usb_host_hs_sysc,
5844c4ea
BC
3603};
3604
844a3b63
PW
3605/* usb_host_hs */
3606static struct omap_hwmod_irq_info omap44xx_usb_host_hs_irqs[] = {
3607 { .name = "ohci-irq", .irq = 76 + OMAP44XX_IRQ_GIC_START },
3608 { .name = "ehci-irq", .irq = 77 + OMAP44XX_IRQ_GIC_START },
212738a4 3609 { .irq = -1 }
5844c4ea
BC
3610};
3611
844a3b63
PW
3612static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
3613 .name = "usb_host_hs",
3614 .class = &omap44xx_usb_host_hs_hwmod_class,
a5322c6f 3615 .clkdm_name = "l3_init_clkdm",
844a3b63 3616 .main_clk = "usb_host_hs_fck",
5844c4ea
BC
3617 .prcm = {
3618 .omap4 = {
844a3b63
PW
3619 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
3620 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
3621 .modulemode = MODULEMODE_SWCTRL,
3622 },
3623 },
3624 .mpu_irqs = omap44xx_usb_host_hs_irqs,
3625
3626 /*
3627 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
3628 * id: i660
3629 *
3630 * Description:
3631 * In the following configuration :
3632 * - USBHOST module is set to smart-idle mode
3633 * - PRCM asserts idle_req to the USBHOST module ( This typically
3634 * happens when the system is going to a low power mode : all ports
3635 * have been suspended, the master part of the USBHOST module has
3636 * entered the standby state, and SW has cut the functional clocks)
3637 * - an USBHOST interrupt occurs before the module is able to answer
3638 * idle_ack, typically a remote wakeup IRQ.
3639 * Then the USB HOST module will enter a deadlock situation where it
3640 * is no more accessible nor functional.
3641 *
3642 * Workaround:
3643 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
3644 */
3645
3646 /*
3647 * Errata: USB host EHCI may stall when entering smart-standby mode
3648 * Id: i571
3649 *
3650 * Description:
3651 * When the USBHOST module is set to smart-standby mode, and when it is
3652 * ready to enter the standby state (i.e. all ports are suspended and
3653 * all attached devices are in suspend mode), then it can wrongly assert
3654 * the Mstandby signal too early while there are still some residual OCP
3655 * transactions ongoing. If this condition occurs, the internal state
3656 * machine may go to an undefined state and the USB link may be stuck
3657 * upon the next resume.
3658 *
3659 * Workaround:
3660 * Don't use smart standby; use only force standby,
3661 * hence HWMOD_SWSUP_MSTANDBY
3662 */
3663
3664 /*
3665 * During system boot; If the hwmod framework resets the module
3666 * the module will have smart idle settings; which can lead to deadlock
3667 * (above Errata Id:i660); so, dont reset the module during boot;
3668 * Use HWMOD_INIT_NO_RESET.
3669 */
3670
3671 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
3672 HWMOD_INIT_NO_RESET,
3673};
3674
3675/*
3676 * 'usb_otg_hs' class
3677 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3678 */
3679
3680static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3681 .rev_offs = 0x0400,
3682 .sysc_offs = 0x0404,
3683 .syss_offs = 0x0408,
3684 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3685 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3686 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3687 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3688 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3689 MSTANDBY_SMART),
3690 .sysc_fields = &omap_hwmod_sysc_type1,
3691};
3692
3693static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3694 .name = "usb_otg_hs",
3695 .sysc = &omap44xx_usb_otg_hs_sysc,
3696};
3697
3698/* usb_otg_hs */
3699static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
3700 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
3701 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
3702 { .irq = -1 }
3703};
3704
3705static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3706 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3707};
3708
3709static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3710 .name = "usb_otg_hs",
3711 .class = &omap44xx_usb_otg_hs_hwmod_class,
3712 .clkdm_name = "l3_init_clkdm",
3713 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
3714 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
3715 .main_clk = "usb_otg_hs_ick",
3716 .prcm = {
3717 .omap4 = {
3718 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3719 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3720 .modulemode = MODULEMODE_HWCTRL,
3721 },
3722 },
3723 .opt_clks = usb_otg_hs_opt_clks,
3724 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3725};
3726
3727/*
3728 * 'usb_tll_hs' class
3729 * usb_tll_hs module is the adapter on the usb_host_hs ports
3730 */
3731
3732static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3733 .rev_offs = 0x0000,
3734 .sysc_offs = 0x0010,
3735 .syss_offs = 0x0014,
3736 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3737 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3738 SYSC_HAS_AUTOIDLE),
3739 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3740 .sysc_fields = &omap_hwmod_sysc_type1,
3741};
3742
3743static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
3744 .name = "usb_tll_hs",
3745 .sysc = &omap44xx_usb_tll_hs_sysc,
3746};
3747
3748static struct omap_hwmod_irq_info omap44xx_usb_tll_hs_irqs[] = {
3749 { .name = "tll-irq", .irq = 78 + OMAP44XX_IRQ_GIC_START },
3750 { .irq = -1 }
3751};
3752
3753static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3754 .name = "usb_tll_hs",
3755 .class = &omap44xx_usb_tll_hs_hwmod_class,
3756 .clkdm_name = "l3_init_clkdm",
3757 .mpu_irqs = omap44xx_usb_tll_hs_irqs,
3758 .main_clk = "usb_tll_hs_ick",
3759 .prcm = {
3760 .omap4 = {
3761 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3762 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3763 .modulemode = MODULEMODE_HWCTRL,
5844c4ea
BC
3764 },
3765 },
5844c4ea
BC
3766};
3767
3b54baad
BC
3768/*
3769 * 'wd_timer' class
3770 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3771 * overflow condition
3772 */
3773
3774static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3775 .rev_offs = 0x0000,
3776 .sysc_offs = 0x0010,
3777 .syss_offs = 0x0014,
3778 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
0cfe8751 3779 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
7cffa6b8
BC
3780 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3781 SIDLE_SMART_WKUP),
3b54baad 3782 .sysc_fields = &omap_hwmod_sysc_type1,
9780a9cf
BC
3783};
3784
3b54baad
BC
3785static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3786 .name = "wd_timer",
3787 .sysc = &omap44xx_wd_timer_sysc,
fe13471c 3788 .pre_shutdown = &omap2_wd_timer_disable,
414e4128 3789 .reset = &omap2_wd_timer_reset,
3b54baad
BC
3790};
3791
3792/* wd_timer2 */
3b54baad
BC
3793static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
3794 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
212738a4 3795 { .irq = -1 }
3b54baad
BC
3796};
3797
3b54baad
BC
3798static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3799 .name = "wd_timer2",
3800 .class = &omap44xx_wd_timer_hwmod_class,
a5322c6f 3801 .clkdm_name = "l4_wkup_clkdm",
3b54baad 3802 .mpu_irqs = omap44xx_wd_timer2_irqs,
17b7e7d3 3803 .main_clk = "sys_32k_ck",
9780a9cf
BC
3804 .prcm = {
3805 .omap4 = {
d0f0631d 3806 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
27bb00b5 3807 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
03fdefe5 3808 .modulemode = MODULEMODE_SWCTRL,
9780a9cf
BC
3809 },
3810 },
9780a9cf
BC
3811};
3812
3b54baad 3813/* wd_timer3 */
3b54baad
BC
3814static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
3815 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
212738a4 3816 { .irq = -1 }
9780a9cf
BC
3817};
3818
3b54baad
BC
3819static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3820 .name = "wd_timer3",
3821 .class = &omap44xx_wd_timer_hwmod_class,
a5322c6f 3822 .clkdm_name = "abe_clkdm",
3b54baad 3823 .mpu_irqs = omap44xx_wd_timer3_irqs,
17b7e7d3 3824 .main_clk = "sys_32k_ck",
9780a9cf
BC
3825 .prcm = {
3826 .omap4 = {
d0f0631d 3827 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
27bb00b5 3828 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
03fdefe5 3829 .modulemode = MODULEMODE_SWCTRL,
9780a9cf
BC
3830 },
3831 },
9780a9cf 3832};
531ce0d5 3833
844a3b63 3834
af88fa9a 3835/*
844a3b63 3836 * interfaces
af88fa9a 3837 */
af88fa9a 3838
42b9e387
PW
3839static struct omap_hwmod_addr_space omap44xx_c2c_target_fw_addrs[] = {
3840 {
3841 .pa_start = 0x4a204000,
3842 .pa_end = 0x4a2040ff,
3843 .flags = ADDR_TYPE_RT
3844 },
3845 { }
3846};
3847
3848/* c2c -> c2c_target_fw */
3849static struct omap_hwmod_ocp_if omap44xx_c2c__c2c_target_fw = {
3850 .master = &omap44xx_c2c_hwmod,
3851 .slave = &omap44xx_c2c_target_fw_hwmod,
3852 .clk = "div_core_ck",
3853 .addr = omap44xx_c2c_target_fw_addrs,
3854 .user = OCP_USER_MPU,
3855};
3856
3857/* l4_cfg -> c2c_target_fw */
3858static struct omap_hwmod_ocp_if omap44xx_l4_cfg__c2c_target_fw = {
3859 .master = &omap44xx_l4_cfg_hwmod,
3860 .slave = &omap44xx_c2c_target_fw_hwmod,
3861 .clk = "l4_div_ck",
3862 .user = OCP_USER_MPU | OCP_USER_SDMA,
3863};
3864
844a3b63
PW
3865/* l3_main_1 -> dmm */
3866static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3867 .master = &omap44xx_l3_main_1_hwmod,
3868 .slave = &omap44xx_dmm_hwmod,
3869 .clk = "l3_div_ck",
3870 .user = OCP_USER_SDMA,
af88fa9a
BC
3871};
3872
844a3b63 3873static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
af88fa9a 3874 {
844a3b63
PW
3875 .pa_start = 0x4e000000,
3876 .pa_end = 0x4e0007ff,
af88fa9a
BC
3877 .flags = ADDR_TYPE_RT
3878 },
844a3b63 3879 { }
af88fa9a
BC
3880};
3881
844a3b63
PW
3882/* mpu -> dmm */
3883static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3884 .master = &omap44xx_mpu_hwmod,
3885 .slave = &omap44xx_dmm_hwmod,
3886 .clk = "l3_div_ck",
3887 .addr = omap44xx_dmm_addrs,
3888 .user = OCP_USER_MPU,
af88fa9a
BC
3889};
3890
42b9e387
PW
3891/* c2c -> emif_fw */
3892static struct omap_hwmod_ocp_if omap44xx_c2c__emif_fw = {
3893 .master = &omap44xx_c2c_hwmod,
3894 .slave = &omap44xx_emif_fw_hwmod,
3895 .clk = "div_core_ck",
3896 .user = OCP_USER_MPU | OCP_USER_SDMA,
3897};
3898
844a3b63
PW
3899/* dmm -> emif_fw */
3900static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
3901 .master = &omap44xx_dmm_hwmod,
3902 .slave = &omap44xx_emif_fw_hwmod,
3903 .clk = "l3_div_ck",
3904 .user = OCP_USER_MPU | OCP_USER_SDMA,
3905};
3906
3907static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
3908 {
3909 .pa_start = 0x4a20c000,
3910 .pa_end = 0x4a20c0ff,
3911 .flags = ADDR_TYPE_RT
3912 },
3913 { }
3914};
3915
3916/* l4_cfg -> emif_fw */
3917static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
3918 .master = &omap44xx_l4_cfg_hwmod,
3919 .slave = &omap44xx_emif_fw_hwmod,
3920 .clk = "l4_div_ck",
3921 .addr = omap44xx_emif_fw_addrs,
3922 .user = OCP_USER_MPU,
3923};
3924
3925/* iva -> l3_instr */
3926static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3927 .master = &omap44xx_iva_hwmod,
3928 .slave = &omap44xx_l3_instr_hwmod,
3929 .clk = "l3_div_ck",
3930 .user = OCP_USER_MPU | OCP_USER_SDMA,
3931};
3932
3933/* l3_main_3 -> l3_instr */
3934static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3935 .master = &omap44xx_l3_main_3_hwmod,
3936 .slave = &omap44xx_l3_instr_hwmod,
3937 .clk = "l3_div_ck",
3938 .user = OCP_USER_MPU | OCP_USER_SDMA,
3939};
3940
9a817bc8
BC
3941/* ocp_wp_noc -> l3_instr */
3942static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3943 .master = &omap44xx_ocp_wp_noc_hwmod,
3944 .slave = &omap44xx_l3_instr_hwmod,
3945 .clk = "l3_div_ck",
3946 .user = OCP_USER_MPU | OCP_USER_SDMA,
3947};
3948
844a3b63
PW
3949/* dsp -> l3_main_1 */
3950static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3951 .master = &omap44xx_dsp_hwmod,
3952 .slave = &omap44xx_l3_main_1_hwmod,
3953 .clk = "l3_div_ck",
3954 .user = OCP_USER_MPU | OCP_USER_SDMA,
3955};
3956
3957/* dss -> l3_main_1 */
3958static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3959 .master = &omap44xx_dss_hwmod,
3960 .slave = &omap44xx_l3_main_1_hwmod,
3961 .clk = "l3_div_ck",
3962 .user = OCP_USER_MPU | OCP_USER_SDMA,
3963};
3964
3965/* l3_main_2 -> l3_main_1 */
3966static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3967 .master = &omap44xx_l3_main_2_hwmod,
3968 .slave = &omap44xx_l3_main_1_hwmod,
3969 .clk = "l3_div_ck",
3970 .user = OCP_USER_MPU | OCP_USER_SDMA,
3971};
3972
3973/* l4_cfg -> l3_main_1 */
3974static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3975 .master = &omap44xx_l4_cfg_hwmod,
3976 .slave = &omap44xx_l3_main_1_hwmod,
3977 .clk = "l4_div_ck",
3978 .user = OCP_USER_MPU | OCP_USER_SDMA,
3979};
3980
3981/* mmc1 -> l3_main_1 */
3982static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3983 .master = &omap44xx_mmc1_hwmod,
3984 .slave = &omap44xx_l3_main_1_hwmod,
3985 .clk = "l3_div_ck",
3986 .user = OCP_USER_MPU | OCP_USER_SDMA,
3987};
3988
3989/* mmc2 -> l3_main_1 */
3990static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3991 .master = &omap44xx_mmc2_hwmod,
3992 .slave = &omap44xx_l3_main_1_hwmod,
3993 .clk = "l3_div_ck",
3994 .user = OCP_USER_MPU | OCP_USER_SDMA,
3995};
3996
3997static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
3998 {
3999 .pa_start = 0x44000000,
4000 .pa_end = 0x44000fff,
4001 .flags = ADDR_TYPE_RT
4002 },
4003 { }
4004};
4005
4006/* mpu -> l3_main_1 */
4007static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
4008 .master = &omap44xx_mpu_hwmod,
4009 .slave = &omap44xx_l3_main_1_hwmod,
4010 .clk = "l3_div_ck",
4011 .addr = omap44xx_l3_main_1_addrs,
4012 .user = OCP_USER_MPU,
4013};
4014
42b9e387
PW
4015/* c2c_target_fw -> l3_main_2 */
4016static struct omap_hwmod_ocp_if omap44xx_c2c_target_fw__l3_main_2 = {
4017 .master = &omap44xx_c2c_target_fw_hwmod,
4018 .slave = &omap44xx_l3_main_2_hwmod,
4019 .clk = "l3_div_ck",
4020 .user = OCP_USER_MPU | OCP_USER_SDMA,
4021};
4022
96566043
BC
4023/* debugss -> l3_main_2 */
4024static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
4025 .master = &omap44xx_debugss_hwmod,
4026 .slave = &omap44xx_l3_main_2_hwmod,
4027 .clk = "dbgclk_mux_ck",
4028 .user = OCP_USER_MPU | OCP_USER_SDMA,
4029};
4030
844a3b63
PW
4031/* dma_system -> l3_main_2 */
4032static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
4033 .master = &omap44xx_dma_system_hwmod,
4034 .slave = &omap44xx_l3_main_2_hwmod,
4035 .clk = "l3_div_ck",
4036 .user = OCP_USER_MPU | OCP_USER_SDMA,
4037};
4038
b050f688
ML
4039/* fdif -> l3_main_2 */
4040static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
4041 .master = &omap44xx_fdif_hwmod,
4042 .slave = &omap44xx_l3_main_2_hwmod,
4043 .clk = "l3_div_ck",
4044 .user = OCP_USER_MPU | OCP_USER_SDMA,
4045};
4046
9def390e
PW
4047/* gpu -> l3_main_2 */
4048static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
4049 .master = &omap44xx_gpu_hwmod,
4050 .slave = &omap44xx_l3_main_2_hwmod,
4051 .clk = "l3_div_ck",
4052 .user = OCP_USER_MPU | OCP_USER_SDMA,
4053};
4054
844a3b63
PW
4055/* hsi -> l3_main_2 */
4056static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
4057 .master = &omap44xx_hsi_hwmod,
4058 .slave = &omap44xx_l3_main_2_hwmod,
4059 .clk = "l3_div_ck",
4060 .user = OCP_USER_MPU | OCP_USER_SDMA,
4061};
4062
4063/* ipu -> l3_main_2 */
4064static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
4065 .master = &omap44xx_ipu_hwmod,
4066 .slave = &omap44xx_l3_main_2_hwmod,
4067 .clk = "l3_div_ck",
4068 .user = OCP_USER_MPU | OCP_USER_SDMA,
4069};
4070
4071/* iss -> l3_main_2 */
4072static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
4073 .master = &omap44xx_iss_hwmod,
4074 .slave = &omap44xx_l3_main_2_hwmod,
4075 .clk = "l3_div_ck",
4076 .user = OCP_USER_MPU | OCP_USER_SDMA,
4077};
4078
4079/* iva -> l3_main_2 */
4080static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
4081 .master = &omap44xx_iva_hwmod,
4082 .slave = &omap44xx_l3_main_2_hwmod,
4083 .clk = "l3_div_ck",
4084 .user = OCP_USER_MPU | OCP_USER_SDMA,
4085};
4086
4087static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
4088 {
4089 .pa_start = 0x44800000,
4090 .pa_end = 0x44801fff,
4091 .flags = ADDR_TYPE_RT
4092 },
4093 { }
4094};
4095
4096/* l3_main_1 -> l3_main_2 */
4097static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
4098 .master = &omap44xx_l3_main_1_hwmod,
4099 .slave = &omap44xx_l3_main_2_hwmod,
4100 .clk = "l3_div_ck",
4101 .addr = omap44xx_l3_main_2_addrs,
4102 .user = OCP_USER_MPU,
4103};
4104
4105/* l4_cfg -> l3_main_2 */
4106static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
4107 .master = &omap44xx_l4_cfg_hwmod,
4108 .slave = &omap44xx_l3_main_2_hwmod,
4109 .clk = "l4_div_ck",
4110 .user = OCP_USER_MPU | OCP_USER_SDMA,
4111};
4112
0c668875 4113/* usb_host_fs -> l3_main_2 */
b0a70cc8 4114static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
0c668875
BC
4115 .master = &omap44xx_usb_host_fs_hwmod,
4116 .slave = &omap44xx_l3_main_2_hwmod,
4117 .clk = "l3_div_ck",
4118 .user = OCP_USER_MPU | OCP_USER_SDMA,
4119};
4120
844a3b63
PW
4121/* usb_host_hs -> l3_main_2 */
4122static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
4123 .master = &omap44xx_usb_host_hs_hwmod,
4124 .slave = &omap44xx_l3_main_2_hwmod,
4125 .clk = "l3_div_ck",
4126 .user = OCP_USER_MPU | OCP_USER_SDMA,
4127};
4128
4129/* usb_otg_hs -> l3_main_2 */
4130static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
4131 .master = &omap44xx_usb_otg_hs_hwmod,
4132 .slave = &omap44xx_l3_main_2_hwmod,
4133 .clk = "l3_div_ck",
4134 .user = OCP_USER_MPU | OCP_USER_SDMA,
4135};
4136
4137static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
4138 {
4139 .pa_start = 0x45000000,
4140 .pa_end = 0x45000fff,
4141 .flags = ADDR_TYPE_RT
4142 },
4143 { }
4144};
4145
4146/* l3_main_1 -> l3_main_3 */
4147static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
4148 .master = &omap44xx_l3_main_1_hwmod,
4149 .slave = &omap44xx_l3_main_3_hwmod,
4150 .clk = "l3_div_ck",
4151 .addr = omap44xx_l3_main_3_addrs,
4152 .user = OCP_USER_MPU,
4153};
4154
4155/* l3_main_2 -> l3_main_3 */
4156static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
4157 .master = &omap44xx_l3_main_2_hwmod,
4158 .slave = &omap44xx_l3_main_3_hwmod,
4159 .clk = "l3_div_ck",
4160 .user = OCP_USER_MPU | OCP_USER_SDMA,
4161};
4162
4163/* l4_cfg -> l3_main_3 */
4164static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
4165 .master = &omap44xx_l4_cfg_hwmod,
4166 .slave = &omap44xx_l3_main_3_hwmod,
4167 .clk = "l4_div_ck",
4168 .user = OCP_USER_MPU | OCP_USER_SDMA,
4169};
4170
4171/* aess -> l4_abe */
b0a70cc8 4172static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
844a3b63
PW
4173 .master = &omap44xx_aess_hwmod,
4174 .slave = &omap44xx_l4_abe_hwmod,
4175 .clk = "ocp_abe_iclk",
4176 .user = OCP_USER_MPU | OCP_USER_SDMA,
4177};
4178
4179/* dsp -> l4_abe */
4180static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
4181 .master = &omap44xx_dsp_hwmod,
4182 .slave = &omap44xx_l4_abe_hwmod,
4183 .clk = "ocp_abe_iclk",
4184 .user = OCP_USER_MPU | OCP_USER_SDMA,
4185};
4186
4187/* l3_main_1 -> l4_abe */
4188static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
4189 .master = &omap44xx_l3_main_1_hwmod,
4190 .slave = &omap44xx_l4_abe_hwmod,
4191 .clk = "l3_div_ck",
4192 .user = OCP_USER_MPU | OCP_USER_SDMA,
4193};
4194
4195/* mpu -> l4_abe */
4196static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
4197 .master = &omap44xx_mpu_hwmod,
4198 .slave = &omap44xx_l4_abe_hwmod,
4199 .clk = "ocp_abe_iclk",
4200 .user = OCP_USER_MPU | OCP_USER_SDMA,
4201};
4202
4203/* l3_main_1 -> l4_cfg */
4204static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
4205 .master = &omap44xx_l3_main_1_hwmod,
4206 .slave = &omap44xx_l4_cfg_hwmod,
4207 .clk = "l3_div_ck",
4208 .user = OCP_USER_MPU | OCP_USER_SDMA,
4209};
4210
4211/* l3_main_2 -> l4_per */
4212static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
4213 .master = &omap44xx_l3_main_2_hwmod,
4214 .slave = &omap44xx_l4_per_hwmod,
4215 .clk = "l3_div_ck",
4216 .user = OCP_USER_MPU | OCP_USER_SDMA,
4217};
4218
4219/* l4_cfg -> l4_wkup */
4220static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
4221 .master = &omap44xx_l4_cfg_hwmod,
4222 .slave = &omap44xx_l4_wkup_hwmod,
4223 .clk = "l4_div_ck",
4224 .user = OCP_USER_MPU | OCP_USER_SDMA,
4225};
4226
4227/* mpu -> mpu_private */
4228static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
4229 .master = &omap44xx_mpu_hwmod,
4230 .slave = &omap44xx_mpu_private_hwmod,
4231 .clk = "l3_div_ck",
4232 .user = OCP_USER_MPU | OCP_USER_SDMA,
4233};
4234
9a817bc8
BC
4235static struct omap_hwmod_addr_space omap44xx_ocp_wp_noc_addrs[] = {
4236 {
4237 .pa_start = 0x4a102000,
4238 .pa_end = 0x4a10207f,
4239 .flags = ADDR_TYPE_RT
4240 },
4241 { }
4242};
4243
4244/* l4_cfg -> ocp_wp_noc */
4245static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
4246 .master = &omap44xx_l4_cfg_hwmod,
4247 .slave = &omap44xx_ocp_wp_noc_hwmod,
4248 .clk = "l4_div_ck",
4249 .addr = omap44xx_ocp_wp_noc_addrs,
4250 .user = OCP_USER_MPU | OCP_USER_SDMA,
4251};
4252
844a3b63
PW
4253static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
4254 {
9f0c5996
SG
4255 .name = "dmem",
4256 .pa_start = 0x40180000,
4257 .pa_end = 0x4018ffff
4258 },
4259 {
4260 .name = "cmem",
4261 .pa_start = 0x401a0000,
4262 .pa_end = 0x401a1fff
4263 },
4264 {
4265 .name = "smem",
4266 .pa_start = 0x401c0000,
4267 .pa_end = 0x401c5fff
4268 },
4269 {
4270 .name = "pmem",
4271 .pa_start = 0x401e0000,
4272 .pa_end = 0x401e1fff
4273 },
4274 {
4275 .name = "mpu",
844a3b63
PW
4276 .pa_start = 0x401f1000,
4277 .pa_end = 0x401f13ff,
4278 .flags = ADDR_TYPE_RT
4279 },
4280 { }
4281};
4282
4283/* l4_abe -> aess */
b0a70cc8 4284static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
844a3b63
PW
4285 .master = &omap44xx_l4_abe_hwmod,
4286 .slave = &omap44xx_aess_hwmod,
4287 .clk = "ocp_abe_iclk",
4288 .addr = omap44xx_aess_addrs,
4289 .user = OCP_USER_MPU,
4290};
4291
4292static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
4293 {
9f0c5996
SG
4294 .name = "dmem_dma",
4295 .pa_start = 0x49080000,
4296 .pa_end = 0x4908ffff
4297 },
4298 {
4299 .name = "cmem_dma",
4300 .pa_start = 0x490a0000,
4301 .pa_end = 0x490a1fff
4302 },
4303 {
4304 .name = "smem_dma",
4305 .pa_start = 0x490c0000,
4306 .pa_end = 0x490c5fff
4307 },
4308 {
4309 .name = "pmem_dma",
4310 .pa_start = 0x490e0000,
4311 .pa_end = 0x490e1fff
4312 },
4313 {
4314 .name = "dma",
844a3b63
PW
4315 .pa_start = 0x490f1000,
4316 .pa_end = 0x490f13ff,
4317 .flags = ADDR_TYPE_RT
4318 },
4319 { }
4320};
4321
4322/* l4_abe -> aess (dma) */
b0a70cc8 4323static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
844a3b63
PW
4324 .master = &omap44xx_l4_abe_hwmod,
4325 .slave = &omap44xx_aess_hwmod,
4326 .clk = "ocp_abe_iclk",
4327 .addr = omap44xx_aess_dma_addrs,
4328 .user = OCP_USER_SDMA,
4329};
4330
42b9e387
PW
4331/* l3_main_2 -> c2c */
4332static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
4333 .master = &omap44xx_l3_main_2_hwmod,
4334 .slave = &omap44xx_c2c_hwmod,
4335 .clk = "l3_div_ck",
4336 .user = OCP_USER_MPU | OCP_USER_SDMA,
4337};
4338
844a3b63
PW
4339static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
4340 {
4341 .pa_start = 0x4a304000,
4342 .pa_end = 0x4a30401f,
4343 .flags = ADDR_TYPE_RT
4344 },
4345 { }
4346};
4347
4348/* l4_wkup -> counter_32k */
4349static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
4350 .master = &omap44xx_l4_wkup_hwmod,
4351 .slave = &omap44xx_counter_32k_hwmod,
4352 .clk = "l4_wkup_clk_mux_ck",
4353 .addr = omap44xx_counter_32k_addrs,
4354 .user = OCP_USER_MPU | OCP_USER_SDMA,
4355};
4356
a0b5d813
PW
4357static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
4358 {
4359 .pa_start = 0x4a002000,
4360 .pa_end = 0x4a0027ff,
4361 .flags = ADDR_TYPE_RT
4362 },
4363 { }
4364};
4365
4366/* l4_cfg -> ctrl_module_core */
4367static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
4368 .master = &omap44xx_l4_cfg_hwmod,
4369 .slave = &omap44xx_ctrl_module_core_hwmod,
4370 .clk = "l4_div_ck",
4371 .addr = omap44xx_ctrl_module_core_addrs,
4372 .user = OCP_USER_MPU | OCP_USER_SDMA,
4373};
4374
4375static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
4376 {
4377 .pa_start = 0x4a100000,
4378 .pa_end = 0x4a1007ff,
4379 .flags = ADDR_TYPE_RT
4380 },
4381 { }
4382};
4383
4384/* l4_cfg -> ctrl_module_pad_core */
4385static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
4386 .master = &omap44xx_l4_cfg_hwmod,
4387 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
4388 .clk = "l4_div_ck",
4389 .addr = omap44xx_ctrl_module_pad_core_addrs,
4390 .user = OCP_USER_MPU | OCP_USER_SDMA,
4391};
4392
4393static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
4394 {
4395 .pa_start = 0x4a30c000,
4396 .pa_end = 0x4a30c7ff,
4397 .flags = ADDR_TYPE_RT
4398 },
4399 { }
4400};
4401
4402/* l4_wkup -> ctrl_module_wkup */
4403static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
4404 .master = &omap44xx_l4_wkup_hwmod,
4405 .slave = &omap44xx_ctrl_module_wkup_hwmod,
4406 .clk = "l4_wkup_clk_mux_ck",
4407 .addr = omap44xx_ctrl_module_wkup_addrs,
4408 .user = OCP_USER_MPU | OCP_USER_SDMA,
4409};
4410
4411static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
4412 {
4413 .pa_start = 0x4a31e000,
4414 .pa_end = 0x4a31e7ff,
4415 .flags = ADDR_TYPE_RT
4416 },
4417 { }
4418};
4419
4420/* l4_wkup -> ctrl_module_pad_wkup */
4421static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
4422 .master = &omap44xx_l4_wkup_hwmod,
4423 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
4424 .clk = "l4_wkup_clk_mux_ck",
4425 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
4426 .user = OCP_USER_MPU | OCP_USER_SDMA,
4427};
4428
96566043
BC
4429static struct omap_hwmod_addr_space omap44xx_debugss_addrs[] = {
4430 {
4431 .pa_start = 0x54160000,
4432 .pa_end = 0x54167fff,
4433 .flags = ADDR_TYPE_RT
4434 },
4435 { }
4436};
4437
4438/* l3_instr -> debugss */
4439static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
4440 .master = &omap44xx_l3_instr_hwmod,
4441 .slave = &omap44xx_debugss_hwmod,
4442 .clk = "l3_div_ck",
4443 .addr = omap44xx_debugss_addrs,
4444 .user = OCP_USER_MPU | OCP_USER_SDMA,
4445};
4446
844a3b63
PW
4447static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
4448 {
4449 .pa_start = 0x4a056000,
4450 .pa_end = 0x4a056fff,
4451 .flags = ADDR_TYPE_RT
4452 },
4453 { }
4454};
4455
4456/* l4_cfg -> dma_system */
4457static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
4458 .master = &omap44xx_l4_cfg_hwmod,
4459 .slave = &omap44xx_dma_system_hwmod,
4460 .clk = "l4_div_ck",
4461 .addr = omap44xx_dma_system_addrs,
4462 .user = OCP_USER_MPU | OCP_USER_SDMA,
4463};
4464
4465static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
4466 {
4467 .name = "mpu",
4468 .pa_start = 0x4012e000,
4469 .pa_end = 0x4012e07f,
4470 .flags = ADDR_TYPE_RT
4471 },
4472 { }
4473};
4474
4475/* l4_abe -> dmic */
4476static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
4477 .master = &omap44xx_l4_abe_hwmod,
4478 .slave = &omap44xx_dmic_hwmod,
4479 .clk = "ocp_abe_iclk",
4480 .addr = omap44xx_dmic_addrs,
4481 .user = OCP_USER_MPU,
4482};
4483
4484static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
4485 {
4486 .name = "dma",
4487 .pa_start = 0x4902e000,
4488 .pa_end = 0x4902e07f,
4489 .flags = ADDR_TYPE_RT
4490 },
4491 { }
4492};
4493
4494/* l4_abe -> dmic (dma) */
4495static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
4496 .master = &omap44xx_l4_abe_hwmod,
4497 .slave = &omap44xx_dmic_hwmod,
4498 .clk = "ocp_abe_iclk",
4499 .addr = omap44xx_dmic_dma_addrs,
4500 .user = OCP_USER_SDMA,
4501};
4502
4503/* dsp -> iva */
4504static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
4505 .master = &omap44xx_dsp_hwmod,
4506 .slave = &omap44xx_iva_hwmod,
4507 .clk = "dpll_iva_m5x2_ck",
4508 .user = OCP_USER_DSP,
4509};
4510
42b9e387 4511/* dsp -> sl2if */
b360124e 4512static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
42b9e387
PW
4513 .master = &omap44xx_dsp_hwmod,
4514 .slave = &omap44xx_sl2if_hwmod,
4515 .clk = "dpll_iva_m5x2_ck",
4516 .user = OCP_USER_DSP,
4517};
4518
844a3b63
PW
4519/* l4_cfg -> dsp */
4520static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
4521 .master = &omap44xx_l4_cfg_hwmod,
4522 .slave = &omap44xx_dsp_hwmod,
4523 .clk = "l4_div_ck",
4524 .user = OCP_USER_MPU | OCP_USER_SDMA,
4525};
4526
4527static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
4528 {
4529 .pa_start = 0x58000000,
4530 .pa_end = 0x5800007f,
4531 .flags = ADDR_TYPE_RT
4532 },
4533 { }
4534};
4535
4536/* l3_main_2 -> dss */
4537static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
4538 .master = &omap44xx_l3_main_2_hwmod,
4539 .slave = &omap44xx_dss_hwmod,
4540 .clk = "dss_fck",
4541 .addr = omap44xx_dss_dma_addrs,
4542 .user = OCP_USER_SDMA,
4543};
4544
4545static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
4546 {
4547 .pa_start = 0x48040000,
4548 .pa_end = 0x4804007f,
4549 .flags = ADDR_TYPE_RT
4550 },
4551 { }
4552};
4553
4554/* l4_per -> dss */
4555static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
4556 .master = &omap44xx_l4_per_hwmod,
4557 .slave = &omap44xx_dss_hwmod,
4558 .clk = "l4_div_ck",
4559 .addr = omap44xx_dss_addrs,
4560 .user = OCP_USER_MPU,
4561};
4562
4563static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
4564 {
4565 .pa_start = 0x58001000,
4566 .pa_end = 0x58001fff,
4567 .flags = ADDR_TYPE_RT
4568 },
4569 { }
4570};
4571
4572/* l3_main_2 -> dss_dispc */
4573static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
4574 .master = &omap44xx_l3_main_2_hwmod,
4575 .slave = &omap44xx_dss_dispc_hwmod,
4576 .clk = "dss_fck",
4577 .addr = omap44xx_dss_dispc_dma_addrs,
4578 .user = OCP_USER_SDMA,
4579};
4580
4581static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
4582 {
4583 .pa_start = 0x48041000,
4584 .pa_end = 0x48041fff,
4585 .flags = ADDR_TYPE_RT
4586 },
4587 { }
4588};
4589
4590/* l4_per -> dss_dispc */
4591static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
4592 .master = &omap44xx_l4_per_hwmod,
4593 .slave = &omap44xx_dss_dispc_hwmod,
4594 .clk = "l4_div_ck",
4595 .addr = omap44xx_dss_dispc_addrs,
4596 .user = OCP_USER_MPU,
4597};
4598
4599static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
4600 {
4601 .pa_start = 0x58004000,
4602 .pa_end = 0x580041ff,
4603 .flags = ADDR_TYPE_RT
4604 },
4605 { }
4606};
4607
4608/* l3_main_2 -> dss_dsi1 */
4609static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
4610 .master = &omap44xx_l3_main_2_hwmod,
4611 .slave = &omap44xx_dss_dsi1_hwmod,
4612 .clk = "dss_fck",
4613 .addr = omap44xx_dss_dsi1_dma_addrs,
4614 .user = OCP_USER_SDMA,
4615};
4616
4617static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
4618 {
4619 .pa_start = 0x48044000,
4620 .pa_end = 0x480441ff,
4621 .flags = ADDR_TYPE_RT
4622 },
4623 { }
4624};
4625
4626/* l4_per -> dss_dsi1 */
4627static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
4628 .master = &omap44xx_l4_per_hwmod,
4629 .slave = &omap44xx_dss_dsi1_hwmod,
4630 .clk = "l4_div_ck",
4631 .addr = omap44xx_dss_dsi1_addrs,
4632 .user = OCP_USER_MPU,
4633};
4634
4635static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
4636 {
4637 .pa_start = 0x58005000,
4638 .pa_end = 0x580051ff,
4639 .flags = ADDR_TYPE_RT
4640 },
4641 { }
4642};
4643
4644/* l3_main_2 -> dss_dsi2 */
4645static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
4646 .master = &omap44xx_l3_main_2_hwmod,
4647 .slave = &omap44xx_dss_dsi2_hwmod,
4648 .clk = "dss_fck",
4649 .addr = omap44xx_dss_dsi2_dma_addrs,
4650 .user = OCP_USER_SDMA,
4651};
4652
4653static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
4654 {
4655 .pa_start = 0x48045000,
4656 .pa_end = 0x480451ff,
4657 .flags = ADDR_TYPE_RT
4658 },
4659 { }
4660};
4661
4662/* l4_per -> dss_dsi2 */
4663static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
4664 .master = &omap44xx_l4_per_hwmod,
4665 .slave = &omap44xx_dss_dsi2_hwmod,
4666 .clk = "l4_div_ck",
4667 .addr = omap44xx_dss_dsi2_addrs,
4668 .user = OCP_USER_MPU,
4669};
4670
4671static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
4672 {
4673 .pa_start = 0x58006000,
4674 .pa_end = 0x58006fff,
4675 .flags = ADDR_TYPE_RT
4676 },
4677 { }
4678};
4679
4680/* l3_main_2 -> dss_hdmi */
4681static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
4682 .master = &omap44xx_l3_main_2_hwmod,
4683 .slave = &omap44xx_dss_hdmi_hwmod,
4684 .clk = "dss_fck",
4685 .addr = omap44xx_dss_hdmi_dma_addrs,
4686 .user = OCP_USER_SDMA,
4687};
4688
4689static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
4690 {
4691 .pa_start = 0x48046000,
4692 .pa_end = 0x48046fff,
4693 .flags = ADDR_TYPE_RT
4694 },
4695 { }
4696};
4697
4698/* l4_per -> dss_hdmi */
4699static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
4700 .master = &omap44xx_l4_per_hwmod,
4701 .slave = &omap44xx_dss_hdmi_hwmod,
4702 .clk = "l4_div_ck",
4703 .addr = omap44xx_dss_hdmi_addrs,
4704 .user = OCP_USER_MPU,
4705};
4706
4707static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
4708 {
4709 .pa_start = 0x58002000,
4710 .pa_end = 0x580020ff,
4711 .flags = ADDR_TYPE_RT
4712 },
4713 { }
4714};
4715
4716/* l3_main_2 -> dss_rfbi */
4717static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
4718 .master = &omap44xx_l3_main_2_hwmod,
4719 .slave = &omap44xx_dss_rfbi_hwmod,
4720 .clk = "dss_fck",
4721 .addr = omap44xx_dss_rfbi_dma_addrs,
4722 .user = OCP_USER_SDMA,
4723};
4724
4725static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
4726 {
4727 .pa_start = 0x48042000,
4728 .pa_end = 0x480420ff,
4729 .flags = ADDR_TYPE_RT
4730 },
4731 { }
4732};
4733
4734/* l4_per -> dss_rfbi */
4735static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
4736 .master = &omap44xx_l4_per_hwmod,
4737 .slave = &omap44xx_dss_rfbi_hwmod,
4738 .clk = "l4_div_ck",
4739 .addr = omap44xx_dss_rfbi_addrs,
4740 .user = OCP_USER_MPU,
4741};
4742
4743static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
4744 {
4745 .pa_start = 0x58003000,
4746 .pa_end = 0x580030ff,
4747 .flags = ADDR_TYPE_RT
4748 },
4749 { }
4750};
4751
4752/* l3_main_2 -> dss_venc */
4753static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
4754 .master = &omap44xx_l3_main_2_hwmod,
4755 .slave = &omap44xx_dss_venc_hwmod,
4756 .clk = "dss_fck",
4757 .addr = omap44xx_dss_venc_dma_addrs,
4758 .user = OCP_USER_SDMA,
4759};
4760
4761static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
4762 {
4763 .pa_start = 0x48043000,
4764 .pa_end = 0x480430ff,
4765 .flags = ADDR_TYPE_RT
4766 },
4767 { }
4768};
4769
4770/* l4_per -> dss_venc */
4771static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
4772 .master = &omap44xx_l4_per_hwmod,
4773 .slave = &omap44xx_dss_venc_hwmod,
4774 .clk = "l4_div_ck",
4775 .addr = omap44xx_dss_venc_addrs,
4776 .user = OCP_USER_MPU,
4777};
4778
42b9e387
PW
4779static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
4780 {
4781 .pa_start = 0x48078000,
4782 .pa_end = 0x48078fff,
4783 .flags = ADDR_TYPE_RT
4784 },
4785 { }
4786};
4787
4788/* l4_per -> elm */
4789static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
4790 .master = &omap44xx_l4_per_hwmod,
4791 .slave = &omap44xx_elm_hwmod,
4792 .clk = "l4_div_ck",
4793 .addr = omap44xx_elm_addrs,
4794 .user = OCP_USER_MPU | OCP_USER_SDMA,
4795};
4796
bf30f950
PW
4797static struct omap_hwmod_addr_space omap44xx_emif1_addrs[] = {
4798 {
4799 .pa_start = 0x4c000000,
4800 .pa_end = 0x4c0000ff,
4801 .flags = ADDR_TYPE_RT
4802 },
4803 { }
4804};
4805
4806/* emif_fw -> emif1 */
4807static struct omap_hwmod_ocp_if omap44xx_emif_fw__emif1 = {
4808 .master = &omap44xx_emif_fw_hwmod,
4809 .slave = &omap44xx_emif1_hwmod,
4810 .clk = "l3_div_ck",
4811 .addr = omap44xx_emif1_addrs,
4812 .user = OCP_USER_MPU | OCP_USER_SDMA,
4813};
4814
4815static struct omap_hwmod_addr_space omap44xx_emif2_addrs[] = {
4816 {
4817 .pa_start = 0x4d000000,
4818 .pa_end = 0x4d0000ff,
4819 .flags = ADDR_TYPE_RT
4820 },
4821 { }
4822};
4823
4824/* emif_fw -> emif2 */
4825static struct omap_hwmod_ocp_if omap44xx_emif_fw__emif2 = {
4826 .master = &omap44xx_emif_fw_hwmod,
4827 .slave = &omap44xx_emif2_hwmod,
4828 .clk = "l3_div_ck",
4829 .addr = omap44xx_emif2_addrs,
4830 .user = OCP_USER_MPU | OCP_USER_SDMA,
4831};
4832
b050f688
ML
4833static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
4834 {
4835 .pa_start = 0x4a10a000,
4836 .pa_end = 0x4a10a1ff,
4837 .flags = ADDR_TYPE_RT
4838 },
4839 { }
4840};
4841
4842/* l4_cfg -> fdif */
4843static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
4844 .master = &omap44xx_l4_cfg_hwmod,
4845 .slave = &omap44xx_fdif_hwmod,
4846 .clk = "l4_div_ck",
4847 .addr = omap44xx_fdif_addrs,
4848 .user = OCP_USER_MPU | OCP_USER_SDMA,
4849};
4850
844a3b63
PW
4851static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
4852 {
4853 .pa_start = 0x4a310000,
4854 .pa_end = 0x4a3101ff,
4855 .flags = ADDR_TYPE_RT
4856 },
4857 { }
4858};
4859
4860/* l4_wkup -> gpio1 */
4861static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
4862 .master = &omap44xx_l4_wkup_hwmod,
4863 .slave = &omap44xx_gpio1_hwmod,
4864 .clk = "l4_wkup_clk_mux_ck",
4865 .addr = omap44xx_gpio1_addrs,
4866 .user = OCP_USER_MPU | OCP_USER_SDMA,
4867};
4868
4869static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
4870 {
4871 .pa_start = 0x48055000,
4872 .pa_end = 0x480551ff,
4873 .flags = ADDR_TYPE_RT
4874 },
4875 { }
4876};
4877
4878/* l4_per -> gpio2 */
4879static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
4880 .master = &omap44xx_l4_per_hwmod,
4881 .slave = &omap44xx_gpio2_hwmod,
4882 .clk = "l4_div_ck",
4883 .addr = omap44xx_gpio2_addrs,
4884 .user = OCP_USER_MPU | OCP_USER_SDMA,
4885};
4886
4887static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
4888 {
4889 .pa_start = 0x48057000,
4890 .pa_end = 0x480571ff,
4891 .flags = ADDR_TYPE_RT
4892 },
4893 { }
4894};
4895
4896/* l4_per -> gpio3 */
4897static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
4898 .master = &omap44xx_l4_per_hwmod,
4899 .slave = &omap44xx_gpio3_hwmod,
4900 .clk = "l4_div_ck",
4901 .addr = omap44xx_gpio3_addrs,
4902 .user = OCP_USER_MPU | OCP_USER_SDMA,
4903};
4904
4905static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
4906 {
4907 .pa_start = 0x48059000,
4908 .pa_end = 0x480591ff,
4909 .flags = ADDR_TYPE_RT
4910 },
4911 { }
4912};
4913
4914/* l4_per -> gpio4 */
4915static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
4916 .master = &omap44xx_l4_per_hwmod,
4917 .slave = &omap44xx_gpio4_hwmod,
4918 .clk = "l4_div_ck",
4919 .addr = omap44xx_gpio4_addrs,
4920 .user = OCP_USER_MPU | OCP_USER_SDMA,
4921};
4922
4923static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
4924 {
4925 .pa_start = 0x4805b000,
4926 .pa_end = 0x4805b1ff,
4927 .flags = ADDR_TYPE_RT
4928 },
4929 { }
4930};
4931
4932/* l4_per -> gpio5 */
4933static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
4934 .master = &omap44xx_l4_per_hwmod,
4935 .slave = &omap44xx_gpio5_hwmod,
4936 .clk = "l4_div_ck",
4937 .addr = omap44xx_gpio5_addrs,
4938 .user = OCP_USER_MPU | OCP_USER_SDMA,
4939};
4940
4941static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
4942 {
4943 .pa_start = 0x4805d000,
4944 .pa_end = 0x4805d1ff,
4945 .flags = ADDR_TYPE_RT
4946 },
4947 { }
4948};
4949
4950/* l4_per -> gpio6 */
4951static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
4952 .master = &omap44xx_l4_per_hwmod,
4953 .slave = &omap44xx_gpio6_hwmod,
4954 .clk = "l4_div_ck",
4955 .addr = omap44xx_gpio6_addrs,
4956 .user = OCP_USER_MPU | OCP_USER_SDMA,
4957};
4958
eb42b5d3
BC
4959static struct omap_hwmod_addr_space omap44xx_gpmc_addrs[] = {
4960 {
4961 .pa_start = 0x50000000,
4962 .pa_end = 0x500003ff,
4963 .flags = ADDR_TYPE_RT
4964 },
4965 { }
4966};
4967
4968/* l3_main_2 -> gpmc */
4969static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4970 .master = &omap44xx_l3_main_2_hwmod,
4971 .slave = &omap44xx_gpmc_hwmod,
4972 .clk = "l3_div_ck",
4973 .addr = omap44xx_gpmc_addrs,
4974 .user = OCP_USER_MPU | OCP_USER_SDMA,
4975};
4976
9def390e
PW
4977static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4978 {
4979 .pa_start = 0x56000000,
4980 .pa_end = 0x5600ffff,
4981 .flags = ADDR_TYPE_RT
4982 },
4983 { }
4984};
4985
4986/* l3_main_2 -> gpu */
4987static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4988 .master = &omap44xx_l3_main_2_hwmod,
4989 .slave = &omap44xx_gpu_hwmod,
4990 .clk = "l3_div_ck",
4991 .addr = omap44xx_gpu_addrs,
4992 .user = OCP_USER_MPU | OCP_USER_SDMA,
4993};
4994
a091c08e
PW
4995static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4996 {
4997 .pa_start = 0x480b2000,
4998 .pa_end = 0x480b201f,
4999 .flags = ADDR_TYPE_RT
5000 },
5001 { }
5002};
5003
5004/* l4_per -> hdq1w */
5005static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
5006 .master = &omap44xx_l4_per_hwmod,
5007 .slave = &omap44xx_hdq1w_hwmod,
5008 .clk = "l4_div_ck",
5009 .addr = omap44xx_hdq1w_addrs,
5010 .user = OCP_USER_MPU | OCP_USER_SDMA,
5011};
5012
844a3b63
PW
5013static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
5014 {
5015 .pa_start = 0x4a058000,
5016 .pa_end = 0x4a05bfff,
5017 .flags = ADDR_TYPE_RT
5018 },
5019 { }
5020};
5021
5022/* l4_cfg -> hsi */
5023static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
5024 .master = &omap44xx_l4_cfg_hwmod,
5025 .slave = &omap44xx_hsi_hwmod,
5026 .clk = "l4_div_ck",
5027 .addr = omap44xx_hsi_addrs,
5028 .user = OCP_USER_MPU | OCP_USER_SDMA,
5029};
5030
5031static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
5032 {
5033 .pa_start = 0x48070000,
5034 .pa_end = 0x480700ff,
5035 .flags = ADDR_TYPE_RT
5036 },
5037 { }
5038};
5039
5040/* l4_per -> i2c1 */
5041static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
5042 .master = &omap44xx_l4_per_hwmod,
5043 .slave = &omap44xx_i2c1_hwmod,
5044 .clk = "l4_div_ck",
5045 .addr = omap44xx_i2c1_addrs,
5046 .user = OCP_USER_MPU | OCP_USER_SDMA,
5047};
5048
5049static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
5050 {
5051 .pa_start = 0x48072000,
5052 .pa_end = 0x480720ff,
5053 .flags = ADDR_TYPE_RT
5054 },
5055 { }
5056};
5057
5058/* l4_per -> i2c2 */
5059static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
5060 .master = &omap44xx_l4_per_hwmod,
5061 .slave = &omap44xx_i2c2_hwmod,
5062 .clk = "l4_div_ck",
5063 .addr = omap44xx_i2c2_addrs,
5064 .user = OCP_USER_MPU | OCP_USER_SDMA,
5065};
5066
5067static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
5068 {
5069 .pa_start = 0x48060000,
5070 .pa_end = 0x480600ff,
5071 .flags = ADDR_TYPE_RT
5072 },
5073 { }
5074};
5075
5076/* l4_per -> i2c3 */
5077static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
5078 .master = &omap44xx_l4_per_hwmod,
5079 .slave = &omap44xx_i2c3_hwmod,
5080 .clk = "l4_div_ck",
5081 .addr = omap44xx_i2c3_addrs,
5082 .user = OCP_USER_MPU | OCP_USER_SDMA,
5083};
5084
5085static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
5086 {
5087 .pa_start = 0x48350000,
5088 .pa_end = 0x483500ff,
5089 .flags = ADDR_TYPE_RT
5090 },
5091 { }
5092};
5093
5094/* l4_per -> i2c4 */
5095static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
5096 .master = &omap44xx_l4_per_hwmod,
5097 .slave = &omap44xx_i2c4_hwmod,
5098 .clk = "l4_div_ck",
5099 .addr = omap44xx_i2c4_addrs,
5100 .user = OCP_USER_MPU | OCP_USER_SDMA,
5101};
5102
5103/* l3_main_2 -> ipu */
5104static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
5105 .master = &omap44xx_l3_main_2_hwmod,
5106 .slave = &omap44xx_ipu_hwmod,
5107 .clk = "l3_div_ck",
5108 .user = OCP_USER_MPU | OCP_USER_SDMA,
5109};
5110
5111static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
5112 {
5113 .pa_start = 0x52000000,
5114 .pa_end = 0x520000ff,
5115 .flags = ADDR_TYPE_RT
5116 },
5117 { }
5118};
5119
5120/* l3_main_2 -> iss */
5121static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
5122 .master = &omap44xx_l3_main_2_hwmod,
5123 .slave = &omap44xx_iss_hwmod,
5124 .clk = "l3_div_ck",
5125 .addr = omap44xx_iss_addrs,
5126 .user = OCP_USER_MPU | OCP_USER_SDMA,
5127};
5128
42b9e387 5129/* iva -> sl2if */
b360124e 5130static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
42b9e387
PW
5131 .master = &omap44xx_iva_hwmod,
5132 .slave = &omap44xx_sl2if_hwmod,
5133 .clk = "dpll_iva_m5x2_ck",
5134 .user = OCP_USER_IVA,
5135};
5136
844a3b63
PW
5137static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
5138 {
5139 .pa_start = 0x5a000000,
5140 .pa_end = 0x5a07ffff,
5141 .flags = ADDR_TYPE_RT
5142 },
5143 { }
5144};
5145
5146/* l3_main_2 -> iva */
5147static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
5148 .master = &omap44xx_l3_main_2_hwmod,
5149 .slave = &omap44xx_iva_hwmod,
5150 .clk = "l3_div_ck",
5151 .addr = omap44xx_iva_addrs,
5152 .user = OCP_USER_MPU,
5153};
5154
5155static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
5156 {
5157 .pa_start = 0x4a31c000,
5158 .pa_end = 0x4a31c07f,
5159 .flags = ADDR_TYPE_RT
5160 },
5161 { }
5162};
5163
5164/* l4_wkup -> kbd */
5165static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
5166 .master = &omap44xx_l4_wkup_hwmod,
5167 .slave = &omap44xx_kbd_hwmod,
5168 .clk = "l4_wkup_clk_mux_ck",
5169 .addr = omap44xx_kbd_addrs,
5170 .user = OCP_USER_MPU | OCP_USER_SDMA,
5171};
5172
5173static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
5174 {
5175 .pa_start = 0x4a0f4000,
5176 .pa_end = 0x4a0f41ff,
5177 .flags = ADDR_TYPE_RT
5178 },
5179 { }
5180};
5181
5182/* l4_cfg -> mailbox */
5183static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
5184 .master = &omap44xx_l4_cfg_hwmod,
5185 .slave = &omap44xx_mailbox_hwmod,
5186 .clk = "l4_div_ck",
5187 .addr = omap44xx_mailbox_addrs,
5188 .user = OCP_USER_MPU | OCP_USER_SDMA,
5189};
5190
896d4e98
BC
5191static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
5192 {
5193 .pa_start = 0x40128000,
5194 .pa_end = 0x401283ff,
5195 .flags = ADDR_TYPE_RT
5196 },
5197 { }
5198};
5199
5200/* l4_abe -> mcasp */
5201static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
5202 .master = &omap44xx_l4_abe_hwmod,
5203 .slave = &omap44xx_mcasp_hwmod,
5204 .clk = "ocp_abe_iclk",
5205 .addr = omap44xx_mcasp_addrs,
5206 .user = OCP_USER_MPU,
5207};
5208
5209static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
5210 {
5211 .pa_start = 0x49028000,
5212 .pa_end = 0x490283ff,
5213 .flags = ADDR_TYPE_RT
5214 },
5215 { }
5216};
5217
5218/* l4_abe -> mcasp (dma) */
5219static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
5220 .master = &omap44xx_l4_abe_hwmod,
5221 .slave = &omap44xx_mcasp_hwmod,
5222 .clk = "ocp_abe_iclk",
5223 .addr = omap44xx_mcasp_dma_addrs,
5224 .user = OCP_USER_SDMA,
5225};
5226
844a3b63
PW
5227static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
5228 {
5229 .name = "mpu",
5230 .pa_start = 0x40122000,
5231 .pa_end = 0x401220ff,
5232 .flags = ADDR_TYPE_RT
5233 },
5234 { }
5235};
5236
5237/* l4_abe -> mcbsp1 */
5238static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
5239 .master = &omap44xx_l4_abe_hwmod,
5240 .slave = &omap44xx_mcbsp1_hwmod,
5241 .clk = "ocp_abe_iclk",
5242 .addr = omap44xx_mcbsp1_addrs,
5243 .user = OCP_USER_MPU,
5244};
5245
5246static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
5247 {
5248 .name = "dma",
5249 .pa_start = 0x49022000,
5250 .pa_end = 0x490220ff,
5251 .flags = ADDR_TYPE_RT
5252 },
5253 { }
5254};
5255
5256/* l4_abe -> mcbsp1 (dma) */
5257static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
5258 .master = &omap44xx_l4_abe_hwmod,
5259 .slave = &omap44xx_mcbsp1_hwmod,
5260 .clk = "ocp_abe_iclk",
5261 .addr = omap44xx_mcbsp1_dma_addrs,
5262 .user = OCP_USER_SDMA,
5263};
5264
5265static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
5266 {
5267 .name = "mpu",
5268 .pa_start = 0x40124000,
5269 .pa_end = 0x401240ff,
5270 .flags = ADDR_TYPE_RT
5271 },
5272 { }
5273};
5274
5275/* l4_abe -> mcbsp2 */
5276static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
5277 .master = &omap44xx_l4_abe_hwmod,
5278 .slave = &omap44xx_mcbsp2_hwmod,
5279 .clk = "ocp_abe_iclk",
5280 .addr = omap44xx_mcbsp2_addrs,
5281 .user = OCP_USER_MPU,
5282};
5283
5284static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
5285 {
5286 .name = "dma",
5287 .pa_start = 0x49024000,
5288 .pa_end = 0x490240ff,
5289 .flags = ADDR_TYPE_RT
5290 },
5291 { }
5292};
5293
5294/* l4_abe -> mcbsp2 (dma) */
5295static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
5296 .master = &omap44xx_l4_abe_hwmod,
5297 .slave = &omap44xx_mcbsp2_hwmod,
5298 .clk = "ocp_abe_iclk",
5299 .addr = omap44xx_mcbsp2_dma_addrs,
5300 .user = OCP_USER_SDMA,
5301};
5302
5303static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
5304 {
5305 .name = "mpu",
5306 .pa_start = 0x40126000,
5307 .pa_end = 0x401260ff,
5308 .flags = ADDR_TYPE_RT
5309 },
5310 { }
5311};
5312
5313/* l4_abe -> mcbsp3 */
5314static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
5315 .master = &omap44xx_l4_abe_hwmod,
5316 .slave = &omap44xx_mcbsp3_hwmod,
5317 .clk = "ocp_abe_iclk",
5318 .addr = omap44xx_mcbsp3_addrs,
5319 .user = OCP_USER_MPU,
5320};
5321
5322static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
5323 {
5324 .name = "dma",
5325 .pa_start = 0x49026000,
5326 .pa_end = 0x490260ff,
5327 .flags = ADDR_TYPE_RT
5328 },
5329 { }
5330};
5331
5332/* l4_abe -> mcbsp3 (dma) */
5333static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
5334 .master = &omap44xx_l4_abe_hwmod,
5335 .slave = &omap44xx_mcbsp3_hwmod,
5336 .clk = "ocp_abe_iclk",
5337 .addr = omap44xx_mcbsp3_dma_addrs,
5338 .user = OCP_USER_SDMA,
5339};
5340
5341static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
5342 {
5343 .pa_start = 0x48096000,
5344 .pa_end = 0x480960ff,
5345 .flags = ADDR_TYPE_RT
5346 },
5347 { }
5348};
5349
5350/* l4_per -> mcbsp4 */
5351static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
5352 .master = &omap44xx_l4_per_hwmod,
5353 .slave = &omap44xx_mcbsp4_hwmod,
5354 .clk = "l4_div_ck",
5355 .addr = omap44xx_mcbsp4_addrs,
5356 .user = OCP_USER_MPU | OCP_USER_SDMA,
5357};
5358
5359static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
5360 {
acd08ecd 5361 .name = "mpu",
844a3b63
PW
5362 .pa_start = 0x40132000,
5363 .pa_end = 0x4013207f,
5364 .flags = ADDR_TYPE_RT
5365 },
5366 { }
5367};
5368
5369/* l4_abe -> mcpdm */
5370static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
5371 .master = &omap44xx_l4_abe_hwmod,
5372 .slave = &omap44xx_mcpdm_hwmod,
5373 .clk = "ocp_abe_iclk",
5374 .addr = omap44xx_mcpdm_addrs,
5375 .user = OCP_USER_MPU,
5376};
5377
5378static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
5379 {
acd08ecd 5380 .name = "dma",
844a3b63
PW
5381 .pa_start = 0x49032000,
5382 .pa_end = 0x4903207f,
5383 .flags = ADDR_TYPE_RT
5384 },
5385 { }
5386};
5387
5388/* l4_abe -> mcpdm (dma) */
5389static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
5390 .master = &omap44xx_l4_abe_hwmod,
5391 .slave = &omap44xx_mcpdm_hwmod,
5392 .clk = "ocp_abe_iclk",
5393 .addr = omap44xx_mcpdm_dma_addrs,
5394 .user = OCP_USER_SDMA,
5395};
5396
5397static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
5398 {
5399 .pa_start = 0x48098000,
5400 .pa_end = 0x480981ff,
5401 .flags = ADDR_TYPE_RT
5402 },
5403 { }
5404};
5405
5406/* l4_per -> mcspi1 */
5407static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
5408 .master = &omap44xx_l4_per_hwmod,
5409 .slave = &omap44xx_mcspi1_hwmod,
5410 .clk = "l4_div_ck",
5411 .addr = omap44xx_mcspi1_addrs,
5412 .user = OCP_USER_MPU | OCP_USER_SDMA,
5413};
5414
5415static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
5416 {
5417 .pa_start = 0x4809a000,
5418 .pa_end = 0x4809a1ff,
5419 .flags = ADDR_TYPE_RT
5420 },
5421 { }
5422};
5423
5424/* l4_per -> mcspi2 */
5425static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
5426 .master = &omap44xx_l4_per_hwmod,
5427 .slave = &omap44xx_mcspi2_hwmod,
5428 .clk = "l4_div_ck",
5429 .addr = omap44xx_mcspi2_addrs,
5430 .user = OCP_USER_MPU | OCP_USER_SDMA,
5431};
5432
5433static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
5434 {
5435 .pa_start = 0x480b8000,
5436 .pa_end = 0x480b81ff,
5437 .flags = ADDR_TYPE_RT
5438 },
5439 { }
5440};
5441
5442/* l4_per -> mcspi3 */
5443static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
5444 .master = &omap44xx_l4_per_hwmod,
5445 .slave = &omap44xx_mcspi3_hwmod,
5446 .clk = "l4_div_ck",
5447 .addr = omap44xx_mcspi3_addrs,
5448 .user = OCP_USER_MPU | OCP_USER_SDMA,
5449};
5450
5451static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
5452 {
5453 .pa_start = 0x480ba000,
5454 .pa_end = 0x480ba1ff,
5455 .flags = ADDR_TYPE_RT
5456 },
5457 { }
5458};
5459
5460/* l4_per -> mcspi4 */
5461static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
5462 .master = &omap44xx_l4_per_hwmod,
5463 .slave = &omap44xx_mcspi4_hwmod,
5464 .clk = "l4_div_ck",
5465 .addr = omap44xx_mcspi4_addrs,
5466 .user = OCP_USER_MPU | OCP_USER_SDMA,
5467};
5468
5469static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
5470 {
5471 .pa_start = 0x4809c000,
5472 .pa_end = 0x4809c3ff,
5473 .flags = ADDR_TYPE_RT
5474 },
5475 { }
5476};
5477
5478/* l4_per -> mmc1 */
5479static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
5480 .master = &omap44xx_l4_per_hwmod,
5481 .slave = &omap44xx_mmc1_hwmod,
5482 .clk = "l4_div_ck",
5483 .addr = omap44xx_mmc1_addrs,
5484 .user = OCP_USER_MPU | OCP_USER_SDMA,
5485};
5486
5487static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
5488 {
5489 .pa_start = 0x480b4000,
5490 .pa_end = 0x480b43ff,
5491 .flags = ADDR_TYPE_RT
5492 },
5493 { }
5494};
5495
5496/* l4_per -> mmc2 */
5497static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
5498 .master = &omap44xx_l4_per_hwmod,
5499 .slave = &omap44xx_mmc2_hwmod,
5500 .clk = "l4_div_ck",
5501 .addr = omap44xx_mmc2_addrs,
5502 .user = OCP_USER_MPU | OCP_USER_SDMA,
5503};
5504
5505static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
5506 {
5507 .pa_start = 0x480ad000,
5508 .pa_end = 0x480ad3ff,
5509 .flags = ADDR_TYPE_RT
5510 },
5511 { }
5512};
5513
5514/* l4_per -> mmc3 */
5515static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
5516 .master = &omap44xx_l4_per_hwmod,
5517 .slave = &omap44xx_mmc3_hwmod,
5518 .clk = "l4_div_ck",
5519 .addr = omap44xx_mmc3_addrs,
5520 .user = OCP_USER_MPU | OCP_USER_SDMA,
5521};
5522
5523static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
5524 {
5525 .pa_start = 0x480d1000,
5526 .pa_end = 0x480d13ff,
5527 .flags = ADDR_TYPE_RT
5528 },
5529 { }
5530};
5531
5532/* l4_per -> mmc4 */
5533static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
5534 .master = &omap44xx_l4_per_hwmod,
5535 .slave = &omap44xx_mmc4_hwmod,
5536 .clk = "l4_div_ck",
5537 .addr = omap44xx_mmc4_addrs,
5538 .user = OCP_USER_MPU | OCP_USER_SDMA,
5539};
5540
5541static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
5542 {
5543 .pa_start = 0x480d5000,
5544 .pa_end = 0x480d53ff,
5545 .flags = ADDR_TYPE_RT
5546 },
5547 { }
5548};
5549
5550/* l4_per -> mmc5 */
5551static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
5552 .master = &omap44xx_l4_per_hwmod,
5553 .slave = &omap44xx_mmc5_hwmod,
5554 .clk = "l4_div_ck",
5555 .addr = omap44xx_mmc5_addrs,
5556 .user = OCP_USER_MPU | OCP_USER_SDMA,
5557};
5558
e17f18c0
PW
5559/* l3_main_2 -> ocmc_ram */
5560static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
5561 .master = &omap44xx_l3_main_2_hwmod,
5562 .slave = &omap44xx_ocmc_ram_hwmod,
5563 .clk = "l3_div_ck",
5564 .user = OCP_USER_MPU | OCP_USER_SDMA,
5565};
5566
33c976ec
BC
5567static struct omap_hwmod_addr_space omap44xx_ocp2scp_usb_phy_addrs[] = {
5568 {
5569 .pa_start = 0x4a0ad000,
5570 .pa_end = 0x4a0ad01f,
5571 .flags = ADDR_TYPE_RT
5572 },
5573 { }
5574};
5575
0c668875
BC
5576/* l4_cfg -> ocp2scp_usb_phy */
5577static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
5578 .master = &omap44xx_l4_cfg_hwmod,
5579 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
5580 .clk = "l4_div_ck",
33c976ec 5581 .addr = omap44xx_ocp2scp_usb_phy_addrs,
0c668875
BC
5582 .user = OCP_USER_MPU | OCP_USER_SDMA,
5583};
5584
794b480a
PW
5585static struct omap_hwmod_addr_space omap44xx_prcm_mpu_addrs[] = {
5586 {
5587 .pa_start = 0x48243000,
5588 .pa_end = 0x48243fff,
5589 .flags = ADDR_TYPE_RT
5590 },
5591 { }
5592};
5593
5594/* mpu_private -> prcm_mpu */
5595static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
5596 .master = &omap44xx_mpu_private_hwmod,
5597 .slave = &omap44xx_prcm_mpu_hwmod,
5598 .clk = "l3_div_ck",
5599 .addr = omap44xx_prcm_mpu_addrs,
5600 .user = OCP_USER_MPU | OCP_USER_SDMA,
5601};
5602
5603static struct omap_hwmod_addr_space omap44xx_cm_core_aon_addrs[] = {
5604 {
5605 .pa_start = 0x4a004000,
5606 .pa_end = 0x4a004fff,
5607 .flags = ADDR_TYPE_RT
5608 },
5609 { }
5610};
5611
5612/* l4_wkup -> cm_core_aon */
5613static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
5614 .master = &omap44xx_l4_wkup_hwmod,
5615 .slave = &omap44xx_cm_core_aon_hwmod,
5616 .clk = "l4_wkup_clk_mux_ck",
5617 .addr = omap44xx_cm_core_aon_addrs,
5618 .user = OCP_USER_MPU | OCP_USER_SDMA,
5619};
5620
5621static struct omap_hwmod_addr_space omap44xx_cm_core_addrs[] = {
5622 {
5623 .pa_start = 0x4a008000,
5624 .pa_end = 0x4a009fff,
5625 .flags = ADDR_TYPE_RT
5626 },
5627 { }
5628};
5629
5630/* l4_cfg -> cm_core */
5631static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
5632 .master = &omap44xx_l4_cfg_hwmod,
5633 .slave = &omap44xx_cm_core_hwmod,
5634 .clk = "l4_div_ck",
5635 .addr = omap44xx_cm_core_addrs,
5636 .user = OCP_USER_MPU | OCP_USER_SDMA,
5637};
5638
5639static struct omap_hwmod_addr_space omap44xx_prm_addrs[] = {
5640 {
5641 .pa_start = 0x4a306000,
5642 .pa_end = 0x4a307fff,
5643 .flags = ADDR_TYPE_RT
5644 },
5645 { }
5646};
5647
5648/* l4_wkup -> prm */
5649static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
5650 .master = &omap44xx_l4_wkup_hwmod,
5651 .slave = &omap44xx_prm_hwmod,
5652 .clk = "l4_wkup_clk_mux_ck",
5653 .addr = omap44xx_prm_addrs,
5654 .user = OCP_USER_MPU | OCP_USER_SDMA,
5655};
5656
5657static struct omap_hwmod_addr_space omap44xx_scrm_addrs[] = {
5658 {
5659 .pa_start = 0x4a30a000,
5660 .pa_end = 0x4a30a7ff,
5661 .flags = ADDR_TYPE_RT
5662 },
5663 { }
5664};
5665
5666/* l4_wkup -> scrm */
5667static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
5668 .master = &omap44xx_l4_wkup_hwmod,
5669 .slave = &omap44xx_scrm_hwmod,
5670 .clk = "l4_wkup_clk_mux_ck",
5671 .addr = omap44xx_scrm_addrs,
5672 .user = OCP_USER_MPU | OCP_USER_SDMA,
5673};
5674
42b9e387 5675/* l3_main_2 -> sl2if */
b360124e 5676static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
42b9e387
PW
5677 .master = &omap44xx_l3_main_2_hwmod,
5678 .slave = &omap44xx_sl2if_hwmod,
5679 .clk = "l3_div_ck",
5680 .user = OCP_USER_MPU | OCP_USER_SDMA,
5681};
5682
1e3b5e59
BC
5683static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
5684 {
5685 .pa_start = 0x4012c000,
5686 .pa_end = 0x4012c3ff,
5687 .flags = ADDR_TYPE_RT
5688 },
5689 { }
5690};
5691
5692/* l4_abe -> slimbus1 */
5693static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
5694 .master = &omap44xx_l4_abe_hwmod,
5695 .slave = &omap44xx_slimbus1_hwmod,
5696 .clk = "ocp_abe_iclk",
5697 .addr = omap44xx_slimbus1_addrs,
5698 .user = OCP_USER_MPU,
5699};
5700
5701static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
5702 {
5703 .pa_start = 0x4902c000,
5704 .pa_end = 0x4902c3ff,
5705 .flags = ADDR_TYPE_RT
5706 },
5707 { }
5708};
5709
5710/* l4_abe -> slimbus1 (dma) */
5711static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
5712 .master = &omap44xx_l4_abe_hwmod,
5713 .slave = &omap44xx_slimbus1_hwmod,
5714 .clk = "ocp_abe_iclk",
5715 .addr = omap44xx_slimbus1_dma_addrs,
5716 .user = OCP_USER_SDMA,
5717};
5718
5719static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
5720 {
5721 .pa_start = 0x48076000,
5722 .pa_end = 0x480763ff,
5723 .flags = ADDR_TYPE_RT
5724 },
5725 { }
5726};
5727
5728/* l4_per -> slimbus2 */
5729static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
5730 .master = &omap44xx_l4_per_hwmod,
5731 .slave = &omap44xx_slimbus2_hwmod,
5732 .clk = "l4_div_ck",
5733 .addr = omap44xx_slimbus2_addrs,
5734 .user = OCP_USER_MPU | OCP_USER_SDMA,
5735};
5736
844a3b63
PW
5737static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
5738 {
5739 .pa_start = 0x4a0dd000,
5740 .pa_end = 0x4a0dd03f,
5741 .flags = ADDR_TYPE_RT
5742 },
5743 { }
5744};
5745
5746/* l4_cfg -> smartreflex_core */
5747static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
5748 .master = &omap44xx_l4_cfg_hwmod,
5749 .slave = &omap44xx_smartreflex_core_hwmod,
5750 .clk = "l4_div_ck",
5751 .addr = omap44xx_smartreflex_core_addrs,
5752 .user = OCP_USER_MPU | OCP_USER_SDMA,
5753};
5754
5755static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
5756 {
5757 .pa_start = 0x4a0db000,
5758 .pa_end = 0x4a0db03f,
5759 .flags = ADDR_TYPE_RT
5760 },
5761 { }
5762};
5763
5764/* l4_cfg -> smartreflex_iva */
5765static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
5766 .master = &omap44xx_l4_cfg_hwmod,
5767 .slave = &omap44xx_smartreflex_iva_hwmod,
5768 .clk = "l4_div_ck",
5769 .addr = omap44xx_smartreflex_iva_addrs,
5770 .user = OCP_USER_MPU | OCP_USER_SDMA,
5771};
5772
5773static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
5774 {
5775 .pa_start = 0x4a0d9000,
5776 .pa_end = 0x4a0d903f,
5777 .flags = ADDR_TYPE_RT
5778 },
5779 { }
5780};
5781
5782/* l4_cfg -> smartreflex_mpu */
5783static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
5784 .master = &omap44xx_l4_cfg_hwmod,
5785 .slave = &omap44xx_smartreflex_mpu_hwmod,
5786 .clk = "l4_div_ck",
5787 .addr = omap44xx_smartreflex_mpu_addrs,
5788 .user = OCP_USER_MPU | OCP_USER_SDMA,
5789};
5790
5791static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
5792 {
5793 .pa_start = 0x4a0f6000,
5794 .pa_end = 0x4a0f6fff,
5795 .flags = ADDR_TYPE_RT
5796 },
5797 { }
5798};
5799
5800/* l4_cfg -> spinlock */
5801static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
5802 .master = &omap44xx_l4_cfg_hwmod,
5803 .slave = &omap44xx_spinlock_hwmod,
5804 .clk = "l4_div_ck",
5805 .addr = omap44xx_spinlock_addrs,
5806 .user = OCP_USER_MPU | OCP_USER_SDMA,
5807};
5808
5809static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
5810 {
5811 .pa_start = 0x4a318000,
5812 .pa_end = 0x4a31807f,
5813 .flags = ADDR_TYPE_RT
5814 },
5815 { }
5816};
5817
5818/* l4_wkup -> timer1 */
5819static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
5820 .master = &omap44xx_l4_wkup_hwmod,
5821 .slave = &omap44xx_timer1_hwmod,
5822 .clk = "l4_wkup_clk_mux_ck",
5823 .addr = omap44xx_timer1_addrs,
5824 .user = OCP_USER_MPU | OCP_USER_SDMA,
5825};
5826
5827static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
5828 {
5829 .pa_start = 0x48032000,
5830 .pa_end = 0x4803207f,
5831 .flags = ADDR_TYPE_RT
5832 },
5833 { }
5834};
5835
5836/* l4_per -> timer2 */
5837static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
5838 .master = &omap44xx_l4_per_hwmod,
5839 .slave = &omap44xx_timer2_hwmod,
5840 .clk = "l4_div_ck",
5841 .addr = omap44xx_timer2_addrs,
5842 .user = OCP_USER_MPU | OCP_USER_SDMA,
5843};
5844
5845static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
5846 {
5847 .pa_start = 0x48034000,
5848 .pa_end = 0x4803407f,
5849 .flags = ADDR_TYPE_RT
5850 },
5851 { }
5852};
5853
5854/* l4_per -> timer3 */
5855static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
5856 .master = &omap44xx_l4_per_hwmod,
5857 .slave = &omap44xx_timer3_hwmod,
5858 .clk = "l4_div_ck",
5859 .addr = omap44xx_timer3_addrs,
5860 .user = OCP_USER_MPU | OCP_USER_SDMA,
5861};
5862
5863static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
5864 {
5865 .pa_start = 0x48036000,
5866 .pa_end = 0x4803607f,
5867 .flags = ADDR_TYPE_RT
5868 },
5869 { }
5870};
5871
5872/* l4_per -> timer4 */
5873static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
5874 .master = &omap44xx_l4_per_hwmod,
5875 .slave = &omap44xx_timer4_hwmod,
5876 .clk = "l4_div_ck",
5877 .addr = omap44xx_timer4_addrs,
5878 .user = OCP_USER_MPU | OCP_USER_SDMA,
5879};
5880
5881static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
5882 {
5883 .pa_start = 0x40138000,
5884 .pa_end = 0x4013807f,
5885 .flags = ADDR_TYPE_RT
5886 },
5887 { }
5888};
5889
5890/* l4_abe -> timer5 */
5891static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
5892 .master = &omap44xx_l4_abe_hwmod,
5893 .slave = &omap44xx_timer5_hwmod,
5894 .clk = "ocp_abe_iclk",
5895 .addr = omap44xx_timer5_addrs,
5896 .user = OCP_USER_MPU,
5897};
5898
5899static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
5900 {
5901 .pa_start = 0x49038000,
5902 .pa_end = 0x4903807f,
5903 .flags = ADDR_TYPE_RT
5904 },
5905 { }
5906};
5907
5908/* l4_abe -> timer5 (dma) */
5909static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
5910 .master = &omap44xx_l4_abe_hwmod,
5911 .slave = &omap44xx_timer5_hwmod,
5912 .clk = "ocp_abe_iclk",
5913 .addr = omap44xx_timer5_dma_addrs,
5914 .user = OCP_USER_SDMA,
5915};
5916
5917static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
5918 {
5919 .pa_start = 0x4013a000,
5920 .pa_end = 0x4013a07f,
5921 .flags = ADDR_TYPE_RT
5922 },
5923 { }
5924};
5925
5926/* l4_abe -> timer6 */
5927static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
5928 .master = &omap44xx_l4_abe_hwmod,
5929 .slave = &omap44xx_timer6_hwmod,
5930 .clk = "ocp_abe_iclk",
5931 .addr = omap44xx_timer6_addrs,
5932 .user = OCP_USER_MPU,
5933};
5934
5935static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
5936 {
5937 .pa_start = 0x4903a000,
5938 .pa_end = 0x4903a07f,
5939 .flags = ADDR_TYPE_RT
5940 },
5941 { }
5942};
5943
5944/* l4_abe -> timer6 (dma) */
5945static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
5946 .master = &omap44xx_l4_abe_hwmod,
5947 .slave = &omap44xx_timer6_hwmod,
5948 .clk = "ocp_abe_iclk",
5949 .addr = omap44xx_timer6_dma_addrs,
5950 .user = OCP_USER_SDMA,
5951};
5952
5953static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
5954 {
5955 .pa_start = 0x4013c000,
5956 .pa_end = 0x4013c07f,
5957 .flags = ADDR_TYPE_RT
5958 },
5959 { }
5960};
5961
5962/* l4_abe -> timer7 */
5963static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
5964 .master = &omap44xx_l4_abe_hwmod,
5965 .slave = &omap44xx_timer7_hwmod,
5966 .clk = "ocp_abe_iclk",
5967 .addr = omap44xx_timer7_addrs,
5968 .user = OCP_USER_MPU,
5969};
5970
5971static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
5972 {
5973 .pa_start = 0x4903c000,
5974 .pa_end = 0x4903c07f,
5975 .flags = ADDR_TYPE_RT
5976 },
5977 { }
5978};
5979
5980/* l4_abe -> timer7 (dma) */
5981static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
5982 .master = &omap44xx_l4_abe_hwmod,
5983 .slave = &omap44xx_timer7_hwmod,
5984 .clk = "ocp_abe_iclk",
5985 .addr = omap44xx_timer7_dma_addrs,
5986 .user = OCP_USER_SDMA,
5987};
5988
5989static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
5990 {
5991 .pa_start = 0x4013e000,
5992 .pa_end = 0x4013e07f,
5993 .flags = ADDR_TYPE_RT
5994 },
5995 { }
5996};
5997
5998/* l4_abe -> timer8 */
5999static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
6000 .master = &omap44xx_l4_abe_hwmod,
6001 .slave = &omap44xx_timer8_hwmod,
6002 .clk = "ocp_abe_iclk",
6003 .addr = omap44xx_timer8_addrs,
6004 .user = OCP_USER_MPU,
6005};
6006
6007static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
6008 {
6009 .pa_start = 0x4903e000,
6010 .pa_end = 0x4903e07f,
6011 .flags = ADDR_TYPE_RT
6012 },
6013 { }
6014};
6015
6016/* l4_abe -> timer8 (dma) */
6017static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
6018 .master = &omap44xx_l4_abe_hwmod,
6019 .slave = &omap44xx_timer8_hwmod,
6020 .clk = "ocp_abe_iclk",
6021 .addr = omap44xx_timer8_dma_addrs,
6022 .user = OCP_USER_SDMA,
6023};
6024
6025static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
6026 {
6027 .pa_start = 0x4803e000,
6028 .pa_end = 0x4803e07f,
6029 .flags = ADDR_TYPE_RT
6030 },
6031 { }
6032};
6033
6034/* l4_per -> timer9 */
6035static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
6036 .master = &omap44xx_l4_per_hwmod,
6037 .slave = &omap44xx_timer9_hwmod,
6038 .clk = "l4_div_ck",
6039 .addr = omap44xx_timer9_addrs,
6040 .user = OCP_USER_MPU | OCP_USER_SDMA,
6041};
6042
6043static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
6044 {
6045 .pa_start = 0x48086000,
6046 .pa_end = 0x4808607f,
6047 .flags = ADDR_TYPE_RT
6048 },
6049 { }
6050};
6051
6052/* l4_per -> timer10 */
6053static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
6054 .master = &omap44xx_l4_per_hwmod,
6055 .slave = &omap44xx_timer10_hwmod,
6056 .clk = "l4_div_ck",
6057 .addr = omap44xx_timer10_addrs,
6058 .user = OCP_USER_MPU | OCP_USER_SDMA,
6059};
6060
6061static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
6062 {
6063 .pa_start = 0x48088000,
6064 .pa_end = 0x4808807f,
6065 .flags = ADDR_TYPE_RT
6066 },
6067 { }
6068};
6069
6070/* l4_per -> timer11 */
6071static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
6072 .master = &omap44xx_l4_per_hwmod,
6073 .slave = &omap44xx_timer11_hwmod,
6074 .clk = "l4_div_ck",
6075 .addr = omap44xx_timer11_addrs,
af88fa9a
BC
6076 .user = OCP_USER_MPU | OCP_USER_SDMA,
6077};
6078
844a3b63
PW
6079static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
6080 {
6081 .pa_start = 0x4806a000,
6082 .pa_end = 0x4806a0ff,
6083 .flags = ADDR_TYPE_RT
af88fa9a 6084 },
844a3b63
PW
6085 { }
6086};
af88fa9a 6087
844a3b63
PW
6088/* l4_per -> uart1 */
6089static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
6090 .master = &omap44xx_l4_per_hwmod,
6091 .slave = &omap44xx_uart1_hwmod,
6092 .clk = "l4_div_ck",
6093 .addr = omap44xx_uart1_addrs,
6094 .user = OCP_USER_MPU | OCP_USER_SDMA,
6095};
af88fa9a 6096
844a3b63
PW
6097static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
6098 {
6099 .pa_start = 0x4806c000,
6100 .pa_end = 0x4806c0ff,
6101 .flags = ADDR_TYPE_RT
6102 },
6103 { }
6104};
af88fa9a 6105
844a3b63
PW
6106/* l4_per -> uart2 */
6107static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
6108 .master = &omap44xx_l4_per_hwmod,
6109 .slave = &omap44xx_uart2_hwmod,
6110 .clk = "l4_div_ck",
6111 .addr = omap44xx_uart2_addrs,
6112 .user = OCP_USER_MPU | OCP_USER_SDMA,
6113};
af88fa9a 6114
844a3b63
PW
6115static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
6116 {
6117 .pa_start = 0x48020000,
6118 .pa_end = 0x480200ff,
6119 .flags = ADDR_TYPE_RT
6120 },
6121 { }
af88fa9a
BC
6122};
6123
844a3b63
PW
6124/* l4_per -> uart3 */
6125static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
6126 .master = &omap44xx_l4_per_hwmod,
6127 .slave = &omap44xx_uart3_hwmod,
6128 .clk = "l4_div_ck",
6129 .addr = omap44xx_uart3_addrs,
6130 .user = OCP_USER_MPU | OCP_USER_SDMA,
af88fa9a
BC
6131};
6132
844a3b63
PW
6133static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
6134 {
6135 .pa_start = 0x4806e000,
6136 .pa_end = 0x4806e0ff,
6137 .flags = ADDR_TYPE_RT
6138 },
6139 { }
af88fa9a
BC
6140};
6141
844a3b63
PW
6142/* l4_per -> uart4 */
6143static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
6144 .master = &omap44xx_l4_per_hwmod,
6145 .slave = &omap44xx_uart4_hwmod,
6146 .clk = "l4_div_ck",
6147 .addr = omap44xx_uart4_addrs,
6148 .user = OCP_USER_MPU | OCP_USER_SDMA,
6149};
6150
0c668875
BC
6151static struct omap_hwmod_addr_space omap44xx_usb_host_fs_addrs[] = {
6152 {
6153 .pa_start = 0x4a0a9000,
6154 .pa_end = 0x4a0a93ff,
6155 .flags = ADDR_TYPE_RT
6156 },
6157 { }
6158};
6159
6160/* l4_cfg -> usb_host_fs */
b0a70cc8 6161static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
0c668875
BC
6162 .master = &omap44xx_l4_cfg_hwmod,
6163 .slave = &omap44xx_usb_host_fs_hwmod,
6164 .clk = "l4_div_ck",
6165 .addr = omap44xx_usb_host_fs_addrs,
6166 .user = OCP_USER_MPU | OCP_USER_SDMA,
6167};
6168
844a3b63
PW
6169static struct omap_hwmod_addr_space omap44xx_usb_host_hs_addrs[] = {
6170 {
6171 .name = "uhh",
6172 .pa_start = 0x4a064000,
6173 .pa_end = 0x4a0647ff,
6174 .flags = ADDR_TYPE_RT
6175 },
6176 {
6177 .name = "ohci",
6178 .pa_start = 0x4a064800,
6179 .pa_end = 0x4a064bff,
6180 },
6181 {
6182 .name = "ehci",
6183 .pa_start = 0x4a064c00,
6184 .pa_end = 0x4a064fff,
6185 },
6186 {}
6187};
6188
6189/* l4_cfg -> usb_host_hs */
6190static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
6191 .master = &omap44xx_l4_cfg_hwmod,
6192 .slave = &omap44xx_usb_host_hs_hwmod,
6193 .clk = "l4_div_ck",
6194 .addr = omap44xx_usb_host_hs_addrs,
6195 .user = OCP_USER_MPU | OCP_USER_SDMA,
6196};
6197
6198static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
6199 {
6200 .pa_start = 0x4a0ab000,
33c976ec 6201 .pa_end = 0x4a0ab7ff,
844a3b63
PW
6202 .flags = ADDR_TYPE_RT
6203 },
6204 { }
6205};
6206
6207/* l4_cfg -> usb_otg_hs */
6208static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
6209 .master = &omap44xx_l4_cfg_hwmod,
6210 .slave = &omap44xx_usb_otg_hs_hwmod,
6211 .clk = "l4_div_ck",
6212 .addr = omap44xx_usb_otg_hs_addrs,
6213 .user = OCP_USER_MPU | OCP_USER_SDMA,
af88fa9a
BC
6214};
6215
6216static struct omap_hwmod_addr_space omap44xx_usb_tll_hs_addrs[] = {
6217 {
6218 .name = "tll",
6219 .pa_start = 0x4a062000,
6220 .pa_end = 0x4a063fff,
6221 .flags = ADDR_TYPE_RT
6222 },
6223 {}
6224};
6225
844a3b63 6226/* l4_cfg -> usb_tll_hs */
af88fa9a
BC
6227static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
6228 .master = &omap44xx_l4_cfg_hwmod,
6229 .slave = &omap44xx_usb_tll_hs_hwmod,
6230 .clk = "l4_div_ck",
6231 .addr = omap44xx_usb_tll_hs_addrs,
6232 .user = OCP_USER_MPU | OCP_USER_SDMA,
6233};
6234
844a3b63
PW
6235static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
6236 {
6237 .pa_start = 0x4a314000,
6238 .pa_end = 0x4a31407f,
6239 .flags = ADDR_TYPE_RT
af88fa9a 6240 },
844a3b63
PW
6241 { }
6242};
6243
6244/* l4_wkup -> wd_timer2 */
6245static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
6246 .master = &omap44xx_l4_wkup_hwmod,
6247 .slave = &omap44xx_wd_timer2_hwmod,
6248 .clk = "l4_wkup_clk_mux_ck",
6249 .addr = omap44xx_wd_timer2_addrs,
6250 .user = OCP_USER_MPU | OCP_USER_SDMA,
6251};
6252
6253static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
6254 {
6255 .pa_start = 0x40130000,
6256 .pa_end = 0x4013007f,
6257 .flags = ADDR_TYPE_RT
6258 },
6259 { }
6260};
6261
6262/* l4_abe -> wd_timer3 */
6263static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
6264 .master = &omap44xx_l4_abe_hwmod,
6265 .slave = &omap44xx_wd_timer3_hwmod,
6266 .clk = "ocp_abe_iclk",
6267 .addr = omap44xx_wd_timer3_addrs,
6268 .user = OCP_USER_MPU,
6269};
6270
6271static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
6272 {
6273 .pa_start = 0x49030000,
6274 .pa_end = 0x4903007f,
6275 .flags = ADDR_TYPE_RT
6276 },
6277 { }
6278};
6279
6280/* l4_abe -> wd_timer3 (dma) */
6281static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
6282 .master = &omap44xx_l4_abe_hwmod,
6283 .slave = &omap44xx_wd_timer3_hwmod,
6284 .clk = "ocp_abe_iclk",
6285 .addr = omap44xx_wd_timer3_dma_addrs,
6286 .user = OCP_USER_SDMA,
af88fa9a
BC
6287};
6288
0a78c5c5 6289static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
42b9e387
PW
6290 &omap44xx_c2c__c2c_target_fw,
6291 &omap44xx_l4_cfg__c2c_target_fw,
0a78c5c5
PW
6292 &omap44xx_l3_main_1__dmm,
6293 &omap44xx_mpu__dmm,
42b9e387 6294 &omap44xx_c2c__emif_fw,
0a78c5c5
PW
6295 &omap44xx_dmm__emif_fw,
6296 &omap44xx_l4_cfg__emif_fw,
6297 &omap44xx_iva__l3_instr,
6298 &omap44xx_l3_main_3__l3_instr,
9a817bc8 6299 &omap44xx_ocp_wp_noc__l3_instr,
0a78c5c5
PW
6300 &omap44xx_dsp__l3_main_1,
6301 &omap44xx_dss__l3_main_1,
6302 &omap44xx_l3_main_2__l3_main_1,
6303 &omap44xx_l4_cfg__l3_main_1,
6304 &omap44xx_mmc1__l3_main_1,
6305 &omap44xx_mmc2__l3_main_1,
6306 &omap44xx_mpu__l3_main_1,
42b9e387 6307 &omap44xx_c2c_target_fw__l3_main_2,
96566043 6308 &omap44xx_debugss__l3_main_2,
0a78c5c5 6309 &omap44xx_dma_system__l3_main_2,
b050f688 6310 &omap44xx_fdif__l3_main_2,
9def390e 6311 &omap44xx_gpu__l3_main_2,
0a78c5c5
PW
6312 &omap44xx_hsi__l3_main_2,
6313 &omap44xx_ipu__l3_main_2,
6314 &omap44xx_iss__l3_main_2,
6315 &omap44xx_iva__l3_main_2,
6316 &omap44xx_l3_main_1__l3_main_2,
6317 &omap44xx_l4_cfg__l3_main_2,
b0a70cc8 6318 /* &omap44xx_usb_host_fs__l3_main_2, */
0a78c5c5
PW
6319 &omap44xx_usb_host_hs__l3_main_2,
6320 &omap44xx_usb_otg_hs__l3_main_2,
6321 &omap44xx_l3_main_1__l3_main_3,
6322 &omap44xx_l3_main_2__l3_main_3,
6323 &omap44xx_l4_cfg__l3_main_3,
5cebb23c 6324 &omap44xx_aess__l4_abe,
0a78c5c5
PW
6325 &omap44xx_dsp__l4_abe,
6326 &omap44xx_l3_main_1__l4_abe,
6327 &omap44xx_mpu__l4_abe,
6328 &omap44xx_l3_main_1__l4_cfg,
6329 &omap44xx_l3_main_2__l4_per,
6330 &omap44xx_l4_cfg__l4_wkup,
6331 &omap44xx_mpu__mpu_private,
9a817bc8 6332 &omap44xx_l4_cfg__ocp_wp_noc,
5cebb23c
SG
6333 &omap44xx_l4_abe__aess,
6334 &omap44xx_l4_abe__aess_dma,
42b9e387 6335 &omap44xx_l3_main_2__c2c,
0a78c5c5 6336 &omap44xx_l4_wkup__counter_32k,
a0b5d813
PW
6337 &omap44xx_l4_cfg__ctrl_module_core,
6338 &omap44xx_l4_cfg__ctrl_module_pad_core,
6339 &omap44xx_l4_wkup__ctrl_module_wkup,
6340 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
96566043 6341 &omap44xx_l3_instr__debugss,
0a78c5c5
PW
6342 &omap44xx_l4_cfg__dma_system,
6343 &omap44xx_l4_abe__dmic,
6344 &omap44xx_l4_abe__dmic_dma,
6345 &omap44xx_dsp__iva,
b360124e 6346 /* &omap44xx_dsp__sl2if, */
0a78c5c5
PW
6347 &omap44xx_l4_cfg__dsp,
6348 &omap44xx_l3_main_2__dss,
6349 &omap44xx_l4_per__dss,
6350 &omap44xx_l3_main_2__dss_dispc,
6351 &omap44xx_l4_per__dss_dispc,
6352 &omap44xx_l3_main_2__dss_dsi1,
6353 &omap44xx_l4_per__dss_dsi1,
6354 &omap44xx_l3_main_2__dss_dsi2,
6355 &omap44xx_l4_per__dss_dsi2,
6356 &omap44xx_l3_main_2__dss_hdmi,
6357 &omap44xx_l4_per__dss_hdmi,
6358 &omap44xx_l3_main_2__dss_rfbi,
6359 &omap44xx_l4_per__dss_rfbi,
6360 &omap44xx_l3_main_2__dss_venc,
6361 &omap44xx_l4_per__dss_venc,
42b9e387 6362 &omap44xx_l4_per__elm,
bf30f950
PW
6363 &omap44xx_emif_fw__emif1,
6364 &omap44xx_emif_fw__emif2,
b050f688 6365 &omap44xx_l4_cfg__fdif,
0a78c5c5
PW
6366 &omap44xx_l4_wkup__gpio1,
6367 &omap44xx_l4_per__gpio2,
6368 &omap44xx_l4_per__gpio3,
6369 &omap44xx_l4_per__gpio4,
6370 &omap44xx_l4_per__gpio5,
6371 &omap44xx_l4_per__gpio6,
eb42b5d3 6372 &omap44xx_l3_main_2__gpmc,
9def390e 6373 &omap44xx_l3_main_2__gpu,
a091c08e 6374 &omap44xx_l4_per__hdq1w,
0a78c5c5
PW
6375 &omap44xx_l4_cfg__hsi,
6376 &omap44xx_l4_per__i2c1,
6377 &omap44xx_l4_per__i2c2,
6378 &omap44xx_l4_per__i2c3,
6379 &omap44xx_l4_per__i2c4,
6380 &omap44xx_l3_main_2__ipu,
6381 &omap44xx_l3_main_2__iss,
b360124e 6382 /* &omap44xx_iva__sl2if, */
0a78c5c5
PW
6383 &omap44xx_l3_main_2__iva,
6384 &omap44xx_l4_wkup__kbd,
6385 &omap44xx_l4_cfg__mailbox,
896d4e98
BC
6386 &omap44xx_l4_abe__mcasp,
6387 &omap44xx_l4_abe__mcasp_dma,
0a78c5c5
PW
6388 &omap44xx_l4_abe__mcbsp1,
6389 &omap44xx_l4_abe__mcbsp1_dma,
6390 &omap44xx_l4_abe__mcbsp2,
6391 &omap44xx_l4_abe__mcbsp2_dma,
6392 &omap44xx_l4_abe__mcbsp3,
6393 &omap44xx_l4_abe__mcbsp3_dma,
6394 &omap44xx_l4_per__mcbsp4,
6395 &omap44xx_l4_abe__mcpdm,
6396 &omap44xx_l4_abe__mcpdm_dma,
6397 &omap44xx_l4_per__mcspi1,
6398 &omap44xx_l4_per__mcspi2,
6399 &omap44xx_l4_per__mcspi3,
6400 &omap44xx_l4_per__mcspi4,
6401 &omap44xx_l4_per__mmc1,
6402 &omap44xx_l4_per__mmc2,
6403 &omap44xx_l4_per__mmc3,
6404 &omap44xx_l4_per__mmc4,
6405 &omap44xx_l4_per__mmc5,
230844db
ORL
6406 &omap44xx_l3_main_2__mmu_ipu,
6407 &omap44xx_l4_cfg__mmu_dsp,
e17f18c0 6408 &omap44xx_l3_main_2__ocmc_ram,
0c668875 6409 &omap44xx_l4_cfg__ocp2scp_usb_phy,
794b480a
PW
6410 &omap44xx_mpu_private__prcm_mpu,
6411 &omap44xx_l4_wkup__cm_core_aon,
6412 &omap44xx_l4_cfg__cm_core,
6413 &omap44xx_l4_wkup__prm,
6414 &omap44xx_l4_wkup__scrm,
b360124e 6415 /* &omap44xx_l3_main_2__sl2if, */
1e3b5e59
BC
6416 &omap44xx_l4_abe__slimbus1,
6417 &omap44xx_l4_abe__slimbus1_dma,
6418 &omap44xx_l4_per__slimbus2,
0a78c5c5
PW
6419 &omap44xx_l4_cfg__smartreflex_core,
6420 &omap44xx_l4_cfg__smartreflex_iva,
6421 &omap44xx_l4_cfg__smartreflex_mpu,
6422 &omap44xx_l4_cfg__spinlock,
6423 &omap44xx_l4_wkup__timer1,
6424 &omap44xx_l4_per__timer2,
6425 &omap44xx_l4_per__timer3,
6426 &omap44xx_l4_per__timer4,
6427 &omap44xx_l4_abe__timer5,
6428 &omap44xx_l4_abe__timer5_dma,
6429 &omap44xx_l4_abe__timer6,
6430 &omap44xx_l4_abe__timer6_dma,
6431 &omap44xx_l4_abe__timer7,
6432 &omap44xx_l4_abe__timer7_dma,
6433 &omap44xx_l4_abe__timer8,
6434 &omap44xx_l4_abe__timer8_dma,
6435 &omap44xx_l4_per__timer9,
6436 &omap44xx_l4_per__timer10,
6437 &omap44xx_l4_per__timer11,
6438 &omap44xx_l4_per__uart1,
6439 &omap44xx_l4_per__uart2,
6440 &omap44xx_l4_per__uart3,
6441 &omap44xx_l4_per__uart4,
b0a70cc8 6442 /* &omap44xx_l4_cfg__usb_host_fs, */
0a78c5c5
PW
6443 &omap44xx_l4_cfg__usb_host_hs,
6444 &omap44xx_l4_cfg__usb_otg_hs,
6445 &omap44xx_l4_cfg__usb_tll_hs,
6446 &omap44xx_l4_wkup__wd_timer2,
6447 &omap44xx_l4_abe__wd_timer3,
6448 &omap44xx_l4_abe__wd_timer3_dma,
55d2cb08
BC
6449 NULL,
6450};
6451
6452int __init omap44xx_hwmod_init(void)
6453{
9ebfd285 6454 omap_hwmod_init();
0a78c5c5 6455 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
55d2cb08
BC
6456}
6457
This page took 0.796464 seconds and 5 git commands to generate.