1 // SPDX-License-Identifier: GPL-2.0-only
3 * Hardware modules present on the DRA7xx chips
5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
19 #include "omap_hwmod.h"
20 #include "omap_hwmod_common_data.h"
26 /* Base offset for all DRA7XX interrupts external to MPUSS */
27 #define DRA7XX_IRQ_GIC_START 32
37 static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
42 static struct omap_hwmod dra7xx_dmm_hwmod = {
44 .class = &dra7xx_dmm_hwmod_class,
45 .clkdm_name = "emif_clkdm",
48 .clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
49 .context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
56 * instance(s): l3_instr, l3_main_1, l3_main_2
58 static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
63 static struct omap_hwmod dra7xx_l3_instr_hwmod = {
65 .class = &dra7xx_l3_hwmod_class,
66 .clkdm_name = "l3instr_clkdm",
69 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
70 .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
71 .modulemode = MODULEMODE_HWCTRL,
77 static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
79 .class = &dra7xx_l3_hwmod_class,
80 .clkdm_name = "l3main1_clkdm",
83 .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
84 .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
90 static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
92 .class = &dra7xx_l3_hwmod_class,
93 .clkdm_name = "l3instr_clkdm",
96 .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
97 .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
98 .modulemode = MODULEMODE_HWCTRL,
105 * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
107 static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
112 static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
114 .class = &dra7xx_l4_hwmod_class,
115 .clkdm_name = "l4cfg_clkdm",
118 .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
119 .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
125 static struct omap_hwmod dra7xx_l4_per1_hwmod = {
127 .class = &dra7xx_l4_hwmod_class,
128 .clkdm_name = "l4per_clkdm",
131 .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
132 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
138 static struct omap_hwmod dra7xx_l4_per2_hwmod = {
140 .class = &dra7xx_l4_hwmod_class,
141 .clkdm_name = "l4per2_clkdm",
144 .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
145 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
151 static struct omap_hwmod dra7xx_l4_per3_hwmod = {
153 .class = &dra7xx_l4_hwmod_class,
154 .clkdm_name = "l4per3_clkdm",
157 .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
158 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
164 static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
166 .class = &dra7xx_l4_hwmod_class,
167 .clkdm_name = "wkupaon_clkdm",
170 .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
171 .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
181 static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
186 static struct omap_hwmod dra7xx_atl_hwmod = {
188 .class = &dra7xx_atl_hwmod_class,
189 .clkdm_name = "atl_clkdm",
190 .main_clk = "atl_gfclk_mux",
193 .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
194 .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
195 .modulemode = MODULEMODE_SWCTRL,
205 static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
210 static struct omap_hwmod dra7xx_bb2d_hwmod = {
212 .class = &dra7xx_bb2d_hwmod_class,
213 .clkdm_name = "dss_clkdm",
214 .main_clk = "dpll_core_h24x2_ck",
217 .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
218 .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
219 .modulemode = MODULEMODE_SWCTRL,
225 * 'ctrl_module' class
229 static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
230 .name = "ctrl_module",
233 /* ctrl_module_wkup */
234 static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
235 .name = "ctrl_module_wkup",
236 .class = &dra7xx_ctrl_module_hwmod_class,
237 .clkdm_name = "wkupaon_clkdm",
240 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
250 static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
254 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
255 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
256 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
257 .sysc_fields = &omap_hwmod_sysc_type1,
260 static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
262 .sysc = &dra7xx_gpmc_sysc,
267 static struct omap_hwmod dra7xx_gpmc_hwmod = {
269 .class = &dra7xx_gpmc_hwmod_class,
270 .clkdm_name = "l3main1_clkdm",
271 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
272 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
273 .main_clk = "l3_iclk_div",
276 .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
277 .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
278 .modulemode = MODULEMODE_HWCTRL,
290 static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
295 static struct omap_hwmod dra7xx_mpu_hwmod = {
297 .class = &dra7xx_mpu_hwmod_class,
298 .clkdm_name = "mpu_clkdm",
299 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
300 .main_clk = "dpll_mpu_m2_ck",
303 .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
304 .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
316 * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
317 * functionality of OMAP HWMOD layer does not deassert the hardreset lines
318 * associated with an IP automatically leaving the driver to handle that
319 * by itself. This does not work for PCIeSS which needs the reset lines
320 * deasserted for the driver to start accessing registers.
322 * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
323 * lines after asserting them.
325 int dra7xx_pciess_reset(struct omap_hwmod *oh)
329 for (i = 0; i < oh->rst_lines_cnt; i++) {
330 omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
331 omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
337 static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
339 .reset = dra7xx_pciess_reset,
343 static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
344 { .name = "pcie", .rst_shift = 0 },
347 static struct omap_hwmod dra7xx_pciess1_hwmod = {
349 .class = &dra7xx_pciess_hwmod_class,
350 .clkdm_name = "pcie_clkdm",
351 .rst_lines = dra7xx_pciess1_resets,
352 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
353 .main_clk = "l4_root_clk_div",
356 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
357 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
358 .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
359 .modulemode = MODULEMODE_SWCTRL,
365 static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
366 { .name = "pcie", .rst_shift = 1 },
370 static struct omap_hwmod dra7xx_pciess2_hwmod = {
372 .class = &dra7xx_pciess_hwmod_class,
373 .clkdm_name = "pcie_clkdm",
374 .rst_lines = dra7xx_pciess2_resets,
375 .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
376 .main_clk = "l4_root_clk_div",
379 .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
380 .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
381 .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
382 .modulemode = MODULEMODE_SWCTRL,
392 static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
395 .sysc_flags = SYSC_HAS_SIDLEMODE,
396 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
398 .sysc_fields = &omap_hwmod_sysc_type2,
401 static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
403 .sysc = &dra7xx_qspi_sysc,
407 static struct omap_hwmod dra7xx_qspi_hwmod = {
409 .class = &dra7xx_qspi_hwmod_class,
410 .clkdm_name = "l4per2_clkdm",
411 .main_clk = "qspi_gfclk_div",
414 .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
415 .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
416 .modulemode = MODULEMODE_SWCTRL,
426 static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
429 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
430 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
431 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
432 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
433 .sysc_fields = &omap_hwmod_sysc_type2,
436 static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
438 .sysc = &dra7xx_sata_sysc,
443 static struct omap_hwmod dra7xx_sata_hwmod = {
445 .class = &dra7xx_sata_hwmod_class,
446 .clkdm_name = "l3init_clkdm",
447 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
448 .main_clk = "func_48m_fclk",
452 .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
453 .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
454 .modulemode = MODULEMODE_SWCTRL,
464 static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
469 static struct omap_hwmod dra7xx_vcp1_hwmod = {
471 .class = &dra7xx_vcp_hwmod_class,
472 .clkdm_name = "l3main1_clkdm",
473 .main_clk = "l3_iclk_div",
476 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
477 .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
483 static struct omap_hwmod dra7xx_vcp2_hwmod = {
485 .class = &dra7xx_vcp_hwmod_class,
486 .clkdm_name = "l3main1_clkdm",
487 .main_clk = "l3_iclk_div",
490 .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
491 .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
502 /* l3_main_1 -> dmm */
503 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
504 .master = &dra7xx_l3_main_1_hwmod,
505 .slave = &dra7xx_dmm_hwmod,
506 .clk = "l3_iclk_div",
507 .user = OCP_USER_SDMA,
510 /* l3_main_2 -> l3_instr */
511 static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
512 .master = &dra7xx_l3_main_2_hwmod,
513 .slave = &dra7xx_l3_instr_hwmod,
514 .clk = "l3_iclk_div",
515 .user = OCP_USER_MPU | OCP_USER_SDMA,
518 /* l4_cfg -> l3_main_1 */
519 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
520 .master = &dra7xx_l4_cfg_hwmod,
521 .slave = &dra7xx_l3_main_1_hwmod,
522 .clk = "l3_iclk_div",
523 .user = OCP_USER_MPU | OCP_USER_SDMA,
526 /* mpu -> l3_main_1 */
527 static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
528 .master = &dra7xx_mpu_hwmod,
529 .slave = &dra7xx_l3_main_1_hwmod,
530 .clk = "l3_iclk_div",
531 .user = OCP_USER_MPU,
534 /* l3_main_1 -> l3_main_2 */
535 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
536 .master = &dra7xx_l3_main_1_hwmod,
537 .slave = &dra7xx_l3_main_2_hwmod,
538 .clk = "l3_iclk_div",
539 .user = OCP_USER_MPU,
542 /* l4_cfg -> l3_main_2 */
543 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
544 .master = &dra7xx_l4_cfg_hwmod,
545 .slave = &dra7xx_l3_main_2_hwmod,
546 .clk = "l3_iclk_div",
547 .user = OCP_USER_MPU | OCP_USER_SDMA,
550 /* l3_main_1 -> l4_cfg */
551 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
552 .master = &dra7xx_l3_main_1_hwmod,
553 .slave = &dra7xx_l4_cfg_hwmod,
554 .clk = "l3_iclk_div",
555 .user = OCP_USER_MPU | OCP_USER_SDMA,
558 /* l3_main_1 -> l4_per1 */
559 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
560 .master = &dra7xx_l3_main_1_hwmod,
561 .slave = &dra7xx_l4_per1_hwmod,
562 .clk = "l3_iclk_div",
563 .user = OCP_USER_MPU | OCP_USER_SDMA,
566 /* l3_main_1 -> l4_per2 */
567 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
568 .master = &dra7xx_l3_main_1_hwmod,
569 .slave = &dra7xx_l4_per2_hwmod,
570 .clk = "l3_iclk_div",
571 .user = OCP_USER_MPU | OCP_USER_SDMA,
574 /* l3_main_1 -> l4_per3 */
575 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
576 .master = &dra7xx_l3_main_1_hwmod,
577 .slave = &dra7xx_l4_per3_hwmod,
578 .clk = "l3_iclk_div",
579 .user = OCP_USER_MPU | OCP_USER_SDMA,
582 /* l3_main_1 -> l4_wkup */
583 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
584 .master = &dra7xx_l3_main_1_hwmod,
585 .slave = &dra7xx_l4_wkup_hwmod,
586 .clk = "wkupaon_iclk_mux",
587 .user = OCP_USER_MPU | OCP_USER_SDMA,
591 static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
592 .master = &dra7xx_l4_per2_hwmod,
593 .slave = &dra7xx_atl_hwmod,
594 .clk = "l3_iclk_div",
595 .user = OCP_USER_MPU | OCP_USER_SDMA,
598 /* l3_main_1 -> bb2d */
599 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
600 .master = &dra7xx_l3_main_1_hwmod,
601 .slave = &dra7xx_bb2d_hwmod,
602 .clk = "l3_iclk_div",
603 .user = OCP_USER_MPU | OCP_USER_SDMA,
606 /* l4_wkup -> ctrl_module_wkup */
607 static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
608 .master = &dra7xx_l4_wkup_hwmod,
609 .slave = &dra7xx_ctrl_module_wkup_hwmod,
610 .clk = "wkupaon_iclk_mux",
611 .user = OCP_USER_MPU | OCP_USER_SDMA,
614 /* l3_main_1 -> gpmc */
615 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
616 .master = &dra7xx_l3_main_1_hwmod,
617 .slave = &dra7xx_gpmc_hwmod,
618 .clk = "l3_iclk_div",
619 .user = OCP_USER_MPU | OCP_USER_SDMA,
623 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
624 .master = &dra7xx_l4_cfg_hwmod,
625 .slave = &dra7xx_mpu_hwmod,
626 .clk = "l3_iclk_div",
627 .user = OCP_USER_MPU | OCP_USER_SDMA,
630 /* l3_main_1 -> pciess1 */
631 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
632 .master = &dra7xx_l3_main_1_hwmod,
633 .slave = &dra7xx_pciess1_hwmod,
634 .clk = "l3_iclk_div",
635 .user = OCP_USER_MPU | OCP_USER_SDMA,
638 /* l4_cfg -> pciess1 */
639 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
640 .master = &dra7xx_l4_cfg_hwmod,
641 .slave = &dra7xx_pciess1_hwmod,
642 .clk = "l4_root_clk_div",
643 .user = OCP_USER_MPU | OCP_USER_SDMA,
646 /* l3_main_1 -> pciess2 */
647 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
648 .master = &dra7xx_l3_main_1_hwmod,
649 .slave = &dra7xx_pciess2_hwmod,
650 .clk = "l3_iclk_div",
651 .user = OCP_USER_MPU | OCP_USER_SDMA,
654 /* l4_cfg -> pciess2 */
655 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
656 .master = &dra7xx_l4_cfg_hwmod,
657 .slave = &dra7xx_pciess2_hwmod,
658 .clk = "l4_root_clk_div",
659 .user = OCP_USER_MPU | OCP_USER_SDMA,
662 /* l3_main_1 -> qspi */
663 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
664 .master = &dra7xx_l3_main_1_hwmod,
665 .slave = &dra7xx_qspi_hwmod,
666 .clk = "l3_iclk_div",
667 .user = OCP_USER_MPU | OCP_USER_SDMA,
671 static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
672 .master = &dra7xx_l4_cfg_hwmod,
673 .slave = &dra7xx_sata_hwmod,
674 .clk = "l3_iclk_div",
675 .user = OCP_USER_MPU | OCP_USER_SDMA,
678 /* l3_main_1 -> vcp1 */
679 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
680 .master = &dra7xx_l3_main_1_hwmod,
681 .slave = &dra7xx_vcp1_hwmod,
682 .clk = "l3_iclk_div",
683 .user = OCP_USER_MPU | OCP_USER_SDMA,
686 /* l4_per2 -> vcp1 */
687 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
688 .master = &dra7xx_l4_per2_hwmod,
689 .slave = &dra7xx_vcp1_hwmod,
690 .clk = "l3_iclk_div",
691 .user = OCP_USER_MPU | OCP_USER_SDMA,
694 /* l3_main_1 -> vcp2 */
695 static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
696 .master = &dra7xx_l3_main_1_hwmod,
697 .slave = &dra7xx_vcp2_hwmod,
698 .clk = "l3_iclk_div",
699 .user = OCP_USER_MPU | OCP_USER_SDMA,
702 /* l4_per2 -> vcp2 */
703 static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
704 .master = &dra7xx_l4_per2_hwmod,
705 .slave = &dra7xx_vcp2_hwmod,
706 .clk = "l3_iclk_div",
707 .user = OCP_USER_MPU | OCP_USER_SDMA,
710 static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
711 &dra7xx_l3_main_1__dmm,
712 &dra7xx_l3_main_2__l3_instr,
713 &dra7xx_l4_cfg__l3_main_1,
714 &dra7xx_mpu__l3_main_1,
715 &dra7xx_l3_main_1__l3_main_2,
716 &dra7xx_l4_cfg__l3_main_2,
717 &dra7xx_l3_main_1__l4_cfg,
718 &dra7xx_l3_main_1__l4_per1,
719 &dra7xx_l3_main_1__l4_per2,
720 &dra7xx_l3_main_1__l4_per3,
721 &dra7xx_l3_main_1__l4_wkup,
722 &dra7xx_l4_per2__atl,
723 &dra7xx_l3_main_1__bb2d,
724 &dra7xx_l4_wkup__ctrl_module_wkup,
725 &dra7xx_l3_main_1__gpmc,
727 &dra7xx_l3_main_1__pciess1,
728 &dra7xx_l4_cfg__pciess1,
729 &dra7xx_l3_main_1__pciess2,
730 &dra7xx_l4_cfg__pciess2,
731 &dra7xx_l3_main_1__qspi,
732 &dra7xx_l4_cfg__sata,
733 &dra7xx_l3_main_1__vcp1,
734 &dra7xx_l4_per2__vcp1,
735 &dra7xx_l3_main_1__vcp2,
736 &dra7xx_l4_per2__vcp2,
740 /* SoC variant specific hwmod links */
741 static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
745 static struct omap_hwmod_ocp_if *rtc_hwmod_ocp_ifs[] __initdata = {
749 int __init dra7xx_hwmod_init(void)
754 ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
756 if (!ret && soc_is_dra74x()) {
757 ret = omap_hwmod_register_links(rtc_hwmod_ocp_ifs);
758 } else if (!ret && soc_is_dra72x()) {
759 ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
760 if (!ret && !of_machine_is_compatible("ti,dra718"))
761 ret = omap_hwmod_register_links(rtc_hwmod_ocp_ifs);
762 } else if (!ret && soc_is_dra76x()) {
763 if (!ret && soc_is_dra76x_abz())
764 ret = omap_hwmod_register_links(rtc_hwmod_ocp_ifs);