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