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