arm: dra7xx: Add hwmod data for pcie1 phy and pcie2 phy
[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>
22#include <linux/power/smartreflex.h>
23#include <linux/i2c-omap.h>
24
25#include <linux/omap-dma.h>
26#include <linux/platform_data/spi-omap2-mcspi.h>
27#include <linux/platform_data/asoc-ti-mcbsp.h>
28#include <plat/dmtimer.h>
29
30#include "omap_hwmod.h"
31#include "omap_hwmod_common_data.h"
32#include "cm1_7xx.h"
33#include "cm2_7xx.h"
34#include "prm7xx.h"
35#include "i2c.h"
36#include "mmc.h"
37#include "wd_timer.h"
38
39/* Base offset for all DRA7XX interrupts external to MPUSS */
40#define DRA7XX_IRQ_GIC_START 32
41
42/* Base offset for all DRA7XX dma requests */
43#define DRA7XX_DMA_REQ_START 1
44
45
46/*
47 * IP blocks
48 */
49
50/*
51 * 'l3' class
52 * instance(s): l3_instr, l3_main_1, l3_main_2
53 */
54static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
55 .name = "l3",
56};
57
58/* l3_instr */
59static struct omap_hwmod dra7xx_l3_instr_hwmod = {
60 .name = "l3_instr",
61 .class = &dra7xx_l3_hwmod_class,
62 .clkdm_name = "l3instr_clkdm",
63 .prcm = {
64 .omap4 = {
65 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
66 .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
67 .modulemode = MODULEMODE_HWCTRL,
68 },
69 },
70};
71
72/* l3_main_1 */
73static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
74 .name = "l3_main_1",
75 .class = &dra7xx_l3_hwmod_class,
76 .clkdm_name = "l3main1_clkdm",
77 .prcm = {
78 .omap4 = {
79 .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
80 .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
81 },
82 },
83};
84
85/* l3_main_2 */
86static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
87 .name = "l3_main_2",
88 .class = &dra7xx_l3_hwmod_class,
89 .clkdm_name = "l3instr_clkdm",
90 .prcm = {
91 .omap4 = {
92 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
93 .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
94 .modulemode = MODULEMODE_HWCTRL,
95 },
96 },
97};
98
99/*
100 * 'l4' class
101 * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
102 */
103static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
104 .name = "l4",
105};
106
107/* l4_cfg */
108static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
109 .name = "l4_cfg",
110 .class = &dra7xx_l4_hwmod_class,
111 .clkdm_name = "l4cfg_clkdm",
112 .prcm = {
113 .omap4 = {
114 .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
115 .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
116 },
117 },
118};
119
120/* l4_per1 */
121static struct omap_hwmod dra7xx_l4_per1_hwmod = {
122 .name = "l4_per1",
123 .class = &dra7xx_l4_hwmod_class,
124 .clkdm_name = "l4per_clkdm",
125 .prcm = {
126 .omap4 = {
127 .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
128 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
129 },
130 },
131};
132
133/* l4_per2 */
134static struct omap_hwmod dra7xx_l4_per2_hwmod = {
135 .name = "l4_per2",
136 .class = &dra7xx_l4_hwmod_class,
137 .clkdm_name = "l4per2_clkdm",
138 .prcm = {
139 .omap4 = {
140 .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
141 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
142 },
143 },
144};
145
146/* l4_per3 */
147static struct omap_hwmod dra7xx_l4_per3_hwmod = {
148 .name = "l4_per3",
149 .class = &dra7xx_l4_hwmod_class,
150 .clkdm_name = "l4per3_clkdm",
151 .prcm = {
152 .omap4 = {
153 .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
154 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
155 },
156 },
157};
158
159/* l4_wkup */
160static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
161 .name = "l4_wkup",
162 .class = &dra7xx_l4_hwmod_class,
163 .clkdm_name = "wkupaon_clkdm",
164 .prcm = {
165 .omap4 = {
166 .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
167 .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
168 },
169 },
170};
171
172/*
173 * 'atl' class
174 *
175 */
176
177static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
178 .name = "atl",
179};
180
181/* atl */
182static struct omap_hwmod dra7xx_atl_hwmod = {
183 .name = "atl",
184 .class = &dra7xx_atl_hwmod_class,
185 .clkdm_name = "atl_clkdm",
186 .main_clk = "atl_gfclk_mux",
187 .prcm = {
188 .omap4 = {
189 .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
190 .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
191 .modulemode = MODULEMODE_SWCTRL,
192 },
193 },
194};
195
196/*
197 * 'bb2d' class
198 *
199 */
200
201static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
202 .name = "bb2d",
203};
204
205/* bb2d */
206static struct omap_hwmod dra7xx_bb2d_hwmod = {
207 .name = "bb2d",
208 .class = &dra7xx_bb2d_hwmod_class,
209 .clkdm_name = "dss_clkdm",
210 .main_clk = "dpll_core_h24x2_ck",
211 .prcm = {
212 .omap4 = {
213 .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
214 .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
215 .modulemode = MODULEMODE_SWCTRL,
216 },
217 },
218};
219
220/*
221 * 'counter' class
222 *
223 */
224
225static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
226 .rev_offs = 0x0000,
227 .sysc_offs = 0x0010,
228 .sysc_flags = SYSC_HAS_SIDLEMODE,
229 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
230 SIDLE_SMART_WKUP),
231 .sysc_fields = &omap_hwmod_sysc_type1,
232};
233
234static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
235 .name = "counter",
236 .sysc = &dra7xx_counter_sysc,
237};
238
239/* counter_32k */
240static struct omap_hwmod dra7xx_counter_32k_hwmod = {
241 .name = "counter_32k",
242 .class = &dra7xx_counter_hwmod_class,
243 .clkdm_name = "wkupaon_clkdm",
244 .flags = HWMOD_SWSUP_SIDLE,
245 .main_clk = "wkupaon_iclk_mux",
246 .prcm = {
247 .omap4 = {
248 .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
249 .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
250 },
251 },
252};
253
254/*
255 * 'ctrl_module' class
256 *
257 */
258
259static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
260 .name = "ctrl_module",
261};
262
263/* ctrl_module_wkup */
264static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
265 .name = "ctrl_module_wkup",
266 .class = &dra7xx_ctrl_module_hwmod_class,
267 .clkdm_name = "wkupaon_clkdm",
268 .prcm = {
269 .omap4 = {
270 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
271 },
272 },
273};
274
275/*
276 * 'dcan' class
277 *
278 */
279
280static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
281 .name = "dcan",
282};
283
284/* dcan1 */
285static struct omap_hwmod dra7xx_dcan1_hwmod = {
286 .name = "dcan1",
287 .class = &dra7xx_dcan_hwmod_class,
288 .clkdm_name = "wkupaon_clkdm",
289 .main_clk = "dcan1_sys_clk_mux",
290 .prcm = {
291 .omap4 = {
292 .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
293 .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
294 .modulemode = MODULEMODE_SWCTRL,
295 },
296 },
297};
298
299/* dcan2 */
300static struct omap_hwmod dra7xx_dcan2_hwmod = {
301 .name = "dcan2",
302 .class = &dra7xx_dcan_hwmod_class,
303 .clkdm_name = "l4per2_clkdm",
304 .main_clk = "sys_clkin1",
305 .prcm = {
306 .omap4 = {
307 .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
308 .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
309 .modulemode = MODULEMODE_SWCTRL,
310 },
311 },
312};
313
314/*
315 * 'dma' class
316 *
317 */
318
319static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
320 .rev_offs = 0x0000,
321 .sysc_offs = 0x002c,
322 .syss_offs = 0x0028,
323 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
324 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
325 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
326 SYSS_HAS_RESET_STATUS),
327 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
328 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
329 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
330 .sysc_fields = &omap_hwmod_sysc_type1,
331};
332
333static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
334 .name = "dma",
335 .sysc = &dra7xx_dma_sysc,
336};
337
338/* dma dev_attr */
339static struct omap_dma_dev_attr dma_dev_attr = {
340 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
341 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
342 .lch_count = 32,
343};
344
345/* dma_system */
346static struct omap_hwmod_irq_info dra7xx_dma_system_irqs[] = {
347 { .name = "0", .irq = 12 + DRA7XX_IRQ_GIC_START },
348 { .name = "1", .irq = 13 + DRA7XX_IRQ_GIC_START },
349 { .name = "2", .irq = 14 + DRA7XX_IRQ_GIC_START },
350 { .name = "3", .irq = 15 + DRA7XX_IRQ_GIC_START },
351 { .irq = -1 }
352};
353
354static struct omap_hwmod dra7xx_dma_system_hwmod = {
355 .name = "dma_system",
356 .class = &dra7xx_dma_hwmod_class,
357 .clkdm_name = "dma_clkdm",
358 .mpu_irqs = dra7xx_dma_system_irqs,
359 .main_clk = "l3_iclk_div",
360 .prcm = {
361 .omap4 = {
362 .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
363 .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
364 },
365 },
366 .dev_attr = &dma_dev_attr,
367};
368
369/*
370 * 'dss' class
371 *
372 */
373
374static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
375 .rev_offs = 0x0000,
376 .syss_offs = 0x0014,
377 .sysc_flags = SYSS_HAS_RESET_STATUS,
378};
379
380static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
381 .name = "dss",
382 .sysc = &dra7xx_dss_sysc,
383 .reset = omap_dss_reset,
384};
385
386/* dss */
387static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
388 { .dma_req = 75 + DRA7XX_DMA_REQ_START },
389 { .dma_req = -1 }
390};
391
392static struct omap_hwmod_opt_clk dss_opt_clks[] = {
393 { .role = "dss_clk", .clk = "dss_dss_clk" },
394 { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
395 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
396 { .role = "video2_clk", .clk = "dss_video2_clk" },
397 { .role = "video1_clk", .clk = "dss_video1_clk" },
398 { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
399};
400
401static struct omap_hwmod dra7xx_dss_hwmod = {
402 .name = "dss_core",
403 .class = &dra7xx_dss_hwmod_class,
404 .clkdm_name = "dss_clkdm",
405 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
406 .sdma_reqs = dra7xx_dss_sdma_reqs,
407 .main_clk = "dss_dss_clk",
408 .prcm = {
409 .omap4 = {
410 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
411 .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
412 .modulemode = MODULEMODE_SWCTRL,
413 },
414 },
415 .opt_clks = dss_opt_clks,
416 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
417};
418
419/*
420 * 'dispc' class
421 * display controller
422 */
423
424static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
425 .rev_offs = 0x0000,
426 .sysc_offs = 0x0010,
427 .syss_offs = 0x0014,
428 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
429 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
430 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
431 SYSS_HAS_RESET_STATUS),
432 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
433 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
434 .sysc_fields = &omap_hwmod_sysc_type1,
435};
436
437static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
438 .name = "dispc",
439 .sysc = &dra7xx_dispc_sysc,
440};
441
442/* dss_dispc */
443/* dss_dispc dev_attr */
444static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
445 .has_framedonetv_irq = 1,
446 .manager_count = 4,
447};
448
449static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
450 .name = "dss_dispc",
451 .class = &dra7xx_dispc_hwmod_class,
452 .clkdm_name = "dss_clkdm",
453 .main_clk = "dss_dss_clk",
454 .prcm = {
455 .omap4 = {
456 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
457 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
458 },
459 },
460 .dev_attr = &dss_dispc_dev_attr,
461};
462
463/*
464 * 'hdmi' class
465 * hdmi controller
466 */
467
468static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
469 .rev_offs = 0x0000,
470 .sysc_offs = 0x0010,
471 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
472 SYSC_HAS_SOFTRESET),
473 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
474 SIDLE_SMART_WKUP),
475 .sysc_fields = &omap_hwmod_sysc_type2,
476};
477
478static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
479 .name = "hdmi",
480 .sysc = &dra7xx_hdmi_sysc,
481};
482
483/* dss_hdmi */
484
485static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
486 { .role = "sys_clk", .clk = "dss_hdmi_clk" },
487};
488
489static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
490 .name = "dss_hdmi",
491 .class = &dra7xx_hdmi_hwmod_class,
492 .clkdm_name = "dss_clkdm",
493 .main_clk = "dss_48mhz_clk",
494 .prcm = {
495 .omap4 = {
496 .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
497 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
498 },
499 },
500 .opt_clks = dss_hdmi_opt_clks,
501 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
502};
503
504/*
505 * 'elm' class
506 *
507 */
508
509static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
510 .rev_offs = 0x0000,
511 .sysc_offs = 0x0010,
512 .syss_offs = 0x0014,
513 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
514 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
515 SYSS_HAS_RESET_STATUS),
516 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
517 SIDLE_SMART_WKUP),
518 .sysc_fields = &omap_hwmod_sysc_type1,
519};
520
521static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
522 .name = "elm",
523 .sysc = &dra7xx_elm_sysc,
524};
525
526/* elm */
527
528static struct omap_hwmod dra7xx_elm_hwmod = {
529 .name = "elm",
530 .class = &dra7xx_elm_hwmod_class,
531 .clkdm_name = "l4per_clkdm",
532 .main_clk = "l3_iclk_div",
533 .prcm = {
534 .omap4 = {
535 .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
536 .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
537 },
538 },
539};
540
541/*
542 * 'gpio' class
543 *
544 */
545
546static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
547 .rev_offs = 0x0000,
548 .sysc_offs = 0x0010,
549 .syss_offs = 0x0114,
550 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
551 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
552 SYSS_HAS_RESET_STATUS),
553 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
554 SIDLE_SMART_WKUP),
555 .sysc_fields = &omap_hwmod_sysc_type1,
556};
557
558static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
559 .name = "gpio",
560 .sysc = &dra7xx_gpio_sysc,
561 .rev = 2,
562};
563
564/* gpio dev_attr */
565static struct omap_gpio_dev_attr gpio_dev_attr = {
566 .bank_width = 32,
567 .dbck_flag = true,
568};
569
570/* gpio1 */
571static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
572 { .role = "dbclk", .clk = "gpio1_dbclk" },
573};
574
575static struct omap_hwmod dra7xx_gpio1_hwmod = {
576 .name = "gpio1",
577 .class = &dra7xx_gpio_hwmod_class,
578 .clkdm_name = "wkupaon_clkdm",
579 .main_clk = "wkupaon_iclk_mux",
580 .prcm = {
581 .omap4 = {
582 .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
583 .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
584 .modulemode = MODULEMODE_HWCTRL,
585 },
586 },
587 .opt_clks = gpio1_opt_clks,
588 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
589 .dev_attr = &gpio_dev_attr,
590};
591
592/* gpio2 */
593static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
594 { .role = "dbclk", .clk = "gpio2_dbclk" },
595};
596
597static struct omap_hwmod dra7xx_gpio2_hwmod = {
598 .name = "gpio2",
599 .class = &dra7xx_gpio_hwmod_class,
600 .clkdm_name = "l4per_clkdm",
601 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
602 .main_clk = "l3_iclk_div",
603 .prcm = {
604 .omap4 = {
605 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
606 .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
607 .modulemode = MODULEMODE_HWCTRL,
608 },
609 },
610 .opt_clks = gpio2_opt_clks,
611 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
612 .dev_attr = &gpio_dev_attr,
613};
614
615/* gpio3 */
616static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
617 { .role = "dbclk", .clk = "gpio3_dbclk" },
618};
619
620static struct omap_hwmod dra7xx_gpio3_hwmod = {
621 .name = "gpio3",
622 .class = &dra7xx_gpio_hwmod_class,
623 .clkdm_name = "l4per_clkdm",
624 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
625 .main_clk = "l3_iclk_div",
626 .prcm = {
627 .omap4 = {
628 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
629 .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
630 .modulemode = MODULEMODE_HWCTRL,
631 },
632 },
633 .opt_clks = gpio3_opt_clks,
634 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
635 .dev_attr = &gpio_dev_attr,
636};
637
638/* gpio4 */
639static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
640 { .role = "dbclk", .clk = "gpio4_dbclk" },
641};
642
643static struct omap_hwmod dra7xx_gpio4_hwmod = {
644 .name = "gpio4",
645 .class = &dra7xx_gpio_hwmod_class,
646 .clkdm_name = "l4per_clkdm",
647 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
648 .main_clk = "l3_iclk_div",
649 .prcm = {
650 .omap4 = {
651 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
652 .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
653 .modulemode = MODULEMODE_HWCTRL,
654 },
655 },
656 .opt_clks = gpio4_opt_clks,
657 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
658 .dev_attr = &gpio_dev_attr,
659};
660
661/* gpio5 */
662static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
663 { .role = "dbclk", .clk = "gpio5_dbclk" },
664};
665
666static struct omap_hwmod dra7xx_gpio5_hwmod = {
667 .name = "gpio5",
668 .class = &dra7xx_gpio_hwmod_class,
669 .clkdm_name = "l4per_clkdm",
670 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
671 .main_clk = "l3_iclk_div",
672 .prcm = {
673 .omap4 = {
674 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
675 .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
676 .modulemode = MODULEMODE_HWCTRL,
677 },
678 },
679 .opt_clks = gpio5_opt_clks,
680 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
681 .dev_attr = &gpio_dev_attr,
682};
683
684/* gpio6 */
685static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
686 { .role = "dbclk", .clk = "gpio6_dbclk" },
687};
688
689static struct omap_hwmod dra7xx_gpio6_hwmod = {
690 .name = "gpio6",
691 .class = &dra7xx_gpio_hwmod_class,
692 .clkdm_name = "l4per_clkdm",
693 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
694 .main_clk = "l3_iclk_div",
695 .prcm = {
696 .omap4 = {
697 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
698 .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
699 .modulemode = MODULEMODE_HWCTRL,
700 },
701 },
702 .opt_clks = gpio6_opt_clks,
703 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
704 .dev_attr = &gpio_dev_attr,
705};
706
707/* gpio7 */
708static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
709 { .role = "dbclk", .clk = "gpio7_dbclk" },
710};
711
712static struct omap_hwmod dra7xx_gpio7_hwmod = {
713 .name = "gpio7",
714 .class = &dra7xx_gpio_hwmod_class,
715 .clkdm_name = "l4per_clkdm",
716 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
717 .main_clk = "l3_iclk_div",
718 .prcm = {
719 .omap4 = {
720 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
721 .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
722 .modulemode = MODULEMODE_HWCTRL,
723 },
724 },
725 .opt_clks = gpio7_opt_clks,
726 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
727 .dev_attr = &gpio_dev_attr,
728};
729
730/* gpio8 */
731static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
732 { .role = "dbclk", .clk = "gpio8_dbclk" },
733};
734
735static struct omap_hwmod dra7xx_gpio8_hwmod = {
736 .name = "gpio8",
737 .class = &dra7xx_gpio_hwmod_class,
738 .clkdm_name = "l4per_clkdm",
739 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
740 .main_clk = "l3_iclk_div",
741 .prcm = {
742 .omap4 = {
743 .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
744 .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
745 .modulemode = MODULEMODE_HWCTRL,
746 },
747 },
748 .opt_clks = gpio8_opt_clks,
749 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
750 .dev_attr = &gpio_dev_attr,
751};
752
753/*
754 * 'gpmc' class
755 *
756 */
757
758static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
759 .rev_offs = 0x0000,
760 .sysc_offs = 0x0010,
761 .syss_offs = 0x0014,
762 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
763 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
764 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
765 SIDLE_SMART_WKUP),
766 .sysc_fields = &omap_hwmod_sysc_type1,
767};
768
769static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
770 .name = "gpmc",
771 .sysc = &dra7xx_gpmc_sysc,
772};
773
774/* gpmc */
775
776static struct omap_hwmod dra7xx_gpmc_hwmod = {
777 .name = "gpmc",
778 .class = &dra7xx_gpmc_hwmod_class,
779 .clkdm_name = "l3main1_clkdm",
780 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
781 .main_clk = "l3_iclk_div",
782 .prcm = {
783 .omap4 = {
784 .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
785 .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
786 .modulemode = MODULEMODE_HWCTRL,
787 },
788 },
789};
790
791/*
792 * 'hdq1w' class
793 *
794 */
795
796static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
797 .rev_offs = 0x0000,
798 .sysc_offs = 0x0014,
799 .syss_offs = 0x0018,
800 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
801 SYSS_HAS_RESET_STATUS),
802 .sysc_fields = &omap_hwmod_sysc_type1,
803};
804
805static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
806 .name = "hdq1w",
807 .sysc = &dra7xx_hdq1w_sysc,
808};
809
810/* hdq1w */
811
812static struct omap_hwmod dra7xx_hdq1w_hwmod = {
813 .name = "hdq1w",
814 .class = &dra7xx_hdq1w_hwmod_class,
815 .clkdm_name = "l4per_clkdm",
816 .flags = HWMOD_INIT_NO_RESET,
817 .main_clk = "func_12m_fclk",
818 .prcm = {
819 .omap4 = {
820 .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
821 .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
822 .modulemode = MODULEMODE_SWCTRL,
823 },
824 },
825};
826
827/*
828 * 'i2c' class
829 *
830 */
831
832static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
833 .sysc_offs = 0x0010,
834 .syss_offs = 0x0090,
835 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
836 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
837 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
838 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
839 SIDLE_SMART_WKUP),
840 .clockact = CLOCKACT_TEST_ICLK,
841 .sysc_fields = &omap_hwmod_sysc_type1,
842};
843
844static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
845 .name = "i2c",
846 .sysc = &dra7xx_i2c_sysc,
847 .reset = &omap_i2c_reset,
848 .rev = OMAP_I2C_IP_VERSION_2,
849};
850
851/* i2c dev_attr */
852static struct omap_i2c_dev_attr i2c_dev_attr = {
853 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
854};
855
856/* i2c1 */
857static struct omap_hwmod dra7xx_i2c1_hwmod = {
858 .name = "i2c1",
859 .class = &dra7xx_i2c_hwmod_class,
860 .clkdm_name = "l4per_clkdm",
861 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
862 .main_clk = "func_96m_fclk",
863 .prcm = {
864 .omap4 = {
865 .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
866 .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
867 .modulemode = MODULEMODE_SWCTRL,
868 },
869 },
870 .dev_attr = &i2c_dev_attr,
871};
872
873/* i2c2 */
874static struct omap_hwmod dra7xx_i2c2_hwmod = {
875 .name = "i2c2",
876 .class = &dra7xx_i2c_hwmod_class,
877 .clkdm_name = "l4per_clkdm",
878 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
879 .main_clk = "func_96m_fclk",
880 .prcm = {
881 .omap4 = {
882 .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
883 .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
884 .modulemode = MODULEMODE_SWCTRL,
885 },
886 },
887 .dev_attr = &i2c_dev_attr,
888};
889
890/* i2c3 */
891static struct omap_hwmod dra7xx_i2c3_hwmod = {
892 .name = "i2c3",
893 .class = &dra7xx_i2c_hwmod_class,
894 .clkdm_name = "l4per_clkdm",
895 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
896 .main_clk = "func_96m_fclk",
897 .prcm = {
898 .omap4 = {
899 .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
900 .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
901 .modulemode = MODULEMODE_SWCTRL,
902 },
903 },
904 .dev_attr = &i2c_dev_attr,
905};
906
907/* i2c4 */
908static struct omap_hwmod dra7xx_i2c4_hwmod = {
909 .name = "i2c4",
910 .class = &dra7xx_i2c_hwmod_class,
911 .clkdm_name = "l4per_clkdm",
912 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
913 .main_clk = "func_96m_fclk",
914 .prcm = {
915 .omap4 = {
916 .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
917 .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
918 .modulemode = MODULEMODE_SWCTRL,
919 },
920 },
921 .dev_attr = &i2c_dev_attr,
922};
923
924/* i2c5 */
925static struct omap_hwmod dra7xx_i2c5_hwmod = {
926 .name = "i2c5",
927 .class = &dra7xx_i2c_hwmod_class,
928 .clkdm_name = "ipu_clkdm",
929 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
930 .main_clk = "func_96m_fclk",
931 .prcm = {
932 .omap4 = {
933 .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
934 .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
935 .modulemode = MODULEMODE_SWCTRL,
936 },
937 },
938 .dev_attr = &i2c_dev_attr,
939};
940
941/*
942 * 'mcspi' class
943 *
944 */
945
946static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
947 .rev_offs = 0x0000,
948 .sysc_offs = 0x0010,
949 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
950 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
951 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
952 SIDLE_SMART_WKUP),
953 .sysc_fields = &omap_hwmod_sysc_type2,
954};
955
956static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
957 .name = "mcspi",
958 .sysc = &dra7xx_mcspi_sysc,
959 .rev = OMAP4_MCSPI_REV,
960};
961
962/* mcspi1 */
963/* mcspi1 dev_attr */
964static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
965 .num_chipselect = 4,
966};
967
968static struct omap_hwmod dra7xx_mcspi1_hwmod = {
969 .name = "mcspi1",
970 .class = &dra7xx_mcspi_hwmod_class,
971 .clkdm_name = "l4per_clkdm",
972 .main_clk = "func_48m_fclk",
973 .prcm = {
974 .omap4 = {
975 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
976 .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
977 .modulemode = MODULEMODE_SWCTRL,
978 },
979 },
980 .dev_attr = &mcspi1_dev_attr,
981};
982
983/* mcspi2 */
984/* mcspi2 dev_attr */
985static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
986 .num_chipselect = 2,
987};
988
989static struct omap_hwmod dra7xx_mcspi2_hwmod = {
990 .name = "mcspi2",
991 .class = &dra7xx_mcspi_hwmod_class,
992 .clkdm_name = "l4per_clkdm",
993 .main_clk = "func_48m_fclk",
994 .prcm = {
995 .omap4 = {
996 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
997 .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
998 .modulemode = MODULEMODE_SWCTRL,
999 },
1000 },
1001 .dev_attr = &mcspi2_dev_attr,
1002};
1003
1004/* mcspi3 */
1005/* mcspi3 dev_attr */
1006static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1007 .num_chipselect = 2,
1008};
1009
1010static struct omap_hwmod dra7xx_mcspi3_hwmod = {
1011 .name = "mcspi3",
1012 .class = &dra7xx_mcspi_hwmod_class,
1013 .clkdm_name = "l4per_clkdm",
1014 .main_clk = "func_48m_fclk",
1015 .prcm = {
1016 .omap4 = {
1017 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1018 .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1019 .modulemode = MODULEMODE_SWCTRL,
1020 },
1021 },
1022 .dev_attr = &mcspi3_dev_attr,
1023};
1024
1025/* mcspi4 */
1026/* mcspi4 dev_attr */
1027static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1028 .num_chipselect = 1,
1029};
1030
1031static struct omap_hwmod dra7xx_mcspi4_hwmod = {
1032 .name = "mcspi4",
1033 .class = &dra7xx_mcspi_hwmod_class,
1034 .clkdm_name = "l4per_clkdm",
1035 .main_clk = "func_48m_fclk",
1036 .prcm = {
1037 .omap4 = {
1038 .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1039 .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1040 .modulemode = MODULEMODE_SWCTRL,
1041 },
1042 },
1043 .dev_attr = &mcspi4_dev_attr,
1044};
1045
1046/*
1047 * 'mmc' class
1048 *
1049 */
1050
1051static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
1052 .rev_offs = 0x0000,
1053 .sysc_offs = 0x0010,
1054 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1055 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1056 SYSC_HAS_SOFTRESET),
1057 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1058 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1059 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1060 .sysc_fields = &omap_hwmod_sysc_type2,
1061};
1062
1063static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
1064 .name = "mmc",
1065 .sysc = &dra7xx_mmc_sysc,
1066};
1067
1068/* mmc1 */
1069static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1070 { .role = "clk32k", .clk = "mmc1_clk32k" },
1071};
1072
1073/* mmc1 dev_attr */
1074static struct omap_mmc_dev_attr mmc1_dev_attr = {
1075 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1076};
1077
1078static struct omap_hwmod dra7xx_mmc1_hwmod = {
1079 .name = "mmc1",
1080 .class = &dra7xx_mmc_hwmod_class,
1081 .clkdm_name = "l3init_clkdm",
1082 .main_clk = "mmc1_fclk_div",
1083 .prcm = {
1084 .omap4 = {
1085 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1086 .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1087 .modulemode = MODULEMODE_SWCTRL,
1088 },
1089 },
1090 .opt_clks = mmc1_opt_clks,
1091 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1092 .dev_attr = &mmc1_dev_attr,
1093};
1094
1095/* mmc2 */
1096static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
1097 { .role = "clk32k", .clk = "mmc2_clk32k" },
1098};
1099
1100static struct omap_hwmod dra7xx_mmc2_hwmod = {
1101 .name = "mmc2",
1102 .class = &dra7xx_mmc_hwmod_class,
1103 .clkdm_name = "l3init_clkdm",
1104 .main_clk = "mmc2_fclk_div",
1105 .prcm = {
1106 .omap4 = {
1107 .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1108 .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1109 .modulemode = MODULEMODE_SWCTRL,
1110 },
1111 },
1112 .opt_clks = mmc2_opt_clks,
1113 .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
1114};
1115
1116/* mmc3 */
1117static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
1118 { .role = "clk32k", .clk = "mmc3_clk32k" },
1119};
1120
1121static struct omap_hwmod dra7xx_mmc3_hwmod = {
1122 .name = "mmc3",
1123 .class = &dra7xx_mmc_hwmod_class,
1124 .clkdm_name = "l4per_clkdm",
1125 .main_clk = "mmc3_gfclk_div",
1126 .prcm = {
1127 .omap4 = {
1128 .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1129 .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1130 .modulemode = MODULEMODE_SWCTRL,
1131 },
1132 },
1133 .opt_clks = mmc3_opt_clks,
1134 .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
1135};
1136
1137/* mmc4 */
1138static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
1139 { .role = "clk32k", .clk = "mmc4_clk32k" },
1140};
1141
1142static struct omap_hwmod dra7xx_mmc4_hwmod = {
1143 .name = "mmc4",
1144 .class = &dra7xx_mmc_hwmod_class,
1145 .clkdm_name = "l4per_clkdm",
1146 .main_clk = "mmc4_gfclk_div",
1147 .prcm = {
1148 .omap4 = {
1149 .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1150 .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1151 .modulemode = MODULEMODE_SWCTRL,
1152 },
1153 },
1154 .opt_clks = mmc4_opt_clks,
1155 .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
1156};
1157
1158/*
1159 * 'mpu' class
1160 *
1161 */
1162
1163static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
1164 .name = "mpu",
1165};
1166
1167/* mpu */
1168static struct omap_hwmod dra7xx_mpu_hwmod = {
1169 .name = "mpu",
1170 .class = &dra7xx_mpu_hwmod_class,
1171 .clkdm_name = "mpu_clkdm",
1172 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1173 .main_clk = "dpll_mpu_m2_ck",
1174 .prcm = {
1175 .omap4 = {
1176 .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1177 .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
1178 },
1179 },
1180};
1181
1182/*
1183 * 'ocp2scp' class
1184 *
1185 */
1186
1187static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
1188 .rev_offs = 0x0000,
1189 .sysc_offs = 0x0010,
1190 .syss_offs = 0x0014,
1191 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1192 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1193 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1194 SIDLE_SMART_WKUP),
1195 .sysc_fields = &omap_hwmod_sysc_type1,
1196};
1197
1198static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
1199 .name = "ocp2scp",
1200 .sysc = &dra7xx_ocp2scp_sysc,
1201};
1202
1203/* ocp2scp1 */
1204static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
1205 .name = "ocp2scp1",
1206 .class = &dra7xx_ocp2scp_hwmod_class,
1207 .clkdm_name = "l3init_clkdm",
1208 .main_clk = "l4_root_clk_div",
1209 .prcm = {
1210 .omap4 = {
1211 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1212 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1213 .modulemode = MODULEMODE_HWCTRL,
1214 },
1215 },
1216};
1217
df0d0f11
RQ
1218/* ocp2scp3 */
1219static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
1220 .name = "ocp2scp3",
1221 .class = &dra7xx_ocp2scp_hwmod_class,
1222 .clkdm_name = "l3init_clkdm",
1223 .main_clk = "l4_root_clk_div",
1224 .prcm = {
1225 .omap4 = {
1226 .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
1227 .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
1228 .modulemode = MODULEMODE_HWCTRL,
1229 },
1230 },
1231};
1232
70c18ef7
KVA
1233/*
1234 * 'PCIE PHY' class
1235 *
1236 */
1237
1238static struct omap_hwmod_class dra7xx_pcie_phy_hwmod_class = {
1239 .name = "pcie-phy",
1240};
1241
1242/* pcie1 phy */
1243static struct omap_hwmod dra7xx_pcie1_phy_hwmod = {
1244 .name = "pcie1-phy",
1245 .class = &dra7xx_pcie_phy_hwmod_class,
1246 .clkdm_name = "l3init_clkdm",
1247 .main_clk = "l4_root_clk_div",
1248 .prcm = {
1249 .omap4 = {
1250 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
1251 .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
1252 .modulemode = MODULEMODE_SWCTRL,
1253 },
1254 },
1255};
1256
1257/* pcie2 phy */
1258static struct omap_hwmod dra7xx_pcie2_phy_hwmod = {
1259 .name = "pcie2-phy",
1260 .class = &dra7xx_pcie_phy_hwmod_class,
1261 .clkdm_name = "l3init_clkdm",
1262 .main_clk = "l4_root_clk_div",
1263 .prcm = {
1264 .omap4 = {
1265 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
1266 .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
1267 .modulemode = MODULEMODE_SWCTRL,
1268 },
1269 },
1270};
1271
90020c7b
A
1272/*
1273 * 'qspi' class
1274 *
1275 */
1276
1277static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
1278 .sysc_offs = 0x0010,
1279 .sysc_flags = SYSC_HAS_SIDLEMODE,
1280 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1281 SIDLE_SMART_WKUP),
1282 .sysc_fields = &omap_hwmod_sysc_type2,
1283};
1284
1285static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
1286 .name = "qspi",
1287 .sysc = &dra7xx_qspi_sysc,
1288};
1289
1290/* qspi */
1291static struct omap_hwmod dra7xx_qspi_hwmod = {
1292 .name = "qspi",
1293 .class = &dra7xx_qspi_hwmod_class,
1294 .clkdm_name = "l4per2_clkdm",
1295 .main_clk = "qspi_gfclk_div",
1296 .prcm = {
1297 .omap4 = {
1298 .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
1299 .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
1300 .modulemode = MODULEMODE_SWCTRL,
1301 },
1302 },
1303};
1304
1305/*
1306 * 'sata' class
1307 *
1308 */
1309
1310static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
1311 .sysc_offs = 0x0000,
1312 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1313 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1314 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1315 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1316 .sysc_fields = &omap_hwmod_sysc_type2,
1317};
1318
1319static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
1320 .name = "sata",
1321 .sysc = &dra7xx_sata_sysc,
1322};
1323
1324/* sata */
1325static struct omap_hwmod_opt_clk sata_opt_clks[] = {
1326 { .role = "ref_clk", .clk = "sata_ref_clk" },
1327};
1328
1329static struct omap_hwmod dra7xx_sata_hwmod = {
1330 .name = "sata",
1331 .class = &dra7xx_sata_hwmod_class,
1332 .clkdm_name = "l3init_clkdm",
1333 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1334 .main_clk = "func_48m_fclk",
1335 .prcm = {
1336 .omap4 = {
1337 .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
1338 .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
1339 .modulemode = MODULEMODE_SWCTRL,
1340 },
1341 },
1342 .opt_clks = sata_opt_clks,
1343 .opt_clks_cnt = ARRAY_SIZE(sata_opt_clks),
1344};
1345
1346/*
1347 * 'smartreflex' class
1348 *
1349 */
1350
1351/* The IP is not compliant to type1 / type2 scheme */
1352static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1353 .sidle_shift = 24,
1354 .enwkup_shift = 26,
1355};
1356
1357static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
1358 .sysc_offs = 0x0038,
1359 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1360 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1361 SIDLE_SMART_WKUP),
1362 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
1363};
1364
1365static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
1366 .name = "smartreflex",
1367 .sysc = &dra7xx_smartreflex_sysc,
1368 .rev = 2,
1369};
1370
1371/* smartreflex_core */
1372/* smartreflex_core dev_attr */
1373static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
1374 .sensor_voltdm_name = "core",
1375};
1376
1377static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
1378 .name = "smartreflex_core",
1379 .class = &dra7xx_smartreflex_hwmod_class,
1380 .clkdm_name = "coreaon_clkdm",
1381 .main_clk = "wkupaon_iclk_mux",
1382 .prcm = {
1383 .omap4 = {
1384 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
1385 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
1386 .modulemode = MODULEMODE_SWCTRL,
1387 },
1388 },
1389 .dev_attr = &smartreflex_core_dev_attr,
1390};
1391
1392/* smartreflex_mpu */
1393/* smartreflex_mpu dev_attr */
1394static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
1395 .sensor_voltdm_name = "mpu",
1396};
1397
1398static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
1399 .name = "smartreflex_mpu",
1400 .class = &dra7xx_smartreflex_hwmod_class,
1401 .clkdm_name = "coreaon_clkdm",
1402 .main_clk = "wkupaon_iclk_mux",
1403 .prcm = {
1404 .omap4 = {
1405 .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
1406 .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
1407 .modulemode = MODULEMODE_SWCTRL,
1408 },
1409 },
1410 .dev_attr = &smartreflex_mpu_dev_attr,
1411};
1412
1413/*
1414 * 'spinlock' class
1415 *
1416 */
1417
1418static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
1419 .rev_offs = 0x0000,
1420 .sysc_offs = 0x0010,
1421 .syss_offs = 0x0014,
c317d0f2
SA
1422 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1423 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1424 SYSS_HAS_RESET_STATUS),
1425 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
90020c7b
A
1426 .sysc_fields = &omap_hwmod_sysc_type1,
1427};
1428
1429static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
1430 .name = "spinlock",
1431 .sysc = &dra7xx_spinlock_sysc,
1432};
1433
1434/* spinlock */
1435static struct omap_hwmod dra7xx_spinlock_hwmod = {
1436 .name = "spinlock",
1437 .class = &dra7xx_spinlock_hwmod_class,
1438 .clkdm_name = "l4cfg_clkdm",
1439 .main_clk = "l3_iclk_div",
1440 .prcm = {
1441 .omap4 = {
1442 .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
1443 .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
1444 },
1445 },
1446};
1447
1448/*
1449 * 'timer' class
1450 *
1451 * This class contains several variants: ['timer_1ms', 'timer_secure',
1452 * 'timer']
1453 */
1454
1455static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
1456 .rev_offs = 0x0000,
1457 .sysc_offs = 0x0010,
1458 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1459 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1460 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1461 SIDLE_SMART_WKUP),
1462 .sysc_fields = &omap_hwmod_sysc_type2,
1463};
1464
1465static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
1466 .name = "timer",
1467 .sysc = &dra7xx_timer_1ms_sysc,
1468};
1469
1470static struct omap_hwmod_class_sysconfig dra7xx_timer_secure_sysc = {
1471 .rev_offs = 0x0000,
1472 .sysc_offs = 0x0010,
1473 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1474 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1475 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1476 SIDLE_SMART_WKUP),
1477 .sysc_fields = &omap_hwmod_sysc_type2,
1478};
1479
1480static struct omap_hwmod_class dra7xx_timer_secure_hwmod_class = {
1481 .name = "timer",
1482 .sysc = &dra7xx_timer_secure_sysc,
1483};
1484
1485static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
1486 .rev_offs = 0x0000,
1487 .sysc_offs = 0x0010,
1488 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1489 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1490 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1491 SIDLE_SMART_WKUP),
1492 .sysc_fields = &omap_hwmod_sysc_type2,
1493};
1494
1495static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
1496 .name = "timer",
1497 .sysc = &dra7xx_timer_sysc,
1498};
1499
1500/* timer1 */
1501static struct omap_hwmod dra7xx_timer1_hwmod = {
1502 .name = "timer1",
1503 .class = &dra7xx_timer_1ms_hwmod_class,
1504 .clkdm_name = "wkupaon_clkdm",
1505 .main_clk = "timer1_gfclk_mux",
1506 .prcm = {
1507 .omap4 = {
1508 .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
1509 .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
1510 .modulemode = MODULEMODE_SWCTRL,
1511 },
1512 },
1513};
1514
1515/* timer2 */
1516static struct omap_hwmod dra7xx_timer2_hwmod = {
1517 .name = "timer2",
1518 .class = &dra7xx_timer_1ms_hwmod_class,
1519 .clkdm_name = "l4per_clkdm",
1520 .main_clk = "timer2_gfclk_mux",
1521 .prcm = {
1522 .omap4 = {
1523 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
1524 .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
1525 .modulemode = MODULEMODE_SWCTRL,
1526 },
1527 },
1528};
1529
1530/* timer3 */
1531static struct omap_hwmod dra7xx_timer3_hwmod = {
1532 .name = "timer3",
1533 .class = &dra7xx_timer_hwmod_class,
1534 .clkdm_name = "l4per_clkdm",
1535 .main_clk = "timer3_gfclk_mux",
1536 .prcm = {
1537 .omap4 = {
1538 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
1539 .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
1540 .modulemode = MODULEMODE_SWCTRL,
1541 },
1542 },
1543};
1544
1545/* timer4 */
1546static struct omap_hwmod dra7xx_timer4_hwmod = {
1547 .name = "timer4",
1548 .class = &dra7xx_timer_secure_hwmod_class,
1549 .clkdm_name = "l4per_clkdm",
1550 .main_clk = "timer4_gfclk_mux",
1551 .prcm = {
1552 .omap4 = {
1553 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
1554 .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
1555 .modulemode = MODULEMODE_SWCTRL,
1556 },
1557 },
1558};
1559
1560/* timer5 */
1561static struct omap_hwmod dra7xx_timer5_hwmod = {
1562 .name = "timer5",
1563 .class = &dra7xx_timer_hwmod_class,
1564 .clkdm_name = "ipu_clkdm",
1565 .main_clk = "timer5_gfclk_mux",
1566 .prcm = {
1567 .omap4 = {
1568 .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
1569 .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
1570 .modulemode = MODULEMODE_SWCTRL,
1571 },
1572 },
1573};
1574
1575/* timer6 */
1576static struct omap_hwmod dra7xx_timer6_hwmod = {
1577 .name = "timer6",
1578 .class = &dra7xx_timer_hwmod_class,
1579 .clkdm_name = "ipu_clkdm",
1580 .main_clk = "timer6_gfclk_mux",
1581 .prcm = {
1582 .omap4 = {
1583 .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
1584 .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
1585 .modulemode = MODULEMODE_SWCTRL,
1586 },
1587 },
1588};
1589
1590/* timer7 */
1591static struct omap_hwmod dra7xx_timer7_hwmod = {
1592 .name = "timer7",
1593 .class = &dra7xx_timer_hwmod_class,
1594 .clkdm_name = "ipu_clkdm",
1595 .main_clk = "timer7_gfclk_mux",
1596 .prcm = {
1597 .omap4 = {
1598 .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
1599 .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
1600 .modulemode = MODULEMODE_SWCTRL,
1601 },
1602 },
1603};
1604
1605/* timer8 */
1606static struct omap_hwmod dra7xx_timer8_hwmod = {
1607 .name = "timer8",
1608 .class = &dra7xx_timer_hwmod_class,
1609 .clkdm_name = "ipu_clkdm",
1610 .main_clk = "timer8_gfclk_mux",
1611 .prcm = {
1612 .omap4 = {
1613 .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
1614 .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
1615 .modulemode = MODULEMODE_SWCTRL,
1616 },
1617 },
1618};
1619
1620/* timer9 */
1621static struct omap_hwmod dra7xx_timer9_hwmod = {
1622 .name = "timer9",
1623 .class = &dra7xx_timer_hwmod_class,
1624 .clkdm_name = "l4per_clkdm",
1625 .main_clk = "timer9_gfclk_mux",
1626 .prcm = {
1627 .omap4 = {
1628 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
1629 .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
1630 .modulemode = MODULEMODE_SWCTRL,
1631 },
1632 },
1633};
1634
1635/* timer10 */
1636static struct omap_hwmod dra7xx_timer10_hwmod = {
1637 .name = "timer10",
1638 .class = &dra7xx_timer_1ms_hwmod_class,
1639 .clkdm_name = "l4per_clkdm",
1640 .main_clk = "timer10_gfclk_mux",
1641 .prcm = {
1642 .omap4 = {
1643 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
1644 .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
1645 .modulemode = MODULEMODE_SWCTRL,
1646 },
1647 },
1648};
1649
1650/* timer11 */
1651static struct omap_hwmod dra7xx_timer11_hwmod = {
1652 .name = "timer11",
1653 .class = &dra7xx_timer_hwmod_class,
1654 .clkdm_name = "l4per_clkdm",
1655 .main_clk = "timer11_gfclk_mux",
1656 .prcm = {
1657 .omap4 = {
1658 .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
1659 .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
1660 .modulemode = MODULEMODE_SWCTRL,
1661 },
1662 },
1663};
1664
1665/*
1666 * 'uart' class
1667 *
1668 */
1669
1670static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
1671 .rev_offs = 0x0050,
1672 .sysc_offs = 0x0054,
1673 .syss_offs = 0x0058,
1674 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1675 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1676 SYSS_HAS_RESET_STATUS),
1677 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1678 SIDLE_SMART_WKUP),
1679 .sysc_fields = &omap_hwmod_sysc_type1,
1680};
1681
1682static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
1683 .name = "uart",
1684 .sysc = &dra7xx_uart_sysc,
1685};
1686
1687/* uart1 */
1688static struct omap_hwmod dra7xx_uart1_hwmod = {
1689 .name = "uart1",
1690 .class = &dra7xx_uart_hwmod_class,
1691 .clkdm_name = "l4per_clkdm",
1692 .main_clk = "uart1_gfclk_mux",
38958c15 1693 .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
90020c7b
A
1694 .prcm = {
1695 .omap4 = {
1696 .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
1697 .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
1698 .modulemode = MODULEMODE_SWCTRL,
1699 },
1700 },
1701};
1702
1703/* uart2 */
1704static struct omap_hwmod dra7xx_uart2_hwmod = {
1705 .name = "uart2",
1706 .class = &dra7xx_uart_hwmod_class,
1707 .clkdm_name = "l4per_clkdm",
1708 .main_clk = "uart2_gfclk_mux",
1709 .flags = HWMOD_SWSUP_SIDLE_ACT,
1710 .prcm = {
1711 .omap4 = {
1712 .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
1713 .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
1714 .modulemode = MODULEMODE_SWCTRL,
1715 },
1716 },
1717};
1718
1719/* uart3 */
1720static struct omap_hwmod dra7xx_uart3_hwmod = {
1721 .name = "uart3",
1722 .class = &dra7xx_uart_hwmod_class,
1723 .clkdm_name = "l4per_clkdm",
1724 .main_clk = "uart3_gfclk_mux",
1725 .flags = HWMOD_SWSUP_SIDLE_ACT,
1726 .prcm = {
1727 .omap4 = {
1728 .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
1729 .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
1730 .modulemode = MODULEMODE_SWCTRL,
1731 },
1732 },
1733};
1734
1735/* uart4 */
1736static struct omap_hwmod dra7xx_uart4_hwmod = {
1737 .name = "uart4",
1738 .class = &dra7xx_uart_hwmod_class,
1739 .clkdm_name = "l4per_clkdm",
1740 .main_clk = "uart4_gfclk_mux",
1741 .flags = HWMOD_SWSUP_SIDLE_ACT,
1742 .prcm = {
1743 .omap4 = {
1744 .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
1745 .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
1746 .modulemode = MODULEMODE_SWCTRL,
1747 },
1748 },
1749};
1750
1751/* uart5 */
1752static struct omap_hwmod dra7xx_uart5_hwmod = {
1753 .name = "uart5",
1754 .class = &dra7xx_uart_hwmod_class,
1755 .clkdm_name = "l4per_clkdm",
1756 .main_clk = "uart5_gfclk_mux",
1757 .flags = HWMOD_SWSUP_SIDLE_ACT,
1758 .prcm = {
1759 .omap4 = {
1760 .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
1761 .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
1762 .modulemode = MODULEMODE_SWCTRL,
1763 },
1764 },
1765};
1766
1767/* uart6 */
1768static struct omap_hwmod dra7xx_uart6_hwmod = {
1769 .name = "uart6",
1770 .class = &dra7xx_uart_hwmod_class,
1771 .clkdm_name = "ipu_clkdm",
1772 .main_clk = "uart6_gfclk_mux",
1773 .flags = HWMOD_SWSUP_SIDLE_ACT,
1774 .prcm = {
1775 .omap4 = {
1776 .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
1777 .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
1778 .modulemode = MODULEMODE_SWCTRL,
1779 },
1780 },
1781};
1782
1783/*
1784 * 'usb_otg_ss' class
1785 *
1786 */
1787
1788static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
1789 .name = "usb_otg_ss",
1790};
1791
1792/* usb_otg_ss1 */
1793static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
1794 { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
1795};
1796
1797static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
1798 .name = "usb_otg_ss1",
1799 .class = &dra7xx_usb_otg_ss_hwmod_class,
1800 .clkdm_name = "l3init_clkdm",
1801 .main_clk = "dpll_core_h13x2_ck",
1802 .prcm = {
1803 .omap4 = {
1804 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
1805 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
1806 .modulemode = MODULEMODE_HWCTRL,
1807 },
1808 },
1809 .opt_clks = usb_otg_ss1_opt_clks,
1810 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
1811};
1812
1813/* usb_otg_ss2 */
1814static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
1815 { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
1816};
1817
1818static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
1819 .name = "usb_otg_ss2",
1820 .class = &dra7xx_usb_otg_ss_hwmod_class,
1821 .clkdm_name = "l3init_clkdm",
1822 .main_clk = "dpll_core_h13x2_ck",
1823 .prcm = {
1824 .omap4 = {
1825 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
1826 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
1827 .modulemode = MODULEMODE_HWCTRL,
1828 },
1829 },
1830 .opt_clks = usb_otg_ss2_opt_clks,
1831 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
1832};
1833
1834/* usb_otg_ss3 */
1835static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
1836 .name = "usb_otg_ss3",
1837 .class = &dra7xx_usb_otg_ss_hwmod_class,
1838 .clkdm_name = "l3init_clkdm",
1839 .main_clk = "dpll_core_h13x2_ck",
1840 .prcm = {
1841 .omap4 = {
1842 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
1843 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
1844 .modulemode = MODULEMODE_HWCTRL,
1845 },
1846 },
1847};
1848
1849/* usb_otg_ss4 */
1850static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
1851 .name = "usb_otg_ss4",
1852 .class = &dra7xx_usb_otg_ss_hwmod_class,
1853 .clkdm_name = "l3init_clkdm",
1854 .main_clk = "dpll_core_h13x2_ck",
1855 .prcm = {
1856 .omap4 = {
1857 .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
1858 .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
1859 .modulemode = MODULEMODE_HWCTRL,
1860 },
1861 },
1862};
1863
1864/*
1865 * 'vcp' class
1866 *
1867 */
1868
1869static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
1870 .name = "vcp",
1871};
1872
1873/* vcp1 */
1874static struct omap_hwmod dra7xx_vcp1_hwmod = {
1875 .name = "vcp1",
1876 .class = &dra7xx_vcp_hwmod_class,
1877 .clkdm_name = "l3main1_clkdm",
1878 .main_clk = "l3_iclk_div",
1879 .prcm = {
1880 .omap4 = {
1881 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
1882 .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
1883 },
1884 },
1885};
1886
1887/* vcp2 */
1888static struct omap_hwmod dra7xx_vcp2_hwmod = {
1889 .name = "vcp2",
1890 .class = &dra7xx_vcp_hwmod_class,
1891 .clkdm_name = "l3main1_clkdm",
1892 .main_clk = "l3_iclk_div",
1893 .prcm = {
1894 .omap4 = {
1895 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
1896 .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
1897 },
1898 },
1899};
1900
1901/*
1902 * 'wd_timer' class
1903 *
1904 */
1905
1906static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
1907 .rev_offs = 0x0000,
1908 .sysc_offs = 0x0010,
1909 .syss_offs = 0x0014,
1910 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
1911 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1912 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1913 SIDLE_SMART_WKUP),
1914 .sysc_fields = &omap_hwmod_sysc_type1,
1915};
1916
1917static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
1918 .name = "wd_timer",
1919 .sysc = &dra7xx_wd_timer_sysc,
1920 .pre_shutdown = &omap2_wd_timer_disable,
1921 .reset = &omap2_wd_timer_reset,
1922};
1923
1924/* wd_timer2 */
1925static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
1926 .name = "wd_timer2",
1927 .class = &dra7xx_wd_timer_hwmod_class,
1928 .clkdm_name = "wkupaon_clkdm",
1929 .main_clk = "sys_32k_ck",
1930 .prcm = {
1931 .omap4 = {
1932 .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
1933 .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
1934 .modulemode = MODULEMODE_SWCTRL,
1935 },
1936 },
1937};
1938
1939
1940/*
1941 * Interfaces
1942 */
1943
1944/* l3_main_2 -> l3_instr */
1945static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
1946 .master = &dra7xx_l3_main_2_hwmod,
1947 .slave = &dra7xx_l3_instr_hwmod,
1948 .clk = "l3_iclk_div",
1949 .user = OCP_USER_MPU | OCP_USER_SDMA,
1950};
1951
1952/* l4_cfg -> l3_main_1 */
1953static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
1954 .master = &dra7xx_l4_cfg_hwmod,
1955 .slave = &dra7xx_l3_main_1_hwmod,
1956 .clk = "l3_iclk_div",
1957 .user = OCP_USER_MPU | OCP_USER_SDMA,
1958};
1959
1960/* mpu -> l3_main_1 */
1961static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
1962 .master = &dra7xx_mpu_hwmod,
1963 .slave = &dra7xx_l3_main_1_hwmod,
1964 .clk = "l3_iclk_div",
1965 .user = OCP_USER_MPU,
1966};
1967
1968/* l3_main_1 -> l3_main_2 */
1969static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
1970 .master = &dra7xx_l3_main_1_hwmod,
1971 .slave = &dra7xx_l3_main_2_hwmod,
1972 .clk = "l3_iclk_div",
1973 .user = OCP_USER_MPU,
1974};
1975
1976/* l4_cfg -> l3_main_2 */
1977static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
1978 .master = &dra7xx_l4_cfg_hwmod,
1979 .slave = &dra7xx_l3_main_2_hwmod,
1980 .clk = "l3_iclk_div",
1981 .user = OCP_USER_MPU | OCP_USER_SDMA,
1982};
1983
1984/* l3_main_1 -> l4_cfg */
1985static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
1986 .master = &dra7xx_l3_main_1_hwmod,
1987 .slave = &dra7xx_l4_cfg_hwmod,
1988 .clk = "l3_iclk_div",
1989 .user = OCP_USER_MPU | OCP_USER_SDMA,
1990};
1991
1992/* l3_main_1 -> l4_per1 */
1993static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
1994 .master = &dra7xx_l3_main_1_hwmod,
1995 .slave = &dra7xx_l4_per1_hwmod,
1996 .clk = "l3_iclk_div",
1997 .user = OCP_USER_MPU | OCP_USER_SDMA,
1998};
1999
2000/* l3_main_1 -> l4_per2 */
2001static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
2002 .master = &dra7xx_l3_main_1_hwmod,
2003 .slave = &dra7xx_l4_per2_hwmod,
2004 .clk = "l3_iclk_div",
2005 .user = OCP_USER_MPU | OCP_USER_SDMA,
2006};
2007
2008/* l3_main_1 -> l4_per3 */
2009static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
2010 .master = &dra7xx_l3_main_1_hwmod,
2011 .slave = &dra7xx_l4_per3_hwmod,
2012 .clk = "l3_iclk_div",
2013 .user = OCP_USER_MPU | OCP_USER_SDMA,
2014};
2015
2016/* l3_main_1 -> l4_wkup */
2017static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
2018 .master = &dra7xx_l3_main_1_hwmod,
2019 .slave = &dra7xx_l4_wkup_hwmod,
2020 .clk = "wkupaon_iclk_mux",
2021 .user = OCP_USER_MPU | OCP_USER_SDMA,
2022};
2023
2024/* l4_per2 -> atl */
2025static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
2026 .master = &dra7xx_l4_per2_hwmod,
2027 .slave = &dra7xx_atl_hwmod,
2028 .clk = "l3_iclk_div",
2029 .user = OCP_USER_MPU | OCP_USER_SDMA,
2030};
2031
2032/* l3_main_1 -> bb2d */
2033static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
2034 .master = &dra7xx_l3_main_1_hwmod,
2035 .slave = &dra7xx_bb2d_hwmod,
2036 .clk = "l3_iclk_div",
2037 .user = OCP_USER_MPU | OCP_USER_SDMA,
2038};
2039
2040/* l4_wkup -> counter_32k */
2041static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
2042 .master = &dra7xx_l4_wkup_hwmod,
2043 .slave = &dra7xx_counter_32k_hwmod,
2044 .clk = "wkupaon_iclk_mux",
2045 .user = OCP_USER_MPU | OCP_USER_SDMA,
2046};
2047
2048/* l4_wkup -> ctrl_module_wkup */
2049static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
2050 .master = &dra7xx_l4_wkup_hwmod,
2051 .slave = &dra7xx_ctrl_module_wkup_hwmod,
2052 .clk = "wkupaon_iclk_mux",
2053 .user = OCP_USER_MPU | OCP_USER_SDMA,
2054};
2055
2056/* l4_wkup -> dcan1 */
2057static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
2058 .master = &dra7xx_l4_wkup_hwmod,
2059 .slave = &dra7xx_dcan1_hwmod,
2060 .clk = "wkupaon_iclk_mux",
2061 .user = OCP_USER_MPU | OCP_USER_SDMA,
2062};
2063
2064/* l4_per2 -> dcan2 */
2065static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
2066 .master = &dra7xx_l4_per2_hwmod,
2067 .slave = &dra7xx_dcan2_hwmod,
2068 .clk = "l3_iclk_div",
2069 .user = OCP_USER_MPU | OCP_USER_SDMA,
2070};
2071
2072static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
2073 {
2074 .pa_start = 0x4a056000,
2075 .pa_end = 0x4a056fff,
2076 .flags = ADDR_TYPE_RT
2077 },
2078 { }
2079};
2080
2081/* l4_cfg -> dma_system */
2082static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
2083 .master = &dra7xx_l4_cfg_hwmod,
2084 .slave = &dra7xx_dma_system_hwmod,
2085 .clk = "l3_iclk_div",
2086 .addr = dra7xx_dma_system_addrs,
2087 .user = OCP_USER_MPU | OCP_USER_SDMA,
2088};
2089
2090static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
2091 {
2092 .name = "family",
2093 .pa_start = 0x58000000,
2094 .pa_end = 0x5800007f,
2095 .flags = ADDR_TYPE_RT
2096 },
2097};
2098
2099/* l3_main_1 -> dss */
2100static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
2101 .master = &dra7xx_l3_main_1_hwmod,
2102 .slave = &dra7xx_dss_hwmod,
2103 .clk = "l3_iclk_div",
2104 .addr = dra7xx_dss_addrs,
2105 .user = OCP_USER_MPU | OCP_USER_SDMA,
2106};
2107
2108static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
2109 {
2110 .name = "dispc",
2111 .pa_start = 0x58001000,
2112 .pa_end = 0x58001fff,
2113 .flags = ADDR_TYPE_RT
2114 },
2115};
2116
2117/* l3_main_1 -> dispc */
2118static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
2119 .master = &dra7xx_l3_main_1_hwmod,
2120 .slave = &dra7xx_dss_dispc_hwmod,
2121 .clk = "l3_iclk_div",
2122 .addr = dra7xx_dss_dispc_addrs,
2123 .user = OCP_USER_MPU | OCP_USER_SDMA,
2124};
2125
2126static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
2127 {
2128 .name = "hdmi_wp",
2129 .pa_start = 0x58040000,
2130 .pa_end = 0x580400ff,
2131 .flags = ADDR_TYPE_RT
2132 },
2133 { }
2134};
2135
2136/* l3_main_1 -> dispc */
2137static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
2138 .master = &dra7xx_l3_main_1_hwmod,
2139 .slave = &dra7xx_dss_hdmi_hwmod,
2140 .clk = "l3_iclk_div",
2141 .addr = dra7xx_dss_hdmi_addrs,
2142 .user = OCP_USER_MPU | OCP_USER_SDMA,
2143};
2144
2145static struct omap_hwmod_addr_space dra7xx_elm_addrs[] = {
2146 {
2147 .pa_start = 0x48078000,
2148 .pa_end = 0x48078fff,
2149 .flags = ADDR_TYPE_RT
2150 },
2151 { }
2152};
2153
2154/* l4_per1 -> elm */
2155static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
2156 .master = &dra7xx_l4_per1_hwmod,
2157 .slave = &dra7xx_elm_hwmod,
2158 .clk = "l3_iclk_div",
2159 .addr = dra7xx_elm_addrs,
2160 .user = OCP_USER_MPU | OCP_USER_SDMA,
2161};
2162
2163/* l4_wkup -> gpio1 */
2164static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
2165 .master = &dra7xx_l4_wkup_hwmod,
2166 .slave = &dra7xx_gpio1_hwmod,
2167 .clk = "wkupaon_iclk_mux",
2168 .user = OCP_USER_MPU | OCP_USER_SDMA,
2169};
2170
2171/* l4_per1 -> gpio2 */
2172static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
2173 .master = &dra7xx_l4_per1_hwmod,
2174 .slave = &dra7xx_gpio2_hwmod,
2175 .clk = "l3_iclk_div",
2176 .user = OCP_USER_MPU | OCP_USER_SDMA,
2177};
2178
2179/* l4_per1 -> gpio3 */
2180static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
2181 .master = &dra7xx_l4_per1_hwmod,
2182 .slave = &dra7xx_gpio3_hwmod,
2183 .clk = "l3_iclk_div",
2184 .user = OCP_USER_MPU | OCP_USER_SDMA,
2185};
2186
2187/* l4_per1 -> gpio4 */
2188static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
2189 .master = &dra7xx_l4_per1_hwmod,
2190 .slave = &dra7xx_gpio4_hwmod,
2191 .clk = "l3_iclk_div",
2192 .user = OCP_USER_MPU | OCP_USER_SDMA,
2193};
2194
2195/* l4_per1 -> gpio5 */
2196static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
2197 .master = &dra7xx_l4_per1_hwmod,
2198 .slave = &dra7xx_gpio5_hwmod,
2199 .clk = "l3_iclk_div",
2200 .user = OCP_USER_MPU | OCP_USER_SDMA,
2201};
2202
2203/* l4_per1 -> gpio6 */
2204static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
2205 .master = &dra7xx_l4_per1_hwmod,
2206 .slave = &dra7xx_gpio6_hwmod,
2207 .clk = "l3_iclk_div",
2208 .user = OCP_USER_MPU | OCP_USER_SDMA,
2209};
2210
2211/* l4_per1 -> gpio7 */
2212static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
2213 .master = &dra7xx_l4_per1_hwmod,
2214 .slave = &dra7xx_gpio7_hwmod,
2215 .clk = "l3_iclk_div",
2216 .user = OCP_USER_MPU | OCP_USER_SDMA,
2217};
2218
2219/* l4_per1 -> gpio8 */
2220static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
2221 .master = &dra7xx_l4_per1_hwmod,
2222 .slave = &dra7xx_gpio8_hwmod,
2223 .clk = "l3_iclk_div",
2224 .user = OCP_USER_MPU | OCP_USER_SDMA,
2225};
2226
2227static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = {
2228 {
2229 .pa_start = 0x50000000,
2230 .pa_end = 0x500003ff,
2231 .flags = ADDR_TYPE_RT
2232 },
2233 { }
2234};
2235
2236/* l3_main_1 -> gpmc */
2237static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
2238 .master = &dra7xx_l3_main_1_hwmod,
2239 .slave = &dra7xx_gpmc_hwmod,
2240 .clk = "l3_iclk_div",
2241 .addr = dra7xx_gpmc_addrs,
2242 .user = OCP_USER_MPU | OCP_USER_SDMA,
2243};
2244
2245static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
2246 {
2247 .pa_start = 0x480b2000,
2248 .pa_end = 0x480b201f,
2249 .flags = ADDR_TYPE_RT
2250 },
2251 { }
2252};
2253
2254/* l4_per1 -> hdq1w */
2255static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
2256 .master = &dra7xx_l4_per1_hwmod,
2257 .slave = &dra7xx_hdq1w_hwmod,
2258 .clk = "l3_iclk_div",
2259 .addr = dra7xx_hdq1w_addrs,
2260 .user = OCP_USER_MPU | OCP_USER_SDMA,
2261};
2262
2263/* l4_per1 -> i2c1 */
2264static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
2265 .master = &dra7xx_l4_per1_hwmod,
2266 .slave = &dra7xx_i2c1_hwmod,
2267 .clk = "l3_iclk_div",
2268 .user = OCP_USER_MPU | OCP_USER_SDMA,
2269};
2270
2271/* l4_per1 -> i2c2 */
2272static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
2273 .master = &dra7xx_l4_per1_hwmod,
2274 .slave = &dra7xx_i2c2_hwmod,
2275 .clk = "l3_iclk_div",
2276 .user = OCP_USER_MPU | OCP_USER_SDMA,
2277};
2278
2279/* l4_per1 -> i2c3 */
2280static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
2281 .master = &dra7xx_l4_per1_hwmod,
2282 .slave = &dra7xx_i2c3_hwmod,
2283 .clk = "l3_iclk_div",
2284 .user = OCP_USER_MPU | OCP_USER_SDMA,
2285};
2286
2287/* l4_per1 -> i2c4 */
2288static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
2289 .master = &dra7xx_l4_per1_hwmod,
2290 .slave = &dra7xx_i2c4_hwmod,
2291 .clk = "l3_iclk_div",
2292 .user = OCP_USER_MPU | OCP_USER_SDMA,
2293};
2294
2295/* l4_per1 -> i2c5 */
2296static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
2297 .master = &dra7xx_l4_per1_hwmod,
2298 .slave = &dra7xx_i2c5_hwmod,
2299 .clk = "l3_iclk_div",
2300 .user = OCP_USER_MPU | OCP_USER_SDMA,
2301};
2302
2303/* l4_per1 -> mcspi1 */
2304static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
2305 .master = &dra7xx_l4_per1_hwmod,
2306 .slave = &dra7xx_mcspi1_hwmod,
2307 .clk = "l3_iclk_div",
2308 .user = OCP_USER_MPU | OCP_USER_SDMA,
2309};
2310
2311/* l4_per1 -> mcspi2 */
2312static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
2313 .master = &dra7xx_l4_per1_hwmod,
2314 .slave = &dra7xx_mcspi2_hwmod,
2315 .clk = "l3_iclk_div",
2316 .user = OCP_USER_MPU | OCP_USER_SDMA,
2317};
2318
2319/* l4_per1 -> mcspi3 */
2320static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
2321 .master = &dra7xx_l4_per1_hwmod,
2322 .slave = &dra7xx_mcspi3_hwmod,
2323 .clk = "l3_iclk_div",
2324 .user = OCP_USER_MPU | OCP_USER_SDMA,
2325};
2326
2327/* l4_per1 -> mcspi4 */
2328static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
2329 .master = &dra7xx_l4_per1_hwmod,
2330 .slave = &dra7xx_mcspi4_hwmod,
2331 .clk = "l3_iclk_div",
2332 .user = OCP_USER_MPU | OCP_USER_SDMA,
2333};
2334
2335/* l4_per1 -> mmc1 */
2336static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
2337 .master = &dra7xx_l4_per1_hwmod,
2338 .slave = &dra7xx_mmc1_hwmod,
2339 .clk = "l3_iclk_div",
2340 .user = OCP_USER_MPU | OCP_USER_SDMA,
2341};
2342
2343/* l4_per1 -> mmc2 */
2344static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
2345 .master = &dra7xx_l4_per1_hwmod,
2346 .slave = &dra7xx_mmc2_hwmod,
2347 .clk = "l3_iclk_div",
2348 .user = OCP_USER_MPU | OCP_USER_SDMA,
2349};
2350
2351/* l4_per1 -> mmc3 */
2352static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
2353 .master = &dra7xx_l4_per1_hwmod,
2354 .slave = &dra7xx_mmc3_hwmod,
2355 .clk = "l3_iclk_div",
2356 .user = OCP_USER_MPU | OCP_USER_SDMA,
2357};
2358
2359/* l4_per1 -> mmc4 */
2360static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
2361 .master = &dra7xx_l4_per1_hwmod,
2362 .slave = &dra7xx_mmc4_hwmod,
2363 .clk = "l3_iclk_div",
2364 .user = OCP_USER_MPU | OCP_USER_SDMA,
2365};
2366
2367/* l4_cfg -> mpu */
2368static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
2369 .master = &dra7xx_l4_cfg_hwmod,
2370 .slave = &dra7xx_mpu_hwmod,
2371 .clk = "l3_iclk_div",
2372 .user = OCP_USER_MPU | OCP_USER_SDMA,
2373};
2374
90020c7b
A
2375/* l4_cfg -> ocp2scp1 */
2376static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
2377 .master = &dra7xx_l4_cfg_hwmod,
2378 .slave = &dra7xx_ocp2scp1_hwmod,
2379 .clk = "l4_root_clk_div",
90020c7b
A
2380 .user = OCP_USER_MPU | OCP_USER_SDMA,
2381};
2382
df0d0f11
RQ
2383/* l4_cfg -> ocp2scp3 */
2384static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
2385 .master = &dra7xx_l4_cfg_hwmod,
2386 .slave = &dra7xx_ocp2scp3_hwmod,
2387 .clk = "l4_root_clk_div",
2388 .user = OCP_USER_MPU | OCP_USER_SDMA,
2389};
2390
70c18ef7
KVA
2391/* l4_cfg -> pcie1 phy */
2392static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1_phy = {
2393 .master = &dra7xx_l4_cfg_hwmod,
2394 .slave = &dra7xx_pcie1_phy_hwmod,
2395 .clk = "l4_root_clk_div",
2396 .user = OCP_USER_MPU | OCP_USER_SDMA,
2397};
2398
2399/* l4_cfg -> pcie2 phy */
2400static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie2_phy = {
2401 .master = &dra7xx_l4_cfg_hwmod,
2402 .slave = &dra7xx_pcie2_phy_hwmod,
2403 .clk = "l4_root_clk_div",
2404 .user = OCP_USER_MPU | OCP_USER_SDMA,
2405};
2406
90020c7b
A
2407static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
2408 {
2409 .pa_start = 0x4b300000,
2410 .pa_end = 0x4b30007f,
2411 .flags = ADDR_TYPE_RT
2412 },
2413 { }
2414};
2415
2416/* l3_main_1 -> qspi */
2417static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
2418 .master = &dra7xx_l3_main_1_hwmod,
2419 .slave = &dra7xx_qspi_hwmod,
2420 .clk = "l3_iclk_div",
2421 .addr = dra7xx_qspi_addrs,
2422 .user = OCP_USER_MPU | OCP_USER_SDMA,
2423};
2424
2425static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
2426 {
2427 .name = "sysc",
2428 .pa_start = 0x4a141100,
2429 .pa_end = 0x4a141107,
2430 .flags = ADDR_TYPE_RT
2431 },
2432 { }
2433};
2434
2435/* l4_cfg -> sata */
2436static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
2437 .master = &dra7xx_l4_cfg_hwmod,
2438 .slave = &dra7xx_sata_hwmod,
2439 .clk = "l3_iclk_div",
2440 .addr = dra7xx_sata_addrs,
2441 .user = OCP_USER_MPU | OCP_USER_SDMA,
2442};
2443
2444static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
2445 {
2446 .pa_start = 0x4a0dd000,
2447 .pa_end = 0x4a0dd07f,
2448 .flags = ADDR_TYPE_RT
2449 },
2450 { }
2451};
2452
2453/* l4_cfg -> smartreflex_core */
2454static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
2455 .master = &dra7xx_l4_cfg_hwmod,
2456 .slave = &dra7xx_smartreflex_core_hwmod,
2457 .clk = "l4_root_clk_div",
2458 .addr = dra7xx_smartreflex_core_addrs,
2459 .user = OCP_USER_MPU | OCP_USER_SDMA,
2460};
2461
2462static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
2463 {
2464 .pa_start = 0x4a0d9000,
2465 .pa_end = 0x4a0d907f,
2466 .flags = ADDR_TYPE_RT
2467 },
2468 { }
2469};
2470
2471/* l4_cfg -> smartreflex_mpu */
2472static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
2473 .master = &dra7xx_l4_cfg_hwmod,
2474 .slave = &dra7xx_smartreflex_mpu_hwmod,
2475 .clk = "l4_root_clk_div",
2476 .addr = dra7xx_smartreflex_mpu_addrs,
2477 .user = OCP_USER_MPU | OCP_USER_SDMA,
2478};
2479
2480static struct omap_hwmod_addr_space dra7xx_spinlock_addrs[] = {
2481 {
2482 .pa_start = 0x4a0f6000,
2483 .pa_end = 0x4a0f6fff,
2484 .flags = ADDR_TYPE_RT
2485 },
2486 { }
2487};
2488
2489/* l4_cfg -> spinlock */
2490static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
2491 .master = &dra7xx_l4_cfg_hwmod,
2492 .slave = &dra7xx_spinlock_hwmod,
2493 .clk = "l3_iclk_div",
2494 .addr = dra7xx_spinlock_addrs,
2495 .user = OCP_USER_MPU | OCP_USER_SDMA,
2496};
2497
2498/* l4_wkup -> timer1 */
2499static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
2500 .master = &dra7xx_l4_wkup_hwmod,
2501 .slave = &dra7xx_timer1_hwmod,
2502 .clk = "wkupaon_iclk_mux",
2503 .user = OCP_USER_MPU | OCP_USER_SDMA,
2504};
2505
2506/* l4_per1 -> timer2 */
2507static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
2508 .master = &dra7xx_l4_per1_hwmod,
2509 .slave = &dra7xx_timer2_hwmod,
2510 .clk = "l3_iclk_div",
2511 .user = OCP_USER_MPU | OCP_USER_SDMA,
2512};
2513
2514/* l4_per1 -> timer3 */
2515static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
2516 .master = &dra7xx_l4_per1_hwmod,
2517 .slave = &dra7xx_timer3_hwmod,
2518 .clk = "l3_iclk_div",
2519 .user = OCP_USER_MPU | OCP_USER_SDMA,
2520};
2521
2522/* l4_per1 -> timer4 */
2523static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
2524 .master = &dra7xx_l4_per1_hwmod,
2525 .slave = &dra7xx_timer4_hwmod,
2526 .clk = "l3_iclk_div",
2527 .user = OCP_USER_MPU | OCP_USER_SDMA,
2528};
2529
2530/* l4_per3 -> timer5 */
2531static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
2532 .master = &dra7xx_l4_per3_hwmod,
2533 .slave = &dra7xx_timer5_hwmod,
2534 .clk = "l3_iclk_div",
2535 .user = OCP_USER_MPU | OCP_USER_SDMA,
2536};
2537
2538/* l4_per3 -> timer6 */
2539static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
2540 .master = &dra7xx_l4_per3_hwmod,
2541 .slave = &dra7xx_timer6_hwmod,
2542 .clk = "l3_iclk_div",
2543 .user = OCP_USER_MPU | OCP_USER_SDMA,
2544};
2545
2546/* l4_per3 -> timer7 */
2547static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
2548 .master = &dra7xx_l4_per3_hwmod,
2549 .slave = &dra7xx_timer7_hwmod,
2550 .clk = "l3_iclk_div",
2551 .user = OCP_USER_MPU | OCP_USER_SDMA,
2552};
2553
2554/* l4_per3 -> timer8 */
2555static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
2556 .master = &dra7xx_l4_per3_hwmod,
2557 .slave = &dra7xx_timer8_hwmod,
2558 .clk = "l3_iclk_div",
2559 .user = OCP_USER_MPU | OCP_USER_SDMA,
2560};
2561
2562/* l4_per1 -> timer9 */
2563static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
2564 .master = &dra7xx_l4_per1_hwmod,
2565 .slave = &dra7xx_timer9_hwmod,
2566 .clk = "l3_iclk_div",
2567 .user = OCP_USER_MPU | OCP_USER_SDMA,
2568};
2569
2570/* l4_per1 -> timer10 */
2571static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
2572 .master = &dra7xx_l4_per1_hwmod,
2573 .slave = &dra7xx_timer10_hwmod,
2574 .clk = "l3_iclk_div",
2575 .user = OCP_USER_MPU | OCP_USER_SDMA,
2576};
2577
2578/* l4_per1 -> timer11 */
2579static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
2580 .master = &dra7xx_l4_per1_hwmod,
2581 .slave = &dra7xx_timer11_hwmod,
2582 .clk = "l3_iclk_div",
2583 .user = OCP_USER_MPU | OCP_USER_SDMA,
2584};
2585
2586/* l4_per1 -> uart1 */
2587static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
2588 .master = &dra7xx_l4_per1_hwmod,
2589 .slave = &dra7xx_uart1_hwmod,
2590 .clk = "l3_iclk_div",
2591 .user = OCP_USER_MPU | OCP_USER_SDMA,
2592};
2593
2594/* l4_per1 -> uart2 */
2595static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
2596 .master = &dra7xx_l4_per1_hwmod,
2597 .slave = &dra7xx_uart2_hwmod,
2598 .clk = "l3_iclk_div",
2599 .user = OCP_USER_MPU | OCP_USER_SDMA,
2600};
2601
2602/* l4_per1 -> uart3 */
2603static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
2604 .master = &dra7xx_l4_per1_hwmod,
2605 .slave = &dra7xx_uart3_hwmod,
2606 .clk = "l3_iclk_div",
2607 .user = OCP_USER_MPU | OCP_USER_SDMA,
2608};
2609
2610/* l4_per1 -> uart4 */
2611static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
2612 .master = &dra7xx_l4_per1_hwmod,
2613 .slave = &dra7xx_uart4_hwmod,
2614 .clk = "l3_iclk_div",
2615 .user = OCP_USER_MPU | OCP_USER_SDMA,
2616};
2617
2618/* l4_per1 -> uart5 */
2619static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
2620 .master = &dra7xx_l4_per1_hwmod,
2621 .slave = &dra7xx_uart5_hwmod,
2622 .clk = "l3_iclk_div",
2623 .user = OCP_USER_MPU | OCP_USER_SDMA,
2624};
2625
2626/* l4_per1 -> uart6 */
2627static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
2628 .master = &dra7xx_l4_per1_hwmod,
2629 .slave = &dra7xx_uart6_hwmod,
2630 .clk = "l3_iclk_div",
2631 .user = OCP_USER_MPU | OCP_USER_SDMA,
2632};
2633
2634/* l4_per3 -> usb_otg_ss1 */
2635static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
2636 .master = &dra7xx_l4_per3_hwmod,
2637 .slave = &dra7xx_usb_otg_ss1_hwmod,
2638 .clk = "dpll_core_h13x2_ck",
2639 .user = OCP_USER_MPU | OCP_USER_SDMA,
2640};
2641
2642/* l4_per3 -> usb_otg_ss2 */
2643static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
2644 .master = &dra7xx_l4_per3_hwmod,
2645 .slave = &dra7xx_usb_otg_ss2_hwmod,
2646 .clk = "dpll_core_h13x2_ck",
2647 .user = OCP_USER_MPU | OCP_USER_SDMA,
2648};
2649
2650/* l4_per3 -> usb_otg_ss3 */
2651static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
2652 .master = &dra7xx_l4_per3_hwmod,
2653 .slave = &dra7xx_usb_otg_ss3_hwmod,
2654 .clk = "dpll_core_h13x2_ck",
2655 .user = OCP_USER_MPU | OCP_USER_SDMA,
2656};
2657
2658/* l4_per3 -> usb_otg_ss4 */
2659static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
2660 .master = &dra7xx_l4_per3_hwmod,
2661 .slave = &dra7xx_usb_otg_ss4_hwmod,
2662 .clk = "dpll_core_h13x2_ck",
2663 .user = OCP_USER_MPU | OCP_USER_SDMA,
2664};
2665
2666/* l3_main_1 -> vcp1 */
2667static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
2668 .master = &dra7xx_l3_main_1_hwmod,
2669 .slave = &dra7xx_vcp1_hwmod,
2670 .clk = "l3_iclk_div",
2671 .user = OCP_USER_MPU | OCP_USER_SDMA,
2672};
2673
2674/* l4_per2 -> vcp1 */
2675static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
2676 .master = &dra7xx_l4_per2_hwmod,
2677 .slave = &dra7xx_vcp1_hwmod,
2678 .clk = "l3_iclk_div",
2679 .user = OCP_USER_MPU | OCP_USER_SDMA,
2680};
2681
2682/* l3_main_1 -> vcp2 */
2683static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
2684 .master = &dra7xx_l3_main_1_hwmod,
2685 .slave = &dra7xx_vcp2_hwmod,
2686 .clk = "l3_iclk_div",
2687 .user = OCP_USER_MPU | OCP_USER_SDMA,
2688};
2689
2690/* l4_per2 -> vcp2 */
2691static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
2692 .master = &dra7xx_l4_per2_hwmod,
2693 .slave = &dra7xx_vcp2_hwmod,
2694 .clk = "l3_iclk_div",
2695 .user = OCP_USER_MPU | OCP_USER_SDMA,
2696};
2697
2698/* l4_wkup -> wd_timer2 */
2699static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
2700 .master = &dra7xx_l4_wkup_hwmod,
2701 .slave = &dra7xx_wd_timer2_hwmod,
2702 .clk = "wkupaon_iclk_mux",
2703 .user = OCP_USER_MPU | OCP_USER_SDMA,
2704};
2705
2706static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
2707 &dra7xx_l3_main_2__l3_instr,
2708 &dra7xx_l4_cfg__l3_main_1,
2709 &dra7xx_mpu__l3_main_1,
2710 &dra7xx_l3_main_1__l3_main_2,
2711 &dra7xx_l4_cfg__l3_main_2,
2712 &dra7xx_l3_main_1__l4_cfg,
2713 &dra7xx_l3_main_1__l4_per1,
2714 &dra7xx_l3_main_1__l4_per2,
2715 &dra7xx_l3_main_1__l4_per3,
2716 &dra7xx_l3_main_1__l4_wkup,
2717 &dra7xx_l4_per2__atl,
2718 &dra7xx_l3_main_1__bb2d,
2719 &dra7xx_l4_wkup__counter_32k,
2720 &dra7xx_l4_wkup__ctrl_module_wkup,
2721 &dra7xx_l4_wkup__dcan1,
2722 &dra7xx_l4_per2__dcan2,
2723 &dra7xx_l4_cfg__dma_system,
2724 &dra7xx_l3_main_1__dss,
2725 &dra7xx_l3_main_1__dispc,
2726 &dra7xx_l3_main_1__hdmi,
2727 &dra7xx_l4_per1__elm,
2728 &dra7xx_l4_wkup__gpio1,
2729 &dra7xx_l4_per1__gpio2,
2730 &dra7xx_l4_per1__gpio3,
2731 &dra7xx_l4_per1__gpio4,
2732 &dra7xx_l4_per1__gpio5,
2733 &dra7xx_l4_per1__gpio6,
2734 &dra7xx_l4_per1__gpio7,
2735 &dra7xx_l4_per1__gpio8,
2736 &dra7xx_l3_main_1__gpmc,
2737 &dra7xx_l4_per1__hdq1w,
2738 &dra7xx_l4_per1__i2c1,
2739 &dra7xx_l4_per1__i2c2,
2740 &dra7xx_l4_per1__i2c3,
2741 &dra7xx_l4_per1__i2c4,
2742 &dra7xx_l4_per1__i2c5,
2743 &dra7xx_l4_per1__mcspi1,
2744 &dra7xx_l4_per1__mcspi2,
2745 &dra7xx_l4_per1__mcspi3,
2746 &dra7xx_l4_per1__mcspi4,
2747 &dra7xx_l4_per1__mmc1,
2748 &dra7xx_l4_per1__mmc2,
2749 &dra7xx_l4_per1__mmc3,
2750 &dra7xx_l4_per1__mmc4,
2751 &dra7xx_l4_cfg__mpu,
2752 &dra7xx_l4_cfg__ocp2scp1,
df0d0f11 2753 &dra7xx_l4_cfg__ocp2scp3,
70c18ef7
KVA
2754 &dra7xx_l4_cfg__pcie1_phy,
2755 &dra7xx_l4_cfg__pcie2_phy,
90020c7b
A
2756 &dra7xx_l3_main_1__qspi,
2757 &dra7xx_l4_cfg__sata,
2758 &dra7xx_l4_cfg__smartreflex_core,
2759 &dra7xx_l4_cfg__smartreflex_mpu,
2760 &dra7xx_l4_cfg__spinlock,
2761 &dra7xx_l4_wkup__timer1,
2762 &dra7xx_l4_per1__timer2,
2763 &dra7xx_l4_per1__timer3,
2764 &dra7xx_l4_per1__timer4,
2765 &dra7xx_l4_per3__timer5,
2766 &dra7xx_l4_per3__timer6,
2767 &dra7xx_l4_per3__timer7,
2768 &dra7xx_l4_per3__timer8,
2769 &dra7xx_l4_per1__timer9,
2770 &dra7xx_l4_per1__timer10,
2771 &dra7xx_l4_per1__timer11,
2772 &dra7xx_l4_per1__uart1,
2773 &dra7xx_l4_per1__uart2,
2774 &dra7xx_l4_per1__uart3,
2775 &dra7xx_l4_per1__uart4,
2776 &dra7xx_l4_per1__uart5,
2777 &dra7xx_l4_per1__uart6,
2778 &dra7xx_l4_per3__usb_otg_ss1,
2779 &dra7xx_l4_per3__usb_otg_ss2,
2780 &dra7xx_l4_per3__usb_otg_ss3,
2781 &dra7xx_l4_per3__usb_otg_ss4,
2782 &dra7xx_l3_main_1__vcp1,
2783 &dra7xx_l4_per2__vcp1,
2784 &dra7xx_l3_main_1__vcp2,
2785 &dra7xx_l4_per2__vcp2,
2786 &dra7xx_l4_wkup__wd_timer2,
2787 NULL,
2788};
2789
2790int __init dra7xx_hwmod_init(void)
2791{
2792 omap_hwmod_init();
2793 return omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
2794}
This page took 0.16586 seconds and 5 git commands to generate.