2 * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips
4 * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
6 * This file is automatically generated from the AM33XX hardware databases.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation version 2.
11 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
12 * kind, whether express or implied; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #include <linux/i2c-omap.h>
19 #include "omap_hwmod.h"
20 #include <linux/platform_data/gpio-omap.h>
21 #include <linux/platform_data/spi-omap2-mcspi.h>
23 #include "omap_hwmod_common_data.h"
28 #include "prm-regbits-33xx.h"
41 static struct omap_hwmod_class_sysconfig am33xx_emif_sysc
= {
45 static struct omap_hwmod_class am33xx_emif_hwmod_class
= {
47 .sysc
= &am33xx_emif_sysc
,
51 static struct omap_hwmod am33xx_emif_hwmod
= {
53 .class = &am33xx_emif_hwmod_class
,
54 .clkdm_name
= "l3_clkdm",
55 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
56 .main_clk
= "dpll_ddr_m2_div2_ck",
59 .clkctrl_offs
= AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET
,
60 .modulemode
= MODULEMODE_SWCTRL
,
67 * instance(s): l3_main, l3_s, l3_instr
69 static struct omap_hwmod_class am33xx_l3_hwmod_class
= {
73 static struct omap_hwmod am33xx_l3_main_hwmod
= {
75 .class = &am33xx_l3_hwmod_class
,
76 .clkdm_name
= "l3_clkdm",
77 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
78 .main_clk
= "l3_gclk",
81 .clkctrl_offs
= AM33XX_CM_PER_L3_CLKCTRL_OFFSET
,
82 .modulemode
= MODULEMODE_SWCTRL
,
88 static struct omap_hwmod am33xx_l3_s_hwmod
= {
90 .class = &am33xx_l3_hwmod_class
,
91 .clkdm_name
= "l3s_clkdm",
95 static struct omap_hwmod am33xx_l3_instr_hwmod
= {
97 .class = &am33xx_l3_hwmod_class
,
98 .clkdm_name
= "l3_clkdm",
99 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
100 .main_clk
= "l3_gclk",
103 .clkctrl_offs
= AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET
,
104 .modulemode
= MODULEMODE_SWCTRL
,
111 * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw
113 static struct omap_hwmod_class am33xx_l4_hwmod_class
= {
118 static struct omap_hwmod am33xx_l4_ls_hwmod
= {
120 .class = &am33xx_l4_hwmod_class
,
121 .clkdm_name
= "l4ls_clkdm",
122 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
123 .main_clk
= "l4ls_gclk",
126 .clkctrl_offs
= AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET
,
127 .modulemode
= MODULEMODE_SWCTRL
,
133 static struct omap_hwmod am33xx_l4_hs_hwmod
= {
135 .class = &am33xx_l4_hwmod_class
,
136 .clkdm_name
= "l4hs_clkdm",
137 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
138 .main_clk
= "l4hs_gclk",
141 .clkctrl_offs
= AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET
,
142 .modulemode
= MODULEMODE_SWCTRL
,
149 static struct omap_hwmod am33xx_l4_wkup_hwmod
= {
151 .class = &am33xx_l4_hwmod_class
,
152 .clkdm_name
= "l4_wkup_clkdm",
153 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
156 .clkctrl_offs
= AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET
,
157 .modulemode
= MODULEMODE_SWCTRL
,
165 static struct omap_hwmod_class am33xx_mpu_hwmod_class
= {
169 static struct omap_hwmod am33xx_mpu_hwmod
= {
171 .class = &am33xx_mpu_hwmod_class
,
172 .clkdm_name
= "mpu_clkdm",
173 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
174 .main_clk
= "dpll_mpu_m2_ck",
177 .clkctrl_offs
= AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET
,
178 .modulemode
= MODULEMODE_SWCTRL
,
185 * Wakeup controller sub-system under wakeup domain
187 static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class
= {
191 static struct omap_hwmod_rst_info am33xx_wkup_m3_resets
[] = {
192 { .name
= "wkup_m3", .rst_shift
= 3, .st_shift
= 5 },
196 static struct omap_hwmod am33xx_wkup_m3_hwmod
= {
198 .class = &am33xx_wkup_m3_hwmod_class
,
199 .clkdm_name
= "l4_wkup_aon_clkdm",
200 /* Keep hardreset asserted */
201 .flags
= HWMOD_INIT_NO_RESET
| HWMOD_NO_IDLEST
,
202 .main_clk
= "dpll_core_m4_div2_ck",
205 .clkctrl_offs
= AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET
,
206 .rstctrl_offs
= AM33XX_RM_WKUP_RSTCTRL_OFFSET
,
207 .rstst_offs
= AM33XX_RM_WKUP_RSTST_OFFSET
,
208 .modulemode
= MODULEMODE_SWCTRL
,
211 .rst_lines
= am33xx_wkup_m3_resets
,
212 .rst_lines_cnt
= ARRAY_SIZE(am33xx_wkup_m3_resets
),
217 * Programmable Real-Time Unit and Industrial Communication Subsystem
219 static struct omap_hwmod_class am33xx_pruss_hwmod_class
= {
223 static struct omap_hwmod_rst_info am33xx_pruss_resets
[] = {
224 { .name
= "pruss", .rst_shift
= 1 },
228 /* Pseudo hwmod for reset control purpose only */
229 static struct omap_hwmod am33xx_pruss_hwmod
= {
231 .class = &am33xx_pruss_hwmod_class
,
232 .clkdm_name
= "pruss_ocp_clkdm",
233 .main_clk
= "pruss_ocp_gclk",
236 .clkctrl_offs
= AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET
,
237 .rstctrl_offs
= AM33XX_RM_PER_RSTCTRL_OFFSET
,
238 .modulemode
= MODULEMODE_SWCTRL
,
241 .rst_lines
= am33xx_pruss_resets
,
242 .rst_lines_cnt
= ARRAY_SIZE(am33xx_pruss_resets
),
246 /* Pseudo hwmod for reset control purpose only */
247 static struct omap_hwmod_class am33xx_gfx_hwmod_class
= {
251 static struct omap_hwmod_rst_info am33xx_gfx_resets
[] = {
252 { .name
= "gfx", .rst_shift
= 0, .st_shift
= 0},
255 static struct omap_hwmod am33xx_gfx_hwmod
= {
257 .class = &am33xx_gfx_hwmod_class
,
258 .clkdm_name
= "gfx_l3_clkdm",
259 .main_clk
= "gfx_fck_div_ck",
262 .clkctrl_offs
= AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET
,
263 .rstctrl_offs
= AM33XX_RM_GFX_RSTCTRL_OFFSET
,
264 .rstst_offs
= AM33XX_RM_GFX_RSTST_OFFSET
,
265 .modulemode
= MODULEMODE_SWCTRL
,
268 .rst_lines
= am33xx_gfx_resets
,
269 .rst_lines_cnt
= ARRAY_SIZE(am33xx_gfx_resets
),
274 * power and reset manager (whole prcm infrastructure)
276 static struct omap_hwmod_class am33xx_prcm_hwmod_class
= {
281 static struct omap_hwmod am33xx_prcm_hwmod
= {
283 .class = &am33xx_prcm_hwmod_class
,
284 .clkdm_name
= "l4_wkup_clkdm",
289 * TouchScreen Controller (Anolog-To-Digital Converter)
291 static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc
= {
294 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
295 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
297 .sysc_fields
= &omap_hwmod_sysc_type2
,
300 static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class
= {
302 .sysc
= &am33xx_adc_tsc_sysc
,
305 static struct omap_hwmod am33xx_adc_tsc_hwmod
= {
307 .class = &am33xx_adc_tsc_hwmod_class
,
308 .clkdm_name
= "l4_wkup_clkdm",
309 .main_clk
= "adc_tsc_fck",
312 .clkctrl_offs
= AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET
,
313 .modulemode
= MODULEMODE_SWCTRL
,
319 * Modules omap_hwmod structures
321 * The following IPs are excluded for the moment because:
322 * - They do not need an explicit SW control using omap_hwmod API.
323 * - They still need to be validated with the driver
324 * properly adapted to omap_hwmod / omap_device
326 * - cEFUSE (doesn't fall under any ocp_if)
335 static struct omap_hwmod_class am33xx_cefuse_hwmod_class
= {
339 static struct omap_hwmod am33xx_cefuse_hwmod
= {
341 .class = &am33xx_cefuse_hwmod_class
,
342 .clkdm_name
= "l4_cefuse_clkdm",
343 .main_clk
= "cefuse_fck",
346 .clkctrl_offs
= AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET
,
347 .modulemode
= MODULEMODE_SWCTRL
,
355 static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class
= {
359 static struct omap_hwmod am33xx_clkdiv32k_hwmod
= {
361 .class = &am33xx_clkdiv32k_hwmod_class
,
362 .clkdm_name
= "clk_24mhz_clkdm",
363 .main_clk
= "clkdiv32k_ick",
366 .clkctrl_offs
= AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET
,
367 .modulemode
= MODULEMODE_SWCTRL
,
376 static struct omap_hwmod_class am33xx_debugss_hwmod_class
= {
380 static struct omap_hwmod am33xx_debugss_hwmod
= {
382 .class = &am33xx_debugss_hwmod_class
,
383 .clkdm_name
= "l3_aon_clkdm",
384 .main_clk
= "debugss_ick",
387 .clkctrl_offs
= AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET
,
388 .modulemode
= MODULEMODE_SWCTRL
,
394 static struct omap_hwmod_class am33xx_ocpwp_hwmod_class
= {
398 static struct omap_hwmod am33xx_ocpwp_hwmod
= {
400 .class = &am33xx_ocpwp_hwmod_class
,
401 .clkdm_name
= "l4ls_clkdm",
402 .main_clk
= "l4ls_gclk",
405 .clkctrl_offs
= AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET
,
406 .modulemode
= MODULEMODE_SWCTRL
,
415 static struct omap_hwmod_class_sysconfig am33xx_aes0_sysc
= {
419 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
422 static struct omap_hwmod_class am33xx_aes0_hwmod_class
= {
424 .sysc
= &am33xx_aes0_sysc
,
427 static struct omap_hwmod am33xx_aes0_hwmod
= {
429 .class = &am33xx_aes0_hwmod_class
,
430 .clkdm_name
= "l3_clkdm",
431 .main_clk
= "aes0_fck",
434 .clkctrl_offs
= AM33XX_CM_PER_AES0_CLKCTRL_OFFSET
,
435 .modulemode
= MODULEMODE_SWCTRL
,
440 /* sha0 HIB2 (the 'P' (public) device) */
441 static struct omap_hwmod_class_sysconfig am33xx_sha0_sysc
= {
445 .sysc_flags
= SYSS_HAS_RESET_STATUS
,
448 static struct omap_hwmod_class am33xx_sha0_hwmod_class
= {
450 .sysc
= &am33xx_sha0_sysc
,
453 static struct omap_hwmod am33xx_sha0_hwmod
= {
455 .class = &am33xx_sha0_hwmod_class
,
456 .clkdm_name
= "l3_clkdm",
457 .main_clk
= "l3_gclk",
460 .clkctrl_offs
= AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET
,
461 .modulemode
= MODULEMODE_SWCTRL
,
467 static struct omap_hwmod_class am33xx_ocmcram_hwmod_class
= {
471 static struct omap_hwmod am33xx_ocmcram_hwmod
= {
473 .class = &am33xx_ocmcram_hwmod_class
,
474 .clkdm_name
= "l3_clkdm",
475 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
476 .main_clk
= "l3_gclk",
479 .clkctrl_offs
= AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET
,
480 .modulemode
= MODULEMODE_SWCTRL
,
485 /* 'smartreflex' class */
486 static struct omap_hwmod_class am33xx_smartreflex_hwmod_class
= {
487 .name
= "smartreflex",
491 static struct omap_hwmod am33xx_smartreflex0_hwmod
= {
492 .name
= "smartreflex0",
493 .class = &am33xx_smartreflex_hwmod_class
,
494 .clkdm_name
= "l4_wkup_clkdm",
495 .main_clk
= "smartreflex0_fck",
498 .clkctrl_offs
= AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET
,
499 .modulemode
= MODULEMODE_SWCTRL
,
505 static struct omap_hwmod am33xx_smartreflex1_hwmod
= {
506 .name
= "smartreflex1",
507 .class = &am33xx_smartreflex_hwmod_class
,
508 .clkdm_name
= "l4_wkup_clkdm",
509 .main_clk
= "smartreflex1_fck",
512 .clkctrl_offs
= AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET
,
513 .modulemode
= MODULEMODE_SWCTRL
,
519 * 'control' module class
521 static struct omap_hwmod_class am33xx_control_hwmod_class
= {
525 static struct omap_hwmod am33xx_control_hwmod
= {
527 .class = &am33xx_control_hwmod_class
,
528 .clkdm_name
= "l4_wkup_clkdm",
529 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
530 .main_clk
= "dpll_core_m4_div2_ck",
533 .clkctrl_offs
= AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET
,
534 .modulemode
= MODULEMODE_SWCTRL
,
541 * cpsw/cpgmac sub system
543 static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc
= {
547 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
548 SYSS_HAS_RESET_STATUS
),
549 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| MSTANDBY_FORCE
|
551 .sysc_fields
= &omap_hwmod_sysc_type3
,
554 static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class
= {
556 .sysc
= &am33xx_cpgmac_sysc
,
559 static struct omap_hwmod am33xx_cpgmac0_hwmod
= {
561 .class = &am33xx_cpgmac0_hwmod_class
,
562 .clkdm_name
= "cpsw_125mhz_clkdm",
563 .flags
= (HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
),
564 .main_clk
= "cpsw_125mhz_gclk",
567 .clkctrl_offs
= AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET
,
568 .modulemode
= MODULEMODE_SWCTRL
,
576 static struct omap_hwmod_class am33xx_mdio_hwmod_class
= {
577 .name
= "davinci_mdio",
580 static struct omap_hwmod am33xx_mdio_hwmod
= {
581 .name
= "davinci_mdio",
582 .class = &am33xx_mdio_hwmod_class
,
583 .clkdm_name
= "cpsw_125mhz_clkdm",
584 .main_clk
= "cpsw_125mhz_gclk",
590 static struct omap_hwmod_class am33xx_dcan_hwmod_class
= {
595 static struct omap_hwmod am33xx_dcan0_hwmod
= {
597 .class = &am33xx_dcan_hwmod_class
,
598 .clkdm_name
= "l4ls_clkdm",
599 .main_clk
= "dcan0_fck",
602 .clkctrl_offs
= AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET
,
603 .modulemode
= MODULEMODE_SWCTRL
,
609 static struct omap_hwmod am33xx_dcan1_hwmod
= {
611 .class = &am33xx_dcan_hwmod_class
,
612 .clkdm_name
= "l4ls_clkdm",
613 .main_clk
= "dcan1_fck",
616 .clkctrl_offs
= AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET
,
617 .modulemode
= MODULEMODE_SWCTRL
,
623 static struct omap_hwmod_class_sysconfig am33xx_elm_sysc
= {
627 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
628 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
629 SYSS_HAS_RESET_STATUS
),
630 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
631 .sysc_fields
= &omap_hwmod_sysc_type1
,
634 static struct omap_hwmod_class am33xx_elm_hwmod_class
= {
636 .sysc
= &am33xx_elm_sysc
,
639 static struct omap_hwmod am33xx_elm_hwmod
= {
641 .class = &am33xx_elm_hwmod_class
,
642 .clkdm_name
= "l4ls_clkdm",
643 .main_clk
= "l4ls_gclk",
646 .clkctrl_offs
= AM33XX_CM_PER_ELM_CLKCTRL_OFFSET
,
647 .modulemode
= MODULEMODE_SWCTRL
,
653 static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc
= {
656 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
),
657 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
658 SIDLE_SMART_WKUP
| MSTANDBY_FORCE
| MSTANDBY_NO
|
659 MSTANDBY_SMART
| MSTANDBY_SMART_WKUP
),
660 .sysc_fields
= &omap_hwmod_sysc_type2
,
663 static struct omap_hwmod_class am33xx_epwmss_hwmod_class
= {
665 .sysc
= &am33xx_epwmss_sysc
,
668 static struct omap_hwmod_class am33xx_ecap_hwmod_class
= {
672 static struct omap_hwmod_class am33xx_eqep_hwmod_class
= {
676 static struct omap_hwmod_class am33xx_ehrpwm_hwmod_class
= {
681 static struct omap_hwmod am33xx_epwmss0_hwmod
= {
683 .class = &am33xx_epwmss_hwmod_class
,
684 .clkdm_name
= "l4ls_clkdm",
685 .main_clk
= "l4ls_gclk",
688 .clkctrl_offs
= AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET
,
689 .modulemode
= MODULEMODE_SWCTRL
,
695 static struct omap_hwmod am33xx_ecap0_hwmod
= {
697 .class = &am33xx_ecap_hwmod_class
,
698 .clkdm_name
= "l4ls_clkdm",
699 .main_clk
= "l4ls_gclk",
703 static struct omap_hwmod am33xx_eqep0_hwmod
= {
705 .class = &am33xx_eqep_hwmod_class
,
706 .clkdm_name
= "l4ls_clkdm",
707 .main_clk
= "l4ls_gclk",
711 static struct omap_hwmod am33xx_ehrpwm0_hwmod
= {
713 .class = &am33xx_ehrpwm_hwmod_class
,
714 .clkdm_name
= "l4ls_clkdm",
715 .main_clk
= "l4ls_gclk",
719 static struct omap_hwmod am33xx_epwmss1_hwmod
= {
721 .class = &am33xx_epwmss_hwmod_class
,
722 .clkdm_name
= "l4ls_clkdm",
723 .main_clk
= "l4ls_gclk",
726 .clkctrl_offs
= AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET
,
727 .modulemode
= MODULEMODE_SWCTRL
,
733 static struct omap_hwmod am33xx_ecap1_hwmod
= {
735 .class = &am33xx_ecap_hwmod_class
,
736 .clkdm_name
= "l4ls_clkdm",
737 .main_clk
= "l4ls_gclk",
741 static struct omap_hwmod am33xx_eqep1_hwmod
= {
743 .class = &am33xx_eqep_hwmod_class
,
744 .clkdm_name
= "l4ls_clkdm",
745 .main_clk
= "l4ls_gclk",
749 static struct omap_hwmod am33xx_ehrpwm1_hwmod
= {
751 .class = &am33xx_ehrpwm_hwmod_class
,
752 .clkdm_name
= "l4ls_clkdm",
753 .main_clk
= "l4ls_gclk",
757 static struct omap_hwmod am33xx_epwmss2_hwmod
= {
759 .class = &am33xx_epwmss_hwmod_class
,
760 .clkdm_name
= "l4ls_clkdm",
761 .main_clk
= "l4ls_gclk",
764 .clkctrl_offs
= AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET
,
765 .modulemode
= MODULEMODE_SWCTRL
,
771 static struct omap_hwmod am33xx_ecap2_hwmod
= {
773 .class = &am33xx_ecap_hwmod_class
,
774 .clkdm_name
= "l4ls_clkdm",
775 .main_clk
= "l4ls_gclk",
779 static struct omap_hwmod am33xx_eqep2_hwmod
= {
781 .class = &am33xx_eqep_hwmod_class
,
782 .clkdm_name
= "l4ls_clkdm",
783 .main_clk
= "l4ls_gclk",
787 static struct omap_hwmod am33xx_ehrpwm2_hwmod
= {
789 .class = &am33xx_ehrpwm_hwmod_class
,
790 .clkdm_name
= "l4ls_clkdm",
791 .main_clk
= "l4ls_gclk",
795 * 'gpio' class: for gpio 0,1,2,3
797 static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc
= {
801 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
802 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
803 SYSS_HAS_RESET_STATUS
),
804 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
806 .sysc_fields
= &omap_hwmod_sysc_type1
,
809 static struct omap_hwmod_class am33xx_gpio_hwmod_class
= {
811 .sysc
= &am33xx_gpio_sysc
,
815 static struct omap_gpio_dev_attr gpio_dev_attr
= {
821 static struct omap_hwmod_opt_clk gpio0_opt_clks
[] = {
822 { .role
= "dbclk", .clk
= "gpio0_dbclk" },
825 static struct omap_hwmod am33xx_gpio0_hwmod
= {
827 .class = &am33xx_gpio_hwmod_class
,
828 .clkdm_name
= "l4_wkup_clkdm",
829 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
830 .main_clk
= "dpll_core_m4_div2_ck",
833 .clkctrl_offs
= AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET
,
834 .modulemode
= MODULEMODE_SWCTRL
,
837 .opt_clks
= gpio0_opt_clks
,
838 .opt_clks_cnt
= ARRAY_SIZE(gpio0_opt_clks
),
839 .dev_attr
= &gpio_dev_attr
,
843 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
844 { .role
= "dbclk", .clk
= "gpio1_dbclk" },
847 static struct omap_hwmod am33xx_gpio1_hwmod
= {
849 .class = &am33xx_gpio_hwmod_class
,
850 .clkdm_name
= "l4ls_clkdm",
851 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
852 .main_clk
= "l4ls_gclk",
855 .clkctrl_offs
= AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET
,
856 .modulemode
= MODULEMODE_SWCTRL
,
859 .opt_clks
= gpio1_opt_clks
,
860 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
861 .dev_attr
= &gpio_dev_attr
,
865 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
866 { .role
= "dbclk", .clk
= "gpio2_dbclk" },
869 static struct omap_hwmod am33xx_gpio2_hwmod
= {
871 .class = &am33xx_gpio_hwmod_class
,
872 .clkdm_name
= "l4ls_clkdm",
873 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
874 .main_clk
= "l4ls_gclk",
877 .clkctrl_offs
= AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET
,
878 .modulemode
= MODULEMODE_SWCTRL
,
881 .opt_clks
= gpio2_opt_clks
,
882 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
883 .dev_attr
= &gpio_dev_attr
,
887 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
888 { .role
= "dbclk", .clk
= "gpio3_dbclk" },
891 static struct omap_hwmod am33xx_gpio3_hwmod
= {
893 .class = &am33xx_gpio_hwmod_class
,
894 .clkdm_name
= "l4ls_clkdm",
895 .flags
= HWMOD_CONTROL_OPT_CLKS_IN_RESET
,
896 .main_clk
= "l4ls_gclk",
899 .clkctrl_offs
= AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET
,
900 .modulemode
= MODULEMODE_SWCTRL
,
903 .opt_clks
= gpio3_opt_clks
,
904 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
905 .dev_attr
= &gpio_dev_attr
,
909 static struct omap_hwmod_class_sysconfig gpmc_sysc
= {
913 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_SIDLEMODE
|
914 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
915 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
916 .sysc_fields
= &omap_hwmod_sysc_type1
,
919 static struct omap_hwmod_class am33xx_gpmc_hwmod_class
= {
924 static struct omap_hwmod am33xx_gpmc_hwmod
= {
926 .class = &am33xx_gpmc_hwmod_class
,
927 .clkdm_name
= "l3s_clkdm",
928 .flags
= (HWMOD_INIT_NO_IDLE
| HWMOD_INIT_NO_RESET
),
929 .main_clk
= "l3s_gclk",
932 .clkctrl_offs
= AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET
,
933 .modulemode
= MODULEMODE_SWCTRL
,
939 static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc
= {
942 .sysc_flags
= (SYSC_HAS_AUTOIDLE
| SYSC_HAS_CLOCKACTIVITY
|
943 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
944 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
945 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
947 .sysc_fields
= &omap_hwmod_sysc_type1
,
950 static struct omap_hwmod_class i2c_class
= {
952 .sysc
= &am33xx_i2c_sysc
,
953 .rev
= OMAP_I2C_IP_VERSION_2
,
954 .reset
= &omap_i2c_reset
,
957 static struct omap_i2c_dev_attr i2c_dev_attr
= {
958 .flags
= OMAP_I2C_FLAG_BUS_SHIFT_NONE
,
962 static struct omap_hwmod am33xx_i2c1_hwmod
= {
965 .clkdm_name
= "l4_wkup_clkdm",
966 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
967 .main_clk
= "dpll_per_m2_div4_wkupdm_ck",
970 .clkctrl_offs
= AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET
,
971 .modulemode
= MODULEMODE_SWCTRL
,
974 .dev_attr
= &i2c_dev_attr
,
978 static struct omap_hwmod am33xx_i2c2_hwmod
= {
981 .clkdm_name
= "l4ls_clkdm",
982 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
983 .main_clk
= "dpll_per_m2_div4_ck",
986 .clkctrl_offs
= AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET
,
987 .modulemode
= MODULEMODE_SWCTRL
,
990 .dev_attr
= &i2c_dev_attr
,
994 static struct omap_hwmod am33xx_i2c3_hwmod
= {
997 .clkdm_name
= "l4ls_clkdm",
998 .flags
= HWMOD_16BIT_REG
| HWMOD_SET_DEFAULT_CLOCKACT
,
999 .main_clk
= "dpll_per_m2_div4_ck",
1002 .clkctrl_offs
= AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET
,
1003 .modulemode
= MODULEMODE_SWCTRL
,
1006 .dev_attr
= &i2c_dev_attr
,
1011 static struct omap_hwmod_class_sysconfig lcdc_sysc
= {
1014 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
),
1015 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1016 .sysc_fields
= &omap_hwmod_sysc_type2
,
1019 static struct omap_hwmod_class am33xx_lcdc_hwmod_class
= {
1024 static struct omap_hwmod am33xx_lcdc_hwmod
= {
1026 .class = &am33xx_lcdc_hwmod_class
,
1027 .clkdm_name
= "lcdc_clkdm",
1028 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1029 .main_clk
= "lcd_gclk",
1032 .clkctrl_offs
= AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET
,
1033 .modulemode
= MODULEMODE_SWCTRL
,
1040 * mailbox module allowing communication between the on-chip processors using a
1041 * queued mailbox-interrupt mechanism.
1043 static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc
= {
1045 .sysc_offs
= 0x0010,
1046 .sysc_flags
= (SYSC_HAS_RESET_STATUS
| SYSC_HAS_SIDLEMODE
|
1047 SYSC_HAS_SOFTRESET
),
1048 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1049 .sysc_fields
= &omap_hwmod_sysc_type2
,
1052 static struct omap_hwmod_class am33xx_mailbox_hwmod_class
= {
1054 .sysc
= &am33xx_mailbox_sysc
,
1057 static struct omap_hwmod am33xx_mailbox_hwmod
= {
1059 .class = &am33xx_mailbox_hwmod_class
,
1060 .clkdm_name
= "l4ls_clkdm",
1061 .main_clk
= "l4ls_gclk",
1064 .clkctrl_offs
= AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET
,
1065 .modulemode
= MODULEMODE_SWCTRL
,
1073 static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc
= {
1076 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1077 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1078 .sysc_fields
= &omap_hwmod_sysc_type3
,
1081 static struct omap_hwmod_class am33xx_mcasp_hwmod_class
= {
1083 .sysc
= &am33xx_mcasp_sysc
,
1087 static struct omap_hwmod am33xx_mcasp0_hwmod
= {
1089 .class = &am33xx_mcasp_hwmod_class
,
1090 .clkdm_name
= "l3s_clkdm",
1091 .main_clk
= "mcasp0_fck",
1094 .clkctrl_offs
= AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET
,
1095 .modulemode
= MODULEMODE_SWCTRL
,
1101 static struct omap_hwmod am33xx_mcasp1_hwmod
= {
1103 .class = &am33xx_mcasp_hwmod_class
,
1104 .clkdm_name
= "l3s_clkdm",
1105 .main_clk
= "mcasp1_fck",
1108 .clkctrl_offs
= AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET
,
1109 .modulemode
= MODULEMODE_SWCTRL
,
1115 static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc
= {
1119 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1120 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1121 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
1122 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1123 .sysc_fields
= &omap_hwmod_sysc_type1
,
1126 static struct omap_hwmod_class am33xx_mmc_hwmod_class
= {
1128 .sysc
= &am33xx_mmc_sysc
,
1132 static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr
= {
1133 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1136 static struct omap_hwmod am33xx_mmc0_hwmod
= {
1138 .class = &am33xx_mmc_hwmod_class
,
1139 .clkdm_name
= "l4ls_clkdm",
1140 .main_clk
= "mmc_clk",
1143 .clkctrl_offs
= AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET
,
1144 .modulemode
= MODULEMODE_SWCTRL
,
1147 .dev_attr
= &am33xx_mmc0_dev_attr
,
1151 static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr
= {
1152 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1155 static struct omap_hwmod am33xx_mmc1_hwmod
= {
1157 .class = &am33xx_mmc_hwmod_class
,
1158 .clkdm_name
= "l4ls_clkdm",
1159 .main_clk
= "mmc_clk",
1162 .clkctrl_offs
= AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET
,
1163 .modulemode
= MODULEMODE_SWCTRL
,
1166 .dev_attr
= &am33xx_mmc1_dev_attr
,
1170 static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr
= {
1171 .flags
= OMAP_HSMMC_SUPPORTS_DUAL_VOLT
,
1173 static struct omap_hwmod am33xx_mmc2_hwmod
= {
1175 .class = &am33xx_mmc_hwmod_class
,
1176 .clkdm_name
= "l3s_clkdm",
1177 .main_clk
= "mmc_clk",
1180 .clkctrl_offs
= AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET
,
1181 .modulemode
= MODULEMODE_SWCTRL
,
1184 .dev_attr
= &am33xx_mmc2_dev_attr
,
1191 static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc
= {
1193 .sysc_offs
= 0x0078,
1194 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
1195 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
|
1196 SIDLE_SMART
| SIDLE_SMART_WKUP
),
1197 .sysc_fields
= &omap_hwmod_sysc_type3
,
1200 static struct omap_hwmod_class am33xx_rtc_hwmod_class
= {
1202 .sysc
= &am33xx_rtc_sysc
,
1205 static struct omap_hwmod am33xx_rtc_hwmod
= {
1207 .class = &am33xx_rtc_hwmod_class
,
1208 .clkdm_name
= "l4_rtc_clkdm",
1209 .main_clk
= "clk_32768_ck",
1212 .clkctrl_offs
= AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET
,
1213 .modulemode
= MODULEMODE_SWCTRL
,
1219 static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc
= {
1221 .sysc_offs
= 0x0110,
1222 .syss_offs
= 0x0114,
1223 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1224 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
1225 SYSS_HAS_RESET_STATUS
),
1226 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1227 .sysc_fields
= &omap_hwmod_sysc_type1
,
1230 static struct omap_hwmod_class am33xx_spi_hwmod_class
= {
1232 .sysc
= &am33xx_mcspi_sysc
,
1233 .rev
= OMAP4_MCSPI_REV
,
1237 static struct omap2_mcspi_dev_attr mcspi_attrib
= {
1238 .num_chipselect
= 2,
1240 static struct omap_hwmod am33xx_spi0_hwmod
= {
1242 .class = &am33xx_spi_hwmod_class
,
1243 .clkdm_name
= "l4ls_clkdm",
1244 .main_clk
= "dpll_per_m2_div4_ck",
1247 .clkctrl_offs
= AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET
,
1248 .modulemode
= MODULEMODE_SWCTRL
,
1251 .dev_attr
= &mcspi_attrib
,
1255 static struct omap_hwmod am33xx_spi1_hwmod
= {
1257 .class = &am33xx_spi_hwmod_class
,
1258 .clkdm_name
= "l4ls_clkdm",
1259 .main_clk
= "dpll_per_m2_div4_ck",
1262 .clkctrl_offs
= AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET
,
1263 .modulemode
= MODULEMODE_SWCTRL
,
1266 .dev_attr
= &mcspi_attrib
,
1271 * spinlock provides hardware assistance for synchronizing the
1272 * processes running on multiple processors
1274 static struct omap_hwmod_class am33xx_spinlock_hwmod_class
= {
1278 static struct omap_hwmod am33xx_spinlock_hwmod
= {
1280 .class = &am33xx_spinlock_hwmod_class
,
1281 .clkdm_name
= "l4ls_clkdm",
1282 .main_clk
= "l4ls_gclk",
1285 .clkctrl_offs
= AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET
,
1286 .modulemode
= MODULEMODE_SWCTRL
,
1291 /* 'timer 2-7' class */
1292 static struct omap_hwmod_class_sysconfig am33xx_timer_sysc
= {
1294 .sysc_offs
= 0x0010,
1295 .syss_offs
= 0x0014,
1296 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
),
1297 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1299 .sysc_fields
= &omap_hwmod_sysc_type2
,
1302 static struct omap_hwmod_class am33xx_timer_hwmod_class
= {
1304 .sysc
= &am33xx_timer_sysc
,
1308 static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc
= {
1310 .sysc_offs
= 0x0010,
1311 .syss_offs
= 0x0014,
1312 .sysc_flags
= (SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1313 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
1314 SYSS_HAS_RESET_STATUS
),
1315 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
1316 .sysc_fields
= &omap_hwmod_sysc_type1
,
1319 static struct omap_hwmod_class am33xx_timer1ms_hwmod_class
= {
1321 .sysc
= &am33xx_timer1ms_sysc
,
1324 static struct omap_hwmod am33xx_timer1_hwmod
= {
1326 .class = &am33xx_timer1ms_hwmod_class
,
1327 .clkdm_name
= "l4_wkup_clkdm",
1328 .main_clk
= "timer1_fck",
1331 .clkctrl_offs
= AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET
,
1332 .modulemode
= MODULEMODE_SWCTRL
,
1337 static struct omap_hwmod am33xx_timer2_hwmod
= {
1339 .class = &am33xx_timer_hwmod_class
,
1340 .clkdm_name
= "l4ls_clkdm",
1341 .main_clk
= "timer2_fck",
1344 .clkctrl_offs
= AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET
,
1345 .modulemode
= MODULEMODE_SWCTRL
,
1350 static struct omap_hwmod am33xx_timer3_hwmod
= {
1352 .class = &am33xx_timer_hwmod_class
,
1353 .clkdm_name
= "l4ls_clkdm",
1354 .main_clk
= "timer3_fck",
1357 .clkctrl_offs
= AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET
,
1358 .modulemode
= MODULEMODE_SWCTRL
,
1363 static struct omap_hwmod am33xx_timer4_hwmod
= {
1365 .class = &am33xx_timer_hwmod_class
,
1366 .clkdm_name
= "l4ls_clkdm",
1367 .main_clk
= "timer4_fck",
1370 .clkctrl_offs
= AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET
,
1371 .modulemode
= MODULEMODE_SWCTRL
,
1376 static struct omap_hwmod am33xx_timer5_hwmod
= {
1378 .class = &am33xx_timer_hwmod_class
,
1379 .clkdm_name
= "l4ls_clkdm",
1380 .main_clk
= "timer5_fck",
1383 .clkctrl_offs
= AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET
,
1384 .modulemode
= MODULEMODE_SWCTRL
,
1389 static struct omap_hwmod am33xx_timer6_hwmod
= {
1391 .class = &am33xx_timer_hwmod_class
,
1392 .clkdm_name
= "l4ls_clkdm",
1393 .main_clk
= "timer6_fck",
1396 .clkctrl_offs
= AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET
,
1397 .modulemode
= MODULEMODE_SWCTRL
,
1402 static struct omap_hwmod am33xx_timer7_hwmod
= {
1404 .class = &am33xx_timer_hwmod_class
,
1405 .clkdm_name
= "l4ls_clkdm",
1406 .main_clk
= "timer7_fck",
1409 .clkctrl_offs
= AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET
,
1410 .modulemode
= MODULEMODE_SWCTRL
,
1416 static struct omap_hwmod_class am33xx_tpcc_hwmod_class
= {
1420 static struct omap_hwmod am33xx_tpcc_hwmod
= {
1422 .class = &am33xx_tpcc_hwmod_class
,
1423 .clkdm_name
= "l3_clkdm",
1424 .main_clk
= "l3_gclk",
1427 .clkctrl_offs
= AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET
,
1428 .modulemode
= MODULEMODE_SWCTRL
,
1433 static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc
= {
1436 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
1437 SYSC_HAS_MIDLEMODE
),
1438 .idlemodes
= (SIDLE_FORCE
| SIDLE_SMART
| MSTANDBY_FORCE
),
1439 .sysc_fields
= &omap_hwmod_sysc_type2
,
1443 static struct omap_hwmod_class am33xx_tptc_hwmod_class
= {
1445 .sysc
= &am33xx_tptc_sysc
,
1449 static struct omap_hwmod am33xx_tptc0_hwmod
= {
1451 .class = &am33xx_tptc_hwmod_class
,
1452 .clkdm_name
= "l3_clkdm",
1453 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1454 .main_clk
= "l3_gclk",
1457 .clkctrl_offs
= AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET
,
1458 .modulemode
= MODULEMODE_SWCTRL
,
1464 static struct omap_hwmod am33xx_tptc1_hwmod
= {
1466 .class = &am33xx_tptc_hwmod_class
,
1467 .clkdm_name
= "l3_clkdm",
1468 .flags
= (HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
),
1469 .main_clk
= "l3_gclk",
1472 .clkctrl_offs
= AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET
,
1473 .modulemode
= MODULEMODE_SWCTRL
,
1479 static struct omap_hwmod am33xx_tptc2_hwmod
= {
1481 .class = &am33xx_tptc_hwmod_class
,
1482 .clkdm_name
= "l3_clkdm",
1483 .flags
= (HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
),
1484 .main_clk
= "l3_gclk",
1487 .clkctrl_offs
= AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET
,
1488 .modulemode
= MODULEMODE_SWCTRL
,
1494 static struct omap_hwmod_class_sysconfig uart_sysc
= {
1498 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_ENAWAKEUP
|
1499 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
1500 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1502 .sysc_fields
= &omap_hwmod_sysc_type1
,
1505 static struct omap_hwmod_class uart_class
= {
1511 static struct omap_hwmod am33xx_uart1_hwmod
= {
1513 .class = &uart_class
,
1514 .clkdm_name
= "l4_wkup_clkdm",
1515 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
1516 .main_clk
= "dpll_per_m2_div4_wkupdm_ck",
1519 .clkctrl_offs
= AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET
,
1520 .modulemode
= MODULEMODE_SWCTRL
,
1525 static struct omap_hwmod am33xx_uart2_hwmod
= {
1527 .class = &uart_class
,
1528 .clkdm_name
= "l4ls_clkdm",
1529 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
1530 .main_clk
= "dpll_per_m2_div4_ck",
1533 .clkctrl_offs
= AM33XX_CM_PER_UART1_CLKCTRL_OFFSET
,
1534 .modulemode
= MODULEMODE_SWCTRL
,
1540 static struct omap_hwmod am33xx_uart3_hwmod
= {
1542 .class = &uart_class
,
1543 .clkdm_name
= "l4ls_clkdm",
1544 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
1545 .main_clk
= "dpll_per_m2_div4_ck",
1548 .clkctrl_offs
= AM33XX_CM_PER_UART2_CLKCTRL_OFFSET
,
1549 .modulemode
= MODULEMODE_SWCTRL
,
1554 static struct omap_hwmod am33xx_uart4_hwmod
= {
1556 .class = &uart_class
,
1557 .clkdm_name
= "l4ls_clkdm",
1558 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
1559 .main_clk
= "dpll_per_m2_div4_ck",
1562 .clkctrl_offs
= AM33XX_CM_PER_UART3_CLKCTRL_OFFSET
,
1563 .modulemode
= MODULEMODE_SWCTRL
,
1568 static struct omap_hwmod am33xx_uart5_hwmod
= {
1570 .class = &uart_class
,
1571 .clkdm_name
= "l4ls_clkdm",
1572 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
1573 .main_clk
= "dpll_per_m2_div4_ck",
1576 .clkctrl_offs
= AM33XX_CM_PER_UART4_CLKCTRL_OFFSET
,
1577 .modulemode
= MODULEMODE_SWCTRL
,
1582 static struct omap_hwmod am33xx_uart6_hwmod
= {
1584 .class = &uart_class
,
1585 .clkdm_name
= "l4ls_clkdm",
1586 .flags
= HWMOD_SWSUP_SIDLE_ACT
,
1587 .main_clk
= "dpll_per_m2_div4_ck",
1590 .clkctrl_offs
= AM33XX_CM_PER_UART5_CLKCTRL_OFFSET
,
1591 .modulemode
= MODULEMODE_SWCTRL
,
1596 /* 'wd_timer' class */
1597 static struct omap_hwmod_class_sysconfig wdt_sysc
= {
1601 .sysc_flags
= (SYSC_HAS_EMUFREE
| SYSC_HAS_SIDLEMODE
|
1602 SYSC_HAS_SOFTRESET
| SYSS_HAS_RESET_STATUS
),
1603 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1605 .sysc_fields
= &omap_hwmod_sysc_type1
,
1608 static struct omap_hwmod_class am33xx_wd_timer_hwmod_class
= {
1611 .pre_shutdown
= &omap2_wd_timer_disable
,
1615 * XXX: device.c file uses hardcoded name for watchdog timer
1616 * driver "wd_timer2, so we are also using same name as of now...
1618 static struct omap_hwmod am33xx_wd_timer1_hwmod
= {
1619 .name
= "wd_timer2",
1620 .class = &am33xx_wd_timer_hwmod_class
,
1621 .clkdm_name
= "l4_wkup_clkdm",
1622 .flags
= HWMOD_SWSUP_SIDLE
,
1623 .main_clk
= "wdt1_fck",
1626 .clkctrl_offs
= AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET
,
1627 .modulemode
= MODULEMODE_SWCTRL
,
1634 * high-speed on-the-go universal serial bus (usb_otg) controller
1636 static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc
= {
1639 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
),
1640 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
1641 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
1642 .sysc_fields
= &omap_hwmod_sysc_type2
,
1645 static struct omap_hwmod_class am33xx_usbotg_class
= {
1647 .sysc
= &am33xx_usbhsotg_sysc
,
1650 static struct omap_hwmod am33xx_usbss_hwmod
= {
1651 .name
= "usb_otg_hs",
1652 .class = &am33xx_usbotg_class
,
1653 .clkdm_name
= "l3s_clkdm",
1654 .flags
= HWMOD_SWSUP_SIDLE
| HWMOD_SWSUP_MSTANDBY
,
1655 .main_clk
= "usbotg_fck",
1658 .clkctrl_offs
= AM33XX_CM_PER_USB0_CLKCTRL_OFFSET
,
1659 .modulemode
= MODULEMODE_SWCTRL
,
1669 static struct omap_hwmod_addr_space am33xx_emif_addrs
[] = {
1671 .pa_start
= 0x4c000000,
1672 .pa_end
= 0x4c000fff,
1673 .flags
= ADDR_TYPE_RT
1677 /* l3 main -> emif */
1678 static struct omap_hwmod_ocp_if am33xx_l3_main__emif
= {
1679 .master
= &am33xx_l3_main_hwmod
,
1680 .slave
= &am33xx_emif_hwmod
,
1681 .clk
= "dpll_core_m4_ck",
1682 .addr
= am33xx_emif_addrs
,
1683 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1686 /* mpu -> l3 main */
1687 static struct omap_hwmod_ocp_if am33xx_mpu__l3_main
= {
1688 .master
= &am33xx_mpu_hwmod
,
1689 .slave
= &am33xx_l3_main_hwmod
,
1690 .clk
= "dpll_mpu_m2_ck",
1691 .user
= OCP_USER_MPU
,
1694 /* l3 main -> l4 hs */
1695 static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs
= {
1696 .master
= &am33xx_l3_main_hwmod
,
1697 .slave
= &am33xx_l4_hs_hwmod
,
1699 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1702 /* l3 main -> l3 s */
1703 static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s
= {
1704 .master
= &am33xx_l3_main_hwmod
,
1705 .slave
= &am33xx_l3_s_hwmod
,
1707 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1710 /* l3 s -> l4 per/ls */
1711 static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls
= {
1712 .master
= &am33xx_l3_s_hwmod
,
1713 .slave
= &am33xx_l4_ls_hwmod
,
1715 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1718 /* l3 s -> l4 wkup */
1719 static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup
= {
1720 .master
= &am33xx_l3_s_hwmod
,
1721 .slave
= &am33xx_l4_wkup_hwmod
,
1723 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1726 /* l3 main -> l3 instr */
1727 static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr
= {
1728 .master
= &am33xx_l3_main_hwmod
,
1729 .slave
= &am33xx_l3_instr_hwmod
,
1731 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1735 static struct omap_hwmod_ocp_if am33xx_mpu__prcm
= {
1736 .master
= &am33xx_mpu_hwmod
,
1737 .slave
= &am33xx_prcm_hwmod
,
1738 .clk
= "dpll_mpu_m2_ck",
1739 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1742 /* l3 s -> l3 main*/
1743 static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main
= {
1744 .master
= &am33xx_l3_s_hwmod
,
1745 .slave
= &am33xx_l3_main_hwmod
,
1747 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1750 /* pru-icss -> l3 main */
1751 static struct omap_hwmod_ocp_if am33xx_pruss__l3_main
= {
1752 .master
= &am33xx_pruss_hwmod
,
1753 .slave
= &am33xx_l3_main_hwmod
,
1755 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1758 /* wkup m3 -> l4 wkup */
1759 static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup
= {
1760 .master
= &am33xx_wkup_m3_hwmod
,
1761 .slave
= &am33xx_l4_wkup_hwmod
,
1762 .clk
= "dpll_core_m4_div2_ck",
1763 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1766 /* gfx -> l3 main */
1767 static struct omap_hwmod_ocp_if am33xx_gfx__l3_main
= {
1768 .master
= &am33xx_gfx_hwmod
,
1769 .slave
= &am33xx_l3_main_hwmod
,
1770 .clk
= "dpll_core_m4_ck",
1771 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1774 /* l4 wkup -> wkup m3 */
1775 static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3
= {
1776 .master
= &am33xx_l4_wkup_hwmod
,
1777 .slave
= &am33xx_wkup_m3_hwmod
,
1778 .clk
= "dpll_core_m4_div2_ck",
1779 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1782 /* l4 hs -> pru-icss */
1783 static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss
= {
1784 .master
= &am33xx_l4_hs_hwmod
,
1785 .slave
= &am33xx_pruss_hwmod
,
1786 .clk
= "dpll_core_m4_ck",
1787 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1790 /* l3 main -> gfx */
1791 static struct omap_hwmod_ocp_if am33xx_l3_main__gfx
= {
1792 .master
= &am33xx_l3_main_hwmod
,
1793 .slave
= &am33xx_gfx_hwmod
,
1794 .clk
= "dpll_core_m4_ck",
1795 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1798 /* l4 wkup -> smartreflex0 */
1799 static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0
= {
1800 .master
= &am33xx_l4_wkup_hwmod
,
1801 .slave
= &am33xx_smartreflex0_hwmod
,
1802 .clk
= "dpll_core_m4_div2_ck",
1803 .user
= OCP_USER_MPU
,
1806 /* l4 wkup -> smartreflex1 */
1807 static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1
= {
1808 .master
= &am33xx_l4_wkup_hwmod
,
1809 .slave
= &am33xx_smartreflex1_hwmod
,
1810 .clk
= "dpll_core_m4_div2_ck",
1811 .user
= OCP_USER_MPU
,
1814 /* l4 wkup -> control */
1815 static struct omap_hwmod_ocp_if am33xx_l4_wkup__control
= {
1816 .master
= &am33xx_l4_wkup_hwmod
,
1817 .slave
= &am33xx_control_hwmod
,
1818 .clk
= "dpll_core_m4_div2_ck",
1819 .user
= OCP_USER_MPU
,
1822 /* l4 wkup -> rtc */
1823 static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc
= {
1824 .master
= &am33xx_l4_wkup_hwmod
,
1825 .slave
= &am33xx_rtc_hwmod
,
1826 .clk
= "clkdiv32k_ick",
1827 .user
= OCP_USER_MPU
,
1830 /* l4 per/ls -> DCAN0 */
1831 static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0
= {
1832 .master
= &am33xx_l4_ls_hwmod
,
1833 .slave
= &am33xx_dcan0_hwmod
,
1835 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1838 /* l4 per/ls -> DCAN1 */
1839 static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1
= {
1840 .master
= &am33xx_l4_ls_hwmod
,
1841 .slave
= &am33xx_dcan1_hwmod
,
1843 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1846 /* l4 per/ls -> GPIO2 */
1847 static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1
= {
1848 .master
= &am33xx_l4_ls_hwmod
,
1849 .slave
= &am33xx_gpio1_hwmod
,
1851 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1854 /* l4 per/ls -> gpio3 */
1855 static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2
= {
1856 .master
= &am33xx_l4_ls_hwmod
,
1857 .slave
= &am33xx_gpio2_hwmod
,
1859 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1862 /* l4 per/ls -> gpio4 */
1863 static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3
= {
1864 .master
= &am33xx_l4_ls_hwmod
,
1865 .slave
= &am33xx_gpio3_hwmod
,
1867 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1870 /* L4 WKUP -> I2C1 */
1871 static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1
= {
1872 .master
= &am33xx_l4_wkup_hwmod
,
1873 .slave
= &am33xx_i2c1_hwmod
,
1874 .clk
= "dpll_core_m4_div2_ck",
1875 .user
= OCP_USER_MPU
,
1878 /* L4 WKUP -> GPIO1 */
1879 static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0
= {
1880 .master
= &am33xx_l4_wkup_hwmod
,
1881 .slave
= &am33xx_gpio0_hwmod
,
1882 .clk
= "dpll_core_m4_div2_ck",
1883 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
1886 /* L4 WKUP -> ADC_TSC */
1887 static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs
[] = {
1889 .pa_start
= 0x44E0D000,
1890 .pa_end
= 0x44E0D000 + SZ_8K
- 1,
1891 .flags
= ADDR_TYPE_RT
1896 static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc
= {
1897 .master
= &am33xx_l4_wkup_hwmod
,
1898 .slave
= &am33xx_adc_tsc_hwmod
,
1899 .clk
= "dpll_core_m4_div2_ck",
1900 .addr
= am33xx_adc_tsc_addrs
,
1901 .user
= OCP_USER_MPU
,
1904 static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0
= {
1905 .master
= &am33xx_l4_hs_hwmod
,
1906 .slave
= &am33xx_cpgmac0_hwmod
,
1907 .clk
= "cpsw_125mhz_gclk",
1908 .user
= OCP_USER_MPU
,
1911 static struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio
= {
1912 .master
= &am33xx_cpgmac0_hwmod
,
1913 .slave
= &am33xx_mdio_hwmod
,
1914 .user
= OCP_USER_MPU
,
1917 static struct omap_hwmod_addr_space am33xx_elm_addr_space
[] = {
1919 .pa_start
= 0x48080000,
1920 .pa_end
= 0x48080000 + SZ_8K
- 1,
1921 .flags
= ADDR_TYPE_RT
1926 static struct omap_hwmod_ocp_if am33xx_l4_ls__elm
= {
1927 .master
= &am33xx_l4_ls_hwmod
,
1928 .slave
= &am33xx_elm_hwmod
,
1930 .addr
= am33xx_elm_addr_space
,
1931 .user
= OCP_USER_MPU
,
1934 static struct omap_hwmod_addr_space am33xx_epwmss0_addr_space
[] = {
1936 .pa_start
= 0x48300000,
1937 .pa_end
= 0x48300000 + SZ_16
- 1,
1938 .flags
= ADDR_TYPE_RT
1943 static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0
= {
1944 .master
= &am33xx_l4_ls_hwmod
,
1945 .slave
= &am33xx_epwmss0_hwmod
,
1947 .addr
= am33xx_epwmss0_addr_space
,
1948 .user
= OCP_USER_MPU
,
1951 static struct omap_hwmod_ocp_if am33xx_epwmss0__ecap0
= {
1952 .master
= &am33xx_epwmss0_hwmod
,
1953 .slave
= &am33xx_ecap0_hwmod
,
1955 .user
= OCP_USER_MPU
,
1958 static struct omap_hwmod_ocp_if am33xx_epwmss0__eqep0
= {
1959 .master
= &am33xx_epwmss0_hwmod
,
1960 .slave
= &am33xx_eqep0_hwmod
,
1962 .user
= OCP_USER_MPU
,
1965 static struct omap_hwmod_ocp_if am33xx_epwmss0__ehrpwm0
= {
1966 .master
= &am33xx_epwmss0_hwmod
,
1967 .slave
= &am33xx_ehrpwm0_hwmod
,
1969 .user
= OCP_USER_MPU
,
1973 static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space
[] = {
1975 .pa_start
= 0x48302000,
1976 .pa_end
= 0x48302000 + SZ_16
- 1,
1977 .flags
= ADDR_TYPE_RT
1982 static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1
= {
1983 .master
= &am33xx_l4_ls_hwmod
,
1984 .slave
= &am33xx_epwmss1_hwmod
,
1986 .addr
= am33xx_epwmss1_addr_space
,
1987 .user
= OCP_USER_MPU
,
1990 static struct omap_hwmod_ocp_if am33xx_epwmss1__ecap1
= {
1991 .master
= &am33xx_epwmss1_hwmod
,
1992 .slave
= &am33xx_ecap1_hwmod
,
1994 .user
= OCP_USER_MPU
,
1997 static struct omap_hwmod_ocp_if am33xx_epwmss1__eqep1
= {
1998 .master
= &am33xx_epwmss1_hwmod
,
1999 .slave
= &am33xx_eqep1_hwmod
,
2001 .user
= OCP_USER_MPU
,
2004 static struct omap_hwmod_ocp_if am33xx_epwmss1__ehrpwm1
= {
2005 .master
= &am33xx_epwmss1_hwmod
,
2006 .slave
= &am33xx_ehrpwm1_hwmod
,
2008 .user
= OCP_USER_MPU
,
2011 static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space
[] = {
2013 .pa_start
= 0x48304000,
2014 .pa_end
= 0x48304000 + SZ_16
- 1,
2015 .flags
= ADDR_TYPE_RT
2020 static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2
= {
2021 .master
= &am33xx_l4_ls_hwmod
,
2022 .slave
= &am33xx_epwmss2_hwmod
,
2024 .addr
= am33xx_epwmss2_addr_space
,
2025 .user
= OCP_USER_MPU
,
2028 static struct omap_hwmod_ocp_if am33xx_epwmss2__ecap2
= {
2029 .master
= &am33xx_epwmss2_hwmod
,
2030 .slave
= &am33xx_ecap2_hwmod
,
2032 .user
= OCP_USER_MPU
,
2035 static struct omap_hwmod_ocp_if am33xx_epwmss2__eqep2
= {
2036 .master
= &am33xx_epwmss2_hwmod
,
2037 .slave
= &am33xx_eqep2_hwmod
,
2039 .user
= OCP_USER_MPU
,
2042 static struct omap_hwmod_ocp_if am33xx_epwmss2__ehrpwm2
= {
2043 .master
= &am33xx_epwmss2_hwmod
,
2044 .slave
= &am33xx_ehrpwm2_hwmod
,
2046 .user
= OCP_USER_MPU
,
2049 /* l3s cfg -> gpmc */
2050 static struct omap_hwmod_addr_space am33xx_gpmc_addr_space
[] = {
2052 .pa_start
= 0x50000000,
2053 .pa_end
= 0x50000000 + SZ_8K
- 1,
2054 .flags
= ADDR_TYPE_RT
,
2059 static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc
= {
2060 .master
= &am33xx_l3_s_hwmod
,
2061 .slave
= &am33xx_gpmc_hwmod
,
2063 .addr
= am33xx_gpmc_addr_space
,
2064 .user
= OCP_USER_MPU
,
2068 static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2
= {
2069 .master
= &am33xx_l4_ls_hwmod
,
2070 .slave
= &am33xx_i2c2_hwmod
,
2072 .user
= OCP_USER_MPU
,
2075 static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3
= {
2076 .master
= &am33xx_l4_ls_hwmod
,
2077 .slave
= &am33xx_i2c3_hwmod
,
2079 .user
= OCP_USER_MPU
,
2082 static struct omap_hwmod_addr_space am33xx_lcdc_addr_space
[] = {
2084 .pa_start
= 0x4830E000,
2085 .pa_end
= 0x4830E000 + SZ_8K
- 1,
2086 .flags
= ADDR_TYPE_RT
,
2091 static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc
= {
2092 .master
= &am33xx_l3_main_hwmod
,
2093 .slave
= &am33xx_lcdc_hwmod
,
2094 .clk
= "dpll_core_m4_ck",
2095 .addr
= am33xx_lcdc_addr_space
,
2096 .user
= OCP_USER_MPU
,
2099 static struct omap_hwmod_addr_space am33xx_mailbox_addrs
[] = {
2101 .pa_start
= 0x480C8000,
2102 .pa_end
= 0x480C8000 + (SZ_4K
- 1),
2103 .flags
= ADDR_TYPE_RT
2108 /* l4 ls -> mailbox */
2109 static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox
= {
2110 .master
= &am33xx_l4_ls_hwmod
,
2111 .slave
= &am33xx_mailbox_hwmod
,
2113 .addr
= am33xx_mailbox_addrs
,
2114 .user
= OCP_USER_MPU
,
2117 /* l4 ls -> spinlock */
2118 static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock
= {
2119 .master
= &am33xx_l4_ls_hwmod
,
2120 .slave
= &am33xx_spinlock_hwmod
,
2122 .user
= OCP_USER_MPU
,
2125 /* l4 ls -> mcasp0 */
2126 static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space
[] = {
2128 .pa_start
= 0x48038000,
2129 .pa_end
= 0x48038000 + SZ_8K
- 1,
2130 .flags
= ADDR_TYPE_RT
2135 static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0
= {
2136 .master
= &am33xx_l4_ls_hwmod
,
2137 .slave
= &am33xx_mcasp0_hwmod
,
2139 .addr
= am33xx_mcasp0_addr_space
,
2140 .user
= OCP_USER_MPU
,
2143 /* l4 ls -> mcasp1 */
2144 static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space
[] = {
2146 .pa_start
= 0x4803C000,
2147 .pa_end
= 0x4803C000 + SZ_8K
- 1,
2148 .flags
= ADDR_TYPE_RT
2153 static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1
= {
2154 .master
= &am33xx_l4_ls_hwmod
,
2155 .slave
= &am33xx_mcasp1_hwmod
,
2157 .addr
= am33xx_mcasp1_addr_space
,
2158 .user
= OCP_USER_MPU
,
2162 static struct omap_hwmod_addr_space am33xx_mmc0_addr_space
[] = {
2164 .pa_start
= 0x48060100,
2165 .pa_end
= 0x48060100 + SZ_4K
- 1,
2166 .flags
= ADDR_TYPE_RT
,
2171 static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0
= {
2172 .master
= &am33xx_l4_ls_hwmod
,
2173 .slave
= &am33xx_mmc0_hwmod
,
2175 .addr
= am33xx_mmc0_addr_space
,
2176 .user
= OCP_USER_MPU
,
2180 static struct omap_hwmod_addr_space am33xx_mmc1_addr_space
[] = {
2182 .pa_start
= 0x481d8100,
2183 .pa_end
= 0x481d8100 + SZ_4K
- 1,
2184 .flags
= ADDR_TYPE_RT
,
2189 static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1
= {
2190 .master
= &am33xx_l4_ls_hwmod
,
2191 .slave
= &am33xx_mmc1_hwmod
,
2193 .addr
= am33xx_mmc1_addr_space
,
2194 .user
= OCP_USER_MPU
,
2198 static struct omap_hwmod_addr_space am33xx_mmc2_addr_space
[] = {
2200 .pa_start
= 0x47810100,
2201 .pa_end
= 0x47810100 + SZ_64K
- 1,
2202 .flags
= ADDR_TYPE_RT
,
2207 static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2
= {
2208 .master
= &am33xx_l3_s_hwmod
,
2209 .slave
= &am33xx_mmc2_hwmod
,
2211 .addr
= am33xx_mmc2_addr_space
,
2212 .user
= OCP_USER_MPU
,
2215 /* l4 ls -> mcspi0 */
2216 static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0
= {
2217 .master
= &am33xx_l4_ls_hwmod
,
2218 .slave
= &am33xx_spi0_hwmod
,
2220 .user
= OCP_USER_MPU
,
2223 /* l4 ls -> mcspi1 */
2224 static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1
= {
2225 .master
= &am33xx_l4_ls_hwmod
,
2226 .slave
= &am33xx_spi1_hwmod
,
2228 .user
= OCP_USER_MPU
,
2231 /* l4 wkup -> timer1 */
2232 static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1
= {
2233 .master
= &am33xx_l4_wkup_hwmod
,
2234 .slave
= &am33xx_timer1_hwmod
,
2235 .clk
= "dpll_core_m4_div2_ck",
2236 .user
= OCP_USER_MPU
,
2239 /* l4 per -> timer2 */
2240 static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2
= {
2241 .master
= &am33xx_l4_ls_hwmod
,
2242 .slave
= &am33xx_timer2_hwmod
,
2244 .user
= OCP_USER_MPU
,
2247 /* l4 per -> timer3 */
2248 static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3
= {
2249 .master
= &am33xx_l4_ls_hwmod
,
2250 .slave
= &am33xx_timer3_hwmod
,
2252 .user
= OCP_USER_MPU
,
2255 /* l4 per -> timer4 */
2256 static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4
= {
2257 .master
= &am33xx_l4_ls_hwmod
,
2258 .slave
= &am33xx_timer4_hwmod
,
2260 .user
= OCP_USER_MPU
,
2263 /* l4 per -> timer5 */
2264 static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5
= {
2265 .master
= &am33xx_l4_ls_hwmod
,
2266 .slave
= &am33xx_timer5_hwmod
,
2268 .user
= OCP_USER_MPU
,
2271 /* l4 per -> timer6 */
2272 static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6
= {
2273 .master
= &am33xx_l4_ls_hwmod
,
2274 .slave
= &am33xx_timer6_hwmod
,
2276 .user
= OCP_USER_MPU
,
2279 /* l4 per -> timer7 */
2280 static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7
= {
2281 .master
= &am33xx_l4_ls_hwmod
,
2282 .slave
= &am33xx_timer7_hwmod
,
2284 .user
= OCP_USER_MPU
,
2287 /* l3 main -> tpcc */
2288 static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc
= {
2289 .master
= &am33xx_l3_main_hwmod
,
2290 .slave
= &am33xx_tpcc_hwmod
,
2292 .user
= OCP_USER_MPU
,
2295 /* l3 main -> tpcc0 */
2296 static struct omap_hwmod_addr_space am33xx_tptc0_addr_space
[] = {
2298 .pa_start
= 0x49800000,
2299 .pa_end
= 0x49800000 + SZ_8K
- 1,
2300 .flags
= ADDR_TYPE_RT
,
2305 static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0
= {
2306 .master
= &am33xx_l3_main_hwmod
,
2307 .slave
= &am33xx_tptc0_hwmod
,
2309 .addr
= am33xx_tptc0_addr_space
,
2310 .user
= OCP_USER_MPU
,
2313 /* l3 main -> tpcc1 */
2314 static struct omap_hwmod_addr_space am33xx_tptc1_addr_space
[] = {
2316 .pa_start
= 0x49900000,
2317 .pa_end
= 0x49900000 + SZ_8K
- 1,
2318 .flags
= ADDR_TYPE_RT
,
2323 static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1
= {
2324 .master
= &am33xx_l3_main_hwmod
,
2325 .slave
= &am33xx_tptc1_hwmod
,
2327 .addr
= am33xx_tptc1_addr_space
,
2328 .user
= OCP_USER_MPU
,
2331 /* l3 main -> tpcc2 */
2332 static struct omap_hwmod_addr_space am33xx_tptc2_addr_space
[] = {
2334 .pa_start
= 0x49a00000,
2335 .pa_end
= 0x49a00000 + SZ_8K
- 1,
2336 .flags
= ADDR_TYPE_RT
,
2341 static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2
= {
2342 .master
= &am33xx_l3_main_hwmod
,
2343 .slave
= &am33xx_tptc2_hwmod
,
2345 .addr
= am33xx_tptc2_addr_space
,
2346 .user
= OCP_USER_MPU
,
2349 /* l4 wkup -> uart1 */
2350 static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1
= {
2351 .master
= &am33xx_l4_wkup_hwmod
,
2352 .slave
= &am33xx_uart1_hwmod
,
2353 .clk
= "dpll_core_m4_div2_ck",
2354 .user
= OCP_USER_MPU
,
2357 /* l4 ls -> uart2 */
2358 static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2
= {
2359 .master
= &am33xx_l4_ls_hwmod
,
2360 .slave
= &am33xx_uart2_hwmod
,
2362 .user
= OCP_USER_MPU
,
2365 /* l4 ls -> uart3 */
2366 static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3
= {
2367 .master
= &am33xx_l4_ls_hwmod
,
2368 .slave
= &am33xx_uart3_hwmod
,
2370 .user
= OCP_USER_MPU
,
2373 /* l4 ls -> uart4 */
2374 static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4
= {
2375 .master
= &am33xx_l4_ls_hwmod
,
2376 .slave
= &am33xx_uart4_hwmod
,
2378 .user
= OCP_USER_MPU
,
2381 /* l4 ls -> uart5 */
2382 static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5
= {
2383 .master
= &am33xx_l4_ls_hwmod
,
2384 .slave
= &am33xx_uart5_hwmod
,
2386 .user
= OCP_USER_MPU
,
2389 /* l4 ls -> uart6 */
2390 static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6
= {
2391 .master
= &am33xx_l4_ls_hwmod
,
2392 .slave
= &am33xx_uart6_hwmod
,
2394 .user
= OCP_USER_MPU
,
2397 /* l4 wkup -> wd_timer1 */
2398 static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1
= {
2399 .master
= &am33xx_l4_wkup_hwmod
,
2400 .slave
= &am33xx_wd_timer1_hwmod
,
2401 .clk
= "dpll_core_m4_div2_ck",
2402 .user
= OCP_USER_MPU
,
2406 /* l3 s -> USBSS interface */
2407 static struct omap_hwmod_ocp_if am33xx_l3_s__usbss
= {
2408 .master
= &am33xx_l3_s_hwmod
,
2409 .slave
= &am33xx_usbss_hwmod
,
2411 .user
= OCP_USER_MPU
,
2412 .flags
= OCPIF_SWSUP_IDLE
,
2415 /* l3 main -> ocmc */
2416 static struct omap_hwmod_ocp_if am33xx_l3_main__ocmc
= {
2417 .master
= &am33xx_l3_main_hwmod
,
2418 .slave
= &am33xx_ocmcram_hwmod
,
2419 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2422 /* l3 main -> sha0 HIB2 */
2423 static struct omap_hwmod_addr_space am33xx_sha0_addrs
[] = {
2425 .pa_start
= 0x53100000,
2426 .pa_end
= 0x53100000 + SZ_512
- 1,
2427 .flags
= ADDR_TYPE_RT
2432 static struct omap_hwmod_ocp_if am33xx_l3_main__sha0
= {
2433 .master
= &am33xx_l3_main_hwmod
,
2434 .slave
= &am33xx_sha0_hwmod
,
2436 .addr
= am33xx_sha0_addrs
,
2437 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2440 /* l3 main -> AES0 HIB2 */
2441 static struct omap_hwmod_addr_space am33xx_aes0_addrs
[] = {
2443 .pa_start
= 0x53500000,
2444 .pa_end
= 0x53500000 + SZ_1M
- 1,
2445 .flags
= ADDR_TYPE_RT
2450 static struct omap_hwmod_ocp_if am33xx_l3_main__aes0
= {
2451 .master
= &am33xx_l3_main_hwmod
,
2452 .slave
= &am33xx_aes0_hwmod
,
2454 .addr
= am33xx_aes0_addrs
,
2455 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
2458 static struct omap_hwmod_ocp_if
*am33xx_hwmod_ocp_ifs
[] __initdata
= {
2459 &am33xx_l3_main__emif
,
2460 &am33xx_mpu__l3_main
,
2462 &am33xx_l3_s__l4_ls
,
2463 &am33xx_l3_s__l4_wkup
,
2464 &am33xx_l3_main__l4_hs
,
2465 &am33xx_l3_main__l3_s
,
2466 &am33xx_l3_main__l3_instr
,
2467 &am33xx_l3_main__gfx
,
2468 &am33xx_l3_s__l3_main
,
2469 &am33xx_pruss__l3_main
,
2470 &am33xx_wkup_m3__l4_wkup
,
2471 &am33xx_gfx__l3_main
,
2472 &am33xx_l4_wkup__wkup_m3
,
2473 &am33xx_l4_wkup__control
,
2474 &am33xx_l4_wkup__smartreflex0
,
2475 &am33xx_l4_wkup__smartreflex1
,
2476 &am33xx_l4_wkup__uart1
,
2477 &am33xx_l4_wkup__timer1
,
2478 &am33xx_l4_wkup__rtc
,
2479 &am33xx_l4_wkup__i2c1
,
2480 &am33xx_l4_wkup__gpio0
,
2481 &am33xx_l4_wkup__adc_tsc
,
2482 &am33xx_l4_wkup__wd_timer1
,
2483 &am33xx_l4_hs__pruss
,
2484 &am33xx_l4_per__dcan0
,
2485 &am33xx_l4_per__dcan1
,
2486 &am33xx_l4_per__gpio1
,
2487 &am33xx_l4_per__gpio2
,
2488 &am33xx_l4_per__gpio3
,
2489 &am33xx_l4_per__i2c2
,
2490 &am33xx_l4_per__i2c3
,
2491 &am33xx_l4_per__mailbox
,
2492 &am33xx_l4_ls__mcasp0
,
2493 &am33xx_l4_ls__mcasp1
,
2494 &am33xx_l4_ls__mmc0
,
2495 &am33xx_l4_ls__mmc1
,
2497 &am33xx_l4_ls__timer2
,
2498 &am33xx_l4_ls__timer3
,
2499 &am33xx_l4_ls__timer4
,
2500 &am33xx_l4_ls__timer5
,
2501 &am33xx_l4_ls__timer6
,
2502 &am33xx_l4_ls__timer7
,
2503 &am33xx_l3_main__tpcc
,
2504 &am33xx_l4_ls__uart2
,
2505 &am33xx_l4_ls__uart3
,
2506 &am33xx_l4_ls__uart4
,
2507 &am33xx_l4_ls__uart5
,
2508 &am33xx_l4_ls__uart6
,
2509 &am33xx_l4_ls__spinlock
,
2511 &am33xx_l4_ls__epwmss0
,
2512 &am33xx_epwmss0__ecap0
,
2513 &am33xx_epwmss0__eqep0
,
2514 &am33xx_epwmss0__ehrpwm0
,
2515 &am33xx_l4_ls__epwmss1
,
2516 &am33xx_epwmss1__ecap1
,
2517 &am33xx_epwmss1__eqep1
,
2518 &am33xx_epwmss1__ehrpwm1
,
2519 &am33xx_l4_ls__epwmss2
,
2520 &am33xx_epwmss2__ecap2
,
2521 &am33xx_epwmss2__eqep2
,
2522 &am33xx_epwmss2__ehrpwm2
,
2524 &am33xx_l3_main__lcdc
,
2525 &am33xx_l4_ls__mcspi0
,
2526 &am33xx_l4_ls__mcspi1
,
2527 &am33xx_l3_main__tptc0
,
2528 &am33xx_l3_main__tptc1
,
2529 &am33xx_l3_main__tptc2
,
2530 &am33xx_l3_main__ocmc
,
2531 &am33xx_l3_s__usbss
,
2532 &am33xx_l4_hs__cpgmac0
,
2533 &am33xx_cpgmac0__mdio
,
2534 &am33xx_l3_main__sha0
,
2535 &am33xx_l3_main__aes0
,
2539 int __init
am33xx_hwmod_init(void)
2542 return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs
);