Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mach-omap2 / omap_hwmod_54xx_data.c
blob290213f2cbe3e5e51ad41dc50c7635447071ce8c
1 /*
2 * Hardware modules present on the OMAP54xx chips
4 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
6 * Paul Walmsley
7 * Benoit Cousson
9 * This file is automatically generated from the OMAP hardware databases.
10 * We respectfully ask that any modifications to this file be coordinated
11 * with the public linux-omap@vger.kernel.org mailing list and the
12 * authors above to ensure that the autogeneration scripts are kept
13 * up-to-date with the file contents.
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License version 2 as
17 * published by the Free Software Foundation.
20 #include <linux/io.h>
21 #include <linux/platform_data/gpio-omap.h>
22 #include <linux/power/smartreflex.h>
23 #include <linux/i2c-omap.h>
25 #include <linux/omap-dma.h>
26 #include <linux/platform_data/spi-omap2-mcspi.h>
27 #include <linux/platform_data/asoc-ti-mcbsp.h>
28 #include <plat/dmtimer.h>
30 #include "omap_hwmod.h"
31 #include "omap_hwmod_common_data.h"
32 #include "cm1_54xx.h"
33 #include "cm2_54xx.h"
34 #include "prm54xx.h"
35 #include "i2c.h"
36 #include "mmc.h"
37 #include "wd_timer.h"
39 /* Base offset for all OMAP5 interrupts external to MPUSS */
40 #define OMAP54XX_IRQ_GIC_START 32
42 /* Base offset for all OMAP5 dma requests */
43 #define OMAP54XX_DMA_REQ_START 1
47 * IP blocks
51 * 'dmm' class
52 * instance(s): dmm
54 static struct omap_hwmod_class omap54xx_dmm_hwmod_class = {
55 .name = "dmm",
58 /* dmm */
59 static struct omap_hwmod omap54xx_dmm_hwmod = {
60 .name = "dmm",
61 .class = &omap54xx_dmm_hwmod_class,
62 .clkdm_name = "emif_clkdm",
63 .prcm = {
64 .omap4 = {
65 .clkctrl_offs = OMAP54XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
66 .context_offs = OMAP54XX_RM_EMIF_DMM_CONTEXT_OFFSET,
72 * 'l3' class
73 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
75 static struct omap_hwmod_class omap54xx_l3_hwmod_class = {
76 .name = "l3",
79 /* l3_instr */
80 static struct omap_hwmod omap54xx_l3_instr_hwmod = {
81 .name = "l3_instr",
82 .class = &omap54xx_l3_hwmod_class,
83 .clkdm_name = "l3instr_clkdm",
84 .prcm = {
85 .omap4 = {
86 .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
87 .context_offs = OMAP54XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
88 .modulemode = MODULEMODE_HWCTRL,
93 /* l3_main_1 */
94 static struct omap_hwmod omap54xx_l3_main_1_hwmod = {
95 .name = "l3_main_1",
96 .class = &omap54xx_l3_hwmod_class,
97 .clkdm_name = "l3main1_clkdm",
98 .prcm = {
99 .omap4 = {
100 .clkctrl_offs = OMAP54XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
101 .context_offs = OMAP54XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
106 /* l3_main_2 */
107 static struct omap_hwmod omap54xx_l3_main_2_hwmod = {
108 .name = "l3_main_2",
109 .class = &omap54xx_l3_hwmod_class,
110 .clkdm_name = "l3main2_clkdm",
111 .prcm = {
112 .omap4 = {
113 .clkctrl_offs = OMAP54XX_CM_L3MAIN2_L3_MAIN_2_CLKCTRL_OFFSET,
114 .context_offs = OMAP54XX_RM_L3MAIN2_L3_MAIN_2_CONTEXT_OFFSET,
119 /* l3_main_3 */
120 static struct omap_hwmod omap54xx_l3_main_3_hwmod = {
121 .name = "l3_main_3",
122 .class = &omap54xx_l3_hwmod_class,
123 .clkdm_name = "l3instr_clkdm",
124 .prcm = {
125 .omap4 = {
126 .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_MAIN_3_CLKCTRL_OFFSET,
127 .context_offs = OMAP54XX_RM_L3INSTR_L3_MAIN_3_CONTEXT_OFFSET,
128 .modulemode = MODULEMODE_HWCTRL,
134 * 'l4' class
135 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
137 static struct omap_hwmod_class omap54xx_l4_hwmod_class = {
138 .name = "l4",
141 /* l4_abe */
142 static struct omap_hwmod omap54xx_l4_abe_hwmod = {
143 .name = "l4_abe",
144 .class = &omap54xx_l4_hwmod_class,
145 .clkdm_name = "abe_clkdm",
146 .prcm = {
147 .omap4 = {
148 .clkctrl_offs = OMAP54XX_CM_ABE_L4_ABE_CLKCTRL_OFFSET,
149 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
154 /* l4_cfg */
155 static struct omap_hwmod omap54xx_l4_cfg_hwmod = {
156 .name = "l4_cfg",
157 .class = &omap54xx_l4_hwmod_class,
158 .clkdm_name = "l4cfg_clkdm",
159 .prcm = {
160 .omap4 = {
161 .clkctrl_offs = OMAP54XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
162 .context_offs = OMAP54XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
167 /* l4_per */
168 static struct omap_hwmod omap54xx_l4_per_hwmod = {
169 .name = "l4_per",
170 .class = &omap54xx_l4_hwmod_class,
171 .clkdm_name = "l4per_clkdm",
172 .prcm = {
173 .omap4 = {
174 .clkctrl_offs = OMAP54XX_CM_L4PER_L4_PER_CLKCTRL_OFFSET,
175 .context_offs = OMAP54XX_RM_L4PER_L4_PER_CONTEXT_OFFSET,
180 /* l4_wkup */
181 static struct omap_hwmod omap54xx_l4_wkup_hwmod = {
182 .name = "l4_wkup",
183 .class = &omap54xx_l4_hwmod_class,
184 .clkdm_name = "wkupaon_clkdm",
185 .prcm = {
186 .omap4 = {
187 .clkctrl_offs = OMAP54XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
188 .context_offs = OMAP54XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
194 * 'mpu_bus' class
195 * instance(s): mpu_private
197 static struct omap_hwmod_class omap54xx_mpu_bus_hwmod_class = {
198 .name = "mpu_bus",
201 /* mpu_private */
202 static struct omap_hwmod omap54xx_mpu_private_hwmod = {
203 .name = "mpu_private",
204 .class = &omap54xx_mpu_bus_hwmod_class,
205 .clkdm_name = "mpu_clkdm",
206 .prcm = {
207 .omap4 = {
208 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
214 * 'counter' class
215 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
218 static struct omap_hwmod_class_sysconfig omap54xx_counter_sysc = {
219 .rev_offs = 0x0000,
220 .sysc_offs = 0x0010,
221 .sysc_flags = SYSC_HAS_SIDLEMODE,
222 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
223 .sysc_fields = &omap_hwmod_sysc_type1,
226 static struct omap_hwmod_class omap54xx_counter_hwmod_class = {
227 .name = "counter",
228 .sysc = &omap54xx_counter_sysc,
231 /* counter_32k */
232 static struct omap_hwmod omap54xx_counter_32k_hwmod = {
233 .name = "counter_32k",
234 .class = &omap54xx_counter_hwmod_class,
235 .clkdm_name = "wkupaon_clkdm",
236 .flags = HWMOD_SWSUP_SIDLE,
237 .main_clk = "wkupaon_iclk_mux",
238 .prcm = {
239 .omap4 = {
240 .clkctrl_offs = OMAP54XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
241 .context_offs = OMAP54XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
247 * 'dma' class
248 * dma controller for data exchange between memory to memory (i.e. internal or
249 * external memory) and gp peripherals to memory or memory to gp peripherals
252 static struct omap_hwmod_class_sysconfig omap54xx_dma_sysc = {
253 .rev_offs = 0x0000,
254 .sysc_offs = 0x002c,
255 .syss_offs = 0x0028,
256 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
257 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
258 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
259 SYSS_HAS_RESET_STATUS),
260 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
261 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
262 .sysc_fields = &omap_hwmod_sysc_type1,
265 static struct omap_hwmod_class omap54xx_dma_hwmod_class = {
266 .name = "dma",
267 .sysc = &omap54xx_dma_sysc,
270 /* dma dev_attr */
271 static struct omap_dma_dev_attr dma_dev_attr = {
272 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
273 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
274 .lch_count = 32,
277 /* dma_system */
278 static struct omap_hwmod_irq_info omap54xx_dma_system_irqs[] = {
279 { .name = "0", .irq = 12 + OMAP54XX_IRQ_GIC_START },
280 { .name = "1", .irq = 13 + OMAP54XX_IRQ_GIC_START },
281 { .name = "2", .irq = 14 + OMAP54XX_IRQ_GIC_START },
282 { .name = "3", .irq = 15 + OMAP54XX_IRQ_GIC_START },
283 { .irq = -1 }
286 static struct omap_hwmod omap54xx_dma_system_hwmod = {
287 .name = "dma_system",
288 .class = &omap54xx_dma_hwmod_class,
289 .clkdm_name = "dma_clkdm",
290 .mpu_irqs = omap54xx_dma_system_irqs,
291 .main_clk = "l3_iclk_div",
292 .prcm = {
293 .omap4 = {
294 .clkctrl_offs = OMAP54XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
295 .context_offs = OMAP54XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
298 .dev_attr = &dma_dev_attr,
302 * 'dmic' class
303 * digital microphone controller
306 static struct omap_hwmod_class_sysconfig omap54xx_dmic_sysc = {
307 .rev_offs = 0x0000,
308 .sysc_offs = 0x0010,
309 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
310 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
311 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
312 SIDLE_SMART_WKUP),
313 .sysc_fields = &omap_hwmod_sysc_type2,
316 static struct omap_hwmod_class omap54xx_dmic_hwmod_class = {
317 .name = "dmic",
318 .sysc = &omap54xx_dmic_sysc,
321 /* dmic */
322 static struct omap_hwmod omap54xx_dmic_hwmod = {
323 .name = "dmic",
324 .class = &omap54xx_dmic_hwmod_class,
325 .clkdm_name = "abe_clkdm",
326 .main_clk = "dmic_gfclk",
327 .prcm = {
328 .omap4 = {
329 .clkctrl_offs = OMAP54XX_CM_ABE_DMIC_CLKCTRL_OFFSET,
330 .context_offs = OMAP54XX_RM_ABE_DMIC_CONTEXT_OFFSET,
331 .modulemode = MODULEMODE_SWCTRL,
337 * 'dss' class
338 * display sub-system
340 static struct omap_hwmod_class_sysconfig omap54xx_dss_sysc = {
341 .rev_offs = 0x0000,
342 .syss_offs = 0x0014,
343 .sysc_flags = SYSS_HAS_RESET_STATUS,
346 static struct omap_hwmod_class omap54xx_dss_hwmod_class = {
347 .name = "dss",
348 .sysc = &omap54xx_dss_sysc,
349 .reset = omap_dss_reset,
352 /* dss */
353 static struct omap_hwmod_opt_clk dss_opt_clks[] = {
354 { .role = "32khz_clk", .clk = "dss_32khz_clk" },
355 { .role = "sys_clk", .clk = "dss_sys_clk" },
356 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
359 static struct omap_hwmod omap54xx_dss_hwmod = {
360 .name = "dss_core",
361 .class = &omap54xx_dss_hwmod_class,
362 .clkdm_name = "dss_clkdm",
363 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
364 .main_clk = "dss_dss_clk",
365 .prcm = {
366 .omap4 = {
367 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
368 .context_offs = OMAP54XX_RM_DSS_DSS_CONTEXT_OFFSET,
369 .modulemode = MODULEMODE_SWCTRL,
372 .opt_clks = dss_opt_clks,
373 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
377 * 'dispc' class
378 * display controller
381 static struct omap_hwmod_class_sysconfig omap54xx_dispc_sysc = {
382 .rev_offs = 0x0000,
383 .sysc_offs = 0x0010,
384 .syss_offs = 0x0014,
385 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
386 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
387 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
388 SYSS_HAS_RESET_STATUS),
389 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
390 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
391 .sysc_fields = &omap_hwmod_sysc_type1,
394 static struct omap_hwmod_class omap54xx_dispc_hwmod_class = {
395 .name = "dispc",
396 .sysc = &omap54xx_dispc_sysc,
399 /* dss_dispc */
400 static struct omap_hwmod_opt_clk dss_dispc_opt_clks[] = {
401 { .role = "sys_clk", .clk = "dss_sys_clk" },
404 /* dss_dispc dev_attr */
405 static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
406 .has_framedonetv_irq = 1,
407 .manager_count = 4,
410 static struct omap_hwmod omap54xx_dss_dispc_hwmod = {
411 .name = "dss_dispc",
412 .class = &omap54xx_dispc_hwmod_class,
413 .clkdm_name = "dss_clkdm",
414 .main_clk = "dss_dss_clk",
415 .prcm = {
416 .omap4 = {
417 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
418 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
421 .opt_clks = dss_dispc_opt_clks,
422 .opt_clks_cnt = ARRAY_SIZE(dss_dispc_opt_clks),
423 .dev_attr = &dss_dispc_dev_attr,
427 * 'dsi1' class
428 * display serial interface controller
431 static struct omap_hwmod_class_sysconfig omap54xx_dsi1_sysc = {
432 .rev_offs = 0x0000,
433 .sysc_offs = 0x0010,
434 .syss_offs = 0x0014,
435 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
436 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
437 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
438 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
439 .sysc_fields = &omap_hwmod_sysc_type1,
442 static struct omap_hwmod_class omap54xx_dsi1_hwmod_class = {
443 .name = "dsi1",
444 .sysc = &omap54xx_dsi1_sysc,
447 /* dss_dsi1_a */
448 static struct omap_hwmod_opt_clk dss_dsi1_a_opt_clks[] = {
449 { .role = "sys_clk", .clk = "dss_sys_clk" },
452 static struct omap_hwmod omap54xx_dss_dsi1_a_hwmod = {
453 .name = "dss_dsi1",
454 .class = &omap54xx_dsi1_hwmod_class,
455 .clkdm_name = "dss_clkdm",
456 .main_clk = "dss_dss_clk",
457 .prcm = {
458 .omap4 = {
459 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
460 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
463 .opt_clks = dss_dsi1_a_opt_clks,
464 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_a_opt_clks),
467 /* dss_dsi1_c */
468 static struct omap_hwmod_opt_clk dss_dsi1_c_opt_clks[] = {
469 { .role = "sys_clk", .clk = "dss_sys_clk" },
472 static struct omap_hwmod omap54xx_dss_dsi1_c_hwmod = {
473 .name = "dss_dsi2",
474 .class = &omap54xx_dsi1_hwmod_class,
475 .clkdm_name = "dss_clkdm",
476 .main_clk = "dss_dss_clk",
477 .prcm = {
478 .omap4 = {
479 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
480 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
483 .opt_clks = dss_dsi1_c_opt_clks,
484 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_c_opt_clks),
488 * 'hdmi' class
489 * hdmi controller
492 static struct omap_hwmod_class_sysconfig omap54xx_hdmi_sysc = {
493 .rev_offs = 0x0000,
494 .sysc_offs = 0x0010,
495 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
496 SYSC_HAS_SOFTRESET),
497 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
498 SIDLE_SMART_WKUP),
499 .sysc_fields = &omap_hwmod_sysc_type2,
502 static struct omap_hwmod_class omap54xx_hdmi_hwmod_class = {
503 .name = "hdmi",
504 .sysc = &omap54xx_hdmi_sysc,
507 static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
508 { .role = "sys_clk", .clk = "dss_sys_clk" },
511 static struct omap_hwmod omap54xx_dss_hdmi_hwmod = {
512 .name = "dss_hdmi",
513 .class = &omap54xx_hdmi_hwmod_class,
514 .clkdm_name = "dss_clkdm",
515 .main_clk = "dss_48mhz_clk",
516 .prcm = {
517 .omap4 = {
518 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
519 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
522 .opt_clks = dss_hdmi_opt_clks,
523 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
527 * 'rfbi' class
528 * remote frame buffer interface
531 static struct omap_hwmod_class_sysconfig omap54xx_rfbi_sysc = {
532 .rev_offs = 0x0000,
533 .sysc_offs = 0x0010,
534 .syss_offs = 0x0014,
535 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
536 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
537 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
538 .sysc_fields = &omap_hwmod_sysc_type1,
541 static struct omap_hwmod_class omap54xx_rfbi_hwmod_class = {
542 .name = "rfbi",
543 .sysc = &omap54xx_rfbi_sysc,
546 /* dss_rfbi */
547 static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
548 { .role = "ick", .clk = "l3_iclk_div" },
551 static struct omap_hwmod omap54xx_dss_rfbi_hwmod = {
552 .name = "dss_rfbi",
553 .class = &omap54xx_rfbi_hwmod_class,
554 .clkdm_name = "dss_clkdm",
555 .prcm = {
556 .omap4 = {
557 .clkctrl_offs = OMAP54XX_CM_DSS_DSS_CLKCTRL_OFFSET,
558 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
561 .opt_clks = dss_rfbi_opt_clks,
562 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
566 * 'emif' class
567 * external memory interface no1 (wrapper)
570 static struct omap_hwmod_class_sysconfig omap54xx_emif_sysc = {
571 .rev_offs = 0x0000,
574 static struct omap_hwmod_class omap54xx_emif_hwmod_class = {
575 .name = "emif",
576 .sysc = &omap54xx_emif_sysc,
579 /* emif1 */
580 static struct omap_hwmod omap54xx_emif1_hwmod = {
581 .name = "emif1",
582 .class = &omap54xx_emif_hwmod_class,
583 .clkdm_name = "emif_clkdm",
584 .flags = HWMOD_INIT_NO_IDLE,
585 .main_clk = "dpll_core_h11x2_ck",
586 .prcm = {
587 .omap4 = {
588 .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF1_CLKCTRL_OFFSET,
589 .context_offs = OMAP54XX_RM_EMIF_EMIF1_CONTEXT_OFFSET,
590 .modulemode = MODULEMODE_HWCTRL,
595 /* emif2 */
596 static struct omap_hwmod omap54xx_emif2_hwmod = {
597 .name = "emif2",
598 .class = &omap54xx_emif_hwmod_class,
599 .clkdm_name = "emif_clkdm",
600 .flags = HWMOD_INIT_NO_IDLE,
601 .main_clk = "dpll_core_h11x2_ck",
602 .prcm = {
603 .omap4 = {
604 .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF2_CLKCTRL_OFFSET,
605 .context_offs = OMAP54XX_RM_EMIF_EMIF2_CONTEXT_OFFSET,
606 .modulemode = MODULEMODE_HWCTRL,
612 * 'gpio' class
613 * general purpose io module
616 static struct omap_hwmod_class_sysconfig omap54xx_gpio_sysc = {
617 .rev_offs = 0x0000,
618 .sysc_offs = 0x0010,
619 .syss_offs = 0x0114,
620 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
621 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
622 SYSS_HAS_RESET_STATUS),
623 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
624 SIDLE_SMART_WKUP),
625 .sysc_fields = &omap_hwmod_sysc_type1,
628 static struct omap_hwmod_class omap54xx_gpio_hwmod_class = {
629 .name = "gpio",
630 .sysc = &omap54xx_gpio_sysc,
631 .rev = 2,
634 /* gpio dev_attr */
635 static struct omap_gpio_dev_attr gpio_dev_attr = {
636 .bank_width = 32,
637 .dbck_flag = true,
640 /* gpio1 */
641 static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
642 { .role = "dbclk", .clk = "gpio1_dbclk" },
645 static struct omap_hwmod omap54xx_gpio1_hwmod = {
646 .name = "gpio1",
647 .class = &omap54xx_gpio_hwmod_class,
648 .clkdm_name = "wkupaon_clkdm",
649 .main_clk = "wkupaon_iclk_mux",
650 .prcm = {
651 .omap4 = {
652 .clkctrl_offs = OMAP54XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
653 .context_offs = OMAP54XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
654 .modulemode = MODULEMODE_HWCTRL,
657 .opt_clks = gpio1_opt_clks,
658 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
659 .dev_attr = &gpio_dev_attr,
662 /* gpio2 */
663 static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
664 { .role = "dbclk", .clk = "gpio2_dbclk" },
667 static struct omap_hwmod omap54xx_gpio2_hwmod = {
668 .name = "gpio2",
669 .class = &omap54xx_gpio_hwmod_class,
670 .clkdm_name = "l4per_clkdm",
671 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
672 .main_clk = "l4_root_clk_div",
673 .prcm = {
674 .omap4 = {
675 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
676 .context_offs = OMAP54XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
677 .modulemode = MODULEMODE_HWCTRL,
680 .opt_clks = gpio2_opt_clks,
681 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
682 .dev_attr = &gpio_dev_attr,
685 /* gpio3 */
686 static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
687 { .role = "dbclk", .clk = "gpio3_dbclk" },
690 static struct omap_hwmod omap54xx_gpio3_hwmod = {
691 .name = "gpio3",
692 .class = &omap54xx_gpio_hwmod_class,
693 .clkdm_name = "l4per_clkdm",
694 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
695 .main_clk = "l4_root_clk_div",
696 .prcm = {
697 .omap4 = {
698 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
699 .context_offs = OMAP54XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
700 .modulemode = MODULEMODE_HWCTRL,
703 .opt_clks = gpio3_opt_clks,
704 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
705 .dev_attr = &gpio_dev_attr,
708 /* gpio4 */
709 static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
710 { .role = "dbclk", .clk = "gpio4_dbclk" },
713 static struct omap_hwmod omap54xx_gpio4_hwmod = {
714 .name = "gpio4",
715 .class = &omap54xx_gpio_hwmod_class,
716 .clkdm_name = "l4per_clkdm",
717 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
718 .main_clk = "l4_root_clk_div",
719 .prcm = {
720 .omap4 = {
721 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
722 .context_offs = OMAP54XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
723 .modulemode = MODULEMODE_HWCTRL,
726 .opt_clks = gpio4_opt_clks,
727 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
728 .dev_attr = &gpio_dev_attr,
731 /* gpio5 */
732 static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
733 { .role = "dbclk", .clk = "gpio5_dbclk" },
736 static struct omap_hwmod omap54xx_gpio5_hwmod = {
737 .name = "gpio5",
738 .class = &omap54xx_gpio_hwmod_class,
739 .clkdm_name = "l4per_clkdm",
740 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
741 .main_clk = "l4_root_clk_div",
742 .prcm = {
743 .omap4 = {
744 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
745 .context_offs = OMAP54XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
746 .modulemode = MODULEMODE_HWCTRL,
749 .opt_clks = gpio5_opt_clks,
750 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
751 .dev_attr = &gpio_dev_attr,
754 /* gpio6 */
755 static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
756 { .role = "dbclk", .clk = "gpio6_dbclk" },
759 static struct omap_hwmod omap54xx_gpio6_hwmod = {
760 .name = "gpio6",
761 .class = &omap54xx_gpio_hwmod_class,
762 .clkdm_name = "l4per_clkdm",
763 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
764 .main_clk = "l4_root_clk_div",
765 .prcm = {
766 .omap4 = {
767 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
768 .context_offs = OMAP54XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
769 .modulemode = MODULEMODE_HWCTRL,
772 .opt_clks = gpio6_opt_clks,
773 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
774 .dev_attr = &gpio_dev_attr,
777 /* gpio7 */
778 static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
779 { .role = "dbclk", .clk = "gpio7_dbclk" },
782 static struct omap_hwmod omap54xx_gpio7_hwmod = {
783 .name = "gpio7",
784 .class = &omap54xx_gpio_hwmod_class,
785 .clkdm_name = "l4per_clkdm",
786 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
787 .main_clk = "l4_root_clk_div",
788 .prcm = {
789 .omap4 = {
790 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
791 .context_offs = OMAP54XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
792 .modulemode = MODULEMODE_HWCTRL,
795 .opt_clks = gpio7_opt_clks,
796 .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
797 .dev_attr = &gpio_dev_attr,
800 /* gpio8 */
801 static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
802 { .role = "dbclk", .clk = "gpio8_dbclk" },
805 static struct omap_hwmod omap54xx_gpio8_hwmod = {
806 .name = "gpio8",
807 .class = &omap54xx_gpio_hwmod_class,
808 .clkdm_name = "l4per_clkdm",
809 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
810 .main_clk = "l4_root_clk_div",
811 .prcm = {
812 .omap4 = {
813 .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
814 .context_offs = OMAP54XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
815 .modulemode = MODULEMODE_HWCTRL,
818 .opt_clks = gpio8_opt_clks,
819 .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
820 .dev_attr = &gpio_dev_attr,
824 * 'i2c' class
825 * multimaster high-speed i2c controller
828 static struct omap_hwmod_class_sysconfig omap54xx_i2c_sysc = {
829 .sysc_offs = 0x0010,
830 .syss_offs = 0x0090,
831 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
832 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
833 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
834 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
835 SIDLE_SMART_WKUP),
836 .clockact = CLOCKACT_TEST_ICLK,
837 .sysc_fields = &omap_hwmod_sysc_type1,
840 static struct omap_hwmod_class omap54xx_i2c_hwmod_class = {
841 .name = "i2c",
842 .sysc = &omap54xx_i2c_sysc,
843 .reset = &omap_i2c_reset,
844 .rev = OMAP_I2C_IP_VERSION_2,
847 /* i2c dev_attr */
848 static struct omap_i2c_dev_attr i2c_dev_attr = {
849 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
852 /* i2c1 */
853 static struct omap_hwmod omap54xx_i2c1_hwmod = {
854 .name = "i2c1",
855 .class = &omap54xx_i2c_hwmod_class,
856 .clkdm_name = "l4per_clkdm",
857 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
858 .main_clk = "func_96m_fclk",
859 .prcm = {
860 .omap4 = {
861 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
862 .context_offs = OMAP54XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
863 .modulemode = MODULEMODE_SWCTRL,
866 .dev_attr = &i2c_dev_attr,
869 /* i2c2 */
870 static struct omap_hwmod omap54xx_i2c2_hwmod = {
871 .name = "i2c2",
872 .class = &omap54xx_i2c_hwmod_class,
873 .clkdm_name = "l4per_clkdm",
874 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
875 .main_clk = "func_96m_fclk",
876 .prcm = {
877 .omap4 = {
878 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
879 .context_offs = OMAP54XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
880 .modulemode = MODULEMODE_SWCTRL,
883 .dev_attr = &i2c_dev_attr,
886 /* i2c3 */
887 static struct omap_hwmod omap54xx_i2c3_hwmod = {
888 .name = "i2c3",
889 .class = &omap54xx_i2c_hwmod_class,
890 .clkdm_name = "l4per_clkdm",
891 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
892 .main_clk = "func_96m_fclk",
893 .prcm = {
894 .omap4 = {
895 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
896 .context_offs = OMAP54XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
897 .modulemode = MODULEMODE_SWCTRL,
900 .dev_attr = &i2c_dev_attr,
903 /* i2c4 */
904 static struct omap_hwmod omap54xx_i2c4_hwmod = {
905 .name = "i2c4",
906 .class = &omap54xx_i2c_hwmod_class,
907 .clkdm_name = "l4per_clkdm",
908 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
909 .main_clk = "func_96m_fclk",
910 .prcm = {
911 .omap4 = {
912 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
913 .context_offs = OMAP54XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
914 .modulemode = MODULEMODE_SWCTRL,
917 .dev_attr = &i2c_dev_attr,
920 /* i2c5 */
921 static struct omap_hwmod omap54xx_i2c5_hwmod = {
922 .name = "i2c5",
923 .class = &omap54xx_i2c_hwmod_class,
924 .clkdm_name = "l4per_clkdm",
925 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
926 .main_clk = "func_96m_fclk",
927 .prcm = {
928 .omap4 = {
929 .clkctrl_offs = OMAP54XX_CM_L4PER_I2C5_CLKCTRL_OFFSET,
930 .context_offs = OMAP54XX_RM_L4PER_I2C5_CONTEXT_OFFSET,
931 .modulemode = MODULEMODE_SWCTRL,
934 .dev_attr = &i2c_dev_attr,
938 * 'kbd' class
939 * keyboard controller
942 static struct omap_hwmod_class_sysconfig omap54xx_kbd_sysc = {
943 .rev_offs = 0x0000,
944 .sysc_offs = 0x0010,
945 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
946 SYSC_HAS_SOFTRESET),
947 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
948 .sysc_fields = &omap_hwmod_sysc_type1,
951 static struct omap_hwmod_class omap54xx_kbd_hwmod_class = {
952 .name = "kbd",
953 .sysc = &omap54xx_kbd_sysc,
956 /* kbd */
957 static struct omap_hwmod omap54xx_kbd_hwmod = {
958 .name = "kbd",
959 .class = &omap54xx_kbd_hwmod_class,
960 .clkdm_name = "wkupaon_clkdm",
961 .main_clk = "sys_32k_ck",
962 .prcm = {
963 .omap4 = {
964 .clkctrl_offs = OMAP54XX_CM_WKUPAON_KBD_CLKCTRL_OFFSET,
965 .context_offs = OMAP54XX_RM_WKUPAON_KBD_CONTEXT_OFFSET,
966 .modulemode = MODULEMODE_SWCTRL,
972 * 'mailbox' class
973 * mailbox module allowing communication between the on-chip processors using a
974 * queued mailbox-interrupt mechanism.
977 static struct omap_hwmod_class_sysconfig omap54xx_mailbox_sysc = {
978 .rev_offs = 0x0000,
979 .sysc_offs = 0x0010,
980 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
981 SYSC_HAS_SOFTRESET),
982 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
983 .sysc_fields = &omap_hwmod_sysc_type2,
986 static struct omap_hwmod_class omap54xx_mailbox_hwmod_class = {
987 .name = "mailbox",
988 .sysc = &omap54xx_mailbox_sysc,
991 /* mailbox */
992 static struct omap_hwmod omap54xx_mailbox_hwmod = {
993 .name = "mailbox",
994 .class = &omap54xx_mailbox_hwmod_class,
995 .clkdm_name = "l4cfg_clkdm",
996 .prcm = {
997 .omap4 = {
998 .clkctrl_offs = OMAP54XX_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
999 .context_offs = OMAP54XX_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
1005 * 'mcbsp' class
1006 * multi channel buffered serial port controller
1009 static struct omap_hwmod_class_sysconfig omap54xx_mcbsp_sysc = {
1010 .sysc_offs = 0x008c,
1011 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1012 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1013 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1014 .sysc_fields = &omap_hwmod_sysc_type1,
1017 static struct omap_hwmod_class omap54xx_mcbsp_hwmod_class = {
1018 .name = "mcbsp",
1019 .sysc = &omap54xx_mcbsp_sysc,
1020 .rev = MCBSP_CONFIG_TYPE4,
1023 /* mcbsp1 */
1024 static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1025 { .role = "pad_fck", .clk = "pad_clks_ck" },
1026 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
1029 static struct omap_hwmod omap54xx_mcbsp1_hwmod = {
1030 .name = "mcbsp1",
1031 .class = &omap54xx_mcbsp_hwmod_class,
1032 .clkdm_name = "abe_clkdm",
1033 .main_clk = "mcbsp1_gfclk",
1034 .prcm = {
1035 .omap4 = {
1036 .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP1_CLKCTRL_OFFSET,
1037 .context_offs = OMAP54XX_RM_ABE_MCBSP1_CONTEXT_OFFSET,
1038 .modulemode = MODULEMODE_SWCTRL,
1041 .opt_clks = mcbsp1_opt_clks,
1042 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
1045 /* mcbsp2 */
1046 static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1047 { .role = "pad_fck", .clk = "pad_clks_ck" },
1048 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
1051 static struct omap_hwmod omap54xx_mcbsp2_hwmod = {
1052 .name = "mcbsp2",
1053 .class = &omap54xx_mcbsp_hwmod_class,
1054 .clkdm_name = "abe_clkdm",
1055 .main_clk = "mcbsp2_gfclk",
1056 .prcm = {
1057 .omap4 = {
1058 .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP2_CLKCTRL_OFFSET,
1059 .context_offs = OMAP54XX_RM_ABE_MCBSP2_CONTEXT_OFFSET,
1060 .modulemode = MODULEMODE_SWCTRL,
1063 .opt_clks = mcbsp2_opt_clks,
1064 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
1067 /* mcbsp3 */
1068 static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1069 { .role = "pad_fck", .clk = "pad_clks_ck" },
1070 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
1073 static struct omap_hwmod omap54xx_mcbsp3_hwmod = {
1074 .name = "mcbsp3",
1075 .class = &omap54xx_mcbsp_hwmod_class,
1076 .clkdm_name = "abe_clkdm",
1077 .main_clk = "mcbsp3_gfclk",
1078 .prcm = {
1079 .omap4 = {
1080 .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP3_CLKCTRL_OFFSET,
1081 .context_offs = OMAP54XX_RM_ABE_MCBSP3_CONTEXT_OFFSET,
1082 .modulemode = MODULEMODE_SWCTRL,
1085 .opt_clks = mcbsp3_opt_clks,
1086 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
1090 * 'mcpdm' class
1091 * multi channel pdm controller (proprietary interface with phoenix power
1092 * ic)
1095 static struct omap_hwmod_class_sysconfig omap54xx_mcpdm_sysc = {
1096 .rev_offs = 0x0000,
1097 .sysc_offs = 0x0010,
1098 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1099 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1100 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1101 SIDLE_SMART_WKUP),
1102 .sysc_fields = &omap_hwmod_sysc_type2,
1105 static struct omap_hwmod_class omap54xx_mcpdm_hwmod_class = {
1106 .name = "mcpdm",
1107 .sysc = &omap54xx_mcpdm_sysc,
1110 /* mcpdm */
1111 static struct omap_hwmod omap54xx_mcpdm_hwmod = {
1112 .name = "mcpdm",
1113 .class = &omap54xx_mcpdm_hwmod_class,
1114 .clkdm_name = "abe_clkdm",
1116 * It's suspected that the McPDM requires an off-chip main
1117 * functional clock, controlled via I2C. This IP block is
1118 * currently reset very early during boot, before I2C is
1119 * available, so it doesn't seem that we have any choice in
1120 * the kernel other than to avoid resetting it. XXX This is
1121 * really a hardware issue workaround: every IP block should
1122 * be able to source its main functional clock from either
1123 * on-chip or off-chip sources. McPDM seems to be the only
1124 * current exception.
1127 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
1128 .main_clk = "pad_clks_ck",
1129 .prcm = {
1130 .omap4 = {
1131 .clkctrl_offs = OMAP54XX_CM_ABE_MCPDM_CLKCTRL_OFFSET,
1132 .context_offs = OMAP54XX_RM_ABE_MCPDM_CONTEXT_OFFSET,
1133 .modulemode = MODULEMODE_SWCTRL,
1139 * 'mcspi' class
1140 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1141 * bus
1144 static struct omap_hwmod_class_sysconfig omap54xx_mcspi_sysc = {
1145 .rev_offs = 0x0000,
1146 .sysc_offs = 0x0010,
1147 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1148 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1149 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1150 SIDLE_SMART_WKUP),
1151 .sysc_fields = &omap_hwmod_sysc_type2,
1154 static struct omap_hwmod_class omap54xx_mcspi_hwmod_class = {
1155 .name = "mcspi",
1156 .sysc = &omap54xx_mcspi_sysc,
1157 .rev = OMAP4_MCSPI_REV,
1160 /* mcspi1 */
1161 /* mcspi1 dev_attr */
1162 static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1163 .num_chipselect = 4,
1166 static struct omap_hwmod omap54xx_mcspi1_hwmod = {
1167 .name = "mcspi1",
1168 .class = &omap54xx_mcspi_hwmod_class,
1169 .clkdm_name = "l4per_clkdm",
1170 .main_clk = "func_48m_fclk",
1171 .prcm = {
1172 .omap4 = {
1173 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
1174 .context_offs = OMAP54XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
1175 .modulemode = MODULEMODE_SWCTRL,
1178 .dev_attr = &mcspi1_dev_attr,
1181 /* mcspi2 */
1182 /* mcspi2 dev_attr */
1183 static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1184 .num_chipselect = 2,
1187 static struct omap_hwmod omap54xx_mcspi2_hwmod = {
1188 .name = "mcspi2",
1189 .class = &omap54xx_mcspi_hwmod_class,
1190 .clkdm_name = "l4per_clkdm",
1191 .main_clk = "func_48m_fclk",
1192 .prcm = {
1193 .omap4 = {
1194 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
1195 .context_offs = OMAP54XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
1196 .modulemode = MODULEMODE_SWCTRL,
1199 .dev_attr = &mcspi2_dev_attr,
1202 /* mcspi3 */
1203 /* mcspi3 dev_attr */
1204 static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1205 .num_chipselect = 2,
1208 static struct omap_hwmod omap54xx_mcspi3_hwmod = {
1209 .name = "mcspi3",
1210 .class = &omap54xx_mcspi_hwmod_class,
1211 .clkdm_name = "l4per_clkdm",
1212 .main_clk = "func_48m_fclk",
1213 .prcm = {
1214 .omap4 = {
1215 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
1216 .context_offs = OMAP54XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
1217 .modulemode = MODULEMODE_SWCTRL,
1220 .dev_attr = &mcspi3_dev_attr,
1223 /* mcspi4 */
1224 /* mcspi4 dev_attr */
1225 static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1226 .num_chipselect = 1,
1229 static struct omap_hwmod omap54xx_mcspi4_hwmod = {
1230 .name = "mcspi4",
1231 .class = &omap54xx_mcspi_hwmod_class,
1232 .clkdm_name = "l4per_clkdm",
1233 .main_clk = "func_48m_fclk",
1234 .prcm = {
1235 .omap4 = {
1236 .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
1237 .context_offs = OMAP54XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
1238 .modulemode = MODULEMODE_SWCTRL,
1241 .dev_attr = &mcspi4_dev_attr,
1245 * 'mmc' class
1246 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1249 static struct omap_hwmod_class_sysconfig omap54xx_mmc_sysc = {
1250 .rev_offs = 0x0000,
1251 .sysc_offs = 0x0010,
1252 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1253 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1254 SYSC_HAS_SOFTRESET),
1255 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1256 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1257 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1258 .sysc_fields = &omap_hwmod_sysc_type2,
1261 static struct omap_hwmod_class omap54xx_mmc_hwmod_class = {
1262 .name = "mmc",
1263 .sysc = &omap54xx_mmc_sysc,
1266 /* mmc1 */
1267 static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
1268 { .role = "32khz_clk", .clk = "mmc1_32khz_clk" },
1271 /* mmc1 dev_attr */
1272 static struct omap_mmc_dev_attr mmc1_dev_attr = {
1273 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1276 static struct omap_hwmod omap54xx_mmc1_hwmod = {
1277 .name = "mmc1",
1278 .class = &omap54xx_mmc_hwmod_class,
1279 .clkdm_name = "l3init_clkdm",
1280 .main_clk = "mmc1_fclk",
1281 .prcm = {
1282 .omap4 = {
1283 .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
1284 .context_offs = OMAP54XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
1285 .modulemode = MODULEMODE_SWCTRL,
1288 .opt_clks = mmc1_opt_clks,
1289 .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
1290 .dev_attr = &mmc1_dev_attr,
1293 /* mmc2 */
1294 static struct omap_hwmod omap54xx_mmc2_hwmod = {
1295 .name = "mmc2",
1296 .class = &omap54xx_mmc_hwmod_class,
1297 .clkdm_name = "l3init_clkdm",
1298 .main_clk = "mmc2_fclk",
1299 .prcm = {
1300 .omap4 = {
1301 .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
1302 .context_offs = OMAP54XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
1303 .modulemode = MODULEMODE_SWCTRL,
1308 /* mmc3 */
1309 static struct omap_hwmod omap54xx_mmc3_hwmod = {
1310 .name = "mmc3",
1311 .class = &omap54xx_mmc_hwmod_class,
1312 .clkdm_name = "l4per_clkdm",
1313 .main_clk = "func_48m_fclk",
1314 .prcm = {
1315 .omap4 = {
1316 .clkctrl_offs = OMAP54XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
1317 .context_offs = OMAP54XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
1318 .modulemode = MODULEMODE_SWCTRL,
1323 /* mmc4 */
1324 static struct omap_hwmod omap54xx_mmc4_hwmod = {
1325 .name = "mmc4",
1326 .class = &omap54xx_mmc_hwmod_class,
1327 .clkdm_name = "l4per_clkdm",
1328 .main_clk = "func_48m_fclk",
1329 .prcm = {
1330 .omap4 = {
1331 .clkctrl_offs = OMAP54XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
1332 .context_offs = OMAP54XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
1333 .modulemode = MODULEMODE_SWCTRL,
1338 /* mmc5 */
1339 static struct omap_hwmod omap54xx_mmc5_hwmod = {
1340 .name = "mmc5",
1341 .class = &omap54xx_mmc_hwmod_class,
1342 .clkdm_name = "l4per_clkdm",
1343 .main_clk = "func_96m_fclk",
1344 .prcm = {
1345 .omap4 = {
1346 .clkctrl_offs = OMAP54XX_CM_L4PER_MMC5_CLKCTRL_OFFSET,
1347 .context_offs = OMAP54XX_RM_L4PER_MMC5_CONTEXT_OFFSET,
1348 .modulemode = MODULEMODE_SWCTRL,
1354 * 'mmu' class
1355 * The memory management unit performs virtual to physical address translation
1356 * for its requestors.
1359 static struct omap_hwmod_class_sysconfig omap54xx_mmu_sysc = {
1360 .rev_offs = 0x0000,
1361 .sysc_offs = 0x0010,
1362 .syss_offs = 0x0014,
1363 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1364 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1365 SYSS_HAS_RESET_STATUS),
1366 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1367 .sysc_fields = &omap_hwmod_sysc_type1,
1370 static struct omap_hwmod_class omap54xx_mmu_hwmod_class = {
1371 .name = "mmu",
1372 .sysc = &omap54xx_mmu_sysc,
1375 static struct omap_hwmod_rst_info omap54xx_mmu_dsp_resets[] = {
1376 { .name = "mmu_cache", .rst_shift = 1 },
1379 static struct omap_hwmod omap54xx_mmu_dsp_hwmod = {
1380 .name = "mmu_dsp",
1381 .class = &omap54xx_mmu_hwmod_class,
1382 .clkdm_name = "dsp_clkdm",
1383 .rst_lines = omap54xx_mmu_dsp_resets,
1384 .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_dsp_resets),
1385 .main_clk = "dpll_iva_h11x2_ck",
1386 .prcm = {
1387 .omap4 = {
1388 .clkctrl_offs = OMAP54XX_CM_DSP_DSP_CLKCTRL_OFFSET,
1389 .rstctrl_offs = OMAP54XX_RM_DSP_RSTCTRL_OFFSET,
1390 .context_offs = OMAP54XX_RM_DSP_DSP_CONTEXT_OFFSET,
1391 .modulemode = MODULEMODE_HWCTRL,
1396 /* mmu ipu */
1397 static struct omap_hwmod_rst_info omap54xx_mmu_ipu_resets[] = {
1398 { .name = "mmu_cache", .rst_shift = 2 },
1401 static struct omap_hwmod omap54xx_mmu_ipu_hwmod = {
1402 .name = "mmu_ipu",
1403 .class = &omap54xx_mmu_hwmod_class,
1404 .clkdm_name = "ipu_clkdm",
1405 .rst_lines = omap54xx_mmu_ipu_resets,
1406 .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_ipu_resets),
1407 .main_clk = "dpll_core_h22x2_ck",
1408 .prcm = {
1409 .omap4 = {
1410 .clkctrl_offs = OMAP54XX_CM_IPU_IPU_CLKCTRL_OFFSET,
1411 .rstctrl_offs = OMAP54XX_RM_IPU_RSTCTRL_OFFSET,
1412 .context_offs = OMAP54XX_RM_IPU_IPU_CONTEXT_OFFSET,
1413 .modulemode = MODULEMODE_HWCTRL,
1419 * 'mpu' class
1420 * mpu sub-system
1423 static struct omap_hwmod_class omap54xx_mpu_hwmod_class = {
1424 .name = "mpu",
1427 /* mpu */
1428 static struct omap_hwmod omap54xx_mpu_hwmod = {
1429 .name = "mpu",
1430 .class = &omap54xx_mpu_hwmod_class,
1431 .clkdm_name = "mpu_clkdm",
1432 .flags = HWMOD_INIT_NO_IDLE,
1433 .main_clk = "dpll_mpu_m2_ck",
1434 .prcm = {
1435 .omap4 = {
1436 .clkctrl_offs = OMAP54XX_CM_MPU_MPU_CLKCTRL_OFFSET,
1437 .context_offs = OMAP54XX_RM_MPU_MPU_CONTEXT_OFFSET,
1443 * 'spinlock' class
1444 * spinlock provides hardware assistance for synchronizing the processes
1445 * running on multiple processors
1448 static struct omap_hwmod_class_sysconfig omap54xx_spinlock_sysc = {
1449 .rev_offs = 0x0000,
1450 .sysc_offs = 0x0010,
1451 .syss_offs = 0x0014,
1452 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1453 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1454 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1455 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1456 .sysc_fields = &omap_hwmod_sysc_type1,
1459 static struct omap_hwmod_class omap54xx_spinlock_hwmod_class = {
1460 .name = "spinlock",
1461 .sysc = &omap54xx_spinlock_sysc,
1464 /* spinlock */
1465 static struct omap_hwmod omap54xx_spinlock_hwmod = {
1466 .name = "spinlock",
1467 .class = &omap54xx_spinlock_hwmod_class,
1468 .clkdm_name = "l4cfg_clkdm",
1469 .prcm = {
1470 .omap4 = {
1471 .clkctrl_offs = OMAP54XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
1472 .context_offs = OMAP54XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
1478 * 'ocp2scp' class
1479 * bridge to transform ocp interface protocol to scp (serial control port)
1480 * protocol
1483 static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc = {
1484 .rev_offs = 0x0000,
1485 .sysc_offs = 0x0010,
1486 .syss_offs = 0x0014,
1487 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1488 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1489 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1490 .sysc_fields = &omap_hwmod_sysc_type1,
1493 static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
1494 .name = "ocp2scp",
1495 .sysc = &omap54xx_ocp2scp_sysc,
1498 /* ocp2scp1 */
1499 static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
1500 .name = "ocp2scp1",
1501 .class = &omap54xx_ocp2scp_hwmod_class,
1502 .clkdm_name = "l3init_clkdm",
1503 .main_clk = "l4_root_clk_div",
1504 .prcm = {
1505 .omap4 = {
1506 .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
1507 .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
1508 .modulemode = MODULEMODE_HWCTRL,
1514 * 'timer' class
1515 * general purpose timer module with accurate 1ms tick
1516 * This class contains several variants: ['timer_1ms', 'timer']
1519 static struct omap_hwmod_class_sysconfig omap54xx_timer_1ms_sysc = {
1520 .rev_offs = 0x0000,
1521 .sysc_offs = 0x0010,
1522 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1523 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1524 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1525 SIDLE_SMART_WKUP),
1526 .sysc_fields = &omap_hwmod_sysc_type2,
1527 .clockact = CLOCKACT_TEST_ICLK,
1530 static struct omap_hwmod_class omap54xx_timer_1ms_hwmod_class = {
1531 .name = "timer",
1532 .sysc = &omap54xx_timer_1ms_sysc,
1535 static struct omap_hwmod_class_sysconfig omap54xx_timer_sysc = {
1536 .rev_offs = 0x0000,
1537 .sysc_offs = 0x0010,
1538 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1539 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1540 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1541 SIDLE_SMART_WKUP),
1542 .sysc_fields = &omap_hwmod_sysc_type2,
1545 static struct omap_hwmod_class omap54xx_timer_hwmod_class = {
1546 .name = "timer",
1547 .sysc = &omap54xx_timer_sysc,
1550 /* timer1 */
1551 static struct omap_hwmod omap54xx_timer1_hwmod = {
1552 .name = "timer1",
1553 .class = &omap54xx_timer_1ms_hwmod_class,
1554 .clkdm_name = "wkupaon_clkdm",
1555 .main_clk = "timer1_gfclk_mux",
1556 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1557 .prcm = {
1558 .omap4 = {
1559 .clkctrl_offs = OMAP54XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
1560 .context_offs = OMAP54XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
1561 .modulemode = MODULEMODE_SWCTRL,
1566 /* timer2 */
1567 static struct omap_hwmod omap54xx_timer2_hwmod = {
1568 .name = "timer2",
1569 .class = &omap54xx_timer_1ms_hwmod_class,
1570 .clkdm_name = "l4per_clkdm",
1571 .main_clk = "timer2_gfclk_mux",
1572 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1573 .prcm = {
1574 .omap4 = {
1575 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
1576 .context_offs = OMAP54XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
1577 .modulemode = MODULEMODE_SWCTRL,
1582 /* timer3 */
1583 static struct omap_hwmod omap54xx_timer3_hwmod = {
1584 .name = "timer3",
1585 .class = &omap54xx_timer_hwmod_class,
1586 .clkdm_name = "l4per_clkdm",
1587 .main_clk = "timer3_gfclk_mux",
1588 .prcm = {
1589 .omap4 = {
1590 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
1591 .context_offs = OMAP54XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
1592 .modulemode = MODULEMODE_SWCTRL,
1597 /* timer4 */
1598 static struct omap_hwmod omap54xx_timer4_hwmod = {
1599 .name = "timer4",
1600 .class = &omap54xx_timer_hwmod_class,
1601 .clkdm_name = "l4per_clkdm",
1602 .main_clk = "timer4_gfclk_mux",
1603 .prcm = {
1604 .omap4 = {
1605 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
1606 .context_offs = OMAP54XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
1607 .modulemode = MODULEMODE_SWCTRL,
1612 /* timer5 */
1613 static struct omap_hwmod omap54xx_timer5_hwmod = {
1614 .name = "timer5",
1615 .class = &omap54xx_timer_hwmod_class,
1616 .clkdm_name = "abe_clkdm",
1617 .main_clk = "timer5_gfclk_mux",
1618 .prcm = {
1619 .omap4 = {
1620 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER5_CLKCTRL_OFFSET,
1621 .context_offs = OMAP54XX_RM_ABE_TIMER5_CONTEXT_OFFSET,
1622 .modulemode = MODULEMODE_SWCTRL,
1627 /* timer6 */
1628 static struct omap_hwmod omap54xx_timer6_hwmod = {
1629 .name = "timer6",
1630 .class = &omap54xx_timer_hwmod_class,
1631 .clkdm_name = "abe_clkdm",
1632 .main_clk = "timer6_gfclk_mux",
1633 .prcm = {
1634 .omap4 = {
1635 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER6_CLKCTRL_OFFSET,
1636 .context_offs = OMAP54XX_RM_ABE_TIMER6_CONTEXT_OFFSET,
1637 .modulemode = MODULEMODE_SWCTRL,
1642 /* timer7 */
1643 static struct omap_hwmod omap54xx_timer7_hwmod = {
1644 .name = "timer7",
1645 .class = &omap54xx_timer_hwmod_class,
1646 .clkdm_name = "abe_clkdm",
1647 .main_clk = "timer7_gfclk_mux",
1648 .prcm = {
1649 .omap4 = {
1650 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER7_CLKCTRL_OFFSET,
1651 .context_offs = OMAP54XX_RM_ABE_TIMER7_CONTEXT_OFFSET,
1652 .modulemode = MODULEMODE_SWCTRL,
1657 /* timer8 */
1658 static struct omap_hwmod omap54xx_timer8_hwmod = {
1659 .name = "timer8",
1660 .class = &omap54xx_timer_hwmod_class,
1661 .clkdm_name = "abe_clkdm",
1662 .main_clk = "timer8_gfclk_mux",
1663 .prcm = {
1664 .omap4 = {
1665 .clkctrl_offs = OMAP54XX_CM_ABE_TIMER8_CLKCTRL_OFFSET,
1666 .context_offs = OMAP54XX_RM_ABE_TIMER8_CONTEXT_OFFSET,
1667 .modulemode = MODULEMODE_SWCTRL,
1672 /* timer9 */
1673 static struct omap_hwmod omap54xx_timer9_hwmod = {
1674 .name = "timer9",
1675 .class = &omap54xx_timer_hwmod_class,
1676 .clkdm_name = "l4per_clkdm",
1677 .main_clk = "timer9_gfclk_mux",
1678 .prcm = {
1679 .omap4 = {
1680 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
1681 .context_offs = OMAP54XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
1682 .modulemode = MODULEMODE_SWCTRL,
1687 /* timer10 */
1688 static struct omap_hwmod omap54xx_timer10_hwmod = {
1689 .name = "timer10",
1690 .class = &omap54xx_timer_1ms_hwmod_class,
1691 .clkdm_name = "l4per_clkdm",
1692 .main_clk = "timer10_gfclk_mux",
1693 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
1694 .prcm = {
1695 .omap4 = {
1696 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
1697 .context_offs = OMAP54XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
1698 .modulemode = MODULEMODE_SWCTRL,
1703 /* timer11 */
1704 static struct omap_hwmod omap54xx_timer11_hwmod = {
1705 .name = "timer11",
1706 .class = &omap54xx_timer_hwmod_class,
1707 .clkdm_name = "l4per_clkdm",
1708 .main_clk = "timer11_gfclk_mux",
1709 .prcm = {
1710 .omap4 = {
1711 .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
1712 .context_offs = OMAP54XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
1713 .modulemode = MODULEMODE_SWCTRL,
1719 * 'uart' class
1720 * universal asynchronous receiver/transmitter (uart)
1723 static struct omap_hwmod_class_sysconfig omap54xx_uart_sysc = {
1724 .rev_offs = 0x0050,
1725 .sysc_offs = 0x0054,
1726 .syss_offs = 0x0058,
1727 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1728 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1729 SYSS_HAS_RESET_STATUS),
1730 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1731 SIDLE_SMART_WKUP),
1732 .sysc_fields = &omap_hwmod_sysc_type1,
1735 static struct omap_hwmod_class omap54xx_uart_hwmod_class = {
1736 .name = "uart",
1737 .sysc = &omap54xx_uart_sysc,
1740 /* uart1 */
1741 static struct omap_hwmod omap54xx_uart1_hwmod = {
1742 .name = "uart1",
1743 .class = &omap54xx_uart_hwmod_class,
1744 .clkdm_name = "l4per_clkdm",
1745 .main_clk = "func_48m_fclk",
1746 .prcm = {
1747 .omap4 = {
1748 .clkctrl_offs = OMAP54XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
1749 .context_offs = OMAP54XX_RM_L4PER_UART1_CONTEXT_OFFSET,
1750 .modulemode = MODULEMODE_SWCTRL,
1755 /* uart2 */
1756 static struct omap_hwmod omap54xx_uart2_hwmod = {
1757 .name = "uart2",
1758 .class = &omap54xx_uart_hwmod_class,
1759 .clkdm_name = "l4per_clkdm",
1760 .main_clk = "func_48m_fclk",
1761 .prcm = {
1762 .omap4 = {
1763 .clkctrl_offs = OMAP54XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
1764 .context_offs = OMAP54XX_RM_L4PER_UART2_CONTEXT_OFFSET,
1765 .modulemode = MODULEMODE_SWCTRL,
1770 /* uart3 */
1771 static struct omap_hwmod omap54xx_uart3_hwmod = {
1772 .name = "uart3",
1773 .class = &omap54xx_uart_hwmod_class,
1774 .clkdm_name = "l4per_clkdm",
1775 .flags = DEBUG_OMAP4UART3_FLAGS,
1776 .main_clk = "func_48m_fclk",
1777 .prcm = {
1778 .omap4 = {
1779 .clkctrl_offs = OMAP54XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
1780 .context_offs = OMAP54XX_RM_L4PER_UART3_CONTEXT_OFFSET,
1781 .modulemode = MODULEMODE_SWCTRL,
1786 /* uart4 */
1787 static struct omap_hwmod omap54xx_uart4_hwmod = {
1788 .name = "uart4",
1789 .class = &omap54xx_uart_hwmod_class,
1790 .clkdm_name = "l4per_clkdm",
1791 .flags = DEBUG_OMAP4UART4_FLAGS,
1792 .main_clk = "func_48m_fclk",
1793 .prcm = {
1794 .omap4 = {
1795 .clkctrl_offs = OMAP54XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
1796 .context_offs = OMAP54XX_RM_L4PER_UART4_CONTEXT_OFFSET,
1797 .modulemode = MODULEMODE_SWCTRL,
1802 /* uart5 */
1803 static struct omap_hwmod omap54xx_uart5_hwmod = {
1804 .name = "uart5",
1805 .class = &omap54xx_uart_hwmod_class,
1806 .clkdm_name = "l4per_clkdm",
1807 .main_clk = "func_48m_fclk",
1808 .prcm = {
1809 .omap4 = {
1810 .clkctrl_offs = OMAP54XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
1811 .context_offs = OMAP54XX_RM_L4PER_UART5_CONTEXT_OFFSET,
1812 .modulemode = MODULEMODE_SWCTRL,
1817 /* uart6 */
1818 static struct omap_hwmod omap54xx_uart6_hwmod = {
1819 .name = "uart6",
1820 .class = &omap54xx_uart_hwmod_class,
1821 .clkdm_name = "l4per_clkdm",
1822 .main_clk = "func_48m_fclk",
1823 .prcm = {
1824 .omap4 = {
1825 .clkctrl_offs = OMAP54XX_CM_L4PER_UART6_CLKCTRL_OFFSET,
1826 .context_offs = OMAP54XX_RM_L4PER_UART6_CONTEXT_OFFSET,
1827 .modulemode = MODULEMODE_SWCTRL,
1833 * 'usb_host_hs' class
1834 * high-speed multi-port usb host controller
1837 static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc = {
1838 .rev_offs = 0x0000,
1839 .sysc_offs = 0x0010,
1840 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1841 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1842 SYSC_HAS_RESET_STATUS),
1843 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1844 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1845 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1846 .sysc_fields = &omap_hwmod_sysc_type2,
1849 static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class = {
1850 .name = "usb_host_hs",
1851 .sysc = &omap54xx_usb_host_hs_sysc,
1854 static struct omap_hwmod omap54xx_usb_host_hs_hwmod = {
1855 .name = "usb_host_hs",
1856 .class = &omap54xx_usb_host_hs_hwmod_class,
1857 .clkdm_name = "l3init_clkdm",
1859 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
1860 * id: i660
1862 * Description:
1863 * In the following configuration :
1864 * - USBHOST module is set to smart-idle mode
1865 * - PRCM asserts idle_req to the USBHOST module ( This typically
1866 * happens when the system is going to a low power mode : all ports
1867 * have been suspended, the master part of the USBHOST module has
1868 * entered the standby state, and SW has cut the functional clocks)
1869 * - an USBHOST interrupt occurs before the module is able to answer
1870 * idle_ack, typically a remote wakeup IRQ.
1871 * Then the USB HOST module will enter a deadlock situation where it
1872 * is no more accessible nor functional.
1874 * Workaround:
1875 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
1879 * Errata: USB host EHCI may stall when entering smart-standby mode
1880 * Id: i571
1882 * Description:
1883 * When the USBHOST module is set to smart-standby mode, and when it is
1884 * ready to enter the standby state (i.e. all ports are suspended and
1885 * all attached devices are in suspend mode), then it can wrongly assert
1886 * the Mstandby signal too early while there are still some residual OCP
1887 * transactions ongoing. If this condition occurs, the internal state
1888 * machine may go to an undefined state and the USB link may be stuck
1889 * upon the next resume.
1891 * Workaround:
1892 * Don't use smart standby; use only force standby,
1893 * hence HWMOD_SWSUP_MSTANDBY
1896 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
1897 .main_clk = "l3init_60m_fclk",
1898 .prcm = {
1899 .omap4 = {
1900 .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET,
1901 .context_offs = OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET,
1902 .modulemode = MODULEMODE_SWCTRL,
1908 * 'usb_tll_hs' class
1909 * usb_tll_hs module is the adapter on the usb_host_hs ports
1912 static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc = {
1913 .rev_offs = 0x0000,
1914 .sysc_offs = 0x0010,
1915 .syss_offs = 0x0014,
1916 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1917 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1918 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1919 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1920 .sysc_fields = &omap_hwmod_sysc_type1,
1923 static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class = {
1924 .name = "usb_tll_hs",
1925 .sysc = &omap54xx_usb_tll_hs_sysc,
1928 static struct omap_hwmod omap54xx_usb_tll_hs_hwmod = {
1929 .name = "usb_tll_hs",
1930 .class = &omap54xx_usb_tll_hs_hwmod_class,
1931 .clkdm_name = "l3init_clkdm",
1932 .main_clk = "l4_root_clk_div",
1933 .prcm = {
1934 .omap4 = {
1935 .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET,
1936 .context_offs = OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET,
1937 .modulemode = MODULEMODE_HWCTRL,
1943 * 'usb_otg_ss' class
1944 * 2.0 super speed (usb_otg_ss) controller
1947 static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc = {
1948 .rev_offs = 0x0000,
1949 .sysc_offs = 0x0010,
1950 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
1951 SYSC_HAS_SIDLEMODE),
1952 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1953 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1954 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1955 .sysc_fields = &omap_hwmod_sysc_type2,
1958 static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class = {
1959 .name = "usb_otg_ss",
1960 .sysc = &omap54xx_usb_otg_ss_sysc,
1963 /* usb_otg_ss */
1964 static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks[] = {
1965 { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" },
1968 static struct omap_hwmod omap54xx_usb_otg_ss_hwmod = {
1969 .name = "usb_otg_ss",
1970 .class = &omap54xx_usb_otg_ss_hwmod_class,
1971 .clkdm_name = "l3init_clkdm",
1972 .flags = HWMOD_SWSUP_SIDLE,
1973 .main_clk = "dpll_core_h13x2_ck",
1974 .prcm = {
1975 .omap4 = {
1976 .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET,
1977 .context_offs = OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET,
1978 .modulemode = MODULEMODE_HWCTRL,
1981 .opt_clks = usb_otg_ss_opt_clks,
1982 .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss_opt_clks),
1986 * 'wd_timer' class
1987 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1988 * overflow condition
1991 static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc = {
1992 .rev_offs = 0x0000,
1993 .sysc_offs = 0x0010,
1994 .syss_offs = 0x0014,
1995 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
1996 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1997 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1998 SIDLE_SMART_WKUP),
1999 .sysc_fields = &omap_hwmod_sysc_type1,
2002 static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class = {
2003 .name = "wd_timer",
2004 .sysc = &omap54xx_wd_timer_sysc,
2005 .pre_shutdown = &omap2_wd_timer_disable,
2008 /* wd_timer2 */
2009 static struct omap_hwmod omap54xx_wd_timer2_hwmod = {
2010 .name = "wd_timer2",
2011 .class = &omap54xx_wd_timer_hwmod_class,
2012 .clkdm_name = "wkupaon_clkdm",
2013 .main_clk = "sys_32k_ck",
2014 .prcm = {
2015 .omap4 = {
2016 .clkctrl_offs = OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
2017 .context_offs = OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
2018 .modulemode = MODULEMODE_SWCTRL,
2025 * Interfaces
2028 /* l3_main_1 -> dmm */
2029 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm = {
2030 .master = &omap54xx_l3_main_1_hwmod,
2031 .slave = &omap54xx_dmm_hwmod,
2032 .clk = "l3_iclk_div",
2033 .user = OCP_USER_SDMA,
2036 /* l3_main_3 -> l3_instr */
2037 static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr = {
2038 .master = &omap54xx_l3_main_3_hwmod,
2039 .slave = &omap54xx_l3_instr_hwmod,
2040 .clk = "l3_iclk_div",
2041 .user = OCP_USER_MPU | OCP_USER_SDMA,
2044 /* l3_main_2 -> l3_main_1 */
2045 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1 = {
2046 .master = &omap54xx_l3_main_2_hwmod,
2047 .slave = &omap54xx_l3_main_1_hwmod,
2048 .clk = "l3_iclk_div",
2049 .user = OCP_USER_MPU | OCP_USER_SDMA,
2052 /* l4_cfg -> l3_main_1 */
2053 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1 = {
2054 .master = &omap54xx_l4_cfg_hwmod,
2055 .slave = &omap54xx_l3_main_1_hwmod,
2056 .clk = "l3_iclk_div",
2057 .user = OCP_USER_MPU | OCP_USER_SDMA,
2060 /* l4_cfg -> mmu_dsp */
2061 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mmu_dsp = {
2062 .master = &omap54xx_l4_cfg_hwmod,
2063 .slave = &omap54xx_mmu_dsp_hwmod,
2064 .clk = "l4_root_clk_div",
2065 .user = OCP_USER_MPU | OCP_USER_SDMA,
2068 /* mpu -> l3_main_1 */
2069 static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1 = {
2070 .master = &omap54xx_mpu_hwmod,
2071 .slave = &omap54xx_l3_main_1_hwmod,
2072 .clk = "l3_iclk_div",
2073 .user = OCP_USER_MPU,
2076 /* l3_main_1 -> l3_main_2 */
2077 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2 = {
2078 .master = &omap54xx_l3_main_1_hwmod,
2079 .slave = &omap54xx_l3_main_2_hwmod,
2080 .clk = "l3_iclk_div",
2081 .user = OCP_USER_MPU,
2084 /* l4_cfg -> l3_main_2 */
2085 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2 = {
2086 .master = &omap54xx_l4_cfg_hwmod,
2087 .slave = &omap54xx_l3_main_2_hwmod,
2088 .clk = "l3_iclk_div",
2089 .user = OCP_USER_MPU | OCP_USER_SDMA,
2092 /* l3_main_2 -> mmu_ipu */
2093 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__mmu_ipu = {
2094 .master = &omap54xx_l3_main_2_hwmod,
2095 .slave = &omap54xx_mmu_ipu_hwmod,
2096 .clk = "l3_iclk_div",
2097 .user = OCP_USER_MPU | OCP_USER_SDMA,
2100 /* l3_main_1 -> l3_main_3 */
2101 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3 = {
2102 .master = &omap54xx_l3_main_1_hwmod,
2103 .slave = &omap54xx_l3_main_3_hwmod,
2104 .clk = "l3_iclk_div",
2105 .user = OCP_USER_MPU,
2108 /* l3_main_2 -> l3_main_3 */
2109 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3 = {
2110 .master = &omap54xx_l3_main_2_hwmod,
2111 .slave = &omap54xx_l3_main_3_hwmod,
2112 .clk = "l3_iclk_div",
2113 .user = OCP_USER_MPU | OCP_USER_SDMA,
2116 /* l4_cfg -> l3_main_3 */
2117 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
2118 .master = &omap54xx_l4_cfg_hwmod,
2119 .slave = &omap54xx_l3_main_3_hwmod,
2120 .clk = "l3_iclk_div",
2121 .user = OCP_USER_MPU | OCP_USER_SDMA,
2124 /* l3_main_1 -> l4_abe */
2125 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe = {
2126 .master = &omap54xx_l3_main_1_hwmod,
2127 .slave = &omap54xx_l4_abe_hwmod,
2128 .clk = "abe_iclk",
2129 .user = OCP_USER_MPU | OCP_USER_SDMA,
2132 /* mpu -> l4_abe */
2133 static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe = {
2134 .master = &omap54xx_mpu_hwmod,
2135 .slave = &omap54xx_l4_abe_hwmod,
2136 .clk = "abe_iclk",
2137 .user = OCP_USER_MPU | OCP_USER_SDMA,
2140 /* l3_main_1 -> l4_cfg */
2141 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg = {
2142 .master = &omap54xx_l3_main_1_hwmod,
2143 .slave = &omap54xx_l4_cfg_hwmod,
2144 .clk = "l4_root_clk_div",
2145 .user = OCP_USER_MPU | OCP_USER_SDMA,
2148 /* l3_main_2 -> l4_per */
2149 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per = {
2150 .master = &omap54xx_l3_main_2_hwmod,
2151 .slave = &omap54xx_l4_per_hwmod,
2152 .clk = "l4_root_clk_div",
2153 .user = OCP_USER_MPU | OCP_USER_SDMA,
2156 /* l3_main_1 -> l4_wkup */
2157 static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup = {
2158 .master = &omap54xx_l3_main_1_hwmod,
2159 .slave = &omap54xx_l4_wkup_hwmod,
2160 .clk = "wkupaon_iclk_mux",
2161 .user = OCP_USER_MPU | OCP_USER_SDMA,
2164 /* mpu -> mpu_private */
2165 static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private = {
2166 .master = &omap54xx_mpu_hwmod,
2167 .slave = &omap54xx_mpu_private_hwmod,
2168 .clk = "l3_iclk_div",
2169 .user = OCP_USER_MPU | OCP_USER_SDMA,
2172 /* l4_wkup -> counter_32k */
2173 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k = {
2174 .master = &omap54xx_l4_wkup_hwmod,
2175 .slave = &omap54xx_counter_32k_hwmod,
2176 .clk = "wkupaon_iclk_mux",
2177 .user = OCP_USER_MPU | OCP_USER_SDMA,
2180 static struct omap_hwmod_addr_space omap54xx_dma_system_addrs[] = {
2182 .pa_start = 0x4a056000,
2183 .pa_end = 0x4a056fff,
2184 .flags = ADDR_TYPE_RT
2189 /* l4_cfg -> dma_system */
2190 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system = {
2191 .master = &omap54xx_l4_cfg_hwmod,
2192 .slave = &omap54xx_dma_system_hwmod,
2193 .clk = "l4_root_clk_div",
2194 .addr = omap54xx_dma_system_addrs,
2195 .user = OCP_USER_MPU | OCP_USER_SDMA,
2198 /* l4_abe -> dmic */
2199 static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic = {
2200 .master = &omap54xx_l4_abe_hwmod,
2201 .slave = &omap54xx_dmic_hwmod,
2202 .clk = "abe_iclk",
2203 .user = OCP_USER_MPU,
2206 /* l3_main_2 -> dss */
2207 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss = {
2208 .master = &omap54xx_l3_main_2_hwmod,
2209 .slave = &omap54xx_dss_hwmod,
2210 .clk = "l3_iclk_div",
2211 .user = OCP_USER_MPU | OCP_USER_SDMA,
2214 /* l3_main_2 -> dss_dispc */
2215 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dispc = {
2216 .master = &omap54xx_l3_main_2_hwmod,
2217 .slave = &omap54xx_dss_dispc_hwmod,
2218 .clk = "l3_iclk_div",
2219 .user = OCP_USER_MPU | OCP_USER_SDMA,
2222 /* l3_main_2 -> dss_dsi1_a */
2223 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_a = {
2224 .master = &omap54xx_l3_main_2_hwmod,
2225 .slave = &omap54xx_dss_dsi1_a_hwmod,
2226 .clk = "l3_iclk_div",
2227 .user = OCP_USER_MPU | OCP_USER_SDMA,
2230 /* l3_main_2 -> dss_dsi1_c */
2231 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_dsi1_c = {
2232 .master = &omap54xx_l3_main_2_hwmod,
2233 .slave = &omap54xx_dss_dsi1_c_hwmod,
2234 .clk = "l3_iclk_div",
2235 .user = OCP_USER_MPU | OCP_USER_SDMA,
2238 /* l3_main_2 -> dss_hdmi */
2239 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_hdmi = {
2240 .master = &omap54xx_l3_main_2_hwmod,
2241 .slave = &omap54xx_dss_hdmi_hwmod,
2242 .clk = "l3_iclk_div",
2243 .user = OCP_USER_MPU | OCP_USER_SDMA,
2246 /* l3_main_2 -> dss_rfbi */
2247 static struct omap_hwmod_ocp_if omap54xx_l3_main_2__dss_rfbi = {
2248 .master = &omap54xx_l3_main_2_hwmod,
2249 .slave = &omap54xx_dss_rfbi_hwmod,
2250 .clk = "l3_iclk_div",
2251 .user = OCP_USER_MPU | OCP_USER_SDMA,
2254 /* mpu -> emif1 */
2255 static struct omap_hwmod_ocp_if omap54xx_mpu__emif1 = {
2256 .master = &omap54xx_mpu_hwmod,
2257 .slave = &omap54xx_emif1_hwmod,
2258 .clk = "dpll_core_h11x2_ck",
2259 .user = OCP_USER_MPU | OCP_USER_SDMA,
2262 /* mpu -> emif2 */
2263 static struct omap_hwmod_ocp_if omap54xx_mpu__emif2 = {
2264 .master = &omap54xx_mpu_hwmod,
2265 .slave = &omap54xx_emif2_hwmod,
2266 .clk = "dpll_core_h11x2_ck",
2267 .user = OCP_USER_MPU | OCP_USER_SDMA,
2270 /* l4_wkup -> gpio1 */
2271 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1 = {
2272 .master = &omap54xx_l4_wkup_hwmod,
2273 .slave = &omap54xx_gpio1_hwmod,
2274 .clk = "wkupaon_iclk_mux",
2275 .user = OCP_USER_MPU | OCP_USER_SDMA,
2278 /* l4_per -> gpio2 */
2279 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2 = {
2280 .master = &omap54xx_l4_per_hwmod,
2281 .slave = &omap54xx_gpio2_hwmod,
2282 .clk = "l4_root_clk_div",
2283 .user = OCP_USER_MPU | OCP_USER_SDMA,
2286 /* l4_per -> gpio3 */
2287 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3 = {
2288 .master = &omap54xx_l4_per_hwmod,
2289 .slave = &omap54xx_gpio3_hwmod,
2290 .clk = "l4_root_clk_div",
2291 .user = OCP_USER_MPU | OCP_USER_SDMA,
2294 /* l4_per -> gpio4 */
2295 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4 = {
2296 .master = &omap54xx_l4_per_hwmod,
2297 .slave = &omap54xx_gpio4_hwmod,
2298 .clk = "l4_root_clk_div",
2299 .user = OCP_USER_MPU | OCP_USER_SDMA,
2302 /* l4_per -> gpio5 */
2303 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5 = {
2304 .master = &omap54xx_l4_per_hwmod,
2305 .slave = &omap54xx_gpio5_hwmod,
2306 .clk = "l4_root_clk_div",
2307 .user = OCP_USER_MPU | OCP_USER_SDMA,
2310 /* l4_per -> gpio6 */
2311 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6 = {
2312 .master = &omap54xx_l4_per_hwmod,
2313 .slave = &omap54xx_gpio6_hwmod,
2314 .clk = "l4_root_clk_div",
2315 .user = OCP_USER_MPU | OCP_USER_SDMA,
2318 /* l4_per -> gpio7 */
2319 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7 = {
2320 .master = &omap54xx_l4_per_hwmod,
2321 .slave = &omap54xx_gpio7_hwmod,
2322 .clk = "l4_root_clk_div",
2323 .user = OCP_USER_MPU | OCP_USER_SDMA,
2326 /* l4_per -> gpio8 */
2327 static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8 = {
2328 .master = &omap54xx_l4_per_hwmod,
2329 .slave = &omap54xx_gpio8_hwmod,
2330 .clk = "l4_root_clk_div",
2331 .user = OCP_USER_MPU | OCP_USER_SDMA,
2334 /* l4_per -> i2c1 */
2335 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1 = {
2336 .master = &omap54xx_l4_per_hwmod,
2337 .slave = &omap54xx_i2c1_hwmod,
2338 .clk = "l4_root_clk_div",
2339 .user = OCP_USER_MPU | OCP_USER_SDMA,
2342 /* l4_per -> i2c2 */
2343 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2 = {
2344 .master = &omap54xx_l4_per_hwmod,
2345 .slave = &omap54xx_i2c2_hwmod,
2346 .clk = "l4_root_clk_div",
2347 .user = OCP_USER_MPU | OCP_USER_SDMA,
2350 /* l4_per -> i2c3 */
2351 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3 = {
2352 .master = &omap54xx_l4_per_hwmod,
2353 .slave = &omap54xx_i2c3_hwmod,
2354 .clk = "l4_root_clk_div",
2355 .user = OCP_USER_MPU | OCP_USER_SDMA,
2358 /* l4_per -> i2c4 */
2359 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4 = {
2360 .master = &omap54xx_l4_per_hwmod,
2361 .slave = &omap54xx_i2c4_hwmod,
2362 .clk = "l4_root_clk_div",
2363 .user = OCP_USER_MPU | OCP_USER_SDMA,
2366 /* l4_per -> i2c5 */
2367 static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5 = {
2368 .master = &omap54xx_l4_per_hwmod,
2369 .slave = &omap54xx_i2c5_hwmod,
2370 .clk = "l4_root_clk_div",
2371 .user = OCP_USER_MPU | OCP_USER_SDMA,
2374 /* l4_wkup -> kbd */
2375 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd = {
2376 .master = &omap54xx_l4_wkup_hwmod,
2377 .slave = &omap54xx_kbd_hwmod,
2378 .clk = "wkupaon_iclk_mux",
2379 .user = OCP_USER_MPU | OCP_USER_SDMA,
2382 /* l4_cfg -> mailbox */
2383 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox = {
2384 .master = &omap54xx_l4_cfg_hwmod,
2385 .slave = &omap54xx_mailbox_hwmod,
2386 .clk = "l4_root_clk_div",
2387 .user = OCP_USER_MPU | OCP_USER_SDMA,
2390 /* l4_abe -> mcbsp1 */
2391 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1 = {
2392 .master = &omap54xx_l4_abe_hwmod,
2393 .slave = &omap54xx_mcbsp1_hwmod,
2394 .clk = "abe_iclk",
2395 .user = OCP_USER_MPU,
2398 /* l4_abe -> mcbsp2 */
2399 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2 = {
2400 .master = &omap54xx_l4_abe_hwmod,
2401 .slave = &omap54xx_mcbsp2_hwmod,
2402 .clk = "abe_iclk",
2403 .user = OCP_USER_MPU,
2406 /* l4_abe -> mcbsp3 */
2407 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3 = {
2408 .master = &omap54xx_l4_abe_hwmod,
2409 .slave = &omap54xx_mcbsp3_hwmod,
2410 .clk = "abe_iclk",
2411 .user = OCP_USER_MPU,
2414 /* l4_abe -> mcpdm */
2415 static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm = {
2416 .master = &omap54xx_l4_abe_hwmod,
2417 .slave = &omap54xx_mcpdm_hwmod,
2418 .clk = "abe_iclk",
2419 .user = OCP_USER_MPU,
2422 /* l4_per -> mcspi1 */
2423 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1 = {
2424 .master = &omap54xx_l4_per_hwmod,
2425 .slave = &omap54xx_mcspi1_hwmod,
2426 .clk = "l4_root_clk_div",
2427 .user = OCP_USER_MPU | OCP_USER_SDMA,
2430 /* l4_per -> mcspi2 */
2431 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2 = {
2432 .master = &omap54xx_l4_per_hwmod,
2433 .slave = &omap54xx_mcspi2_hwmod,
2434 .clk = "l4_root_clk_div",
2435 .user = OCP_USER_MPU | OCP_USER_SDMA,
2438 /* l4_per -> mcspi3 */
2439 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3 = {
2440 .master = &omap54xx_l4_per_hwmod,
2441 .slave = &omap54xx_mcspi3_hwmod,
2442 .clk = "l4_root_clk_div",
2443 .user = OCP_USER_MPU | OCP_USER_SDMA,
2446 /* l4_per -> mcspi4 */
2447 static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4 = {
2448 .master = &omap54xx_l4_per_hwmod,
2449 .slave = &omap54xx_mcspi4_hwmod,
2450 .clk = "l4_root_clk_div",
2451 .user = OCP_USER_MPU | OCP_USER_SDMA,
2454 /* l4_per -> mmc1 */
2455 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1 = {
2456 .master = &omap54xx_l4_per_hwmod,
2457 .slave = &omap54xx_mmc1_hwmod,
2458 .clk = "l3_iclk_div",
2459 .user = OCP_USER_MPU | OCP_USER_SDMA,
2462 /* l4_per -> mmc2 */
2463 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2 = {
2464 .master = &omap54xx_l4_per_hwmod,
2465 .slave = &omap54xx_mmc2_hwmod,
2466 .clk = "l3_iclk_div",
2467 .user = OCP_USER_MPU | OCP_USER_SDMA,
2470 /* l4_per -> mmc3 */
2471 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3 = {
2472 .master = &omap54xx_l4_per_hwmod,
2473 .slave = &omap54xx_mmc3_hwmod,
2474 .clk = "l4_root_clk_div",
2475 .user = OCP_USER_MPU | OCP_USER_SDMA,
2478 /* l4_per -> mmc4 */
2479 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4 = {
2480 .master = &omap54xx_l4_per_hwmod,
2481 .slave = &omap54xx_mmc4_hwmod,
2482 .clk = "l4_root_clk_div",
2483 .user = OCP_USER_MPU | OCP_USER_SDMA,
2486 /* l4_per -> mmc5 */
2487 static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5 = {
2488 .master = &omap54xx_l4_per_hwmod,
2489 .slave = &omap54xx_mmc5_hwmod,
2490 .clk = "l4_root_clk_div",
2491 .user = OCP_USER_MPU | OCP_USER_SDMA,
2494 /* l4_cfg -> mpu */
2495 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = {
2496 .master = &omap54xx_l4_cfg_hwmod,
2497 .slave = &omap54xx_mpu_hwmod,
2498 .clk = "l4_root_clk_div",
2499 .user = OCP_USER_MPU | OCP_USER_SDMA,
2502 /* l4_cfg -> spinlock */
2503 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock = {
2504 .master = &omap54xx_l4_cfg_hwmod,
2505 .slave = &omap54xx_spinlock_hwmod,
2506 .clk = "l4_root_clk_div",
2507 .user = OCP_USER_MPU | OCP_USER_SDMA,
2510 /* l4_cfg -> ocp2scp1 */
2511 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
2512 .master = &omap54xx_l4_cfg_hwmod,
2513 .slave = &omap54xx_ocp2scp1_hwmod,
2514 .clk = "l4_root_clk_div",
2515 .user = OCP_USER_MPU | OCP_USER_SDMA,
2518 /* l4_wkup -> timer1 */
2519 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
2520 .master = &omap54xx_l4_wkup_hwmod,
2521 .slave = &omap54xx_timer1_hwmod,
2522 .clk = "wkupaon_iclk_mux",
2523 .user = OCP_USER_MPU | OCP_USER_SDMA,
2526 /* l4_per -> timer2 */
2527 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2 = {
2528 .master = &omap54xx_l4_per_hwmod,
2529 .slave = &omap54xx_timer2_hwmod,
2530 .clk = "l4_root_clk_div",
2531 .user = OCP_USER_MPU | OCP_USER_SDMA,
2534 /* l4_per -> timer3 */
2535 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3 = {
2536 .master = &omap54xx_l4_per_hwmod,
2537 .slave = &omap54xx_timer3_hwmod,
2538 .clk = "l4_root_clk_div",
2539 .user = OCP_USER_MPU | OCP_USER_SDMA,
2542 /* l4_per -> timer4 */
2543 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4 = {
2544 .master = &omap54xx_l4_per_hwmod,
2545 .slave = &omap54xx_timer4_hwmod,
2546 .clk = "l4_root_clk_div",
2547 .user = OCP_USER_MPU | OCP_USER_SDMA,
2550 /* l4_abe -> timer5 */
2551 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5 = {
2552 .master = &omap54xx_l4_abe_hwmod,
2553 .slave = &omap54xx_timer5_hwmod,
2554 .clk = "abe_iclk",
2555 .user = OCP_USER_MPU,
2558 /* l4_abe -> timer6 */
2559 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6 = {
2560 .master = &omap54xx_l4_abe_hwmod,
2561 .slave = &omap54xx_timer6_hwmod,
2562 .clk = "abe_iclk",
2563 .user = OCP_USER_MPU,
2566 /* l4_abe -> timer7 */
2567 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7 = {
2568 .master = &omap54xx_l4_abe_hwmod,
2569 .slave = &omap54xx_timer7_hwmod,
2570 .clk = "abe_iclk",
2571 .user = OCP_USER_MPU,
2574 /* l4_abe -> timer8 */
2575 static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8 = {
2576 .master = &omap54xx_l4_abe_hwmod,
2577 .slave = &omap54xx_timer8_hwmod,
2578 .clk = "abe_iclk",
2579 .user = OCP_USER_MPU,
2582 /* l4_per -> timer9 */
2583 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9 = {
2584 .master = &omap54xx_l4_per_hwmod,
2585 .slave = &omap54xx_timer9_hwmod,
2586 .clk = "l4_root_clk_div",
2587 .user = OCP_USER_MPU | OCP_USER_SDMA,
2590 /* l4_per -> timer10 */
2591 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10 = {
2592 .master = &omap54xx_l4_per_hwmod,
2593 .slave = &omap54xx_timer10_hwmod,
2594 .clk = "l4_root_clk_div",
2595 .user = OCP_USER_MPU | OCP_USER_SDMA,
2598 /* l4_per -> timer11 */
2599 static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11 = {
2600 .master = &omap54xx_l4_per_hwmod,
2601 .slave = &omap54xx_timer11_hwmod,
2602 .clk = "l4_root_clk_div",
2603 .user = OCP_USER_MPU | OCP_USER_SDMA,
2606 /* l4_per -> uart1 */
2607 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1 = {
2608 .master = &omap54xx_l4_per_hwmod,
2609 .slave = &omap54xx_uart1_hwmod,
2610 .clk = "l4_root_clk_div",
2611 .user = OCP_USER_MPU | OCP_USER_SDMA,
2614 /* l4_per -> uart2 */
2615 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2 = {
2616 .master = &omap54xx_l4_per_hwmod,
2617 .slave = &omap54xx_uart2_hwmod,
2618 .clk = "l4_root_clk_div",
2619 .user = OCP_USER_MPU | OCP_USER_SDMA,
2622 /* l4_per -> uart3 */
2623 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3 = {
2624 .master = &omap54xx_l4_per_hwmod,
2625 .slave = &omap54xx_uart3_hwmod,
2626 .clk = "l4_root_clk_div",
2627 .user = OCP_USER_MPU | OCP_USER_SDMA,
2630 /* l4_per -> uart4 */
2631 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4 = {
2632 .master = &omap54xx_l4_per_hwmod,
2633 .slave = &omap54xx_uart4_hwmod,
2634 .clk = "l4_root_clk_div",
2635 .user = OCP_USER_MPU | OCP_USER_SDMA,
2638 /* l4_per -> uart5 */
2639 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5 = {
2640 .master = &omap54xx_l4_per_hwmod,
2641 .slave = &omap54xx_uart5_hwmod,
2642 .clk = "l4_root_clk_div",
2643 .user = OCP_USER_MPU | OCP_USER_SDMA,
2646 /* l4_per -> uart6 */
2647 static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6 = {
2648 .master = &omap54xx_l4_per_hwmod,
2649 .slave = &omap54xx_uart6_hwmod,
2650 .clk = "l4_root_clk_div",
2651 .user = OCP_USER_MPU | OCP_USER_SDMA,
2654 /* l4_cfg -> usb_host_hs */
2655 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs = {
2656 .master = &omap54xx_l4_cfg_hwmod,
2657 .slave = &omap54xx_usb_host_hs_hwmod,
2658 .clk = "l3_iclk_div",
2659 .user = OCP_USER_MPU | OCP_USER_SDMA,
2662 /* l4_cfg -> usb_tll_hs */
2663 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs = {
2664 .master = &omap54xx_l4_cfg_hwmod,
2665 .slave = &omap54xx_usb_tll_hs_hwmod,
2666 .clk = "l4_root_clk_div",
2667 .user = OCP_USER_MPU | OCP_USER_SDMA,
2670 /* l4_cfg -> usb_otg_ss */
2671 static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss = {
2672 .master = &omap54xx_l4_cfg_hwmod,
2673 .slave = &omap54xx_usb_otg_ss_hwmod,
2674 .clk = "dpll_core_h13x2_ck",
2675 .user = OCP_USER_MPU | OCP_USER_SDMA,
2678 /* l4_wkup -> wd_timer2 */
2679 static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2 = {
2680 .master = &omap54xx_l4_wkup_hwmod,
2681 .slave = &omap54xx_wd_timer2_hwmod,
2682 .clk = "wkupaon_iclk_mux",
2683 .user = OCP_USER_MPU | OCP_USER_SDMA,
2686 static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
2687 &omap54xx_l3_main_1__dmm,
2688 &omap54xx_l3_main_3__l3_instr,
2689 &omap54xx_l3_main_2__l3_main_1,
2690 &omap54xx_l4_cfg__l3_main_1,
2691 &omap54xx_mpu__l3_main_1,
2692 &omap54xx_l3_main_1__l3_main_2,
2693 &omap54xx_l4_cfg__l3_main_2,
2694 &omap54xx_l3_main_1__l3_main_3,
2695 &omap54xx_l3_main_2__l3_main_3,
2696 &omap54xx_l4_cfg__l3_main_3,
2697 &omap54xx_l3_main_1__l4_abe,
2698 &omap54xx_mpu__l4_abe,
2699 &omap54xx_l3_main_1__l4_cfg,
2700 &omap54xx_l3_main_2__l4_per,
2701 &omap54xx_l3_main_1__l4_wkup,
2702 &omap54xx_mpu__mpu_private,
2703 &omap54xx_l4_wkup__counter_32k,
2704 &omap54xx_l4_cfg__dma_system,
2705 &omap54xx_l4_abe__dmic,
2706 &omap54xx_l4_cfg__mmu_dsp,
2707 &omap54xx_l3_main_2__dss,
2708 &omap54xx_l3_main_2__dss_dispc,
2709 &omap54xx_l3_main_2__dss_dsi1_a,
2710 &omap54xx_l3_main_2__dss_dsi1_c,
2711 &omap54xx_l3_main_2__dss_hdmi,
2712 &omap54xx_l3_main_2__dss_rfbi,
2713 &omap54xx_mpu__emif1,
2714 &omap54xx_mpu__emif2,
2715 &omap54xx_l4_wkup__gpio1,
2716 &omap54xx_l4_per__gpio2,
2717 &omap54xx_l4_per__gpio3,
2718 &omap54xx_l4_per__gpio4,
2719 &omap54xx_l4_per__gpio5,
2720 &omap54xx_l4_per__gpio6,
2721 &omap54xx_l4_per__gpio7,
2722 &omap54xx_l4_per__gpio8,
2723 &omap54xx_l4_per__i2c1,
2724 &omap54xx_l4_per__i2c2,
2725 &omap54xx_l4_per__i2c3,
2726 &omap54xx_l4_per__i2c4,
2727 &omap54xx_l4_per__i2c5,
2728 &omap54xx_l3_main_2__mmu_ipu,
2729 &omap54xx_l4_wkup__kbd,
2730 &omap54xx_l4_cfg__mailbox,
2731 &omap54xx_l4_abe__mcbsp1,
2732 &omap54xx_l4_abe__mcbsp2,
2733 &omap54xx_l4_abe__mcbsp3,
2734 &omap54xx_l4_abe__mcpdm,
2735 &omap54xx_l4_per__mcspi1,
2736 &omap54xx_l4_per__mcspi2,
2737 &omap54xx_l4_per__mcspi3,
2738 &omap54xx_l4_per__mcspi4,
2739 &omap54xx_l4_per__mmc1,
2740 &omap54xx_l4_per__mmc2,
2741 &omap54xx_l4_per__mmc3,
2742 &omap54xx_l4_per__mmc4,
2743 &omap54xx_l4_per__mmc5,
2744 &omap54xx_l4_cfg__mpu,
2745 &omap54xx_l4_cfg__spinlock,
2746 &omap54xx_l4_cfg__ocp2scp1,
2747 &omap54xx_l4_wkup__timer1,
2748 &omap54xx_l4_per__timer2,
2749 &omap54xx_l4_per__timer3,
2750 &omap54xx_l4_per__timer4,
2751 &omap54xx_l4_abe__timer5,
2752 &omap54xx_l4_abe__timer6,
2753 &omap54xx_l4_abe__timer7,
2754 &omap54xx_l4_abe__timer8,
2755 &omap54xx_l4_per__timer9,
2756 &omap54xx_l4_per__timer10,
2757 &omap54xx_l4_per__timer11,
2758 &omap54xx_l4_per__uart1,
2759 &omap54xx_l4_per__uart2,
2760 &omap54xx_l4_per__uart3,
2761 &omap54xx_l4_per__uart4,
2762 &omap54xx_l4_per__uart5,
2763 &omap54xx_l4_per__uart6,
2764 &omap54xx_l4_cfg__usb_host_hs,
2765 &omap54xx_l4_cfg__usb_tll_hs,
2766 &omap54xx_l4_cfg__usb_otg_ss,
2767 &omap54xx_l4_wkup__wd_timer2,
2768 NULL,
2771 int __init omap54xx_hwmod_init(void)
2773 omap_hwmod_init();
2774 return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs);