ARM: AMx3xx: RTC: Add lock and unlock functions
[deliverable/linux.git] / arch / arm / mach-omap2 / omap_hwmod_7xx_data.c
CommitLineData
90020c7b
A
1/*
2 * Hardware modules present on the DRA7xx chips
3 *
4 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Paul Walmsley
7 * Benoit Cousson
8 *
9 * This file is automatically generated from the OMAP hardware databases.
10 * We respectfully ask that any modifications to this file be coordinated
11 * with the public linux-omap@vger.kernel.org mailing list and the
12 * authors above to ensure that the autogeneration scripts are kept
13 * up-to-date with the file contents.
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License version 2 as
17 * published by the Free Software Foundation.
18 */
19
20#include <linux/io.h>
21#include <linux/platform_data/gpio-omap.h>
55143438 22#include <linux/platform_data/hsmmc-omap.h>
90020c7b
A
23#include <linux/power/smartreflex.h>
24#include <linux/i2c-omap.h>
25
26#include <linux/omap-dma.h>
27#include <linux/platform_data/spi-omap2-mcspi.h>
28#include <linux/platform_data/asoc-ti-mcbsp.h>
29#include <plat/dmtimer.h>
30
31#include "omap_hwmod.h"
32#include "omap_hwmod_common_data.h"
33#include "cm1_7xx.h"
34#include "cm2_7xx.h"
35#include "prm7xx.h"
36#include "i2c.h"
90020c7b 37#include "wd_timer.h"
f7f7a29b 38#include "soc.h"
90020c7b
A
39
40/* Base offset for all DRA7XX interrupts external to MPUSS */
41#define DRA7XX_IRQ_GIC_START 32
42
43/* Base offset for all DRA7XX dma requests */
44#define DRA7XX_DMA_REQ_START 1
45
46
47/*
48 * IP blocks
49 */
50
42121688
TV
51/*
52 * 'dmm' class
53 * instance(s): dmm
54 */
55static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
56 .name = "dmm",
57};
58
59/* dmm */
60static struct omap_hwmod dra7xx_dmm_hwmod = {
61 .name = "dmm",
62 .class = &dra7xx_dmm_hwmod_class,
63 .clkdm_name = "emif_clkdm",
64 .prcm = {
65 .omap4 = {
66 .clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
67 .context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
68 },
69 },
70};
71
90020c7b
A
72/*
73 * 'l3' class
74 * instance(s): l3_instr, l3_main_1, l3_main_2
75 */
76static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
77 .name = "l3",
78};
79
80/* l3_instr */
81static struct omap_hwmod dra7xx_l3_instr_hwmod = {
82 .name = "l3_instr",
83 .class = &dra7xx_l3_hwmod_class,
84 .clkdm_name = "l3instr_clkdm",
85 .prcm = {
86 .omap4 = {
87 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
88 .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
89 .modulemode = MODULEMODE_HWCTRL,
90 },
91 },
92};
93
94/* l3_main_1 */
95static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
96 .name = "l3_main_1",
97 .class = &dra7xx_l3_hwmod_class,
98 .clkdm_name = "l3main1_clkdm",
99 .prcm = {
100 .omap4 = {
101 .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
102 .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
103 },
104 },
105};
106
107/* l3_main_2 */
108static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
109 .name = "l3_main_2",
110 .class = &dra7xx_l3_hwmod_class,
111 .clkdm_name = "l3instr_clkdm",
112 .prcm = {
113 .omap4 = {
114 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
115 .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
116 .modulemode = MODULEMODE_HWCTRL,
117 },
118 },
119};
120
121/*
122 * 'l4' class
123 * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
124 */
125static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
126 .name = "l4",
127};
128
129/* l4_cfg */
130static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
131 .name = "l4_cfg",
132 .class = &dra7xx_l4_hwmod_class,
133 .clkdm_name = "l4cfg_clkdm",
134 .prcm = {
135 .omap4 = {
136 .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
137 .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
138 },
139 },
140};
141
142/* l4_per1 */
143static struct omap_hwmod dra7xx_l4_per1_hwmod = {
144 .name = "l4_per1",
145 .class = &dra7xx_l4_hwmod_class,
146 .clkdm_name = "l4per_clkdm",
147 .prcm = {
148 .omap4 = {
149 .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
150 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
151 },
152 },
153};
154
155/* l4_per2 */
156static struct omap_hwmod dra7xx_l4_per2_hwmod = {
157 .name = "l4_per2",
158 .class = &dra7xx_l4_hwmod_class,
159 .clkdm_name = "l4per2_clkdm",
160 .prcm = {
161 .omap4 = {
162 .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
163 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
164 },
165 },
166};
167
168/* l4_per3 */
169static struct omap_hwmod dra7xx_l4_per3_hwmod = {
170 .name = "l4_per3",
171 .class = &dra7xx_l4_hwmod_class,
172 .clkdm_name = "l4per3_clkdm",
173 .prcm = {
174 .omap4 = {
175 .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
176 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
177 },
178 },
179};
180
181/* l4_wkup */
182static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
183 .name = "l4_wkup",
184 .class = &dra7xx_l4_hwmod_class,
185 .clkdm_name = "wkupaon_clkdm",
186 .prcm = {
187 .omap4 = {
188 .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
189 .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
190 },
191 },
192};
193
194/*
195 * 'atl' class
196 *
197 */
198
199static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
200 .name = "atl",
201};
202
203/* atl */
204static struct omap_hwmod dra7xx_atl_hwmod = {
205 .name = "atl",
206 .class = &dra7xx_atl_hwmod_class,
207 .clkdm_name = "atl_clkdm",
208 .main_clk = "atl_gfclk_mux",
209 .prcm = {
210 .omap4 = {
211 .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
212 .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
213 .modulemode = MODULEMODE_SWCTRL,
214 },
215 },
216};
217
218/*
219 * 'bb2d' class
220 *
221 */
222
223static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
224 .name = "bb2d",
225};
226
227/* bb2d */
228static struct omap_hwmod dra7xx_bb2d_hwmod = {
229 .name = "bb2d",
230 .class = &dra7xx_bb2d_hwmod_class,
231 .clkdm_name = "dss_clkdm",
232 .main_clk = "dpll_core_h24x2_ck",
233 .prcm = {
234 .omap4 = {
235 .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
236 .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
237 .modulemode = MODULEMODE_SWCTRL,
238 },
239 },
240};
241
242/*
243 * 'counter' class
244 *
245 */
246
247static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
248 .rev_offs = 0x0000,
249 .sysc_offs = 0x0010,
250 .sysc_flags = SYSC_HAS_SIDLEMODE,
251 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
252 SIDLE_SMART_WKUP),
253 .sysc_fields = &omap_hwmod_sysc_type1,
254};
255
256static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
257 .name = "counter",
258 .sysc = &dra7xx_counter_sysc,
259};
260
261/* counter_32k */
262static struct omap_hwmod dra7xx_counter_32k_hwmod = {
263 .name = "counter_32k",
264 .class = &dra7xx_counter_hwmod_class,
265 .clkdm_name = "wkupaon_clkdm",
266 .flags = HWMOD_SWSUP_SIDLE,
267 .main_clk = "wkupaon_iclk_mux",
268 .prcm = {
269 .omap4 = {
270 .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
271 .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
272 },
273 },
274};
275
276/*
277 * 'ctrl_module' class
278 *
279 */
280
281static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
282 .name = "ctrl_module",
283};
284
285/* ctrl_module_wkup */
286static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
287 .name = "ctrl_module_wkup",
288 .class = &dra7xx_ctrl_module_hwmod_class,
289 .clkdm_name = "wkupaon_clkdm",
290 .prcm = {
291 .omap4 = {
292 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
293 },
294 },
295};
296
077c42f7
M
297/*
298 * 'gmac' class
299 * cpsw/gmac sub system
300 */
301static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = {
302 .rev_offs = 0x0,
303 .sysc_offs = 0x8,
304 .syss_offs = 0x4,
305 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
306 SYSS_HAS_RESET_STATUS),
307 .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
308 MSTANDBY_NO),
309 .sysc_fields = &omap_hwmod_sysc_type3,
310};
311
312static struct omap_hwmod_class dra7xx_gmac_hwmod_class = {
313 .name = "gmac",
314 .sysc = &dra7xx_gmac_sysc,
315};
316
317static struct omap_hwmod dra7xx_gmac_hwmod = {
318 .name = "gmac",
319 .class = &dra7xx_gmac_hwmod_class,
320 .clkdm_name = "gmac_clkdm",
321 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
322 .main_clk = "dpll_gmac_ck",
323 .mpu_rt_idx = 1,
324 .prcm = {
325 .omap4 = {
326 .clkctrl_offs = DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET,
327 .context_offs = DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET,
328 .modulemode = MODULEMODE_SWCTRL,
329 },
330 },
331};
332
333/*
334 * 'mdio' class
335 */
336static struct omap_hwmod_class dra7xx_mdio_hwmod_class = {
337 .name = "davinci_mdio",
338};
339
340static struct omap_hwmod dra7xx_mdio_hwmod = {
341 .name = "davinci_mdio",
342 .class = &dra7xx_mdio_hwmod_class,
343 .clkdm_name = "gmac_clkdm",
344 .main_clk = "dpll_gmac_ck",
345};
346
90020c7b
A
347/*
348 * 'dcan' class
349 *
350 */
351
352static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
353 .name = "dcan",
354};
355
356/* dcan1 */
357static struct omap_hwmod dra7xx_dcan1_hwmod = {
358 .name = "dcan1",
359 .class = &dra7xx_dcan_hwmod_class,
360 .clkdm_name = "wkupaon_clkdm",
361 .main_clk = "dcan1_sys_clk_mux",
362 .prcm = {
363 .omap4 = {
364 .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
365 .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
366 .modulemode = MODULEMODE_SWCTRL,
367 },
368 },
369};
370
371/* dcan2 */
372static struct omap_hwmod dra7xx_dcan2_hwmod = {
373 .name = "dcan2",
374 .class = &dra7xx_dcan_hwmod_class,
375 .clkdm_name = "l4per2_clkdm",
376 .main_clk = "sys_clkin1",
377 .prcm = {
378 .omap4 = {
379 .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
380 .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
381 .modulemode = MODULEMODE_SWCTRL,
382 },
383 },
384};
385
b05ff3c3
V
386/* pwmss */
387static struct omap_hwmod_class_sysconfig dra7xx_epwmss_sysc = {
388 .rev_offs = 0x0,
389 .sysc_offs = 0x4,
390 .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET,
391 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
392 .sysc_fields = &omap_hwmod_sysc_type2,
393};
394
395/*
396 * epwmss class
397 */
398static struct omap_hwmod_class dra7xx_epwmss_hwmod_class = {
399 .name = "epwmss",
400 .sysc = &dra7xx_epwmss_sysc,
401};
402
403/* epwmss0 */
404static struct omap_hwmod dra7xx_epwmss0_hwmod = {
405 .name = "epwmss0",
406 .class = &dra7xx_epwmss_hwmod_class,
407 .clkdm_name = "l4per2_clkdm",
408 .main_clk = "l4_root_clk_div",
409 .prcm = {
410 .omap4 = {
411 .modulemode = MODULEMODE_SWCTRL,
412 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET,
413 .context_offs = DRA7XX_RM_L4PER2_PWMSS1_CONTEXT_OFFSET,
414 },
415 },
416};
417
418/* epwmss1 */
419static struct omap_hwmod dra7xx_epwmss1_hwmod = {
420 .name = "epwmss1",
421 .class = &dra7xx_epwmss_hwmod_class,
422 .clkdm_name = "l4per2_clkdm",
423 .main_clk = "l4_root_clk_div",
424 .prcm = {
425 .omap4 = {
426 .modulemode = MODULEMODE_SWCTRL,
427 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET,
428 .context_offs = DRA7XX_RM_L4PER2_PWMSS2_CONTEXT_OFFSET,
429 },
430 },
431};
432
433/* epwmss2 */
434static struct omap_hwmod dra7xx_epwmss2_hwmod = {
435 .name = "epwmss2",
436 .class = &dra7xx_epwmss_hwmod_class,
437 .clkdm_name = "l4per2_clkdm",
438 .main_clk = "l4_root_clk_div",
439 .prcm = {
440 .omap4 = {
441 .modulemode = MODULEMODE_SWCTRL,
442 .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET,
443 .context_offs = DRA7XX_RM_L4PER2_PWMSS3_CONTEXT_OFFSET,
444 },
445 },
446};
447
90020c7b
A
448/*
449 * 'dma' class
450 *
451 */
452
453static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
454 .rev_offs = 0x0000,
455 .sysc_offs = 0x002c,
456 .syss_offs = 0x0028,
457 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
458 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
459 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
460 SYSS_HAS_RESET_STATUS),
461 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
462 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
463 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
464 .sysc_fields = &omap_hwmod_sysc_type1,
465};
466
467static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
468 .name = "dma",
469 .sysc = &dra7xx_dma_sysc,
470};
471
472/* dma dev_attr */
473static struct omap_dma_dev_attr dma_dev_attr = {
474 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
475 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
476 .lch_count = 32,
477};
478
479/* dma_system */
90020c7b
A
480static struct omap_hwmod dra7xx_dma_system_hwmod = {
481 .name = "dma_system",
482 .class = &dra7xx_dma_hwmod_class,
483 .clkdm_name = "dma_clkdm",
90020c7b
A
484 .main_clk = "l3_iclk_div",
485 .prcm = {
486 .omap4 = {
487 .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
488 .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
489 },
490 },
491 .dev_attr = &dma_dev_attr,
492};
493
34b4182c
PU
494/*
495 * 'tpcc' class
496 *
497 */
498static struct omap_hwmod_class dra7xx_tpcc_hwmod_class = {
499 .name = "tpcc",
500};
501
502static struct omap_hwmod dra7xx_tpcc_hwmod = {
503 .name = "tpcc",
504 .class = &dra7xx_tpcc_hwmod_class,
505 .clkdm_name = "l3main1_clkdm",
506 .main_clk = "l3_iclk_div",
507 .prcm = {
508 .omap4 = {
509 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL_OFFSET,
510 .context_offs = DRA7XX_RM_L3MAIN1_TPCC_CONTEXT_OFFSET,
511 },
512 },
513};
514
515/*
516 * 'tptc' class
517 *
518 */
519static struct omap_hwmod_class dra7xx_tptc_hwmod_class = {
520 .name = "tptc",
521};
522
523/* tptc0 */
524static struct omap_hwmod dra7xx_tptc0_hwmod = {
525 .name = "tptc0",
526 .class = &dra7xx_tptc_hwmod_class,
527 .clkdm_name = "l3main1_clkdm",
528 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
529 .main_clk = "l3_iclk_div",
530 .prcm = {
531 .omap4 = {
532 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL_OFFSET,
533 .context_offs = DRA7XX_RM_L3MAIN1_TPTC1_CONTEXT_OFFSET,
534 .modulemode = MODULEMODE_HWCTRL,
535 },
536 },
537};
538
539/* tptc1 */
540static struct omap_hwmod dra7xx_tptc1_hwmod = {
541 .name = "tptc1",
542 .class = &dra7xx_tptc_hwmod_class,
543 .clkdm_name = "l3main1_clkdm",
544 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
545 .main_clk = "l3_iclk_div",
546 .prcm = {
547 .omap4 = {
548 .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL_OFFSET,
549 .context_offs = DRA7XX_RM_L3MAIN1_TPTC2_CONTEXT_OFFSET,
550 .modulemode = MODULEMODE_HWCTRL,
551 },
552 },
553};
554
90020c7b
A
555/*
556 * 'dss' class
557 *
558 */
559
560static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
561 .rev_offs = 0x0000,
562 .syss_offs = 0x0014,
563 .sysc_flags = SYSS_HAS_RESET_STATUS,
564};
565
566static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
567 .name = "dss",
568 .sysc = &dra7xx_dss_sysc,
569 .reset = omap_dss_reset,
570};
571
572/* dss */
573static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
574 { .dma_req = 75 + DRA7XX_DMA_REQ_START },
575 { .dma_req = -1 }
576};
577
578static struct omap_hwmod_opt_clk dss_opt_clks[] = {
579 { .role = "dss_clk", .clk = "dss_dss_clk" },
580 { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
581 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
582 { .role = "video2_clk", .clk = "dss_video2_clk" },
583 { .role = "video1_clk", .clk = "dss_video1_clk" },
584 { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
2d5a3c80 585 { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
90020c7b
A
586};
587
588static struct omap_hwmod dra7xx_dss_hwmod = {
589 .name = "dss_core",
590 .class = &dra7xx_dss_hwmod_class,
591 .clkdm_name = "dss_clkdm",
592 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
593 .sdma_reqs = dra7xx_dss_sdma_reqs,
594 .main_clk = "dss_dss_clk",
595 .prcm = {
596 .omap4 = {
597 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
598 .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
599 .modulemode = MODULEMODE_SWCTRL,
600 },
601 },
602 .opt_clks = dss_opt_clks,
603 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
604};
605
606/*
607 * 'dispc' class
608 * display controller
609 */
610
611static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
612 .rev_offs = 0x0000,
613 .sysc_offs = 0x0010,
614 .syss_offs = 0x0014,
615 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
616 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
617 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
618 SYSS_HAS_RESET_STATUS),
619 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
620 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
621 .sysc_fields = &omap_hwmod_sysc_type1,
622};
623
624static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
625 .name = "dispc",
626 .sysc = &dra7xx_dispc_sysc,
627};
628
629/* dss_dispc */
630/* dss_dispc dev_attr */
631static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
632 .has_framedonetv_irq = 1,
633 .manager_count = 4,
634};
635
636static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
637 .name = "dss_dispc",
638 .class = &dra7xx_dispc_hwmod_class,
639 .clkdm_name = "dss_clkdm",
640 .main_clk = "dss_dss_clk",
641 .prcm = {
642 .omap4 = {
643 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
644 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
645 },
646 },
647 .dev_attr = &dss_dispc_dev_attr,
a3818c6d 648 .parent_hwmod = &dra7xx_dss_hwmod,
90020c7b
A
649};
650
651/*
652 * 'hdmi' class
653 * hdmi controller
654 */
655
656static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
657 .rev_offs = 0x0000,
658 .sysc_offs = 0x0010,
659 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
660 SYSC_HAS_SOFTRESET),
661 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
662 SIDLE_SMART_WKUP),
663 .sysc_fields = &omap_hwmod_sysc_type2,
664};
665
666static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
667 .name = "hdmi",
668 .sysc = &dra7xx_hdmi_sysc,
669};
670
671/* dss_hdmi */
672
673static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
674 { .role = "sys_clk", .clk = "dss_hdmi_clk" },
675};
676
677static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
678 .name = "dss_hdmi",
679 .class = &dra7xx_hdmi_hwmod_class,
680 .clkdm_name = "dss_clkdm",
681 .main_clk = "dss_48mhz_clk",
682 .prcm = {
683 .omap4 = {
684 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
685 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
686 },
687 },
688 .opt_clks = dss_hdmi_opt_clks,
689 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
a3818c6d 690 .parent_hwmod = &dra7xx_dss_hwmod,
90020c7b
A
691};
692
693/*
694 * 'elm' class
695 *
696 */
697
698static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
699 .rev_offs = 0x0000,
700 .sysc_offs = 0x0010,
701 .syss_offs = 0x0014,
702 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
703 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
704 SYSS_HAS_RESET_STATUS),
705 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
706 SIDLE_SMART_WKUP),
707 .sysc_fields = &omap_hwmod_sysc_type1,
708};
709
710static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
711 .name = "elm",
712 .sysc = &dra7xx_elm_sysc,
713};
714
715/* elm */
716
717static struct omap_hwmod dra7xx_elm_hwmod = {
718 .name = "elm",
719 .class = &dra7xx_elm_hwmod_class,
720 .clkdm_name = "l4per_clkdm",
721 .main_clk = "l3_iclk_div",
722 .prcm = {
723 .omap4 = {
724 .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
725 .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
726 },
727 },
728};
729
730/*
731 * 'gpio' class
732 *
733 */
734
735static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
736 .rev_offs = 0x0000,
737 .sysc_offs = 0x0010,
738 .syss_offs = 0x0114,
739 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
740 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
741 SYSS_HAS_RESET_STATUS),
742 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
743 SIDLE_SMART_WKUP),
744 .sysc_fields = &omap_hwmod_sysc_type1,
745};
746
747static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
748 .name = "gpio",
749 .sysc = &dra7xx_gpio_sysc,
750 .rev = 2,
751};
752
753/* gpio dev_attr */
754static struct omap_gpio_dev_attr gpio_dev_attr = {
755 .bank_width = 32,
756 .dbck_flag = true,
757};
758
759/* gpio1 */
760static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
761 { .role = "dbclk", .clk = "gpio1_dbclk" },
762};
763
764static struct omap_hwmod dra7xx_gpio1_hwmod = {
765 .name = "gpio1",
766 .class = &dra7xx_gpio_hwmod_class,
767 .clkdm_name = "wkupaon_clkdm",
768 .main_clk = "wkupaon_iclk_mux",
769 .prcm = {
770 .omap4 = {
771 .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
772 .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
773 .modulemode = MODULEMODE_HWCTRL,
774 },
775 },
776 .opt_clks = gpio1_opt_clks,
777 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
778 .dev_attr = &gpio_dev_attr,
779};
780
781/* gpio2 */
782static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
783 { .role = "dbclk", .clk = "gpio2_dbclk" },
784};
785
786static struct omap_hwmod dra7xx_gpio2_hwmod = {
787 .name = "gpio2",
788 .class = &dra7xx_gpio_hwmod_class,
789 .clkdm_name = "l4per_clkdm",
790 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
791 .main_clk = "l3_iclk_div",
792 .prcm = {
793 .omap4 = {
794 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
795 .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
796 .modulemode = MODULEMODE_HWCTRL,
797 },
798 },
799 .opt_clks = gpio2_opt_clks,
800 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
801 .dev_attr = &gpio_dev_attr,
802};
803
804/* gpio3 */
805static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
806 { .role = "dbclk", .clk = "gpio3_dbclk" },
807};
808
809static struct omap_hwmod dra7xx_gpio3_hwmod = {
810 .name = "gpio3",
811 .class = &dra7xx_gpio_hwmod_class,
812 .clkdm_name = "l4per_clkdm",
813 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
814 .main_clk = "l3_iclk_div",
815 .prcm = {
816 .omap4 = {
817 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
818 .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
819 .modulemode = MODULEMODE_HWCTRL,
820 },
821 },
822 .opt_clks = gpio3_opt_clks,
823 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
824 .dev_attr = &gpio_dev_attr,
825};
826
827/* gpio4 */
828static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
829 { .role = "dbclk", .clk = "gpio4_dbclk" },
830};
831
832static struct omap_hwmod dra7xx_gpio4_hwmod = {
833 .name = "gpio4",
834 .class = &dra7xx_gpio_hwmod_class,
835 .clkdm_name = "l4per_clkdm",
836 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
837 .main_clk = "l3_iclk_div",
838 .prcm = {
839 .omap4 = {
840 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
841 .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
842 .modulemode = MODULEMODE_HWCTRL,
843 },
844 },
845 .opt_clks = gpio4_opt_clks,
846 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
847 .dev_attr = &gpio_dev_attr,
848};
849
850/* gpio5 */
851static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
852 { .role = "dbclk", .clk = "gpio5_dbclk" },
853};
854
855static struct omap_hwmod dra7xx_gpio5_hwmod = {
856 .name = "gpio5",
857 .class = &dra7xx_gpio_hwmod_class,
858 .clkdm_name = "l4per_clkdm",
859 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
860 .main_clk = "l3_iclk_div",
861 .prcm = {
862 .omap4 = {
863 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
864 .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
865 .modulemode = MODULEMODE_HWCTRL,
866 },
867 },
868 .opt_clks = gpio5_opt_clks,
869 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
870 .dev_attr = &gpio_dev_attr,
871};
872
873/* gpio6 */
874static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
875 { .role = "dbclk", .clk = "gpio6_dbclk" },
876};
877
878static struct omap_hwmod dra7xx_gpio6_hwmod = {
879 .name = "gpio6",
880 .class = &dra7xx_gpio_hwmod_class,
881 .clkdm_name = "l4per_clkdm",
882 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
883 .main_clk = "l3_iclk_div",
884 .prcm = {
885 .omap4 = {
886 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
887 .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
888 .modulemode = MODULEMODE_HWCTRL,
889 },
890 },
891 .opt_clks = gpio6_opt_clks,
892 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
893 .dev_attr = &gpio_dev_attr,
894};
895
896/* gpio7 */
897static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
898 { .role = "dbclk", .clk = "gpio7_dbclk" },
899};
900
901static struct omap_hwmod dra7xx_gpio7_hwmod = {
902 .name = "gpio7",
903 .class = &dra7xx_gpio_hwmod_class,
904 .clkdm_name = "l4per_clkdm",
905 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
906 .main_clk = "l3_iclk_div",
907 .prcm = {
908 .omap4 = {
909 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
910 .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
911 .modulemode = MODULEMODE_HWCTRL,
912 },
913 },
914 .opt_clks = gpio7_opt_clks,
915 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
916 .dev_attr = &gpio_dev_attr,
917};
918
919/* gpio8 */
920static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
921 { .role = "dbclk", .clk = "gpio8_dbclk" },
922};
923
924static struct omap_hwmod dra7xx_gpio8_hwmod = {
925 .name = "gpio8",
926 .class = &dra7xx_gpio_hwmod_class,
927 .clkdm_name = "l4per_clkdm",
928 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
929 .main_clk = "l3_iclk_div",
930 .prcm = {
931 .omap4 = {
932 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
933 .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
934 .modulemode = MODULEMODE_HWCTRL,
935 },
936 },
937 .opt_clks = gpio8_opt_clks,
938 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
939 .dev_attr = &gpio_dev_attr,
940};
941
942/*
943 * 'gpmc' class
944 *
945 */
946
947static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
948 .rev_offs = 0x0000,
949 .sysc_offs = 0x0010,
950 .syss_offs = 0x0014,
951 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
952 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
91a57731 953 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
90020c7b
A
954 .sysc_fields = &omap_hwmod_sysc_type1,
955};
956
957static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
958 .name = "gpmc",
959 .sysc = &dra7xx_gpmc_sysc,
960};
961
962/* gpmc */
963
964static struct omap_hwmod dra7xx_gpmc_hwmod = {
965 .name = "gpmc",
966 .class = &dra7xx_gpmc_hwmod_class,
967 .clkdm_name = "l3main1_clkdm",
63aa945b 968 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
91a57731 969 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
90020c7b
A
970 .main_clk = "l3_iclk_div",
971 .prcm = {
972 .omap4 = {
973 .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
974 .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
975 .modulemode = MODULEMODE_HWCTRL,
976 },
977 },
978};
979
980/*
981 * 'hdq1w' class
982 *
983 */
984
985static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
986 .rev_offs = 0x0000,
987 .sysc_offs = 0x0014,
988 .syss_offs = 0x0018,
989 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
990 SYSS_HAS_RESET_STATUS),
991 .sysc_fields = &omap_hwmod_sysc_type1,
992};
993
994static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
995 .name = "hdq1w",
996 .sysc = &dra7xx_hdq1w_sysc,
997};
998
999/* hdq1w */
1000
1001static struct omap_hwmod dra7xx_hdq1w_hwmod = {
1002 .name = "hdq1w",
1003 .class = &dra7xx_hdq1w_hwmod_class,
1004 .clkdm_name = "l4per_clkdm",
1005 .flags = HWMOD_INIT_NO_RESET,
1006 .main_clk = "func_12m_fclk",
1007 .prcm = {
1008 .omap4 = {
1009 .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1010 .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1011 .modulemode = MODULEMODE_SWCTRL,
1012 },
1013 },
1014};
1015
1016/*
1017 * 'i2c' class
1018 *
1019 */
1020
1021static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
1022 .sysc_offs = 0x0010,
1023 .syss_offs = 0x0090,
1024 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1025 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1026 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1027 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1028 SIDLE_SMART_WKUP),
1029 .clockact = CLOCKACT_TEST_ICLK,
1030 .sysc_fields = &omap_hwmod_sysc_type1,
1031};
1032
1033static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
1034 .name = "i2c",
1035 .sysc = &dra7xx_i2c_sysc,
1036 .reset = &omap_i2c_reset,
1037 .rev = OMAP_I2C_IP_VERSION_2,
1038};
1039
1040/* i2c dev_attr */
1041static struct omap_i2c_dev_attr i2c_dev_attr = {
1042 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
1043};
1044
1045/* i2c1 */
1046static struct omap_hwmod dra7xx_i2c1_hwmod = {
1047 .name = "i2c1",
1048 .class = &dra7xx_i2c_hwmod_class,
1049 .clkdm_name = "l4per_clkdm",
1050 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1051 .main_clk = "func_96m_fclk",
1052 .prcm = {
1053 .omap4 = {
1054 .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
1055 .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
1056 .modulemode = MODULEMODE_SWCTRL,
1057 },
1058 },
1059 .dev_attr = &i2c_dev_attr,
1060};
1061
1062/* i2c2 */
1063static struct omap_hwmod dra7xx_i2c2_hwmod = {
1064 .name = "i2c2",
1065 .class = &dra7xx_i2c_hwmod_class,
1066 .clkdm_name = "l4per_clkdm",
1067 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1068 .main_clk = "func_96m_fclk",
1069 .prcm = {
1070 .omap4 = {
1071 .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
1072 .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
1073 .modulemode = MODULEMODE_SWCTRL,
1074 },
1075 },
1076 .dev_attr = &i2c_dev_attr,
1077};
1078
1079/* i2c3 */
1080static struct omap_hwmod dra7xx_i2c3_hwmod = {
1081 .name = "i2c3",
1082 .class = &dra7xx_i2c_hwmod_class,
1083 .clkdm_name = "l4per_clkdm",
1084 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1085 .main_clk = "func_96m_fclk",
1086 .prcm = {
1087 .omap4 = {
1088 .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
1089 .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
1090 .modulemode = MODULEMODE_SWCTRL,
1091 },
1092 },
1093 .dev_attr = &i2c_dev_attr,
1094};
1095
1096/* i2c4 */
1097static struct omap_hwmod dra7xx_i2c4_hwmod = {
1098 .name = "i2c4",
1099 .class = &dra7xx_i2c_hwmod_class,
1100 .clkdm_name = "l4per_clkdm",
1101 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1102 .main_clk = "func_96m_fclk",
1103 .prcm = {
1104 .omap4 = {
1105 .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
1106 .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
1107 .modulemode = MODULEMODE_SWCTRL,
1108 },
1109 },
1110 .dev_attr = &i2c_dev_attr,
1111};
1112
1113/* i2c5 */
1114static struct omap_hwmod dra7xx_i2c5_hwmod = {
1115 .name = "i2c5",
1116 .class = &dra7xx_i2c_hwmod_class,
1117 .clkdm_name = "ipu_clkdm",
1118 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1119 .main_clk = "func_96m_fclk",
1120 .prcm = {
1121 .omap4 = {
1122 .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
1123 .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
1124 .modulemode = MODULEMODE_SWCTRL,
1125 },
1126 },
1127 .dev_attr = &i2c_dev_attr,
1128};
1129
067395d4
SA
1130/*
1131 * 'mailbox' class
1132 *
1133 */
1134
1135static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
1136 .rev_offs = 0x0000,
1137 .sysc_offs = 0x0010,
1138 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1139 SYSC_HAS_SOFTRESET),
1140 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1141 .sysc_fields = &omap_hwmod_sysc_type2,
1142};
1143
1144static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
1145 .name = "mailbox",
1146 .sysc = &dra7xx_mailbox_sysc,
1147};
1148
1149/* mailbox1 */
1150static struct omap_hwmod dra7xx_mailbox1_hwmod = {
1151 .name = "mailbox1",
1152 .class = &dra7xx_mailbox_hwmod_class,
1153 .clkdm_name = "l4cfg_clkdm",
1154 .prcm = {
1155 .omap4 = {
1156 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
1157 .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
1158 },
1159 },
1160};
1161
1162/* mailbox2 */
1163static struct omap_hwmod dra7xx_mailbox2_hwmod = {
1164 .name = "mailbox2",
1165 .class = &dra7xx_mailbox_hwmod_class,
1166 .clkdm_name = "l4cfg_clkdm",
1167 .prcm = {
1168 .omap4 = {
1169 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
1170 .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
1171 },
1172 },
1173};
1174
1175/* mailbox3 */
1176static struct omap_hwmod dra7xx_mailbox3_hwmod = {
1177 .name = "mailbox3",
1178 .class = &dra7xx_mailbox_hwmod_class,
1179 .clkdm_name = "l4cfg_clkdm",
1180 .prcm = {
1181 .omap4 = {
1182 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
1183 .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
1184 },
1185 },
1186};
1187
1188/* mailbox4 */
1189static struct omap_hwmod dra7xx_mailbox4_hwmod = {
1190 .name = "mailbox4",
1191 .class = &dra7xx_mailbox_hwmod_class,
1192 .clkdm_name = "l4cfg_clkdm",
1193 .prcm = {
1194 .omap4 = {
1195 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
1196 .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
1197 },
1198 },
1199};
1200
1201/* mailbox5 */
1202static struct omap_hwmod dra7xx_mailbox5_hwmod = {
1203 .name = "mailbox5",
1204 .class = &dra7xx_mailbox_hwmod_class,
1205 .clkdm_name = "l4cfg_clkdm",
1206 .prcm = {
1207 .omap4 = {
1208 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
1209 .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
1210 },
1211 },
1212};
1213
1214/* mailbox6 */
1215static struct omap_hwmod dra7xx_mailbox6_hwmod = {
1216 .name = "mailbox6",
1217 .class = &dra7xx_mailbox_hwmod_class,
1218 .clkdm_name = "l4cfg_clkdm",
1219 .prcm = {
1220 .omap4 = {
1221 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
1222 .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
1223 },
1224 },
1225};
1226
1227/* mailbox7 */
1228static struct omap_hwmod dra7xx_mailbox7_hwmod = {
1229 .name = "mailbox7",
1230 .class = &dra7xx_mailbox_hwmod_class,
1231 .clkdm_name = "l4cfg_clkdm",
1232 .prcm = {
1233 .omap4 = {
1234 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
1235 .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
1236 },
1237 },
1238};
1239
1240/* mailbox8 */
1241static struct omap_hwmod dra7xx_mailbox8_hwmod = {
1242 .name = "mailbox8",
1243 .class = &dra7xx_mailbox_hwmod_class,
1244 .clkdm_name = "l4cfg_clkdm",
1245 .prcm = {
1246 .omap4 = {
1247 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
1248 .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
1249 },
1250 },
1251};
1252
1253/* mailbox9 */
1254static struct omap_hwmod dra7xx_mailbox9_hwmod = {
1255 .name = "mailbox9",
1256 .class = &dra7xx_mailbox_hwmod_class,
1257 .clkdm_name = "l4cfg_clkdm",
1258 .prcm = {
1259 .omap4 = {
1260 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
1261 .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
1262 },
1263 },
1264};
1265
1266/* mailbox10 */
1267static struct omap_hwmod dra7xx_mailbox10_hwmod = {
1268 .name = "mailbox10",
1269 .class = &dra7xx_mailbox_hwmod_class,
1270 .clkdm_name = "l4cfg_clkdm",
1271 .prcm = {
1272 .omap4 = {
1273 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
1274 .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
1275 },
1276 },
1277};
1278
1279/* mailbox11 */
1280static struct omap_hwmod dra7xx_mailbox11_hwmod = {
1281 .name = "mailbox11",
1282 .class = &dra7xx_mailbox_hwmod_class,
1283 .clkdm_name = "l4cfg_clkdm",
1284 .prcm = {
1285 .omap4 = {
1286 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
1287 .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
1288 },
1289 },
1290};
1291
1292/* mailbox12 */
1293static struct omap_hwmod dra7xx_mailbox12_hwmod = {
1294 .name = "mailbox12",
1295 .class = &dra7xx_mailbox_hwmod_class,
1296 .clkdm_name = "l4cfg_clkdm",
1297 .prcm = {
1298 .omap4 = {
1299 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
1300 .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
1301 },
1302 },
1303};
1304
1305/* mailbox13 */
1306static struct omap_hwmod dra7xx_mailbox13_hwmod = {
1307 .name = "mailbox13",
1308 .class = &dra7xx_mailbox_hwmod_class,
1309 .clkdm_name = "l4cfg_clkdm",
1310 .prcm = {
1311 .omap4 = {
1312 .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
1313 .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
1314 },
1315 },
1316};
1317
90020c7b
A
1318/*
1319 * 'mcspi' class
1320 *
1321 */
1322
1323static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
1324 .rev_offs = 0x0000,
1325 .sysc_offs = 0x0010,
1326 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1327 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1328 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1329 SIDLE_SMART_WKUP),
1330 .sysc_fields = &omap_hwmod_sysc_type2,
1331};
1332
1333static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
1334 .name = "mcspi",
1335 .sysc = &dra7xx_mcspi_sysc,
1336 .rev = OMAP4_MCSPI_REV,
1337};
1338
1339/* mcspi1 */
1340/* mcspi1 dev_attr */
1341static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1342 .num_chipselect = 4,
1343};
1344
1345static struct omap_hwmod dra7xx_mcspi1_hwmod = {
1346 .name = "mcspi1",
1347 .class = &dra7xx_mcspi_hwmod_class,
1348 .clkdm_name = "l4per_clkdm",
1349 .main_clk = "func_48m_fclk",
1350 .prcm = {
1351 .omap4 = {
1352 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1353 .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1354 .modulemode = MODULEMODE_SWCTRL,
1355 },
1356 },
1357 .dev_attr = &mcspi1_dev_attr,
1358};
1359
1360/* mcspi2 */
1361/* mcspi2 dev_attr */
1362static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1363 .num_chipselect = 2,
1364};
1365
1366static struct omap_hwmod dra7xx_mcspi2_hwmod = {
1367 .name = "mcspi2",
1368 .class = &dra7xx_mcspi_hwmod_class,
1369 .clkdm_name = "l4per_clkdm",
1370 .main_clk = "func_48m_fclk",
1371 .prcm = {
1372 .omap4 = {
1373 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1374 .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1375 .modulemode = MODULEMODE_SWCTRL,
1376 },
1377 },
1378 .dev_attr = &mcspi2_dev_attr,
1379};
1380
1381/* mcspi3 */
1382/* mcspi3 dev_attr */
1383static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1384 .num_chipselect = 2,
1385};
1386
1387static struct omap_hwmod dra7xx_mcspi3_hwmod = {
1388 .name = "mcspi3",
1389 .class = &dra7xx_mcspi_hwmod_class,
1390 .clkdm_name = "l4per_clkdm",
1391 .main_clk = "func_48m_fclk",
1392 .prcm = {
1393 .omap4 = {
1394 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1395 .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1396 .modulemode = MODULEMODE_SWCTRL,
1397 },
1398 },
1399 .dev_attr = &mcspi3_dev_attr,
1400};
1401
1402/* mcspi4 */
1403/* mcspi4 dev_attr */
1404static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1405 .num_chipselect = 1,
1406};
1407
1408static struct omap_hwmod dra7xx_mcspi4_hwmod = {
1409 .name = "mcspi4",
1410 .class = &dra7xx_mcspi_hwmod_class,
1411 .clkdm_name = "l4per_clkdm",
1412 .main_clk = "func_48m_fclk",
1413 .prcm = {
1414 .omap4 = {
1415 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1416 .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1417 .modulemode = MODULEMODE_SWCTRL,
1418 },
1419 },
1420 .dev_attr = &mcspi4_dev_attr,
1421};
1422
469689a4
PU
1423/*
1424 * 'mcasp' class
1425 *
1426 */
1427static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
1428 .sysc_offs = 0x0004,
1429 .sysc_flags = SYSC_HAS_SIDLEMODE,
1430 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1431 .sysc_fields = &omap_hwmod_sysc_type3,
1432};
1433
1434static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
1435 .name = "mcasp",
1436 .sysc = &dra7xx_mcasp_sysc,
1437};
1438
9ad4d9a3
PU
1439/* mcasp1 */
1440static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = {
1441 { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" },
1442 { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" },
1443};
1444
1445static struct omap_hwmod dra7xx_mcasp1_hwmod = {
1446 .name = "mcasp1",
1447 .class = &dra7xx_mcasp_hwmod_class,
1448 .clkdm_name = "ipu_clkdm",
1449 .main_clk = "mcasp1_aux_gfclk_mux",
1450 .flags = HWMOD_OPT_CLKS_NEEDED,
1451 .prcm = {
1452 .omap4 = {
1453 .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET,
1454 .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET,
1455 .modulemode = MODULEMODE_SWCTRL,
1456 },
1457 },
1458 .opt_clks = mcasp1_opt_clks,
1459 .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks),
1460};
1461
1462/* mcasp2 */
1463static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = {
1464 { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" },
1465 { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" },
1466};
1467
1468static struct omap_hwmod dra7xx_mcasp2_hwmod = {
1469 .name = "mcasp2",
1470 .class = &dra7xx_mcasp_hwmod_class,
1471 .clkdm_name = "l4per2_clkdm",
1472 .main_clk = "mcasp2_aux_gfclk_mux",
1473 .flags = HWMOD_OPT_CLKS_NEEDED,
1474 .prcm = {
1475 .omap4 = {
1476 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET,
1477 .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET,
1478 .modulemode = MODULEMODE_SWCTRL,
1479 },
1480 },
1481 .opt_clks = mcasp2_opt_clks,
1482 .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks),
1483};
1484
469689a4
PU
1485/* mcasp3 */
1486static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
1487 { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
1488};
1489
1490static struct omap_hwmod dra7xx_mcasp3_hwmod = {
1491 .name = "mcasp3",
1492 .class = &dra7xx_mcasp_hwmod_class,
1493 .clkdm_name = "l4per2_clkdm",
1494 .main_clk = "mcasp3_aux_gfclk_mux",
1495 .flags = HWMOD_OPT_CLKS_NEEDED,
1496 .prcm = {
1497 .omap4 = {
1498 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
1499 .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
1500 .modulemode = MODULEMODE_SWCTRL,
1501 },
1502 },
1503 .opt_clks = mcasp3_opt_clks,
1504 .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
1505};
1506
9ad4d9a3
PU
1507/* mcasp4 */
1508static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = {
1509 { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" },
1510};
1511
1512static struct omap_hwmod dra7xx_mcasp4_hwmod = {
1513 .name = "mcasp4",
1514 .class = &dra7xx_mcasp_hwmod_class,
1515 .clkdm_name = "l4per2_clkdm",
1516 .main_clk = "mcasp4_aux_gfclk_mux",
1517 .flags = HWMOD_OPT_CLKS_NEEDED,
1518 .prcm = {
1519 .omap4 = {
1520 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET,
1521 .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET,
1522 .modulemode = MODULEMODE_SWCTRL,
1523 },
1524 },
1525 .opt_clks = mcasp4_opt_clks,
1526 .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks),
1527};
1528
1529/* mcasp5 */
1530static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = {
1531 { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" },
1532};
1533
1534static struct omap_hwmod dra7xx_mcasp5_hwmod = {
1535 .name = "mcasp5",
1536 .class = &dra7xx_mcasp_hwmod_class,
1537 .clkdm_name = "l4per2_clkdm",
1538 .main_clk = "mcasp5_aux_gfclk_mux",
1539 .flags = HWMOD_OPT_CLKS_NEEDED,
1540 .prcm = {
1541 .omap4 = {
1542 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET,
1543 .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET,
1544 .modulemode = MODULEMODE_SWCTRL,
1545 },
1546 },
1547 .opt_clks = mcasp5_opt_clks,
1548 .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks),
1549};
1550
1551/* mcasp6 */
1552static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = {
1553 { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" },
1554};
1555
1556static struct omap_hwmod dra7xx_mcasp6_hwmod = {
1557 .name = "mcasp6",
1558 .class = &dra7xx_mcasp_hwmod_class,
1559 .clkdm_name = "l4per2_clkdm",
1560 .main_clk = "mcasp6_aux_gfclk_mux",
1561 .flags = HWMOD_OPT_CLKS_NEEDED,
1562 .prcm = {
1563 .omap4 = {
1564 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET,
1565 .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET,
1566 .modulemode = MODULEMODE_SWCTRL,
1567 },
1568 },
1569 .opt_clks = mcasp6_opt_clks,
1570 .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks),
1571};
1572
1573/* mcasp7 */
1574static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = {
1575 { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" },
1576};
1577
1578static struct omap_hwmod dra7xx_mcasp7_hwmod = {
1579 .name = "mcasp7",
1580 .class = &dra7xx_mcasp_hwmod_class,
1581 .clkdm_name = "l4per2_clkdm",
1582 .main_clk = "mcasp7_aux_gfclk_mux",
1583 .flags = HWMOD_OPT_CLKS_NEEDED,
1584 .prcm = {
1585 .omap4 = {
1586 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET,
1587 .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET,
1588 .modulemode = MODULEMODE_SWCTRL,
1589 },
1590 },
1591 .opt_clks = mcasp7_opt_clks,
1592 .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks),
1593};
1594
1595/* mcasp8 */
1596static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = {
1597 { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" },
1598};
1599
1600static struct omap_hwmod dra7xx_mcasp8_hwmod = {
1601 .name = "mcasp8",
1602 .class = &dra7xx_mcasp_hwmod_class,
1603 .clkdm_name = "l4per2_clkdm",
1604 .main_clk = "mcasp8_aux_gfclk_mux",
1605 .flags = HWMOD_OPT_CLKS_NEEDED,
1606 .prcm = {
1607 .omap4 = {
1608 .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET,
1609 .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET,
1610 .modulemode = MODULEMODE_SWCTRL,
1611 },
1612 },
1613 .opt_clks = mcasp8_opt_clks,
1614 .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks),
1615};
1616
90020c7b
A
1617/*
1618 * 'mmc' class
1619 *
1620 */
1621
1622static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
1623 .rev_offs = 0x0000,
1624 .sysc_offs = 0x0010,
1625 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1626 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1627 SYSC_HAS_SOFTRESET),
1628 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1629 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1630 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1631 .sysc_fields = &omap_hwmod_sysc_type2,
1632};
1633
1634static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
1635 .name = "mmc",
1636 .sysc = &dra7xx_mmc_sysc,
1637};
1638
1639/* mmc1 */
1640static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1641 { .role = "clk32k", .clk = "mmc1_clk32k" },
1642};
1643
1644/* mmc1 dev_attr */
55143438 1645static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
90020c7b
A
1646 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1647};
1648
1649static struct omap_hwmod dra7xx_mmc1_hwmod = {
1650 .name = "mmc1",
1651 .class = &dra7xx_mmc_hwmod_class,
1652 .clkdm_name = "l3init_clkdm",
1653 .main_clk = "mmc1_fclk_div",
1654 .prcm = {
1655 .omap4 = {
1656 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1657 .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1658 .modulemode = MODULEMODE_SWCTRL,
1659 },
1660 },
1661 .opt_clks = mmc1_opt_clks,
1662 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1663 .dev_attr = &mmc1_dev_attr,
1664};
1665
1666/* mmc2 */
1667static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
1668 { .role = "clk32k", .clk = "mmc2_clk32k" },
1669};
1670
1671static struct omap_hwmod dra7xx_mmc2_hwmod = {
1672 .name = "mmc2",
1673 .class = &dra7xx_mmc_hwmod_class,
1674 .clkdm_name = "l3init_clkdm",
1675 .main_clk = "mmc2_fclk_div",
1676 .prcm = {
1677 .omap4 = {
1678 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1679 .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1680 .modulemode = MODULEMODE_SWCTRL,
1681 },
1682 },
1683 .opt_clks = mmc2_opt_clks,
1684 .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
1685};
1686
1687/* mmc3 */
1688static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
1689 { .role = "clk32k", .clk = "mmc3_clk32k" },
1690};
1691
1692static struct omap_hwmod dra7xx_mmc3_hwmod = {
1693 .name = "mmc3",
1694 .class = &dra7xx_mmc_hwmod_class,
1695 .clkdm_name = "l4per_clkdm",
1696 .main_clk = "mmc3_gfclk_div",
1697 .prcm = {
1698 .omap4 = {
1699 .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1700 .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1701 .modulemode = MODULEMODE_SWCTRL,
1702 },
1703 },
1704 .opt_clks = mmc3_opt_clks,
1705 .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
1706};
1707
1708/* mmc4 */
1709static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
1710 { .role = "clk32k", .clk = "mmc4_clk32k" },
1711};
1712
1713static struct omap_hwmod dra7xx_mmc4_hwmod = {
1714 .name = "mmc4",
1715 .class = &dra7xx_mmc_hwmod_class,
1716 .clkdm_name = "l4per_clkdm",
1717 .main_clk = "mmc4_gfclk_div",
1718 .prcm = {
1719 .omap4 = {
1720 .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1721 .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1722 .modulemode = MODULEMODE_SWCTRL,
1723 },
1724 },
1725 .opt_clks = mmc4_opt_clks,
1726 .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
1727};
1728
1729/*
1730 * 'mpu' class
1731 *
1732 */
1733
1734static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
1735 .name = "mpu",
1736};
1737
1738/* mpu */
1739static struct omap_hwmod dra7xx_mpu_hwmod = {
1740 .name = "mpu",
1741 .class = &dra7xx_mpu_hwmod_class,
1742 .clkdm_name = "mpu_clkdm",
1743 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1744 .main_clk = "dpll_mpu_m2_ck",
1745 .prcm = {
1746 .omap4 = {
1747 .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1748 .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
1749 },
1750 },
1751};
1752
1753/*
1754 * 'ocp2scp' class
1755 *
1756 */
1757
1758static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
1759 .rev_offs = 0x0000,
1760 .sysc_offs = 0x0010,
1761 .syss_offs = 0x0014,
1762 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1763 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4965be1f 1764 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
90020c7b
A
1765 .sysc_fields = &omap_hwmod_sysc_type1,
1766};
1767
1768static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
1769 .name = "ocp2scp",
1770 .sysc = &dra7xx_ocp2scp_sysc,
1771};
1772
1773/* ocp2scp1 */
1774static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
1775 .name = "ocp2scp1",
1776 .class = &dra7xx_ocp2scp_hwmod_class,
1777 .clkdm_name = "l3init_clkdm",
1778 .main_clk = "l4_root_clk_div",
1779 .prcm = {
1780 .omap4 = {
1781 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1782 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1783 .modulemode = MODULEMODE_HWCTRL,
1784 },
1785 },
1786};
1787
df0d0f11
RQ
1788/* ocp2scp3 */
1789static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
1790 .name = "ocp2scp3",
1791 .class = &dra7xx_ocp2scp_hwmod_class,
1792 .clkdm_name = "l3init_clkdm",
1793 .main_clk = "l4_root_clk_div",
1794 .prcm = {
1795 .omap4 = {
1796 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
1797 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
1798 .modulemode = MODULEMODE_HWCTRL,
1799 },
1800 },
1801};
1802
8dd3eb71
KVA
1803/*
1804 * 'PCIE' class
1805 *
1806 */
1807
1c96bee4
SN
1808/*
1809 * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
1810 * functionality of OMAP HWMOD layer does not deassert the hardreset lines
1811 * associated with an IP automatically leaving the driver to handle that
1812 * by itself. This does not work for PCIeSS which needs the reset lines
1813 * deasserted for the driver to start accessing registers.
1814 *
1815 * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
1816 * lines after asserting them.
1817 */
1818static int dra7xx_pciess_reset(struct omap_hwmod *oh)
1819{
1820 int i;
1821
1822 for (i = 0; i < oh->rst_lines_cnt; i++) {
1823 omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
1824 omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
1825 }
1826
1827 return 0;
1828}
1829
0717103e 1830static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
8dd3eb71 1831 .name = "pcie",
1c96bee4 1832 .reset = dra7xx_pciess_reset,
8dd3eb71
KVA
1833};
1834
1835/* pcie1 */
8fe097a3
KVA
1836static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
1837 { .name = "pcie", .rst_shift = 0 },
1838};
1839
0717103e 1840static struct omap_hwmod dra7xx_pciess1_hwmod = {
8dd3eb71 1841 .name = "pcie1",
0717103e 1842 .class = &dra7xx_pciess_hwmod_class,
8dd3eb71 1843 .clkdm_name = "pcie_clkdm",
8fe097a3
KVA
1844 .rst_lines = dra7xx_pciess1_resets,
1845 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
8dd3eb71 1846 .main_clk = "l4_root_clk_div",
70c18ef7
KVA
1847 .prcm = {
1848 .omap4 = {
1849 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
8fe097a3 1850 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
70c18ef7
KVA
1851 .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
1852 .modulemode = MODULEMODE_SWCTRL,
1853 },
1854 },
1855};
1856
8fe097a3
KVA
1857/* pcie2 */
1858static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
1859 { .name = "pcie", .rst_shift = 1 },
1860};
1861
0717103e
KVA
1862/* pcie2 */
1863static struct omap_hwmod dra7xx_pciess2_hwmod = {
1864 .name = "pcie2",
1865 .class = &dra7xx_pciess_hwmod_class,
1866 .clkdm_name = "pcie_clkdm",
8fe097a3
KVA
1867 .rst_lines = dra7xx_pciess2_resets,
1868 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
70c18ef7
KVA
1869 .main_clk = "l4_root_clk_div",
1870 .prcm = {
1871 .omap4 = {
1872 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
8fe097a3 1873 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
70c18ef7
KVA
1874 .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
1875 .modulemode = MODULEMODE_SWCTRL,
1876 },
1877 },
1878};
1879
90020c7b
A
1880/*
1881 * 'qspi' class
1882 *
1883 */
1884
1885static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
1886 .sysc_offs = 0x0010,
1887 .sysc_flags = SYSC_HAS_SIDLEMODE,
1888 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1889 SIDLE_SMART_WKUP),
1890 .sysc_fields = &omap_hwmod_sysc_type2,
1891};
1892
1893static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
1894 .name = "qspi",
1895 .sysc = &dra7xx_qspi_sysc,
1896};
1897
1898/* qspi */
1899static struct omap_hwmod dra7xx_qspi_hwmod = {
1900 .name = "qspi",
1901 .class = &dra7xx_qspi_hwmod_class,
1902 .clkdm_name = "l4per2_clkdm",
1903 .main_clk = "qspi_gfclk_div",
1904 .prcm = {
1905 .omap4 = {
1906 .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
1907 .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
1908 .modulemode = MODULEMODE_SWCTRL,
1909 },
1910 },
1911};
1912
c913c8a1
LV
1913/*
1914 * 'rtcss' class
1915 *
1916 */
1917static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
1918 .sysc_offs = 0x0078,
1919 .sysc_flags = SYSC_HAS_SIDLEMODE,
1920 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1921 SIDLE_SMART_WKUP),
1922 .sysc_fields = &omap_hwmod_sysc_type3,
1923};
1924
1925static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
1926 .name = "rtcss",
1927 .sysc = &dra7xx_rtcss_sysc,
d7d31b89
LV
1928 .unlock = &omap_hwmod_rtc_unlock,
1929 .lock = &omap_hwmod_rtc_lock,
c913c8a1
LV
1930};
1931
1932/* rtcss */
1933static struct omap_hwmod dra7xx_rtcss_hwmod = {
1934 .name = "rtcss",
1935 .class = &dra7xx_rtcss_hwmod_class,
1936 .clkdm_name = "rtc_clkdm",
1937 .main_clk = "sys_32k_ck",
1938 .prcm = {
1939 .omap4 = {
1940 .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
1941 .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
1942 .modulemode = MODULEMODE_SWCTRL,
1943 },
1944 },
1945};
1946
90020c7b
A
1947/*
1948 * 'sata' class
1949 *
1950 */
1951
1952static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
1953 .sysc_offs = 0x0000,
1954 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1955 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1956 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1957 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1958 .sysc_fields = &omap_hwmod_sysc_type2,
1959};
1960
1961static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
1962 .name = "sata",
1963 .sysc = &dra7xx_sata_sysc,
1964};
1965
1966/* sata */
90020c7b
A
1967
1968static struct omap_hwmod dra7xx_sata_hwmod = {
1969 .name = "sata",
1970 .class = &dra7xx_sata_hwmod_class,
1971 .clkdm_name = "l3init_clkdm",
1972 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1973 .main_clk = "func_48m_fclk",
1ea0999e 1974 .mpu_rt_idx = 1,
90020c7b
A
1975 .prcm = {
1976 .omap4 = {
1977 .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
1978 .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
1979 .modulemode = MODULEMODE_SWCTRL,
1980 },
1981 },
90020c7b
A
1982};
1983
1984/*
1985 * 'smartreflex' class
1986 *
1987 */
1988
1989/* The IP is not compliant to type1 / type2 scheme */
1990static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1991 .sidle_shift = 24,
1992 .enwkup_shift = 26,
1993};
1994
1995static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
1996 .sysc_offs = 0x0038,
1997 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1998 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1999 SIDLE_SMART_WKUP),
2000 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2001};
2002
2003static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
2004 .name = "smartreflex",
2005 .sysc = &dra7xx_smartreflex_sysc,
2006 .rev = 2,
2007};
2008
2009/* smartreflex_core */
2010/* smartreflex_core dev_attr */
2011static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2012 .sensor_voltdm_name = "core",
2013};
2014
2015static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
2016 .name = "smartreflex_core",
2017 .class = &dra7xx_smartreflex_hwmod_class,
2018 .clkdm_name = "coreaon_clkdm",
2019 .main_clk = "wkupaon_iclk_mux",
2020 .prcm = {
2021 .omap4 = {
2022 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
2023 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
2024 .modulemode = MODULEMODE_SWCTRL,
2025 },
2026 },
2027 .dev_attr = &smartreflex_core_dev_attr,
2028};
2029
2030/* smartreflex_mpu */
2031/* smartreflex_mpu dev_attr */
2032static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2033 .sensor_voltdm_name = "mpu",
2034};
2035
2036static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
2037 .name = "smartreflex_mpu",
2038 .class = &dra7xx_smartreflex_hwmod_class,
2039 .clkdm_name = "coreaon_clkdm",
2040 .main_clk = "wkupaon_iclk_mux",
2041 .prcm = {
2042 .omap4 = {
2043 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
2044 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
2045 .modulemode = MODULEMODE_SWCTRL,
2046 },
2047 },
2048 .dev_attr = &smartreflex_mpu_dev_attr,
2049};
2050
2051/*
2052 * 'spinlock' class
2053 *
2054 */
2055
2056static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
2057 .rev_offs = 0x0000,
2058 .sysc_offs = 0x0010,
2059 .syss_offs = 0x0014,
c317d0f2
SA
2060 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2061 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2062 SYSS_HAS_RESET_STATUS),
2063 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
90020c7b
A
2064 .sysc_fields = &omap_hwmod_sysc_type1,
2065};
2066
2067static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
2068 .name = "spinlock",
2069 .sysc = &dra7xx_spinlock_sysc,
2070};
2071
2072/* spinlock */
2073static struct omap_hwmod dra7xx_spinlock_hwmod = {
2074 .name = "spinlock",
2075 .class = &dra7xx_spinlock_hwmod_class,
2076 .clkdm_name = "l4cfg_clkdm",
2077 .main_clk = "l3_iclk_div",
2078 .prcm = {
2079 .omap4 = {
2080 .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
2081 .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
2082 },
2083 },
2084};
2085
2086/*
2087 * 'timer' class
2088 *
2089 * This class contains several variants: ['timer_1ms', 'timer_secure',
2090 * 'timer']
2091 */
2092
2093static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
2094 .rev_offs = 0x0000,
2095 .sysc_offs = 0x0010,
2096 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2097 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2098 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2099 SIDLE_SMART_WKUP),
2100 .sysc_fields = &omap_hwmod_sysc_type2,
2101};
2102
2103static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
2104 .name = "timer",
2105 .sysc = &dra7xx_timer_1ms_sysc,
2106};
2107
90020c7b
A
2108static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
2109 .rev_offs = 0x0000,
2110 .sysc_offs = 0x0010,
2111 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2112 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2113 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2114 SIDLE_SMART_WKUP),
2115 .sysc_fields = &omap_hwmod_sysc_type2,
2116};
2117
2118static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
2119 .name = "timer",
2120 .sysc = &dra7xx_timer_sysc,
2121};
2122
2123/* timer1 */
2124static struct omap_hwmod dra7xx_timer1_hwmod = {
2125 .name = "timer1",
2126 .class = &dra7xx_timer_1ms_hwmod_class,
2127 .clkdm_name = "wkupaon_clkdm",
2128 .main_clk = "timer1_gfclk_mux",
2129 .prcm = {
2130 .omap4 = {
2131 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
2132 .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
2133 .modulemode = MODULEMODE_SWCTRL,
2134 },
2135 },
2136};
2137
2138/* timer2 */
2139static struct omap_hwmod dra7xx_timer2_hwmod = {
2140 .name = "timer2",
2141 .class = &dra7xx_timer_1ms_hwmod_class,
2142 .clkdm_name = "l4per_clkdm",
2143 .main_clk = "timer2_gfclk_mux",
2144 .prcm = {
2145 .omap4 = {
2146 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
2147 .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
2148 .modulemode = MODULEMODE_SWCTRL,
2149 },
2150 },
2151};
2152
2153/* timer3 */
2154static struct omap_hwmod dra7xx_timer3_hwmod = {
2155 .name = "timer3",
2156 .class = &dra7xx_timer_hwmod_class,
2157 .clkdm_name = "l4per_clkdm",
2158 .main_clk = "timer3_gfclk_mux",
2159 .prcm = {
2160 .omap4 = {
2161 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
2162 .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
2163 .modulemode = MODULEMODE_SWCTRL,
2164 },
2165 },
2166};
2167
2168/* timer4 */
2169static struct omap_hwmod dra7xx_timer4_hwmod = {
2170 .name = "timer4",
edec1786 2171 .class = &dra7xx_timer_hwmod_class,
90020c7b
A
2172 .clkdm_name = "l4per_clkdm",
2173 .main_clk = "timer4_gfclk_mux",
2174 .prcm = {
2175 .omap4 = {
2176 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
2177 .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
2178 .modulemode = MODULEMODE_SWCTRL,
2179 },
2180 },
2181};
2182
2183/* timer5 */
2184static struct omap_hwmod dra7xx_timer5_hwmod = {
2185 .name = "timer5",
2186 .class = &dra7xx_timer_hwmod_class,
2187 .clkdm_name = "ipu_clkdm",
2188 .main_clk = "timer5_gfclk_mux",
2189 .prcm = {
2190 .omap4 = {
2191 .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
2192 .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
2193 .modulemode = MODULEMODE_SWCTRL,
2194 },
2195 },
2196};
2197
2198/* timer6 */
2199static struct omap_hwmod dra7xx_timer6_hwmod = {
2200 .name = "timer6",
2201 .class = &dra7xx_timer_hwmod_class,
2202 .clkdm_name = "ipu_clkdm",
2203 .main_clk = "timer6_gfclk_mux",
2204 .prcm = {
2205 .omap4 = {
2206 .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
2207 .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
2208 .modulemode = MODULEMODE_SWCTRL,
2209 },
2210 },
2211};
2212
2213/* timer7 */
2214static struct omap_hwmod dra7xx_timer7_hwmod = {
2215 .name = "timer7",
2216 .class = &dra7xx_timer_hwmod_class,
2217 .clkdm_name = "ipu_clkdm",
2218 .main_clk = "timer7_gfclk_mux",
2219 .prcm = {
2220 .omap4 = {
2221 .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
2222 .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
2223 .modulemode = MODULEMODE_SWCTRL,
2224 },
2225 },
2226};
2227
2228/* timer8 */
2229static struct omap_hwmod dra7xx_timer8_hwmod = {
2230 .name = "timer8",
2231 .class = &dra7xx_timer_hwmod_class,
2232 .clkdm_name = "ipu_clkdm",
2233 .main_clk = "timer8_gfclk_mux",
2234 .prcm = {
2235 .omap4 = {
2236 .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
2237 .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
2238 .modulemode = MODULEMODE_SWCTRL,
2239 },
2240 },
2241};
2242
2243/* timer9 */
2244static struct omap_hwmod dra7xx_timer9_hwmod = {
2245 .name = "timer9",
2246 .class = &dra7xx_timer_hwmod_class,
2247 .clkdm_name = "l4per_clkdm",
2248 .main_clk = "timer9_gfclk_mux",
2249 .prcm = {
2250 .omap4 = {
2251 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
2252 .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
2253 .modulemode = MODULEMODE_SWCTRL,
2254 },
2255 },
2256};
2257
2258/* timer10 */
2259static struct omap_hwmod dra7xx_timer10_hwmod = {
2260 .name = "timer10",
2261 .class = &dra7xx_timer_1ms_hwmod_class,
2262 .clkdm_name = "l4per_clkdm",
2263 .main_clk = "timer10_gfclk_mux",
2264 .prcm = {
2265 .omap4 = {
2266 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
2267 .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
2268 .modulemode = MODULEMODE_SWCTRL,
2269 },
2270 },
2271};
2272
2273/* timer11 */
2274static struct omap_hwmod dra7xx_timer11_hwmod = {
2275 .name = "timer11",
2276 .class = &dra7xx_timer_hwmod_class,
2277 .clkdm_name = "l4per_clkdm",
2278 .main_clk = "timer11_gfclk_mux",
2279 .prcm = {
2280 .omap4 = {
2281 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
2282 .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
2283 .modulemode = MODULEMODE_SWCTRL,
2284 },
2285 },
2286};
2287
1ac964f4
SA
2288/* timer13 */
2289static struct omap_hwmod dra7xx_timer13_hwmod = {
2290 .name = "timer13",
2291 .class = &dra7xx_timer_hwmod_class,
2292 .clkdm_name = "l4per3_clkdm",
2293 .main_clk = "timer13_gfclk_mux",
2294 .prcm = {
2295 .omap4 = {
2296 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
2297 .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
2298 .modulemode = MODULEMODE_SWCTRL,
2299 },
2300 },
2301};
2302
2303/* timer14 */
2304static struct omap_hwmod dra7xx_timer14_hwmod = {
2305 .name = "timer14",
2306 .class = &dra7xx_timer_hwmod_class,
2307 .clkdm_name = "l4per3_clkdm",
2308 .main_clk = "timer14_gfclk_mux",
2309 .prcm = {
2310 .omap4 = {
2311 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
2312 .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
2313 .modulemode = MODULEMODE_SWCTRL,
2314 },
2315 },
2316};
2317
2318/* timer15 */
2319static struct omap_hwmod dra7xx_timer15_hwmod = {
2320 .name = "timer15",
2321 .class = &dra7xx_timer_hwmod_class,
2322 .clkdm_name = "l4per3_clkdm",
2323 .main_clk = "timer15_gfclk_mux",
2324 .prcm = {
2325 .omap4 = {
2326 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
2327 .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
2328 .modulemode = MODULEMODE_SWCTRL,
2329 },
2330 },
2331};
2332
2333/* timer16 */
2334static struct omap_hwmod dra7xx_timer16_hwmod = {
2335 .name = "timer16",
2336 .class = &dra7xx_timer_hwmod_class,
2337 .clkdm_name = "l4per3_clkdm",
2338 .main_clk = "timer16_gfclk_mux",
2339 .prcm = {
2340 .omap4 = {
2341 .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
2342 .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
2343 .modulemode = MODULEMODE_SWCTRL,
2344 },
2345 },
2346};
2347
90020c7b
A
2348/*
2349 * 'uart' class
2350 *
2351 */
2352
2353static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
2354 .rev_offs = 0x0050,
2355 .sysc_offs = 0x0054,
2356 .syss_offs = 0x0058,
2357 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2358 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2359 SYSS_HAS_RESET_STATUS),
2360 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2361 SIDLE_SMART_WKUP),
2362 .sysc_fields = &omap_hwmod_sysc_type1,
2363};
2364
2365static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
2366 .name = "uart",
2367 .sysc = &dra7xx_uart_sysc,
2368};
2369
2370/* uart1 */
2371static struct omap_hwmod dra7xx_uart1_hwmod = {
2372 .name = "uart1",
2373 .class = &dra7xx_uart_hwmod_class,
2374 .clkdm_name = "l4per_clkdm",
2375 .main_clk = "uart1_gfclk_mux",
38958c15 2376 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
90020c7b
A
2377 .prcm = {
2378 .omap4 = {
2379 .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
2380 .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
2381 .modulemode = MODULEMODE_SWCTRL,
2382 },
2383 },
2384};
2385
2386/* uart2 */
2387static struct omap_hwmod dra7xx_uart2_hwmod = {
2388 .name = "uart2",
2389 .class = &dra7xx_uart_hwmod_class,
2390 .clkdm_name = "l4per_clkdm",
2391 .main_clk = "uart2_gfclk_mux",
2392 .flags = HWMOD_SWSUP_SIDLE_ACT,
2393 .prcm = {
2394 .omap4 = {
2395 .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
2396 .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
2397 .modulemode = MODULEMODE_SWCTRL,
2398 },
2399 },
2400};
2401
2402/* uart3 */
2403static struct omap_hwmod dra7xx_uart3_hwmod = {
2404 .name = "uart3",
2405 .class = &dra7xx_uart_hwmod_class,
2406 .clkdm_name = "l4per_clkdm",
2407 .main_clk = "uart3_gfclk_mux",
1c7e36bf 2408 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
90020c7b
A
2409 .prcm = {
2410 .omap4 = {
2411 .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
2412 .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
2413 .modulemode = MODULEMODE_SWCTRL,
2414 },
2415 },
2416};
2417
2418/* uart4 */
2419static struct omap_hwmod dra7xx_uart4_hwmod = {
2420 .name = "uart4",
2421 .class = &dra7xx_uart_hwmod_class,
2422 .clkdm_name = "l4per_clkdm",
2423 .main_clk = "uart4_gfclk_mux",
b0340850 2424 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
90020c7b
A
2425 .prcm = {
2426 .omap4 = {
2427 .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
2428 .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
2429 .modulemode = MODULEMODE_SWCTRL,
2430 },
2431 },
2432};
2433
2434/* uart5 */
2435static struct omap_hwmod dra7xx_uart5_hwmod = {
2436 .name = "uart5",
2437 .class = &dra7xx_uart_hwmod_class,
2438 .clkdm_name = "l4per_clkdm",
2439 .main_clk = "uart5_gfclk_mux",
2440 .flags = HWMOD_SWSUP_SIDLE_ACT,
2441 .prcm = {
2442 .omap4 = {
2443 .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
2444 .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
2445 .modulemode = MODULEMODE_SWCTRL,
2446 },
2447 },
2448};
2449
2450/* uart6 */
2451static struct omap_hwmod dra7xx_uart6_hwmod = {
2452 .name = "uart6",
2453 .class = &dra7xx_uart_hwmod_class,
2454 .clkdm_name = "ipu_clkdm",
2455 .main_clk = "uart6_gfclk_mux",
2456 .flags = HWMOD_SWSUP_SIDLE_ACT,
2457 .prcm = {
2458 .omap4 = {
2459 .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
2460 .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
2461 .modulemode = MODULEMODE_SWCTRL,
2462 },
2463 },
2464};
2465
33acc9ff
A
2466/* uart7 */
2467static struct omap_hwmod dra7xx_uart7_hwmod = {
2468 .name = "uart7",
2469 .class = &dra7xx_uart_hwmod_class,
2470 .clkdm_name = "l4per2_clkdm",
2471 .main_clk = "uart7_gfclk_mux",
2472 .flags = HWMOD_SWSUP_SIDLE_ACT,
2473 .prcm = {
2474 .omap4 = {
2475 .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
2476 .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
2477 .modulemode = MODULEMODE_SWCTRL,
2478 },
2479 },
2480};
2481
2482/* uart8 */
2483static struct omap_hwmod dra7xx_uart8_hwmod = {
2484 .name = "uart8",
2485 .class = &dra7xx_uart_hwmod_class,
2486 .clkdm_name = "l4per2_clkdm",
2487 .main_clk = "uart8_gfclk_mux",
2488 .flags = HWMOD_SWSUP_SIDLE_ACT,
2489 .prcm = {
2490 .omap4 = {
2491 .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
2492 .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
2493 .modulemode = MODULEMODE_SWCTRL,
2494 },
2495 },
2496};
2497
2498/* uart9 */
2499static struct omap_hwmod dra7xx_uart9_hwmod = {
2500 .name = "uart9",
2501 .class = &dra7xx_uart_hwmod_class,
2502 .clkdm_name = "l4per2_clkdm",
2503 .main_clk = "uart9_gfclk_mux",
2504 .flags = HWMOD_SWSUP_SIDLE_ACT,
2505 .prcm = {
2506 .omap4 = {
2507 .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
2508 .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
2509 .modulemode = MODULEMODE_SWCTRL,
2510 },
2511 },
2512};
2513
2514/* uart10 */
2515static struct omap_hwmod dra7xx_uart10_hwmod = {
2516 .name = "uart10",
2517 .class = &dra7xx_uart_hwmod_class,
2518 .clkdm_name = "wkupaon_clkdm",
2519 .main_clk = "uart10_gfclk_mux",
2520 .flags = HWMOD_SWSUP_SIDLE_ACT,
2521 .prcm = {
2522 .omap4 = {
2523 .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
2524 .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
2525 .modulemode = MODULEMODE_SWCTRL,
2526 },
2527 },
2528};
2529
90020c7b
A
2530/*
2531 * 'usb_otg_ss' class
2532 *
2533 */
2534
d904b38d
RQ
2535static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
2536 .rev_offs = 0x0000,
2537 .sysc_offs = 0x0010,
2538 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
2539 SYSC_HAS_SIDLEMODE),
2540 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2541 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2542 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2543 .sysc_fields = &omap_hwmod_sysc_type2,
2544};
2545
90020c7b
A
2546static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
2547 .name = "usb_otg_ss",
d904b38d 2548 .sysc = &dra7xx_usb_otg_ss_sysc,
90020c7b
A
2549};
2550
2551/* usb_otg_ss1 */
2552static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
2553 { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
2554};
2555
2556static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
2557 .name = "usb_otg_ss1",
2558 .class = &dra7xx_usb_otg_ss_hwmod_class,
2559 .clkdm_name = "l3init_clkdm",
2560 .main_clk = "dpll_core_h13x2_ck",
2561 .prcm = {
2562 .omap4 = {
2563 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
2564 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
2565 .modulemode = MODULEMODE_HWCTRL,
2566 },
2567 },
2568 .opt_clks = usb_otg_ss1_opt_clks,
2569 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
2570};
2571
2572/* usb_otg_ss2 */
2573static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
2574 { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
2575};
2576
2577static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
2578 .name = "usb_otg_ss2",
2579 .class = &dra7xx_usb_otg_ss_hwmod_class,
2580 .clkdm_name = "l3init_clkdm",
2581 .main_clk = "dpll_core_h13x2_ck",
2582 .prcm = {
2583 .omap4 = {
2584 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
2585 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
2586 .modulemode = MODULEMODE_HWCTRL,
2587 },
2588 },
2589 .opt_clks = usb_otg_ss2_opt_clks,
2590 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
2591};
2592
2593/* usb_otg_ss3 */
2594static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
2595 .name = "usb_otg_ss3",
2596 .class = &dra7xx_usb_otg_ss_hwmod_class,
2597 .clkdm_name = "l3init_clkdm",
2598 .main_clk = "dpll_core_h13x2_ck",
2599 .prcm = {
2600 .omap4 = {
2601 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
2602 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
2603 .modulemode = MODULEMODE_HWCTRL,
2604 },
2605 },
2606};
2607
2608/* usb_otg_ss4 */
2609static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
2610 .name = "usb_otg_ss4",
2611 .class = &dra7xx_usb_otg_ss_hwmod_class,
2612 .clkdm_name = "l3init_clkdm",
2613 .main_clk = "dpll_core_h13x2_ck",
2614 .prcm = {
2615 .omap4 = {
2616 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
2617 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
2618 .modulemode = MODULEMODE_HWCTRL,
2619 },
2620 },
2621};
2622
2623/*
2624 * 'vcp' class
2625 *
2626 */
2627
2628static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
2629 .name = "vcp",
2630};
2631
2632/* vcp1 */
2633static struct omap_hwmod dra7xx_vcp1_hwmod = {
2634 .name = "vcp1",
2635 .class = &dra7xx_vcp_hwmod_class,
2636 .clkdm_name = "l3main1_clkdm",
2637 .main_clk = "l3_iclk_div",
2638 .prcm = {
2639 .omap4 = {
2640 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
2641 .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
2642 },
2643 },
2644};
2645
2646/* vcp2 */
2647static struct omap_hwmod dra7xx_vcp2_hwmod = {
2648 .name = "vcp2",
2649 .class = &dra7xx_vcp_hwmod_class,
2650 .clkdm_name = "l3main1_clkdm",
2651 .main_clk = "l3_iclk_div",
2652 .prcm = {
2653 .omap4 = {
2654 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
2655 .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
2656 },
2657 },
2658};
2659
2660/*
2661 * 'wd_timer' class
2662 *
2663 */
2664
2665static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
2666 .rev_offs = 0x0000,
2667 .sysc_offs = 0x0010,
2668 .syss_offs = 0x0014,
2669 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
2670 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2671 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2672 SIDLE_SMART_WKUP),
2673 .sysc_fields = &omap_hwmod_sysc_type1,
2674};
2675
2676static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
2677 .name = "wd_timer",
2678 .sysc = &dra7xx_wd_timer_sysc,
2679 .pre_shutdown = &omap2_wd_timer_disable,
2680 .reset = &omap2_wd_timer_reset,
2681};
2682
2683/* wd_timer2 */
2684static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
2685 .name = "wd_timer2",
2686 .class = &dra7xx_wd_timer_hwmod_class,
2687 .clkdm_name = "wkupaon_clkdm",
2688 .main_clk = "sys_32k_ck",
2689 .prcm = {
2690 .omap4 = {
2691 .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
2692 .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
2693 .modulemode = MODULEMODE_SWCTRL,
2694 },
2695 },
2696};
2697
2698
2699/*
2700 * Interfaces
2701 */
2702
42121688
TV
2703/* l3_main_1 -> dmm */
2704static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
2705 .master = &dra7xx_l3_main_1_hwmod,
2706 .slave = &dra7xx_dmm_hwmod,
2707 .clk = "l3_iclk_div",
2708 .user = OCP_USER_SDMA,
2709};
2710
90020c7b
A
2711/* l3_main_2 -> l3_instr */
2712static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
2713 .master = &dra7xx_l3_main_2_hwmod,
2714 .slave = &dra7xx_l3_instr_hwmod,
2715 .clk = "l3_iclk_div",
2716 .user = OCP_USER_MPU | OCP_USER_SDMA,
2717};
2718
2719/* l4_cfg -> l3_main_1 */
2720static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
2721 .master = &dra7xx_l4_cfg_hwmod,
2722 .slave = &dra7xx_l3_main_1_hwmod,
2723 .clk = "l3_iclk_div",
2724 .user = OCP_USER_MPU | OCP_USER_SDMA,
2725};
2726
2727/* mpu -> l3_main_1 */
2728static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
2729 .master = &dra7xx_mpu_hwmod,
2730 .slave = &dra7xx_l3_main_1_hwmod,
2731 .clk = "l3_iclk_div",
2732 .user = OCP_USER_MPU,
2733};
2734
2735/* l3_main_1 -> l3_main_2 */
2736static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
2737 .master = &dra7xx_l3_main_1_hwmod,
2738 .slave = &dra7xx_l3_main_2_hwmod,
2739 .clk = "l3_iclk_div",
2740 .user = OCP_USER_MPU,
2741};
2742
2743/* l4_cfg -> l3_main_2 */
2744static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
2745 .master = &dra7xx_l4_cfg_hwmod,
2746 .slave = &dra7xx_l3_main_2_hwmod,
2747 .clk = "l3_iclk_div",
2748 .user = OCP_USER_MPU | OCP_USER_SDMA,
2749};
2750
2751/* l3_main_1 -> l4_cfg */
2752static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
2753 .master = &dra7xx_l3_main_1_hwmod,
2754 .slave = &dra7xx_l4_cfg_hwmod,
2755 .clk = "l3_iclk_div",
2756 .user = OCP_USER_MPU | OCP_USER_SDMA,
2757};
2758
2759/* l3_main_1 -> l4_per1 */
2760static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
2761 .master = &dra7xx_l3_main_1_hwmod,
2762 .slave = &dra7xx_l4_per1_hwmod,
2763 .clk = "l3_iclk_div",
2764 .user = OCP_USER_MPU | OCP_USER_SDMA,
2765};
2766
2767/* l3_main_1 -> l4_per2 */
2768static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
2769 .master = &dra7xx_l3_main_1_hwmod,
2770 .slave = &dra7xx_l4_per2_hwmod,
2771 .clk = "l3_iclk_div",
2772 .user = OCP_USER_MPU | OCP_USER_SDMA,
2773};
2774
2775/* l3_main_1 -> l4_per3 */
2776static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
2777 .master = &dra7xx_l3_main_1_hwmod,
2778 .slave = &dra7xx_l4_per3_hwmod,
2779 .clk = "l3_iclk_div",
2780 .user = OCP_USER_MPU | OCP_USER_SDMA,
2781};
2782
2783/* l3_main_1 -> l4_wkup */
2784static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
2785 .master = &dra7xx_l3_main_1_hwmod,
2786 .slave = &dra7xx_l4_wkup_hwmod,
2787 .clk = "wkupaon_iclk_mux",
2788 .user = OCP_USER_MPU | OCP_USER_SDMA,
2789};
2790
2791/* l4_per2 -> atl */
2792static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
2793 .master = &dra7xx_l4_per2_hwmod,
2794 .slave = &dra7xx_atl_hwmod,
2795 .clk = "l3_iclk_div",
2796 .user = OCP_USER_MPU | OCP_USER_SDMA,
2797};
2798
2799/* l3_main_1 -> bb2d */
2800static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
2801 .master = &dra7xx_l3_main_1_hwmod,
2802 .slave = &dra7xx_bb2d_hwmod,
2803 .clk = "l3_iclk_div",
2804 .user = OCP_USER_MPU | OCP_USER_SDMA,
2805};
2806
2807/* l4_wkup -> counter_32k */
2808static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
2809 .master = &dra7xx_l4_wkup_hwmod,
2810 .slave = &dra7xx_counter_32k_hwmod,
2811 .clk = "wkupaon_iclk_mux",
2812 .user = OCP_USER_MPU | OCP_USER_SDMA,
2813};
2814
2815/* l4_wkup -> ctrl_module_wkup */
2816static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
2817 .master = &dra7xx_l4_wkup_hwmod,
2818 .slave = &dra7xx_ctrl_module_wkup_hwmod,
2819 .clk = "wkupaon_iclk_mux",
2820 .user = OCP_USER_MPU | OCP_USER_SDMA,
2821};
2822
077c42f7
M
2823static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
2824 .master = &dra7xx_l4_per2_hwmod,
2825 .slave = &dra7xx_gmac_hwmod,
2826 .clk = "dpll_gmac_ck",
2827 .user = OCP_USER_MPU,
2828};
2829
2830static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
2831 .master = &dra7xx_gmac_hwmod,
2832 .slave = &dra7xx_mdio_hwmod,
2833 .user = OCP_USER_MPU,
2834};
2835
90020c7b
A
2836/* l4_wkup -> dcan1 */
2837static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
2838 .master = &dra7xx_l4_wkup_hwmod,
2839 .slave = &dra7xx_dcan1_hwmod,
2840 .clk = "wkupaon_iclk_mux",
2841 .user = OCP_USER_MPU | OCP_USER_SDMA,
2842};
2843
2844/* l4_per2 -> dcan2 */
2845static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
2846 .master = &dra7xx_l4_per2_hwmod,
2847 .slave = &dra7xx_dcan2_hwmod,
2848 .clk = "l3_iclk_div",
2849 .user = OCP_USER_MPU | OCP_USER_SDMA,
2850};
2851
2852static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
2853 {
2854 .pa_start = 0x4a056000,
2855 .pa_end = 0x4a056fff,
2856 .flags = ADDR_TYPE_RT
2857 },
2858 { }
2859};
2860
2861/* l4_cfg -> dma_system */
2862static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
2863 .master = &dra7xx_l4_cfg_hwmod,
2864 .slave = &dra7xx_dma_system_hwmod,
2865 .clk = "l3_iclk_div",
2866 .addr = dra7xx_dma_system_addrs,
2867 .user = OCP_USER_MPU | OCP_USER_SDMA,
2868};
2869
34b4182c
PU
2870/* l3_main_1 -> tpcc */
2871static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tpcc = {
2872 .master = &dra7xx_l3_main_1_hwmod,
2873 .slave = &dra7xx_tpcc_hwmod,
2874 .clk = "l3_iclk_div",
2875 .user = OCP_USER_MPU,
2876};
2877
2878/* l3_main_1 -> tptc0 */
2879static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc0 = {
2880 .master = &dra7xx_l3_main_1_hwmod,
2881 .slave = &dra7xx_tptc0_hwmod,
2882 .clk = "l3_iclk_div",
2883 .user = OCP_USER_MPU,
2884};
2885
2886/* l3_main_1 -> tptc1 */
2887static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc1 = {
2888 .master = &dra7xx_l3_main_1_hwmod,
2889 .slave = &dra7xx_tptc1_hwmod,
2890 .clk = "l3_iclk_div",
2891 .user = OCP_USER_MPU,
2892};
2893
90020c7b
A
2894static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
2895 {
2896 .name = "family",
2897 .pa_start = 0x58000000,
2898 .pa_end = 0x5800007f,
2899 .flags = ADDR_TYPE_RT
2900 },
2901};
2902
2903/* l3_main_1 -> dss */
2904static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
2905 .master = &dra7xx_l3_main_1_hwmod,
2906 .slave = &dra7xx_dss_hwmod,
2907 .clk = "l3_iclk_div",
2908 .addr = dra7xx_dss_addrs,
2909 .user = OCP_USER_MPU | OCP_USER_SDMA,
2910};
2911
2912static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
2913 {
2914 .name = "dispc",
2915 .pa_start = 0x58001000,
2916 .pa_end = 0x58001fff,
2917 .flags = ADDR_TYPE_RT
2918 },
2919};
2920
2921/* l3_main_1 -> dispc */
2922static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
2923 .master = &dra7xx_l3_main_1_hwmod,
2924 .slave = &dra7xx_dss_dispc_hwmod,
2925 .clk = "l3_iclk_div",
2926 .addr = dra7xx_dss_dispc_addrs,
2927 .user = OCP_USER_MPU | OCP_USER_SDMA,
2928};
2929
2930static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
2931 {
2932 .name = "hdmi_wp",
2933 .pa_start = 0x58040000,
2934 .pa_end = 0x580400ff,
2935 .flags = ADDR_TYPE_RT
2936 },
2937 { }
2938};
2939
2940/* l3_main_1 -> dispc */
2941static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
2942 .master = &dra7xx_l3_main_1_hwmod,
2943 .slave = &dra7xx_dss_hdmi_hwmod,
2944 .clk = "l3_iclk_div",
2945 .addr = dra7xx_dss_hdmi_addrs,
2946 .user = OCP_USER_MPU | OCP_USER_SDMA,
2947};
2948
9ad4d9a3
PU
2949/* l4_per2 -> mcasp1 */
2950static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = {
2951 .master = &dra7xx_l4_per2_hwmod,
2952 .slave = &dra7xx_mcasp1_hwmod,
2953 .clk = "l4_root_clk_div",
2954 .user = OCP_USER_MPU | OCP_USER_SDMA,
2955};
2956
2957/* l3_main_1 -> mcasp1 */
2958static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = {
2959 .master = &dra7xx_l3_main_1_hwmod,
2960 .slave = &dra7xx_mcasp1_hwmod,
2961 .clk = "l3_iclk_div",
2962 .user = OCP_USER_MPU | OCP_USER_SDMA,
2963};
2964
2965/* l4_per2 -> mcasp2 */
2966static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = {
2967 .master = &dra7xx_l4_per2_hwmod,
2968 .slave = &dra7xx_mcasp2_hwmod,
2969 .clk = "l4_root_clk_div",
2970 .user = OCP_USER_MPU | OCP_USER_SDMA,
2971};
2972
2973/* l3_main_1 -> mcasp2 */
2974static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = {
2975 .master = &dra7xx_l3_main_1_hwmod,
2976 .slave = &dra7xx_mcasp2_hwmod,
2977 .clk = "l3_iclk_div",
2978 .user = OCP_USER_MPU | OCP_USER_SDMA,
2979};
2980
469689a4
PU
2981/* l4_per2 -> mcasp3 */
2982static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
2983 .master = &dra7xx_l4_per2_hwmod,
2984 .slave = &dra7xx_mcasp3_hwmod,
2985 .clk = "l4_root_clk_div",
2986 .user = OCP_USER_MPU | OCP_USER_SDMA,
2987};
2988
2989/* l3_main_1 -> mcasp3 */
2990static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
2991 .master = &dra7xx_l3_main_1_hwmod,
2992 .slave = &dra7xx_mcasp3_hwmod,
2993 .clk = "l3_iclk_div",
2994 .user = OCP_USER_MPU | OCP_USER_SDMA,
2995};
2996
9ad4d9a3
PU
2997/* l4_per2 -> mcasp4 */
2998static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = {
2999 .master = &dra7xx_l4_per2_hwmod,
3000 .slave = &dra7xx_mcasp4_hwmod,
3001 .clk = "l4_root_clk_div",
3002 .user = OCP_USER_MPU | OCP_USER_SDMA,
3003};
3004
3005/* l4_per2 -> mcasp5 */
3006static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = {
3007 .master = &dra7xx_l4_per2_hwmod,
3008 .slave = &dra7xx_mcasp5_hwmod,
3009 .clk = "l4_root_clk_div",
3010 .user = OCP_USER_MPU | OCP_USER_SDMA,
3011};
3012
3013/* l4_per2 -> mcasp6 */
3014static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = {
3015 .master = &dra7xx_l4_per2_hwmod,
3016 .slave = &dra7xx_mcasp6_hwmod,
3017 .clk = "l4_root_clk_div",
3018 .user = OCP_USER_MPU | OCP_USER_SDMA,
3019};
3020
3021/* l4_per2 -> mcasp7 */
3022static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = {
3023 .master = &dra7xx_l4_per2_hwmod,
3024 .slave = &dra7xx_mcasp7_hwmod,
3025 .clk = "l4_root_clk_div",
3026 .user = OCP_USER_MPU | OCP_USER_SDMA,
3027};
3028
3029/* l4_per2 -> mcasp8 */
3030static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = {
3031 .master = &dra7xx_l4_per2_hwmod,
3032 .slave = &dra7xx_mcasp8_hwmod,
3033 .clk = "l4_root_clk_div",
3034 .user = OCP_USER_MPU | OCP_USER_SDMA,
3035};
3036
90020c7b
A
3037/* l4_per1 -> elm */
3038static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
3039 .master = &dra7xx_l4_per1_hwmod,
3040 .slave = &dra7xx_elm_hwmod,
3041 .clk = "l3_iclk_div",
90020c7b
A
3042 .user = OCP_USER_MPU | OCP_USER_SDMA,
3043};
3044
3045/* l4_wkup -> gpio1 */
3046static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
3047 .master = &dra7xx_l4_wkup_hwmod,
3048 .slave = &dra7xx_gpio1_hwmod,
3049 .clk = "wkupaon_iclk_mux",
3050 .user = OCP_USER_MPU | OCP_USER_SDMA,
3051};
3052
3053/* l4_per1 -> gpio2 */
3054static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
3055 .master = &dra7xx_l4_per1_hwmod,
3056 .slave = &dra7xx_gpio2_hwmod,
3057 .clk = "l3_iclk_div",
3058 .user = OCP_USER_MPU | OCP_USER_SDMA,
3059};
3060
3061/* l4_per1 -> gpio3 */
3062static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
3063 .master = &dra7xx_l4_per1_hwmod,
3064 .slave = &dra7xx_gpio3_hwmod,
3065 .clk = "l3_iclk_div",
3066 .user = OCP_USER_MPU | OCP_USER_SDMA,
3067};
3068
3069/* l4_per1 -> gpio4 */
3070static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
3071 .master = &dra7xx_l4_per1_hwmod,
3072 .slave = &dra7xx_gpio4_hwmod,
3073 .clk = "l3_iclk_div",
3074 .user = OCP_USER_MPU | OCP_USER_SDMA,
3075};
3076
3077/* l4_per1 -> gpio5 */
3078static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
3079 .master = &dra7xx_l4_per1_hwmod,
3080 .slave = &dra7xx_gpio5_hwmod,
3081 .clk = "l3_iclk_div",
3082 .user = OCP_USER_MPU | OCP_USER_SDMA,
3083};
3084
3085/* l4_per1 -> gpio6 */
3086static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
3087 .master = &dra7xx_l4_per1_hwmod,
3088 .slave = &dra7xx_gpio6_hwmod,
3089 .clk = "l3_iclk_div",
3090 .user = OCP_USER_MPU | OCP_USER_SDMA,
3091};
3092
3093/* l4_per1 -> gpio7 */
3094static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
3095 .master = &dra7xx_l4_per1_hwmod,
3096 .slave = &dra7xx_gpio7_hwmod,
3097 .clk = "l3_iclk_div",
3098 .user = OCP_USER_MPU | OCP_USER_SDMA,
3099};
3100
3101/* l4_per1 -> gpio8 */
3102static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
3103 .master = &dra7xx_l4_per1_hwmod,
3104 .slave = &dra7xx_gpio8_hwmod,
3105 .clk = "l3_iclk_div",
3106 .user = OCP_USER_MPU | OCP_USER_SDMA,
3107};
3108
90020c7b
A
3109/* l3_main_1 -> gpmc */
3110static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
3111 .master = &dra7xx_l3_main_1_hwmod,
3112 .slave = &dra7xx_gpmc_hwmod,
3113 .clk = "l3_iclk_div",
90020c7b
A
3114 .user = OCP_USER_MPU | OCP_USER_SDMA,
3115};
3116
3117static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
3118 {
3119 .pa_start = 0x480b2000,
3120 .pa_end = 0x480b201f,
3121 .flags = ADDR_TYPE_RT
3122 },
3123 { }
3124};
3125
3126/* l4_per1 -> hdq1w */
3127static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
3128 .master = &dra7xx_l4_per1_hwmod,
3129 .slave = &dra7xx_hdq1w_hwmod,
3130 .clk = "l3_iclk_div",
3131 .addr = dra7xx_hdq1w_addrs,
3132 .user = OCP_USER_MPU | OCP_USER_SDMA,
3133};
3134
3135/* l4_per1 -> i2c1 */
3136static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
3137 .master = &dra7xx_l4_per1_hwmod,
3138 .slave = &dra7xx_i2c1_hwmod,
3139 .clk = "l3_iclk_div",
3140 .user = OCP_USER_MPU | OCP_USER_SDMA,
3141};
3142
3143/* l4_per1 -> i2c2 */
3144static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
3145 .master = &dra7xx_l4_per1_hwmod,
3146 .slave = &dra7xx_i2c2_hwmod,
3147 .clk = "l3_iclk_div",
3148 .user = OCP_USER_MPU | OCP_USER_SDMA,
3149};
3150
3151/* l4_per1 -> i2c3 */
3152static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
3153 .master = &dra7xx_l4_per1_hwmod,
3154 .slave = &dra7xx_i2c3_hwmod,
3155 .clk = "l3_iclk_div",
3156 .user = OCP_USER_MPU | OCP_USER_SDMA,
3157};
3158
3159/* l4_per1 -> i2c4 */
3160static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
3161 .master = &dra7xx_l4_per1_hwmod,
3162 .slave = &dra7xx_i2c4_hwmod,
3163 .clk = "l3_iclk_div",
3164 .user = OCP_USER_MPU | OCP_USER_SDMA,
3165};
3166
3167/* l4_per1 -> i2c5 */
3168static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
3169 .master = &dra7xx_l4_per1_hwmod,
3170 .slave = &dra7xx_i2c5_hwmod,
3171 .clk = "l3_iclk_div",
3172 .user = OCP_USER_MPU | OCP_USER_SDMA,
3173};
3174
067395d4
SA
3175/* l4_cfg -> mailbox1 */
3176static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
3177 .master = &dra7xx_l4_cfg_hwmod,
3178 .slave = &dra7xx_mailbox1_hwmod,
3179 .clk = "l3_iclk_div",
3180 .user = OCP_USER_MPU | OCP_USER_SDMA,
3181};
3182
3183/* l4_per3 -> mailbox2 */
3184static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
3185 .master = &dra7xx_l4_per3_hwmod,
3186 .slave = &dra7xx_mailbox2_hwmod,
3187 .clk = "l3_iclk_div",
3188 .user = OCP_USER_MPU | OCP_USER_SDMA,
3189};
3190
3191/* l4_per3 -> mailbox3 */
3192static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
3193 .master = &dra7xx_l4_per3_hwmod,
3194 .slave = &dra7xx_mailbox3_hwmod,
3195 .clk = "l3_iclk_div",
3196 .user = OCP_USER_MPU | OCP_USER_SDMA,
3197};
3198
3199/* l4_per3 -> mailbox4 */
3200static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
3201 .master = &dra7xx_l4_per3_hwmod,
3202 .slave = &dra7xx_mailbox4_hwmod,
3203 .clk = "l3_iclk_div",
3204 .user = OCP_USER_MPU | OCP_USER_SDMA,
3205};
3206
3207/* l4_per3 -> mailbox5 */
3208static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
3209 .master = &dra7xx_l4_per3_hwmod,
3210 .slave = &dra7xx_mailbox5_hwmod,
3211 .clk = "l3_iclk_div",
3212 .user = OCP_USER_MPU | OCP_USER_SDMA,
3213};
3214
3215/* l4_per3 -> mailbox6 */
3216static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
3217 .master = &dra7xx_l4_per3_hwmod,
3218 .slave = &dra7xx_mailbox6_hwmod,
3219 .clk = "l3_iclk_div",
3220 .user = OCP_USER_MPU | OCP_USER_SDMA,
3221};
3222
3223/* l4_per3 -> mailbox7 */
3224static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
3225 .master = &dra7xx_l4_per3_hwmod,
3226 .slave = &dra7xx_mailbox7_hwmod,
3227 .clk = "l3_iclk_div",
3228 .user = OCP_USER_MPU | OCP_USER_SDMA,
3229};
3230
3231/* l4_per3 -> mailbox8 */
3232static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
3233 .master = &dra7xx_l4_per3_hwmod,
3234 .slave = &dra7xx_mailbox8_hwmod,
3235 .clk = "l3_iclk_div",
3236 .user = OCP_USER_MPU | OCP_USER_SDMA,
3237};
3238
3239/* l4_per3 -> mailbox9 */
3240static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
3241 .master = &dra7xx_l4_per3_hwmod,
3242 .slave = &dra7xx_mailbox9_hwmod,
3243 .clk = "l3_iclk_div",
3244 .user = OCP_USER_MPU | OCP_USER_SDMA,
3245};
3246
3247/* l4_per3 -> mailbox10 */
3248static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
3249 .master = &dra7xx_l4_per3_hwmod,
3250 .slave = &dra7xx_mailbox10_hwmod,
3251 .clk = "l3_iclk_div",
3252 .user = OCP_USER_MPU | OCP_USER_SDMA,
3253};
3254
3255/* l4_per3 -> mailbox11 */
3256static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
3257 .master = &dra7xx_l4_per3_hwmod,
3258 .slave = &dra7xx_mailbox11_hwmod,
3259 .clk = "l3_iclk_div",
3260 .user = OCP_USER_MPU | OCP_USER_SDMA,
3261};
3262
3263/* l4_per3 -> mailbox12 */
3264static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
3265 .master = &dra7xx_l4_per3_hwmod,
3266 .slave = &dra7xx_mailbox12_hwmod,
3267 .clk = "l3_iclk_div",
3268 .user = OCP_USER_MPU | OCP_USER_SDMA,
3269};
3270
3271/* l4_per3 -> mailbox13 */
3272static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
3273 .master = &dra7xx_l4_per3_hwmod,
3274 .slave = &dra7xx_mailbox13_hwmod,
3275 .clk = "l3_iclk_div",
3276 .user = OCP_USER_MPU | OCP_USER_SDMA,
3277};
3278
90020c7b
A
3279/* l4_per1 -> mcspi1 */
3280static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
3281 .master = &dra7xx_l4_per1_hwmod,
3282 .slave = &dra7xx_mcspi1_hwmod,
3283 .clk = "l3_iclk_div",
3284 .user = OCP_USER_MPU | OCP_USER_SDMA,
3285};
3286
3287/* l4_per1 -> mcspi2 */
3288static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
3289 .master = &dra7xx_l4_per1_hwmod,
3290 .slave = &dra7xx_mcspi2_hwmod,
3291 .clk = "l3_iclk_div",
3292 .user = OCP_USER_MPU | OCP_USER_SDMA,
3293};
3294
3295/* l4_per1 -> mcspi3 */
3296static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
3297 .master = &dra7xx_l4_per1_hwmod,
3298 .slave = &dra7xx_mcspi3_hwmod,
3299 .clk = "l3_iclk_div",
3300 .user = OCP_USER_MPU | OCP_USER_SDMA,
3301};
3302
3303/* l4_per1 -> mcspi4 */
3304static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
3305 .master = &dra7xx_l4_per1_hwmod,
3306 .slave = &dra7xx_mcspi4_hwmod,
3307 .clk = "l3_iclk_div",
3308 .user = OCP_USER_MPU | OCP_USER_SDMA,
3309};
3310
3311/* l4_per1 -> mmc1 */
3312static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
3313 .master = &dra7xx_l4_per1_hwmod,
3314 .slave = &dra7xx_mmc1_hwmod,
3315 .clk = "l3_iclk_div",
3316 .user = OCP_USER_MPU | OCP_USER_SDMA,
3317};
3318
3319/* l4_per1 -> mmc2 */
3320static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
3321 .master = &dra7xx_l4_per1_hwmod,
3322 .slave = &dra7xx_mmc2_hwmod,
3323 .clk = "l3_iclk_div",
3324 .user = OCP_USER_MPU | OCP_USER_SDMA,
3325};
3326
3327/* l4_per1 -> mmc3 */
3328static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
3329 .master = &dra7xx_l4_per1_hwmod,
3330 .slave = &dra7xx_mmc3_hwmod,
3331 .clk = "l3_iclk_div",
3332 .user = OCP_USER_MPU | OCP_USER_SDMA,
3333};
3334
3335/* l4_per1 -> mmc4 */
3336static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
3337 .master = &dra7xx_l4_per1_hwmod,
3338 .slave = &dra7xx_mmc4_hwmod,
3339 .clk = "l3_iclk_div",
3340 .user = OCP_USER_MPU | OCP_USER_SDMA,
3341};
3342
3343/* l4_cfg -> mpu */
3344static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
3345 .master = &dra7xx_l4_cfg_hwmod,
3346 .slave = &dra7xx_mpu_hwmod,
3347 .clk = "l3_iclk_div",
3348 .user = OCP_USER_MPU | OCP_USER_SDMA,
3349};
3350
90020c7b
A
3351/* l4_cfg -> ocp2scp1 */
3352static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
3353 .master = &dra7xx_l4_cfg_hwmod,
3354 .slave = &dra7xx_ocp2scp1_hwmod,
3355 .clk = "l4_root_clk_div",
90020c7b
A
3356 .user = OCP_USER_MPU | OCP_USER_SDMA,
3357};
3358
df0d0f11
RQ
3359/* l4_cfg -> ocp2scp3 */
3360static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
3361 .master = &dra7xx_l4_cfg_hwmod,
3362 .slave = &dra7xx_ocp2scp3_hwmod,
3363 .clk = "l4_root_clk_div",
3364 .user = OCP_USER_MPU | OCP_USER_SDMA,
3365};
3366
0717103e
KVA
3367/* l3_main_1 -> pciess1 */
3368static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
8dd3eb71 3369 .master = &dra7xx_l3_main_1_hwmod,
0717103e 3370 .slave = &dra7xx_pciess1_hwmod,
8dd3eb71
KVA
3371 .clk = "l3_iclk_div",
3372 .user = OCP_USER_MPU | OCP_USER_SDMA,
3373};
3374
0717103e
KVA
3375/* l4_cfg -> pciess1 */
3376static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
8dd3eb71 3377 .master = &dra7xx_l4_cfg_hwmod,
0717103e 3378 .slave = &dra7xx_pciess1_hwmod,
8dd3eb71
KVA
3379 .clk = "l4_root_clk_div",
3380 .user = OCP_USER_MPU | OCP_USER_SDMA,
3381};
3382
0717103e
KVA
3383/* l3_main_1 -> pciess2 */
3384static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
8dd3eb71 3385 .master = &dra7xx_l3_main_1_hwmod,
0717103e 3386 .slave = &dra7xx_pciess2_hwmod,
8dd3eb71
KVA
3387 .clk = "l3_iclk_div",
3388 .user = OCP_USER_MPU | OCP_USER_SDMA,
3389};
3390
0717103e
KVA
3391/* l4_cfg -> pciess2 */
3392static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
70c18ef7 3393 .master = &dra7xx_l4_cfg_hwmod,
0717103e 3394 .slave = &dra7xx_pciess2_hwmod,
70c18ef7
KVA
3395 .clk = "l4_root_clk_div",
3396 .user = OCP_USER_MPU | OCP_USER_SDMA,
3397};
3398
90020c7b
A
3399static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
3400 {
3401 .pa_start = 0x4b300000,
3402 .pa_end = 0x4b30007f,
3403 .flags = ADDR_TYPE_RT
3404 },
3405 { }
3406};
3407
3408/* l3_main_1 -> qspi */
3409static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
3410 .master = &dra7xx_l3_main_1_hwmod,
3411 .slave = &dra7xx_qspi_hwmod,
3412 .clk = "l3_iclk_div",
3413 .addr = dra7xx_qspi_addrs,
3414 .user = OCP_USER_MPU | OCP_USER_SDMA,
3415};
3416
c913c8a1
LV
3417/* l4_per3 -> rtcss */
3418static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
3419 .master = &dra7xx_l4_per3_hwmod,
3420 .slave = &dra7xx_rtcss_hwmod,
3421 .clk = "l4_root_clk_div",
3422 .user = OCP_USER_MPU | OCP_USER_SDMA,
3423};
3424
90020c7b
A
3425static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
3426 {
3427 .name = "sysc",
3428 .pa_start = 0x4a141100,
3429 .pa_end = 0x4a141107,
3430 .flags = ADDR_TYPE_RT
3431 },
3432 { }
3433};
3434
3435/* l4_cfg -> sata */
3436static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
3437 .master = &dra7xx_l4_cfg_hwmod,
3438 .slave = &dra7xx_sata_hwmod,
3439 .clk = "l3_iclk_div",
3440 .addr = dra7xx_sata_addrs,
3441 .user = OCP_USER_MPU | OCP_USER_SDMA,
3442};
3443
3444static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
3445 {
3446 .pa_start = 0x4a0dd000,
3447 .pa_end = 0x4a0dd07f,
3448 .flags = ADDR_TYPE_RT
3449 },
3450 { }
3451};
3452
3453/* l4_cfg -> smartreflex_core */
3454static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
3455 .master = &dra7xx_l4_cfg_hwmod,
3456 .slave = &dra7xx_smartreflex_core_hwmod,
3457 .clk = "l4_root_clk_div",
3458 .addr = dra7xx_smartreflex_core_addrs,
3459 .user = OCP_USER_MPU | OCP_USER_SDMA,
3460};
3461
3462static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
3463 {
3464 .pa_start = 0x4a0d9000,
3465 .pa_end = 0x4a0d907f,
3466 .flags = ADDR_TYPE_RT
3467 },
3468 { }
3469};
3470
3471/* l4_cfg -> smartreflex_mpu */
3472static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
3473 .master = &dra7xx_l4_cfg_hwmod,
3474 .slave = &dra7xx_smartreflex_mpu_hwmod,
3475 .clk = "l4_root_clk_div",
3476 .addr = dra7xx_smartreflex_mpu_addrs,
3477 .user = OCP_USER_MPU | OCP_USER_SDMA,
3478};
3479
90020c7b
A
3480/* l4_cfg -> spinlock */
3481static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
3482 .master = &dra7xx_l4_cfg_hwmod,
3483 .slave = &dra7xx_spinlock_hwmod,
3484 .clk = "l3_iclk_div",
90020c7b
A
3485 .user = OCP_USER_MPU | OCP_USER_SDMA,
3486};
3487
3488/* l4_wkup -> timer1 */
3489static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
3490 .master = &dra7xx_l4_wkup_hwmod,
3491 .slave = &dra7xx_timer1_hwmod,
3492 .clk = "wkupaon_iclk_mux",
3493 .user = OCP_USER_MPU | OCP_USER_SDMA,
3494};
3495
3496/* l4_per1 -> timer2 */
3497static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
3498 .master = &dra7xx_l4_per1_hwmod,
3499 .slave = &dra7xx_timer2_hwmod,
3500 .clk = "l3_iclk_div",
3501 .user = OCP_USER_MPU | OCP_USER_SDMA,
3502};
3503
3504/* l4_per1 -> timer3 */
3505static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
3506 .master = &dra7xx_l4_per1_hwmod,
3507 .slave = &dra7xx_timer3_hwmod,
3508 .clk = "l3_iclk_div",
3509 .user = OCP_USER_MPU | OCP_USER_SDMA,
3510};
3511
3512/* l4_per1 -> timer4 */
3513static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
3514 .master = &dra7xx_l4_per1_hwmod,
3515 .slave = &dra7xx_timer4_hwmod,
3516 .clk = "l3_iclk_div",
3517 .user = OCP_USER_MPU | OCP_USER_SDMA,
3518};
3519
3520/* l4_per3 -> timer5 */
3521static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
3522 .master = &dra7xx_l4_per3_hwmod,
3523 .slave = &dra7xx_timer5_hwmod,
3524 .clk = "l3_iclk_div",
3525 .user = OCP_USER_MPU | OCP_USER_SDMA,
3526};
3527
3528/* l4_per3 -> timer6 */
3529static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
3530 .master = &dra7xx_l4_per3_hwmod,
3531 .slave = &dra7xx_timer6_hwmod,
3532 .clk = "l3_iclk_div",
3533 .user = OCP_USER_MPU | OCP_USER_SDMA,
3534};
3535
3536/* l4_per3 -> timer7 */
3537static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
3538 .master = &dra7xx_l4_per3_hwmod,
3539 .slave = &dra7xx_timer7_hwmod,
3540 .clk = "l3_iclk_div",
3541 .user = OCP_USER_MPU | OCP_USER_SDMA,
3542};
3543
3544/* l4_per3 -> timer8 */
3545static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
3546 .master = &dra7xx_l4_per3_hwmod,
3547 .slave = &dra7xx_timer8_hwmod,
3548 .clk = "l3_iclk_div",
3549 .user = OCP_USER_MPU | OCP_USER_SDMA,
3550};
3551
3552/* l4_per1 -> timer9 */
3553static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
3554 .master = &dra7xx_l4_per1_hwmod,
3555 .slave = &dra7xx_timer9_hwmod,
3556 .clk = "l3_iclk_div",
3557 .user = OCP_USER_MPU | OCP_USER_SDMA,
3558};
3559
3560/* l4_per1 -> timer10 */
3561static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
3562 .master = &dra7xx_l4_per1_hwmod,
3563 .slave = &dra7xx_timer10_hwmod,
3564 .clk = "l3_iclk_div",
3565 .user = OCP_USER_MPU | OCP_USER_SDMA,
3566};
3567
3568/* l4_per1 -> timer11 */
3569static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
3570 .master = &dra7xx_l4_per1_hwmod,
3571 .slave = &dra7xx_timer11_hwmod,
3572 .clk = "l3_iclk_div",
3573 .user = OCP_USER_MPU | OCP_USER_SDMA,
3574};
3575
1ac964f4
SA
3576/* l4_per3 -> timer13 */
3577static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
3578 .master = &dra7xx_l4_per3_hwmod,
3579 .slave = &dra7xx_timer13_hwmod,
3580 .clk = "l3_iclk_div",
3581 .user = OCP_USER_MPU | OCP_USER_SDMA,
3582};
3583
3584/* l4_per3 -> timer14 */
3585static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
3586 .master = &dra7xx_l4_per3_hwmod,
3587 .slave = &dra7xx_timer14_hwmod,
3588 .clk = "l3_iclk_div",
3589 .user = OCP_USER_MPU | OCP_USER_SDMA,
3590};
3591
3592/* l4_per3 -> timer15 */
3593static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
3594 .master = &dra7xx_l4_per3_hwmod,
3595 .slave = &dra7xx_timer15_hwmod,
3596 .clk = "l3_iclk_div",
3597 .user = OCP_USER_MPU | OCP_USER_SDMA,
3598};
3599
3600/* l4_per3 -> timer16 */
3601static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
3602 .master = &dra7xx_l4_per3_hwmod,
3603 .slave = &dra7xx_timer16_hwmod,
3604 .clk = "l3_iclk_div",
3605 .user = OCP_USER_MPU | OCP_USER_SDMA,
3606};
3607
90020c7b
A
3608/* l4_per1 -> uart1 */
3609static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
3610 .master = &dra7xx_l4_per1_hwmod,
3611 .slave = &dra7xx_uart1_hwmod,
3612 .clk = "l3_iclk_div",
3613 .user = OCP_USER_MPU | OCP_USER_SDMA,
3614};
3615
3616/* l4_per1 -> uart2 */
3617static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
3618 .master = &dra7xx_l4_per1_hwmod,
3619 .slave = &dra7xx_uart2_hwmod,
3620 .clk = "l3_iclk_div",
3621 .user = OCP_USER_MPU | OCP_USER_SDMA,
3622};
3623
3624/* l4_per1 -> uart3 */
3625static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
3626 .master = &dra7xx_l4_per1_hwmod,
3627 .slave = &dra7xx_uart3_hwmod,
3628 .clk = "l3_iclk_div",
3629 .user = OCP_USER_MPU | OCP_USER_SDMA,
3630};
3631
3632/* l4_per1 -> uart4 */
3633static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
3634 .master = &dra7xx_l4_per1_hwmod,
3635 .slave = &dra7xx_uart4_hwmod,
3636 .clk = "l3_iclk_div",
3637 .user = OCP_USER_MPU | OCP_USER_SDMA,
3638};
3639
3640/* l4_per1 -> uart5 */
3641static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
3642 .master = &dra7xx_l4_per1_hwmod,
3643 .slave = &dra7xx_uart5_hwmod,
3644 .clk = "l3_iclk_div",
3645 .user = OCP_USER_MPU | OCP_USER_SDMA,
3646};
3647
3648/* l4_per1 -> uart6 */
3649static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
3650 .master = &dra7xx_l4_per1_hwmod,
3651 .slave = &dra7xx_uart6_hwmod,
3652 .clk = "l3_iclk_div",
3653 .user = OCP_USER_MPU | OCP_USER_SDMA,
3654};
3655
33acc9ff
A
3656/* l4_per2 -> uart7 */
3657static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
3658 .master = &dra7xx_l4_per2_hwmod,
3659 .slave = &dra7xx_uart7_hwmod,
3660 .clk = "l3_iclk_div",
3661 .user = OCP_USER_MPU | OCP_USER_SDMA,
3662};
3663
3664/* l4_per2 -> uart8 */
3665static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
3666 .master = &dra7xx_l4_per2_hwmod,
3667 .slave = &dra7xx_uart8_hwmod,
3668 .clk = "l3_iclk_div",
3669 .user = OCP_USER_MPU | OCP_USER_SDMA,
3670};
3671
3672/* l4_per2 -> uart9 */
3673static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
3674 .master = &dra7xx_l4_per2_hwmod,
3675 .slave = &dra7xx_uart9_hwmod,
3676 .clk = "l3_iclk_div",
3677 .user = OCP_USER_MPU | OCP_USER_SDMA,
3678};
3679
3680/* l4_wkup -> uart10 */
3681static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
3682 .master = &dra7xx_l4_wkup_hwmod,
3683 .slave = &dra7xx_uart10_hwmod,
3684 .clk = "wkupaon_iclk_mux",
3685 .user = OCP_USER_MPU | OCP_USER_SDMA,
3686};
3687
90020c7b
A
3688/* l4_per3 -> usb_otg_ss1 */
3689static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
3690 .master = &dra7xx_l4_per3_hwmod,
3691 .slave = &dra7xx_usb_otg_ss1_hwmod,
3692 .clk = "dpll_core_h13x2_ck",
3693 .user = OCP_USER_MPU | OCP_USER_SDMA,
3694};
3695
3696/* l4_per3 -> usb_otg_ss2 */
3697static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
3698 .master = &dra7xx_l4_per3_hwmod,
3699 .slave = &dra7xx_usb_otg_ss2_hwmod,
3700 .clk = "dpll_core_h13x2_ck",
3701 .user = OCP_USER_MPU | OCP_USER_SDMA,
3702};
3703
3704/* l4_per3 -> usb_otg_ss3 */
3705static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
3706 .master = &dra7xx_l4_per3_hwmod,
3707 .slave = &dra7xx_usb_otg_ss3_hwmod,
3708 .clk = "dpll_core_h13x2_ck",
3709 .user = OCP_USER_MPU | OCP_USER_SDMA,
3710};
3711
3712/* l4_per3 -> usb_otg_ss4 */
3713static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
3714 .master = &dra7xx_l4_per3_hwmod,
3715 .slave = &dra7xx_usb_otg_ss4_hwmod,
3716 .clk = "dpll_core_h13x2_ck",
3717 .user = OCP_USER_MPU | OCP_USER_SDMA,
3718};
3719
3720/* l3_main_1 -> vcp1 */
3721static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
3722 .master = &dra7xx_l3_main_1_hwmod,
3723 .slave = &dra7xx_vcp1_hwmod,
3724 .clk = "l3_iclk_div",
3725 .user = OCP_USER_MPU | OCP_USER_SDMA,
3726};
3727
3728/* l4_per2 -> vcp1 */
3729static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
3730 .master = &dra7xx_l4_per2_hwmod,
3731 .slave = &dra7xx_vcp1_hwmod,
3732 .clk = "l3_iclk_div",
3733 .user = OCP_USER_MPU | OCP_USER_SDMA,
3734};
3735
3736/* l3_main_1 -> vcp2 */
3737static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
3738 .master = &dra7xx_l3_main_1_hwmod,
3739 .slave = &dra7xx_vcp2_hwmod,
3740 .clk = "l3_iclk_div",
3741 .user = OCP_USER_MPU | OCP_USER_SDMA,
3742};
3743
3744/* l4_per2 -> vcp2 */
3745static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
3746 .master = &dra7xx_l4_per2_hwmod,
3747 .slave = &dra7xx_vcp2_hwmod,
3748 .clk = "l3_iclk_div",
3749 .user = OCP_USER_MPU | OCP_USER_SDMA,
3750};
3751
3752/* l4_wkup -> wd_timer2 */
3753static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
3754 .master = &dra7xx_l4_wkup_hwmod,
3755 .slave = &dra7xx_wd_timer2_hwmod,
3756 .clk = "wkupaon_iclk_mux",
3757 .user = OCP_USER_MPU | OCP_USER_SDMA,
3758};
3759
b05ff3c3
V
3760/* l4_per2 -> epwmss0 */
3761static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0 = {
3762 .master = &dra7xx_l4_per2_hwmod,
3763 .slave = &dra7xx_epwmss0_hwmod,
3764 .clk = "l4_root_clk_div",
3765 .user = OCP_USER_MPU,
3766};
3767
3768/* l4_per2 -> epwmss1 */
3769static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1 = {
3770 .master = &dra7xx_l4_per2_hwmod,
3771 .slave = &dra7xx_epwmss1_hwmod,
3772 .clk = "l4_root_clk_div",
3773 .user = OCP_USER_MPU,
3774};
3775
3776/* l4_per2 -> epwmss2 */
3777static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = {
3778 .master = &dra7xx_l4_per2_hwmod,
3779 .slave = &dra7xx_epwmss2_hwmod,
3780 .clk = "l4_root_clk_div",
3781 .user = OCP_USER_MPU,
3782};
3783
90020c7b 3784static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
42121688 3785 &dra7xx_l3_main_1__dmm,
90020c7b
A
3786 &dra7xx_l3_main_2__l3_instr,
3787 &dra7xx_l4_cfg__l3_main_1,
3788 &dra7xx_mpu__l3_main_1,
3789 &dra7xx_l3_main_1__l3_main_2,
3790 &dra7xx_l4_cfg__l3_main_2,
3791 &dra7xx_l3_main_1__l4_cfg,
3792 &dra7xx_l3_main_1__l4_per1,
3793 &dra7xx_l3_main_1__l4_per2,
3794 &dra7xx_l3_main_1__l4_per3,
3795 &dra7xx_l3_main_1__l4_wkup,
3796 &dra7xx_l4_per2__atl,
3797 &dra7xx_l3_main_1__bb2d,
3798 &dra7xx_l4_wkup__counter_32k,
3799 &dra7xx_l4_wkup__ctrl_module_wkup,
3800 &dra7xx_l4_wkup__dcan1,
3801 &dra7xx_l4_per2__dcan2,
077c42f7 3802 &dra7xx_l4_per2__cpgmac0,
9ad4d9a3
PU
3803 &dra7xx_l4_per2__mcasp1,
3804 &dra7xx_l3_main_1__mcasp1,
3805 &dra7xx_l4_per2__mcasp2,
3806 &dra7xx_l3_main_1__mcasp2,
469689a4
PU
3807 &dra7xx_l4_per2__mcasp3,
3808 &dra7xx_l3_main_1__mcasp3,
9ad4d9a3
PU
3809 &dra7xx_l4_per2__mcasp4,
3810 &dra7xx_l4_per2__mcasp5,
3811 &dra7xx_l4_per2__mcasp6,
3812 &dra7xx_l4_per2__mcasp7,
3813 &dra7xx_l4_per2__mcasp8,
077c42f7 3814 &dra7xx_gmac__mdio,
90020c7b 3815 &dra7xx_l4_cfg__dma_system,
34b4182c
PU
3816 &dra7xx_l3_main_1__tpcc,
3817 &dra7xx_l3_main_1__tptc0,
3818 &dra7xx_l3_main_1__tptc1,
90020c7b
A
3819 &dra7xx_l3_main_1__dss,
3820 &dra7xx_l3_main_1__dispc,
3821 &dra7xx_l3_main_1__hdmi,
3822 &dra7xx_l4_per1__elm,
3823 &dra7xx_l4_wkup__gpio1,
3824 &dra7xx_l4_per1__gpio2,
3825 &dra7xx_l4_per1__gpio3,
3826 &dra7xx_l4_per1__gpio4,
3827 &dra7xx_l4_per1__gpio5,
3828 &dra7xx_l4_per1__gpio6,
3829 &dra7xx_l4_per1__gpio7,
3830 &dra7xx_l4_per1__gpio8,
3831 &dra7xx_l3_main_1__gpmc,
3832 &dra7xx_l4_per1__hdq1w,
3833 &dra7xx_l4_per1__i2c1,
3834 &dra7xx_l4_per1__i2c2,
3835 &dra7xx_l4_per1__i2c3,
3836 &dra7xx_l4_per1__i2c4,
3837 &dra7xx_l4_per1__i2c5,
067395d4
SA
3838 &dra7xx_l4_cfg__mailbox1,
3839 &dra7xx_l4_per3__mailbox2,
3840 &dra7xx_l4_per3__mailbox3,
3841 &dra7xx_l4_per3__mailbox4,
3842 &dra7xx_l4_per3__mailbox5,
3843 &dra7xx_l4_per3__mailbox6,
3844 &dra7xx_l4_per3__mailbox7,
3845 &dra7xx_l4_per3__mailbox8,
3846 &dra7xx_l4_per3__mailbox9,
3847 &dra7xx_l4_per3__mailbox10,
3848 &dra7xx_l4_per3__mailbox11,
3849 &dra7xx_l4_per3__mailbox12,
3850 &dra7xx_l4_per3__mailbox13,
90020c7b
A
3851 &dra7xx_l4_per1__mcspi1,
3852 &dra7xx_l4_per1__mcspi2,
3853 &dra7xx_l4_per1__mcspi3,
3854 &dra7xx_l4_per1__mcspi4,
3855 &dra7xx_l4_per1__mmc1,
3856 &dra7xx_l4_per1__mmc2,
3857 &dra7xx_l4_per1__mmc3,
3858 &dra7xx_l4_per1__mmc4,
3859 &dra7xx_l4_cfg__mpu,
3860 &dra7xx_l4_cfg__ocp2scp1,
df0d0f11 3861 &dra7xx_l4_cfg__ocp2scp3,
0717103e
KVA
3862 &dra7xx_l3_main_1__pciess1,
3863 &dra7xx_l4_cfg__pciess1,
3864 &dra7xx_l3_main_1__pciess2,
3865 &dra7xx_l4_cfg__pciess2,
90020c7b 3866 &dra7xx_l3_main_1__qspi,
c913c8a1 3867 &dra7xx_l4_per3__rtcss,
90020c7b
A
3868 &dra7xx_l4_cfg__sata,
3869 &dra7xx_l4_cfg__smartreflex_core,
3870 &dra7xx_l4_cfg__smartreflex_mpu,
3871 &dra7xx_l4_cfg__spinlock,
3872 &dra7xx_l4_wkup__timer1,
3873 &dra7xx_l4_per1__timer2,
3874 &dra7xx_l4_per1__timer3,
3875 &dra7xx_l4_per1__timer4,
3876 &dra7xx_l4_per3__timer5,
3877 &dra7xx_l4_per3__timer6,
3878 &dra7xx_l4_per3__timer7,
3879 &dra7xx_l4_per3__timer8,
3880 &dra7xx_l4_per1__timer9,
3881 &dra7xx_l4_per1__timer10,
3882 &dra7xx_l4_per1__timer11,
1ac964f4
SA
3883 &dra7xx_l4_per3__timer13,
3884 &dra7xx_l4_per3__timer14,
3885 &dra7xx_l4_per3__timer15,
3886 &dra7xx_l4_per3__timer16,
90020c7b
A
3887 &dra7xx_l4_per1__uart1,
3888 &dra7xx_l4_per1__uart2,
3889 &dra7xx_l4_per1__uart3,
3890 &dra7xx_l4_per1__uart4,
3891 &dra7xx_l4_per1__uart5,
3892 &dra7xx_l4_per1__uart6,
33acc9ff
A
3893 &dra7xx_l4_per2__uart7,
3894 &dra7xx_l4_per2__uart8,
3895 &dra7xx_l4_per2__uart9,
3896 &dra7xx_l4_wkup__uart10,
90020c7b
A
3897 &dra7xx_l4_per3__usb_otg_ss1,
3898 &dra7xx_l4_per3__usb_otg_ss2,
3899 &dra7xx_l4_per3__usb_otg_ss3,
90020c7b
A
3900 &dra7xx_l3_main_1__vcp1,
3901 &dra7xx_l4_per2__vcp1,
3902 &dra7xx_l3_main_1__vcp2,
3903 &dra7xx_l4_per2__vcp2,
3904 &dra7xx_l4_wkup__wd_timer2,
b05ff3c3
V
3905 &dra7xx_l4_per2__epwmss0,
3906 &dra7xx_l4_per2__epwmss1,
3907 &dra7xx_l4_per2__epwmss2,
90020c7b
A
3908 NULL,
3909};
3910
f7f7a29b
RN
3911static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
3912 &dra7xx_l4_per3__usb_otg_ss4,
3913 NULL,
3914};
3915
3916static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
3917 NULL,
3918};
3919
90020c7b
A
3920int __init dra7xx_hwmod_init(void)
3921{
f7f7a29b
RN
3922 int ret;
3923
90020c7b 3924 omap_hwmod_init();
f7f7a29b
RN
3925 ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
3926
3927 if (!ret && soc_is_dra74x())
3928 return omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
3929 else if (!ret && soc_is_dra72x())
3930 return omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
3931
3932 return ret;
90020c7b 3933}
This page took 0.296842 seconds and 5 git commands to generate.