blob: 28bbd56346a93ab67fc377eb1ea066a8be8280f7 [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 Hiremath05cf03b2013-03-31 20:22:21 -060031#include "wd_timer.h"
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060032
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060033/*
34 * IP blocks
35 */
36
37/*
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060038 * 'emif' class
39 * instance(s): emif
40 */
41static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {
42 .rev_offs = 0x0000,
43};
44
45static struct omap_hwmod_class am33xx_emif_hwmod_class = {
46 .name = "emif",
47 .sysc = &am33xx_emif_sysc,
48};
49
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060050/* emif */
51static struct omap_hwmod am33xx_emif_hwmod = {
52 .name = "emif",
53 .class = &am33xx_emif_hwmod_class,
54 .clkdm_name = "l3_clkdm",
55 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060056 .main_clk = "dpll_ddr_m2_div2_ck",
57 .prcm = {
58 .omap4 = {
59 .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,
60 .modulemode = MODULEMODE_SWCTRL,
61 },
62 },
63};
64
65/*
66 * 'l3' class
67 * instance(s): l3_main, l3_s, l3_instr
68 */
69static struct omap_hwmod_class am33xx_l3_hwmod_class = {
70 .name = "l3",
71};
72
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060073static struct omap_hwmod am33xx_l3_main_hwmod = {
74 .name = "l3_main",
75 .class = &am33xx_l3_hwmod_class,
76 .clkdm_name = "l3_clkdm",
77 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -060078 .main_clk = "l3_gclk",
79 .prcm = {
80 .omap4 = {
81 .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET,
82 .modulemode = MODULEMODE_SWCTRL,
83 },
84 },
85};
86
87/* l3_s */
88static struct omap_hwmod am33xx_l3_s_hwmod = {
89 .name = "l3_s",
90 .class = &am33xx_l3_hwmod_class,
91 .clkdm_name = "l3s_clkdm",
92};
93
94/* l3_instr */
95static struct omap_hwmod am33xx_l3_instr_hwmod = {
96 .name = "l3_instr",
97 .class = &am33xx_l3_hwmod_class,
98 .clkdm_name = "l3_clkdm",
99 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
100 .main_clk = "l3_gclk",
101 .prcm = {
102 .omap4 = {
103 .clkctrl_offs = AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET,
104 .modulemode = MODULEMODE_SWCTRL,
105 },
106 },
107};
108
109/*
110 * 'l4' class
111 * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw
112 */
113static struct omap_hwmod_class am33xx_l4_hwmod_class = {
114 .name = "l4",
115};
116
117/* l4_ls */
118static struct omap_hwmod am33xx_l4_ls_hwmod = {
119 .name = "l4_ls",
120 .class = &am33xx_l4_hwmod_class,
121 .clkdm_name = "l4ls_clkdm",
122 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
123 .main_clk = "l4ls_gclk",
124 .prcm = {
125 .omap4 = {
126 .clkctrl_offs = AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET,
127 .modulemode = MODULEMODE_SWCTRL,
128 },
129 },
130};
131
132/* l4_hs */
133static struct omap_hwmod am33xx_l4_hs_hwmod = {
134 .name = "l4_hs",
135 .class = &am33xx_l4_hwmod_class,
136 .clkdm_name = "l4hs_clkdm",
137 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
138 .main_clk = "l4hs_gclk",
139 .prcm = {
140 .omap4 = {
141 .clkctrl_offs = AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET,
142 .modulemode = MODULEMODE_SWCTRL,
143 },
144 },
145};
146
147
148/* l4_wkup */
149static struct omap_hwmod am33xx_l4_wkup_hwmod = {
150 .name = "l4_wkup",
151 .class = &am33xx_l4_hwmod_class,
152 .clkdm_name = "l4_wkup_clkdm",
153 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
154 .prcm = {
155 .omap4 = {
156 .clkctrl_offs = AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
157 .modulemode = MODULEMODE_SWCTRL,
158 },
159 },
160};
161
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600162/*
163 * 'mpu' class
164 */
165static struct omap_hwmod_class am33xx_mpu_hwmod_class = {
166 .name = "mpu",
167};
168
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600169static struct omap_hwmod am33xx_mpu_hwmod = {
170 .name = "mpu",
171 .class = &am33xx_mpu_hwmod_class,
172 .clkdm_name = "mpu_clkdm",
173 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600174 .main_clk = "dpll_mpu_m2_ck",
175 .prcm = {
176 .omap4 = {
177 .clkctrl_offs = AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET,
178 .modulemode = MODULEMODE_SWCTRL,
179 },
180 },
181};
182
183/*
184 * 'wakeup m3' class
185 * Wakeup controller sub-system under wakeup domain
186 */
187static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {
188 .name = "wkup_m3",
189};
190
191static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
192 { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
193};
194
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600195/* wkup_m3 */
196static struct omap_hwmod am33xx_wkup_m3_hwmod = {
197 .name = "wkup_m3",
198 .class = &am33xx_wkup_m3_hwmod_class,
199 .clkdm_name = "l4_wkup_aon_clkdm",
Hebbar Gururaja092bda62013-02-08 08:21:10 -0700200 /* Keep hardreset asserted */
201 .flags = HWMOD_INIT_NO_RESET | HWMOD_NO_IDLEST,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600202 .main_clk = "dpll_core_m4_div2_ck",
203 .prcm = {
204 .omap4 = {
205 .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
206 .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET,
Vaibhav Bedia3077fe62013-01-29 16:45:05 +0530207 .rstst_offs = AM33XX_RM_WKUP_RSTST_OFFSET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600208 .modulemode = MODULEMODE_SWCTRL,
209 },
210 },
211 .rst_lines = am33xx_wkup_m3_resets,
212 .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
213};
214
215/*
216 * 'pru-icss' class
217 * Programmable Real-Time Unit and Industrial Communication Subsystem
218 */
219static struct omap_hwmod_class am33xx_pruss_hwmod_class = {
220 .name = "pruss",
221};
222
223static struct omap_hwmod_rst_info am33xx_pruss_resets[] = {
224 { .name = "pruss", .rst_shift = 1 },
225};
226
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600227/* pru-icss */
228/* Pseudo hwmod for reset control purpose only */
229static struct omap_hwmod am33xx_pruss_hwmod = {
230 .name = "pruss",
231 .class = &am33xx_pruss_hwmod_class,
232 .clkdm_name = "pruss_ocp_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600233 .main_clk = "pruss_ocp_gclk",
234 .prcm = {
235 .omap4 = {
236 .clkctrl_offs = AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET,
237 .rstctrl_offs = AM33XX_RM_PER_RSTCTRL_OFFSET,
238 .modulemode = MODULEMODE_SWCTRL,
239 },
240 },
241 .rst_lines = am33xx_pruss_resets,
242 .rst_lines_cnt = ARRAY_SIZE(am33xx_pruss_resets),
243};
244
245/* gfx */
246/* Pseudo hwmod for reset control purpose only */
247static struct omap_hwmod_class am33xx_gfx_hwmod_class = {
248 .name = "gfx",
249};
250
251static struct omap_hwmod_rst_info am33xx_gfx_resets[] = {
Vaibhav Hiremath27c70042013-05-05 00:18:04 +0530252 { .name = "gfx", .rst_shift = 0, .st_shift = 0},
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600253};
254
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600255static struct omap_hwmod am33xx_gfx_hwmod = {
256 .name = "gfx",
257 .class = &am33xx_gfx_hwmod_class,
258 .clkdm_name = "gfx_l3_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600259 .main_clk = "gfx_fck_div_ck",
260 .prcm = {
261 .omap4 = {
262 .clkctrl_offs = AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET,
263 .rstctrl_offs = AM33XX_RM_GFX_RSTCTRL_OFFSET,
Vaibhav Hiremath27c70042013-05-05 00:18:04 +0530264 .rstst_offs = AM33XX_RM_GFX_RSTST_OFFSET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600265 .modulemode = MODULEMODE_SWCTRL,
266 },
267 },
268 .rst_lines = am33xx_gfx_resets,
269 .rst_lines_cnt = ARRAY_SIZE(am33xx_gfx_resets),
270};
271
272/*
273 * 'prcm' class
274 * power and reset manager (whole prcm infrastructure)
275 */
276static struct omap_hwmod_class am33xx_prcm_hwmod_class = {
277 .name = "prcm",
278};
279
280/* prcm */
281static struct omap_hwmod am33xx_prcm_hwmod = {
282 .name = "prcm",
283 .class = &am33xx_prcm_hwmod_class,
284 .clkdm_name = "l4_wkup_clkdm",
285};
286
287/*
288 * 'adc/tsc' class
289 * TouchScreen Controller (Anolog-To-Digital Converter)
290 */
291static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = {
292 .rev_offs = 0x00,
293 .sysc_offs = 0x10,
294 .sysc_flags = SYSC_HAS_SIDLEMODE,
295 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
296 SIDLE_SMART_WKUP),
297 .sysc_fields = &omap_hwmod_sysc_type2,
298};
299
300static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = {
301 .name = "adc_tsc",
302 .sysc = &am33xx_adc_tsc_sysc,
303};
304
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600305static struct omap_hwmod am33xx_adc_tsc_hwmod = {
306 .name = "adc_tsc",
307 .class = &am33xx_adc_tsc_hwmod_class,
308 .clkdm_name = "l4_wkup_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600309 .main_clk = "adc_tsc_fck",
310 .prcm = {
311 .omap4 = {
312 .clkctrl_offs = AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
313 .modulemode = MODULEMODE_SWCTRL,
314 },
315 },
316};
317
318/*
319 * Modules omap_hwmod structures
320 *
321 * The following IPs are excluded for the moment because:
322 * - They do not need an explicit SW control using omap_hwmod API.
323 * - They still need to be validated with the driver
324 * properly adapted to omap_hwmod / omap_device
325 *
326 * - cEFUSE (doesn't fall under any ocp_if)
327 * - clkdiv32k
328 * - debugss
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600329 * - ocp watch point
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600330 */
331#if 0
332/*
333 * 'cefuse' class
334 */
335static struct omap_hwmod_class am33xx_cefuse_hwmod_class = {
336 .name = "cefuse",
337};
338
339static struct omap_hwmod am33xx_cefuse_hwmod = {
340 .name = "cefuse",
341 .class = &am33xx_cefuse_hwmod_class,
342 .clkdm_name = "l4_cefuse_clkdm",
343 .main_clk = "cefuse_fck",
344 .prcm = {
345 .omap4 = {
346 .clkctrl_offs = AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET,
347 .modulemode = MODULEMODE_SWCTRL,
348 },
349 },
350};
351
352/*
353 * 'clkdiv32k' class
354 */
355static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = {
356 .name = "clkdiv32k",
357};
358
359static struct omap_hwmod am33xx_clkdiv32k_hwmod = {
360 .name = "clkdiv32k",
361 .class = &am33xx_clkdiv32k_hwmod_class,
362 .clkdm_name = "clk_24mhz_clkdm",
363 .main_clk = "clkdiv32k_ick",
364 .prcm = {
365 .omap4 = {
366 .clkctrl_offs = AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET,
367 .modulemode = MODULEMODE_SWCTRL,
368 },
369 },
370};
371
372/*
373 * 'debugss' class
374 * debug sub system
375 */
376static struct omap_hwmod_class am33xx_debugss_hwmod_class = {
377 .name = "debugss",
378};
379
380static struct omap_hwmod am33xx_debugss_hwmod = {
381 .name = "debugss",
382 .class = &am33xx_debugss_hwmod_class,
383 .clkdm_name = "l3_aon_clkdm",
384 .main_clk = "debugss_ick",
385 .prcm = {
386 .omap4 = {
387 .clkctrl_offs = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET,
388 .modulemode = MODULEMODE_SWCTRL,
389 },
390 },
391};
392
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600393/* ocpwp */
394static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {
395 .name = "ocpwp",
396};
397
398static struct omap_hwmod am33xx_ocpwp_hwmod = {
399 .name = "ocpwp",
400 .class = &am33xx_ocpwp_hwmod_class,
401 .clkdm_name = "l4ls_clkdm",
402 .main_clk = "l4ls_gclk",
403 .prcm = {
404 .omap4 = {
405 .clkctrl_offs = AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET,
406 .modulemode = MODULEMODE_SWCTRL,
407 },
408 },
409};
Mark A. Greer1cb804b2012-12-21 09:28:14 -0700410#endif
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600411
412/*
Mark A. Greer1cb804b2012-12-21 09:28:14 -0700413 * 'aes0' class
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600414 */
Mark A. Greer1cb804b2012-12-21 09:28:14 -0700415static struct omap_hwmod_class_sysconfig am33xx_aes0_sysc = {
416 .rev_offs = 0x80,
417 .sysc_offs = 0x84,
418 .syss_offs = 0x88,
419 .sysc_flags = SYSS_HAS_RESET_STATUS,
420};
421
422static struct omap_hwmod_class am33xx_aes0_hwmod_class = {
423 .name = "aes0",
424 .sysc = &am33xx_aes0_sysc,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600425};
426
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600427static struct omap_hwmod am33xx_aes0_hwmod = {
Mark A. Greer1cb804b2012-12-21 09:28:14 -0700428 .name = "aes",
429 .class = &am33xx_aes0_hwmod_class,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600430 .clkdm_name = "l3_clkdm",
Mark A. Greer1cb804b2012-12-21 09:28:14 -0700431 .main_clk = "aes0_fck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600432 .prcm = {
433 .omap4 = {
434 .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,
435 .modulemode = MODULEMODE_SWCTRL,
436 },
437 },
438};
439
Mark A. Greeraec94bf2013-03-18 10:06:35 -0600440/* sha0 HIB2 (the 'P' (public) device) */
441static struct omap_hwmod_class_sysconfig am33xx_sha0_sysc = {
442 .rev_offs = 0x100,
443 .sysc_offs = 0x110,
444 .syss_offs = 0x114,
445 .sysc_flags = SYSS_HAS_RESET_STATUS,
446};
447
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600448static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
449 .name = "sha0",
Mark A. Greeraec94bf2013-03-18 10:06:35 -0600450 .sysc = &am33xx_sha0_sysc,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600451};
452
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600453static struct omap_hwmod am33xx_sha0_hwmod = {
Mark A. Greeraec94bf2013-03-18 10:06:35 -0600454 .name = "sham",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600455 .class = &am33xx_sha0_hwmod_class,
456 .clkdm_name = "l3_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600457 .main_clk = "l3_gclk",
458 .prcm = {
459 .omap4 = {
460 .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,
461 .modulemode = MODULEMODE_SWCTRL,
462 },
463 },
464};
465
Vaibhav Bediaca903b62013-01-29 16:45:02 +0530466/* ocmcram */
467static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
468 .name = "ocmcram",
469};
470
471static struct omap_hwmod am33xx_ocmcram_hwmod = {
472 .name = "ocmcram",
473 .class = &am33xx_ocmcram_hwmod_class,
474 .clkdm_name = "l3_clkdm",
475 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
476 .main_clk = "l3_gclk",
477 .prcm = {
478 .omap4 = {
479 .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
480 .modulemode = MODULEMODE_SWCTRL,
481 },
482 },
483};
484
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600485/* 'smartreflex' class */
486static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
487 .name = "smartreflex",
488};
489
490/* smartreflex0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600491static struct omap_hwmod am33xx_smartreflex0_hwmod = {
492 .name = "smartreflex0",
493 .class = &am33xx_smartreflex_hwmod_class,
494 .clkdm_name = "l4_wkup_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600495 .main_clk = "smartreflex0_fck",
496 .prcm = {
497 .omap4 = {
498 .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
499 .modulemode = MODULEMODE_SWCTRL,
500 },
501 },
502};
503
504/* smartreflex1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600505static struct omap_hwmod am33xx_smartreflex1_hwmod = {
506 .name = "smartreflex1",
507 .class = &am33xx_smartreflex_hwmod_class,
508 .clkdm_name = "l4_wkup_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600509 .main_clk = "smartreflex1_fck",
510 .prcm = {
511 .omap4 = {
512 .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
513 .modulemode = MODULEMODE_SWCTRL,
514 },
515 },
516};
517
518/*
519 * 'control' module class
520 */
521static struct omap_hwmod_class am33xx_control_hwmod_class = {
522 .name = "control",
523};
524
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600525static struct omap_hwmod am33xx_control_hwmod = {
526 .name = "control",
527 .class = &am33xx_control_hwmod_class,
528 .clkdm_name = "l4_wkup_clkdm",
529 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600530 .main_clk = "dpll_core_m4_div2_ck",
531 .prcm = {
532 .omap4 = {
533 .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
534 .modulemode = MODULEMODE_SWCTRL,
535 },
536 },
537};
538
539/*
540 * 'cpgmac' class
541 * cpsw/cpgmac sub system
542 */
543static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {
544 .rev_offs = 0x0,
545 .sysc_offs = 0x8,
546 .syss_offs = 0x4,
547 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
548 SYSS_HAS_RESET_STATUS),
549 .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
550 MSTANDBY_NO),
551 .sysc_fields = &omap_hwmod_sysc_type3,
552};
553
554static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {
555 .name = "cpgmac0",
556 .sysc = &am33xx_cpgmac_sysc,
557};
558
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600559static struct omap_hwmod am33xx_cpgmac0_hwmod = {
560 .name = "cpgmac0",
561 .class = &am33xx_cpgmac0_hwmod_class,
562 .clkdm_name = "cpsw_125mhz_clkdm",
Mugunthan V N70384a62012-11-14 09:07:58 +0000563 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600564 .main_clk = "cpsw_125mhz_gclk",
565 .prcm = {
566 .omap4 = {
567 .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,
568 .modulemode = MODULEMODE_SWCTRL,
569 },
570 },
571};
572
573/*
Mugunthan V N70384a62012-11-14 09:07:58 +0000574 * mdio class
575 */
576static struct omap_hwmod_class am33xx_mdio_hwmod_class = {
577 .name = "davinci_mdio",
578};
579
580static struct omap_hwmod am33xx_mdio_hwmod = {
581 .name = "davinci_mdio",
582 .class = &am33xx_mdio_hwmod_class,
583 .clkdm_name = "cpsw_125mhz_clkdm",
584 .main_clk = "cpsw_125mhz_gclk",
585};
586
587/*
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600588 * dcan class
589 */
590static struct omap_hwmod_class am33xx_dcan_hwmod_class = {
591 .name = "d_can",
592};
593
594/* dcan0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600595static struct omap_hwmod am33xx_dcan0_hwmod = {
596 .name = "d_can0",
597 .class = &am33xx_dcan_hwmod_class,
598 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600599 .main_clk = "dcan0_fck",
600 .prcm = {
601 .omap4 = {
602 .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,
603 .modulemode = MODULEMODE_SWCTRL,
604 },
605 },
606};
607
608/* dcan1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600609static struct omap_hwmod am33xx_dcan1_hwmod = {
610 .name = "d_can1",
611 .class = &am33xx_dcan_hwmod_class,
612 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600613 .main_clk = "dcan1_fck",
614 .prcm = {
615 .omap4 = {
616 .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,
617 .modulemode = MODULEMODE_SWCTRL,
618 },
619 },
620};
621
622/* elm */
623static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {
624 .rev_offs = 0x0000,
625 .sysc_offs = 0x0010,
626 .syss_offs = 0x0014,
627 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
628 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
629 SYSS_HAS_RESET_STATUS),
630 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
631 .sysc_fields = &omap_hwmod_sysc_type1,
632};
633
634static struct omap_hwmod_class am33xx_elm_hwmod_class = {
635 .name = "elm",
636 .sysc = &am33xx_elm_sysc,
637};
638
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600639static struct omap_hwmod am33xx_elm_hwmod = {
640 .name = "elm",
641 .class = &am33xx_elm_hwmod_class,
642 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600643 .main_clk = "l4ls_gclk",
644 .prcm = {
645 .omap4 = {
646 .clkctrl_offs = AM33XX_CM_PER_ELM_CLKCTRL_OFFSET,
647 .modulemode = MODULEMODE_SWCTRL,
648 },
649 },
650};
651
Philip Avinash9652d192013-01-02 18:54:49 +0530652/* pwmss */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600653static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = {
654 .rev_offs = 0x0,
655 .sysc_offs = 0x4,
656 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
657 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
658 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
659 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
660 .sysc_fields = &omap_hwmod_sysc_type2,
661};
662
663static struct omap_hwmod_class am33xx_epwmss_hwmod_class = {
664 .name = "epwmss",
665 .sysc = &am33xx_epwmss_sysc,
666};
667
Philip Avinash9652d192013-01-02 18:54:49 +0530668static struct omap_hwmod_class am33xx_ecap_hwmod_class = {
669 .name = "ecap",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600670};
671
Philip Avinash9652d192013-01-02 18:54:49 +0530672static struct omap_hwmod_class am33xx_eqep_hwmod_class = {
673 .name = "eqep",
674};
675
676static struct omap_hwmod_class am33xx_ehrpwm_hwmod_class = {
677 .name = "ehrpwm",
678};
679
680/* epwmss0 */
681static struct omap_hwmod am33xx_epwmss0_hwmod = {
682 .name = "epwmss0",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600683 .class = &am33xx_epwmss_hwmod_class,
684 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600685 .main_clk = "l4ls_gclk",
686 .prcm = {
687 .omap4 = {
688 .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
689 .modulemode = MODULEMODE_SWCTRL,
690 },
691 },
692};
693
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600694/* ecap0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600695static struct omap_hwmod am33xx_ecap0_hwmod = {
696 .name = "ecap0",
Philip Avinash9652d192013-01-02 18:54:49 +0530697 .class = &am33xx_ecap_hwmod_class,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600698 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600699 .main_clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +0530700};
701
702/* eqep0 */
Philip Avinash9652d192013-01-02 18:54:49 +0530703static struct omap_hwmod am33xx_eqep0_hwmod = {
704 .name = "eqep0",
705 .class = &am33xx_eqep_hwmod_class,
706 .clkdm_name = "l4ls_clkdm",
Philip Avinash9652d192013-01-02 18:54:49 +0530707 .main_clk = "l4ls_gclk",
708};
709
710/* ehrpwm0 */
Philip Avinash9652d192013-01-02 18:54:49 +0530711static struct omap_hwmod am33xx_ehrpwm0_hwmod = {
712 .name = "ehrpwm0",
713 .class = &am33xx_ehrpwm_hwmod_class,
714 .clkdm_name = "l4ls_clkdm",
Philip Avinash9652d192013-01-02 18:54:49 +0530715 .main_clk = "l4ls_gclk",
716};
717
718/* epwmss1 */
719static struct omap_hwmod am33xx_epwmss1_hwmod = {
720 .name = "epwmss1",
721 .class = &am33xx_epwmss_hwmod_class,
722 .clkdm_name = "l4ls_clkdm",
723 .main_clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600724 .prcm = {
725 .omap4 = {
Philip Avinash9652d192013-01-02 18:54:49 +0530726 .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600727 .modulemode = MODULEMODE_SWCTRL,
728 },
729 },
730};
731
732/* ecap1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600733static struct omap_hwmod am33xx_ecap1_hwmod = {
734 .name = "ecap1",
Philip Avinash9652d192013-01-02 18:54:49 +0530735 .class = &am33xx_ecap_hwmod_class,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600736 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600737 .main_clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +0530738};
739
740/* eqep1 */
Philip Avinash9652d192013-01-02 18:54:49 +0530741static struct omap_hwmod am33xx_eqep1_hwmod = {
742 .name = "eqep1",
743 .class = &am33xx_eqep_hwmod_class,
744 .clkdm_name = "l4ls_clkdm",
Philip Avinash9652d192013-01-02 18:54:49 +0530745 .main_clk = "l4ls_gclk",
746};
747
748/* ehrpwm1 */
Philip Avinash9652d192013-01-02 18:54:49 +0530749static struct omap_hwmod am33xx_ehrpwm1_hwmod = {
750 .name = "ehrpwm1",
751 .class = &am33xx_ehrpwm_hwmod_class,
752 .clkdm_name = "l4ls_clkdm",
Philip Avinash9652d192013-01-02 18:54:49 +0530753 .main_clk = "l4ls_gclk",
754};
755
756/* epwmss2 */
757static struct omap_hwmod am33xx_epwmss2_hwmod = {
758 .name = "epwmss2",
759 .class = &am33xx_epwmss_hwmod_class,
760 .clkdm_name = "l4ls_clkdm",
761 .main_clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600762 .prcm = {
763 .omap4 = {
Philip Avinash9652d192013-01-02 18:54:49 +0530764 .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600765 .modulemode = MODULEMODE_SWCTRL,
766 },
767 },
768};
769
770/* ecap2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600771static struct omap_hwmod am33xx_ecap2_hwmod = {
772 .name = "ecap2",
Philip Avinash9652d192013-01-02 18:54:49 +0530773 .class = &am33xx_ecap_hwmod_class,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600774 .clkdm_name = "l4ls_clkdm",
775 .main_clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +0530776};
777
778/* eqep2 */
Philip Avinash9652d192013-01-02 18:54:49 +0530779static struct omap_hwmod am33xx_eqep2_hwmod = {
780 .name = "eqep2",
781 .class = &am33xx_eqep_hwmod_class,
782 .clkdm_name = "l4ls_clkdm",
Philip Avinash9652d192013-01-02 18:54:49 +0530783 .main_clk = "l4ls_gclk",
784};
785
786/* ehrpwm2 */
Philip Avinash9652d192013-01-02 18:54:49 +0530787static struct omap_hwmod am33xx_ehrpwm2_hwmod = {
788 .name = "ehrpwm2",
789 .class = &am33xx_ehrpwm_hwmod_class,
790 .clkdm_name = "l4ls_clkdm",
Philip Avinash9652d192013-01-02 18:54:49 +0530791 .main_clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600792};
793
794/*
795 * 'gpio' class: for gpio 0,1,2,3
796 */
797static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = {
798 .rev_offs = 0x0000,
799 .sysc_offs = 0x0010,
800 .syss_offs = 0x0114,
801 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
802 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
803 SYSS_HAS_RESET_STATUS),
804 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
805 SIDLE_SMART_WKUP),
806 .sysc_fields = &omap_hwmod_sysc_type1,
807};
808
809static struct omap_hwmod_class am33xx_gpio_hwmod_class = {
810 .name = "gpio",
811 .sysc = &am33xx_gpio_sysc,
812 .rev = 2,
813};
814
815static struct omap_gpio_dev_attr gpio_dev_attr = {
816 .bank_width = 32,
817 .dbck_flag = true,
818};
819
820/* gpio0 */
821static struct omap_hwmod_opt_clk gpio0_opt_clks[] = {
822 { .role = "dbclk", .clk = "gpio0_dbclk" },
823};
824
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600825static struct omap_hwmod am33xx_gpio0_hwmod = {
826 .name = "gpio1",
827 .class = &am33xx_gpio_hwmod_class,
828 .clkdm_name = "l4_wkup_clkdm",
829 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600830 .main_clk = "dpll_core_m4_div2_ck",
831 .prcm = {
832 .omap4 = {
833 .clkctrl_offs = AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET,
834 .modulemode = MODULEMODE_SWCTRL,
835 },
836 },
837 .opt_clks = gpio0_opt_clks,
838 .opt_clks_cnt = ARRAY_SIZE(gpio0_opt_clks),
839 .dev_attr = &gpio_dev_attr,
840};
841
842/* gpio1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600843static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
844 { .role = "dbclk", .clk = "gpio1_dbclk" },
845};
846
847static struct omap_hwmod am33xx_gpio1_hwmod = {
848 .name = "gpio2",
849 .class = &am33xx_gpio_hwmod_class,
850 .clkdm_name = "l4ls_clkdm",
851 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600852 .main_clk = "l4ls_gclk",
853 .prcm = {
854 .omap4 = {
855 .clkctrl_offs = AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET,
856 .modulemode = MODULEMODE_SWCTRL,
857 },
858 },
859 .opt_clks = gpio1_opt_clks,
860 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
861 .dev_attr = &gpio_dev_attr,
862};
863
864/* gpio2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600865static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
866 { .role = "dbclk", .clk = "gpio2_dbclk" },
867};
868
869static struct omap_hwmod am33xx_gpio2_hwmod = {
870 .name = "gpio3",
871 .class = &am33xx_gpio_hwmod_class,
872 .clkdm_name = "l4ls_clkdm",
873 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600874 .main_clk = "l4ls_gclk",
875 .prcm = {
876 .omap4 = {
877 .clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,
878 .modulemode = MODULEMODE_SWCTRL,
879 },
880 },
881 .opt_clks = gpio2_opt_clks,
882 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
883 .dev_attr = &gpio_dev_attr,
884};
885
886/* gpio3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600887static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
888 { .role = "dbclk", .clk = "gpio3_dbclk" },
889};
890
891static struct omap_hwmod am33xx_gpio3_hwmod = {
892 .name = "gpio4",
893 .class = &am33xx_gpio_hwmod_class,
894 .clkdm_name = "l4ls_clkdm",
895 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600896 .main_clk = "l4ls_gclk",
897 .prcm = {
898 .omap4 = {
899 .clkctrl_offs = AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET,
900 .modulemode = MODULEMODE_SWCTRL,
901 },
902 },
903 .opt_clks = gpio3_opt_clks,
904 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
905 .dev_attr = &gpio_dev_attr,
906};
907
908/* gpmc */
909static struct omap_hwmod_class_sysconfig gpmc_sysc = {
910 .rev_offs = 0x0,
911 .sysc_offs = 0x10,
912 .syss_offs = 0x14,
913 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
914 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
915 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
916 .sysc_fields = &omap_hwmod_sysc_type1,
917};
918
919static struct omap_hwmod_class am33xx_gpmc_hwmod_class = {
920 .name = "gpmc",
921 .sysc = &gpmc_sysc,
922};
923
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600924static struct omap_hwmod am33xx_gpmc_hwmod = {
925 .name = "gpmc",
926 .class = &am33xx_gpmc_hwmod_class,
927 .clkdm_name = "l3s_clkdm",
928 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600929 .main_clk = "l3s_gclk",
930 .prcm = {
931 .omap4 = {
932 .clkctrl_offs = AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET,
933 .modulemode = MODULEMODE_SWCTRL,
934 },
935 },
936};
937
938/* 'i2c' class */
939static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = {
940 .sysc_offs = 0x0010,
941 .syss_offs = 0x0090,
942 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
943 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
944 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
945 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
946 SIDLE_SMART_WKUP),
947 .sysc_fields = &omap_hwmod_sysc_type1,
948};
949
950static struct omap_hwmod_class i2c_class = {
951 .name = "i2c",
952 .sysc = &am33xx_i2c_sysc,
953 .rev = OMAP_I2C_IP_VERSION_2,
954 .reset = &omap_i2c_reset,
955};
956
957static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +0530958 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600959};
960
961/* i2c1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600962static struct omap_hwmod am33xx_i2c1_hwmod = {
963 .name = "i2c1",
964 .class = &i2c_class,
965 .clkdm_name = "l4_wkup_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600966 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
967 .main_clk = "dpll_per_m2_div4_wkupdm_ck",
968 .prcm = {
969 .omap4 = {
970 .clkctrl_offs = AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET,
971 .modulemode = MODULEMODE_SWCTRL,
972 },
973 },
974 .dev_attr = &i2c_dev_attr,
975};
976
977/* i2c1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600978static struct omap_hwmod am33xx_i2c2_hwmod = {
979 .name = "i2c2",
980 .class = &i2c_class,
981 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600982 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
983 .main_clk = "dpll_per_m2_div4_ck",
984 .prcm = {
985 .omap4 = {
986 .clkctrl_offs = AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET,
987 .modulemode = MODULEMODE_SWCTRL,
988 },
989 },
990 .dev_attr = &i2c_dev_attr,
991};
992
993/* i2c3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600994static struct omap_hwmod am33xx_i2c3_hwmod = {
995 .name = "i2c3",
996 .class = &i2c_class,
997 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -0600998 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
999 .main_clk = "dpll_per_m2_div4_ck",
1000 .prcm = {
1001 .omap4 = {
1002 .clkctrl_offs = AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET,
1003 .modulemode = MODULEMODE_SWCTRL,
1004 },
1005 },
1006 .dev_attr = &i2c_dev_attr,
1007};
1008
1009
1010/* lcdc */
1011static struct omap_hwmod_class_sysconfig lcdc_sysc = {
1012 .rev_offs = 0x0,
1013 .sysc_offs = 0x54,
1014 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
1015 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1016 .sysc_fields = &omap_hwmod_sysc_type2,
1017};
1018
1019static struct omap_hwmod_class am33xx_lcdc_hwmod_class = {
1020 .name = "lcdc",
1021 .sysc = &lcdc_sysc,
1022};
1023
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001024static struct omap_hwmod am33xx_lcdc_hwmod = {
1025 .name = "lcdc",
1026 .class = &am33xx_lcdc_hwmod_class,
1027 .clkdm_name = "lcdc_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001028 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1029 .main_clk = "lcd_gclk",
1030 .prcm = {
1031 .omap4 = {
1032 .clkctrl_offs = AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET,
1033 .modulemode = MODULEMODE_SWCTRL,
1034 },
1035 },
1036};
1037
1038/*
1039 * 'mailbox' class
1040 * mailbox module allowing communication between the on-chip processors using a
1041 * queued mailbox-interrupt mechanism.
1042 */
1043static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = {
1044 .rev_offs = 0x0000,
1045 .sysc_offs = 0x0010,
1046 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1047 SYSC_HAS_SOFTRESET),
1048 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1049 .sysc_fields = &omap_hwmod_sysc_type2,
1050};
1051
1052static struct omap_hwmod_class am33xx_mailbox_hwmod_class = {
1053 .name = "mailbox",
1054 .sysc = &am33xx_mailbox_sysc,
1055};
1056
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001057static struct omap_hwmod am33xx_mailbox_hwmod = {
1058 .name = "mailbox",
1059 .class = &am33xx_mailbox_hwmod_class,
1060 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001061 .main_clk = "l4ls_gclk",
1062 .prcm = {
1063 .omap4 = {
1064 .clkctrl_offs = AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET,
1065 .modulemode = MODULEMODE_SWCTRL,
1066 },
1067 },
1068};
1069
1070/*
1071 * 'mcasp' class
1072 */
1073static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = {
1074 .rev_offs = 0x0,
1075 .sysc_offs = 0x4,
1076 .sysc_flags = SYSC_HAS_SIDLEMODE,
1077 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1078 .sysc_fields = &omap_hwmod_sysc_type3,
1079};
1080
1081static struct omap_hwmod_class am33xx_mcasp_hwmod_class = {
1082 .name = "mcasp",
1083 .sysc = &am33xx_mcasp_sysc,
1084};
1085
1086/* mcasp0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001087static struct omap_hwmod am33xx_mcasp0_hwmod = {
1088 .name = "mcasp0",
1089 .class = &am33xx_mcasp_hwmod_class,
1090 .clkdm_name = "l3s_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001091 .main_clk = "mcasp0_fck",
1092 .prcm = {
1093 .omap4 = {
1094 .clkctrl_offs = AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET,
1095 .modulemode = MODULEMODE_SWCTRL,
1096 },
1097 },
1098};
1099
1100/* mcasp1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001101static struct omap_hwmod am33xx_mcasp1_hwmod = {
1102 .name = "mcasp1",
1103 .class = &am33xx_mcasp_hwmod_class,
1104 .clkdm_name = "l3s_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001105 .main_clk = "mcasp1_fck",
1106 .prcm = {
1107 .omap4 = {
1108 .clkctrl_offs = AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET,
1109 .modulemode = MODULEMODE_SWCTRL,
1110 },
1111 },
1112};
1113
1114/* 'mmc' class */
1115static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {
1116 .rev_offs = 0x1fc,
1117 .sysc_offs = 0x10,
1118 .syss_offs = 0x14,
1119 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1120 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1121 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1122 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1123 .sysc_fields = &omap_hwmod_sysc_type1,
1124};
1125
1126static struct omap_hwmod_class am33xx_mmc_hwmod_class = {
1127 .name = "mmc",
1128 .sysc = &am33xx_mmc_sysc,
1129};
1130
1131/* mmc0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001132static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = {
1133 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1134};
1135
1136static struct omap_hwmod am33xx_mmc0_hwmod = {
1137 .name = "mmc1",
1138 .class = &am33xx_mmc_hwmod_class,
1139 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001140 .main_clk = "mmc_clk",
1141 .prcm = {
1142 .omap4 = {
1143 .clkctrl_offs = AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET,
1144 .modulemode = MODULEMODE_SWCTRL,
1145 },
1146 },
1147 .dev_attr = &am33xx_mmc0_dev_attr,
1148};
1149
1150/* mmc1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001151static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = {
1152 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1153};
1154
1155static struct omap_hwmod am33xx_mmc1_hwmod = {
1156 .name = "mmc2",
1157 .class = &am33xx_mmc_hwmod_class,
1158 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001159 .main_clk = "mmc_clk",
1160 .prcm = {
1161 .omap4 = {
1162 .clkctrl_offs = AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET,
1163 .modulemode = MODULEMODE_SWCTRL,
1164 },
1165 },
1166 .dev_attr = &am33xx_mmc1_dev_attr,
1167};
1168
1169/* mmc2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001170static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = {
1171 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1172};
1173static struct omap_hwmod am33xx_mmc2_hwmod = {
1174 .name = "mmc3",
1175 .class = &am33xx_mmc_hwmod_class,
1176 .clkdm_name = "l3s_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001177 .main_clk = "mmc_clk",
1178 .prcm = {
1179 .omap4 = {
1180 .clkctrl_offs = AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET,
1181 .modulemode = MODULEMODE_SWCTRL,
1182 },
1183 },
1184 .dev_attr = &am33xx_mmc2_dev_attr,
1185};
1186
1187/*
1188 * 'rtc' class
1189 * rtc subsystem
1190 */
1191static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {
1192 .rev_offs = 0x0074,
1193 .sysc_offs = 0x0078,
1194 .sysc_flags = SYSC_HAS_SIDLEMODE,
1195 .idlemodes = (SIDLE_FORCE | SIDLE_NO |
1196 SIDLE_SMART | SIDLE_SMART_WKUP),
1197 .sysc_fields = &omap_hwmod_sysc_type3,
1198};
1199
1200static struct omap_hwmod_class am33xx_rtc_hwmod_class = {
1201 .name = "rtc",
1202 .sysc = &am33xx_rtc_sysc,
1203};
1204
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001205static struct omap_hwmod am33xx_rtc_hwmod = {
1206 .name = "rtc",
1207 .class = &am33xx_rtc_hwmod_class,
1208 .clkdm_name = "l4_rtc_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001209 .main_clk = "clk_32768_ck",
1210 .prcm = {
1211 .omap4 = {
1212 .clkctrl_offs = AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET,
1213 .modulemode = MODULEMODE_SWCTRL,
1214 },
1215 },
1216};
1217
1218/* 'spi' class */
1219static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = {
1220 .rev_offs = 0x0000,
1221 .sysc_offs = 0x0110,
1222 .syss_offs = 0x0114,
1223 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1224 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1225 SYSS_HAS_RESET_STATUS),
1226 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1227 .sysc_fields = &omap_hwmod_sysc_type1,
1228};
1229
1230static struct omap_hwmod_class am33xx_spi_hwmod_class = {
1231 .name = "mcspi",
1232 .sysc = &am33xx_mcspi_sysc,
1233 .rev = OMAP4_MCSPI_REV,
1234};
1235
1236/* spi0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001237static struct omap2_mcspi_dev_attr mcspi_attrib = {
1238 .num_chipselect = 2,
1239};
1240static struct omap_hwmod am33xx_spi0_hwmod = {
1241 .name = "spi0",
1242 .class = &am33xx_spi_hwmod_class,
1243 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001244 .main_clk = "dpll_per_m2_div4_ck",
1245 .prcm = {
1246 .omap4 = {
1247 .clkctrl_offs = AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET,
1248 .modulemode = MODULEMODE_SWCTRL,
1249 },
1250 },
1251 .dev_attr = &mcspi_attrib,
1252};
1253
1254/* spi1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001255static struct omap_hwmod am33xx_spi1_hwmod = {
1256 .name = "spi1",
1257 .class = &am33xx_spi_hwmod_class,
1258 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001259 .main_clk = "dpll_per_m2_div4_ck",
1260 .prcm = {
1261 .omap4 = {
1262 .clkctrl_offs = AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET,
1263 .modulemode = MODULEMODE_SWCTRL,
1264 },
1265 },
1266 .dev_attr = &mcspi_attrib,
1267};
1268
1269/*
1270 * 'spinlock' class
1271 * spinlock provides hardware assistance for synchronizing the
1272 * processes running on multiple processors
1273 */
1274static struct omap_hwmod_class am33xx_spinlock_hwmod_class = {
1275 .name = "spinlock",
1276};
1277
1278static struct omap_hwmod am33xx_spinlock_hwmod = {
1279 .name = "spinlock",
1280 .class = &am33xx_spinlock_hwmod_class,
1281 .clkdm_name = "l4ls_clkdm",
1282 .main_clk = "l4ls_gclk",
1283 .prcm = {
1284 .omap4 = {
1285 .clkctrl_offs = AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET,
1286 .modulemode = MODULEMODE_SWCTRL,
1287 },
1288 },
1289};
1290
1291/* 'timer 2-7' class */
1292static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = {
1293 .rev_offs = 0x0000,
1294 .sysc_offs = 0x0010,
1295 .syss_offs = 0x0014,
1296 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1297 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1298 SIDLE_SMART_WKUP),
1299 .sysc_fields = &omap_hwmod_sysc_type2,
1300};
1301
1302static struct omap_hwmod_class am33xx_timer_hwmod_class = {
1303 .name = "timer",
1304 .sysc = &am33xx_timer_sysc,
1305};
1306
1307/* timer1 1ms */
1308static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = {
1309 .rev_offs = 0x0000,
1310 .sysc_offs = 0x0010,
1311 .syss_offs = 0x0014,
1312 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1313 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1314 SYSS_HAS_RESET_STATUS),
1315 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1316 .sysc_fields = &omap_hwmod_sysc_type1,
1317};
1318
1319static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = {
1320 .name = "timer",
1321 .sysc = &am33xx_timer1ms_sysc,
1322};
1323
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001324static struct omap_hwmod am33xx_timer1_hwmod = {
1325 .name = "timer1",
1326 .class = &am33xx_timer1ms_hwmod_class,
1327 .clkdm_name = "l4_wkup_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001328 .main_clk = "timer1_fck",
1329 .prcm = {
1330 .omap4 = {
1331 .clkctrl_offs = AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
1332 .modulemode = MODULEMODE_SWCTRL,
1333 },
1334 },
1335};
1336
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001337static struct omap_hwmod am33xx_timer2_hwmod = {
1338 .name = "timer2",
1339 .class = &am33xx_timer_hwmod_class,
1340 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001341 .main_clk = "timer2_fck",
1342 .prcm = {
1343 .omap4 = {
1344 .clkctrl_offs = AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET,
1345 .modulemode = MODULEMODE_SWCTRL,
1346 },
1347 },
1348};
1349
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001350static struct omap_hwmod am33xx_timer3_hwmod = {
1351 .name = "timer3",
1352 .class = &am33xx_timer_hwmod_class,
1353 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001354 .main_clk = "timer3_fck",
1355 .prcm = {
1356 .omap4 = {
1357 .clkctrl_offs = AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET,
1358 .modulemode = MODULEMODE_SWCTRL,
1359 },
1360 },
1361};
1362
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001363static struct omap_hwmod am33xx_timer4_hwmod = {
1364 .name = "timer4",
1365 .class = &am33xx_timer_hwmod_class,
1366 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001367 .main_clk = "timer4_fck",
1368 .prcm = {
1369 .omap4 = {
1370 .clkctrl_offs = AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET,
1371 .modulemode = MODULEMODE_SWCTRL,
1372 },
1373 },
1374};
1375
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001376static struct omap_hwmod am33xx_timer5_hwmod = {
1377 .name = "timer5",
1378 .class = &am33xx_timer_hwmod_class,
1379 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001380 .main_clk = "timer5_fck",
1381 .prcm = {
1382 .omap4 = {
1383 .clkctrl_offs = AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET,
1384 .modulemode = MODULEMODE_SWCTRL,
1385 },
1386 },
1387};
1388
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001389static struct omap_hwmod am33xx_timer6_hwmod = {
1390 .name = "timer6",
1391 .class = &am33xx_timer_hwmod_class,
1392 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001393 .main_clk = "timer6_fck",
1394 .prcm = {
1395 .omap4 = {
1396 .clkctrl_offs = AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET,
1397 .modulemode = MODULEMODE_SWCTRL,
1398 },
1399 },
1400};
1401
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001402static struct omap_hwmod am33xx_timer7_hwmod = {
1403 .name = "timer7",
1404 .class = &am33xx_timer_hwmod_class,
1405 .clkdm_name = "l4ls_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001406 .main_clk = "timer7_fck",
1407 .prcm = {
1408 .omap4 = {
1409 .clkctrl_offs = AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET,
1410 .modulemode = MODULEMODE_SWCTRL,
1411 },
1412 },
1413};
1414
1415/* tpcc */
1416static struct omap_hwmod_class am33xx_tpcc_hwmod_class = {
1417 .name = "tpcc",
1418};
1419
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001420static struct omap_hwmod am33xx_tpcc_hwmod = {
1421 .name = "tpcc",
1422 .class = &am33xx_tpcc_hwmod_class,
1423 .clkdm_name = "l3_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001424 .main_clk = "l3_gclk",
1425 .prcm = {
1426 .omap4 = {
1427 .clkctrl_offs = AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET,
1428 .modulemode = MODULEMODE_SWCTRL,
1429 },
1430 },
1431};
1432
1433static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = {
1434 .rev_offs = 0x0,
1435 .sysc_offs = 0x10,
1436 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1437 SYSC_HAS_MIDLEMODE),
1438 .idlemodes = (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE),
1439 .sysc_fields = &omap_hwmod_sysc_type2,
1440};
1441
1442/* 'tptc' class */
1443static struct omap_hwmod_class am33xx_tptc_hwmod_class = {
1444 .name = "tptc",
1445 .sysc = &am33xx_tptc_sysc,
1446};
1447
1448/* tptc0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001449static struct omap_hwmod am33xx_tptc0_hwmod = {
1450 .name = "tptc0",
1451 .class = &am33xx_tptc_hwmod_class,
1452 .clkdm_name = "l3_clkdm",
Vaibhav Bedia0bfbbde2013-01-29 16:45:03 +05301453 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001454 .main_clk = "l3_gclk",
1455 .prcm = {
1456 .omap4 = {
1457 .clkctrl_offs = AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET,
1458 .modulemode = MODULEMODE_SWCTRL,
1459 },
1460 },
1461};
1462
1463/* tptc1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001464static struct omap_hwmod am33xx_tptc1_hwmod = {
1465 .name = "tptc1",
1466 .class = &am33xx_tptc_hwmod_class,
1467 .clkdm_name = "l3_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001468 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
1469 .main_clk = "l3_gclk",
1470 .prcm = {
1471 .omap4 = {
1472 .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,
1473 .modulemode = MODULEMODE_SWCTRL,
1474 },
1475 },
1476};
1477
1478/* tptc2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001479static struct omap_hwmod am33xx_tptc2_hwmod = {
1480 .name = "tptc2",
1481 .class = &am33xx_tptc_hwmod_class,
1482 .clkdm_name = "l3_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001483 .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
1484 .main_clk = "l3_gclk",
1485 .prcm = {
1486 .omap4 = {
1487 .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,
1488 .modulemode = MODULEMODE_SWCTRL,
1489 },
1490 },
1491};
1492
1493/* 'uart' class */
1494static struct omap_hwmod_class_sysconfig uart_sysc = {
1495 .rev_offs = 0x50,
1496 .sysc_offs = 0x54,
1497 .syss_offs = 0x58,
1498 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
1499 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1500 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1501 SIDLE_SMART_WKUP),
1502 .sysc_fields = &omap_hwmod_sysc_type1,
1503};
1504
1505static struct omap_hwmod_class uart_class = {
1506 .name = "uart",
1507 .sysc = &uart_sysc,
1508};
1509
1510/* uart1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001511static struct omap_hwmod am33xx_uart1_hwmod = {
1512 .name = "uart1",
1513 .class = &uart_class,
1514 .clkdm_name = "l4_wkup_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05301515 .flags = HWMOD_SWSUP_SIDLE_ACT,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001516 .main_clk = "dpll_per_m2_div4_wkupdm_ck",
1517 .prcm = {
1518 .omap4 = {
1519 .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,
1520 .modulemode = MODULEMODE_SWCTRL,
1521 },
1522 },
1523};
1524
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001525static struct omap_hwmod am33xx_uart2_hwmod = {
1526 .name = "uart2",
1527 .class = &uart_class,
1528 .clkdm_name = "l4ls_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05301529 .flags = HWMOD_SWSUP_SIDLE_ACT,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001530 .main_clk = "dpll_per_m2_div4_ck",
1531 .prcm = {
1532 .omap4 = {
1533 .clkctrl_offs = AM33XX_CM_PER_UART1_CLKCTRL_OFFSET,
1534 .modulemode = MODULEMODE_SWCTRL,
1535 },
1536 },
1537};
1538
1539/* uart3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001540static struct omap_hwmod am33xx_uart3_hwmod = {
1541 .name = "uart3",
1542 .class = &uart_class,
1543 .clkdm_name = "l4ls_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05301544 .flags = HWMOD_SWSUP_SIDLE_ACT,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001545 .main_clk = "dpll_per_m2_div4_ck",
1546 .prcm = {
1547 .omap4 = {
1548 .clkctrl_offs = AM33XX_CM_PER_UART2_CLKCTRL_OFFSET,
1549 .modulemode = MODULEMODE_SWCTRL,
1550 },
1551 },
1552};
1553
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001554static struct omap_hwmod am33xx_uart4_hwmod = {
1555 .name = "uart4",
1556 .class = &uart_class,
1557 .clkdm_name = "l4ls_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05301558 .flags = HWMOD_SWSUP_SIDLE_ACT,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001559 .main_clk = "dpll_per_m2_div4_ck",
1560 .prcm = {
1561 .omap4 = {
1562 .clkctrl_offs = AM33XX_CM_PER_UART3_CLKCTRL_OFFSET,
1563 .modulemode = MODULEMODE_SWCTRL,
1564 },
1565 },
1566};
1567
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001568static struct omap_hwmod am33xx_uart5_hwmod = {
1569 .name = "uart5",
1570 .class = &uart_class,
1571 .clkdm_name = "l4ls_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05301572 .flags = HWMOD_SWSUP_SIDLE_ACT,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001573 .main_clk = "dpll_per_m2_div4_ck",
1574 .prcm = {
1575 .omap4 = {
1576 .clkctrl_offs = AM33XX_CM_PER_UART4_CLKCTRL_OFFSET,
1577 .modulemode = MODULEMODE_SWCTRL,
1578 },
1579 },
1580};
1581
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001582static struct omap_hwmod am33xx_uart6_hwmod = {
1583 .name = "uart6",
1584 .class = &uart_class,
1585 .clkdm_name = "l4ls_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05301586 .flags = HWMOD_SWSUP_SIDLE_ACT,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001587 .main_clk = "dpll_per_m2_div4_ck",
1588 .prcm = {
1589 .omap4 = {
1590 .clkctrl_offs = AM33XX_CM_PER_UART5_CLKCTRL_OFFSET,
1591 .modulemode = MODULEMODE_SWCTRL,
1592 },
1593 },
1594};
1595
1596/* 'wd_timer' class */
Vaibhav Hiremath05cf03b2013-03-31 20:22:21 -06001597static struct omap_hwmod_class_sysconfig wdt_sysc = {
1598 .rev_offs = 0x0,
1599 .sysc_offs = 0x10,
1600 .syss_offs = 0x14,
1601 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
1602 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1603 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1604 SIDLE_SMART_WKUP),
1605 .sysc_fields = &omap_hwmod_sysc_type1,
1606};
1607
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001608static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = {
1609 .name = "wd_timer",
Vaibhav Hiremath05cf03b2013-03-31 20:22:21 -06001610 .sysc = &wdt_sysc,
1611 .pre_shutdown = &omap2_wd_timer_disable,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001612};
1613
1614/*
1615 * XXX: device.c file uses hardcoded name for watchdog timer
1616 * driver "wd_timer2, so we are also using same name as of now...
1617 */
1618static struct omap_hwmod am33xx_wd_timer1_hwmod = {
1619 .name = "wd_timer2",
1620 .class = &am33xx_wd_timer_hwmod_class,
1621 .clkdm_name = "l4_wkup_clkdm",
Vaibhav Hiremath05cf03b2013-03-31 20:22:21 -06001622 .flags = HWMOD_SWSUP_SIDLE,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001623 .main_clk = "wdt1_fck",
1624 .prcm = {
1625 .omap4 = {
1626 .clkctrl_offs = AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET,
1627 .modulemode = MODULEMODE_SWCTRL,
1628 },
1629 },
1630};
1631
1632/*
1633 * 'usb_otg' class
1634 * high-speed on-the-go universal serial bus (usb_otg) controller
1635 */
1636static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = {
1637 .rev_offs = 0x0,
1638 .sysc_offs = 0x10,
1639 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
1640 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1641 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1642 .sysc_fields = &omap_hwmod_sysc_type2,
1643};
1644
1645static struct omap_hwmod_class am33xx_usbotg_class = {
1646 .name = "usbotg",
1647 .sysc = &am33xx_usbhsotg_sysc,
1648};
1649
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001650static struct omap_hwmod am33xx_usbss_hwmod = {
1651 .name = "usb_otg_hs",
1652 .class = &am33xx_usbotg_class,
1653 .clkdm_name = "l3s_clkdm",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001654 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1655 .main_clk = "usbotg_fck",
1656 .prcm = {
1657 .omap4 = {
1658 .clkctrl_offs = AM33XX_CM_PER_USB0_CLKCTRL_OFFSET,
1659 .modulemode = MODULEMODE_SWCTRL,
1660 },
1661 },
1662};
1663
1664
1665/*
1666 * Interfaces
1667 */
1668
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001669static struct omap_hwmod_addr_space am33xx_emif_addrs[] = {
1670 {
1671 .pa_start = 0x4c000000,
1672 .pa_end = 0x4c000fff,
1673 .flags = ADDR_TYPE_RT
1674 },
1675 { }
1676};
1677/* l3 main -> emif */
1678static struct omap_hwmod_ocp_if am33xx_l3_main__emif = {
1679 .master = &am33xx_l3_main_hwmod,
1680 .slave = &am33xx_emif_hwmod,
1681 .clk = "dpll_core_m4_ck",
1682 .addr = am33xx_emif_addrs,
1683 .user = OCP_USER_MPU | OCP_USER_SDMA,
1684};
1685
1686/* mpu -> l3 main */
1687static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {
1688 .master = &am33xx_mpu_hwmod,
1689 .slave = &am33xx_l3_main_hwmod,
1690 .clk = "dpll_mpu_m2_ck",
1691 .user = OCP_USER_MPU,
1692};
1693
1694/* l3 main -> l4 hs */
1695static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = {
1696 .master = &am33xx_l3_main_hwmod,
1697 .slave = &am33xx_l4_hs_hwmod,
1698 .clk = "l3s_gclk",
1699 .user = OCP_USER_MPU | OCP_USER_SDMA,
1700};
1701
1702/* l3 main -> l3 s */
1703static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {
1704 .master = &am33xx_l3_main_hwmod,
1705 .slave = &am33xx_l3_s_hwmod,
1706 .clk = "l3s_gclk",
1707 .user = OCP_USER_MPU | OCP_USER_SDMA,
1708};
1709
1710/* l3 s -> l4 per/ls */
1711static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {
1712 .master = &am33xx_l3_s_hwmod,
1713 .slave = &am33xx_l4_ls_hwmod,
1714 .clk = "l3s_gclk",
1715 .user = OCP_USER_MPU | OCP_USER_SDMA,
1716};
1717
1718/* l3 s -> l4 wkup */
1719static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {
1720 .master = &am33xx_l3_s_hwmod,
1721 .slave = &am33xx_l4_wkup_hwmod,
1722 .clk = "l3s_gclk",
1723 .user = OCP_USER_MPU | OCP_USER_SDMA,
1724};
1725
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001726/* l3 main -> l3 instr */
1727static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {
1728 .master = &am33xx_l3_main_hwmod,
1729 .slave = &am33xx_l3_instr_hwmod,
1730 .clk = "l3s_gclk",
1731 .user = OCP_USER_MPU | OCP_USER_SDMA,
1732};
1733
1734/* mpu -> prcm */
1735static struct omap_hwmod_ocp_if am33xx_mpu__prcm = {
1736 .master = &am33xx_mpu_hwmod,
1737 .slave = &am33xx_prcm_hwmod,
1738 .clk = "dpll_mpu_m2_ck",
1739 .user = OCP_USER_MPU | OCP_USER_SDMA,
1740};
1741
1742/* l3 s -> l3 main*/
1743static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
1744 .master = &am33xx_l3_s_hwmod,
1745 .slave = &am33xx_l3_main_hwmod,
1746 .clk = "l3s_gclk",
1747 .user = OCP_USER_MPU | OCP_USER_SDMA,
1748};
1749
1750/* pru-icss -> l3 main */
1751static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {
1752 .master = &am33xx_pruss_hwmod,
1753 .slave = &am33xx_l3_main_hwmod,
1754 .clk = "l3_gclk",
1755 .user = OCP_USER_MPU | OCP_USER_SDMA,
1756};
1757
1758/* wkup m3 -> l4 wkup */
1759static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = {
1760 .master = &am33xx_wkup_m3_hwmod,
1761 .slave = &am33xx_l4_wkup_hwmod,
1762 .clk = "dpll_core_m4_div2_ck",
1763 .user = OCP_USER_MPU | OCP_USER_SDMA,
1764};
1765
1766/* gfx -> l3 main */
1767static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {
1768 .master = &am33xx_gfx_hwmod,
1769 .slave = &am33xx_l3_main_hwmod,
1770 .clk = "dpll_core_m4_ck",
1771 .user = OCP_USER_MPU | OCP_USER_SDMA,
1772};
1773
1774/* l4 wkup -> wkup m3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001775static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = {
1776 .master = &am33xx_l4_wkup_hwmod,
1777 .slave = &am33xx_wkup_m3_hwmod,
1778 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001779 .user = OCP_USER_MPU | OCP_USER_SDMA,
1780};
1781
1782/* l4 hs -> pru-icss */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001783static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss = {
1784 .master = &am33xx_l4_hs_hwmod,
1785 .slave = &am33xx_pruss_hwmod,
1786 .clk = "dpll_core_m4_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001787 .user = OCP_USER_MPU | OCP_USER_SDMA,
1788};
1789
1790/* l3 main -> gfx */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001791static struct omap_hwmod_ocp_if am33xx_l3_main__gfx = {
1792 .master = &am33xx_l3_main_hwmod,
1793 .slave = &am33xx_gfx_hwmod,
1794 .clk = "dpll_core_m4_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001795 .user = OCP_USER_MPU | OCP_USER_SDMA,
1796};
1797
1798/* l4 wkup -> smartreflex0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001799static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0 = {
1800 .master = &am33xx_l4_wkup_hwmod,
1801 .slave = &am33xx_smartreflex0_hwmod,
1802 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001803 .user = OCP_USER_MPU,
1804};
1805
1806/* l4 wkup -> smartreflex1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001807static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1 = {
1808 .master = &am33xx_l4_wkup_hwmod,
1809 .slave = &am33xx_smartreflex1_hwmod,
1810 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001811 .user = OCP_USER_MPU,
1812};
1813
1814/* l4 wkup -> control */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001815static struct omap_hwmod_ocp_if am33xx_l4_wkup__control = {
1816 .master = &am33xx_l4_wkup_hwmod,
1817 .slave = &am33xx_control_hwmod,
1818 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001819 .user = OCP_USER_MPU,
1820};
1821
1822/* l4 wkup -> rtc */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001823static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = {
1824 .master = &am33xx_l4_wkup_hwmod,
1825 .slave = &am33xx_rtc_hwmod,
1826 .clk = "clkdiv32k_ick",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001827 .user = OCP_USER_MPU,
1828};
1829
1830/* l4 per/ls -> DCAN0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001831static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = {
1832 .master = &am33xx_l4_ls_hwmod,
1833 .slave = &am33xx_dcan0_hwmod,
1834 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001835 .user = OCP_USER_MPU | OCP_USER_SDMA,
1836};
1837
1838/* l4 per/ls -> DCAN1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001839static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = {
1840 .master = &am33xx_l4_ls_hwmod,
1841 .slave = &am33xx_dcan1_hwmod,
1842 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001843 .user = OCP_USER_MPU | OCP_USER_SDMA,
1844};
1845
1846/* l4 per/ls -> GPIO2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001847static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = {
1848 .master = &am33xx_l4_ls_hwmod,
1849 .slave = &am33xx_gpio1_hwmod,
1850 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001851 .user = OCP_USER_MPU | OCP_USER_SDMA,
1852};
1853
1854/* l4 per/ls -> gpio3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001855static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = {
1856 .master = &am33xx_l4_ls_hwmod,
1857 .slave = &am33xx_gpio2_hwmod,
1858 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001859 .user = OCP_USER_MPU | OCP_USER_SDMA,
1860};
1861
1862/* l4 per/ls -> gpio4 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001863static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = {
1864 .master = &am33xx_l4_ls_hwmod,
1865 .slave = &am33xx_gpio3_hwmod,
1866 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001867 .user = OCP_USER_MPU | OCP_USER_SDMA,
1868};
1869
1870/* L4 WKUP -> I2C1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001871static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1 = {
1872 .master = &am33xx_l4_wkup_hwmod,
1873 .slave = &am33xx_i2c1_hwmod,
1874 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001875 .user = OCP_USER_MPU,
1876};
1877
1878/* L4 WKUP -> GPIO1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001879static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0 = {
1880 .master = &am33xx_l4_wkup_hwmod,
1881 .slave = &am33xx_gpio0_hwmod,
1882 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001883 .user = OCP_USER_MPU | OCP_USER_SDMA,
1884};
1885
1886/* L4 WKUP -> ADC_TSC */
1887static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs[] = {
1888 {
1889 .pa_start = 0x44E0D000,
1890 .pa_end = 0x44E0D000 + SZ_8K - 1,
1891 .flags = ADDR_TYPE_RT
1892 },
1893 { }
1894};
1895
1896static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = {
1897 .master = &am33xx_l4_wkup_hwmod,
1898 .slave = &am33xx_adc_tsc_hwmod,
1899 .clk = "dpll_core_m4_div2_ck",
1900 .addr = am33xx_adc_tsc_addrs,
1901 .user = OCP_USER_MPU,
1902};
1903
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001904static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = {
1905 .master = &am33xx_l4_hs_hwmod,
1906 .slave = &am33xx_cpgmac0_hwmod,
1907 .clk = "cpsw_125mhz_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001908 .user = OCP_USER_MPU,
1909};
1910
Paul Walmsley9816aa82012-12-28 02:09:07 -07001911static struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = {
Mugunthan V N70384a62012-11-14 09:07:58 +00001912 .master = &am33xx_cpgmac0_hwmod,
1913 .slave = &am33xx_mdio_hwmod,
Mugunthan V N70384a62012-11-14 09:07:58 +00001914 .user = OCP_USER_MPU,
1915};
1916
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001917static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = {
1918 {
1919 .pa_start = 0x48080000,
1920 .pa_end = 0x48080000 + SZ_8K - 1,
1921 .flags = ADDR_TYPE_RT
1922 },
1923 { }
1924};
1925
1926static struct omap_hwmod_ocp_if am33xx_l4_ls__elm = {
1927 .master = &am33xx_l4_ls_hwmod,
1928 .slave = &am33xx_elm_hwmod,
1929 .clk = "l4ls_gclk",
1930 .addr = am33xx_elm_addr_space,
1931 .user = OCP_USER_MPU,
1932};
1933
Philip Avinash9652d192013-01-02 18:54:49 +05301934static struct omap_hwmod_addr_space am33xx_epwmss0_addr_space[] = {
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001935 {
1936 .pa_start = 0x48300000,
1937 .pa_end = 0x48300000 + SZ_16 - 1,
1938 .flags = ADDR_TYPE_RT
1939 },
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001940 { }
1941};
1942
Philip Avinash9652d192013-01-02 18:54:49 +05301943static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0 = {
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001944 .master = &am33xx_l4_ls_hwmod,
Philip Avinash9652d192013-01-02 18:54:49 +05301945 .slave = &am33xx_epwmss0_hwmod,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001946 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05301947 .addr = am33xx_epwmss0_addr_space,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001948 .user = OCP_USER_MPU,
1949};
1950
Philip Avinash9652d192013-01-02 18:54:49 +05301951static struct omap_hwmod_ocp_if am33xx_epwmss0__ecap0 = {
1952 .master = &am33xx_epwmss0_hwmod,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001953 .slave = &am33xx_ecap0_hwmod,
1954 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001955 .user = OCP_USER_MPU,
1956};
1957
Philip Avinash9652d192013-01-02 18:54:49 +05301958static struct omap_hwmod_ocp_if am33xx_epwmss0__eqep0 = {
1959 .master = &am33xx_epwmss0_hwmod,
1960 .slave = &am33xx_eqep0_hwmod,
1961 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05301962 .user = OCP_USER_MPU,
1963};
1964
Philip Avinash9652d192013-01-02 18:54:49 +05301965static struct omap_hwmod_ocp_if am33xx_epwmss0__ehrpwm0 = {
1966 .master = &am33xx_epwmss0_hwmod,
1967 .slave = &am33xx_ehrpwm0_hwmod,
1968 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05301969 .user = OCP_USER_MPU,
1970};
1971
1972
1973static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space[] = {
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001974 {
1975 .pa_start = 0x48302000,
1976 .pa_end = 0x48302000 + SZ_16 - 1,
1977 .flags = ADDR_TYPE_RT
1978 },
Philip Avinash9652d192013-01-02 18:54:49 +05301979 { }
1980};
1981
1982static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1 = {
1983 .master = &am33xx_l4_ls_hwmod,
1984 .slave = &am33xx_epwmss1_hwmod,
1985 .clk = "l4ls_gclk",
1986 .addr = am33xx_epwmss1_addr_space,
1987 .user = OCP_USER_MPU,
1988};
1989
Philip Avinash9652d192013-01-02 18:54:49 +05301990static struct omap_hwmod_ocp_if am33xx_epwmss1__ecap1 = {
1991 .master = &am33xx_epwmss1_hwmod,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001992 .slave = &am33xx_ecap1_hwmod,
1993 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06001994 .user = OCP_USER_MPU,
1995};
1996
Philip Avinash9652d192013-01-02 18:54:49 +05301997static struct omap_hwmod_ocp_if am33xx_epwmss1__eqep1 = {
1998 .master = &am33xx_epwmss1_hwmod,
1999 .slave = &am33xx_eqep1_hwmod,
2000 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05302001 .user = OCP_USER_MPU,
2002};
2003
Philip Avinash9652d192013-01-02 18:54:49 +05302004static struct omap_hwmod_ocp_if am33xx_epwmss1__ehrpwm1 = {
2005 .master = &am33xx_epwmss1_hwmod,
2006 .slave = &am33xx_ehrpwm1_hwmod,
2007 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05302008 .user = OCP_USER_MPU,
2009};
2010
2011static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space[] = {
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002012 {
2013 .pa_start = 0x48304000,
2014 .pa_end = 0x48304000 + SZ_16 - 1,
2015 .flags = ADDR_TYPE_RT
2016 },
Philip Avinash9652d192013-01-02 18:54:49 +05302017 { }
2018};
2019
2020static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2 = {
2021 .master = &am33xx_l4_ls_hwmod,
2022 .slave = &am33xx_epwmss2_hwmod,
2023 .clk = "l4ls_gclk",
2024 .addr = am33xx_epwmss2_addr_space,
2025 .user = OCP_USER_MPU,
2026};
2027
Philip Avinash9652d192013-01-02 18:54:49 +05302028static struct omap_hwmod_ocp_if am33xx_epwmss2__ecap2 = {
2029 .master = &am33xx_epwmss2_hwmod,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002030 .slave = &am33xx_ecap2_hwmod,
2031 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002032 .user = OCP_USER_MPU,
2033};
2034
Philip Avinash9652d192013-01-02 18:54:49 +05302035static struct omap_hwmod_ocp_if am33xx_epwmss2__eqep2 = {
2036 .master = &am33xx_epwmss2_hwmod,
2037 .slave = &am33xx_eqep2_hwmod,
2038 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05302039 .user = OCP_USER_MPU,
2040};
2041
Philip Avinash9652d192013-01-02 18:54:49 +05302042static struct omap_hwmod_ocp_if am33xx_epwmss2__ehrpwm2 = {
2043 .master = &am33xx_epwmss2_hwmod,
2044 .slave = &am33xx_ehrpwm2_hwmod,
2045 .clk = "l4ls_gclk",
Philip Avinash9652d192013-01-02 18:54:49 +05302046 .user = OCP_USER_MPU,
2047};
2048
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002049/* l3s cfg -> gpmc */
2050static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = {
2051 {
2052 .pa_start = 0x50000000,
2053 .pa_end = 0x50000000 + SZ_8K - 1,
2054 .flags = ADDR_TYPE_RT,
2055 },
2056 { }
2057};
2058
2059static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
2060 .master = &am33xx_l3_s_hwmod,
2061 .slave = &am33xx_gpmc_hwmod,
2062 .clk = "l3s_gclk",
2063 .addr = am33xx_gpmc_addr_space,
2064 .user = OCP_USER_MPU,
2065};
2066
2067/* i2c2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002068static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
2069 .master = &am33xx_l4_ls_hwmod,
2070 .slave = &am33xx_i2c2_hwmod,
2071 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002072 .user = OCP_USER_MPU,
2073};
2074
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002075static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
2076 .master = &am33xx_l4_ls_hwmod,
2077 .slave = &am33xx_i2c3_hwmod,
2078 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002079 .user = OCP_USER_MPU,
2080};
2081
2082static struct omap_hwmod_addr_space am33xx_lcdc_addr_space[] = {
2083 {
2084 .pa_start = 0x4830E000,
2085 .pa_end = 0x4830E000 + SZ_8K - 1,
2086 .flags = ADDR_TYPE_RT,
2087 },
2088 { }
2089};
2090
2091static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = {
2092 .master = &am33xx_l3_main_hwmod,
2093 .slave = &am33xx_lcdc_hwmod,
2094 .clk = "dpll_core_m4_ck",
2095 .addr = am33xx_lcdc_addr_space,
2096 .user = OCP_USER_MPU,
2097};
2098
2099static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = {
2100 {
2101 .pa_start = 0x480C8000,
2102 .pa_end = 0x480C8000 + (SZ_4K - 1),
2103 .flags = ADDR_TYPE_RT
2104 },
2105 { }
2106};
2107
2108/* l4 ls -> mailbox */
2109static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
2110 .master = &am33xx_l4_ls_hwmod,
2111 .slave = &am33xx_mailbox_hwmod,
2112 .clk = "l4ls_gclk",
2113 .addr = am33xx_mailbox_addrs,
2114 .user = OCP_USER_MPU,
2115};
2116
2117/* l4 ls -> spinlock */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002118static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
2119 .master = &am33xx_l4_ls_hwmod,
2120 .slave = &am33xx_spinlock_hwmod,
2121 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002122 .user = OCP_USER_MPU,
2123};
2124
2125/* l4 ls -> mcasp0 */
2126static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
2127 {
2128 .pa_start = 0x48038000,
2129 .pa_end = 0x48038000 + SZ_8K - 1,
2130 .flags = ADDR_TYPE_RT
2131 },
2132 { }
2133};
2134
2135static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
2136 .master = &am33xx_l4_ls_hwmod,
2137 .slave = &am33xx_mcasp0_hwmod,
2138 .clk = "l4ls_gclk",
2139 .addr = am33xx_mcasp0_addr_space,
2140 .user = OCP_USER_MPU,
2141};
2142
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002143/* l4 ls -> mcasp1 */
2144static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
2145 {
2146 .pa_start = 0x4803C000,
2147 .pa_end = 0x4803C000 + SZ_8K - 1,
2148 .flags = ADDR_TYPE_RT
2149 },
2150 { }
2151};
2152
2153static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
2154 .master = &am33xx_l4_ls_hwmod,
2155 .slave = &am33xx_mcasp1_hwmod,
2156 .clk = "l4ls_gclk",
2157 .addr = am33xx_mcasp1_addr_space,
2158 .user = OCP_USER_MPU,
2159};
2160
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002161/* l4 ls -> mmc0 */
2162static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
2163 {
2164 .pa_start = 0x48060100,
2165 .pa_end = 0x48060100 + SZ_4K - 1,
2166 .flags = ADDR_TYPE_RT,
2167 },
2168 { }
2169};
2170
2171static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
2172 .master = &am33xx_l4_ls_hwmod,
2173 .slave = &am33xx_mmc0_hwmod,
2174 .clk = "l4ls_gclk",
2175 .addr = am33xx_mmc0_addr_space,
2176 .user = OCP_USER_MPU,
2177};
2178
2179/* l4 ls -> mmc1 */
2180static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
2181 {
2182 .pa_start = 0x481d8100,
2183 .pa_end = 0x481d8100 + SZ_4K - 1,
2184 .flags = ADDR_TYPE_RT,
2185 },
2186 { }
2187};
2188
2189static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
2190 .master = &am33xx_l4_ls_hwmod,
2191 .slave = &am33xx_mmc1_hwmod,
2192 .clk = "l4ls_gclk",
2193 .addr = am33xx_mmc1_addr_space,
2194 .user = OCP_USER_MPU,
2195};
2196
2197/* l3 s -> mmc2 */
2198static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
2199 {
2200 .pa_start = 0x47810100,
2201 .pa_end = 0x47810100 + SZ_64K - 1,
2202 .flags = ADDR_TYPE_RT,
2203 },
2204 { }
2205};
2206
2207static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
2208 .master = &am33xx_l3_s_hwmod,
2209 .slave = &am33xx_mmc2_hwmod,
2210 .clk = "l3s_gclk",
2211 .addr = am33xx_mmc2_addr_space,
2212 .user = OCP_USER_MPU,
2213};
2214
2215/* l4 ls -> mcspi0 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002216static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
2217 .master = &am33xx_l4_ls_hwmod,
2218 .slave = &am33xx_spi0_hwmod,
2219 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002220 .user = OCP_USER_MPU,
2221};
2222
2223/* l4 ls -> mcspi1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002224static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
2225 .master = &am33xx_l4_ls_hwmod,
2226 .slave = &am33xx_spi1_hwmod,
2227 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002228 .user = OCP_USER_MPU,
2229};
2230
2231/* l4 wkup -> timer1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002232static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1 = {
2233 .master = &am33xx_l4_wkup_hwmod,
2234 .slave = &am33xx_timer1_hwmod,
2235 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002236 .user = OCP_USER_MPU,
2237};
2238
2239/* l4 per -> timer2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002240static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
2241 .master = &am33xx_l4_ls_hwmod,
2242 .slave = &am33xx_timer2_hwmod,
2243 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002244 .user = OCP_USER_MPU,
2245};
2246
2247/* l4 per -> timer3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002248static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
2249 .master = &am33xx_l4_ls_hwmod,
2250 .slave = &am33xx_timer3_hwmod,
2251 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002252 .user = OCP_USER_MPU,
2253};
2254
2255/* l4 per -> timer4 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002256static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
2257 .master = &am33xx_l4_ls_hwmod,
2258 .slave = &am33xx_timer4_hwmod,
2259 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002260 .user = OCP_USER_MPU,
2261};
2262
2263/* l4 per -> timer5 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002264static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
2265 .master = &am33xx_l4_ls_hwmod,
2266 .slave = &am33xx_timer5_hwmod,
2267 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002268 .user = OCP_USER_MPU,
2269};
2270
2271/* l4 per -> timer6 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002272static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
2273 .master = &am33xx_l4_ls_hwmod,
2274 .slave = &am33xx_timer6_hwmod,
2275 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002276 .user = OCP_USER_MPU,
2277};
2278
2279/* l4 per -> timer7 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002280static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
2281 .master = &am33xx_l4_ls_hwmod,
2282 .slave = &am33xx_timer7_hwmod,
2283 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002284 .user = OCP_USER_MPU,
2285};
2286
2287/* l3 main -> tpcc */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002288static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
2289 .master = &am33xx_l3_main_hwmod,
2290 .slave = &am33xx_tpcc_hwmod,
2291 .clk = "l3_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002292 .user = OCP_USER_MPU,
2293};
2294
2295/* l3 main -> tpcc0 */
2296static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
2297 {
2298 .pa_start = 0x49800000,
2299 .pa_end = 0x49800000 + SZ_8K - 1,
2300 .flags = ADDR_TYPE_RT,
2301 },
2302 { }
2303};
2304
2305static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
2306 .master = &am33xx_l3_main_hwmod,
2307 .slave = &am33xx_tptc0_hwmod,
2308 .clk = "l3_gclk",
2309 .addr = am33xx_tptc0_addr_space,
2310 .user = OCP_USER_MPU,
2311};
2312
2313/* l3 main -> tpcc1 */
2314static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
2315 {
2316 .pa_start = 0x49900000,
2317 .pa_end = 0x49900000 + SZ_8K - 1,
2318 .flags = ADDR_TYPE_RT,
2319 },
2320 { }
2321};
2322
2323static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
2324 .master = &am33xx_l3_main_hwmod,
2325 .slave = &am33xx_tptc1_hwmod,
2326 .clk = "l3_gclk",
2327 .addr = am33xx_tptc1_addr_space,
2328 .user = OCP_USER_MPU,
2329};
2330
2331/* l3 main -> tpcc2 */
2332static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
2333 {
2334 .pa_start = 0x49a00000,
2335 .pa_end = 0x49a00000 + SZ_8K - 1,
2336 .flags = ADDR_TYPE_RT,
2337 },
2338 { }
2339};
2340
2341static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
2342 .master = &am33xx_l3_main_hwmod,
2343 .slave = &am33xx_tptc2_hwmod,
2344 .clk = "l3_gclk",
2345 .addr = am33xx_tptc2_addr_space,
2346 .user = OCP_USER_MPU,
2347};
2348
2349/* l4 wkup -> uart1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002350static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1 = {
2351 .master = &am33xx_l4_wkup_hwmod,
2352 .slave = &am33xx_uart1_hwmod,
2353 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002354 .user = OCP_USER_MPU,
2355};
2356
2357/* l4 ls -> uart2 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002358static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
2359 .master = &am33xx_l4_ls_hwmod,
2360 .slave = &am33xx_uart2_hwmod,
2361 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002362 .user = OCP_USER_MPU,
2363};
2364
2365/* l4 ls -> uart3 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002366static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
2367 .master = &am33xx_l4_ls_hwmod,
2368 .slave = &am33xx_uart3_hwmod,
2369 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002370 .user = OCP_USER_MPU,
2371};
2372
2373/* l4 ls -> uart4 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002374static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
2375 .master = &am33xx_l4_ls_hwmod,
2376 .slave = &am33xx_uart4_hwmod,
2377 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002378 .user = OCP_USER_MPU,
2379};
2380
2381/* l4 ls -> uart5 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002382static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
2383 .master = &am33xx_l4_ls_hwmod,
2384 .slave = &am33xx_uart5_hwmod,
2385 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002386 .user = OCP_USER_MPU,
2387};
2388
2389/* l4 ls -> uart6 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002390static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
2391 .master = &am33xx_l4_ls_hwmod,
2392 .slave = &am33xx_uart6_hwmod,
2393 .clk = "l4ls_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002394 .user = OCP_USER_MPU,
2395};
2396
2397/* l4 wkup -> wd_timer1 */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002398static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1 = {
2399 .master = &am33xx_l4_wkup_hwmod,
2400 .slave = &am33xx_wd_timer1_hwmod,
2401 .clk = "dpll_core_m4_div2_ck",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002402 .user = OCP_USER_MPU,
2403};
2404
2405/* usbss */
2406/* l3 s -> USBSS interface */
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002407static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = {
2408 .master = &am33xx_l3_s_hwmod,
2409 .slave = &am33xx_usbss_hwmod,
2410 .clk = "l3s_gclk",
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002411 .user = OCP_USER_MPU,
2412 .flags = OCPIF_SWSUP_IDLE,
2413};
2414
Vaibhav Bediaca903b62013-01-29 16:45:02 +05302415/* l3 main -> ocmc */
2416static struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
2417 .master = &am33xx_l3_main_hwmod,
2418 .slave = &am33xx_ocmcram_hwmod,
2419 .user = OCP_USER_MPU | OCP_USER_SDMA,
2420};
2421
Mark A. Greeraec94bf2013-03-18 10:06:35 -06002422/* l3 main -> sha0 HIB2 */
2423static struct omap_hwmod_addr_space am33xx_sha0_addrs[] = {
2424 {
2425 .pa_start = 0x53100000,
2426 .pa_end = 0x53100000 + SZ_512 - 1,
2427 .flags = ADDR_TYPE_RT
2428 },
2429 { }
2430};
2431
2432static struct omap_hwmod_ocp_if am33xx_l3_main__sha0 = {
2433 .master = &am33xx_l3_main_hwmod,
2434 .slave = &am33xx_sha0_hwmod,
2435 .clk = "sha0_fck",
2436 .addr = am33xx_sha0_addrs,
2437 .user = OCP_USER_MPU | OCP_USER_SDMA,
2438};
2439
Mark A. Greer1cb804b2012-12-21 09:28:14 -07002440/* l3 main -> AES0 HIB2 */
2441static struct omap_hwmod_addr_space am33xx_aes0_addrs[] = {
2442 {
2443 .pa_start = 0x53500000,
2444 .pa_end = 0x53500000 + SZ_1M - 1,
2445 .flags = ADDR_TYPE_RT
2446 },
2447 { }
2448};
2449
2450static struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = {
2451 .master = &am33xx_l3_main_hwmod,
2452 .slave = &am33xx_aes0_hwmod,
2453 .clk = "aes0_fck",
2454 .addr = am33xx_aes0_addrs,
2455 .user = OCP_USER_MPU | OCP_USER_SDMA,
2456};
2457
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002458static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002459 &am33xx_l3_main__emif,
2460 &am33xx_mpu__l3_main,
2461 &am33xx_mpu__prcm,
2462 &am33xx_l3_s__l4_ls,
2463 &am33xx_l3_s__l4_wkup,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002464 &am33xx_l3_main__l4_hs,
2465 &am33xx_l3_main__l3_s,
2466 &am33xx_l3_main__l3_instr,
2467 &am33xx_l3_main__gfx,
2468 &am33xx_l3_s__l3_main,
2469 &am33xx_pruss__l3_main,
2470 &am33xx_wkup_m3__l4_wkup,
2471 &am33xx_gfx__l3_main,
2472 &am33xx_l4_wkup__wkup_m3,
2473 &am33xx_l4_wkup__control,
2474 &am33xx_l4_wkup__smartreflex0,
2475 &am33xx_l4_wkup__smartreflex1,
2476 &am33xx_l4_wkup__uart1,
2477 &am33xx_l4_wkup__timer1,
2478 &am33xx_l4_wkup__rtc,
2479 &am33xx_l4_wkup__i2c1,
2480 &am33xx_l4_wkup__gpio0,
2481 &am33xx_l4_wkup__adc_tsc,
2482 &am33xx_l4_wkup__wd_timer1,
2483 &am33xx_l4_hs__pruss,
2484 &am33xx_l4_per__dcan0,
2485 &am33xx_l4_per__dcan1,
2486 &am33xx_l4_per__gpio1,
2487 &am33xx_l4_per__gpio2,
2488 &am33xx_l4_per__gpio3,
2489 &am33xx_l4_per__i2c2,
2490 &am33xx_l4_per__i2c3,
2491 &am33xx_l4_per__mailbox,
2492 &am33xx_l4_ls__mcasp0,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002493 &am33xx_l4_ls__mcasp1,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002494 &am33xx_l4_ls__mmc0,
2495 &am33xx_l4_ls__mmc1,
2496 &am33xx_l3_s__mmc2,
2497 &am33xx_l4_ls__timer2,
2498 &am33xx_l4_ls__timer3,
2499 &am33xx_l4_ls__timer4,
2500 &am33xx_l4_ls__timer5,
2501 &am33xx_l4_ls__timer6,
2502 &am33xx_l4_ls__timer7,
2503 &am33xx_l3_main__tpcc,
2504 &am33xx_l4_ls__uart2,
2505 &am33xx_l4_ls__uart3,
2506 &am33xx_l4_ls__uart4,
2507 &am33xx_l4_ls__uart5,
2508 &am33xx_l4_ls__uart6,
2509 &am33xx_l4_ls__spinlock,
2510 &am33xx_l4_ls__elm,
Philip Avinash9652d192013-01-02 18:54:49 +05302511 &am33xx_l4_ls__epwmss0,
2512 &am33xx_epwmss0__ecap0,
2513 &am33xx_epwmss0__eqep0,
2514 &am33xx_epwmss0__ehrpwm0,
2515 &am33xx_l4_ls__epwmss1,
2516 &am33xx_epwmss1__ecap1,
2517 &am33xx_epwmss1__eqep1,
2518 &am33xx_epwmss1__ehrpwm1,
2519 &am33xx_l4_ls__epwmss2,
2520 &am33xx_epwmss2__ecap2,
2521 &am33xx_epwmss2__eqep2,
2522 &am33xx_epwmss2__ehrpwm2,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002523 &am33xx_l3_s__gpmc,
2524 &am33xx_l3_main__lcdc,
2525 &am33xx_l4_ls__mcspi0,
2526 &am33xx_l4_ls__mcspi1,
2527 &am33xx_l3_main__tptc0,
2528 &am33xx_l3_main__tptc1,
2529 &am33xx_l3_main__tptc2,
Vaibhav Bediaca903b62013-01-29 16:45:02 +05302530 &am33xx_l3_main__ocmc,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002531 &am33xx_l3_s__usbss,
2532 &am33xx_l4_hs__cpgmac0,
Mugunthan V N70384a62012-11-14 09:07:58 +00002533 &am33xx_cpgmac0__mdio,
Mark A. Greeraec94bf2013-03-18 10:06:35 -06002534 &am33xx_l3_main__sha0,
Mark A. Greer1cb804b2012-12-21 09:28:14 -07002535 &am33xx_l3_main__aes0,
Vaibhav Hirematha2cfc502012-07-25 13:51:13 -06002536 NULL,
2537};
2538
2539int __init am33xx_hwmod_init(void)
2540{
2541 omap_hwmod_init();
2542 return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs);
2543}