2 * Copyright (C) 2013 Texas Instruments Incorporated
4 * Hwmod present only in AM43x and those that differ other than register
5 * offsets as compared to AM335x.
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 "omap_hwmod.h"
18 #include "omap_hwmod_33xx_43xx_common_data.h"
20 #include "omap_hwmod_common_data.h"
25 static struct omap_hwmod am43xx_emif_hwmod = {
27 .class = &am33xx_emif_hwmod_class,
28 .clkdm_name = "emif_clkdm",
29 .flags = HWMOD_INIT_NO_IDLE,
30 .main_clk = "dpll_ddr_m2_ck",
33 .clkctrl_offs = AM43XX_CM_PER_EMIF_CLKCTRL_OFFSET,
34 .modulemode = MODULEMODE_SWCTRL,
39 static struct omap_hwmod am43xx_l4_hs_hwmod = {
41 .class = &am33xx_l4_hwmod_class,
42 .clkdm_name = "l3_clkdm",
43 .flags = HWMOD_INIT_NO_IDLE,
44 .main_clk = "l4hs_gclk",
47 .clkctrl_offs = AM43XX_CM_PER_L4HS_CLKCTRL_OFFSET,
48 .modulemode = MODULEMODE_SWCTRL,
53 static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
54 { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
57 static struct omap_hwmod am43xx_wkup_m3_hwmod = {
59 .class = &am33xx_wkup_m3_hwmod_class,
60 .clkdm_name = "l4_wkup_aon_clkdm",
61 /* Keep hardreset asserted */
62 .flags = HWMOD_INIT_NO_RESET | HWMOD_NO_IDLEST,
63 .main_clk = "sys_clkin_ck",
66 .clkctrl_offs = AM43XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
67 .rstctrl_offs = AM43XX_RM_WKUP_RSTCTRL_OFFSET,
68 .rstst_offs = AM43XX_RM_WKUP_RSTST_OFFSET,
69 .modulemode = MODULEMODE_SWCTRL,
72 .rst_lines = am33xx_wkup_m3_resets,
73 .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
76 static struct omap_hwmod am43xx_control_hwmod = {
78 .class = &am33xx_control_hwmod_class,
79 .clkdm_name = "l4_wkup_clkdm",
80 .flags = HWMOD_INIT_NO_IDLE,
81 .main_clk = "sys_clkin_ck",
84 .clkctrl_offs = AM43XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
85 .modulemode = MODULEMODE_SWCTRL,
90 static struct omap_hwmod_class_sysconfig am43xx_synctimer_sysc = {
93 .sysc_flags = SYSC_HAS_SIDLEMODE,
94 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
95 .sysc_fields = &omap_hwmod_sysc_type1,
98 static struct omap_hwmod_class am43xx_synctimer_hwmod_class = {
100 .sysc = &am43xx_synctimer_sysc,
103 static struct omap_hwmod am43xx_synctimer_hwmod = {
104 .name = "counter_32k",
105 .class = &am43xx_synctimer_hwmod_class,
106 .clkdm_name = "l4_wkup_aon_clkdm",
107 .flags = HWMOD_SWSUP_SIDLE,
108 .main_clk = "synctimer_32kclk",
111 .clkctrl_offs = AM43XX_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
112 .modulemode = MODULEMODE_SWCTRL,
117 static struct omap_hwmod am43xx_timer8_hwmod = {
119 .class = &am33xx_timer_hwmod_class,
120 .clkdm_name = "l4ls_clkdm",
121 .main_clk = "timer8_fck",
124 .clkctrl_offs = AM43XX_CM_PER_TIMER8_CLKCTRL_OFFSET,
125 .modulemode = MODULEMODE_SWCTRL,
130 static struct omap_hwmod am43xx_timer9_hwmod = {
132 .class = &am33xx_timer_hwmod_class,
133 .clkdm_name = "l4ls_clkdm",
134 .main_clk = "timer9_fck",
137 .clkctrl_offs = AM43XX_CM_PER_TIMER9_CLKCTRL_OFFSET,
138 .modulemode = MODULEMODE_SWCTRL,
143 static struct omap_hwmod am43xx_timer10_hwmod = {
145 .class = &am33xx_timer_hwmod_class,
146 .clkdm_name = "l4ls_clkdm",
147 .main_clk = "timer10_fck",
150 .clkctrl_offs = AM43XX_CM_PER_TIMER10_CLKCTRL_OFFSET,
151 .modulemode = MODULEMODE_SWCTRL,
156 static struct omap_hwmod am43xx_timer11_hwmod = {
158 .class = &am33xx_timer_hwmod_class,
159 .clkdm_name = "l4ls_clkdm",
160 .main_clk = "timer11_fck",
163 .clkctrl_offs = AM43XX_CM_PER_TIMER11_CLKCTRL_OFFSET,
164 .modulemode = MODULEMODE_SWCTRL,
169 static struct omap_hwmod am43xx_epwmss3_hwmod = {
171 .class = &am33xx_epwmss_hwmod_class,
172 .clkdm_name = "l4ls_clkdm",
173 .main_clk = "l4ls_gclk",
176 .clkctrl_offs = AM43XX_CM_PER_EPWMSS3_CLKCTRL_OFFSET,
177 .modulemode = MODULEMODE_SWCTRL,
182 static struct omap_hwmod am43xx_epwmss4_hwmod = {
184 .class = &am33xx_epwmss_hwmod_class,
185 .clkdm_name = "l4ls_clkdm",
186 .main_clk = "l4ls_gclk",
189 .clkctrl_offs = AM43XX_CM_PER_EPWMSS4_CLKCTRL_OFFSET,
190 .modulemode = MODULEMODE_SWCTRL,
195 static struct omap_hwmod am43xx_epwmss5_hwmod = {
197 .class = &am33xx_epwmss_hwmod_class,
198 .clkdm_name = "l4ls_clkdm",
199 .main_clk = "l4ls_gclk",
202 .clkctrl_offs = AM43XX_CM_PER_EPWMSS5_CLKCTRL_OFFSET,
203 .modulemode = MODULEMODE_SWCTRL,
208 static struct omap_hwmod am43xx_spi2_hwmod = {
210 .class = &am33xx_spi_hwmod_class,
211 .clkdm_name = "l4ls_clkdm",
212 .main_clk = "dpll_per_m2_div4_ck",
215 .clkctrl_offs = AM43XX_CM_PER_SPI2_CLKCTRL_OFFSET,
216 .modulemode = MODULEMODE_SWCTRL,
221 static struct omap_hwmod am43xx_spi3_hwmod = {
223 .class = &am33xx_spi_hwmod_class,
224 .clkdm_name = "l4ls_clkdm",
225 .main_clk = "dpll_per_m2_div4_ck",
228 .clkctrl_offs = AM43XX_CM_PER_SPI3_CLKCTRL_OFFSET,
229 .modulemode = MODULEMODE_SWCTRL,
234 static struct omap_hwmod am43xx_spi4_hwmod = {
236 .class = &am33xx_spi_hwmod_class,
237 .clkdm_name = "l4ls_clkdm",
238 .main_clk = "dpll_per_m2_div4_ck",
241 .clkctrl_offs = AM43XX_CM_PER_SPI4_CLKCTRL_OFFSET,
242 .modulemode = MODULEMODE_SWCTRL,
247 static struct omap_hwmod_class am43xx_ocp2scp_hwmod_class = {
251 static struct omap_hwmod am43xx_ocp2scp0_hwmod = {
253 .class = &am43xx_ocp2scp_hwmod_class,
254 .clkdm_name = "l4ls_clkdm",
255 .main_clk = "l4ls_gclk",
258 .clkctrl_offs = AM43XX_CM_PER_USBPHYOCP2SCP0_CLKCTRL_OFFSET,
259 .modulemode = MODULEMODE_SWCTRL,
264 static struct omap_hwmod am43xx_ocp2scp1_hwmod = {
266 .class = &am43xx_ocp2scp_hwmod_class,
267 .clkdm_name = "l4ls_clkdm",
268 .main_clk = "l4ls_gclk",
271 .clkctrl_offs = AM43XX_CM_PER_USBPHYOCP2SCP1_CLKCTRL_OFFSET,
272 .modulemode = MODULEMODE_SWCTRL,
277 static struct omap_hwmod_class_sysconfig am43xx_usb_otg_ss_sysc = {
280 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
282 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
283 SIDLE_SMART_WKUP | MSTANDBY_FORCE |
284 MSTANDBY_NO | MSTANDBY_SMART |
285 MSTANDBY_SMART_WKUP),
286 .sysc_fields = &omap_hwmod_sysc_type2,
289 static struct omap_hwmod_class am43xx_usb_otg_ss_hwmod_class = {
290 .name = "usb_otg_ss",
291 .sysc = &am43xx_usb_otg_ss_sysc,
294 static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = {
295 .name = "usb_otg_ss0",
296 .class = &am43xx_usb_otg_ss_hwmod_class,
297 .clkdm_name = "l3s_clkdm",
298 .main_clk = "l3s_gclk",
301 .clkctrl_offs = AM43XX_CM_PER_USB_OTG_SS0_CLKCTRL_OFFSET,
302 .modulemode = MODULEMODE_SWCTRL,
307 static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = {
308 .name = "usb_otg_ss1",
309 .class = &am43xx_usb_otg_ss_hwmod_class,
310 .clkdm_name = "l3s_clkdm",
311 .main_clk = "l3s_gclk",
314 .clkctrl_offs = AM43XX_CM_PER_USB_OTG_SS1_CLKCTRL_OFFSET,
315 .modulemode = MODULEMODE_SWCTRL,
320 static struct omap_hwmod_class_sysconfig am43xx_qspi_sysc = {
323 .sysc_flags = SYSC_HAS_SIDLEMODE,
324 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
326 .sysc_fields = &omap_hwmod_sysc_type2,
329 static struct omap_hwmod_class am43xx_qspi_hwmod_class = {
331 .sysc = &am43xx_qspi_sysc,
334 static struct omap_hwmod am43xx_qspi_hwmod = {
336 .class = &am43xx_qspi_hwmod_class,
337 .clkdm_name = "l3s_clkdm",
338 .main_clk = "l3s_gclk",
341 .clkctrl_offs = AM43XX_CM_PER_QSPI_CLKCTRL_OFFSET,
342 .modulemode = MODULEMODE_SWCTRL,
349 * TouchScreen Controller (Analog-To-Digital Converter)
351 static struct omap_hwmod_class_sysconfig am43xx_adc_tsc_sysc = {
354 .sysc_flags = SYSC_HAS_SIDLEMODE,
355 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
357 .sysc_fields = &omap_hwmod_sysc_type2,
360 static struct omap_hwmod_class am43xx_adc_tsc_hwmod_class = {
362 .sysc = &am43xx_adc_tsc_sysc,
365 static struct omap_hwmod am43xx_adc_tsc_hwmod = {
367 .class = &am43xx_adc_tsc_hwmod_class,
368 .clkdm_name = "l3s_tsc_clkdm",
369 .main_clk = "adc_tsc_fck",
372 .clkctrl_offs = AM43XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
373 .modulemode = MODULEMODE_SWCTRL,
378 static struct omap_hwmod_class_sysconfig am43xx_des_sysc = {
382 .sysc_flags = SYSS_HAS_RESET_STATUS,
385 static struct omap_hwmod_class am43xx_des_hwmod_class = {
387 .sysc = &am43xx_des_sysc,
390 static struct omap_hwmod am43xx_des_hwmod = {
392 .class = &am43xx_des_hwmod_class,
393 .clkdm_name = "l3_clkdm",
394 .main_clk = "l3_gclk",
397 .clkctrl_offs = AM43XX_CM_PER_DES_CLKCTRL_OFFSET,
398 .modulemode = MODULEMODE_SWCTRL,
405 static struct omap_hwmod am43xx_dss_core_hwmod = {
407 .class = &omap2_dss_hwmod_class,
408 .clkdm_name = "dss_clkdm",
409 .main_clk = "disp_clk",
412 .clkctrl_offs = AM43XX_CM_PER_DSS_CLKCTRL_OFFSET,
413 .modulemode = MODULEMODE_SWCTRL,
420 static struct omap_dss_dispc_dev_attr am43xx_dss_dispc_dev_attr = {
422 .has_framedonetv_irq = 0
425 static struct omap_hwmod_class_sysconfig am43xx_dispc_sysc = {
429 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
430 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
431 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_MIDLEMODE),
432 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
433 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
434 .sysc_fields = &omap_hwmod_sysc_type1,
437 static struct omap_hwmod_class am43xx_dispc_hwmod_class = {
439 .sysc = &am43xx_dispc_sysc,
442 static struct omap_hwmod am43xx_dss_dispc_hwmod = {
444 .class = &am43xx_dispc_hwmod_class,
445 .clkdm_name = "dss_clkdm",
446 .main_clk = "disp_clk",
449 .clkctrl_offs = AM43XX_CM_PER_DSS_CLKCTRL_OFFSET,
452 .dev_attr = &am43xx_dss_dispc_dev_attr,
453 .parent_hwmod = &am43xx_dss_core_hwmod,
458 static struct omap_hwmod am43xx_dss_rfbi_hwmod = {
460 .class = &omap2_rfbi_hwmod_class,
461 .clkdm_name = "dss_clkdm",
462 .main_clk = "disp_clk",
465 .clkctrl_offs = AM43XX_CM_PER_DSS_CLKCTRL_OFFSET,
468 .parent_hwmod = &am43xx_dss_core_hwmod,
472 static struct omap_hwmod_class_sysconfig am43xx_hdq1w_sysc = {
476 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
477 .sysc_fields = &omap_hwmod_sysc_type1,
480 static struct omap_hwmod_class am43xx_hdq1w_hwmod_class = {
482 .sysc = &am43xx_hdq1w_sysc,
483 .reset = &omap_hdq1w_reset,
486 static struct omap_hwmod am43xx_hdq1w_hwmod = {
488 .class = &am43xx_hdq1w_hwmod_class,
489 .clkdm_name = "l4ls_clkdm",
492 .clkctrl_offs = AM43XX_CM_PER_HDQ1W_CLKCTRL_OFFSET,
493 .modulemode = MODULEMODE_SWCTRL,
498 static struct omap_hwmod_class_sysconfig am43xx_vpfe_sysc = {
501 .sysc_flags = SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE,
502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
503 MSTANDBY_FORCE | MSTANDBY_SMART | MSTANDBY_NO),
504 .sysc_fields = &omap_hwmod_sysc_type2,
507 static struct omap_hwmod_class am43xx_vpfe_hwmod_class = {
509 .sysc = &am43xx_vpfe_sysc,
512 static struct omap_hwmod am43xx_vpfe0_hwmod = {
514 .class = &am43xx_vpfe_hwmod_class,
515 .clkdm_name = "l3s_clkdm",
518 .modulemode = MODULEMODE_SWCTRL,
519 .clkctrl_offs = AM43XX_CM_PER_VPFE0_CLKCTRL_OFFSET,
524 static struct omap_hwmod am43xx_vpfe1_hwmod = {
526 .class = &am43xx_vpfe_hwmod_class,
527 .clkdm_name = "l3s_clkdm",
530 .modulemode = MODULEMODE_SWCTRL,
531 .clkctrl_offs = AM43XX_CM_PER_VPFE1_CLKCTRL_OFFSET,
537 static struct omap_hwmod_ocp_if am43xx_l3_main__emif = {
538 .master = &am33xx_l3_main_hwmod,
539 .slave = &am43xx_emif_hwmod,
540 .clk = "dpll_core_m4_ck",
541 .user = OCP_USER_MPU | OCP_USER_SDMA,
544 static struct omap_hwmod_ocp_if am43xx_l3_main__l4_hs = {
545 .master = &am33xx_l3_main_hwmod,
546 .slave = &am43xx_l4_hs_hwmod,
548 .user = OCP_USER_MPU | OCP_USER_SDMA,
551 static struct omap_hwmod_ocp_if am43xx_wkup_m3__l4_wkup = {
552 .master = &am43xx_wkup_m3_hwmod,
553 .slave = &am33xx_l4_wkup_hwmod,
554 .clk = "sys_clkin_ck",
555 .user = OCP_USER_MPU | OCP_USER_SDMA,
558 static struct omap_hwmod_ocp_if am43xx_l4_wkup__wkup_m3 = {
559 .master = &am33xx_l4_wkup_hwmod,
560 .slave = &am43xx_wkup_m3_hwmod,
561 .clk = "sys_clkin_ck",
562 .user = OCP_USER_MPU | OCP_USER_SDMA,
565 static struct omap_hwmod_ocp_if am43xx_l3_main__pruss = {
566 .master = &am33xx_l3_main_hwmod,
567 .slave = &am33xx_pruss_hwmod,
568 .clk = "dpll_core_m4_ck",
569 .user = OCP_USER_MPU,
572 static struct omap_hwmod_ocp_if am43xx_l4_wkup__smartreflex0 = {
573 .master = &am33xx_l4_wkup_hwmod,
574 .slave = &am33xx_smartreflex0_hwmod,
575 .clk = "sys_clkin_ck",
576 .user = OCP_USER_MPU,
579 static struct omap_hwmod_ocp_if am43xx_l4_wkup__smartreflex1 = {
580 .master = &am33xx_l4_wkup_hwmod,
581 .slave = &am33xx_smartreflex1_hwmod,
582 .clk = "sys_clkin_ck",
583 .user = OCP_USER_MPU,
586 static struct omap_hwmod_ocp_if am43xx_l4_wkup__control = {
587 .master = &am33xx_l4_wkup_hwmod,
588 .slave = &am43xx_control_hwmod,
589 .clk = "sys_clkin_ck",
590 .user = OCP_USER_MPU,
593 static struct omap_hwmod_ocp_if am43xx_l4_wkup__adc_tsc = {
594 .master = &am33xx_l4_wkup_hwmod,
595 .slave = &am43xx_adc_tsc_hwmod,
596 .clk = "dpll_core_m4_div2_ck",
597 .user = OCP_USER_MPU,
600 static struct omap_hwmod_ocp_if am43xx_l4_wkup__timer1 = {
601 .master = &am33xx_l4_wkup_hwmod,
602 .slave = &am33xx_timer1_hwmod,
603 .clk = "sys_clkin_ck",
604 .user = OCP_USER_MPU,
607 static struct omap_hwmod_ocp_if am43xx_l4_wkup__wd_timer1 = {
608 .master = &am33xx_l4_wkup_hwmod,
609 .slave = &am33xx_wd_timer1_hwmod,
610 .clk = "sys_clkin_ck",
611 .user = OCP_USER_MPU,
614 static struct omap_hwmod_ocp_if am33xx_l4_wkup__synctimer = {
615 .master = &am33xx_l4_wkup_hwmod,
616 .slave = &am43xx_synctimer_hwmod,
617 .clk = "sys_clkin_ck",
618 .user = OCP_USER_MPU,
621 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer8 = {
622 .master = &am33xx_l4_ls_hwmod,
623 .slave = &am43xx_timer8_hwmod,
625 .user = OCP_USER_MPU,
628 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer9 = {
629 .master = &am33xx_l4_ls_hwmod,
630 .slave = &am43xx_timer9_hwmod,
632 .user = OCP_USER_MPU,
635 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer10 = {
636 .master = &am33xx_l4_ls_hwmod,
637 .slave = &am43xx_timer10_hwmod,
639 .user = OCP_USER_MPU,
642 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer11 = {
643 .master = &am33xx_l4_ls_hwmod,
644 .slave = &am43xx_timer11_hwmod,
646 .user = OCP_USER_MPU,
649 static struct omap_hwmod_ocp_if am43xx_l4_ls__epwmss3 = {
650 .master = &am33xx_l4_ls_hwmod,
651 .slave = &am43xx_epwmss3_hwmod,
653 .user = OCP_USER_MPU,
656 static struct omap_hwmod_ocp_if am43xx_l4_ls__epwmss4 = {
657 .master = &am33xx_l4_ls_hwmod,
658 .slave = &am43xx_epwmss4_hwmod,
660 .user = OCP_USER_MPU,
663 static struct omap_hwmod_ocp_if am43xx_l4_ls__epwmss5 = {
664 .master = &am33xx_l4_ls_hwmod,
665 .slave = &am43xx_epwmss5_hwmod,
667 .user = OCP_USER_MPU,
670 static struct omap_hwmod_ocp_if am43xx_l4_ls__mcspi2 = {
671 .master = &am33xx_l4_ls_hwmod,
672 .slave = &am43xx_spi2_hwmod,
674 .user = OCP_USER_MPU,
677 static struct omap_hwmod_ocp_if am43xx_l4_ls__mcspi3 = {
678 .master = &am33xx_l4_ls_hwmod,
679 .slave = &am43xx_spi3_hwmod,
681 .user = OCP_USER_MPU,
684 static struct omap_hwmod_ocp_if am43xx_l4_ls__mcspi4 = {
685 .master = &am33xx_l4_ls_hwmod,
686 .slave = &am43xx_spi4_hwmod,
688 .user = OCP_USER_MPU,
691 static struct omap_hwmod_ocp_if am43xx_l4_ls__ocp2scp0 = {
692 .master = &am33xx_l4_ls_hwmod,
693 .slave = &am43xx_ocp2scp0_hwmod,
695 .user = OCP_USER_MPU,
698 static struct omap_hwmod_ocp_if am43xx_l4_ls__ocp2scp1 = {
699 .master = &am33xx_l4_ls_hwmod,
700 .slave = &am43xx_ocp2scp1_hwmod,
702 .user = OCP_USER_MPU,
705 static struct omap_hwmod_ocp_if am43xx_l3_s__usbotgss0 = {
706 .master = &am33xx_l3_s_hwmod,
707 .slave = &am43xx_usb_otg_ss0_hwmod,
709 .user = OCP_USER_MPU | OCP_USER_SDMA,
712 static struct omap_hwmod_ocp_if am43xx_l3_s__usbotgss1 = {
713 .master = &am33xx_l3_s_hwmod,
714 .slave = &am43xx_usb_otg_ss1_hwmod,
716 .user = OCP_USER_MPU | OCP_USER_SDMA,
719 static struct omap_hwmod_ocp_if am43xx_l3_s__qspi = {
720 .master = &am33xx_l3_s_hwmod,
721 .slave = &am43xx_qspi_hwmod,
723 .user = OCP_USER_MPU | OCP_USER_SDMA,
726 static struct omap_hwmod_ocp_if am43xx_dss__l3_main = {
727 .master = &am43xx_dss_core_hwmod,
728 .slave = &am33xx_l3_main_hwmod,
730 .user = OCP_USER_MPU | OCP_USER_SDMA,
733 static struct omap_hwmod_ocp_if am43xx_l4_ls__dss = {
734 .master = &am33xx_l4_ls_hwmod,
735 .slave = &am43xx_dss_core_hwmod,
737 .user = OCP_USER_MPU | OCP_USER_SDMA,
740 static struct omap_hwmod_ocp_if am43xx_l4_ls__dss_dispc = {
741 .master = &am33xx_l4_ls_hwmod,
742 .slave = &am43xx_dss_dispc_hwmod,
744 .user = OCP_USER_MPU | OCP_USER_SDMA,
747 static struct omap_hwmod_ocp_if am43xx_l4_ls__dss_rfbi = {
748 .master = &am33xx_l4_ls_hwmod,
749 .slave = &am43xx_dss_rfbi_hwmod,
751 .user = OCP_USER_MPU | OCP_USER_SDMA,
754 static struct omap_hwmod_ocp_if am43xx_l4_ls__hdq1w = {
755 .master = &am33xx_l4_ls_hwmod,
756 .slave = &am43xx_hdq1w_hwmod,
758 .user = OCP_USER_MPU | OCP_USER_SDMA,
761 static struct omap_hwmod_ocp_if am43xx_l3__vpfe0 = {
762 .master = &am43xx_vpfe0_hwmod,
763 .slave = &am33xx_l3_main_hwmod,
765 .user = OCP_USER_MPU | OCP_USER_SDMA,
768 static struct omap_hwmod_ocp_if am43xx_l3__vpfe1 = {
769 .master = &am43xx_vpfe1_hwmod,
770 .slave = &am33xx_l3_main_hwmod,
772 .user = OCP_USER_MPU | OCP_USER_SDMA,
775 static struct omap_hwmod_ocp_if am43xx_l4_ls__vpfe0 = {
776 .master = &am33xx_l4_ls_hwmod,
777 .slave = &am43xx_vpfe0_hwmod,
779 .user = OCP_USER_MPU | OCP_USER_SDMA,
782 static struct omap_hwmod_ocp_if am43xx_l4_ls__vpfe1 = {
783 .master = &am33xx_l4_ls_hwmod,
784 .slave = &am43xx_vpfe1_hwmod,
786 .user = OCP_USER_MPU | OCP_USER_SDMA,
789 static struct omap_hwmod_ocp_if am43xx_l3_main__des = {
790 .master = &am33xx_l3_main_hwmod,
791 .slave = &am43xx_des_hwmod,
793 .user = OCP_USER_MPU,
796 static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
797 &am33xx_l4_wkup__synctimer,
798 &am43xx_l4_ls__timer8,
799 &am43xx_l4_ls__timer9,
800 &am43xx_l4_ls__timer10,
801 &am43xx_l4_ls__timer11,
802 &am43xx_l4_ls__epwmss3,
803 &am43xx_l4_ls__epwmss4,
804 &am43xx_l4_ls__epwmss5,
805 &am43xx_l4_ls__mcspi2,
806 &am43xx_l4_ls__mcspi3,
807 &am43xx_l4_ls__mcspi4,
808 &am43xx_l3_main__pruss,
809 &am33xx_mpu__l3_main,
812 &am33xx_l3_s__l4_wkup,
813 &am43xx_l3_main__l4_hs,
814 &am33xx_l3_main__l3_s,
815 &am33xx_l3_main__l3_instr,
816 &am33xx_l3_main__gfx,
817 &am33xx_l3_s__l3_main,
818 &am43xx_l3_main__emif,
819 &am33xx_pruss__l3_main,
820 &am43xx_wkup_m3__l4_wkup,
821 &am33xx_gfx__l3_main,
822 &am43xx_l4_wkup__wkup_m3,
823 &am43xx_l4_wkup__control,
824 &am43xx_l4_wkup__smartreflex0,
825 &am43xx_l4_wkup__smartreflex1,
826 &am43xx_l4_wkup__timer1,
827 &am43xx_l4_wkup__wd_timer1,
828 &am43xx_l4_wkup__adc_tsc,
830 &am33xx_l4_per__dcan0,
831 &am33xx_l4_per__dcan1,
832 &am33xx_l4_per__mailbox,
834 &am33xx_l4_ls__mcasp0,
835 &am33xx_l4_ls__mcasp1,
836 &am33xx_l4_ls__timer2,
837 &am33xx_l4_ls__timer3,
838 &am33xx_l4_ls__timer4,
839 &am33xx_l4_ls__timer5,
840 &am33xx_l4_ls__timer6,
841 &am33xx_l4_ls__timer7,
842 &am33xx_l3_main__tpcc,
843 &am33xx_l4_ls__spinlock,
845 &am33xx_l4_ls__epwmss0,
846 &am33xx_l4_ls__epwmss1,
847 &am33xx_l4_ls__epwmss2,
849 &am33xx_l4_ls__mcspi0,
850 &am33xx_l4_ls__mcspi1,
851 &am33xx_l3_main__tptc0,
852 &am33xx_l3_main__tptc1,
853 &am33xx_l3_main__tptc2,
854 &am33xx_l3_main__ocmc,
855 &am33xx_l3_main__sha0,
856 &am33xx_l3_main__aes0,
857 &am43xx_l3_main__des,
858 &am43xx_l4_ls__ocp2scp0,
859 &am43xx_l4_ls__ocp2scp1,
860 &am43xx_l3_s__usbotgss0,
861 &am43xx_l3_s__usbotgss1,
862 &am43xx_dss__l3_main,
864 &am43xx_l4_ls__dss_dispc,
865 &am43xx_l4_ls__dss_rfbi,
866 &am43xx_l4_ls__hdq1w,
869 &am43xx_l4_ls__vpfe0,
870 &am43xx_l4_ls__vpfe1,
874 static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
875 &am33xx_l4_wkup__rtc,
879 int __init am43xx_hwmod_init(void)
883 omap_hwmod_am43xx_reg();
885 ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
887 if (!ret && of_machine_is_compatible("ti,am4372"))
888 ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);