ARM: OMAP: AM33xx hwmod: Add parent-child relationship for PWM subsystem
[deliverable/linux.git] / arch / arm / mach-omap2 / omap_hwmod_33xx_data.c
CommitLineData
a2cfc509
VH
1/*
2 * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips
3 *
4 * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
5 *
6 * This file is automatically generated from the AM33XX hardware databases.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation version 2.
10 *
11 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
12 * kind, whether express or implied; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
3a8761c0
TL
17#include <linux/i2c-omap.h>
18
2a296c8f 19#include "omap_hwmod.h"
11964f53 20#include <linux/platform_data/gpio-omap.h>
aa817b2e 21#include <linux/platform_data/spi-omap2-mcspi.h>
a2cfc509
VH
22
23#include "omap_hwmod_common_data.h"
24
25#include "control.h"
26#include "cm33xx.h"
27#include "prm33xx.h"
28#include "prm-regbits-33xx.h"
3a8761c0 29#include "i2c.h"
68f39e74 30#include "mmc.h"
a2cfc509 31
a2cfc509
VH
32/*
33 * IP blocks
34 */
35
36/*
37 * 'emif_fw' class
38 * instance(s): emif_fw
39 */
40static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = {
41 .name = "emif_fw",
42};
43
44/* emif_fw */
45static struct omap_hwmod am33xx_emif_fw_hwmod = {
46 .name = "emif_fw",
47 .class = &am33xx_emif_fw_hwmod_class,
48 .clkdm_name = "l4fw_clkdm",
49 .main_clk = "l4fw_gclk",
50 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
51 .prcm = {
52 .omap4 = {
53 .clkctrl_offs = AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET,
54 .modulemode = MODULEMODE_SWCTRL,
55 },
56 },
57};
58
59/*
60 * 'emif' class
61 * instance(s): emif
62 */
63static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {
64 .rev_offs = 0x0000,
65};
66
67static struct omap_hwmod_class am33xx_emif_hwmod_class = {
68 .name = "emif",
69 .sysc = &am33xx_emif_sysc,
70};
71
72static struct omap_hwmod_irq_info am33xx_emif_irqs[] = {
73 { .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, },
74 { .irq = -1 },
75};
76
77/* emif */
78static struct omap_hwmod am33xx_emif_hwmod = {
79 .name = "emif",
80 .class = &am33xx_emif_hwmod_class,
81 .clkdm_name = "l3_clkdm",
82 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
83 .mpu_irqs = am33xx_emif_irqs,
84 .main_clk = "dpll_ddr_m2_div2_ck",
85 .prcm = {
86 .omap4 = {
87 .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,
88 .modulemode = MODULEMODE_SWCTRL,
89 },
90 },
91};
92
93/*
94 * 'l3' class
95 * instance(s): l3_main, l3_s, l3_instr
96 */
97static struct omap_hwmod_class am33xx_l3_hwmod_class = {
98 .name = "l3",
99};
100
101/* l3_main (l3_fast) */
102static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = {
103 { .name = "l3debug", .irq = 9 + OMAP_INTC_START, },
104 { .name = "l3appint", .irq = 10 + OMAP_INTC_START, },
105 { .irq = -1 },
106};
107
108static struct omap_hwmod am33xx_l3_main_hwmod = {
109 .name = "l3_main",
110 .class = &am33xx_l3_hwmod_class,
111 .clkdm_name = "l3_clkdm",
112 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
113 .mpu_irqs = am33xx_l3_main_irqs,
114 .main_clk = "l3_gclk",
115 .prcm = {
116 .omap4 = {
117 .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET,
118 .modulemode = MODULEMODE_SWCTRL,
119 },
120 },
121};
122
123/* l3_s */
124static struct omap_hwmod am33xx_l3_s_hwmod = {
125 .name = "l3_s",
126 .class = &am33xx_l3_hwmod_class,
127 .clkdm_name = "l3s_clkdm",
128};
129
130/* l3_instr */
131static struct omap_hwmod am33xx_l3_instr_hwmod = {
132 .name = "l3_instr",
133 .class = &am33xx_l3_hwmod_class,
134 .clkdm_name = "l3_clkdm",
135 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
136 .main_clk = "l3_gclk",
137 .prcm = {
138 .omap4 = {
139 .clkctrl_offs = AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET,
140 .modulemode = MODULEMODE_SWCTRL,
141 },
142 },
143};
144
145/*
146 * 'l4' class
147 * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw
148 */
149static struct omap_hwmod_class am33xx_l4_hwmod_class = {
150 .name = "l4",
151};
152
153/* l4_ls */
154static struct omap_hwmod am33xx_l4_ls_hwmod = {
155 .name = "l4_ls",
156 .class = &am33xx_l4_hwmod_class,
157 .clkdm_name = "l4ls_clkdm",
158 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
159 .main_clk = "l4ls_gclk",
160 .prcm = {
161 .omap4 = {
162 .clkctrl_offs = AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET,
163 .modulemode = MODULEMODE_SWCTRL,
164 },
165 },
166};
167
168/* l4_hs */
169static struct omap_hwmod am33xx_l4_hs_hwmod = {
170 .name = "l4_hs",
171 .class = &am33xx_l4_hwmod_class,
172 .clkdm_name = "l4hs_clkdm",
173 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
174 .main_clk = "l4hs_gclk",
175 .prcm = {
176 .omap4 = {
177 .clkctrl_offs = AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET,
178 .modulemode = MODULEMODE_SWCTRL,
179 },
180 },
181};
182
183
184/* l4_wkup */
185static struct omap_hwmod am33xx_l4_wkup_hwmod = {
186 .name = "l4_wkup",
187 .class = &am33xx_l4_hwmod_class,
188 .clkdm_name = "l4_wkup_clkdm",
189 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
190 .prcm = {
191 .omap4 = {
192 .clkctrl_offs = AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
193 .modulemode = MODULEMODE_SWCTRL,
194 },
195 },
196};
197
198/* l4_fw */
199static struct omap_hwmod am33xx_l4_fw_hwmod = {
200 .name = "l4_fw",
201 .class = &am33xx_l4_hwmod_class,
202 .clkdm_name = "l4fw_clkdm",
203 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
204 .prcm = {
205 .omap4 = {
206 .clkctrl_offs = AM33XX_CM_PER_L4FW_CLKCTRL_OFFSET,
207 .modulemode = MODULEMODE_SWCTRL,
208 },
209 },
210};
211
212/*
213 * 'mpu' class
214 */
215static struct omap_hwmod_class am33xx_mpu_hwmod_class = {
216 .name = "mpu",
217};
218
219/* mpu */
220static struct omap_hwmod_irq_info am33xx_mpu_irqs[] = {
221 { .name = "emuint", .irq = 0 + OMAP_INTC_START, },
222 { .name = "commtx", .irq = 1 + OMAP_INTC_START, },
223 { .name = "commrx", .irq = 2 + OMAP_INTC_START, },
224 { .name = "bench", .irq = 3 + OMAP_INTC_START, },
225 { .irq = -1 },
226};
227
228static struct omap_hwmod am33xx_mpu_hwmod = {
229 .name = "mpu",
230 .class = &am33xx_mpu_hwmod_class,
231 .clkdm_name = "mpu_clkdm",
232 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
233 .mpu_irqs = am33xx_mpu_irqs,
234 .main_clk = "dpll_mpu_m2_ck",
235 .prcm = {
236 .omap4 = {
237 .clkctrl_offs = AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET,
238 .modulemode = MODULEMODE_SWCTRL,
239 },
240 },
241};
242
243/*
244 * 'wakeup m3' class
245 * Wakeup controller sub-system under wakeup domain
246 */
247static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {
248 .name = "wkup_m3",
249};
250
251static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
252 { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
253};
254
255static struct omap_hwmod_irq_info am33xx_wkup_m3_irqs[] = {
256 { .name = "txev", .irq = 78 + OMAP_INTC_START, },
257 { .irq = -1 },
258};
259
260/* wkup_m3 */
261static struct omap_hwmod am33xx_wkup_m3_hwmod = {
262 .name = "wkup_m3",
263 .class = &am33xx_wkup_m3_hwmod_class,
264 .clkdm_name = "l4_wkup_aon_clkdm",
265 .flags = HWMOD_INIT_NO_RESET, /* Keep hardreset asserted */
266 .mpu_irqs = am33xx_wkup_m3_irqs,
267 .main_clk = "dpll_core_m4_div2_ck",
268 .prcm = {
269 .omap4 = {
270 .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
271 .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET,
3077fe69 272 .rstst_offs = AM33XX_RM_WKUP_RSTST_OFFSET,
a2cfc509
VH
273 .modulemode = MODULEMODE_SWCTRL,
274 },
275 },
276 .rst_lines = am33xx_wkup_m3_resets,
277 .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
278};
279
280/*
281 * 'pru-icss' class
282 * Programmable Real-Time Unit and Industrial Communication Subsystem
283 */
284static struct omap_hwmod_class am33xx_pruss_hwmod_class = {
285 .name = "pruss",
286};
287
288static struct omap_hwmod_rst_info am33xx_pruss_resets[] = {
289 { .name = "pruss", .rst_shift = 1 },
290};
291
292static struct omap_hwmod_irq_info am33xx_pruss_irqs[] = {
293 { .name = "evtout0", .irq = 20 + OMAP_INTC_START, },
294 { .name = "evtout1", .irq = 21 + OMAP_INTC_START, },
295 { .name = "evtout2", .irq = 22 + OMAP_INTC_START, },
296 { .name = "evtout3", .irq = 23 + OMAP_INTC_START, },
297 { .name = "evtout4", .irq = 24 + OMAP_INTC_START, },
298 { .name = "evtout5", .irq = 25 + OMAP_INTC_START, },
299 { .name = "evtout6", .irq = 26 + OMAP_INTC_START, },
300 { .name = "evtout7", .irq = 27 + OMAP_INTC_START, },
301 { .irq = -1 },
302};
303
304/* pru-icss */
305/* Pseudo hwmod for reset control purpose only */
306static struct omap_hwmod am33xx_pruss_hwmod = {
307 .name = "pruss",
308 .class = &am33xx_pruss_hwmod_class,
309 .clkdm_name = "pruss_ocp_clkdm",
310 .mpu_irqs = am33xx_pruss_irqs,
311 .main_clk = "pruss_ocp_gclk",
312 .prcm = {
313 .omap4 = {
314 .clkctrl_offs = AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET,
315 .rstctrl_offs = AM33XX_RM_PER_RSTCTRL_OFFSET,
316 .modulemode = MODULEMODE_SWCTRL,
317 },
318 },
319 .rst_lines = am33xx_pruss_resets,
320 .rst_lines_cnt = ARRAY_SIZE(am33xx_pruss_resets),
321};
322
323/* gfx */
324/* Pseudo hwmod for reset control purpose only */
325static struct omap_hwmod_class am33xx_gfx_hwmod_class = {
326 .name = "gfx",
327};
328
329static struct omap_hwmod_rst_info am33xx_gfx_resets[] = {
330 { .name = "gfx", .rst_shift = 0 },
331};
332
333static struct omap_hwmod_irq_info am33xx_gfx_irqs[] = {
334 { .name = "gfxint", .irq = 37 + OMAP_INTC_START, },
335 { .irq = -1 },
336};
337
338static struct omap_hwmod am33xx_gfx_hwmod = {
339 .name = "gfx",
340 .class = &am33xx_gfx_hwmod_class,
341 .clkdm_name = "gfx_l3_clkdm",
342 .mpu_irqs = am33xx_gfx_irqs,
343 .main_clk = "gfx_fck_div_ck",
344 .prcm = {
345 .omap4 = {
346 .clkctrl_offs = AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET,
347 .rstctrl_offs = AM33XX_RM_GFX_RSTCTRL_OFFSET,
348 .modulemode = MODULEMODE_SWCTRL,
349 },
350 },
351 .rst_lines = am33xx_gfx_resets,
352 .rst_lines_cnt = ARRAY_SIZE(am33xx_gfx_resets),
353};
354
355/*
356 * 'prcm' class
357 * power and reset manager (whole prcm infrastructure)
358 */
359static struct omap_hwmod_class am33xx_prcm_hwmod_class = {
360 .name = "prcm",
361};
362
363/* prcm */
364static struct omap_hwmod am33xx_prcm_hwmod = {
365 .name = "prcm",
366 .class = &am33xx_prcm_hwmod_class,
367 .clkdm_name = "l4_wkup_clkdm",
368};
369
370/*
371 * 'adc/tsc' class
372 * TouchScreen Controller (Anolog-To-Digital Converter)
373 */
374static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = {
375 .rev_offs = 0x00,
376 .sysc_offs = 0x10,
377 .sysc_flags = SYSC_HAS_SIDLEMODE,
378 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
379 SIDLE_SMART_WKUP),
380 .sysc_fields = &omap_hwmod_sysc_type2,
381};
382
383static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = {
384 .name = "adc_tsc",
385 .sysc = &am33xx_adc_tsc_sysc,
386};
387
388static struct omap_hwmod_irq_info am33xx_adc_tsc_irqs[] = {
389 { .irq = 16 + OMAP_INTC_START, },
390 { .irq = -1 },
391};
392
393static struct omap_hwmod am33xx_adc_tsc_hwmod = {
394 .name = "adc_tsc",
395 .class = &am33xx_adc_tsc_hwmod_class,
396 .clkdm_name = "l4_wkup_clkdm",
397 .mpu_irqs = am33xx_adc_tsc_irqs,
398 .main_clk = "adc_tsc_fck",
399 .prcm = {
400 .omap4 = {
401 .clkctrl_offs = AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
402 .modulemode = MODULEMODE_SWCTRL,
403 },
404 },
405};
406
407/*
408 * Modules omap_hwmod structures
409 *
410 * The following IPs are excluded for the moment because:
411 * - They do not need an explicit SW control using omap_hwmod API.
412 * - They still need to be validated with the driver
413 * properly adapted to omap_hwmod / omap_device
414 *
415 * - cEFUSE (doesn't fall under any ocp_if)
416 * - clkdiv32k
417 * - debugss
a2cfc509
VH
418 * - ocp watch point
419 * - aes0
420 * - sha0
421 */
422#if 0
423/*
424 * 'cefuse' class
425 */
426static struct omap_hwmod_class am33xx_cefuse_hwmod_class = {
427 .name = "cefuse",
428};
429
430static struct omap_hwmod am33xx_cefuse_hwmod = {
431 .name = "cefuse",
432 .class = &am33xx_cefuse_hwmod_class,
433 .clkdm_name = "l4_cefuse_clkdm",
434 .main_clk = "cefuse_fck",
435 .prcm = {
436 .omap4 = {
437 .clkctrl_offs = AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET,
438 .modulemode = MODULEMODE_SWCTRL,
439 },
440 },
441};
442
443/*
444 * 'clkdiv32k' class
445 */
446static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = {
447 .name = "clkdiv32k",
448};
449
450static struct omap_hwmod am33xx_clkdiv32k_hwmod = {
451 .name = "clkdiv32k",
452 .class = &am33xx_clkdiv32k_hwmod_class,
453 .clkdm_name = "clk_24mhz_clkdm",
454 .main_clk = "clkdiv32k_ick",
455 .prcm = {
456 .omap4 = {
457 .clkctrl_offs = AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET,
458 .modulemode = MODULEMODE_SWCTRL,
459 },
460 },
461};
462
463/*
464 * 'debugss' class
465 * debug sub system
466 */
467static struct omap_hwmod_class am33xx_debugss_hwmod_class = {
468 .name = "debugss",
469};
470
471static struct omap_hwmod am33xx_debugss_hwmod = {
472 .name = "debugss",
473 .class = &am33xx_debugss_hwmod_class,
474 .clkdm_name = "l3_aon_clkdm",
475 .main_clk = "debugss_ick",
476 .prcm = {
477 .omap4 = {
478 .clkctrl_offs = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET,
479 .modulemode = MODULEMODE_SWCTRL,
480 },
481 },
482};
483
a2cfc509
VH
484/* ocpwp */
485static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {
486 .name = "ocpwp",
487};
488
489static struct omap_hwmod am33xx_ocpwp_hwmod = {
490 .name = "ocpwp",
491 .class = &am33xx_ocpwp_hwmod_class,
492 .clkdm_name = "l4ls_clkdm",
493 .main_clk = "l4ls_gclk",
494 .prcm = {
495 .omap4 = {
496 .clkctrl_offs = AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET,
497 .modulemode = MODULEMODE_SWCTRL,
498 },
499 },
500};
501
502/*
503 * 'aes' class
504 */
505static struct omap_hwmod_class am33xx_aes_hwmod_class = {
506 .name = "aes",
507};
508
509static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = {
510 { .irq = 102 + OMAP_INTC_START, },
511 { .irq = -1 },
512};
513
514static struct omap_hwmod am33xx_aes0_hwmod = {
515 .name = "aes0",
516 .class = &am33xx_aes_hwmod_class,
517 .clkdm_name = "l3_clkdm",
518 .mpu_irqs = am33xx_aes0_irqs,
519 .main_clk = "l3_gclk",
520 .prcm = {
521 .omap4 = {
522 .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,
523 .modulemode = MODULEMODE_SWCTRL,
524 },
525 },
526};
527
528/* sha0 */
529static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
530 .name = "sha0",
531};
532
533static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = {
534 { .irq = 108 + OMAP_INTC_START, },
535 { .irq = -1 },
536};
537
538static struct omap_hwmod am33xx_sha0_hwmod = {
539 .name = "sha0",
540 .class = &am33xx_sha0_hwmod_class,
541 .clkdm_name = "l3_clkdm",
542 .mpu_irqs = am33xx_sha0_irqs,
543 .main_clk = "l3_gclk",
544 .prcm = {
545 .omap4 = {
546 .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,
547 .modulemode = MODULEMODE_SWCTRL,
548 },
549 },
550};
551
552#endif
553
ca903b6f
VB
554/* ocmcram */
555static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
556 .name = "ocmcram",
557};
558
559static struct omap_hwmod am33xx_ocmcram_hwmod = {
560 .name = "ocmcram",
561 .class = &am33xx_ocmcram_hwmod_class,
562 .clkdm_name = "l3_clkdm",
563 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
564 .main_clk = "l3_gclk",
565 .prcm = {
566 .omap4 = {
567 .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
568 .modulemode = MODULEMODE_SWCTRL,
569 },
570 },
571};
572
a2cfc509
VH
573/* 'smartreflex' class */
574static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
575 .name = "smartreflex",
576};
577
578/* smartreflex0 */
579static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = {
580 { .irq = 120 + OMAP_INTC_START, },
581 { .irq = -1 },
582};
583
584static struct omap_hwmod am33xx_smartreflex0_hwmod = {
585 .name = "smartreflex0",
586 .class = &am33xx_smartreflex_hwmod_class,
587 .clkdm_name = "l4_wkup_clkdm",
588 .mpu_irqs = am33xx_smartreflex0_irqs,
589 .main_clk = "smartreflex0_fck",
590 .prcm = {
591 .omap4 = {
592 .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
593 .modulemode = MODULEMODE_SWCTRL,
594 },
595 },
596};
597
598/* smartreflex1 */
599static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = {
600 { .irq = 121 + OMAP_INTC_START, },
601 { .irq = -1 },
602};
603
604static struct omap_hwmod am33xx_smartreflex1_hwmod = {
605 .name = "smartreflex1",
606 .class = &am33xx_smartreflex_hwmod_class,
607 .clkdm_name = "l4_wkup_clkdm",
608 .mpu_irqs = am33xx_smartreflex1_irqs,
609 .main_clk = "smartreflex1_fck",
610 .prcm = {
611 .omap4 = {
612 .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
613 .modulemode = MODULEMODE_SWCTRL,
614 },
615 },
616};
617
618/*
619 * 'control' module class
620 */
621static struct omap_hwmod_class am33xx_control_hwmod_class = {
622 .name = "control",
623};
624
625static struct omap_hwmod_irq_info am33xx_control_irqs[] = {
626 { .irq = 8 + OMAP_INTC_START, },
627 { .irq = -1 },
628};
629
630static struct omap_hwmod am33xx_control_hwmod = {
631 .name = "control",
632 .class = &am33xx_control_hwmod_class,
633 .clkdm_name = "l4_wkup_clkdm",
634 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
635 .mpu_irqs = am33xx_control_irqs,
636 .main_clk = "dpll_core_m4_div2_ck",
637 .prcm = {
638 .omap4 = {
639 .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
640 .modulemode = MODULEMODE_SWCTRL,
641 },
642 },
643};
644
645/*
646 * 'cpgmac' class
647 * cpsw/cpgmac sub system
648 */
649static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {
650 .rev_offs = 0x0,
651 .sysc_offs = 0x8,
652 .syss_offs = 0x4,
653 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
654 SYSS_HAS_RESET_STATUS),
655 .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
656 MSTANDBY_NO),
657 .sysc_fields = &omap_hwmod_sysc_type3,
658};
659
660static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {
661 .name = "cpgmac0",
662 .sysc = &am33xx_cpgmac_sysc,
663};
664
665static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {
666 { .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, },
667 { .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, },
668 { .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, },
669 { .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, },
670 { .irq = -1 },
671};
672
673static struct omap_hwmod am33xx_cpgmac0_hwmod = {
674 .name = "cpgmac0",
675 .class = &am33xx_cpgmac0_hwmod_class,
676 .clkdm_name = "cpsw_125mhz_clkdm",
70384a6a 677 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
a2cfc509
VH
678 .mpu_irqs = am33xx_cpgmac0_irqs,
679 .main_clk = "cpsw_125mhz_gclk",
680 .prcm = {
681 .omap4 = {
682 .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,
683 .modulemode = MODULEMODE_SWCTRL,
684 },
685 },
686};
687
70384a6a
M
688/*
689 * mdio class
690 */
691static struct omap_hwmod_class am33xx_mdio_hwmod_class = {
692 .name = "davinci_mdio",
693};
694
695static struct omap_hwmod am33xx_mdio_hwmod = {
696 .name = "davinci_mdio",
697 .class = &am33xx_mdio_hwmod_class,
698 .clkdm_name = "cpsw_125mhz_clkdm",
699 .main_clk = "cpsw_125mhz_gclk",
700};
701
a2cfc509
VH
702/*
703 * dcan class
704 */
705static struct omap_hwmod_class am33xx_dcan_hwmod_class = {
706 .name = "d_can",
707};
708
709/* dcan0 */
710static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = {
711 { .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, },
712 { .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, },
713 { .irq = -1 },
714};
715
716static struct omap_hwmod am33xx_dcan0_hwmod = {
717 .name = "d_can0",
718 .class = &am33xx_dcan_hwmod_class,
719 .clkdm_name = "l4ls_clkdm",
720 .mpu_irqs = am33xx_dcan0_irqs,
721 .main_clk = "dcan0_fck",
722 .prcm = {
723 .omap4 = {
724 .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,
725 .modulemode = MODULEMODE_SWCTRL,
726 },
727 },
728};
729
730/* dcan1 */
731static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = {
732 { .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, },
733 { .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, },
734 { .irq = -1 },
735};
736static struct omap_hwmod am33xx_dcan1_hwmod = {
737 .name = "d_can1",
738 .class = &am33xx_dcan_hwmod_class,
739 .clkdm_name = "l4ls_clkdm",
740 .mpu_irqs = am33xx_dcan1_irqs,
741 .main_clk = "dcan1_fck",
742 .prcm = {
743 .omap4 = {
744 .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,
745 .modulemode = MODULEMODE_SWCTRL,
746 },
747 },
748};
749
750/* elm */
751static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {
752 .rev_offs = 0x0000,
753 .sysc_offs = 0x0010,
754 .syss_offs = 0x0014,
755 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
756 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
757 SYSS_HAS_RESET_STATUS),
758 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
759 .sysc_fields = &omap_hwmod_sysc_type1,
760};
761
762static struct omap_hwmod_class am33xx_elm_hwmod_class = {
763 .name = "elm",
764 .sysc = &am33xx_elm_sysc,
765};
766
767static struct omap_hwmod_irq_info am33xx_elm_irqs[] = {
768 { .irq = 4 + OMAP_INTC_START, },
769 { .irq = -1 },
770};
771
772static struct omap_hwmod am33xx_elm_hwmod = {
773 .name = "elm",
774 .class = &am33xx_elm_hwmod_class,
775 .clkdm_name = "l4ls_clkdm",
776 .mpu_irqs = am33xx_elm_irqs,
777 .main_clk = "l4ls_gclk",
778 .prcm = {
779 .omap4 = {
780 .clkctrl_offs = AM33XX_CM_PER_ELM_CLKCTRL_OFFSET,
781 .modulemode = MODULEMODE_SWCTRL,
782 },
783 },
784};
785
9652d19a 786/* pwmss */
a2cfc509
VH
787static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = {
788 .rev_offs = 0x0,
789 .sysc_offs = 0x4,
790 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
791 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
792 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
793 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
794 .sysc_fields = &omap_hwmod_sysc_type2,
795};
796
797static struct omap_hwmod_class am33xx_epwmss_hwmod_class = {
798 .name = "epwmss",
799 .sysc = &am33xx_epwmss_sysc,
800};
801
9652d19a
PA
802static struct omap_hwmod_class am33xx_ecap_hwmod_class = {
803 .name = "ecap",
a2cfc509
VH
804};
805
9652d19a
PA
806static struct omap_hwmod_class am33xx_eqep_hwmod_class = {
807 .name = "eqep",
a2cfc509
VH
808};
809
9652d19a
PA
810static struct omap_hwmod_class am33xx_ehrpwm_hwmod_class = {
811 .name = "ehrpwm",
a2cfc509
VH
812};
813
9652d19a
PA
814/* epwmss0 */
815static struct omap_hwmod am33xx_epwmss0_hwmod = {
816 .name = "epwmss0",
a2cfc509
VH
817 .class = &am33xx_epwmss_hwmod_class,
818 .clkdm_name = "l4ls_clkdm",
a2cfc509
VH
819 .main_clk = "l4ls_gclk",
820 .prcm = {
821 .omap4 = {
9652d19a 822 .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
a2cfc509
VH
823 .modulemode = MODULEMODE_SWCTRL,
824 },
825 },
826};
827
9652d19a
PA
828/* ecap0 */
829static struct omap_hwmod_irq_info am33xx_ecap0_irqs[] = {
830 { .irq = 31 + OMAP_INTC_START, },
a2cfc509
VH
831 { .irq = -1 },
832};
833
9652d19a
PA
834static struct omap_hwmod am33xx_ecap0_hwmod = {
835 .name = "ecap0",
836 .class = &am33xx_ecap_hwmod_class,
a2cfc509 837 .clkdm_name = "l4ls_clkdm",
9652d19a 838 .mpu_irqs = am33xx_ecap0_irqs,
a2cfc509 839 .main_clk = "l4ls_gclk",
a2cfc509
VH
840};
841
bee76659
PA
842/* eqep0 */
843static struct omap_hwmod_irq_info am33xx_eqep0_irqs[] = {
844 { .irq = 79 + OMAP_INTC_START, },
845 { .irq = -1 },
846};
847
848static struct omap_hwmod am33xx_eqep0_hwmod = {
849 .name = "eqep0",
9652d19a 850 .class = &am33xx_eqep_hwmod_class,
bee76659
PA
851 .clkdm_name = "l4ls_clkdm",
852 .mpu_irqs = am33xx_eqep0_irqs,
853 .main_clk = "l4ls_gclk",
bee76659
PA
854};
855
9652d19a
PA
856/* ehrpwm0 */
857static struct omap_hwmod_irq_info am33xx_ehrpwm0_irqs[] = {
858 { .name = "int", .irq = 86 + OMAP_INTC_START, },
859 { .name = "tzint", .irq = 58 + OMAP_INTC_START, },
bee76659
PA
860 { .irq = -1 },
861};
862
9652d19a
PA
863static struct omap_hwmod am33xx_ehrpwm0_hwmod = {
864 .name = "ehrpwm0",
865 .class = &am33xx_ehrpwm_hwmod_class,
866 .clkdm_name = "l4ls_clkdm",
867 .mpu_irqs = am33xx_ehrpwm0_irqs,
868 .main_clk = "l4ls_gclk",
869};
870
871/* epwmss1 */
872static struct omap_hwmod am33xx_epwmss1_hwmod = {
873 .name = "epwmss1",
bee76659
PA
874 .class = &am33xx_epwmss_hwmod_class,
875 .clkdm_name = "l4ls_clkdm",
bee76659
PA
876 .main_clk = "l4ls_gclk",
877 .prcm = {
878 .omap4 = {
879 .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
880 .modulemode = MODULEMODE_SWCTRL,
881 },
882 },
883};
884
9652d19a
PA
885/* ecap1 */
886static struct omap_hwmod_irq_info am33xx_ecap1_irqs[] = {
887 { .irq = 47 + OMAP_INTC_START, },
bee76659
PA
888 { .irq = -1 },
889};
890
9652d19a
PA
891static struct omap_hwmod am33xx_ecap1_hwmod = {
892 .name = "ecap1",
893 .class = &am33xx_ecap_hwmod_class,
bee76659 894 .clkdm_name = "l4ls_clkdm",
9652d19a 895 .mpu_irqs = am33xx_ecap1_irqs,
bee76659 896 .main_clk = "l4ls_gclk",
bee76659
PA
897};
898
9652d19a
PA
899/* eqep1 */
900static struct omap_hwmod_irq_info am33xx_eqep1_irqs[] = {
901 { .irq = 88 + OMAP_INTC_START, },
a2cfc509
VH
902 { .irq = -1 },
903};
904
9652d19a
PA
905static struct omap_hwmod am33xx_eqep1_hwmod = {
906 .name = "eqep1",
907 .class = &am33xx_eqep_hwmod_class,
a2cfc509 908 .clkdm_name = "l4ls_clkdm",
9652d19a 909 .mpu_irqs = am33xx_eqep1_irqs,
a2cfc509 910 .main_clk = "l4ls_gclk",
a2cfc509
VH
911};
912
9652d19a
PA
913/* ehrpwm1 */
914static struct omap_hwmod_irq_info am33xx_ehrpwm1_irqs[] = {
915 { .name = "int", .irq = 87 + OMAP_INTC_START, },
916 { .name = "tzint", .irq = 59 + OMAP_INTC_START, },
a2cfc509
VH
917 { .irq = -1 },
918};
919
9652d19a
PA
920static struct omap_hwmod am33xx_ehrpwm1_hwmod = {
921 .name = "ehrpwm1",
922 .class = &am33xx_ehrpwm_hwmod_class,
923 .clkdm_name = "l4ls_clkdm",
924 .mpu_irqs = am33xx_ehrpwm1_irqs,
925 .main_clk = "l4ls_gclk",
926};
927
928/* epwmss2 */
929static struct omap_hwmod am33xx_epwmss2_hwmod = {
930 .name = "epwmss2",
a2cfc509
VH
931 .class = &am33xx_epwmss_hwmod_class,
932 .clkdm_name = "l4ls_clkdm",
a2cfc509
VH
933 .main_clk = "l4ls_gclk",
934 .prcm = {
935 .omap4 = {
9652d19a 936 .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
a2cfc509
VH
937 .modulemode = MODULEMODE_SWCTRL,
938 },
939 },
940};
941
942/* ecap2 */
943static struct omap_hwmod_irq_info am33xx_ecap2_irqs[] = {
944 { .irq = 61 + OMAP_INTC_START, },
945 { .irq = -1 },
946};
947
948static struct omap_hwmod am33xx_ecap2_hwmod = {
949 .name = "ecap2",
9652d19a
PA
950 .class = &am33xx_ecap_hwmod_class,
951 .clkdm_name = "l4ls_clkdm",
a2cfc509 952 .mpu_irqs = am33xx_ecap2_irqs,
9652d19a
PA
953 .main_clk = "l4ls_gclk",
954};
955
956/* eqep2 */
957static struct omap_hwmod_irq_info am33xx_eqep2_irqs[] = {
958 { .irq = 89 + OMAP_INTC_START, },
959 { .irq = -1 },
960};
961
962static struct omap_hwmod am33xx_eqep2_hwmod = {
963 .name = "eqep2",
964 .class = &am33xx_eqep_hwmod_class,
a2cfc509 965 .clkdm_name = "l4ls_clkdm",
9652d19a
PA
966 .mpu_irqs = am33xx_eqep2_irqs,
967 .main_clk = "l4ls_gclk",
968};
969
970/* ehrpwm2 */
971static struct omap_hwmod_irq_info am33xx_ehrpwm2_irqs[] = {
972 { .name = "int", .irq = 39 + OMAP_INTC_START, },
973 { .name = "tzint", .irq = 60 + OMAP_INTC_START, },
974 { .irq = -1 },
975};
976
977static struct omap_hwmod am33xx_ehrpwm2_hwmod = {
978 .name = "ehrpwm2",
979 .class = &am33xx_ehrpwm_hwmod_class,
980 .clkdm_name = "l4ls_clkdm",
981 .mpu_irqs = am33xx_ehrpwm2_irqs,
a2cfc509 982 .main_clk = "l4ls_gclk",
a2cfc509
VH
983};
984
985/*
986 * 'gpio' class: for gpio 0,1,2,3
987 */
988static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = {
989 .rev_offs = 0x0000,
990 .sysc_offs = 0x0010,
991 .syss_offs = 0x0114,
992 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
993 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
994 SYSS_HAS_RESET_STATUS),
995 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
996 SIDLE_SMART_WKUP),
997 .sysc_fields = &omap_hwmod_sysc_type1,
998};
999
1000static struct omap_hwmod_class am33xx_gpio_hwmod_class = {
1001 .name = "gpio",
1002 .sysc = &am33xx_gpio_sysc,
1003 .rev = 2,
1004};
1005
1006static struct omap_gpio_dev_attr gpio_dev_attr = {
1007 .bank_width = 32,
1008 .dbck_flag = true,
1009};
1010
1011/* gpio0 */
1012static struct omap_hwmod_opt_clk gpio0_opt_clks[] = {
1013 { .role = "dbclk", .clk = "gpio0_dbclk" },
1014};
1015
1016static struct omap_hwmod_irq_info am33xx_gpio0_irqs[] = {
1017 { .irq = 96 + OMAP_INTC_START, },
1018 { .irq = -1 },
1019};
1020
1021static struct omap_hwmod am33xx_gpio0_hwmod = {
1022 .name = "gpio1",
1023 .class = &am33xx_gpio_hwmod_class,
1024 .clkdm_name = "l4_wkup_clkdm",
1025 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1026 .mpu_irqs = am33xx_gpio0_irqs,
1027 .main_clk = "dpll_core_m4_div2_ck",
1028 .prcm = {
1029 .omap4 = {
1030 .clkctrl_offs = AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET,
1031 .modulemode = MODULEMODE_SWCTRL,
1032 },
1033 },
1034 .opt_clks = gpio0_opt_clks,
1035 .opt_clks_cnt = ARRAY_SIZE(gpio0_opt_clks),
1036 .dev_attr = &gpio_dev_attr,
1037};
1038
1039/* gpio1 */
1040static struct omap_hwmod_irq_info am33xx_gpio1_irqs[] = {
1041 { .irq = 98 + OMAP_INTC_START, },
1042 { .irq = -1 },
1043};
1044
1045static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
1046 { .role = "dbclk", .clk = "gpio1_dbclk" },
1047};
1048
1049static struct omap_hwmod am33xx_gpio1_hwmod = {
1050 .name = "gpio2",
1051 .class = &am33xx_gpio_hwmod_class,
1052 .clkdm_name = "l4ls_clkdm",
1053 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1054 .mpu_irqs = am33xx_gpio1_irqs,
1055 .main_clk = "l4ls_gclk",
1056 .prcm = {
1057 .omap4 = {
1058 .clkctrl_offs = AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET,
1059 .modulemode = MODULEMODE_SWCTRL,
1060 },
1061 },
1062 .opt_clks = gpio1_opt_clks,
1063 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1064 .dev_attr = &gpio_dev_attr,
1065};
1066
1067/* gpio2 */
1068static struct omap_hwmod_irq_info am33xx_gpio2_irqs[] = {
1069 { .irq = 32 + OMAP_INTC_START, },
1070 { .irq = -1 },
1071};
1072
1073static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
1074 { .role = "dbclk", .clk = "gpio2_dbclk" },
1075};
1076
1077static struct omap_hwmod am33xx_gpio2_hwmod = {
1078 .name = "gpio3",
1079 .class = &am33xx_gpio_hwmod_class,
1080 .clkdm_name = "l4ls_clkdm",
1081 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1082 .mpu_irqs = am33xx_gpio2_irqs,
1083 .main_clk = "l4ls_gclk",
1084 .prcm = {
1085 .omap4 = {
1086 .clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,
1087 .modulemode = MODULEMODE_SWCTRL,
1088 },
1089 },
1090 .opt_clks = gpio2_opt_clks,
1091 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1092 .dev_attr = &gpio_dev_attr,
1093};
1094
1095/* gpio3 */
1096static struct omap_hwmod_irq_info am33xx_gpio3_irqs[] = {
1097 { .irq = 62 + OMAP_INTC_START, },
1098 { .irq = -1 },
1099};
1100
1101static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
1102 { .role = "dbclk", .clk = "gpio3_dbclk" },
1103};
1104
1105static struct omap_hwmod am33xx_gpio3_hwmod = {
1106 .name = "gpio4",
1107 .class = &am33xx_gpio_hwmod_class,
1108 .clkdm_name = "l4ls_clkdm",
1109 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1110 .mpu_irqs = am33xx_gpio3_irqs,
1111 .main_clk = "l4ls_gclk",
1112 .prcm = {
1113 .omap4 = {
1114 .clkctrl_offs = AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET,
1115 .modulemode = MODULEMODE_SWCTRL,
1116 },
1117 },
1118 .opt_clks = gpio3_opt_clks,
1119 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1120 .dev_attr = &gpio_dev_attr,
1121};
1122
1123/* gpmc */
1124static struct omap_hwmod_class_sysconfig gpmc_sysc = {
1125 .rev_offs = 0x0,
1126 .sysc_offs = 0x10,
1127 .syss_offs = 0x14,
1128 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1129 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1130 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1131 .sysc_fields = &omap_hwmod_sysc_type1,
1132};
1133
1134static struct omap_hwmod_class am33xx_gpmc_hwmod_class = {
1135 .name = "gpmc",
1136 .sysc = &gpmc_sysc,
1137};
1138
1139static struct omap_hwmod_irq_info am33xx_gpmc_irqs[] = {
1140 { .irq = 100 + OMAP_INTC_START, },
1141 { .irq = -1 },
1142};
1143
1144static struct omap_hwmod am33xx_gpmc_hwmod = {
1145 .name = "gpmc",
1146 .class = &am33xx_gpmc_hwmod_class,
1147 .clkdm_name = "l3s_clkdm",
1148 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1149 .mpu_irqs = am33xx_gpmc_irqs,
1150 .main_clk = "l3s_gclk",
1151 .prcm = {
1152 .omap4 = {
1153 .clkctrl_offs = AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET,
1154 .modulemode = MODULEMODE_SWCTRL,
1155 },
1156 },
1157};
1158
1159/* 'i2c' class */
1160static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = {
1161 .sysc_offs = 0x0010,
1162 .syss_offs = 0x0090,
1163 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1164 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1165 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1166 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1167 SIDLE_SMART_WKUP),
1168 .sysc_fields = &omap_hwmod_sysc_type1,
1169};
1170
1171static struct omap_hwmod_class i2c_class = {
1172 .name = "i2c",
1173 .sysc = &am33xx_i2c_sysc,
1174 .rev = OMAP_I2C_IP_VERSION_2,
1175 .reset = &omap_i2c_reset,
1176};
1177
1178static struct omap_i2c_dev_attr i2c_dev_attr = {
972deb4f 1179 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
a2cfc509
VH
1180};
1181
1182/* i2c1 */
1183static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
1184 { .irq = 70 + OMAP_INTC_START, },
1185 { .irq = -1 },
1186};
1187
1188static struct omap_hwmod_dma_info i2c1_edma_reqs[] = {
1189 { .name = "tx", .dma_req = 0, },
1190 { .name = "rx", .dma_req = 0, },
1191 { .dma_req = -1 }
1192};
1193
1194static struct omap_hwmod am33xx_i2c1_hwmod = {
1195 .name = "i2c1",
1196 .class = &i2c_class,
1197 .clkdm_name = "l4_wkup_clkdm",
1198 .mpu_irqs = i2c1_mpu_irqs,
1199 .sdma_reqs = i2c1_edma_reqs,
1200 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1201 .main_clk = "dpll_per_m2_div4_wkupdm_ck",
1202 .prcm = {
1203 .omap4 = {
1204 .clkctrl_offs = AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET,
1205 .modulemode = MODULEMODE_SWCTRL,
1206 },
1207 },
1208 .dev_attr = &i2c_dev_attr,
1209};
1210
1211/* i2c1 */
1212static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
1213 { .irq = 71 + OMAP_INTC_START, },
1214 { .irq = -1 },
1215};
1216
1217static struct omap_hwmod_dma_info i2c2_edma_reqs[] = {
1218 { .name = "tx", .dma_req = 0, },
1219 { .name = "rx", .dma_req = 0, },
1220 { .dma_req = -1 }
1221};
1222
1223static struct omap_hwmod am33xx_i2c2_hwmod = {
1224 .name = "i2c2",
1225 .class = &i2c_class,
1226 .clkdm_name = "l4ls_clkdm",
1227 .mpu_irqs = i2c2_mpu_irqs,
1228 .sdma_reqs = i2c2_edma_reqs,
1229 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1230 .main_clk = "dpll_per_m2_div4_ck",
1231 .prcm = {
1232 .omap4 = {
1233 .clkctrl_offs = AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET,
1234 .modulemode = MODULEMODE_SWCTRL,
1235 },
1236 },
1237 .dev_attr = &i2c_dev_attr,
1238};
1239
1240/* i2c3 */
1241static struct omap_hwmod_dma_info i2c3_edma_reqs[] = {
1242 { .name = "tx", .dma_req = 0, },
1243 { .name = "rx", .dma_req = 0, },
1244 { .dma_req = -1 }
1245};
1246
1247static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
1248 { .irq = 30 + OMAP_INTC_START, },
1249 { .irq = -1 },
1250};
1251
1252static struct omap_hwmod am33xx_i2c3_hwmod = {
1253 .name = "i2c3",
1254 .class = &i2c_class,
1255 .clkdm_name = "l4ls_clkdm",
1256 .mpu_irqs = i2c3_mpu_irqs,
1257 .sdma_reqs = i2c3_edma_reqs,
1258 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
1259 .main_clk = "dpll_per_m2_div4_ck",
1260 .prcm = {
1261 .omap4 = {
1262 .clkctrl_offs = AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET,
1263 .modulemode = MODULEMODE_SWCTRL,
1264 },
1265 },
1266 .dev_attr = &i2c_dev_attr,
1267};
1268
1269
1270/* lcdc */
1271static struct omap_hwmod_class_sysconfig lcdc_sysc = {
1272 .rev_offs = 0x0,
1273 .sysc_offs = 0x54,
1274 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
1275 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1276 .sysc_fields = &omap_hwmod_sysc_type2,
1277};
1278
1279static struct omap_hwmod_class am33xx_lcdc_hwmod_class = {
1280 .name = "lcdc",
1281 .sysc = &lcdc_sysc,
1282};
1283
1284static struct omap_hwmod_irq_info am33xx_lcdc_irqs[] = {
1285 { .irq = 36 + OMAP_INTC_START, },
1286 { .irq = -1 },
1287};
1288
1289static struct omap_hwmod am33xx_lcdc_hwmod = {
1290 .name = "lcdc",
1291 .class = &am33xx_lcdc_hwmod_class,
1292 .clkdm_name = "lcdc_clkdm",
1293 .mpu_irqs = am33xx_lcdc_irqs,
1294 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1295 .main_clk = "lcd_gclk",
1296 .prcm = {
1297 .omap4 = {
1298 .clkctrl_offs = AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET,
1299 .modulemode = MODULEMODE_SWCTRL,
1300 },
1301 },
1302};
1303
1304/*
1305 * 'mailbox' class
1306 * mailbox module allowing communication between the on-chip processors using a
1307 * queued mailbox-interrupt mechanism.
1308 */
1309static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = {
1310 .rev_offs = 0x0000,
1311 .sysc_offs = 0x0010,
1312 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1313 SYSC_HAS_SOFTRESET),
1314 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1315 .sysc_fields = &omap_hwmod_sysc_type2,
1316};
1317
1318static struct omap_hwmod_class am33xx_mailbox_hwmod_class = {
1319 .name = "mailbox",
1320 .sysc = &am33xx_mailbox_sysc,
1321};
1322
1323static struct omap_hwmod_irq_info am33xx_mailbox_irqs[] = {
1324 { .irq = 77 + OMAP_INTC_START, },
1325 { .irq = -1 },
1326};
1327
1328static struct omap_hwmod am33xx_mailbox_hwmod = {
1329 .name = "mailbox",
1330 .class = &am33xx_mailbox_hwmod_class,
1331 .clkdm_name = "l4ls_clkdm",
1332 .mpu_irqs = am33xx_mailbox_irqs,
1333 .main_clk = "l4ls_gclk",
1334 .prcm = {
1335 .omap4 = {
1336 .clkctrl_offs = AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET,
1337 .modulemode = MODULEMODE_SWCTRL,
1338 },
1339 },
1340};
1341
1342/*
1343 * 'mcasp' class
1344 */
1345static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = {
1346 .rev_offs = 0x0,
1347 .sysc_offs = 0x4,
1348 .sysc_flags = SYSC_HAS_SIDLEMODE,
1349 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1350 .sysc_fields = &omap_hwmod_sysc_type3,
1351};
1352
1353static struct omap_hwmod_class am33xx_mcasp_hwmod_class = {
1354 .name = "mcasp",
1355 .sysc = &am33xx_mcasp_sysc,
1356};
1357
1358/* mcasp0 */
1359static struct omap_hwmod_irq_info am33xx_mcasp0_irqs[] = {
1360 { .name = "ax", .irq = 80 + OMAP_INTC_START, },
1361 { .name = "ar", .irq = 81 + OMAP_INTC_START, },
1362 { .irq = -1 },
1363};
1364
1365static struct omap_hwmod_dma_info am33xx_mcasp0_edma_reqs[] = {
1366 { .name = "tx", .dma_req = 8, },
1367 { .name = "rx", .dma_req = 9, },
1368 { .dma_req = -1 }
1369};
1370
1371static struct omap_hwmod am33xx_mcasp0_hwmod = {
1372 .name = "mcasp0",
1373 .class = &am33xx_mcasp_hwmod_class,
1374 .clkdm_name = "l3s_clkdm",
1375 .mpu_irqs = am33xx_mcasp0_irqs,
1376 .sdma_reqs = am33xx_mcasp0_edma_reqs,
1377 .main_clk = "mcasp0_fck",
1378 .prcm = {
1379 .omap4 = {
1380 .clkctrl_offs = AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET,
1381 .modulemode = MODULEMODE_SWCTRL,
1382 },
1383 },
1384};
1385
1386/* mcasp1 */
1387static struct omap_hwmod_irq_info am33xx_mcasp1_irqs[] = {
1388 { .name = "ax", .irq = 82 + OMAP_INTC_START, },
1389 { .name = "ar", .irq = 83 + OMAP_INTC_START, },
1390 { .irq = -1 },
1391};
1392
1393static struct omap_hwmod_dma_info am33xx_mcasp1_edma_reqs[] = {
1394 { .name = "tx", .dma_req = 10, },
1395 { .name = "rx", .dma_req = 11, },
1396 { .dma_req = -1 }
1397};
1398
1399static struct omap_hwmod am33xx_mcasp1_hwmod = {
1400 .name = "mcasp1",
1401 .class = &am33xx_mcasp_hwmod_class,
1402 .clkdm_name = "l3s_clkdm",
1403 .mpu_irqs = am33xx_mcasp1_irqs,
1404 .sdma_reqs = am33xx_mcasp1_edma_reqs,
1405 .main_clk = "mcasp1_fck",
1406 .prcm = {
1407 .omap4 = {
1408 .clkctrl_offs = AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET,
1409 .modulemode = MODULEMODE_SWCTRL,
1410 },
1411 },
1412};
1413
1414/* 'mmc' class */
1415static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {
1416 .rev_offs = 0x1fc,
1417 .sysc_offs = 0x10,
1418 .syss_offs = 0x14,
1419 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1420 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1421 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1422 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1423 .sysc_fields = &omap_hwmod_sysc_type1,
1424};
1425
1426static struct omap_hwmod_class am33xx_mmc_hwmod_class = {
1427 .name = "mmc",
1428 .sysc = &am33xx_mmc_sysc,
1429};
1430
1431/* mmc0 */
1432static struct omap_hwmod_irq_info am33xx_mmc0_irqs[] = {
1433 { .irq = 64 + OMAP_INTC_START, },
1434 { .irq = -1 },
1435};
1436
1437static struct omap_hwmod_dma_info am33xx_mmc0_edma_reqs[] = {
1438 { .name = "tx", .dma_req = 24, },
1439 { .name = "rx", .dma_req = 25, },
1440 { .dma_req = -1 }
1441};
1442
1443static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = {
1444 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1445};
1446
1447static struct omap_hwmod am33xx_mmc0_hwmod = {
1448 .name = "mmc1",
1449 .class = &am33xx_mmc_hwmod_class,
1450 .clkdm_name = "l4ls_clkdm",
1451 .mpu_irqs = am33xx_mmc0_irqs,
1452 .sdma_reqs = am33xx_mmc0_edma_reqs,
1453 .main_clk = "mmc_clk",
1454 .prcm = {
1455 .omap4 = {
1456 .clkctrl_offs = AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET,
1457 .modulemode = MODULEMODE_SWCTRL,
1458 },
1459 },
1460 .dev_attr = &am33xx_mmc0_dev_attr,
1461};
1462
1463/* mmc1 */
1464static struct omap_hwmod_irq_info am33xx_mmc1_irqs[] = {
1465 { .irq = 28 + OMAP_INTC_START, },
1466 { .irq = -1 },
1467};
1468
1469static struct omap_hwmod_dma_info am33xx_mmc1_edma_reqs[] = {
1470 { .name = "tx", .dma_req = 2, },
1471 { .name = "rx", .dma_req = 3, },
1472 { .dma_req = -1 }
1473};
1474
1475static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = {
1476 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1477};
1478
1479static struct omap_hwmod am33xx_mmc1_hwmod = {
1480 .name = "mmc2",
1481 .class = &am33xx_mmc_hwmod_class,
1482 .clkdm_name = "l4ls_clkdm",
1483 .mpu_irqs = am33xx_mmc1_irqs,
1484 .sdma_reqs = am33xx_mmc1_edma_reqs,
1485 .main_clk = "mmc_clk",
1486 .prcm = {
1487 .omap4 = {
1488 .clkctrl_offs = AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET,
1489 .modulemode = MODULEMODE_SWCTRL,
1490 },
1491 },
1492 .dev_attr = &am33xx_mmc1_dev_attr,
1493};
1494
1495/* mmc2 */
1496static struct omap_hwmod_irq_info am33xx_mmc2_irqs[] = {
1497 { .irq = 29 + OMAP_INTC_START, },
1498 { .irq = -1 },
1499};
1500
1501static struct omap_hwmod_dma_info am33xx_mmc2_edma_reqs[] = {
1502 { .name = "tx", .dma_req = 64, },
1503 { .name = "rx", .dma_req = 65, },
1504 { .dma_req = -1 }
1505};
1506
1507static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = {
1508 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1509};
1510static struct omap_hwmod am33xx_mmc2_hwmod = {
1511 .name = "mmc3",
1512 .class = &am33xx_mmc_hwmod_class,
1513 .clkdm_name = "l3s_clkdm",
1514 .mpu_irqs = am33xx_mmc2_irqs,
1515 .sdma_reqs = am33xx_mmc2_edma_reqs,
1516 .main_clk = "mmc_clk",
1517 .prcm = {
1518 .omap4 = {
1519 .clkctrl_offs = AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET,
1520 .modulemode = MODULEMODE_SWCTRL,
1521 },
1522 },
1523 .dev_attr = &am33xx_mmc2_dev_attr,
1524};
1525
1526/*
1527 * 'rtc' class
1528 * rtc subsystem
1529 */
1530static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {
1531 .rev_offs = 0x0074,
1532 .sysc_offs = 0x0078,
1533 .sysc_flags = SYSC_HAS_SIDLEMODE,
1534 .idlemodes = (SIDLE_FORCE | SIDLE_NO |
1535 SIDLE_SMART | SIDLE_SMART_WKUP),
1536 .sysc_fields = &omap_hwmod_sysc_type3,
1537};
1538
1539static struct omap_hwmod_class am33xx_rtc_hwmod_class = {
1540 .name = "rtc",
1541 .sysc = &am33xx_rtc_sysc,
1542};
1543
1544static struct omap_hwmod_irq_info am33xx_rtc_irqs[] = {
1545 { .name = "rtcint", .irq = 75 + OMAP_INTC_START, },
1546 { .name = "rtcalarmint", .irq = 76 + OMAP_INTC_START, },
1547 { .irq = -1 },
1548};
1549
1550static struct omap_hwmod am33xx_rtc_hwmod = {
1551 .name = "rtc",
1552 .class = &am33xx_rtc_hwmod_class,
1553 .clkdm_name = "l4_rtc_clkdm",
1554 .mpu_irqs = am33xx_rtc_irqs,
1555 .main_clk = "clk_32768_ck",
1556 .prcm = {
1557 .omap4 = {
1558 .clkctrl_offs = AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET,
1559 .modulemode = MODULEMODE_SWCTRL,
1560 },
1561 },
1562};
1563
1564/* 'spi' class */
1565static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = {
1566 .rev_offs = 0x0000,
1567 .sysc_offs = 0x0110,
1568 .syss_offs = 0x0114,
1569 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1570 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1571 SYSS_HAS_RESET_STATUS),
1572 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1573 .sysc_fields = &omap_hwmod_sysc_type1,
1574};
1575
1576static struct omap_hwmod_class am33xx_spi_hwmod_class = {
1577 .name = "mcspi",
1578 .sysc = &am33xx_mcspi_sysc,
1579 .rev = OMAP4_MCSPI_REV,
1580};
1581
1582/* spi0 */
1583static struct omap_hwmod_irq_info am33xx_spi0_irqs[] = {
1584 { .irq = 65 + OMAP_INTC_START, },
1585 { .irq = -1 },
1586};
1587
1588static struct omap_hwmod_dma_info am33xx_mcspi0_edma_reqs[] = {
1589 { .name = "rx0", .dma_req = 17 },
1590 { .name = "tx0", .dma_req = 16 },
1591 { .name = "rx1", .dma_req = 19 },
1592 { .name = "tx1", .dma_req = 18 },
1593 { .dma_req = -1 }
1594};
1595
1596static struct omap2_mcspi_dev_attr mcspi_attrib = {
1597 .num_chipselect = 2,
1598};
1599static struct omap_hwmod am33xx_spi0_hwmod = {
1600 .name = "spi0",
1601 .class = &am33xx_spi_hwmod_class,
1602 .clkdm_name = "l4ls_clkdm",
1603 .mpu_irqs = am33xx_spi0_irqs,
1604 .sdma_reqs = am33xx_mcspi0_edma_reqs,
1605 .main_clk = "dpll_per_m2_div4_ck",
1606 .prcm = {
1607 .omap4 = {
1608 .clkctrl_offs = AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET,
1609 .modulemode = MODULEMODE_SWCTRL,
1610 },
1611 },
1612 .dev_attr = &mcspi_attrib,
1613};
1614
1615/* spi1 */
1616static struct omap_hwmod_irq_info am33xx_spi1_irqs[] = {
1617 { .irq = 125 + OMAP_INTC_START, },
1618 { .irq = -1 },
1619};
1620
1621static struct omap_hwmod_dma_info am33xx_mcspi1_edma_reqs[] = {
1622 { .name = "rx0", .dma_req = 43 },
1623 { .name = "tx0", .dma_req = 42 },
1624 { .name = "rx1", .dma_req = 45 },
1625 { .name = "tx1", .dma_req = 44 },
1626 { .dma_req = -1 }
1627};
1628
1629static struct omap_hwmod am33xx_spi1_hwmod = {
1630 .name = "spi1",
1631 .class = &am33xx_spi_hwmod_class,
1632 .clkdm_name = "l4ls_clkdm",
1633 .mpu_irqs = am33xx_spi1_irqs,
1634 .sdma_reqs = am33xx_mcspi1_edma_reqs,
1635 .main_clk = "dpll_per_m2_div4_ck",
1636 .prcm = {
1637 .omap4 = {
1638 .clkctrl_offs = AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET,
1639 .modulemode = MODULEMODE_SWCTRL,
1640 },
1641 },
1642 .dev_attr = &mcspi_attrib,
1643};
1644
1645/*
1646 * 'spinlock' class
1647 * spinlock provides hardware assistance for synchronizing the
1648 * processes running on multiple processors
1649 */
1650static struct omap_hwmod_class am33xx_spinlock_hwmod_class = {
1651 .name = "spinlock",
1652};
1653
1654static struct omap_hwmod am33xx_spinlock_hwmod = {
1655 .name = "spinlock",
1656 .class = &am33xx_spinlock_hwmod_class,
1657 .clkdm_name = "l4ls_clkdm",
1658 .main_clk = "l4ls_gclk",
1659 .prcm = {
1660 .omap4 = {
1661 .clkctrl_offs = AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET,
1662 .modulemode = MODULEMODE_SWCTRL,
1663 },
1664 },
1665};
1666
1667/* 'timer 2-7' class */
1668static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = {
1669 .rev_offs = 0x0000,
1670 .sysc_offs = 0x0010,
1671 .syss_offs = 0x0014,
1672 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1673 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1674 SIDLE_SMART_WKUP),
1675 .sysc_fields = &omap_hwmod_sysc_type2,
1676};
1677
1678static struct omap_hwmod_class am33xx_timer_hwmod_class = {
1679 .name = "timer",
1680 .sysc = &am33xx_timer_sysc,
1681};
1682
1683/* timer1 1ms */
1684static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = {
1685 .rev_offs = 0x0000,
1686 .sysc_offs = 0x0010,
1687 .syss_offs = 0x0014,
1688 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1689 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1690 SYSS_HAS_RESET_STATUS),
1691 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1692 .sysc_fields = &omap_hwmod_sysc_type1,
1693};
1694
1695static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = {
1696 .name = "timer",
1697 .sysc = &am33xx_timer1ms_sysc,
1698};
1699
1700static struct omap_hwmod_irq_info am33xx_timer1_irqs[] = {
1701 { .irq = 67 + OMAP_INTC_START, },
1702 { .irq = -1 },
1703};
1704
1705static struct omap_hwmod am33xx_timer1_hwmod = {
1706 .name = "timer1",
1707 .class = &am33xx_timer1ms_hwmod_class,
1708 .clkdm_name = "l4_wkup_clkdm",
1709 .mpu_irqs = am33xx_timer1_irqs,
1710 .main_clk = "timer1_fck",
1711 .prcm = {
1712 .omap4 = {
1713 .clkctrl_offs = AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
1714 .modulemode = MODULEMODE_SWCTRL,
1715 },
1716 },
1717};
1718
1719static struct omap_hwmod_irq_info am33xx_timer2_irqs[] = {
1720 { .irq = 68 + OMAP_INTC_START, },
1721 { .irq = -1 },
1722};
1723
1724static struct omap_hwmod am33xx_timer2_hwmod = {
1725 .name = "timer2",
1726 .class = &am33xx_timer_hwmod_class,
1727 .clkdm_name = "l4ls_clkdm",
1728 .mpu_irqs = am33xx_timer2_irqs,
1729 .main_clk = "timer2_fck",
1730 .prcm = {
1731 .omap4 = {
1732 .clkctrl_offs = AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET,
1733 .modulemode = MODULEMODE_SWCTRL,
1734 },
1735 },
1736};
1737
1738static struct omap_hwmod_irq_info am33xx_timer3_irqs[] = {
1739 { .irq = 69 + OMAP_INTC_START, },
1740 { .irq = -1 },
1741};
1742
1743static struct omap_hwmod am33xx_timer3_hwmod = {
1744 .name = "timer3",
1745 .class = &am33xx_timer_hwmod_class,
1746 .clkdm_name = "l4ls_clkdm",
1747 .mpu_irqs = am33xx_timer3_irqs,
1748 .main_clk = "timer3_fck",
1749 .prcm = {
1750 .omap4 = {
1751 .clkctrl_offs = AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET,
1752 .modulemode = MODULEMODE_SWCTRL,
1753 },
1754 },
1755};
1756
1757static struct omap_hwmod_irq_info am33xx_timer4_irqs[] = {
1758 { .irq = 92 + OMAP_INTC_START, },
1759 { .irq = -1 },
1760};
1761
1762static struct omap_hwmod am33xx_timer4_hwmod = {
1763 .name = "timer4",
1764 .class = &am33xx_timer_hwmod_class,
1765 .clkdm_name = "l4ls_clkdm",
1766 .mpu_irqs = am33xx_timer4_irqs,
1767 .main_clk = "timer4_fck",
1768 .prcm = {
1769 .omap4 = {
1770 .clkctrl_offs = AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET,
1771 .modulemode = MODULEMODE_SWCTRL,
1772 },
1773 },
1774};
1775
1776static struct omap_hwmod_irq_info am33xx_timer5_irqs[] = {
1777 { .irq = 93 + OMAP_INTC_START, },
1778 { .irq = -1 },
1779};
1780
1781static struct omap_hwmod am33xx_timer5_hwmod = {
1782 .name = "timer5",
1783 .class = &am33xx_timer_hwmod_class,
1784 .clkdm_name = "l4ls_clkdm",
1785 .mpu_irqs = am33xx_timer5_irqs,
1786 .main_clk = "timer5_fck",
1787 .prcm = {
1788 .omap4 = {
1789 .clkctrl_offs = AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET,
1790 .modulemode = MODULEMODE_SWCTRL,
1791 },
1792 },
1793};
1794
1795static struct omap_hwmod_irq_info am33xx_timer6_irqs[] = {
1796 { .irq = 94 + OMAP_INTC_START, },
1797 { .irq = -1 },
1798};
1799
1800static struct omap_hwmod am33xx_timer6_hwmod = {
1801 .name = "timer6",
1802 .class = &am33xx_timer_hwmod_class,
1803 .clkdm_name = "l4ls_clkdm",
1804 .mpu_irqs = am33xx_timer6_irqs,
1805 .main_clk = "timer6_fck",
1806 .prcm = {
1807 .omap4 = {
1808 .clkctrl_offs = AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET,
1809 .modulemode = MODULEMODE_SWCTRL,
1810 },
1811 },
1812};
1813
1814static struct omap_hwmod_irq_info am33xx_timer7_irqs[] = {
1815 { .irq = 95 + OMAP_INTC_START, },
1816 { .irq = -1 },
1817};
1818
1819static struct omap_hwmod am33xx_timer7_hwmod = {
1820 .name = "timer7",
1821 .class = &am33xx_timer_hwmod_class,
1822 .clkdm_name = "l4ls_clkdm",
1823 .mpu_irqs = am33xx_timer7_irqs,
1824 .main_clk = "timer7_fck",
1825 .prcm = {
1826 .omap4 = {
1827 .clkctrl_offs = AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET,
1828 .modulemode = MODULEMODE_SWCTRL,
1829 },
1830 },
1831};
1832
1833/* tpcc */
1834static struct omap_hwmod_class am33xx_tpcc_hwmod_class = {
1835 .name = "tpcc",
1836};
1837
1838static struct omap_hwmod_irq_info am33xx_tpcc_irqs[] = {
1839 { .name = "edma0", .irq = 12 + OMAP_INTC_START, },
1840 { .name = "edma0_mperr", .irq = 13 + OMAP_INTC_START, },
1841 { .name = "edma0_err", .irq = 14 + OMAP_INTC_START, },
1842 { .irq = -1 },
1843};
1844
1845static struct omap_hwmod am33xx_tpcc_hwmod = {
1846 .name = "tpcc",
1847 .class = &am33xx_tpcc_hwmod_class,
1848 .clkdm_name = "l3_clkdm",
1849 .mpu_irqs = am33xx_tpcc_irqs,
1850 .main_clk = "l3_gclk",
1851 .prcm = {
1852 .omap4 = {
1853 .clkctrl_offs = AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET,
1854 .modulemode = MODULEMODE_SWCTRL,
1855 },
1856 },
1857};
1858
1859static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = {
1860 .rev_offs = 0x0,
1861 .sysc_offs = 0x10,
1862 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1863 SYSC_HAS_MIDLEMODE),
1864 .idlemodes = (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE),
1865 .sysc_fields = &omap_hwmod_sysc_type2,
1866};
1867
1868/* 'tptc' class */
1869static struct omap_hwmod_class am33xx_tptc_hwmod_class = {
1870 .name = "tptc",
1871 .sysc = &am33xx_tptc_sysc,
1872};
1873
1874/* tptc0 */
1875static struct omap_hwmod_irq_info am33xx_tptc0_irqs[] = {
1876 { .irq = 112 + OMAP_INTC_START, },
1877 { .irq = -1 },
1878};
1879
1880static struct omap_hwmod am33xx_tptc0_hwmod = {
1881 .name = "tptc0",
1882 .class = &am33xx_tptc_hwmod_class,
1883 .clkdm_name = "l3_clkdm",
1884 .mpu_irqs = am33xx_tptc0_irqs,
0bfbbded 1885 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
a2cfc509
VH
1886 .main_clk = "l3_gclk",
1887 .prcm = {
1888 .omap4 = {
1889 .clkctrl_offs = AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET,
1890 .modulemode = MODULEMODE_SWCTRL,
1891 },
1892 },
1893};
1894
1895/* tptc1 */
1896static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = {
1897 { .irq = 113 + OMAP_INTC_START, },
1898 { .irq = -1 },
1899};
1900
1901static struct omap_hwmod am33xx_tptc1_hwmod = {
1902 .name = "tptc1",
1903 .class = &am33xx_tptc_hwmod_class,
1904 .clkdm_name = "l3_clkdm",
1905 .mpu_irqs = am33xx_tptc1_irqs,
1906 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
1907 .main_clk = "l3_gclk",
1908 .prcm = {
1909 .omap4 = {
1910 .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,
1911 .modulemode = MODULEMODE_SWCTRL,
1912 },
1913 },
1914};
1915
1916/* tptc2 */
1917static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = {
1918 { .irq = 114 + OMAP_INTC_START, },
1919 { .irq = -1 },
1920};
1921
1922static struct omap_hwmod am33xx_tptc2_hwmod = {
1923 .name = "tptc2",
1924 .class = &am33xx_tptc_hwmod_class,
1925 .clkdm_name = "l3_clkdm",
1926 .mpu_irqs = am33xx_tptc2_irqs,
1927 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
1928 .main_clk = "l3_gclk",
1929 .prcm = {
1930 .omap4 = {
1931 .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,
1932 .modulemode = MODULEMODE_SWCTRL,
1933 },
1934 },
1935};
1936
1937/* 'uart' class */
1938static struct omap_hwmod_class_sysconfig uart_sysc = {
1939 .rev_offs = 0x50,
1940 .sysc_offs = 0x54,
1941 .syss_offs = 0x58,
1942 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
1943 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1944 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1945 SIDLE_SMART_WKUP),
1946 .sysc_fields = &omap_hwmod_sysc_type1,
1947};
1948
1949static struct omap_hwmod_class uart_class = {
1950 .name = "uart",
1951 .sysc = &uart_sysc,
1952};
1953
1954/* uart1 */
1955static struct omap_hwmod_dma_info uart1_edma_reqs[] = {
1956 { .name = "tx", .dma_req = 26, },
1957 { .name = "rx", .dma_req = 27, },
1958 { .dma_req = -1 }
1959};
1960
1961static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = {
1962 { .irq = 72 + OMAP_INTC_START, },
1963 { .irq = -1 },
1964};
1965
1966static struct omap_hwmod am33xx_uart1_hwmod = {
1967 .name = "uart1",
1968 .class = &uart_class,
1969 .clkdm_name = "l4_wkup_clkdm",
1970 .mpu_irqs = am33xx_uart1_irqs,
1971 .sdma_reqs = uart1_edma_reqs,
1972 .main_clk = "dpll_per_m2_div4_wkupdm_ck",
1973 .prcm = {
1974 .omap4 = {
1975 .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,
1976 .modulemode = MODULEMODE_SWCTRL,
1977 },
1978 },
1979};
1980
1981static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = {
1982 { .irq = 73 + OMAP_INTC_START, },
1983 { .irq = -1 },
1984};
1985
1986static struct omap_hwmod am33xx_uart2_hwmod = {
1987 .name = "uart2",
1988 .class = &uart_class,
1989 .clkdm_name = "l4ls_clkdm",
1990 .mpu_irqs = am33xx_uart2_irqs,
1991 .sdma_reqs = uart1_edma_reqs,
1992 .main_clk = "dpll_per_m2_div4_ck",
1993 .prcm = {
1994 .omap4 = {
1995 .clkctrl_offs = AM33XX_CM_PER_UART1_CLKCTRL_OFFSET,
1996 .modulemode = MODULEMODE_SWCTRL,
1997 },
1998 },
1999};
2000
2001/* uart3 */
2002static struct omap_hwmod_dma_info uart3_edma_reqs[] = {
2003 { .name = "tx", .dma_req = 30, },
2004 { .name = "rx", .dma_req = 31, },
2005 { .dma_req = -1 }
2006};
2007
2008static struct omap_hwmod_irq_info am33xx_uart3_irqs[] = {
2009 { .irq = 74 + OMAP_INTC_START, },
2010 { .irq = -1 },
2011};
2012
2013static struct omap_hwmod am33xx_uart3_hwmod = {
2014 .name = "uart3",
2015 .class = &uart_class,
2016 .clkdm_name = "l4ls_clkdm",
2017 .mpu_irqs = am33xx_uart3_irqs,
2018 .sdma_reqs = uart3_edma_reqs,
2019 .main_clk = "dpll_per_m2_div4_ck",
2020 .prcm = {
2021 .omap4 = {
2022 .clkctrl_offs = AM33XX_CM_PER_UART2_CLKCTRL_OFFSET,
2023 .modulemode = MODULEMODE_SWCTRL,
2024 },
2025 },
2026};
2027
2028static struct omap_hwmod_irq_info am33xx_uart4_irqs[] = {
2029 { .irq = 44 + OMAP_INTC_START, },
2030 { .irq = -1 },
2031};
2032
2033static struct omap_hwmod am33xx_uart4_hwmod = {
2034 .name = "uart4",
2035 .class = &uart_class,
2036 .clkdm_name = "l4ls_clkdm",
2037 .mpu_irqs = am33xx_uart4_irqs,
2038 .sdma_reqs = uart1_edma_reqs,
2039 .main_clk = "dpll_per_m2_div4_ck",
2040 .prcm = {
2041 .omap4 = {
2042 .clkctrl_offs = AM33XX_CM_PER_UART3_CLKCTRL_OFFSET,
2043 .modulemode = MODULEMODE_SWCTRL,
2044 },
2045 },
2046};
2047
2048static struct omap_hwmod_irq_info am33xx_uart5_irqs[] = {
2049 { .irq = 45 + OMAP_INTC_START, },
2050 { .irq = -1 },
2051};
2052
2053static struct omap_hwmod am33xx_uart5_hwmod = {
2054 .name = "uart5",
2055 .class = &uart_class,
2056 .clkdm_name = "l4ls_clkdm",
2057 .mpu_irqs = am33xx_uart5_irqs,
2058 .sdma_reqs = uart1_edma_reqs,
2059 .main_clk = "dpll_per_m2_div4_ck",
2060 .prcm = {
2061 .omap4 = {
2062 .clkctrl_offs = AM33XX_CM_PER_UART4_CLKCTRL_OFFSET,
2063 .modulemode = MODULEMODE_SWCTRL,
2064 },
2065 },
2066};
2067
2068static struct omap_hwmod_irq_info am33xx_uart6_irqs[] = {
2069 { .irq = 46 + OMAP_INTC_START, },
2070 { .irq = -1 },
2071};
2072
2073static struct omap_hwmod am33xx_uart6_hwmod = {
2074 .name = "uart6",
2075 .class = &uart_class,
2076 .clkdm_name = "l4ls_clkdm",
2077 .mpu_irqs = am33xx_uart6_irqs,
2078 .sdma_reqs = uart1_edma_reqs,
2079 .main_clk = "dpll_per_m2_div4_ck",
2080 .prcm = {
2081 .omap4 = {
2082 .clkctrl_offs = AM33XX_CM_PER_UART5_CLKCTRL_OFFSET,
2083 .modulemode = MODULEMODE_SWCTRL,
2084 },
2085 },
2086};
2087
2088/* 'wd_timer' class */
2089static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = {
2090 .name = "wd_timer",
2091};
2092
2093/*
2094 * XXX: device.c file uses hardcoded name for watchdog timer
2095 * driver "wd_timer2, so we are also using same name as of now...
2096 */
2097static struct omap_hwmod am33xx_wd_timer1_hwmod = {
2098 .name = "wd_timer2",
2099 .class = &am33xx_wd_timer_hwmod_class,
2100 .clkdm_name = "l4_wkup_clkdm",
2101 .main_clk = "wdt1_fck",
2102 .prcm = {
2103 .omap4 = {
2104 .clkctrl_offs = AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET,
2105 .modulemode = MODULEMODE_SWCTRL,
2106 },
2107 },
2108};
2109
2110/*
2111 * 'usb_otg' class
2112 * high-speed on-the-go universal serial bus (usb_otg) controller
2113 */
2114static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = {
2115 .rev_offs = 0x0,
2116 .sysc_offs = 0x10,
2117 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
2118 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2119 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
2120 .sysc_fields = &omap_hwmod_sysc_type2,
2121};
2122
2123static struct omap_hwmod_class am33xx_usbotg_class = {
2124 .name = "usbotg",
2125 .sysc = &am33xx_usbhsotg_sysc,
2126};
2127
2128static struct omap_hwmod_irq_info am33xx_usbss_mpu_irqs[] = {
2129 { .name = "usbss-irq", .irq = 17 + OMAP_INTC_START, },
2130 { .name = "musb0-irq", .irq = 18 + OMAP_INTC_START, },
2131 { .name = "musb1-irq", .irq = 19 + OMAP_INTC_START, },
6adba67e 2132 { .irq = -1, },
a2cfc509
VH
2133};
2134
2135static struct omap_hwmod am33xx_usbss_hwmod = {
2136 .name = "usb_otg_hs",
2137 .class = &am33xx_usbotg_class,
2138 .clkdm_name = "l3s_clkdm",
2139 .mpu_irqs = am33xx_usbss_mpu_irqs,
2140 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
2141 .main_clk = "usbotg_fck",
2142 .prcm = {
2143 .omap4 = {
2144 .clkctrl_offs = AM33XX_CM_PER_USB0_CLKCTRL_OFFSET,
2145 .modulemode = MODULEMODE_SWCTRL,
2146 },
2147 },
2148};
2149
2150
2151/*
2152 * Interfaces
2153 */
2154
2155/* l4 fw -> emif fw */
2156static struct omap_hwmod_ocp_if am33xx_l4_fw__emif_fw = {
2157 .master = &am33xx_l4_fw_hwmod,
2158 .slave = &am33xx_emif_fw_hwmod,
2159 .clk = "l4fw_gclk",
2160 .user = OCP_USER_MPU,
2161};
2162
2163static struct omap_hwmod_addr_space am33xx_emif_addrs[] = {
2164 {
2165 .pa_start = 0x4c000000,
2166 .pa_end = 0x4c000fff,
2167 .flags = ADDR_TYPE_RT
2168 },
2169 { }
2170};
2171/* l3 main -> emif */
2172static struct omap_hwmod_ocp_if am33xx_l3_main__emif = {
2173 .master = &am33xx_l3_main_hwmod,
2174 .slave = &am33xx_emif_hwmod,
2175 .clk = "dpll_core_m4_ck",
2176 .addr = am33xx_emif_addrs,
2177 .user = OCP_USER_MPU | OCP_USER_SDMA,
2178};
2179
2180/* mpu -> l3 main */
2181static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {
2182 .master = &am33xx_mpu_hwmod,
2183 .slave = &am33xx_l3_main_hwmod,
2184 .clk = "dpll_mpu_m2_ck",
2185 .user = OCP_USER_MPU,
2186};
2187
2188/* l3 main -> l4 hs */
2189static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = {
2190 .master = &am33xx_l3_main_hwmod,
2191 .slave = &am33xx_l4_hs_hwmod,
2192 .clk = "l3s_gclk",
2193 .user = OCP_USER_MPU | OCP_USER_SDMA,
2194};
2195
2196/* l3 main -> l3 s */
2197static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {
2198 .master = &am33xx_l3_main_hwmod,
2199 .slave = &am33xx_l3_s_hwmod,
2200 .clk = "l3s_gclk",
2201 .user = OCP_USER_MPU | OCP_USER_SDMA,
2202};
2203
2204/* l3 s -> l4 per/ls */
2205static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {
2206 .master = &am33xx_l3_s_hwmod,
2207 .slave = &am33xx_l4_ls_hwmod,
2208 .clk = "l3s_gclk",
2209 .user = OCP_USER_MPU | OCP_USER_SDMA,
2210};
2211
2212/* l3 s -> l4 wkup */
2213static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {
2214 .master = &am33xx_l3_s_hwmod,
2215 .slave = &am33xx_l4_wkup_hwmod,
2216 .clk = "l3s_gclk",
2217 .user = OCP_USER_MPU | OCP_USER_SDMA,
2218};
2219
2220/* l3 s -> l4 fw */
2221static struct omap_hwmod_ocp_if am33xx_l3_s__l4_fw = {
2222 .master = &am33xx_l3_s_hwmod,
2223 .slave = &am33xx_l4_fw_hwmod,
2224 .clk = "l3s_gclk",
2225 .user = OCP_USER_MPU | OCP_USER_SDMA,
2226};
2227
2228/* l3 main -> l3 instr */
2229static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {
2230 .master = &am33xx_l3_main_hwmod,
2231 .slave = &am33xx_l3_instr_hwmod,
2232 .clk = "l3s_gclk",
2233 .user = OCP_USER_MPU | OCP_USER_SDMA,
2234};
2235
2236/* mpu -> prcm */
2237static struct omap_hwmod_ocp_if am33xx_mpu__prcm = {
2238 .master = &am33xx_mpu_hwmod,
2239 .slave = &am33xx_prcm_hwmod,
2240 .clk = "dpll_mpu_m2_ck",
2241 .user = OCP_USER_MPU | OCP_USER_SDMA,
2242};
2243
2244/* l3 s -> l3 main*/
2245static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
2246 .master = &am33xx_l3_s_hwmod,
2247 .slave = &am33xx_l3_main_hwmod,
2248 .clk = "l3s_gclk",
2249 .user = OCP_USER_MPU | OCP_USER_SDMA,
2250};
2251
2252/* pru-icss -> l3 main */
2253static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {
2254 .master = &am33xx_pruss_hwmod,
2255 .slave = &am33xx_l3_main_hwmod,
2256 .clk = "l3_gclk",
2257 .user = OCP_USER_MPU | OCP_USER_SDMA,
2258};
2259
2260/* wkup m3 -> l4 wkup */
2261static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = {
2262 .master = &am33xx_wkup_m3_hwmod,
2263 .slave = &am33xx_l4_wkup_hwmod,
2264 .clk = "dpll_core_m4_div2_ck",
2265 .user = OCP_USER_MPU | OCP_USER_SDMA,
2266};
2267
2268/* gfx -> l3 main */
2269static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {
2270 .master = &am33xx_gfx_hwmod,
2271 .slave = &am33xx_l3_main_hwmod,
2272 .clk = "dpll_core_m4_ck",
2273 .user = OCP_USER_MPU | OCP_USER_SDMA,
2274};
2275
2276/* l4 wkup -> wkup m3 */
2277static struct omap_hwmod_addr_space am33xx_wkup_m3_addrs[] = {
2278 {
2279 .name = "umem",
2280 .pa_start = 0x44d00000,
2281 .pa_end = 0x44d00000 + SZ_16K - 1,
2282 .flags = ADDR_TYPE_RT
2283 },
2284 {
2285 .name = "dmem",
2286 .pa_start = 0x44d80000,
2287 .pa_end = 0x44d80000 + SZ_8K - 1,
2288 .flags = ADDR_TYPE_RT
2289 },
2290 { }
2291};
2292
2293static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = {
2294 .master = &am33xx_l4_wkup_hwmod,
2295 .slave = &am33xx_wkup_m3_hwmod,
2296 .clk = "dpll_core_m4_div2_ck",
2297 .addr = am33xx_wkup_m3_addrs,
2298 .user = OCP_USER_MPU | OCP_USER_SDMA,
2299};
2300
2301/* l4 hs -> pru-icss */
2302static struct omap_hwmod_addr_space am33xx_pruss_addrs[] = {
2303 {
2304 .pa_start = 0x4a300000,
2305 .pa_end = 0x4a300000 + SZ_512K - 1,
2306 .flags = ADDR_TYPE_RT
2307 },
2308 { }
2309};
2310
2311static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss = {
2312 .master = &am33xx_l4_hs_hwmod,
2313 .slave = &am33xx_pruss_hwmod,
2314 .clk = "dpll_core_m4_ck",
2315 .addr = am33xx_pruss_addrs,
2316 .user = OCP_USER_MPU | OCP_USER_SDMA,
2317};
2318
2319/* l3 main -> gfx */
2320static struct omap_hwmod_addr_space am33xx_gfx_addrs[] = {
2321 {
2322 .pa_start = 0x56000000,
2323 .pa_end = 0x56000000 + SZ_16M - 1,
2324 .flags = ADDR_TYPE_RT
2325 },
2326 { }
2327};
2328
2329static struct omap_hwmod_ocp_if am33xx_l3_main__gfx = {
2330 .master = &am33xx_l3_main_hwmod,
2331 .slave = &am33xx_gfx_hwmod,
2332 .clk = "dpll_core_m4_ck",
2333 .addr = am33xx_gfx_addrs,
2334 .user = OCP_USER_MPU | OCP_USER_SDMA,
2335};
2336
2337/* l4 wkup -> smartreflex0 */
2338static struct omap_hwmod_addr_space am33xx_smartreflex0_addrs[] = {
2339 {
2340 .pa_start = 0x44e37000,
2341 .pa_end = 0x44e37000 + SZ_4K - 1,
2342 .flags = ADDR_TYPE_RT
2343 },
2344 { }
2345};
2346
2347static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0 = {
2348 .master = &am33xx_l4_wkup_hwmod,
2349 .slave = &am33xx_smartreflex0_hwmod,
2350 .clk = "dpll_core_m4_div2_ck",
2351 .addr = am33xx_smartreflex0_addrs,
2352 .user = OCP_USER_MPU,
2353};
2354
2355/* l4 wkup -> smartreflex1 */
2356static struct omap_hwmod_addr_space am33xx_smartreflex1_addrs[] = {
2357 {
2358 .pa_start = 0x44e39000,
2359 .pa_end = 0x44e39000 + SZ_4K - 1,
2360 .flags = ADDR_TYPE_RT
2361 },
2362 { }
2363};
2364
2365static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1 = {
2366 .master = &am33xx_l4_wkup_hwmod,
2367 .slave = &am33xx_smartreflex1_hwmod,
2368 .clk = "dpll_core_m4_div2_ck",
2369 .addr = am33xx_smartreflex1_addrs,
2370 .user = OCP_USER_MPU,
2371};
2372
2373/* l4 wkup -> control */
2374static struct omap_hwmod_addr_space am33xx_control_addrs[] = {
2375 {
2376 .pa_start = 0x44e10000,
2377 .pa_end = 0x44e10000 + SZ_8K - 1,
2378 .flags = ADDR_TYPE_RT
2379 },
2380 { }
2381};
2382
2383static struct omap_hwmod_ocp_if am33xx_l4_wkup__control = {
2384 .master = &am33xx_l4_wkup_hwmod,
2385 .slave = &am33xx_control_hwmod,
2386 .clk = "dpll_core_m4_div2_ck",
2387 .addr = am33xx_control_addrs,
2388 .user = OCP_USER_MPU,
2389};
2390
2391/* l4 wkup -> rtc */
2392static struct omap_hwmod_addr_space am33xx_rtc_addrs[] = {
2393 {
2394 .pa_start = 0x44e3e000,
2395 .pa_end = 0x44e3e000 + SZ_4K - 1,
2396 .flags = ADDR_TYPE_RT
2397 },
2398 { }
2399};
2400
2401static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = {
2402 .master = &am33xx_l4_wkup_hwmod,
2403 .slave = &am33xx_rtc_hwmod,
2404 .clk = "clkdiv32k_ick",
2405 .addr = am33xx_rtc_addrs,
2406 .user = OCP_USER_MPU,
2407};
2408
2409/* l4 per/ls -> DCAN0 */
2410static struct omap_hwmod_addr_space am33xx_dcan0_addrs[] = {
2411 {
2412 .pa_start = 0x481CC000,
2413 .pa_end = 0x481CC000 + SZ_4K - 1,
2414 .flags = ADDR_TYPE_RT
2415 },
2416 { }
2417};
2418
2419static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = {
2420 .master = &am33xx_l4_ls_hwmod,
2421 .slave = &am33xx_dcan0_hwmod,
2422 .clk = "l4ls_gclk",
2423 .addr = am33xx_dcan0_addrs,
2424 .user = OCP_USER_MPU | OCP_USER_SDMA,
2425};
2426
2427/* l4 per/ls -> DCAN1 */
2428static struct omap_hwmod_addr_space am33xx_dcan1_addrs[] = {
2429 {
2430 .pa_start = 0x481D0000,
2431 .pa_end = 0x481D0000 + SZ_4K - 1,
2432 .flags = ADDR_TYPE_RT
2433 },
2434 { }
2435};
2436
2437static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = {
2438 .master = &am33xx_l4_ls_hwmod,
2439 .slave = &am33xx_dcan1_hwmod,
2440 .clk = "l4ls_gclk",
2441 .addr = am33xx_dcan1_addrs,
2442 .user = OCP_USER_MPU | OCP_USER_SDMA,
2443};
2444
2445/* l4 per/ls -> GPIO2 */
2446static struct omap_hwmod_addr_space am33xx_gpio1_addrs[] = {
2447 {
2448 .pa_start = 0x4804C000,
2449 .pa_end = 0x4804C000 + SZ_4K - 1,
2450 .flags = ADDR_TYPE_RT,
2451 },
2452 { }
2453};
2454
2455static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = {
2456 .master = &am33xx_l4_ls_hwmod,
2457 .slave = &am33xx_gpio1_hwmod,
2458 .clk = "l4ls_gclk",
2459 .addr = am33xx_gpio1_addrs,
2460 .user = OCP_USER_MPU | OCP_USER_SDMA,
2461};
2462
2463/* l4 per/ls -> gpio3 */
2464static struct omap_hwmod_addr_space am33xx_gpio2_addrs[] = {
2465 {
2466 .pa_start = 0x481AC000,
2467 .pa_end = 0x481AC000 + SZ_4K - 1,
2468 .flags = ADDR_TYPE_RT,
2469 },
2470 { }
2471};
2472
2473static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = {
2474 .master = &am33xx_l4_ls_hwmod,
2475 .slave = &am33xx_gpio2_hwmod,
2476 .clk = "l4ls_gclk",
2477 .addr = am33xx_gpio2_addrs,
2478 .user = OCP_USER_MPU | OCP_USER_SDMA,
2479};
2480
2481/* l4 per/ls -> gpio4 */
2482static struct omap_hwmod_addr_space am33xx_gpio3_addrs[] = {
2483 {
2484 .pa_start = 0x481AE000,
2485 .pa_end = 0x481AE000 + SZ_4K - 1,
2486 .flags = ADDR_TYPE_RT,
2487 },
2488 { }
2489};
2490
2491static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = {
2492 .master = &am33xx_l4_ls_hwmod,
2493 .slave = &am33xx_gpio3_hwmod,
2494 .clk = "l4ls_gclk",
2495 .addr = am33xx_gpio3_addrs,
2496 .user = OCP_USER_MPU | OCP_USER_SDMA,
2497};
2498
2499/* L4 WKUP -> I2C1 */
2500static struct omap_hwmod_addr_space am33xx_i2c1_addr_space[] = {
2501 {
2502 .pa_start = 0x44E0B000,
2503 .pa_end = 0x44E0B000 + SZ_4K - 1,
2504 .flags = ADDR_TYPE_RT,
2505 },
2506 { }
2507};
2508
2509static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1 = {
2510 .master = &am33xx_l4_wkup_hwmod,
2511 .slave = &am33xx_i2c1_hwmod,
2512 .clk = "dpll_core_m4_div2_ck",
2513 .addr = am33xx_i2c1_addr_space,
2514 .user = OCP_USER_MPU,
2515};
2516
2517/* L4 WKUP -> GPIO1 */
2518static struct omap_hwmod_addr_space am33xx_gpio0_addrs[] = {
2519 {
2520 .pa_start = 0x44E07000,
2521 .pa_end = 0x44E07000 + SZ_4K - 1,
2522 .flags = ADDR_TYPE_RT,
2523 },
2524 { }
2525};
2526
2527static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0 = {
2528 .master = &am33xx_l4_wkup_hwmod,
2529 .slave = &am33xx_gpio0_hwmod,
2530 .clk = "dpll_core_m4_div2_ck",
2531 .addr = am33xx_gpio0_addrs,
2532 .user = OCP_USER_MPU | OCP_USER_SDMA,
2533};
2534
2535/* L4 WKUP -> ADC_TSC */
2536static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs[] = {
2537 {
2538 .pa_start = 0x44E0D000,
2539 .pa_end = 0x44E0D000 + SZ_8K - 1,
2540 .flags = ADDR_TYPE_RT
2541 },
2542 { }
2543};
2544
2545static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = {
2546 .master = &am33xx_l4_wkup_hwmod,
2547 .slave = &am33xx_adc_tsc_hwmod,
2548 .clk = "dpll_core_m4_div2_ck",
2549 .addr = am33xx_adc_tsc_addrs,
2550 .user = OCP_USER_MPU,
2551};
2552
2553static struct omap_hwmod_addr_space am33xx_cpgmac0_addr_space[] = {
2554 /* cpsw ss */
2555 {
2556 .pa_start = 0x4a100000,
2557 .pa_end = 0x4a100000 + SZ_2K - 1,
a2cfc509
VH
2558 },
2559 /* cpsw wr */
2560 {
2561 .pa_start = 0x4a101200,
2562 .pa_end = 0x4a101200 + SZ_256 - 1,
2563 .flags = ADDR_TYPE_RT,
2564 },
2565 { }
2566};
2567
2568static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = {
2569 .master = &am33xx_l4_hs_hwmod,
2570 .slave = &am33xx_cpgmac0_hwmod,
2571 .clk = "cpsw_125mhz_gclk",
2572 .addr = am33xx_cpgmac0_addr_space,
2573 .user = OCP_USER_MPU,
2574};
2575
9816aa80 2576static struct omap_hwmod_addr_space am33xx_mdio_addr_space[] = {
70384a6a
M
2577 {
2578 .pa_start = 0x4A101000,
2579 .pa_end = 0x4A101000 + SZ_256 - 1,
2580 },
2581 { }
2582};
2583
9816aa80 2584static struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = {
70384a6a
M
2585 .master = &am33xx_cpgmac0_hwmod,
2586 .slave = &am33xx_mdio_hwmod,
2587 .addr = am33xx_mdio_addr_space,
2588 .user = OCP_USER_MPU,
2589};
2590
a2cfc509
VH
2591static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = {
2592 {
2593 .pa_start = 0x48080000,
2594 .pa_end = 0x48080000 + SZ_8K - 1,
2595 .flags = ADDR_TYPE_RT
2596 },
2597 { }
2598};
2599
2600static struct omap_hwmod_ocp_if am33xx_l4_ls__elm = {
2601 .master = &am33xx_l4_ls_hwmod,
2602 .slave = &am33xx_elm_hwmod,
2603 .clk = "l4ls_gclk",
2604 .addr = am33xx_elm_addr_space,
2605 .user = OCP_USER_MPU,
2606};
2607
9652d19a 2608static struct omap_hwmod_addr_space am33xx_epwmss0_addr_space[] = {
a2cfc509
VH
2609 {
2610 .pa_start = 0x48300000,
2611 .pa_end = 0x48300000 + SZ_16 - 1,
2612 .flags = ADDR_TYPE_RT
2613 },
a2cfc509
VH
2614 { }
2615};
2616
9652d19a 2617static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0 = {
a2cfc509 2618 .master = &am33xx_l4_ls_hwmod,
9652d19a 2619 .slave = &am33xx_epwmss0_hwmod,
a2cfc509 2620 .clk = "l4ls_gclk",
9652d19a 2621 .addr = am33xx_epwmss0_addr_space,
a2cfc509
VH
2622 .user = OCP_USER_MPU,
2623};
2624
9652d19a 2625static struct omap_hwmod_addr_space am33xx_ecap0_addr_space[] = {
a2cfc509 2626 {
9652d19a
PA
2627 .pa_start = 0x48300100,
2628 .pa_end = 0x48300100 + SZ_128 - 1,
a2cfc509
VH
2629 },
2630 { }
2631};
2632
9652d19a
PA
2633static struct omap_hwmod_ocp_if am33xx_epwmss0__ecap0 = {
2634 .master = &am33xx_epwmss0_hwmod,
2635 .slave = &am33xx_ecap0_hwmod,
a2cfc509 2636 .clk = "l4ls_gclk",
9652d19a 2637 .addr = am33xx_ecap0_addr_space,
a2cfc509
VH
2638 .user = OCP_USER_MPU,
2639};
2640
9652d19a 2641static struct omap_hwmod_addr_space am33xx_eqep0_addr_space[] = {
a2cfc509 2642 {
9652d19a
PA
2643 .pa_start = 0x48300180,
2644 .pa_end = 0x48300180 + SZ_128 - 1,
a2cfc509 2645 },
9652d19a
PA
2646 { }
2647};
2648
2649static struct omap_hwmod_ocp_if am33xx_epwmss0__eqep0 = {
2650 .master = &am33xx_epwmss0_hwmod,
2651 .slave = &am33xx_eqep0_hwmod,
2652 .clk = "l4ls_gclk",
2653 .addr = am33xx_eqep0_addr_space,
2654 .user = OCP_USER_MPU,
2655};
2656
2657static struct omap_hwmod_addr_space am33xx_ehrpwm0_addr_space[] = {
a2cfc509 2658 {
9652d19a
PA
2659 .pa_start = 0x48300200,
2660 .pa_end = 0x48300200 + SZ_128 - 1,
a2cfc509
VH
2661 },
2662 { }
2663};
2664
9652d19a
PA
2665static struct omap_hwmod_ocp_if am33xx_epwmss0__ehrpwm0 = {
2666 .master = &am33xx_epwmss0_hwmod,
2667 .slave = &am33xx_ehrpwm0_hwmod,
a2cfc509 2668 .clk = "l4ls_gclk",
9652d19a 2669 .addr = am33xx_ehrpwm0_addr_space,
a2cfc509
VH
2670 .user = OCP_USER_MPU,
2671};
2672
9652d19a
PA
2673
2674static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space[] = {
bee76659 2675 {
9652d19a
PA
2676 .pa_start = 0x48302000,
2677 .pa_end = 0x48302000 + SZ_16 - 1,
bee76659
PA
2678 .flags = ADDR_TYPE_RT
2679 },
bee76659
PA
2680 { }
2681};
2682
9652d19a 2683static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1 = {
bee76659 2684 .master = &am33xx_l4_ls_hwmod,
9652d19a 2685 .slave = &am33xx_epwmss1_hwmod,
bee76659 2686 .clk = "l4ls_gclk",
9652d19a 2687 .addr = am33xx_epwmss1_addr_space,
bee76659
PA
2688 .user = OCP_USER_MPU,
2689};
2690
9652d19a 2691static struct omap_hwmod_addr_space am33xx_ecap1_addr_space[] = {
bee76659 2692 {
9652d19a
PA
2693 .pa_start = 0x48302100,
2694 .pa_end = 0x48302100 + SZ_128 - 1,
bee76659 2695 },
9652d19a
PA
2696 { }
2697};
2698
2699static struct omap_hwmod_ocp_if am33xx_epwmss1__ecap1 = {
2700 .master = &am33xx_epwmss1_hwmod,
2701 .slave = &am33xx_ecap1_hwmod,
2702 .clk = "l4ls_gclk",
2703 .addr = am33xx_ecap1_addr_space,
2704 .user = OCP_USER_MPU,
2705};
2706
2707static struct omap_hwmod_addr_space am33xx_eqep1_addr_space[] = {
bee76659
PA
2708 {
2709 .pa_start = 0x48302180,
2710 .pa_end = 0x48302180 + SZ_128 - 1,
2711 },
2712 { }
2713};
2714
9652d19a
PA
2715static struct omap_hwmod_ocp_if am33xx_epwmss1__eqep1 = {
2716 .master = &am33xx_epwmss1_hwmod,
bee76659
PA
2717 .slave = &am33xx_eqep1_hwmod,
2718 .clk = "l4ls_gclk",
2719 .addr = am33xx_eqep1_addr_space,
2720 .user = OCP_USER_MPU,
2721};
2722
9652d19a 2723static struct omap_hwmod_addr_space am33xx_ehrpwm1_addr_space[] = {
bee76659 2724 {
9652d19a
PA
2725 .pa_start = 0x48302200,
2726 .pa_end = 0x48302200 + SZ_128 - 1,
bee76659
PA
2727 },
2728 { }
2729};
2730
9652d19a
PA
2731static struct omap_hwmod_ocp_if am33xx_epwmss1__ehrpwm1 = {
2732 .master = &am33xx_epwmss1_hwmod,
2733 .slave = &am33xx_ehrpwm1_hwmod,
bee76659 2734 .clk = "l4ls_gclk",
9652d19a 2735 .addr = am33xx_ehrpwm1_addr_space,
bee76659
PA
2736 .user = OCP_USER_MPU,
2737};
2738
9652d19a 2739static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space[] = {
a2cfc509 2740 {
9652d19a
PA
2741 .pa_start = 0x48304000,
2742 .pa_end = 0x48304000 + SZ_16 - 1,
a2cfc509
VH
2743 .flags = ADDR_TYPE_RT
2744 },
a2cfc509
VH
2745 { }
2746};
2747
9652d19a 2748static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2 = {
a2cfc509 2749 .master = &am33xx_l4_ls_hwmod,
9652d19a 2750 .slave = &am33xx_epwmss2_hwmod,
a2cfc509 2751 .clk = "l4ls_gclk",
9652d19a 2752 .addr = am33xx_epwmss2_addr_space,
a2cfc509
VH
2753 .user = OCP_USER_MPU,
2754};
2755
9652d19a 2756static struct omap_hwmod_addr_space am33xx_ecap2_addr_space[] = {
a2cfc509 2757 {
9652d19a
PA
2758 .pa_start = 0x48304100,
2759 .pa_end = 0x48304100 + SZ_128 - 1,
a2cfc509
VH
2760 },
2761 { }
2762};
2763
9652d19a
PA
2764static struct omap_hwmod_ocp_if am33xx_epwmss2__ecap2 = {
2765 .master = &am33xx_epwmss2_hwmod,
2766 .slave = &am33xx_ecap2_hwmod,
a2cfc509 2767 .clk = "l4ls_gclk",
9652d19a 2768 .addr = am33xx_ecap2_addr_space,
a2cfc509
VH
2769 .user = OCP_USER_MPU,
2770};
2771
9652d19a 2772static struct omap_hwmod_addr_space am33xx_eqep2_addr_space[] = {
a2cfc509 2773 {
9652d19a
PA
2774 .pa_start = 0x48304180,
2775 .pa_end = 0x48304180 + SZ_128 - 1,
a2cfc509 2776 },
9652d19a
PA
2777 { }
2778};
2779
2780static struct omap_hwmod_ocp_if am33xx_epwmss2__eqep2 = {
2781 .master = &am33xx_epwmss2_hwmod,
2782 .slave = &am33xx_eqep2_hwmod,
2783 .clk = "l4ls_gclk",
2784 .addr = am33xx_eqep2_addr_space,
2785 .user = OCP_USER_MPU,
2786};
2787
2788static struct omap_hwmod_addr_space am33xx_ehrpwm2_addr_space[] = {
a2cfc509 2789 {
9652d19a
PA
2790 .pa_start = 0x48304200,
2791 .pa_end = 0x48304200 + SZ_128 - 1,
a2cfc509
VH
2792 },
2793 { }
2794};
2795
9652d19a
PA
2796static struct omap_hwmod_ocp_if am33xx_epwmss2__ehrpwm2 = {
2797 .master = &am33xx_epwmss2_hwmod,
2798 .slave = &am33xx_ehrpwm2_hwmod,
a2cfc509 2799 .clk = "l4ls_gclk",
9652d19a 2800 .addr = am33xx_ehrpwm2_addr_space,
a2cfc509
VH
2801 .user = OCP_USER_MPU,
2802};
2803
2804/* l3s cfg -> gpmc */
2805static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = {
2806 {
2807 .pa_start = 0x50000000,
2808 .pa_end = 0x50000000 + SZ_8K - 1,
2809 .flags = ADDR_TYPE_RT,
2810 },
2811 { }
2812};
2813
2814static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
2815 .master = &am33xx_l3_s_hwmod,
2816 .slave = &am33xx_gpmc_hwmod,
2817 .clk = "l3s_gclk",
2818 .addr = am33xx_gpmc_addr_space,
2819 .user = OCP_USER_MPU,
2820};
2821
2822/* i2c2 */
2823static struct omap_hwmod_addr_space am33xx_i2c2_addr_space[] = {
2824 {
2825 .pa_start = 0x4802A000,
2826 .pa_end = 0x4802A000 + SZ_4K - 1,
2827 .flags = ADDR_TYPE_RT,
2828 },
2829 { }
2830};
2831
2832static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
2833 .master = &am33xx_l4_ls_hwmod,
2834 .slave = &am33xx_i2c2_hwmod,
2835 .clk = "l4ls_gclk",
2836 .addr = am33xx_i2c2_addr_space,
2837 .user = OCP_USER_MPU,
2838};
2839
2840static struct omap_hwmod_addr_space am33xx_i2c3_addr_space[] = {
2841 {
2842 .pa_start = 0x4819C000,
2843 .pa_end = 0x4819C000 + SZ_4K - 1,
2844 .flags = ADDR_TYPE_RT
2845 },
2846 { }
2847};
2848
2849static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
2850 .master = &am33xx_l4_ls_hwmod,
2851 .slave = &am33xx_i2c3_hwmod,
2852 .clk = "l4ls_gclk",
2853 .addr = am33xx_i2c3_addr_space,
2854 .user = OCP_USER_MPU,
2855};
2856
2857static struct omap_hwmod_addr_space am33xx_lcdc_addr_space[] = {
2858 {
2859 .pa_start = 0x4830E000,
2860 .pa_end = 0x4830E000 + SZ_8K - 1,
2861 .flags = ADDR_TYPE_RT,
2862 },
2863 { }
2864};
2865
2866static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = {
2867 .master = &am33xx_l3_main_hwmod,
2868 .slave = &am33xx_lcdc_hwmod,
2869 .clk = "dpll_core_m4_ck",
2870 .addr = am33xx_lcdc_addr_space,
2871 .user = OCP_USER_MPU,
2872};
2873
2874static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = {
2875 {
2876 .pa_start = 0x480C8000,
2877 .pa_end = 0x480C8000 + (SZ_4K - 1),
2878 .flags = ADDR_TYPE_RT
2879 },
2880 { }
2881};
2882
2883/* l4 ls -> mailbox */
2884static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
2885 .master = &am33xx_l4_ls_hwmod,
2886 .slave = &am33xx_mailbox_hwmod,
2887 .clk = "l4ls_gclk",
2888 .addr = am33xx_mailbox_addrs,
2889 .user = OCP_USER_MPU,
2890};
2891
2892/* l4 ls -> spinlock */
2893static struct omap_hwmod_addr_space am33xx_spinlock_addrs[] = {
2894 {
2895 .pa_start = 0x480Ca000,
2896 .pa_end = 0x480Ca000 + SZ_4K - 1,
2897 .flags = ADDR_TYPE_RT
2898 },
2899 { }
2900};
2901
2902static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
2903 .master = &am33xx_l4_ls_hwmod,
2904 .slave = &am33xx_spinlock_hwmod,
2905 .clk = "l4ls_gclk",
2906 .addr = am33xx_spinlock_addrs,
2907 .user = OCP_USER_MPU,
2908};
2909
2910/* l4 ls -> mcasp0 */
2911static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
2912 {
2913 .pa_start = 0x48038000,
2914 .pa_end = 0x48038000 + SZ_8K - 1,
2915 .flags = ADDR_TYPE_RT
2916 },
2917 { }
2918};
2919
2920static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
2921 .master = &am33xx_l4_ls_hwmod,
2922 .slave = &am33xx_mcasp0_hwmod,
2923 .clk = "l4ls_gclk",
2924 .addr = am33xx_mcasp0_addr_space,
2925 .user = OCP_USER_MPU,
2926};
2927
2928/* l3 s -> mcasp0 data */
2929static struct omap_hwmod_addr_space am33xx_mcasp0_data_addr_space[] = {
2930 {
2931 .pa_start = 0x46000000,
2932 .pa_end = 0x46000000 + SZ_4M - 1,
2933 .flags = ADDR_TYPE_RT
2934 },
2935 { }
2936};
2937
2938static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp0_data = {
2939 .master = &am33xx_l3_s_hwmod,
2940 .slave = &am33xx_mcasp0_hwmod,
2941 .clk = "l3s_gclk",
2942 .addr = am33xx_mcasp0_data_addr_space,
2943 .user = OCP_USER_SDMA,
2944};
2945
2946/* l4 ls -> mcasp1 */
2947static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
2948 {
2949 .pa_start = 0x4803C000,
2950 .pa_end = 0x4803C000 + SZ_8K - 1,
2951 .flags = ADDR_TYPE_RT
2952 },
2953 { }
2954};
2955
2956static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
2957 .master = &am33xx_l4_ls_hwmod,
2958 .slave = &am33xx_mcasp1_hwmod,
2959 .clk = "l4ls_gclk",
2960 .addr = am33xx_mcasp1_addr_space,
2961 .user = OCP_USER_MPU,
2962};
2963
2964/* l3 s -> mcasp1 data */
2965static struct omap_hwmod_addr_space am33xx_mcasp1_data_addr_space[] = {
2966 {
2967 .pa_start = 0x46400000,
2968 .pa_end = 0x46400000 + SZ_4M - 1,
2969 .flags = ADDR_TYPE_RT
2970 },
2971 { }
2972};
2973
2974static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp1_data = {
2975 .master = &am33xx_l3_s_hwmod,
2976 .slave = &am33xx_mcasp1_hwmod,
2977 .clk = "l3s_gclk",
2978 .addr = am33xx_mcasp1_data_addr_space,
2979 .user = OCP_USER_SDMA,
2980};
2981
2982/* l4 ls -> mmc0 */
2983static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
2984 {
2985 .pa_start = 0x48060100,
2986 .pa_end = 0x48060100 + SZ_4K - 1,
2987 .flags = ADDR_TYPE_RT,
2988 },
2989 { }
2990};
2991
2992static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
2993 .master = &am33xx_l4_ls_hwmod,
2994 .slave = &am33xx_mmc0_hwmod,
2995 .clk = "l4ls_gclk",
2996 .addr = am33xx_mmc0_addr_space,
2997 .user = OCP_USER_MPU,
2998};
2999
3000/* l4 ls -> mmc1 */
3001static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
3002 {
3003 .pa_start = 0x481d8100,
3004 .pa_end = 0x481d8100 + SZ_4K - 1,
3005 .flags = ADDR_TYPE_RT,
3006 },
3007 { }
3008};
3009
3010static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
3011 .master = &am33xx_l4_ls_hwmod,
3012 .slave = &am33xx_mmc1_hwmod,
3013 .clk = "l4ls_gclk",
3014 .addr = am33xx_mmc1_addr_space,
3015 .user = OCP_USER_MPU,
3016};
3017
3018/* l3 s -> mmc2 */
3019static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
3020 {
3021 .pa_start = 0x47810100,
3022 .pa_end = 0x47810100 + SZ_64K - 1,
3023 .flags = ADDR_TYPE_RT,
3024 },
3025 { }
3026};
3027
3028static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
3029 .master = &am33xx_l3_s_hwmod,
3030 .slave = &am33xx_mmc2_hwmod,
3031 .clk = "l3s_gclk",
3032 .addr = am33xx_mmc2_addr_space,
3033 .user = OCP_USER_MPU,
3034};
3035
3036/* l4 ls -> mcspi0 */
3037static struct omap_hwmod_addr_space am33xx_mcspi0_addr_space[] = {
3038 {
3039 .pa_start = 0x48030000,
3040 .pa_end = 0x48030000 + SZ_1K - 1,
3041 .flags = ADDR_TYPE_RT,
3042 },
3043 { }
3044};
3045
3046static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
3047 .master = &am33xx_l4_ls_hwmod,
3048 .slave = &am33xx_spi0_hwmod,
3049 .clk = "l4ls_gclk",
3050 .addr = am33xx_mcspi0_addr_space,
3051 .user = OCP_USER_MPU,
3052};
3053
3054/* l4 ls -> mcspi1 */
3055static struct omap_hwmod_addr_space am33xx_mcspi1_addr_space[] = {
3056 {
3057 .pa_start = 0x481A0000,
3058 .pa_end = 0x481A0000 + SZ_1K - 1,
3059 .flags = ADDR_TYPE_RT,
3060 },
3061 { }
3062};
3063
3064static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
3065 .master = &am33xx_l4_ls_hwmod,
3066 .slave = &am33xx_spi1_hwmod,
3067 .clk = "l4ls_gclk",
3068 .addr = am33xx_mcspi1_addr_space,
3069 .user = OCP_USER_MPU,
3070};
3071
3072/* l4 wkup -> timer1 */
3073static struct omap_hwmod_addr_space am33xx_timer1_addr_space[] = {
3074 {
3075 .pa_start = 0x44E31000,
3076 .pa_end = 0x44E31000 + SZ_1K - 1,
3077 .flags = ADDR_TYPE_RT
3078 },
3079 { }
3080};
3081
3082static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1 = {
3083 .master = &am33xx_l4_wkup_hwmod,
3084 .slave = &am33xx_timer1_hwmod,
3085 .clk = "dpll_core_m4_div2_ck",
3086 .addr = am33xx_timer1_addr_space,
3087 .user = OCP_USER_MPU,
3088};
3089
3090/* l4 per -> timer2 */
3091static struct omap_hwmod_addr_space am33xx_timer2_addr_space[] = {
3092 {
3093 .pa_start = 0x48040000,
3094 .pa_end = 0x48040000 + SZ_1K - 1,
3095 .flags = ADDR_TYPE_RT
3096 },
3097 { }
3098};
3099
3100static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
3101 .master = &am33xx_l4_ls_hwmod,
3102 .slave = &am33xx_timer2_hwmod,
3103 .clk = "l4ls_gclk",
3104 .addr = am33xx_timer2_addr_space,
3105 .user = OCP_USER_MPU,
3106};
3107
3108/* l4 per -> timer3 */
3109static struct omap_hwmod_addr_space am33xx_timer3_addr_space[] = {
3110 {
3111 .pa_start = 0x48042000,
3112 .pa_end = 0x48042000 + SZ_1K - 1,
3113 .flags = ADDR_TYPE_RT
3114 },
3115 { }
3116};
3117
3118static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
3119 .master = &am33xx_l4_ls_hwmod,
3120 .slave = &am33xx_timer3_hwmod,
3121 .clk = "l4ls_gclk",
3122 .addr = am33xx_timer3_addr_space,
3123 .user = OCP_USER_MPU,
3124};
3125
3126/* l4 per -> timer4 */
3127static struct omap_hwmod_addr_space am33xx_timer4_addr_space[] = {
3128 {
3129 .pa_start = 0x48044000,
3130 .pa_end = 0x48044000 + SZ_1K - 1,
3131 .flags = ADDR_TYPE_RT
3132 },
3133 { }
3134};
3135
3136static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
3137 .master = &am33xx_l4_ls_hwmod,
3138 .slave = &am33xx_timer4_hwmod,
3139 .clk = "l4ls_gclk",
3140 .addr = am33xx_timer4_addr_space,
3141 .user = OCP_USER_MPU,
3142};
3143
3144/* l4 per -> timer5 */
3145static struct omap_hwmod_addr_space am33xx_timer5_addr_space[] = {
3146 {
3147 .pa_start = 0x48046000,
3148 .pa_end = 0x48046000 + SZ_1K - 1,
3149 .flags = ADDR_TYPE_RT
3150 },
3151 { }
3152};
3153
3154static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
3155 .master = &am33xx_l4_ls_hwmod,
3156 .slave = &am33xx_timer5_hwmod,
3157 .clk = "l4ls_gclk",
3158 .addr = am33xx_timer5_addr_space,
3159 .user = OCP_USER_MPU,
3160};
3161
3162/* l4 per -> timer6 */
3163static struct omap_hwmod_addr_space am33xx_timer6_addr_space[] = {
3164 {
3165 .pa_start = 0x48048000,
3166 .pa_end = 0x48048000 + SZ_1K - 1,
3167 .flags = ADDR_TYPE_RT
3168 },
3169 { }
3170};
3171
3172static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
3173 .master = &am33xx_l4_ls_hwmod,
3174 .slave = &am33xx_timer6_hwmod,
3175 .clk = "l4ls_gclk",
3176 .addr = am33xx_timer6_addr_space,
3177 .user = OCP_USER_MPU,
3178};
3179
3180/* l4 per -> timer7 */
3181static struct omap_hwmod_addr_space am33xx_timer7_addr_space[] = {
3182 {
3183 .pa_start = 0x4804A000,
3184 .pa_end = 0x4804A000 + SZ_1K - 1,
3185 .flags = ADDR_TYPE_RT
3186 },
3187 { }
3188};
3189
3190static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
3191 .master = &am33xx_l4_ls_hwmod,
3192 .slave = &am33xx_timer7_hwmod,
3193 .clk = "l4ls_gclk",
3194 .addr = am33xx_timer7_addr_space,
3195 .user = OCP_USER_MPU,
3196};
3197
3198/* l3 main -> tpcc */
3199static struct omap_hwmod_addr_space am33xx_tpcc_addr_space[] = {
3200 {
3201 .pa_start = 0x49000000,
3202 .pa_end = 0x49000000 + SZ_32K - 1,
3203 .flags = ADDR_TYPE_RT
3204 },
3205 { }
3206};
3207
3208static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
3209 .master = &am33xx_l3_main_hwmod,
3210 .slave = &am33xx_tpcc_hwmod,
3211 .clk = "l3_gclk",
3212 .addr = am33xx_tpcc_addr_space,
3213 .user = OCP_USER_MPU,
3214};
3215
3216/* l3 main -> tpcc0 */
3217static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
3218 {
3219 .pa_start = 0x49800000,
3220 .pa_end = 0x49800000 + SZ_8K - 1,
3221 .flags = ADDR_TYPE_RT,
3222 },
3223 { }
3224};
3225
3226static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
3227 .master = &am33xx_l3_main_hwmod,
3228 .slave = &am33xx_tptc0_hwmod,
3229 .clk = "l3_gclk",
3230 .addr = am33xx_tptc0_addr_space,
3231 .user = OCP_USER_MPU,
3232};
3233
3234/* l3 main -> tpcc1 */
3235static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
3236 {
3237 .pa_start = 0x49900000,
3238 .pa_end = 0x49900000 + SZ_8K - 1,
3239 .flags = ADDR_TYPE_RT,
3240 },
3241 { }
3242};
3243
3244static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
3245 .master = &am33xx_l3_main_hwmod,
3246 .slave = &am33xx_tptc1_hwmod,
3247 .clk = "l3_gclk",
3248 .addr = am33xx_tptc1_addr_space,
3249 .user = OCP_USER_MPU,
3250};
3251
3252/* l3 main -> tpcc2 */
3253static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
3254 {
3255 .pa_start = 0x49a00000,
3256 .pa_end = 0x49a00000 + SZ_8K - 1,
3257 .flags = ADDR_TYPE_RT,
3258 },
3259 { }
3260};
3261
3262static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
3263 .master = &am33xx_l3_main_hwmod,
3264 .slave = &am33xx_tptc2_hwmod,
3265 .clk = "l3_gclk",
3266 .addr = am33xx_tptc2_addr_space,
3267 .user = OCP_USER_MPU,
3268};
3269
3270/* l4 wkup -> uart1 */
3271static struct omap_hwmod_addr_space am33xx_uart1_addr_space[] = {
3272 {
3273 .pa_start = 0x44E09000,
3274 .pa_end = 0x44E09000 + SZ_8K - 1,
3275 .flags = ADDR_TYPE_RT,
3276 },
3277 { }
3278};
3279
3280static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1 = {
3281 .master = &am33xx_l4_wkup_hwmod,
3282 .slave = &am33xx_uart1_hwmod,
3283 .clk = "dpll_core_m4_div2_ck",
3284 .addr = am33xx_uart1_addr_space,
3285 .user = OCP_USER_MPU,
3286};
3287
3288/* l4 ls -> uart2 */
3289static struct omap_hwmod_addr_space am33xx_uart2_addr_space[] = {
3290 {
3291 .pa_start = 0x48022000,
3292 .pa_end = 0x48022000 + SZ_8K - 1,
3293 .flags = ADDR_TYPE_RT,
3294 },
3295 { }
3296};
3297
3298static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
3299 .master = &am33xx_l4_ls_hwmod,
3300 .slave = &am33xx_uart2_hwmod,
3301 .clk = "l4ls_gclk",
3302 .addr = am33xx_uart2_addr_space,
3303 .user = OCP_USER_MPU,
3304};
3305
3306/* l4 ls -> uart3 */
3307static struct omap_hwmod_addr_space am33xx_uart3_addr_space[] = {
3308 {
3309 .pa_start = 0x48024000,
3310 .pa_end = 0x48024000 + SZ_8K - 1,
3311 .flags = ADDR_TYPE_RT,
3312 },
3313 { }
3314};
3315
3316static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
3317 .master = &am33xx_l4_ls_hwmod,
3318 .slave = &am33xx_uart3_hwmod,
3319 .clk = "l4ls_gclk",
3320 .addr = am33xx_uart3_addr_space,
3321 .user = OCP_USER_MPU,
3322};
3323
3324/* l4 ls -> uart4 */
3325static struct omap_hwmod_addr_space am33xx_uart4_addr_space[] = {
3326 {
3327 .pa_start = 0x481A6000,
3328 .pa_end = 0x481A6000 + SZ_8K - 1,
3329 .flags = ADDR_TYPE_RT,
3330 },
3331 { }
3332};
3333
3334static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
3335 .master = &am33xx_l4_ls_hwmod,
3336 .slave = &am33xx_uart4_hwmod,
3337 .clk = "l4ls_gclk",
3338 .addr = am33xx_uart4_addr_space,
3339 .user = OCP_USER_MPU,
3340};
3341
3342/* l4 ls -> uart5 */
3343static struct omap_hwmod_addr_space am33xx_uart5_addr_space[] = {
3344 {
3345 .pa_start = 0x481A8000,
3346 .pa_end = 0x481A8000 + SZ_8K - 1,
3347 .flags = ADDR_TYPE_RT,
3348 },
3349 { }
3350};
3351
3352static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
3353 .master = &am33xx_l4_ls_hwmod,
3354 .slave = &am33xx_uart5_hwmod,
3355 .clk = "l4ls_gclk",
3356 .addr = am33xx_uart5_addr_space,
3357 .user = OCP_USER_MPU,
3358};
3359
3360/* l4 ls -> uart6 */
3361static struct omap_hwmod_addr_space am33xx_uart6_addr_space[] = {
3362 {
3363 .pa_start = 0x481aa000,
3364 .pa_end = 0x481aa000 + SZ_8K - 1,
3365 .flags = ADDR_TYPE_RT,
3366 },
3367 { }
3368};
3369
3370static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
3371 .master = &am33xx_l4_ls_hwmod,
3372 .slave = &am33xx_uart6_hwmod,
3373 .clk = "l4ls_gclk",
3374 .addr = am33xx_uart6_addr_space,
3375 .user = OCP_USER_MPU,
3376};
3377
3378/* l4 wkup -> wd_timer1 */
3379static struct omap_hwmod_addr_space am33xx_wd_timer1_addrs[] = {
3380 {
3381 .pa_start = 0x44e35000,
3382 .pa_end = 0x44e35000 + SZ_4K - 1,
3383 .flags = ADDR_TYPE_RT
3384 },
3385 { }
3386};
3387
3388static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1 = {
3389 .master = &am33xx_l4_wkup_hwmod,
3390 .slave = &am33xx_wd_timer1_hwmod,
3391 .clk = "dpll_core_m4_div2_ck",
3392 .addr = am33xx_wd_timer1_addrs,
3393 .user = OCP_USER_MPU,
3394};
3395
3396/* usbss */
3397/* l3 s -> USBSS interface */
3398static struct omap_hwmod_addr_space am33xx_usbss_addr_space[] = {
3399 {
3400 .name = "usbss",
3401 .pa_start = 0x47400000,
3402 .pa_end = 0x47400000 + SZ_4K - 1,
3403 .flags = ADDR_TYPE_RT
3404 },
3405 {
3406 .name = "musb0",
3407 .pa_start = 0x47401000,
3408 .pa_end = 0x47401000 + SZ_2K - 1,
3409 .flags = ADDR_TYPE_RT
3410 },
3411 {
3412 .name = "musb1",
3413 .pa_start = 0x47401800,
3414 .pa_end = 0x47401800 + SZ_2K - 1,
3415 .flags = ADDR_TYPE_RT
3416 },
3417 { }
3418};
3419
3420static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = {
3421 .master = &am33xx_l3_s_hwmod,
3422 .slave = &am33xx_usbss_hwmod,
3423 .clk = "l3s_gclk",
3424 .addr = am33xx_usbss_addr_space,
3425 .user = OCP_USER_MPU,
3426 .flags = OCPIF_SWSUP_IDLE,
3427};
3428
ca903b6f
VB
3429/* l3 main -> ocmc */
3430static struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
3431 .master = &am33xx_l3_main_hwmod,
3432 .slave = &am33xx_ocmcram_hwmod,
3433 .user = OCP_USER_MPU | OCP_USER_SDMA,
3434};
3435
a2cfc509
VH
3436static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
3437 &am33xx_l4_fw__emif_fw,
3438 &am33xx_l3_main__emif,
3439 &am33xx_mpu__l3_main,
3440 &am33xx_mpu__prcm,
3441 &am33xx_l3_s__l4_ls,
3442 &am33xx_l3_s__l4_wkup,
3443 &am33xx_l3_s__l4_fw,
3444 &am33xx_l3_main__l4_hs,
3445 &am33xx_l3_main__l3_s,
3446 &am33xx_l3_main__l3_instr,
3447 &am33xx_l3_main__gfx,
3448 &am33xx_l3_s__l3_main,
3449 &am33xx_pruss__l3_main,
3450 &am33xx_wkup_m3__l4_wkup,
3451 &am33xx_gfx__l3_main,
3452 &am33xx_l4_wkup__wkup_m3,
3453 &am33xx_l4_wkup__control,
3454 &am33xx_l4_wkup__smartreflex0,
3455 &am33xx_l4_wkup__smartreflex1,
3456 &am33xx_l4_wkup__uart1,
3457 &am33xx_l4_wkup__timer1,
3458 &am33xx_l4_wkup__rtc,
3459 &am33xx_l4_wkup__i2c1,
3460 &am33xx_l4_wkup__gpio0,
3461 &am33xx_l4_wkup__adc_tsc,
3462 &am33xx_l4_wkup__wd_timer1,
3463 &am33xx_l4_hs__pruss,
3464 &am33xx_l4_per__dcan0,
3465 &am33xx_l4_per__dcan1,
3466 &am33xx_l4_per__gpio1,
3467 &am33xx_l4_per__gpio2,
3468 &am33xx_l4_per__gpio3,
3469 &am33xx_l4_per__i2c2,
3470 &am33xx_l4_per__i2c3,
3471 &am33xx_l4_per__mailbox,
3472 &am33xx_l4_ls__mcasp0,
3473 &am33xx_l3_s__mcasp0_data,
3474 &am33xx_l4_ls__mcasp1,
3475 &am33xx_l3_s__mcasp1_data,
3476 &am33xx_l4_ls__mmc0,
3477 &am33xx_l4_ls__mmc1,
3478 &am33xx_l3_s__mmc2,
3479 &am33xx_l4_ls__timer2,
3480 &am33xx_l4_ls__timer3,
3481 &am33xx_l4_ls__timer4,
3482 &am33xx_l4_ls__timer5,
3483 &am33xx_l4_ls__timer6,
3484 &am33xx_l4_ls__timer7,
3485 &am33xx_l3_main__tpcc,
3486 &am33xx_l4_ls__uart2,
3487 &am33xx_l4_ls__uart3,
3488 &am33xx_l4_ls__uart4,
3489 &am33xx_l4_ls__uart5,
3490 &am33xx_l4_ls__uart6,
3491 &am33xx_l4_ls__spinlock,
3492 &am33xx_l4_ls__elm,
9652d19a
PA
3493 &am33xx_l4_ls__epwmss0,
3494 &am33xx_epwmss0__ecap0,
3495 &am33xx_epwmss0__eqep0,
3496 &am33xx_epwmss0__ehrpwm0,
3497 &am33xx_l4_ls__epwmss1,
3498 &am33xx_epwmss1__ecap1,
3499 &am33xx_epwmss1__eqep1,
3500 &am33xx_epwmss1__ehrpwm1,
3501 &am33xx_l4_ls__epwmss2,
3502 &am33xx_epwmss2__ecap2,
3503 &am33xx_epwmss2__eqep2,
3504 &am33xx_epwmss2__ehrpwm2,
a2cfc509
VH
3505 &am33xx_l3_s__gpmc,
3506 &am33xx_l3_main__lcdc,
3507 &am33xx_l4_ls__mcspi0,
3508 &am33xx_l4_ls__mcspi1,
3509 &am33xx_l3_main__tptc0,
3510 &am33xx_l3_main__tptc1,
3511 &am33xx_l3_main__tptc2,
ca903b6f 3512 &am33xx_l3_main__ocmc,
a2cfc509
VH
3513 &am33xx_l3_s__usbss,
3514 &am33xx_l4_hs__cpgmac0,
70384a6a 3515 &am33xx_cpgmac0__mdio,
a2cfc509
VH
3516 NULL,
3517};
3518
3519int __init am33xx_hwmod_init(void)
3520{
3521 omap_hwmod_init();
3522 return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs);
3523}
This page took 0.182939 seconds and 5 git commands to generate.