1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap_hwmod_2xxx_interconnect_data.c - common interconnect data for OMAP2xxx
5 * Copyright (C) 2009-2011 Nokia Corporation
8 * XXX handle crossbar/shared link difference for L3?
9 * XXX these should be marked initdata for multi-OMAP kernels
11 #include <linux/sizes.h>
13 #include "omap_hwmod.h"
17 #include "omap_hwmod_common_data.h"
20 * Common interconnect data
23 /* L3 -> L4_CORE interface */
24 struct omap_hwmod_ocp_if omap2xxx_l3_main__l4_core
= {
25 .master
= &omap2xxx_l3_main_hwmod
,
26 .slave
= &omap2xxx_l4_core_hwmod
,
27 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
30 /* MPU -> L3 interface */
31 struct omap_hwmod_ocp_if omap2xxx_mpu__l3_main
= {
32 .master
= &omap2xxx_mpu_hwmod
,
33 .slave
= &omap2xxx_l3_main_hwmod
,
38 struct omap_hwmod_ocp_if omap2xxx_dss__l3
= {
39 .master
= &omap2xxx_dss_core_hwmod
,
40 .slave
= &omap2xxx_l3_main_hwmod
,
43 .l3_perm_bit
= OMAP2_L3_CORE_FW_CONNID_DSS
,
44 .flags
= OMAP_FIREWALL_L3
,
47 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
50 /* L4_CORE -> L4_WKUP interface */
51 struct omap_hwmod_ocp_if omap2xxx_l4_core__l4_wkup
= {
52 .master
= &omap2xxx_l4_core_hwmod
,
53 .slave
= &omap2xxx_l4_wkup_hwmod
,
54 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
57 /* L4 CORE -> UART1 interface */
58 struct omap_hwmod_ocp_if omap2_l4_core__uart1
= {
59 .master
= &omap2xxx_l4_core_hwmod
,
60 .slave
= &omap2xxx_uart1_hwmod
,
62 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
65 /* L4 CORE -> UART2 interface */
66 struct omap_hwmod_ocp_if omap2_l4_core__uart2
= {
67 .master
= &omap2xxx_l4_core_hwmod
,
68 .slave
= &omap2xxx_uart2_hwmod
,
70 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
73 /* L4 PER -> UART3 interface */
74 struct omap_hwmod_ocp_if omap2_l4_core__uart3
= {
75 .master
= &omap2xxx_l4_core_hwmod
,
76 .slave
= &omap2xxx_uart3_hwmod
,
78 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
81 /* l4 core -> mcspi1 interface */
82 struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1
= {
83 .master
= &omap2xxx_l4_core_hwmod
,
84 .slave
= &omap2xxx_mcspi1_hwmod
,
86 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
89 /* l4 core -> mcspi2 interface */
90 struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2
= {
91 .master
= &omap2xxx_l4_core_hwmod
,
92 .slave
= &omap2xxx_mcspi2_hwmod
,
94 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
97 /* l4_core -> timer3 */
98 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3
= {
99 .master
= &omap2xxx_l4_core_hwmod
,
100 .slave
= &omap2xxx_timer3_hwmod
,
102 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
105 /* l4_core -> timer4 */
106 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4
= {
107 .master
= &omap2xxx_l4_core_hwmod
,
108 .slave
= &omap2xxx_timer4_hwmod
,
110 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
113 /* l4_core -> timer5 */
114 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5
= {
115 .master
= &omap2xxx_l4_core_hwmod
,
116 .slave
= &omap2xxx_timer5_hwmod
,
118 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
121 /* l4_core -> timer6 */
122 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6
= {
123 .master
= &omap2xxx_l4_core_hwmod
,
124 .slave
= &omap2xxx_timer6_hwmod
,
126 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
129 /* l4_core -> timer7 */
130 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7
= {
131 .master
= &omap2xxx_l4_core_hwmod
,
132 .slave
= &omap2xxx_timer7_hwmod
,
134 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
137 /* l4_core -> timer8 */
138 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8
= {
139 .master
= &omap2xxx_l4_core_hwmod
,
140 .slave
= &omap2xxx_timer8_hwmod
,
142 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
145 /* l4_core -> timer9 */
146 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9
= {
147 .master
= &omap2xxx_l4_core_hwmod
,
148 .slave
= &omap2xxx_timer9_hwmod
,
150 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
153 /* l4_core -> timer10 */
154 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10
= {
155 .master
= &omap2xxx_l4_core_hwmod
,
156 .slave
= &omap2xxx_timer10_hwmod
,
158 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
161 /* l4_core -> timer11 */
162 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11
= {
163 .master
= &omap2xxx_l4_core_hwmod
,
164 .slave
= &omap2xxx_timer11_hwmod
,
166 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
169 /* l4_core -> timer12 */
170 struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12
= {
171 .master
= &omap2xxx_l4_core_hwmod
,
172 .slave
= &omap2xxx_timer12_hwmod
,
174 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
178 struct omap_hwmod_ocp_if omap2xxx_l4_core__dss
= {
179 .master
= &omap2xxx_l4_core_hwmod
,
180 .slave
= &omap2xxx_dss_core_hwmod
,
184 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_CORE_REGION
,
185 .flags
= OMAP_FIREWALL_L4
,
188 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
191 /* l4_core -> dss_dispc */
192 struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc
= {
193 .master
= &omap2xxx_l4_core_hwmod
,
194 .slave
= &omap2xxx_dss_dispc_hwmod
,
198 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_DISPC_REGION
,
199 .flags
= OMAP_FIREWALL_L4
,
202 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
205 /* l4_core -> dss_rfbi */
206 struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi
= {
207 .master
= &omap2xxx_l4_core_hwmod
,
208 .slave
= &omap2xxx_dss_rfbi_hwmod
,
212 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_CORE_REGION
,
213 .flags
= OMAP_FIREWALL_L4
,
216 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
219 /* l4_core -> dss_venc */
220 struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc
= {
221 .master
= &omap2xxx_l4_core_hwmod
,
222 .slave
= &omap2xxx_dss_venc_hwmod
,
226 .l4_fw_region
= OMAP2420_L4_CORE_FW_DSS_VENC_REGION
,
227 .flags
= OMAP_FIREWALL_L4
,
230 .flags
= OCPIF_SWSUP_IDLE
,
231 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
235 struct omap_hwmod_ocp_if omap2xxx_l4_core__rng
= {
236 .master
= &omap2xxx_l4_core_hwmod
,
237 .slave
= &omap2xxx_rng_hwmod
,
239 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
242 /* l4 core -> sham interface */
243 struct omap_hwmod_ocp_if omap2xxx_l4_core__sham
= {
244 .master
= &omap2xxx_l4_core_hwmod
,
245 .slave
= &omap2xxx_sham_hwmod
,
247 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
250 /* l4 core -> aes interface */
251 struct omap_hwmod_ocp_if omap2xxx_l4_core__aes
= {
252 .master
= &omap2xxx_l4_core_hwmod
,
253 .slave
= &omap2xxx_aes_hwmod
,
255 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,