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"
23 static struct omap_hwmod am43xx_emif_hwmod = {
25 .class = &am33xx_emif_hwmod_class,
26 .clkdm_name = "emif_clkdm",
27 .flags = HWMOD_INIT_NO_IDLE,
28 .main_clk = "dpll_ddr_m2_ck",
31 .clkctrl_offs = AM43XX_CM_PER_EMIF_CLKCTRL_OFFSET,
32 .modulemode = MODULEMODE_SWCTRL,
37 static struct omap_hwmod am43xx_l4_hs_hwmod = {
39 .class = &am33xx_l4_hwmod_class,
40 .clkdm_name = "l3_clkdm",
41 .flags = HWMOD_INIT_NO_IDLE,
42 .main_clk = "l4hs_gclk",
45 .clkctrl_offs = AM43XX_CM_PER_L4HS_CLKCTRL_OFFSET,
46 .modulemode = MODULEMODE_SWCTRL,
51 static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
52 { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
55 static struct omap_hwmod am43xx_wkup_m3_hwmod = {
57 .class = &am33xx_wkup_m3_hwmod_class,
58 .clkdm_name = "l4_wkup_aon_clkdm",
59 /* Keep hardreset asserted */
60 .flags = HWMOD_INIT_NO_RESET | HWMOD_NO_IDLEST,
61 .main_clk = "sys_clkin_ck",
64 .clkctrl_offs = AM43XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
65 .rstctrl_offs = AM43XX_RM_WKUP_RSTCTRL_OFFSET,
66 .rstst_offs = AM43XX_RM_WKUP_RSTST_OFFSET,
67 .modulemode = MODULEMODE_SWCTRL,
70 .rst_lines = am33xx_wkup_m3_resets,
71 .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
74 static struct omap_hwmod am43xx_control_hwmod = {
76 .class = &am33xx_control_hwmod_class,
77 .clkdm_name = "l4_wkup_clkdm",
78 .flags = HWMOD_INIT_NO_IDLE,
79 .main_clk = "sys_clkin_ck",
82 .clkctrl_offs = AM43XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
83 .modulemode = MODULEMODE_SWCTRL,
88 static struct omap_hwmod_class_sysconfig am43xx_synctimer_sysc = {
91 .sysc_flags = SYSC_HAS_SIDLEMODE,
92 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
93 .sysc_fields = &omap_hwmod_sysc_type1,
96 static struct omap_hwmod_class am43xx_synctimer_hwmod_class = {
98 .sysc = &am43xx_synctimer_sysc,
101 static struct omap_hwmod am43xx_synctimer_hwmod = {
102 .name = "counter_32k",
103 .class = &am43xx_synctimer_hwmod_class,
104 .clkdm_name = "l4_wkup_aon_clkdm",
105 .flags = HWMOD_SWSUP_SIDLE,
106 .main_clk = "synctimer_32kclk",
109 .clkctrl_offs = AM43XX_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
110 .modulemode = MODULEMODE_SWCTRL,
115 static struct omap_hwmod am43xx_timer8_hwmod = {
117 .class = &am33xx_timer_hwmod_class,
118 .clkdm_name = "l4ls_clkdm",
119 .main_clk = "timer8_fck",
122 .clkctrl_offs = AM43XX_CM_PER_TIMER8_CLKCTRL_OFFSET,
123 .modulemode = MODULEMODE_SWCTRL,
128 static struct omap_hwmod am43xx_timer9_hwmod = {
130 .class = &am33xx_timer_hwmod_class,
131 .clkdm_name = "l4ls_clkdm",
132 .main_clk = "timer9_fck",
135 .clkctrl_offs = AM43XX_CM_PER_TIMER9_CLKCTRL_OFFSET,
136 .modulemode = MODULEMODE_SWCTRL,
141 static struct omap_hwmod am43xx_timer10_hwmod = {
143 .class = &am33xx_timer_hwmod_class,
144 .clkdm_name = "l4ls_clkdm",
145 .main_clk = "timer10_fck",
148 .clkctrl_offs = AM43XX_CM_PER_TIMER10_CLKCTRL_OFFSET,
149 .modulemode = MODULEMODE_SWCTRL,
154 static struct omap_hwmod am43xx_timer11_hwmod = {
156 .class = &am33xx_timer_hwmod_class,
157 .clkdm_name = "l4ls_clkdm",
158 .main_clk = "timer11_fck",
161 .clkctrl_offs = AM43XX_CM_PER_TIMER11_CLKCTRL_OFFSET,
162 .modulemode = MODULEMODE_SWCTRL,
167 static struct omap_hwmod am43xx_epwmss3_hwmod = {
169 .class = &am33xx_epwmss_hwmod_class,
170 .clkdm_name = "l4ls_clkdm",
171 .main_clk = "l4ls_gclk",
174 .clkctrl_offs = AM43XX_CM_PER_EPWMSS3_CLKCTRL_OFFSET,
175 .modulemode = MODULEMODE_SWCTRL,
180 static struct omap_hwmod am43xx_epwmss4_hwmod = {
182 .class = &am33xx_epwmss_hwmod_class,
183 .clkdm_name = "l4ls_clkdm",
184 .main_clk = "l4ls_gclk",
187 .clkctrl_offs = AM43XX_CM_PER_EPWMSS4_CLKCTRL_OFFSET,
188 .modulemode = MODULEMODE_SWCTRL,
193 static struct omap_hwmod am43xx_epwmss5_hwmod = {
195 .class = &am33xx_epwmss_hwmod_class,
196 .clkdm_name = "l4ls_clkdm",
197 .main_clk = "l4ls_gclk",
200 .clkctrl_offs = AM43XX_CM_PER_EPWMSS5_CLKCTRL_OFFSET,
201 .modulemode = MODULEMODE_SWCTRL,
206 static struct omap_hwmod am43xx_spi2_hwmod = {
208 .class = &am33xx_spi_hwmod_class,
209 .clkdm_name = "l4ls_clkdm",
210 .main_clk = "dpll_per_m2_div4_ck",
213 .clkctrl_offs = AM43XX_CM_PER_SPI2_CLKCTRL_OFFSET,
214 .modulemode = MODULEMODE_SWCTRL,
219 static struct omap_hwmod am43xx_spi3_hwmod = {
221 .class = &am33xx_spi_hwmod_class,
222 .clkdm_name = "l4ls_clkdm",
223 .main_clk = "dpll_per_m2_div4_ck",
226 .clkctrl_offs = AM43XX_CM_PER_SPI3_CLKCTRL_OFFSET,
227 .modulemode = MODULEMODE_SWCTRL,
232 static struct omap_hwmod am43xx_spi4_hwmod = {
234 .class = &am33xx_spi_hwmod_class,
235 .clkdm_name = "l4ls_clkdm",
236 .main_clk = "dpll_per_m2_div4_ck",
239 .clkctrl_offs = AM43XX_CM_PER_SPI4_CLKCTRL_OFFSET,
240 .modulemode = MODULEMODE_SWCTRL,
245 static struct omap_hwmod_class am43xx_ocp2scp_hwmod_class = {
249 static struct omap_hwmod am43xx_ocp2scp0_hwmod = {
251 .class = &am43xx_ocp2scp_hwmod_class,
252 .clkdm_name = "l4ls_clkdm",
253 .main_clk = "l4ls_gclk",
256 .clkctrl_offs = AM43XX_CM_PER_USBPHYOCP2SCP0_CLKCTRL_OFFSET,
257 .modulemode = MODULEMODE_SWCTRL,
262 static struct omap_hwmod am43xx_ocp2scp1_hwmod = {
264 .class = &am43xx_ocp2scp_hwmod_class,
265 .clkdm_name = "l4ls_clkdm",
266 .main_clk = "l4ls_gclk",
269 .clkctrl_offs = AM43XX_CM_PER_USBPHYOCP2SCP1_CLKCTRL_OFFSET,
270 .modulemode = MODULEMODE_SWCTRL,
275 static struct omap_hwmod_class_sysconfig am43xx_usb_otg_ss_sysc = {
278 .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
280 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
281 SIDLE_SMART_WKUP | MSTANDBY_FORCE |
282 MSTANDBY_NO | MSTANDBY_SMART |
283 MSTANDBY_SMART_WKUP),
284 .sysc_fields = &omap_hwmod_sysc_type2,
287 static struct omap_hwmod_class am43xx_usb_otg_ss_hwmod_class = {
288 .name = "usb_otg_ss",
289 .sysc = &am43xx_usb_otg_ss_sysc,
292 static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = {
293 .name = "usb_otg_ss0",
294 .class = &am43xx_usb_otg_ss_hwmod_class,
295 .clkdm_name = "l3s_clkdm",
296 .main_clk = "l3s_gclk",
299 .clkctrl_offs = AM43XX_CM_PER_USB_OTG_SS0_CLKCTRL_OFFSET,
300 .modulemode = MODULEMODE_SWCTRL,
305 static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = {
306 .name = "usb_otg_ss1",
307 .class = &am43xx_usb_otg_ss_hwmod_class,
308 .clkdm_name = "l3s_clkdm",
309 .main_clk = "l3s_gclk",
312 .clkctrl_offs = AM43XX_CM_PER_USB_OTG_SS1_CLKCTRL_OFFSET,
313 .modulemode = MODULEMODE_SWCTRL,
318 static struct omap_hwmod_class_sysconfig am43xx_qspi_sysc = {
321 .sysc_flags = SYSC_HAS_SIDLEMODE,
322 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
324 .sysc_fields = &omap_hwmod_sysc_type2,
327 static struct omap_hwmod_class am43xx_qspi_hwmod_class = {
329 .sysc = &am43xx_qspi_sysc,
332 static struct omap_hwmod am43xx_qspi_hwmod = {
334 .class = &am43xx_qspi_hwmod_class,
335 .clkdm_name = "l3s_clkdm",
336 .main_clk = "l3s_gclk",
339 .clkctrl_offs = AM43XX_CM_PER_QSPI_CLKCTRL_OFFSET,
340 .modulemode = MODULEMODE_SWCTRL,
347 * TouchScreen Controller (Analog-To-Digital Converter)
349 static struct omap_hwmod_class_sysconfig am43xx_adc_tsc_sysc = {
352 .sysc_flags = SYSC_HAS_SIDLEMODE,
353 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
355 .sysc_fields = &omap_hwmod_sysc_type2,
358 static struct omap_hwmod_class am43xx_adc_tsc_hwmod_class = {
360 .sysc = &am43xx_adc_tsc_sysc,
363 static struct omap_hwmod am43xx_adc_tsc_hwmod = {
365 .class = &am43xx_adc_tsc_hwmod_class,
366 .clkdm_name = "l3s_tsc_clkdm",
367 .main_clk = "adc_tsc_fck",
370 .clkctrl_offs = AM43XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
371 .modulemode = MODULEMODE_SWCTRL,
376 static struct omap_hwmod_class_sysconfig am43xx_des_sysc = {
380 .sysc_flags = SYSS_HAS_RESET_STATUS,
383 static struct omap_hwmod_class am43xx_des_hwmod_class = {
385 .sysc = &am43xx_des_sysc,
388 static struct omap_hwmod am43xx_des_hwmod = {
390 .class = &am43xx_des_hwmod_class,
391 .clkdm_name = "l3_clkdm",
392 .main_clk = "l3_gclk",
395 .clkctrl_offs = AM43XX_CM_PER_DES_CLKCTRL_OFFSET,
396 .modulemode = MODULEMODE_SWCTRL,
403 static struct omap_hwmod am43xx_dss_core_hwmod = {
405 .class = &omap2_dss_hwmod_class,
406 .clkdm_name = "dss_clkdm",
407 .main_clk = "disp_clk",
410 .clkctrl_offs = AM43XX_CM_PER_DSS_CLKCTRL_OFFSET,
411 .modulemode = MODULEMODE_SWCTRL,
418 static struct omap_dss_dispc_dev_attr am43xx_dss_dispc_dev_attr = {
420 .has_framedonetv_irq = 0
423 static struct omap_hwmod_class_sysconfig am43xx_dispc_sysc = {
427 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
428 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
429 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_MIDLEMODE),
430 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
431 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
432 .sysc_fields = &omap_hwmod_sysc_type1,
435 static struct omap_hwmod_class am43xx_dispc_hwmod_class = {
437 .sysc = &am43xx_dispc_sysc,
440 static struct omap_hwmod am43xx_dss_dispc_hwmod = {
442 .class = &am43xx_dispc_hwmod_class,
443 .clkdm_name = "dss_clkdm",
444 .main_clk = "disp_clk",
447 .clkctrl_offs = AM43XX_CM_PER_DSS_CLKCTRL_OFFSET,
450 .dev_attr = &am43xx_dss_dispc_dev_attr,
451 .parent_hwmod = &am43xx_dss_core_hwmod,
456 static struct omap_hwmod am43xx_dss_rfbi_hwmod = {
458 .class = &omap2_rfbi_hwmod_class,
459 .clkdm_name = "dss_clkdm",
460 .main_clk = "disp_clk",
463 .clkctrl_offs = AM43XX_CM_PER_DSS_CLKCTRL_OFFSET,
466 .parent_hwmod = &am43xx_dss_core_hwmod,
470 static struct omap_hwmod_class_sysconfig am43xx_vpfe_sysc = {
473 .sysc_flags = SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE,
474 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
475 MSTANDBY_FORCE | MSTANDBY_SMART | MSTANDBY_NO),
476 .sysc_fields = &omap_hwmod_sysc_type2,
479 static struct omap_hwmod_class am43xx_vpfe_hwmod_class = {
481 .sysc = &am43xx_vpfe_sysc,
484 static struct omap_hwmod am43xx_vpfe0_hwmod = {
486 .class = &am43xx_vpfe_hwmod_class,
487 .clkdm_name = "l3s_clkdm",
490 .modulemode = MODULEMODE_SWCTRL,
491 .clkctrl_offs = AM43XX_CM_PER_VPFE0_CLKCTRL_OFFSET,
496 static struct omap_hwmod am43xx_vpfe1_hwmod = {
498 .class = &am43xx_vpfe_hwmod_class,
499 .clkdm_name = "l3s_clkdm",
502 .modulemode = MODULEMODE_SWCTRL,
503 .clkctrl_offs = AM43XX_CM_PER_VPFE1_CLKCTRL_OFFSET,
509 static struct omap_hwmod_ocp_if am43xx_l3_main__emif = {
510 .master = &am33xx_l3_main_hwmod,
511 .slave = &am43xx_emif_hwmod,
512 .clk = "dpll_core_m4_ck",
513 .user = OCP_USER_MPU | OCP_USER_SDMA,
516 static struct omap_hwmod_ocp_if am43xx_l3_main__l4_hs = {
517 .master = &am33xx_l3_main_hwmod,
518 .slave = &am43xx_l4_hs_hwmod,
520 .user = OCP_USER_MPU | OCP_USER_SDMA,
523 static struct omap_hwmod_ocp_if am43xx_wkup_m3__l4_wkup = {
524 .master = &am43xx_wkup_m3_hwmod,
525 .slave = &am33xx_l4_wkup_hwmod,
526 .clk = "sys_clkin_ck",
527 .user = OCP_USER_MPU | OCP_USER_SDMA,
530 static struct omap_hwmod_ocp_if am43xx_l4_wkup__wkup_m3 = {
531 .master = &am33xx_l4_wkup_hwmod,
532 .slave = &am43xx_wkup_m3_hwmod,
533 .clk = "sys_clkin_ck",
534 .user = OCP_USER_MPU | OCP_USER_SDMA,
537 static struct omap_hwmod_ocp_if am43xx_l3_main__pruss = {
538 .master = &am33xx_l3_main_hwmod,
539 .slave = &am33xx_pruss_hwmod,
540 .clk = "dpll_core_m4_ck",
541 .user = OCP_USER_MPU,
544 static struct omap_hwmod_ocp_if am43xx_l4_wkup__smartreflex0 = {
545 .master = &am33xx_l4_wkup_hwmod,
546 .slave = &am33xx_smartreflex0_hwmod,
547 .clk = "sys_clkin_ck",
548 .user = OCP_USER_MPU,
551 static struct omap_hwmod_ocp_if am43xx_l4_wkup__smartreflex1 = {
552 .master = &am33xx_l4_wkup_hwmod,
553 .slave = &am33xx_smartreflex1_hwmod,
554 .clk = "sys_clkin_ck",
555 .user = OCP_USER_MPU,
558 static struct omap_hwmod_ocp_if am43xx_l4_wkup__control = {
559 .master = &am33xx_l4_wkup_hwmod,
560 .slave = &am43xx_control_hwmod,
561 .clk = "sys_clkin_ck",
562 .user = OCP_USER_MPU,
565 static struct omap_hwmod_ocp_if am43xx_l4_wkup__adc_tsc = {
566 .master = &am33xx_l4_wkup_hwmod,
567 .slave = &am43xx_adc_tsc_hwmod,
568 .clk = "dpll_core_m4_div2_ck",
569 .user = OCP_USER_MPU,
572 static struct omap_hwmod_ocp_if am43xx_l4_wkup__timer1 = {
573 .master = &am33xx_l4_wkup_hwmod,
574 .slave = &am33xx_timer1_hwmod,
575 .clk = "sys_clkin_ck",
576 .user = OCP_USER_MPU,
579 static struct omap_hwmod_ocp_if am33xx_l4_wkup__synctimer = {
580 .master = &am33xx_l4_wkup_hwmod,
581 .slave = &am43xx_synctimer_hwmod,
582 .clk = "sys_clkin_ck",
583 .user = OCP_USER_MPU,
586 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer8 = {
587 .master = &am33xx_l4_ls_hwmod,
588 .slave = &am43xx_timer8_hwmod,
590 .user = OCP_USER_MPU,
593 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer9 = {
594 .master = &am33xx_l4_ls_hwmod,
595 .slave = &am43xx_timer9_hwmod,
597 .user = OCP_USER_MPU,
600 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer10 = {
601 .master = &am33xx_l4_ls_hwmod,
602 .slave = &am43xx_timer10_hwmod,
604 .user = OCP_USER_MPU,
607 static struct omap_hwmod_ocp_if am43xx_l4_ls__timer11 = {
608 .master = &am33xx_l4_ls_hwmod,
609 .slave = &am43xx_timer11_hwmod,
611 .user = OCP_USER_MPU,
614 static struct omap_hwmod_ocp_if am43xx_l4_ls__epwmss3 = {
615 .master = &am33xx_l4_ls_hwmod,
616 .slave = &am43xx_epwmss3_hwmod,
618 .user = OCP_USER_MPU,
621 static struct omap_hwmod_ocp_if am43xx_l4_ls__epwmss4 = {
622 .master = &am33xx_l4_ls_hwmod,
623 .slave = &am43xx_epwmss4_hwmod,
625 .user = OCP_USER_MPU,
628 static struct omap_hwmod_ocp_if am43xx_l4_ls__epwmss5 = {
629 .master = &am33xx_l4_ls_hwmod,
630 .slave = &am43xx_epwmss5_hwmod,
632 .user = OCP_USER_MPU,
635 static struct omap_hwmod_ocp_if am43xx_l4_ls__mcspi2 = {
636 .master = &am33xx_l4_ls_hwmod,
637 .slave = &am43xx_spi2_hwmod,
639 .user = OCP_USER_MPU,
642 static struct omap_hwmod_ocp_if am43xx_l4_ls__mcspi3 = {
643 .master = &am33xx_l4_ls_hwmod,
644 .slave = &am43xx_spi3_hwmod,
646 .user = OCP_USER_MPU,
649 static struct omap_hwmod_ocp_if am43xx_l4_ls__mcspi4 = {
650 .master = &am33xx_l4_ls_hwmod,
651 .slave = &am43xx_spi4_hwmod,
653 .user = OCP_USER_MPU,
656 static struct omap_hwmod_ocp_if am43xx_l4_ls__ocp2scp0 = {
657 .master = &am33xx_l4_ls_hwmod,
658 .slave = &am43xx_ocp2scp0_hwmod,
660 .user = OCP_USER_MPU,
663 static struct omap_hwmod_ocp_if am43xx_l4_ls__ocp2scp1 = {
664 .master = &am33xx_l4_ls_hwmod,
665 .slave = &am43xx_ocp2scp1_hwmod,
667 .user = OCP_USER_MPU,
670 static struct omap_hwmod_ocp_if am43xx_l3_s__usbotgss0 = {
671 .master = &am33xx_l3_s_hwmod,
672 .slave = &am43xx_usb_otg_ss0_hwmod,
674 .user = OCP_USER_MPU | OCP_USER_SDMA,
677 static struct omap_hwmod_ocp_if am43xx_l3_s__usbotgss1 = {
678 .master = &am33xx_l3_s_hwmod,
679 .slave = &am43xx_usb_otg_ss1_hwmod,
681 .user = OCP_USER_MPU | OCP_USER_SDMA,
684 static struct omap_hwmod_ocp_if am43xx_l3_s__qspi = {
685 .master = &am33xx_l3_s_hwmod,
686 .slave = &am43xx_qspi_hwmod,
688 .user = OCP_USER_MPU | OCP_USER_SDMA,
691 static struct omap_hwmod_ocp_if am43xx_dss__l3_main = {
692 .master = &am43xx_dss_core_hwmod,
693 .slave = &am33xx_l3_main_hwmod,
695 .user = OCP_USER_MPU | OCP_USER_SDMA,
698 static struct omap_hwmod_ocp_if am43xx_l4_ls__dss = {
699 .master = &am33xx_l4_ls_hwmod,
700 .slave = &am43xx_dss_core_hwmod,
702 .user = OCP_USER_MPU | OCP_USER_SDMA,
705 static struct omap_hwmod_ocp_if am43xx_l4_ls__dss_dispc = {
706 .master = &am33xx_l4_ls_hwmod,
707 .slave = &am43xx_dss_dispc_hwmod,
709 .user = OCP_USER_MPU | OCP_USER_SDMA,
712 static struct omap_hwmod_ocp_if am43xx_l4_ls__dss_rfbi = {
713 .master = &am33xx_l4_ls_hwmod,
714 .slave = &am43xx_dss_rfbi_hwmod,
716 .user = OCP_USER_MPU | OCP_USER_SDMA,
719 static struct omap_hwmod_ocp_if am43xx_l3__vpfe0 = {
720 .master = &am43xx_vpfe0_hwmod,
721 .slave = &am33xx_l3_main_hwmod,
723 .user = OCP_USER_MPU | OCP_USER_SDMA,
726 static struct omap_hwmod_ocp_if am43xx_l3__vpfe1 = {
727 .master = &am43xx_vpfe1_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__vpfe0 = {
734 .master = &am33xx_l4_ls_hwmod,
735 .slave = &am43xx_vpfe0_hwmod,
737 .user = OCP_USER_MPU | OCP_USER_SDMA,
740 static struct omap_hwmod_ocp_if am43xx_l4_ls__vpfe1 = {
741 .master = &am33xx_l4_ls_hwmod,
742 .slave = &am43xx_vpfe1_hwmod,
744 .user = OCP_USER_MPU | OCP_USER_SDMA,
747 static struct omap_hwmod_ocp_if am43xx_l3_main__des = {
748 .master = &am33xx_l3_main_hwmod,
749 .slave = &am43xx_des_hwmod,
751 .user = OCP_USER_MPU,
754 static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
755 &am33xx_l4_wkup__synctimer,
756 &am43xx_l4_ls__timer8,
757 &am43xx_l4_ls__timer9,
758 &am43xx_l4_ls__timer10,
759 &am43xx_l4_ls__timer11,
760 &am43xx_l4_ls__epwmss3,
761 &am43xx_l4_ls__epwmss4,
762 &am43xx_l4_ls__epwmss5,
763 &am43xx_l4_ls__mcspi2,
764 &am43xx_l4_ls__mcspi3,
765 &am43xx_l4_ls__mcspi4,
766 &am43xx_l3_main__pruss,
767 &am33xx_mpu__l3_main,
770 &am33xx_l3_s__l4_wkup,
771 &am43xx_l3_main__l4_hs,
772 &am33xx_l3_main__l3_s,
773 &am33xx_l3_main__l3_instr,
774 &am33xx_l3_main__gfx,
775 &am33xx_l3_s__l3_main,
776 &am43xx_l3_main__emif,
777 &am33xx_pruss__l3_main,
778 &am43xx_wkup_m3__l4_wkup,
779 &am33xx_gfx__l3_main,
780 &am43xx_l4_wkup__wkup_m3,
781 &am43xx_l4_wkup__control,
782 &am43xx_l4_wkup__smartreflex0,
783 &am43xx_l4_wkup__smartreflex1,
784 &am43xx_l4_wkup__timer1,
785 &am43xx_l4_wkup__adc_tsc,
787 &am33xx_l4_per__dcan0,
788 &am33xx_l4_per__dcan1,
789 &am33xx_l4_ls__timer2,
790 &am33xx_l4_ls__timer3,
791 &am33xx_l4_ls__timer4,
792 &am33xx_l4_ls__timer5,
793 &am33xx_l4_ls__timer6,
794 &am33xx_l4_ls__timer7,
795 &am33xx_l3_main__tpcc,
796 &am33xx_l4_ls__spinlock,
798 &am33xx_l4_ls__epwmss0,
799 &am33xx_l4_ls__epwmss1,
800 &am33xx_l4_ls__epwmss2,
802 &am33xx_l4_ls__mcspi0,
803 &am33xx_l4_ls__mcspi1,
804 &am33xx_l3_main__tptc0,
805 &am33xx_l3_main__tptc1,
806 &am33xx_l3_main__tptc2,
807 &am33xx_l3_main__ocmc,
808 &am33xx_l3_main__sha0,
809 &am33xx_l3_main__aes0,
810 &am43xx_l3_main__des,
811 &am43xx_l4_ls__ocp2scp0,
812 &am43xx_l4_ls__ocp2scp1,
813 &am43xx_l3_s__usbotgss0,
814 &am43xx_l3_s__usbotgss1,
815 &am43xx_dss__l3_main,
817 &am43xx_l4_ls__dss_dispc,
818 &am43xx_l4_ls__dss_rfbi,
821 &am43xx_l4_ls__vpfe0,
822 &am43xx_l4_ls__vpfe1,
826 static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
827 &am33xx_l4_wkup__rtc,
831 int __init am43xx_hwmod_init(void)
835 omap_hwmod_am43xx_reg();
837 ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
839 if (!ret && of_machine_is_compatible("ti,am4372"))
840 ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);