Blame view

arch/arm/mach-omap2/omap_hwmod_7xx_data.c 115 KB
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  /*
   * Hardware modules present on the DRA7xx chips
   *
   * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
   *
   * Paul Walmsley
   * Benoit Cousson
   *
   * This file is automatically generated from the OMAP hardware databases.
   * We respectfully ask that any modifications to this file be coordinated
   * with the public linux-omap@vger.kernel.org mailing list and the
   * authors above to ensure that the autogeneration scripts are kept
   * up-to-date with the file contents.
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2 as
   * published by the Free Software Foundation.
   */
  
  #include <linux/io.h>
  #include <linux/platform_data/gpio-omap.h>
  #include <linux/power/smartreflex.h>
  #include <linux/i2c-omap.h>
  
  #include <linux/omap-dma.h>
  #include <linux/platform_data/spi-omap2-mcspi.h>
  #include <linux/platform_data/asoc-ti-mcbsp.h>
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
28
  #include <linux/platform_data/iommu-omap.h>
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
29
30
31
32
33
34
35
36
37
38
  #include <plat/dmtimer.h>
  
  #include "omap_hwmod.h"
  #include "omap_hwmod_common_data.h"
  #include "cm1_7xx.h"
  #include "cm2_7xx.h"
  #include "prm7xx.h"
  #include "i2c.h"
  #include "mmc.h"
  #include "wd_timer.h"
7c25c8564   Rajendra Nayak   ARM: DRA7: hwmod:...
39
  #include "soc.h"
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
40
41
42
43
44
45
46
47
48
49
50
51
52
  
  /* Base offset for all DRA7XX interrupts external to MPUSS */
  #define DRA7XX_IRQ_GIC_START	32
  
  /* Base offset for all DRA7XX dma requests */
  #define DRA7XX_DMA_REQ_START	1
  
  
  /*
   * IP blocks
   */
  
  /*
20b9ecba1   Darren Etheridge   ARM: DRA7: hwmod:...
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
   * 'dmm' class
   * instance(s): dmm
   */
  static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
  	.name	= "dmm",
  };
  
  /* dmm */
  static struct omap_hwmod dra7xx_dmm_hwmod = {
  	.name		= "dmm",
  	.class		= &dra7xx_dmm_hwmod_class,
  	.clkdm_name	= "emif_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'emif_ocp_fw' class
   * instance(s): emif_ocp_fw
   */
  static struct omap_hwmod_class dra7xx_emif_ocp_fw_hwmod_class = {
  	.name	= "emif_ocp_fw",
  };
  
  /* emif_ocp_fw */
  static struct omap_hwmod dra7xx_emif_ocp_fw_hwmod = {
  	.name		= "emif_ocp_fw",
  	.class		= &dra7xx_emif_ocp_fw_hwmod_class,
  	.clkdm_name	= "emif_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_EMIF_EMIF_OCP_FW_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_EMIF_EMIF_OCP_FW_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
   * 'l3' class
   * instance(s): l3_instr, l3_main_1, l3_main_2
   */
  static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
  	.name	= "l3",
  };
  
  /* l3_instr */
  static struct omap_hwmod dra7xx_l3_instr_hwmod = {
  	.name		= "l3_instr",
  	.class		= &dra7xx_l3_hwmod_class,
  	.clkdm_name	= "l3instr_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* l3_main_1 */
  static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
  	.name		= "l3_main_1",
  	.class		= &dra7xx_l3_hwmod_class,
  	.clkdm_name	= "l3main1_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* l3_main_2 */
  static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
  	.name		= "l3_main_2",
  	.class		= &dra7xx_l3_hwmod_class,
  	.clkdm_name	= "l3instr_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /*
   * 'l4' class
   * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
   */
  static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
  	.name	= "l4",
  };
  
  /* l4_cfg */
  static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
  	.name		= "l4_cfg",
  	.class		= &dra7xx_l4_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* l4_per1 */
  static struct omap_hwmod dra7xx_l4_per1_hwmod = {
  	.name		= "l4_per1",
  	.class		= &dra7xx_l4_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
  			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  		},
  	},
  };
  
  /* l4_per2 */
  static struct omap_hwmod dra7xx_l4_per2_hwmod = {
  	.name		= "l4_per2",
  	.class		= &dra7xx_l4_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
  			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  		},
  	},
  };
  
  /* l4_per3 */
  static struct omap_hwmod dra7xx_l4_per3_hwmod = {
  	.name		= "l4_per3",
  	.class		= &dra7xx_l4_hwmod_class,
  	.clkdm_name	= "l4per3_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
  			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  		},
  	},
  };
  
  /* l4_wkup */
  static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
  	.name		= "l4_wkup",
  	.class		= &dra7xx_l4_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'atl' class
   *
   */
  
  static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
  	.name	= "atl",
  };
  
  /* atl */
  static struct omap_hwmod dra7xx_atl_hwmod = {
  	.name		= "atl",
  	.class		= &dra7xx_atl_hwmod_class,
  	.clkdm_name	= "atl_clkdm",
  	.main_clk	= "atl_gfclk_mux",
ee1a2a09f   Peter Ujfalusi   ARM: DRA7: hwmod_...
231
  	.lockdep_class	= HWMOD_LOCKDEP_SUBCLASS_CLASS1,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
   * 'bb2d' class
   *
   */
  
  static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
  	.name	= "bb2d",
  };
  
  /* bb2d */
  static struct omap_hwmod dra7xx_bb2d_hwmod = {
  	.name		= "bb2d",
  	.class		= &dra7xx_bb2d_hwmod_class,
  	.clkdm_name	= "dss_clkdm",
  	.main_clk	= "dpll_core_h24x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
19f6de650   Darren Etheridge   ARM: DRA7: hwmod:...
266
267
268
269
270
271
272
273
   * 'vpe' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_vpe_sysc = {
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
9c8fdb3fc   Benoit Parrot   ARM: DRA7: hwmod:...
274
275
  			   MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART),
19f6de650   Darren Etheridge   ARM: DRA7: hwmod:...
276
277
278
279
280
281
282
283
284
285
286
287
288
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_vpe_hwmod_class = {
  	.name	= "vpe",
  	.sysc	= &dra7xx_vpe_sysc,
  };
  
  /* vpe */
  static struct omap_hwmod dra7xx_vpe_hwmod = {
  	.name		= "vpe",
  	.class		= &dra7xx_vpe_hwmod_class,
  	.clkdm_name	= "vpe_clkdm",
9c8fdb3fc   Benoit Parrot   ARM: DRA7: hwmod:...
289
  	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
19f6de650   Darren Etheridge   ARM: DRA7: hwmod:...
290
291
292
293
294
295
296
297
298
299
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_VPE_VPE_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_VPE_VPE_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /*
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
300
301
302
303
304
305
306
307
   * 'vip' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_vip_sysc = {
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5927cde5f   Benoit Parrot   ARM: DRA7: hwmod:...
308
309
  			   MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART),
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
310
311
312
313
314
315
316
317
318
319
320
321
322
323
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_vip_hwmod_class = {
  	.name	= "vip",
  	.sysc	= &dra7xx_vip_sysc,
  };
  
  /* vip1 */
  static struct omap_hwmod dra7xx_vip1_hwmod = {
  	.name		= "vip1",
  	.class		= &dra7xx_vip_hwmod_class,
  	.clkdm_name	= "cam_clkdm",
  	.main_clk	= "vip1_gclk_mux",
5927cde5f   Benoit Parrot   ARM: DRA7: hwmod:...
324
  	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_CAM_VIP1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_CAM_VIP1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* vip2 */
  static struct omap_hwmod dra7xx_vip2_hwmod = {
  	.name		= "vip2",
  	.class		= &dra7xx_vip_hwmod_class,
  	.clkdm_name	= "cam_clkdm",
  	.main_clk	= "vip2_gclk_mux",
5927cde5f   Benoit Parrot   ARM: DRA7: hwmod:...
340
  	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_CAM_VIP2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_CAM_VIP2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* vip3 */
  static struct omap_hwmod dra7xx_vip3_hwmod = {
  	.name		= "vip3",
  	.class		= &dra7xx_vip_hwmod_class,
  	.clkdm_name	= "cam_clkdm",
  	.main_clk	= "vip3_gclk_mux",
5927cde5f   Benoit Parrot   ARM: DRA7: hwmod:...
356
  	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
357
358
359
360
361
362
363
364
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_CAM_VIP3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_CAM_VIP3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
f908f4319   Benoit Parrot   ARM: DRA7: hwmod:...
365
366
367
368
369
370
371
  /*
   * 'cal' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_cal_sysc = {
  	.sysc_offs	= 0x0010,
972137109   Benoit Parrot   ARM: DRA7: hwmod:...
372
  	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_RESET_STATUS |
49267297f   Benoit Parrot   ARM: DRA7: hwmod:...
373
374
375
  			   SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   MSTANDBY_FORCE | MSTANDBY_NO),
f908f4319   Benoit Parrot   ARM: DRA7: hwmod:...
376
377
378
379
380
381
382
383
384
385
386
387
388
389
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_cal_hwmod_class = {
  	.name	= "cal",
  	.sysc	= &dra7xx_cal_sysc,
  };
  
  /* cal */
  static struct omap_hwmod dra7xx_cal_hwmod = {
  	.name		= "cal",
  	.class		= &dra7xx_cal_hwmod_class,
  	.clkdm_name	= "cam_clkdm",
  	.main_clk	= "vip2_gclk_mux",
49267297f   Benoit Parrot   ARM: DRA7: hwmod:...
390
  	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
f908f4319   Benoit Parrot   ARM: DRA7: hwmod:...
391
392
393
394
395
396
397
398
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_CAM_VIP2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_CAM_VIP2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
399
400
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
   * 'counter' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= SYSC_HAS_SIDLEMODE,
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
  	.name	= "counter",
  	.sysc	= &dra7xx_counter_sysc,
  };
  
  /* counter_32k */
  static struct omap_hwmod dra7xx_counter_32k_hwmod = {
  	.name		= "counter_32k",
  	.class		= &dra7xx_counter_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.flags		= HWMOD_SWSUP_SIDLE,
  	.main_clk	= "wkupaon_iclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'ctrl_module' class
   *
   */
  
  static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
  	.name	= "ctrl_module",
  };
  
  /* ctrl_module_wkup */
  static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
  	.name		= "ctrl_module_wkup",
  	.class		= &dra7xx_ctrl_module_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.prcm = {
  		.omap4 = {
  			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  		},
  	},
  };
  
  /*
5518f7617   Mugunthan V N   ARM: OMAP2+: DRA7...
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
   * 'gmac' class
   * cpsw/gmac sub system
   */
  static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = {
  	.rev_offs	= 0x0,
  	.sysc_offs	= 0x8,
  	.syss_offs	= 0x4,
  	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
  			   MSTANDBY_NO),
  	.sysc_fields	= &omap_hwmod_sysc_type3,
  };
  
  static struct omap_hwmod_class dra7xx_gmac_hwmod_class = {
  	.name		= "gmac",
  	.sysc		= &dra7xx_gmac_sysc,
  };
  
  static struct omap_hwmod dra7xx_gmac_hwmod = {
  	.name		= "gmac",
  	.class		= &dra7xx_gmac_hwmod_class,
  	.clkdm_name	= "gmac_clkdm",
  	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  	.main_clk	= "dpll_gmac_ck",
d7752af1f   Mugunthan V N   ARM: OMAP2+: hwmo...
481
  	.mpu_rt_idx	= 1,
5518f7617   Mugunthan V N   ARM: OMAP2+: DRA7...
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
  	.prcm		= {
  		.omap4	= {
  			.clkctrl_offs	= DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET,
  			.context_offs	= DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET,
  			.modulemode	= MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
   * 'mdio' class
   */
  static struct omap_hwmod_class dra7xx_mdio_hwmod_class = {
  	.name		= "davinci_mdio",
  };
  
  static struct omap_hwmod dra7xx_mdio_hwmod = {
  	.name		= "davinci_mdio",
  	.class		= &dra7xx_mdio_hwmod_class,
  	.clkdm_name	= "gmac_clkdm",
  	.main_clk	= "dpll_gmac_ck",
  };
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
506
507
508
509
510
511
512
513
514
515
516
517
518
   * 'dcan' class
   *
   */
  
  static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
  	.name	= "dcan",
  };
  
  /* dcan1 */
  static struct omap_hwmod dra7xx_dcan1_hwmod = {
  	.name		= "dcan1",
  	.class		= &dra7xx_dcan_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
519
520
521
522
523
524
525
526
527
528
529
530
531
532
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* dcan2 */
  static struct omap_hwmod dra7xx_dcan2_hwmod = {
  	.name		= "dcan2",
  	.class		= &dra7xx_dcan_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
533
534
535
536
537
538
539
540
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
0cd6f5d5f   Vignesh R   ARM: OMAP2+: DRA7...
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
  /* pwmss  */
  static struct omap_hwmod_class_sysconfig dra7xx_epwmss_sysc = {
  	.rev_offs	= 0x0,
  	.sysc_offs	= 0x4,
  	.sysc_flags	= SYSC_HAS_SIDLEMODE | SYSC_HAS_RESET_STATUS,
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  struct omap_hwmod_class dra7xx_epwmss_hwmod_class = {
  	.name		= "epwmss",
  	.sysc		= &dra7xx_epwmss_sysc,
  };
  
  static struct omap_hwmod_class dra7xx_ecap_hwmod_class = {
  	.name		= "ecap",
  };
  
  static struct omap_hwmod_class dra7xx_eqep_hwmod_class = {
  	.name		= "eqep",
  };
  
  struct omap_hwmod_class dra7xx_ehrpwm_hwmod_class = {
  	.name		= "ehrpwm",
  };
  
  /* epwmss0 */
  struct omap_hwmod dra7xx_epwmss0_hwmod = {
  	.name		= "epwmss0",
  	.class		= &dra7xx_epwmss_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  	.prcm		= {
  		.omap4	= {
  			.modulemode	= MODULEMODE_SWCTRL,
  			.clkctrl_offs	= DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET,
  			.context_offs	= DRA7XX_RM_L4PER2_PWMSS1_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* ecap0 */
  struct omap_hwmod dra7xx_ecap0_hwmod = {
  	.name		= "ecap0",
  	.class		= &dra7xx_ecap_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* eqep0 */
  struct omap_hwmod dra7xx_eqep0_hwmod = {
  	.name		= "eqep0",
  	.class		= &dra7xx_eqep_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* ehrpwm0 */
  struct omap_hwmod dra7xx_ehrpwm0_hwmod = {
  	.name		= "ehrpwm0",
  	.class		= &dra7xx_ehrpwm_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* epwmss1 */
  struct omap_hwmod dra7xx_epwmss1_hwmod = {
  	.name		= "epwmss1",
  	.class		= &dra7xx_epwmss_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  	.prcm		= {
  		.omap4	= {
  			.modulemode	= MODULEMODE_SWCTRL,
  			.clkctrl_offs	= DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET,
  			.context_offs	= DRA7XX_RM_L4PER2_PWMSS2_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* ecap1 */
  struct omap_hwmod dra7xx_ecap1_hwmod = {
  	.name		= "ecap1",
  	.class		= &dra7xx_ecap_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* eqep1 */
  struct omap_hwmod dra7xx_eqep1_hwmod = {
  	.name		= "eqep1",
  	.class		= &dra7xx_eqep_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* ehrpwm1 */
  struct omap_hwmod dra7xx_ehrpwm1_hwmod = {
  	.name		= "ehrpwm1",
  	.class		= &dra7xx_ehrpwm_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* epwmss2 */
  struct omap_hwmod dra7xx_epwmss2_hwmod = {
  	.name		= "epwmss2",
  	.class		= &dra7xx_epwmss_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  	.prcm		= {
  		.omap4	= {
  			.modulemode	= MODULEMODE_SWCTRL,
  			.clkctrl_offs	= DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET,
  			.context_offs	= DRA7XX_RM_L4PER2_PWMSS3_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* ecap2 */
  struct omap_hwmod dra7xx_ecap2_hwmod = {
  	.name		= "ecap2",
  	.class		= &dra7xx_ecap_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* eqep2 */
  struct omap_hwmod dra7xx_eqep2_hwmod = {
  	.name		= "eqep2",
  	.class		= &dra7xx_eqep_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
  
  /* ehrpwm2 */
  struct omap_hwmod dra7xx_ehrpwm2_hwmod = {
  	.name		= "ehrpwm2",
  	.class		= &dra7xx_ehrpwm_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "l4_root_clk_div",
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
  /*
   * 'dma' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x002c,
  	.syss_offs	= 0x0028,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  			   SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
  	.name	= "dma",
  	.sysc	= &dra7xx_dma_sysc,
  };
  
  /* dma dev_attr */
  static struct omap_dma_dev_attr dma_dev_attr = {
  	.dev_caps	= RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  			  IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  	.lch_count	= 32,
  };
  
  /* dma_system */
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
715
716
717
718
  static struct omap_hwmod dra7xx_dma_system_hwmod = {
  	.name		= "dma_system",
  	.class		= &dra7xx_dma_hwmod_class,
  	.clkdm_name	= "dma_clkdm",
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
719
720
721
722
723
724
725
726
727
728
729
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  		},
  	},
  	.dev_attr	= &dma_dev_attr,
  };
  
  /*
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
   * 'dsp' class
   * dsp sub-system
   */
  
  static struct omap_hwmod_class dra7xx_dsp_hwmod_class = {
  	.name   = "dsp",
  };
  
  static struct omap_hwmod_rst_info dra7xx_dsp_resets[] = {
  	{ .name = "dsp", .rst_shift = 0 },
  };
  
  /* dsp1 processor */
  static struct omap_hwmod dra7xx_dsp1_hwmod = {
  	.name		= "dsp1",
  	.class		= &dra7xx_dsp_hwmod_class,
  	.clkdm_name	= "dsp1_clkdm",
  	.rst_lines	= dra7xx_dsp_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_dsp_resets),
  	.main_clk	= "dpll_dsp_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSP1_DSP1_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_DSP1_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSP1_DSP1_CONTEXT_OFFSET,
  		},
  	},
  };
b58b24ff7   Suman Anna   ARM: DRA7: hwmod_...
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
  /* dsp2 processor */
  static struct omap_hwmod dra7xx_dsp2_hwmod = {
  	.name		= "dsp2",
  	.class		= &dra7xx_dsp_hwmod_class,
  	.clkdm_name	= "dsp2_clkdm",
  	.rst_lines	= dra7xx_dsp_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_dsp_resets),
  	.main_clk	= "dpll_dsp_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSP2_DSP2_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_DSP2_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSP2_DSP2_CONTEXT_OFFSET,
  		},
  	},
  };
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
774
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
   * 'dss' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
  	.rev_offs	= 0x0000,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= SYSS_HAS_RESET_STATUS,
  };
  
  static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
  	.name	= "dss",
  	.sysc	= &dra7xx_dss_sysc,
  	.reset	= omap_dss_reset,
  };
  
  /* dss */
  static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
  	{ .dma_req = 75 + DRA7XX_DMA_REQ_START },
  	{ .dma_req = -1 }
  };
  
  static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  	{ .role = "dss_clk", .clk = "dss_dss_clk" },
  	{ .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
  	{ .role = "32khz_clk", .clk = "dss_32khz_clk" },
  	{ .role = "video2_clk", .clk = "dss_video2_clk" },
  	{ .role = "video1_clk", .clk = "dss_video1_clk" },
  	{ .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
  };
  
  static struct omap_hwmod dra7xx_dss_hwmod = {
  	.name		= "dss_core",
  	.class		= &dra7xx_dss_hwmod_class,
  	.clkdm_name	= "dss_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.sdma_reqs	= dra7xx_dss_sdma_reqs,
  	.main_clk	= "dss_dss_clk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.opt_clks	= dss_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(dss_opt_clks),
  };
  
  /*
   * 'dispc' class
   * display controller
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  			   SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
  	.name	= "dispc",
  	.sysc	= &dra7xx_dispc_sysc,
  };
  
  /* dss_dispc */
  /* dss_dispc dev_attr */
  static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  	.has_framedonetv_irq	= 1,
  	.manager_count		= 4,
  };
  
  static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
  	.name		= "dss_dispc",
  	.class		= &dra7xx_dispc_hwmod_class,
  	.clkdm_name	= "dss_clkdm",
  	.main_clk	= "dss_dss_clk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  		},
  	},
  	.dev_attr	= &dss_dispc_dev_attr,
a0b2011d5   Tomi Valkeinen   ARM: DRA7xx: hwmo...
866
  	.parent_hwmod	= &dra7xx_dss_hwmod,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
  };
  
  /*
   * 'hdmi' class
   * hdmi controller
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
  	.name	= "hdmi",
  	.sysc	= &dra7xx_hdmi_sysc,
  };
  
  /* dss_hdmi */
  
  static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  	{ .role = "sys_clk", .clk = "dss_hdmi_clk" },
  };
  
  static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
  	.name		= "dss_hdmi",
  	.class		= &dra7xx_hdmi_hwmod_class,
  	.clkdm_name	= "dss_clkdm",
  	.main_clk	= "dss_48mhz_clk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  		},
  	},
  	.opt_clks	= dss_hdmi_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(dss_hdmi_opt_clks),
a0b2011d5   Tomi Valkeinen   ARM: DRA7xx: hwmo...
908
  	.parent_hwmod	= &dra7xx_dss_hwmod,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
909
  };
79b47248b   Joel Fernandes   ARM: DRA7: hwmod:...
910
911
912
913
914
915
916
917
918
919
920
921
922
  /* AES (the 'P' (public) device) */
  static struct omap_hwmod_class_sysconfig dra7xx_aes_sysc = {
  	.rev_offs	= 0x0080,
  	.sysc_offs	= 0x0084,
  	.syss_offs	= 0x0088,
  	.sysc_flags	= SYSS_HAS_RESET_STATUS,
  };
  
  static struct omap_hwmod_class dra7xx_aes_hwmod_class = {
  	.name	= "aes",
  	.sysc	= &dra7xx_aes_sysc,
  	.rev	= 2,
  };
fdda94a5a   Lokesh Vutla   ARM: DRA7: hwmod:...
923
924
925
  /* AES1 */
  static struct omap_hwmod dra7xx_aes1_hwmod = {
  	.name		= "aes1",
79b47248b   Joel Fernandes   ARM: DRA7: hwmod:...
926
927
928
929
930
931
932
933
934
935
936
  	.class		= &dra7xx_aes_hwmod_class,
  	.clkdm_name	= "l4sec_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4SEC_AES1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4SEC_AES1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
fdda94a5a   Lokesh Vutla   ARM: DRA7: hwmod:...
937
938
939
940
941
942
943
944
945
946
947
948
949
950
  /* AES2 */
  static struct omap_hwmod dra7xx_aes2_hwmod = {
  	.name		= "aes2",
  	.class		= &dra7xx_aes_hwmod_class,
  	.clkdm_name	= "l4sec_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4SEC_AES2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4SEC_AES2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
6940d4bd5   Lokesh Vutla   ARM: DRA7: hwmod:...
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
  /* sha0 HIB2 (the 'P' (public) device) */
  static struct omap_hwmod_class_sysconfig dra7xx_sha0_sysc = {
  	.rev_offs	= 0x100,
  	.sysc_offs	= 0x110,
  	.syss_offs	= 0x114,
  	.sysc_flags	= SYSS_HAS_RESET_STATUS,
  };
  
  static struct omap_hwmod_class dra7xx_sha0_hwmod_class = {
  	.name		= "sham",
  	.sysc		= &dra7xx_sha0_sysc,
  	.rev		= 2,
  };
  
  struct omap_hwmod dra7xx_sha0_hwmod = {
  	.name		= "sham",
  	.class		= &dra7xx_sha0_hwmod_class,
  	.clkdm_name	= "l4sec_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm		= {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
  /*
   * 'elm' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
  	.name	= "elm",
  	.sysc	= &dra7xx_elm_sysc,
  };
  
  /* elm */
  
  static struct omap_hwmod dra7xx_elm_hwmod = {
  	.name		= "elm",
  	.class		= &dra7xx_elm_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'gpio' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0114,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
  	.name	= "gpio",
  	.sysc	= &dra7xx_gpio_sysc,
  	.rev	= 2,
  };
  
  /* gpio dev_attr */
  static struct omap_gpio_dev_attr gpio_dev_attr = {
  	.bank_width	= 32,
  	.dbck_flag	= true,
  };
  
  /* gpio1 */
  static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio1_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio1_hwmod = {
  	.name		= "gpio1",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.main_clk	= "wkupaon_iclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio1_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio1_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio2 */
  static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio2_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio2_hwmod = {
  	.name		= "gpio2",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio2_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio2_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio3 */
  static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio3_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio3_hwmod = {
  	.name		= "gpio3",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio3_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio3_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio4 */
  static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio4_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio4_hwmod = {
  	.name		= "gpio4",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio4_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio4_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio5 */
  static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio5_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio5_hwmod = {
  	.name		= "gpio5",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio5_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio5_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio6 */
  static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio6_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio6_hwmod = {
  	.name		= "gpio6",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio6_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio6_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio7 */
  static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio7_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio7_hwmod = {
  	.name		= "gpio7",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio7_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio7_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /* gpio8 */
  static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  	{ .role = "dbclk", .clk = "gpio8_dbclk" },
  };
  
  static struct omap_hwmod dra7xx_gpio8_hwmod = {
  	.name		= "gpio8",
  	.class		= &dra7xx_gpio_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= gpio8_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(gpio8_opt_clks),
  	.dev_attr	= &gpio_dev_attr,
  };
  
  /*
   * 'gpmc' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
64e95a0b9   Lokesh Vutla   ARM: DRA7: hwmod:...
1238
  	.idlemodes	= SIDLE_FORCE | SIDLE_NO | SIDLE_SMART,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
  	.name	= "gpmc",
  	.sysc	= &dra7xx_gpmc_sysc,
  };
  
  /* gpmc */
  
  static struct omap_hwmod dra7xx_gpmc_hwmod = {
  	.name		= "gpmc",
  	.class		= &dra7xx_gpmc_hwmod_class,
  	.clkdm_name	= "l3main1_clkdm",
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /*
3b294e754   Hemant Hariyani   arm:dra7xx: Add g...
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
   * 'gpu' class
   * 2d/3d graphics accelerator
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_gpu_sysc = {
  	.rev_offs       = 0x0000,
  	.sysc_offs      = 0x0010,
  	.sysc_flags     = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  	.idlemodes      = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  	.sysc_fields    = &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_gpu_hwmod_class = {
  	.name   = "gpu",
  	.sysc   = &dra7xx_gpu_sysc,
  };
  
  static struct omap_hwmod dra7xx_gpu_hwmod = {
  	.name           = "gpu",
  	.class          = &dra7xx_gpu_hwmod_class,
  	.clkdm_name     = "gpu_clkdm",
  	.main_clk       = "gpu_core_gclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_GPU_GPU_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_GPU_GPU_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
   * 'hdq1w' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0014,
  	.syss_offs	= 0x0018,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
  	.name	= "hdq1w",
  	.sysc	= &dra7xx_hdq1w_sysc,
  };
  
  /* hdq1w */
  
  static struct omap_hwmod dra7xx_hdq1w_hwmod = {
  	.name		= "hdq1w",
  	.class		= &dra7xx_hdq1w_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_INIT_NO_RESET,
  	.main_clk	= "func_12m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
   * 'i2c' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0090,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  			   SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.clockact	= CLOCKACT_TEST_ICLK,
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
  	.name	= "i2c",
  	.sysc	= &dra7xx_i2c_sysc,
  	.reset	= &omap_i2c_reset,
  	.rev	= OMAP_I2C_IP_VERSION_2,
  };
  
  /* i2c dev_attr */
  static struct omap_i2c_dev_attr i2c_dev_attr = {
  	.flags	= OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  };
  
  /* i2c1 */
  static struct omap_hwmod dra7xx_i2c1_hwmod = {
  	.name		= "i2c1",
  	.class		= &dra7xx_i2c_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  	.main_clk	= "func_96m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &i2c_dev_attr,
  };
  
  /* i2c2 */
  static struct omap_hwmod dra7xx_i2c2_hwmod = {
  	.name		= "i2c2",
  	.class		= &dra7xx_i2c_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  	.main_clk	= "func_96m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &i2c_dev_attr,
  };
  
  /* i2c3 */
  static struct omap_hwmod dra7xx_i2c3_hwmod = {
  	.name		= "i2c3",
  	.class		= &dra7xx_i2c_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  	.main_clk	= "func_96m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &i2c_dev_attr,
  };
  
  /* i2c4 */
  static struct omap_hwmod dra7xx_i2c4_hwmod = {
  	.name		= "i2c4",
  	.class		= &dra7xx_i2c_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  	.main_clk	= "func_96m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &i2c_dev_attr,
  };
  
  /* i2c5 */
  static struct omap_hwmod dra7xx_i2c5_hwmod = {
  	.name		= "i2c5",
  	.class		= &dra7xx_i2c_hwmod_class,
  	.clkdm_name	= "ipu_clkdm",
  	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  	.main_clk	= "func_96m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &i2c_dev_attr,
  };
  
  /*
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
   * 'ipu' class
   * imaging processor unit
   */
  
  static struct omap_hwmod_class dra7xx_ipu_hwmod_class = {
  	.name	= "ipu",
  };
  
  static struct omap_hwmod_rst_info dra7xx_ipu_resets[] = {
  	{ .name = "cpu0", .rst_shift = 0 },
  	{ .name = "cpu1", .rst_shift = 1 },
  };
  
  /* ipu1 processor */
  static struct omap_hwmod dra7xx_ipu1_hwmod = {
  	.name		= "ipu1",
  	.class		= &dra7xx_ipu_hwmod_class,
  	.clkdm_name	= "ipu1_clkdm",
  	.rst_lines	= dra7xx_ipu_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_ipu_resets),
  	.main_clk	= "ipu1_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU1_IPU1_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_IPU1_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU1_IPU1_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* ipu2 processor */
  static struct omap_hwmod dra7xx_ipu2_hwmod = {
  	.name		= "ipu2",
  	.class		= &dra7xx_ipu_hwmod_class,
  	.clkdm_name	= "ipu2_clkdm",
  	.rst_lines	= dra7xx_ipu_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_ipu_resets),
  	.main_clk	= "dpll_core_h22x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU2_IPU2_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_IPU2_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU2_IPU2_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
8aee43b33   Suman Anna   ARM: DRA7: hwmod_...
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
   * 'mailbox' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
  	.name	= "mailbox",
  	.sysc	= &dra7xx_mailbox_sysc,
  };
  
  /* mailbox1 */
  static struct omap_hwmod dra7xx_mailbox1_hwmod = {
  	.name		= "mailbox1",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox2 */
  static struct omap_hwmod dra7xx_mailbox2_hwmod = {
  	.name		= "mailbox2",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox3 */
  static struct omap_hwmod dra7xx_mailbox3_hwmod = {
  	.name		= "mailbox3",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox4 */
  static struct omap_hwmod dra7xx_mailbox4_hwmod = {
  	.name		= "mailbox4",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox5 */
  static struct omap_hwmod dra7xx_mailbox5_hwmod = {
  	.name		= "mailbox5",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox6 */
  static struct omap_hwmod dra7xx_mailbox6_hwmod = {
  	.name		= "mailbox6",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox7 */
  static struct omap_hwmod dra7xx_mailbox7_hwmod = {
  	.name		= "mailbox7",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox8 */
  static struct omap_hwmod dra7xx_mailbox8_hwmod = {
  	.name		= "mailbox8",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox9 */
  static struct omap_hwmod dra7xx_mailbox9_hwmod = {
  	.name		= "mailbox9",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox10 */
  static struct omap_hwmod dra7xx_mailbox10_hwmod = {
  	.name		= "mailbox10",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox11 */
  static struct omap_hwmod dra7xx_mailbox11_hwmod = {
  	.name		= "mailbox11",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox12 */
  static struct omap_hwmod dra7xx_mailbox12_hwmod = {
  	.name		= "mailbox12",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* mailbox13 */
  static struct omap_hwmod dra7xx_mailbox13_hwmod = {
  	.name		= "mailbox13",
  	.class		= &dra7xx_mailbox_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
   * 'mcspi' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
  	.name	= "mcspi",
  	.sysc	= &dra7xx_mcspi_sysc,
  	.rev	= OMAP4_MCSPI_REV,
  };
  
  /* mcspi1 */
  /* mcspi1 dev_attr */
  static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  	.num_chipselect	= 4,
  };
  
  static struct omap_hwmod dra7xx_mcspi1_hwmod = {
  	.name		= "mcspi1",
  	.class		= &dra7xx_mcspi_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "func_48m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &mcspi1_dev_attr,
  };
  
  /* mcspi2 */
  /* mcspi2 dev_attr */
  static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  	.num_chipselect	= 2,
  };
  
  static struct omap_hwmod dra7xx_mcspi2_hwmod = {
  	.name		= "mcspi2",
  	.class		= &dra7xx_mcspi_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "func_48m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &mcspi2_dev_attr,
  };
  
  /* mcspi3 */
  /* mcspi3 dev_attr */
  static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  	.num_chipselect	= 2,
  };
  
  static struct omap_hwmod dra7xx_mcspi3_hwmod = {
  	.name		= "mcspi3",
  	.class		= &dra7xx_mcspi_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "func_48m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &mcspi3_dev_attr,
  };
  
  /* mcspi4 */
  /* mcspi4 dev_attr */
  static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  	.num_chipselect	= 1,
  };
  
  static struct omap_hwmod dra7xx_mcspi4_hwmod = {
  	.name		= "mcspi4",
  	.class		= &dra7xx_mcspi_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "func_48m_fclk",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &mcspi4_dev_attr,
  };
  
  /*
40cd0a051   Peter Ujfalusi   ARM: DRA7: hwmod:...
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
   * 'mcasp' class
   *
   */
  static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
  	.sysc_offs	= 0x0004,
  	.sysc_flags	= SYSC_HAS_SIDLEMODE,
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  	.sysc_fields	= &omap_hwmod_sysc_type3,
  };
  
  static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
  	.name	= "mcasp",
  	.sysc	= &dra7xx_mcasp_sysc,
  };
  
  /* mcasp3 */
  static struct omap_hwmod dra7xx_mcasp3_hwmod = {
  	.name		= "mcasp3",
  	.class		= &dra7xx_mcasp_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "mcasp3_ahclkx_mux",
  	.flags		= HWMOD_SWSUP_SIDLE,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
61d7f989e   Peter Ujfalusi   ARM: DRA7: hwmod:...
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
  /* mcasp8 */
  static struct omap_hwmod dra7xx_mcasp8_hwmod = {
  	.name		= "mcasp8",
  	.class		= &dra7xx_mcasp_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "mcasp8_ahclkx_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
40cd0a051   Peter Ujfalusi   ARM: DRA7: hwmod:...
1834
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
   * 'mmc' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  			   SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
  	.name	= "mmc",
  	.sysc	= &dra7xx_mmc_sysc,
  };
  
  /* mmc1 */
  static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  	{ .role = "clk32k", .clk = "mmc1_clk32k" },
  };
  
  /* mmc1 dev_attr */
  static struct omap_mmc_dev_attr mmc1_dev_attr = {
  	.flags	= OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  };
  
  static struct omap_hwmod dra7xx_mmc1_hwmod = {
  	.name		= "mmc1",
  	.class		= &dra7xx_mmc_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "mmc1_fclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.opt_clks	= mmc1_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(mmc1_opt_clks),
  	.dev_attr	= &mmc1_dev_attr,
  };
  
  /* mmc2 */
  static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
  	{ .role = "clk32k", .clk = "mmc2_clk32k" },
  };
  
  static struct omap_hwmod dra7xx_mmc2_hwmod = {
  	.name		= "mmc2",
  	.class		= &dra7xx_mmc_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "mmc2_fclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.opt_clks	= mmc2_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(mmc2_opt_clks),
  };
  
  /* mmc3 */
  static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
  	{ .role = "clk32k", .clk = "mmc3_clk32k" },
  };
  
  static struct omap_hwmod dra7xx_mmc3_hwmod = {
  	.name		= "mmc3",
  	.class		= &dra7xx_mmc_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "mmc3_gfclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.opt_clks	= mmc3_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(mmc3_opt_clks),
  };
  
  /* mmc4 */
  static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
  	{ .role = "clk32k", .clk = "mmc4_clk32k" },
  };
  
  static struct omap_hwmod dra7xx_mmc4_hwmod = {
  	.name		= "mmc4",
  	.class		= &dra7xx_mmc_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "mmc4_gfclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.opt_clks	= mmc4_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(mmc4_opt_clks),
  };
  
  /*
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
   * 'mmu' class
   * The memory management unit performs virtual to physical address translation
   * for its requestors.
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_mmu_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_mmu_hwmod_class = {
  	.name = "mmu",
  	.sysc = &dra7xx_mmu_sysc,
  };
  
  /* DSP MMUs */
  static struct omap_hwmod_rst_info dra7xx_mmu_dsp_resets[] = {
  	{ .name = "mmu_cache", .rst_shift = 1 },
  };
  
  /* mmu0 - dsp1 */
  static struct omap_hwmod dra7xx_mmu0_dsp1_hwmod = {
  	.name		= "mmu0_dsp1",
  	.class		= &dra7xx_mmu_hwmod_class,
  	.clkdm_name	= "dsp1_clkdm",
  	.rst_lines	= dra7xx_mmu_dsp_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_mmu_dsp_resets),
  	.main_clk	= "dpll_dsp_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSP1_DSP1_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_DSP1_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSP1_DSP1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* mmu1 - dsp1 */
  static struct omap_hwmod dra7xx_mmu1_dsp1_hwmod = {
  	.name		= "mmu1_dsp1",
  	.class		= &dra7xx_mmu_hwmod_class,
  	.clkdm_name	= "dsp1_clkdm",
06209d97c   Suman Anna   ARM: DRA7: hwmod_...
1996
1997
  	.rst_lines	= dra7xx_mmu_dsp_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_mmu_dsp_resets),
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
  	.main_clk	= "dpll_dsp_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSP1_DSP1_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_DSP1_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSP1_DSP1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
c6e9f59e6   Suman Anna   ARM: DRA7: hwmod ...
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
  /* mmu0 - dsp2 */
  static struct omap_hwmod dra7xx_mmu0_dsp2_hwmod = {
  	.name		= "mmu0_dsp2",
  	.class		= &dra7xx_mmu_hwmod_class,
  	.clkdm_name	= "dsp2_clkdm",
  	.rst_lines	= dra7xx_mmu_dsp_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_mmu_dsp_resets),
  	.main_clk	= "dpll_dsp_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSP2_DSP2_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_DSP2_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSP2_DSP2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* mmu1 - dsp2 */
  static struct omap_hwmod dra7xx_mmu1_dsp2_hwmod = {
  	.name		= "mmu1_dsp2",
  	.class		= &dra7xx_mmu_hwmod_class,
  	.clkdm_name	= "dsp2_clkdm",
06209d97c   Suman Anna   ARM: DRA7: hwmod_...
2031
2032
  	.rst_lines	= dra7xx_mmu_dsp_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_mmu_dsp_resets),
c6e9f59e6   Suman Anna   ARM: DRA7: hwmod ...
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
  	.main_clk	= "dpll_dsp_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_DSP2_DSP2_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_DSP2_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_DSP2_DSP2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
  /* IPU MMUs */
  static struct omap_hwmod_rst_info dra7xx_mmu_ipu_resets[] = {
  	{ .name = "mmu_cache", .rst_shift = 2 },
  };
  
  /* mmu ipu1 */
  static struct omap_hwmod dra7xx_mmu_ipu1_hwmod = {
  	.name		= "mmu_ipu1",
  	.class		= &dra7xx_mmu_hwmod_class,
  	.clkdm_name	= "ipu1_clkdm",
  	.rst_lines	= dra7xx_mmu_ipu_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_mmu_ipu_resets),
  	.main_clk	= "ipu1_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU1_IPU1_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_IPU1_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU1_IPU1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* mmu ipu2 */
  static struct omap_hwmod dra7xx_mmu_ipu2_hwmod = {
  	.name		= "mmu_ipu2",
  	.class		= &dra7xx_mmu_hwmod_class,
  	.clkdm_name	= "ipu2_clkdm",
  	.rst_lines	= dra7xx_mmu_ipu_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_mmu_ipu_resets),
  	.main_clk	= "dpll_core_h22x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU2_IPU2_CLKCTRL_OFFSET,
  			.rstctrl_offs = DRA7XX_RM_IPU2_RSTCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU2_IPU2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
   * 'mpu' class
   *
   */
  
  static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
  	.name	= "mpu",
  };
  
  /* mpu */
  static struct omap_hwmod dra7xx_mpu_hwmod = {
  	.name		= "mpu",
  	.class		= &dra7xx_mpu_hwmod_class,
  	.clkdm_name	= "mpu_clkdm",
  	.flags		= HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  	.main_clk	= "dpll_mpu_m2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'ocp2scp' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
  	.name	= "ocp2scp",
  	.sysc	= &dra7xx_ocp2scp_sysc,
  };
  
  /* ocp2scp1 */
  static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
  	.name		= "ocp2scp1",
  	.class		= &dra7xx_ocp2scp_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "l4_root_clk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
a2855fb03   Roger Quadros   ARM: DRA7: hwmod:...
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
  /* ocp2scp3 */
  static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
  	.name		= "ocp2scp3",
  	.class		= &dra7xx_ocp2scp_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "l4_root_clk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2157
  /*
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2158
2159
2160
   * 'PCIE' class
   *
   */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2161
  static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2162
2163
2164
2165
  	.name	= "pcie",
  };
  
  /* pcie1 */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2166
  static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
a33061c11   Kishon Vijay Abraham I   ARM: DRA7: add pd...
2167
2168
  	{ .name = "pcie", .rst_shift = 0 },
  };
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2169
  static struct omap_hwmod dra7xx_pciess1_hwmod = {
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2170
  	.name		= "pcie1",
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2171
  	.class		= &dra7xx_pciess_hwmod_class,
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2172
  	.clkdm_name	= "pcie_clkdm",
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2173
2174
  	.rst_lines	= dra7xx_pciess1_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_pciess1_resets),
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2175
2176
2177
  	.main_clk	= "l4_root_clk_div",
  	.prcm = {
  		.omap4 = {
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2178
2179
  			.clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
a33061c11   Kishon Vijay Abraham I   ARM: DRA7: add pd...
2180
  			.rstctrl_offs	= DRA7XX_RM_L3INIT_RSTCTRL_OFFSET,
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2181
2182
2183
2184
2185
2186
  			.modulemode	= MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* pcie2 */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2187
  static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
a33061c11   Kishon Vijay Abraham I   ARM: DRA7: add pd...
2188
2189
  	{ .name = "pcie", .rst_shift = 1 },
  };
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2190
  static struct omap_hwmod dra7xx_pciess2_hwmod = {
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2191
  	.name		= "pcie2",
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2192
  	.class		= &dra7xx_pciess_hwmod_class,
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2193
  	.clkdm_name	= "pcie_clkdm",
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2194
2195
  	.rst_lines	= dra7xx_pciess2_resets,
  	.rst_lines_cnt	= ARRAY_SIZE(dra7xx_pciess2_resets),
aa73b210b   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2196
2197
2198
2199
2200
  	.main_clk	= "l4_root_clk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
2201
  			.rstctrl_offs = DRA7XX_RM_L3INIT_RSTCTRL_OFFSET,
aa73b210b   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2202
2203
2204
2205
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
c5591108a   Suman Anna   TI-Integration: A...
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
  /*
   * 'pru-icss' class
   * Programmable Real-Time Unit and Industrial Communication Subsystem
   */
  static struct omap_hwmod_class dra7xx_pruss_hwmod_class = {
  	.name	= "pruss",
  };
  
  /* pru-icss1 */
  static struct omap_hwmod dra7xx_pruss1_hwmod = {
  	.name		= "pruss1",
  	.class		= &dra7xx_pruss_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.prcm		= {
  		.omap4	= {
  			.clkctrl_offs	= DRA7XX_CM_L4PER2_PRUSS1_CLKCTRL_OFFSET,
  			.context_offs	= DRA7XX_RM_L4PER2_PRUSS1_CONTEXT_OFFSET,
  			.modulemode	= MODULEMODE_SWCTRL,
  		},
  	},
  };
fbd4cf971   Suman Anna   ARM: DRA7: hwmod_...
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
  /* pru-icss2 */
  static struct omap_hwmod dra7xx_pruss2_hwmod = {
  	.name		= "pruss2",
  	.class		= &dra7xx_pruss_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.prcm		= {
  		.omap4	= {
  			.clkctrl_offs	= DRA7XX_CM_L4PER2_PRUSS2_CLKCTRL_OFFSET,
  			.context_offs	= DRA7XX_RM_L4PER2_PRUSS2_CONTEXT_OFFSET,
  			.modulemode	= MODULEMODE_SWCTRL,
  		},
  	},
  };
aa73b210b   Kishon Vijay Abraham I   arm: dra7xx: Add ...
2240
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
   * 'qspi' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= SYSC_HAS_SIDLEMODE,
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
  	.name	= "qspi",
  	.sysc	= &dra7xx_qspi_sysc,
  };
  
  /* qspi */
  static struct omap_hwmod dra7xx_qspi_hwmod = {
  	.name		= "qspi",
  	.class		= &dra7xx_qspi_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "qspi_gfclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
920c6eaa5   Lokesh Vutla   ARM: DRA7: hwmod:...
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
   * 'rtcss' class
   *
   */
  static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
  	.sysc_offs	= 0x0078,
  	.sysc_flags	= SYSC_HAS_SIDLEMODE,
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type3,
  };
  
  static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
  	.name	= "rtcss",
  	.sysc	= &dra7xx_rtcss_sysc,
e5d1309d6   Lokesh Vutla   ARM: DRA: hwmod: ...
2288
  	.reset	= &omap_hwmod_rtc_unlock,
920c6eaa5   Lokesh Vutla   ARM: DRA7: hwmod:...
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
  };
  
  /* rtcss */
  static struct omap_hwmod dra7xx_rtcss_hwmod = {
  	.name		= "rtcss",
  	.class		= &dra7xx_rtcss_hwmod_class,
  	.clkdm_name	= "rtc_clkdm",
  	.main_clk	= "sys_32k_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /*
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
   * 'sata' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
  	.sysc_offs	= 0x0000,
  	.sysc_flags	= (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
  	.name	= "sata",
  	.sysc	= &dra7xx_sata_sysc,
  };
  
  /* sata */
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2326
2327
2328
2329
2330
2331
2332
  
  static struct omap_hwmod dra7xx_sata_hwmod = {
  	.name		= "sata",
  	.class		= &dra7xx_sata_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.flags		= HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  	.main_clk	= "func_48m_fclk",
21e80e6cc   Roger Quadros   ARM: DRA7: hwmod:...
2333
  	.mpu_rt_idx	= 1,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2334
2335
2336
2337
2338
2339
2340
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
  };
  
  /*
   * 'smartreflex' class
   *
   */
  
  /* The IP is not compliant to type1 / type2 scheme */
  static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  	.sidle_shift	= 24,
  	.enwkup_shift	= 26,
  };
  
  static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
  	.sysc_offs	= 0x0038,
  	.sysc_flags	= (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type_smartreflex,
  };
  
  static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
  	.name	= "smartreflex",
  	.sysc	= &dra7xx_smartreflex_sysc,
  	.rev	= 2,
  };
  
  /* smartreflex_core */
  /* smartreflex_core dev_attr */
  static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  	.sensor_voltdm_name	= "core",
  };
  
  static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
  	.name		= "smartreflex_core",
  	.class		= &dra7xx_smartreflex_hwmod_class,
  	.clkdm_name	= "coreaon_clkdm",
  	.main_clk	= "wkupaon_iclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &smartreflex_core_dev_attr,
  };
  
  /* smartreflex_mpu */
  /* smartreflex_mpu dev_attr */
  static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  	.sensor_voltdm_name	= "mpu",
  };
  
  static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
  	.name		= "smartreflex_mpu",
  	.class		= &dra7xx_smartreflex_hwmod_class,
  	.clkdm_name	= "coreaon_clkdm",
  	.main_clk	= "wkupaon_iclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  	.dev_attr	= &smartreflex_mpu_dev_attr,
  };
  
  /*
   * 'spinlock' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
c317d0f24   Suman Anna   ARM: DRA7: hwmod ...
2419
2420
2421
2422
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
  	.name	= "spinlock",
  	.sysc	= &dra7xx_spinlock_sysc,
  };
  
  /* spinlock */
  static struct omap_hwmod dra7xx_spinlock_hwmod = {
  	.name		= "spinlock",
  	.class		= &dra7xx_spinlock_hwmod_class,
  	.clkdm_name	= "l4cfg_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'timer' class
   *
   * This class contains several variants: ['timer_1ms', 'timer_secure',
   * 'timer']
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
  	.name	= "timer",
  	.sysc	= &dra7xx_timer_1ms_sysc,
  };
  
  static struct omap_hwmod_class_sysconfig dra7xx_timer_secure_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_timer_secure_hwmod_class = {
  	.name	= "timer",
  	.sysc	= &dra7xx_timer_secure_sysc,
  };
  
  static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
  
  static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
  	.name	= "timer",
  	.sysc	= &dra7xx_timer_sysc,
  };
  
  /* timer1 */
  static struct omap_hwmod dra7xx_timer1_hwmod = {
  	.name		= "timer1",
  	.class		= &dra7xx_timer_1ms_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.main_clk	= "timer1_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer2 */
  static struct omap_hwmod dra7xx_timer2_hwmod = {
  	.name		= "timer2",
  	.class		= &dra7xx_timer_1ms_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "timer2_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer3 */
  static struct omap_hwmod dra7xx_timer3_hwmod = {
  	.name		= "timer3",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "timer3_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer4 */
  static struct omap_hwmod dra7xx_timer4_hwmod = {
  	.name		= "timer4",
0bf5ff28b   Suman Anna   ARM: DRA7: hwmod:...
2545
  	.class		= &dra7xx_timer_hwmod_class,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "timer4_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer5 */
  static struct omap_hwmod dra7xx_timer5_hwmod = {
  	.name		= "timer5",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "ipu_clkdm",
  	.main_clk	= "timer5_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer6 */
  static struct omap_hwmod dra7xx_timer6_hwmod = {
  	.name		= "timer6",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "ipu_clkdm",
  	.main_clk	= "timer6_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer7 */
  static struct omap_hwmod dra7xx_timer7_hwmod = {
  	.name		= "timer7",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "ipu_clkdm",
  	.main_clk	= "timer7_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer8 */
  static struct omap_hwmod dra7xx_timer8_hwmod = {
  	.name		= "timer8",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "ipu_clkdm",
  	.main_clk	= "timer8_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer9 */
  static struct omap_hwmod dra7xx_timer9_hwmod = {
  	.name		= "timer9",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "timer9_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer10 */
  static struct omap_hwmod dra7xx_timer10_hwmod = {
  	.name		= "timer10",
  	.class		= &dra7xx_timer_1ms_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "timer10_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer11 */
  static struct omap_hwmod dra7xx_timer11_hwmod = {
  	.name		= "timer11",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "timer11_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
b81f2da71   Suman Anna   ARM: DRA7: hwmod:...
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
  /* timer12 */
  static struct omap_hwmod dra7xx_timer12_hwmod = {
  	.name		= "timer12",
  	.class		= &dra7xx_timer_secure_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.main_clk	= "secure_32k_clk_src_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER12_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_TIMER12_CONTEXT_OFFSET,
  		},
  	},
  };
eaa375d45   Suman Anna   ARM: DRA7: hwmod:...
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
  /* timer13 */
  static struct omap_hwmod dra7xx_timer13_hwmod = {
  	.name		= "timer13",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per3_clkdm",
  	.main_clk	= "timer13_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer14 */
  static struct omap_hwmod dra7xx_timer14_hwmod = {
  	.name		= "timer14",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per3_clkdm",
  	.main_clk	= "timer14_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer15 */
  static struct omap_hwmod dra7xx_timer15_hwmod = {
  	.name		= "timer15",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per3_clkdm",
  	.main_clk	= "timer15_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* timer16 */
  static struct omap_hwmod dra7xx_timer16_hwmod = {
  	.name		= "timer16",
  	.class		= &dra7xx_timer_hwmod_class,
  	.clkdm_name	= "l4per3_clkdm",
  	.main_clk	= "timer16_gfclk_mux",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
  /*
   * 'uart' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
  	.rev_offs	= 0x0050,
  	.sysc_offs	= 0x0054,
  	.syss_offs	= 0x0058,
  	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  			   SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
  	.name	= "uart",
  	.sysc	= &dra7xx_uart_sysc,
  };
  
  /* uart1 */
  static struct omap_hwmod dra7xx_uart1_hwmod = {
  	.name		= "uart1",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "uart1_gfclk_mux",
38958c15d   Rajendra Nayak   ARM: DRA7: hwmod:...
2761
  	.flags		= HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart2 */
  static struct omap_hwmod dra7xx_uart2_hwmod = {
  	.name		= "uart2",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "uart2_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart3 */
  static struct omap_hwmod dra7xx_uart3_hwmod = {
  	.name		= "uart3",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "uart3_gfclk_mux",
47c409a8c   Lokesh Vutla   ARM: DRA7: hwmod:...
2793
  	.flags		= HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart4 */
  static struct omap_hwmod dra7xx_uart4_hwmod = {
  	.name		= "uart4",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "uart4_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart5 */
  static struct omap_hwmod dra7xx_uart5_hwmod = {
  	.name		= "uart5",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per_clkdm",
  	.main_clk	= "uart5_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart6 */
  static struct omap_hwmod dra7xx_uart6_hwmod = {
  	.name		= "uart6",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "ipu_clkdm",
  	.main_clk	= "uart6_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
7f29ddb74   Ambresh K   ARM: DRA7: hwmod ...
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
  /* uart7 */
  static struct omap_hwmod dra7xx_uart7_hwmod = {
  	.name		= "uart7",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "uart7_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart8 */
  static struct omap_hwmod dra7xx_uart8_hwmod = {
  	.name		= "uart8",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "uart8_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart9 */
  static struct omap_hwmod dra7xx_uart9_hwmod = {
  	.name		= "uart9",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "l4per2_clkdm",
  	.main_clk	= "uart9_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  /* uart10 */
  static struct omap_hwmod dra7xx_uart10_hwmod = {
  	.name		= "uart10",
  	.class		= &dra7xx_uart_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.main_clk	= "uart10_gfclk_mux",
  	.flags		= HWMOD_SWSUP_SIDLE_ACT,
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
904cbe42c   Joel Fernandes   ARM: DRA7: hwmod:...
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
  /* DES (the 'P' (public) device) */
  static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = {
  	.rev_offs	= 0x0030,
  	.sysc_offs	= 0x0034,
  	.syss_offs	= 0x0038,
  	.sysc_flags	= SYSS_HAS_RESET_STATUS,
  };
  
  static struct omap_hwmod_class dra7xx_des_hwmod_class = {
  	.name	= "des",
  	.sysc	= &dra7xx_des_sysc,
  };
  
  /* DES */
  static struct omap_hwmod dra7xx_des_hwmod = {
  	.name		= "des",
  	.class		= &dra7xx_des_hwmod_class,
  	.clkdm_name	= "l4sec_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
70fc7f087   Joel Fernandes   ARM: DRA7: hwmod:...
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
  /* rng */
  static struct omap_hwmod_class_sysconfig dra7xx_rng_sysc = {
  	.rev_offs       = 0x1fe0,
  	.sysc_offs      = 0x1fe4,
  	.sysc_flags     = SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE,
  	.idlemodes      = SIDLE_FORCE | SIDLE_NO,
  	.sysc_fields    = &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_rng_hwmod_class = {
  	.name           = "rng",
  	.sysc           = &dra7xx_rng_sysc,
  };
  
  static struct omap_hwmod dra7xx_rng_hwmod = {
  	.name           = "rng",
  	.class          = &dra7xx_rng_hwmod_class,
88f516379   Lokesh Vutla   ARM: DRA7: hwmod:...
2957
  	.flags		= HWMOD_SWSUP_SIDLE,
70fc7f087   Joel Fernandes   ARM: DRA7: hwmod:...
2958
2959
2960
2961
2962
2963
2964
2965
2966
  	.clkdm_name     = "l4sec_clkdm",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L4SEC_RNG_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L4SEC_RNG_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2967
2968
2969
2970
  /*
   * 'usb_otg_ss' class
   *
   */
2e80035cd   Roger Quadros   ARM: DRA7: hwmod:...
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
  static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.sysc_flags	= (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  			   SYSC_HAS_SIDLEMODE),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  			   MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type2,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2981
2982
  static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
  	.name	= "usb_otg_ss",
2e80035cd   Roger Quadros   ARM: DRA7: hwmod:...
2983
  	.sysc	= &dra7xx_usb_otg_ss_sysc,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
  };
  
  /* usb_otg_ss1 */
  static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
  	{ .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
  };
  
  static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
  	.name		= "usb_otg_ss1",
  	.class		= &dra7xx_usb_otg_ss_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "dpll_core_h13x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= usb_otg_ss1_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(usb_otg_ss1_opt_clks),
  };
  
  /* usb_otg_ss2 */
  static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
  	{ .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
  };
  
  static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
  	.name		= "usb_otg_ss2",
  	.class		= &dra7xx_usb_otg_ss_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "dpll_core_h13x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  	.opt_clks	= usb_otg_ss2_opt_clks,
  	.opt_clks_cnt	= ARRAY_SIZE(usb_otg_ss2_opt_clks),
  };
  
  /* usb_otg_ss3 */
  static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
  	.name		= "usb_otg_ss3",
  	.class		= &dra7xx_usb_otg_ss_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "dpll_core_h13x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /* usb_otg_ss4 */
  static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
  	.name		= "usb_otg_ss4",
  	.class		= &dra7xx_usb_otg_ss_hwmod_class,
  	.clkdm_name	= "l3init_clkdm",
  	.main_clk	= "dpll_core_h13x2_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_HWCTRL,
  		},
  	},
  };
  
  /*
   * 'vcp' class
   *
   */
  
  static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
  	.name	= "vcp",
  };
  
  /* vcp1 */
  static struct omap_hwmod dra7xx_vcp1_hwmod = {
  	.name		= "vcp1",
  	.class		= &dra7xx_vcp_hwmod_class,
  	.clkdm_name	= "l3main1_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /* vcp2 */
  static struct omap_hwmod dra7xx_vcp2_hwmod = {
  	.name		= "vcp2",
  	.class		= &dra7xx_vcp_hwmod_class,
  	.clkdm_name	= "l3main1_clkdm",
  	.main_clk	= "l3_iclk_div",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
  		},
  	},
  };
  
  /*
   * 'wd_timer' class
   *
   */
  
  static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
  	.rev_offs	= 0x0000,
  	.sysc_offs	= 0x0010,
  	.syss_offs	= 0x0014,
  	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  			   SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  			   SIDLE_SMART_WKUP),
  	.sysc_fields	= &omap_hwmod_sysc_type1,
  };
  
  static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
  	.name		= "wd_timer",
  	.sysc		= &dra7xx_wd_timer_sysc,
  	.pre_shutdown	= &omap2_wd_timer_disable,
  	.reset		= &omap2_wd_timer_reset,
  };
  
  /* wd_timer2 */
  static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
  	.name		= "wd_timer2",
  	.class		= &dra7xx_wd_timer_hwmod_class,
  	.clkdm_name	= "wkupaon_clkdm",
  	.main_clk	= "sys_32k_ck",
  	.prcm = {
  		.omap4 = {
  			.clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  			.context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  			.modulemode   = MODULEMODE_SWCTRL,
  		},
  	},
  };
  
  
  /*
   * Interfaces
   */
  
  /* l3_main_2 -> l3_instr */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
  	.master		= &dra7xx_l3_main_2_hwmod,
  	.slave		= &dra7xx_l3_instr_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_cfg -> l3_main_1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_l3_main_1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
20b9ecba1   Darren Etheridge   ARM: DRA7: hwmod:...
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
  /*
   * Interfaces
   */
  
  static struct omap_hwmod_addr_space dra7xx_dmm_addrs[] = {
  	{
  		.pa_start	= 0x4e000000,
  		.pa_end		= 0x4e0007ff,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l3_main_1 -> dmm */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_dmm_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_dmm_addrs,
  	.user		= OCP_USER_SDMA,
  };
  
  /* dmm -> emif_ocp_fw */
  static struct omap_hwmod_ocp_if dra7xx_dmm__emif_ocp_fw = {
  	.master		= &dra7xx_dmm_hwmod,
  	.slave		= &dra7xx_emif_ocp_fw_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
  /* mpu -> l3_main_1 */
  static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
  	.master		= &dra7xx_mpu_hwmod,
  	.slave		= &dra7xx_l3_main_1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU,
  };
  
  /* l3_main_1 -> l3_main_2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_l3_main_2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU,
  };
  
  /* l4_cfg -> l3_main_2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_l3_main_2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> l4_cfg */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_l4_cfg_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
  /* l3_main_1 -> mmu0_dsp1 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu0_dsp1 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_mmu0_dsp1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> mmu1_dsp1 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu1_dsp1 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_mmu1_dsp1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
c6e9f59e6   Suman Anna   ARM: DRA7: hwmod ...
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
  /* l3_main_1 -> mmu0_dsp2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu0_dsp2 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_mmu0_dsp2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> mmu1_dsp2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu1_dsp2 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_mmu1_dsp2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
  /* l3_main_1 -> mmu_ipu1 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu_ipu1 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_mmu_ipu1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> mmu_ipu2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu_ipu2 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_mmu_ipu2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
  /* l3_main_1 -> l4_per1 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_l4_per1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> l4_per2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_l4_per2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> l4_per3 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_l4_per3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> l4_wkup */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_l4_wkup_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per2 -> atl */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_atl_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> bb2d */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_bb2d_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_wkup -> counter_32k */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_counter_32k_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_wkup -> ctrl_module_wkup */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_ctrl_module_wkup_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
5518f7617   Mugunthan V N   ARM: OMAP2+: DRA7...
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_gmac_hwmod,
  	.clk		= "dpll_gmac_ck",
  	.user		= OCP_USER_MPU,
  };
  
  static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
  	.master		= &dra7xx_gmac_hwmod,
  	.slave		= &dra7xx_mdio_hwmod,
  	.user		= OCP_USER_MPU,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
  /* l4_wkup -> dcan1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_dcan1_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per2 -> dcan2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_dcan2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
  	{
  		.pa_start	= 0x4a056000,
  		.pa_end		= 0x4a056fff,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_cfg -> dma_system */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_dma_system_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_dma_system_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
3366
3367
3368
3369
3370
3371
3372
  /* dsp1 -> l3_main_1 */
  static struct omap_hwmod_ocp_if dra7xx_dsp1__l3_main_1 = {
  	.master		= &dra7xx_dsp1_hwmod,
  	.slave		= &dra7xx_l3_main_1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
b58b24ff7   Suman Anna   ARM: DRA7: hwmod_...
3373
3374
3375
3376
3377
3378
3379
  /* dsp2 -> l3_main_1 */
  static struct omap_hwmod_ocp_if dra7xx_dsp2__l3_main_1 = {
  	.master		= &dra7xx_dsp2_hwmod,
  	.slave		= &dra7xx_l3_main_1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
  static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
  	{
  		.name		= "family",
  		.pa_start	= 0x58000000,
  		.pa_end		= 0x5800007f,
  		.flags		= ADDR_TYPE_RT
  	},
  };
  
  /* l3_main_1 -> dss */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_dss_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_dss_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
  	{
  		.name		= "dispc",
  		.pa_start	= 0x58001000,
  		.pa_end		= 0x58001fff,
  		.flags		= ADDR_TYPE_RT
  	},
  };
  
  /* l3_main_1 -> dispc */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_dss_dispc_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_dss_dispc_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
  	{
  		.name		= "hdmi_wp",
  		.pa_start	= 0x58040000,
  		.pa_end		= 0x580400ff,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l3_main_1 -> dispc */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_dss_hdmi_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_dss_hdmi_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
fdda94a5a   Lokesh Vutla   ARM: DRA7: hwmod:...
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
  /* l3_main_1 -> aes1 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes1 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_aes1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> aes2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes2 = {
79b47248b   Joel Fernandes   ARM: DRA7: hwmod:...
3444
  	.master		= &dra7xx_l3_main_1_hwmod,
fdda94a5a   Lokesh Vutla   ARM: DRA7: hwmod:...
3445
  	.slave		= &dra7xx_aes2_hwmod,
79b47248b   Joel Fernandes   ARM: DRA7: hwmod:...
3446
3447
3448
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
6940d4bd5   Lokesh Vutla   ARM: DRA7: hwmod:...
3449
3450
3451
3452
3453
3454
3455
  /* l3_main_1 -> sha0 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__sha0 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_sha0_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
40cd0a051   Peter Ujfalusi   ARM: DRA7: hwmod:...
3456
3457
3458
3459
3460
3461
3462
  /* l4_per2 -> mcasp3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_mcasp3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
61d7f989e   Peter Ujfalusi   ARM: DRA7: hwmod:...
3463
3464
3465
3466
3467
3468
3469
  /* l4_per2 -> mcasp8 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_mcasp8_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
  static struct omap_hwmod_addr_space dra7xx_elm_addrs[] = {
  	{
  		.pa_start	= 0x48078000,
  		.pa_end		= 0x48078fff,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_per1 -> elm */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_elm_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_elm_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_wkup -> gpio1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_gpio1_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> gpio2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> gpio3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> gpio4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> gpio5 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio5_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> gpio6 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio6_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
0cd6f5d5f   Vignesh R   ARM: OMAP2+: DRA7...
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
  struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_epwmss0_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss0__ecap0 = {
  	.master		= &dra7xx_epwmss0_hwmod,
  	.slave		= &dra7xx_ecap0_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss0__eqep0 = {
  	.master		= &dra7xx_epwmss0_hwmod,
  	.slave		= &dra7xx_eqep0_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss0__ehrpwm0 = {
  	.master		= &dra7xx_epwmss0_hwmod,
  	.slave		= &dra7xx_ehrpwm0_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_epwmss1_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss1__ecap1 = {
  	.master		= &dra7xx_epwmss1_hwmod,
  	.slave		= &dra7xx_ecap1_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss1__eqep1 = {
  	.master		= &dra7xx_epwmss1_hwmod,
  	.slave		= &dra7xx_eqep1_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss1__ehrpwm1 = {
  	.master		= &dra7xx_epwmss1_hwmod,
  	.slave		= &dra7xx_ehrpwm1_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_epwmss2_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss2__ecap2 = {
  	.master		= &dra7xx_epwmss2_hwmod,
  	.slave		= &dra7xx_ecap2_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss2__eqep2 = {
  	.master		= &dra7xx_epwmss2_hwmod,
  	.slave		= &dra7xx_eqep2_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
  
  struct omap_hwmod_ocp_if dra7xx_epwmss2__ehrpwm2 = {
  	.master		= &dra7xx_epwmss2_hwmod,
  	.slave		= &dra7xx_ehrpwm2_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
  /* l4_per1 -> gpio7 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio7_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> gpio8 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_gpio8_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = {
  	{
  		.pa_start	= 0x50000000,
  		.pa_end		= 0x500003ff,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l3_main_1 -> gpmc */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_gpmc_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_gpmc_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
3b294e754   Hemant Hariyani   arm:dra7xx: Add g...
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
  static struct omap_hwmod_addr_space dra7xx_gpu_addrs[] = {
  	{
  		.name           = "klio",
  		.pa_start       = 0x56000000,
  		.pa_end         = 0x56001fff,
  	},
  	{
  		.name           = "hydra2",
  		.pa_start       = 0x56004000,
  		.pa_end         = 0x56004fff,
  	},
  	{
  		.name           = "klio_0",
  		.pa_start       = 0x56008000,
  		.pa_end         = 0x56009fff,
  	},
  	{
  		.name           = "klio_1",
  		.pa_start       = 0x5600c000,
  		.pa_end         = 0x5600dfff,
  	},
  	{
  		.name           = "klio_hl",
  		.pa_start       = 0x5600fe00,
  		.pa_end         = 0x5600ffff,
  		.flags          = ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l3_main_1 -> gpu */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpu = {
  	.master         = &dra7xx_l3_main_1_hwmod,
  	.slave          = &dra7xx_gpu_hwmod,
  	.clk            = "l3_iclk_div",
  	.addr           = dra7xx_gpu_addrs,
  	.user           = OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
  static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
  	{
  		.pa_start	= 0x480b2000,
  		.pa_end		= 0x480b201f,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_per1 -> hdq1w */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_hdq1w_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_hdq1w_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> i2c1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_i2c1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> i2c2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_i2c2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> i2c3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_i2c3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> i2c4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_i2c4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> i2c5 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_i2c5_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
  /* ipu1 -> l3_main_1 */
  static struct omap_hwmod_ocp_if dra7xx_ipu1__l3_main_1 = {
  	.master		= &dra7xx_ipu1_hwmod,
  	.slave		= &dra7xx_l3_main_1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* ipu2 -> l3_main_1 */
  static struct omap_hwmod_ocp_if dra7xx_ipu2__l3_main_1 = {
  	.master		= &dra7xx_ipu2_hwmod,
  	.slave		= &dra7xx_l3_main_1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
8aee43b33   Suman Anna   ARM: DRA7: hwmod_...
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
  /* l4_cfg -> mailbox1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_mailbox1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox5 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox5_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox6 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox6_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox7 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox7_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox8 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox8_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox9 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox9_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox10 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox10_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox11 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox11_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox12 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox12_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> mailbox13 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_mailbox13_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
  /* l4_per1 -> mcspi1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mcspi1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mcspi2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mcspi2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mcspi3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mcspi3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mcspi4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mcspi4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mmc1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mmc1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mmc2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mmc2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mmc3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mmc3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> mmc4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_mmc4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_cfg -> mpu */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_mpu_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3935
3936
3937
3938
3939
  /* l4_cfg -> ocp2scp1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_ocp2scp1_hwmod,
  	.clk		= "l4_root_clk_div",
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3940
3941
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
a2855fb03   Roger Quadros   ARM: DRA7: hwmod:...
3942
3943
3944
3945
3946
3947
3948
  /* l4_cfg -> ocp2scp3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_ocp2scp3_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3949
  /* l3_main_1 -> pcie1 */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3950
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3951
  	.master		= &dra7xx_l3_main_1_hwmod,
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3952
  	.slave		= &dra7xx_pciess1_hwmod,
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3953
3954
3955
3956
3957
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_cfg -> pcie1 */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3958
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3959
  	.master		= &dra7xx_l4_cfg_hwmod,
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3960
  	.slave		= &dra7xx_pciess1_hwmod,
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3961
3962
3963
3964
3965
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> pcie2 */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3966
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3967
  	.master		= &dra7xx_l3_main_1_hwmod,
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3968
  	.slave		= &dra7xx_pciess2_hwmod,
9eecef265   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3969
3970
3971
3972
3973
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_cfg -> pcie2 */
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3974
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
aa73b210b   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3975
  	.master		= &dra7xx_l4_cfg_hwmod,
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
3976
  	.slave		= &dra7xx_pciess2_hwmod,
aa73b210b   Kishon Vijay Abraham I   arm: dra7xx: Add ...
3977
3978
3979
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
fbd4cf971   Suman Anna   ARM: DRA7: hwmod_...
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
  /* l4_cfg -> pruss1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pruss1 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_pruss1_hwmod,
  	.clk		= "dpll_gmac_h13x2_ck",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_cfg -> pruss2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pruss2 = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_pruss2_hwmod,
  	.clk		= "dpll_gmac_h13x2_ck",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
  static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
  	{
  		.pa_start	= 0x4b300000,
  		.pa_end		= 0x4b30007f,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l3_main_1 -> qspi */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_qspi_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_qspi_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
920c6eaa5   Lokesh Vutla   ARM: DRA7: hwmod:...
4012
4013
4014
4015
4016
4017
4018
  /* l4_per3 -> rtcss */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_rtcss_hwmod,
  	.clk		= "l4_root_clk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
  static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
  	{
  		.name		= "sysc",
  		.pa_start	= 0x4a141100,
  		.pa_end		= 0x4a141107,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_cfg -> sata */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_sata_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_sata_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
  	{
  		.pa_start	= 0x4a0dd000,
  		.pa_end		= 0x4a0dd07f,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_cfg -> smartreflex_core */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_smartreflex_core_hwmod,
  	.clk		= "l4_root_clk_div",
  	.addr		= dra7xx_smartreflex_core_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
  	{
  		.pa_start	= 0x4a0d9000,
  		.pa_end		= 0x4a0d907f,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_cfg -> smartreflex_mpu */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_smartreflex_mpu_hwmod,
  	.clk		= "l4_root_clk_div",
  	.addr		= dra7xx_smartreflex_mpu_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_addr_space dra7xx_spinlock_addrs[] = {
  	{
  		.pa_start	= 0x4a0f6000,
  		.pa_end		= 0x4a0f6fff,
  		.flags		= ADDR_TYPE_RT
  	},
  	{ }
  };
  
  /* l4_cfg -> spinlock */
  static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
  	.master		= &dra7xx_l4_cfg_hwmod,
  	.slave		= &dra7xx_spinlock_hwmod,
  	.clk		= "l3_iclk_div",
  	.addr		= dra7xx_spinlock_addrs,
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_wkup -> timer1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_timer1_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> timer2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_timer2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> timer3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_timer3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> timer4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_timer4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer5 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer5_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer6 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer6_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer7 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer7_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer8 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer8_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> timer9 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_timer9_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> timer10 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_timer10_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> timer11 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_timer11_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
b81f2da71   Suman Anna   ARM: DRA7: hwmod:...
4179
4180
4181
4182
4183
4184
4185
  /* l4_wkup -> timer12 */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer12 = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_timer12_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
eaa375d45   Suman Anna   ARM: DRA7: hwmod:...
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
  /* l4_per3 -> timer13 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer13_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer14 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer14_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer15 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer15_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> timer16 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_timer16_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
  /* l4_per1 -> uart1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_uart1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> uart2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_uart2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> uart3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_uart3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> uart4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_uart4_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> uart5 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_uart5_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per1 -> uart6 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_uart6_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
7f29ddb74   Ambresh K   ARM: DRA7: hwmod ...
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
  /* l4_per2 -> uart7 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_uart7_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per2 -> uart8 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_uart8_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per2 -> uart9 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_uart9_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_wkup -> uart10 */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_uart10_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
904cbe42c   Joel Fernandes   ARM: DRA7: hwmod:...
4295
4296
4297
4298
4299
4300
4301
  /* l4_per1 -> des */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = {
  	.master		= &dra7xx_l4_per1_hwmod,
  	.slave		= &dra7xx_des_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
70fc7f087   Joel Fernandes   ARM: DRA7: hwmod:...
4302
4303
4304
4305
4306
4307
  /* l4_per1 -> rng */
  static struct omap_hwmod_ocp_if dra7xx_l4_per1__rng = {
  	.master         = &dra7xx_l4_per1_hwmod,
  	.slave          = &dra7xx_rng_hwmod,
  	.user           = OCP_USER_MPU,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
  /* l4_per3 -> usb_otg_ss1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_usb_otg_ss1_hwmod,
  	.clk		= "dpll_core_h13x2_ck",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> usb_otg_ss2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_usb_otg_ss2_hwmod,
  	.clk		= "dpll_core_h13x2_ck",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> usb_otg_ss3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_usb_otg_ss3_hwmod,
  	.clk		= "dpll_core_h13x2_ck",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> usb_otg_ss4 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_usb_otg_ss4_hwmod,
  	.clk		= "dpll_core_h13x2_ck",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> vcp1 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_vcp1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per2 -> vcp1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_vcp1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l3_main_1 -> vcp2 */
  static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
  	.master		= &dra7xx_l3_main_1_hwmod,
  	.slave		= &dra7xx_vcp2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per2 -> vcp2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
  	.master		= &dra7xx_l4_per2_hwmod,
  	.slave		= &dra7xx_vcp2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
19f6de650   Darren Etheridge   ARM: DRA7: hwmod:...
4371
4372
4373
4374
4375
4376
4377
  /* l4_per3 -> vpe */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__vpe = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_vpe_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
  /* l4_per3 -> vip1 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__vip1 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_vip1_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> vip2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__vip2 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_vip2_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  /* l4_per3 -> vip3 */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__vip3 = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_vip3_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
f908f4319   Benoit Parrot   ARM: DRA7: hwmod:...
4401
4402
4403
4404
4405
4406
4407
  /* l4_per3 -> cal */
  static struct omap_hwmod_ocp_if dra7xx_l4_per3__cal = {
  	.master		= &dra7xx_l4_per3_hwmod,
  	.slave		= &dra7xx_cal_hwmod,
  	.clk		= "l3_iclk_div",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4408
4409
4410
4411
4412
4413
4414
4415
4416
  /* l4_wkup -> wd_timer2 */
  static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
  	.master		= &dra7xx_l4_wkup_hwmod,
  	.slave		= &dra7xx_wd_timer2_hwmod,
  	.clk		= "wkupaon_iclk_mux",
  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
  };
  
  static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
20b9ecba1   Darren Etheridge   ARM: DRA7: hwmod:...
4417
4418
  	&dra7xx_l3_main_1__dmm,
  	&dra7xx_dmm__emif_ocp_fw,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
  	&dra7xx_l3_main_2__l3_instr,
  	&dra7xx_l4_cfg__l3_main_1,
  	&dra7xx_mpu__l3_main_1,
  	&dra7xx_l3_main_1__l3_main_2,
  	&dra7xx_l4_cfg__l3_main_2,
  	&dra7xx_l3_main_1__l4_cfg,
  	&dra7xx_l3_main_1__l4_per1,
  	&dra7xx_l3_main_1__l4_per2,
  	&dra7xx_l3_main_1__l4_per3,
  	&dra7xx_l3_main_1__l4_wkup,
  	&dra7xx_l4_per2__atl,
  	&dra7xx_l3_main_1__bb2d,
  	&dra7xx_l4_wkup__counter_32k,
  	&dra7xx_l4_wkup__ctrl_module_wkup,
  	&dra7xx_l4_wkup__dcan1,
  	&dra7xx_l4_per2__dcan2,
5518f7617   Mugunthan V N   ARM: OMAP2+: DRA7...
4435
4436
  	&dra7xx_l4_per2__cpgmac0,
  	&dra7xx_gmac__mdio,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4437
4438
4439
  	&dra7xx_l4_cfg__dma_system,
  	&dra7xx_l3_main_1__dss,
  	&dra7xx_l3_main_1__dispc,
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
4440
  	&dra7xx_dsp1__l3_main_1,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4441
  	&dra7xx_l3_main_1__hdmi,
fdda94a5a   Lokesh Vutla   ARM: DRA7: hwmod:...
4442
4443
  	&dra7xx_l3_main_1__aes1,
  	&dra7xx_l3_main_1__aes2,
6940d4bd5   Lokesh Vutla   ARM: DRA7: hwmod:...
4444
  	&dra7xx_l3_main_1__sha0,
40cd0a051   Peter Ujfalusi   ARM: DRA7: hwmod:...
4445
  	&dra7xx_l4_per2__mcasp3,
61d7f989e   Peter Ujfalusi   ARM: DRA7: hwmod:...
4446
  	&dra7xx_l4_per2__mcasp8,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
  	&dra7xx_l4_per1__elm,
  	&dra7xx_l4_wkup__gpio1,
  	&dra7xx_l4_per1__gpio2,
  	&dra7xx_l4_per1__gpio3,
  	&dra7xx_l4_per1__gpio4,
  	&dra7xx_l4_per1__gpio5,
  	&dra7xx_l4_per1__gpio6,
  	&dra7xx_l4_per1__gpio7,
  	&dra7xx_l4_per1__gpio8,
  	&dra7xx_l3_main_1__gpmc,
3b294e754   Hemant Hariyani   arm:dra7xx: Add g...
4457
  	&dra7xx_l3_main_1__gpu,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4458
4459
4460
4461
4462
4463
  	&dra7xx_l4_per1__hdq1w,
  	&dra7xx_l4_per1__i2c1,
  	&dra7xx_l4_per1__i2c2,
  	&dra7xx_l4_per1__i2c3,
  	&dra7xx_l4_per1__i2c4,
  	&dra7xx_l4_per1__i2c5,
72d90c3be   Suman Anna   ARM: DRA7: hwmod_...
4464
4465
  	&dra7xx_ipu1__l3_main_1,
  	&dra7xx_ipu2__l3_main_1,
8aee43b33   Suman Anna   ARM: DRA7: hwmod_...
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
  	&dra7xx_l4_cfg__mailbox1,
  	&dra7xx_l4_per3__mailbox2,
  	&dra7xx_l4_per3__mailbox3,
  	&dra7xx_l4_per3__mailbox4,
  	&dra7xx_l4_per3__mailbox5,
  	&dra7xx_l4_per3__mailbox6,
  	&dra7xx_l4_per3__mailbox7,
  	&dra7xx_l4_per3__mailbox8,
  	&dra7xx_l4_per3__mailbox9,
  	&dra7xx_l4_per3__mailbox10,
  	&dra7xx_l4_per3__mailbox11,
  	&dra7xx_l4_per3__mailbox12,
  	&dra7xx_l4_per3__mailbox13,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4479
4480
4481
4482
4483
4484
4485
4486
  	&dra7xx_l4_per1__mcspi1,
  	&dra7xx_l4_per1__mcspi2,
  	&dra7xx_l4_per1__mcspi3,
  	&dra7xx_l4_per1__mcspi4,
  	&dra7xx_l4_per1__mmc1,
  	&dra7xx_l4_per1__mmc2,
  	&dra7xx_l4_per1__mmc3,
  	&dra7xx_l4_per1__mmc4,
5d538ce71   Suman Anna   ARM: DRA7: hwmod ...
4487
4488
4489
4490
  	&dra7xx_l3_main_1__mmu0_dsp1,
  	&dra7xx_l3_main_1__mmu1_dsp1,
  	&dra7xx_l3_main_1__mmu_ipu1,
  	&dra7xx_l3_main_1__mmu_ipu2,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4491
4492
  	&dra7xx_l4_cfg__mpu,
  	&dra7xx_l4_cfg__ocp2scp1,
a2855fb03   Roger Quadros   ARM: DRA7: hwmod:...
4493
  	&dra7xx_l4_cfg__ocp2scp3,
97923ee5c   Kishon Vijay Abraham I   ARM: DRA7: hwmod_...
4494
4495
4496
4497
  	&dra7xx_l3_main_1__pciess1,
  	&dra7xx_l4_cfg__pciess1,
  	&dra7xx_l3_main_1__pciess2,
  	&dra7xx_l4_cfg__pciess2,
fbd4cf971   Suman Anna   ARM: DRA7: hwmod_...
4498
4499
  	&dra7xx_l4_cfg__pruss1, /* AM57xx only */
  	&dra7xx_l4_cfg__pruss2, /* AM57xx only */
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4500
  	&dra7xx_l3_main_1__qspi,
920c6eaa5   Lokesh Vutla   ARM: DRA7: hwmod:...
4501
  	&dra7xx_l4_per3__rtcss,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
  	&dra7xx_l4_cfg__sata,
  	&dra7xx_l4_cfg__smartreflex_core,
  	&dra7xx_l4_cfg__smartreflex_mpu,
  	&dra7xx_l4_cfg__spinlock,
  	&dra7xx_l4_wkup__timer1,
  	&dra7xx_l4_per1__timer2,
  	&dra7xx_l4_per1__timer3,
  	&dra7xx_l4_per1__timer4,
  	&dra7xx_l4_per3__timer5,
  	&dra7xx_l4_per3__timer6,
  	&dra7xx_l4_per3__timer7,
  	&dra7xx_l4_per3__timer8,
  	&dra7xx_l4_per1__timer9,
  	&dra7xx_l4_per1__timer10,
  	&dra7xx_l4_per1__timer11,
b81f2da71   Suman Anna   ARM: DRA7: hwmod:...
4517
  	&dra7xx_l4_wkup__timer12,
eaa375d45   Suman Anna   ARM: DRA7: hwmod:...
4518
4519
4520
4521
  	&dra7xx_l4_per3__timer13,
  	&dra7xx_l4_per3__timer14,
  	&dra7xx_l4_per3__timer15,
  	&dra7xx_l4_per3__timer16,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4522
4523
4524
4525
4526
4527
  	&dra7xx_l4_per1__uart1,
  	&dra7xx_l4_per1__uart2,
  	&dra7xx_l4_per1__uart3,
  	&dra7xx_l4_per1__uart4,
  	&dra7xx_l4_per1__uart5,
  	&dra7xx_l4_per1__uart6,
7f29ddb74   Ambresh K   ARM: DRA7: hwmod ...
4528
4529
4530
4531
  	&dra7xx_l4_per2__uart7,
  	&dra7xx_l4_per2__uart8,
  	&dra7xx_l4_per2__uart9,
  	&dra7xx_l4_wkup__uart10,
904cbe42c   Joel Fernandes   ARM: DRA7: hwmod:...
4532
  	&dra7xx_l4_per1__des,
70fc7f087   Joel Fernandes   ARM: DRA7: hwmod:...
4533
  	&dra7xx_l4_per1__rng,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4534
4535
4536
  	&dra7xx_l4_per3__usb_otg_ss1,
  	&dra7xx_l4_per3__usb_otg_ss2,
  	&dra7xx_l4_per3__usb_otg_ss3,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4537
4538
4539
4540
  	&dra7xx_l3_main_1__vcp1,
  	&dra7xx_l4_per2__vcp1,
  	&dra7xx_l3_main_1__vcp2,
  	&dra7xx_l4_per2__vcp2,
19f6de650   Darren Etheridge   ARM: DRA7: hwmod:...
4541
  	&dra7xx_l4_per3__vpe,
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
4542
  	&dra7xx_l4_per3__vip1,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4543
  	&dra7xx_l4_wkup__wd_timer2,
0cd6f5d5f   Vignesh R   ARM: OMAP2+: DRA7...
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
  	&dra7xx_l4_per2__epwmss0,
  	&dra7xx_epwmss0__ecap0,
  	&dra7xx_epwmss0__eqep0,
  	&dra7xx_epwmss0__ehrpwm0,
  	&dra7xx_l4_per2__epwmss1,
  	&dra7xx_epwmss1__ecap1,
  	&dra7xx_epwmss1__eqep1,
  	&dra7xx_epwmss1__ehrpwm1,
  	&dra7xx_l4_per2__epwmss2,
  	&dra7xx_epwmss2__ecap2,
  	&dra7xx_epwmss2__eqep2,
  	&dra7xx_epwmss2__ehrpwm2,
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4556
4557
  	NULL,
  };
7c25c8564   Rajendra Nayak   ARM: DRA7: hwmod:...
4558
4559
  static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
  	&dra7xx_l4_per3__usb_otg_ss4,
c6e9f59e6   Suman Anna   ARM: DRA7: hwmod ...
4560
4561
  	&dra7xx_l3_main_1__mmu0_dsp2,
  	&dra7xx_l3_main_1__mmu1_dsp2,
b58b24ff7   Suman Anna   ARM: DRA7: hwmod_...
4562
  	&dra7xx_dsp2__l3_main_1,
203447a48   Benoit Parrot   ARM: DRA7: hwmod:...
4563
4564
  	&dra7xx_l4_per3__vip2,
  	&dra7xx_l4_per3__vip3,
7c25c8564   Rajendra Nayak   ARM: DRA7: hwmod:...
4565
4566
4567
4568
  	NULL,
  };
  
  static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
f908f4319   Benoit Parrot   ARM: DRA7: hwmod:...
4569
  	&dra7xx_l4_per3__cal,
7c25c8564   Rajendra Nayak   ARM: DRA7: hwmod:...
4570
4571
  	NULL,
  };
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4572
4573
  int __init dra7xx_hwmod_init(void)
  {
7c25c8564   Rajendra Nayak   ARM: DRA7: hwmod:...
4574
  	int ret;
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4575
  	omap_hwmod_init();
7c25c8564   Rajendra Nayak   ARM: DRA7: hwmod:...
4576
4577
4578
4579
4580
4581
4582
4583
  	ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
  
  	if (!ret && soc_is_dra74x())
  		return omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
  	else if (!ret && soc_is_dra72x())
  		return omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
  
  	return ret;
90020c7b2   Ambresh K   ARM: OMAP: DRA7: ...
4584
  }