]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c
UBUNTU: SAUCE: (no-up) s390: fix rwlock implementation
[mirror_ubuntu-artful-kernel.git] / arch / arm / mach-omap2 / omap_hwmod_2xxx_interconnect_data.c
CommitLineData
ded11383
PW
1/*
2 * omap_hwmod_2xxx_interconnect_data.c - common interconnect data for OMAP2xxx
3 *
4 * Copyright (C) 2009-2011 Nokia Corporation
5 * Paul Walmsley
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * XXX handle crossbar/shared link difference for L3?
12 * XXX these should be marked initdata for multi-OMAP kernels
13 */
14#include <asm/sizes.h>
15
2a296c8f 16#include "omap_hwmod.h"
1e0f51a9 17#include "l3_2xxx.h"
70606b1c 18#include "l4_2xxx.h"
3d82cbbb 19#include "serial.h"
ded11383
PW
20
21#include "omap_hwmod_common_data.h"
22
6a29755f
PW
23/*
24 * Common interconnect data
25 */
26
27/* L3 -> L4_CORE interface */
28struct omap_hwmod_ocp_if omap2xxx_l3_main__l4_core = {
29 .master = &omap2xxx_l3_main_hwmod,
30 .slave = &omap2xxx_l4_core_hwmod,
31 .user = OCP_USER_MPU | OCP_USER_SDMA,
32};
33
34/* MPU -> L3 interface */
35struct omap_hwmod_ocp_if omap2xxx_mpu__l3_main = {
36 .master = &omap2xxx_mpu_hwmod,
37 .slave = &omap2xxx_l3_main_hwmod,
38 .user = OCP_USER_MPU,
39};
40
41/* DSS -> l3 */
42struct omap_hwmod_ocp_if omap2xxx_dss__l3 = {
43 .master = &omap2xxx_dss_core_hwmod,
44 .slave = &omap2xxx_l3_main_hwmod,
45 .fw = {
46 .omap2 = {
47 .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
48 .flags = OMAP_FIREWALL_L3,
b05ef215 49 },
6a29755f
PW
50 },
51 .user = OCP_USER_MPU | OCP_USER_SDMA,
52};
53
54/* L4_CORE -> L4_WKUP interface */
55struct omap_hwmod_ocp_if omap2xxx_l4_core__l4_wkup = {
56 .master = &omap2xxx_l4_core_hwmod,
57 .slave = &omap2xxx_l4_wkup_hwmod,
58 .user = OCP_USER_MPU | OCP_USER_SDMA,
59};
60
61/* L4 CORE -> UART1 interface */
62struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
63 .master = &omap2xxx_l4_core_hwmod,
64 .slave = &omap2xxx_uart1_hwmod,
65 .clk = "uart1_ick",
6a29755f
PW
66 .user = OCP_USER_MPU | OCP_USER_SDMA,
67};
68
69/* L4 CORE -> UART2 interface */
70struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
71 .master = &omap2xxx_l4_core_hwmod,
72 .slave = &omap2xxx_uart2_hwmod,
73 .clk = "uart2_ick",
6a29755f
PW
74 .user = OCP_USER_MPU | OCP_USER_SDMA,
75};
76
77/* L4 PER -> UART3 interface */
78struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
79 .master = &omap2xxx_l4_core_hwmod,
80 .slave = &omap2xxx_uart3_hwmod,
81 .clk = "uart3_ick",
6a29755f
PW
82 .user = OCP_USER_MPU | OCP_USER_SDMA,
83};
84
85/* l4 core -> mcspi1 interface */
86struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1 = {
87 .master = &omap2xxx_l4_core_hwmod,
88 .slave = &omap2xxx_mcspi1_hwmod,
89 .clk = "mcspi1_ick",
6a29755f
PW
90 .user = OCP_USER_MPU | OCP_USER_SDMA,
91};
92
93/* l4 core -> mcspi2 interface */
94struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2 = {
95 .master = &omap2xxx_l4_core_hwmod,
96 .slave = &omap2xxx_mcspi2_hwmod,
97 .clk = "mcspi2_ick",
6a29755f
PW
98 .user = OCP_USER_MPU | OCP_USER_SDMA,
99};
100
101/* l4_core -> timer2 */
102struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2 = {
103 .master = &omap2xxx_l4_core_hwmod,
104 .slave = &omap2xxx_timer2_hwmod,
105 .clk = "gpt2_ick",
6a29755f
PW
106 .user = OCP_USER_MPU | OCP_USER_SDMA,
107};
108
109/* l4_core -> timer3 */
110struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3 = {
111 .master = &omap2xxx_l4_core_hwmod,
112 .slave = &omap2xxx_timer3_hwmod,
113 .clk = "gpt3_ick",
6a29755f
PW
114 .user = OCP_USER_MPU | OCP_USER_SDMA,
115};
116
117/* l4_core -> timer4 */
118struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4 = {
119 .master = &omap2xxx_l4_core_hwmod,
120 .slave = &omap2xxx_timer4_hwmod,
121 .clk = "gpt4_ick",
6a29755f
PW
122 .user = OCP_USER_MPU | OCP_USER_SDMA,
123};
124
125/* l4_core -> timer5 */
126struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5 = {
127 .master = &omap2xxx_l4_core_hwmod,
128 .slave = &omap2xxx_timer5_hwmod,
129 .clk = "gpt5_ick",
6a29755f
PW
130 .user = OCP_USER_MPU | OCP_USER_SDMA,
131};
132
133/* l4_core -> timer6 */
134struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6 = {
135 .master = &omap2xxx_l4_core_hwmod,
136 .slave = &omap2xxx_timer6_hwmod,
137 .clk = "gpt6_ick",
6a29755f
PW
138 .user = OCP_USER_MPU | OCP_USER_SDMA,
139};
140
141/* l4_core -> timer7 */
142struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7 = {
143 .master = &omap2xxx_l4_core_hwmod,
144 .slave = &omap2xxx_timer7_hwmod,
145 .clk = "gpt7_ick",
6a29755f
PW
146 .user = OCP_USER_MPU | OCP_USER_SDMA,
147};
148
149/* l4_core -> timer8 */
150struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8 = {
151 .master = &omap2xxx_l4_core_hwmod,
152 .slave = &omap2xxx_timer8_hwmod,
153 .clk = "gpt8_ick",
6a29755f
PW
154 .user = OCP_USER_MPU | OCP_USER_SDMA,
155};
156
157/* l4_core -> timer9 */
158struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9 = {
159 .master = &omap2xxx_l4_core_hwmod,
160 .slave = &omap2xxx_timer9_hwmod,
161 .clk = "gpt9_ick",
6a29755f
PW
162 .user = OCP_USER_MPU | OCP_USER_SDMA,
163};
164
165/* l4_core -> timer10 */
166struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10 = {
167 .master = &omap2xxx_l4_core_hwmod,
168 .slave = &omap2xxx_timer10_hwmod,
169 .clk = "gpt10_ick",
6a29755f
PW
170 .user = OCP_USER_MPU | OCP_USER_SDMA,
171};
172
173/* l4_core -> timer11 */
174struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11 = {
175 .master = &omap2xxx_l4_core_hwmod,
176 .slave = &omap2xxx_timer11_hwmod,
177 .clk = "gpt11_ick",
6a29755f
PW
178 .user = OCP_USER_MPU | OCP_USER_SDMA,
179};
180
181/* l4_core -> timer12 */
182struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12 = {
183 .master = &omap2xxx_l4_core_hwmod,
184 .slave = &omap2xxx_timer12_hwmod,
185 .clk = "gpt12_ick",
6a29755f
PW
186 .user = OCP_USER_MPU | OCP_USER_SDMA,
187};
188
189/* l4_core -> dss */
190struct omap_hwmod_ocp_if omap2xxx_l4_core__dss = {
191 .master = &omap2xxx_l4_core_hwmod,
192 .slave = &omap2xxx_dss_core_hwmod,
193 .clk = "dss_ick",
6a29755f
PW
194 .fw = {
195 .omap2 = {
196 .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION,
197 .flags = OMAP_FIREWALL_L4,
b05ef215 198 },
6a29755f
PW
199 },
200 .user = OCP_USER_MPU | OCP_USER_SDMA,
201};
202
203/* l4_core -> dss_dispc */
204struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc = {
205 .master = &omap2xxx_l4_core_hwmod,
206 .slave = &omap2xxx_dss_dispc_hwmod,
207 .clk = "dss_ick",
6a29755f
PW
208 .fw = {
209 .omap2 = {
210 .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_DISPC_REGION,
211 .flags = OMAP_FIREWALL_L4,
b05ef215 212 },
6a29755f
PW
213 },
214 .user = OCP_USER_MPU | OCP_USER_SDMA,
215};
216
217/* l4_core -> dss_rfbi */
218struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi = {
219 .master = &omap2xxx_l4_core_hwmod,
220 .slave = &omap2xxx_dss_rfbi_hwmod,
221 .clk = "dss_ick",
6a29755f
PW
222 .fw = {
223 .omap2 = {
224 .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION,
225 .flags = OMAP_FIREWALL_L4,
b05ef215 226 },
6a29755f
PW
227 },
228 .user = OCP_USER_MPU | OCP_USER_SDMA,
229};
230
231/* l4_core -> dss_venc */
232struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc = {
233 .master = &omap2xxx_l4_core_hwmod,
234 .slave = &omap2xxx_dss_venc_hwmod,
235 .clk = "dss_ick",
6a29755f
PW
236 .fw = {
237 .omap2 = {
238 .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_VENC_REGION,
239 .flags = OMAP_FIREWALL_L4,
b05ef215 240 },
6a29755f
PW
241 },
242 .flags = OCPIF_SWSUP_IDLE,
243 .user = OCP_USER_MPU | OCP_USER_SDMA,
244};
ded11383 245
e9b0a2fb
PW
246/* l4_core -> rng */
247struct omap_hwmod_ocp_if omap2xxx_l4_core__rng = {
248 .master = &omap2xxx_l4_core_hwmod,
249 .slave = &omap2xxx_rng_hwmod,
250 .clk = "rng_ick",
e9b0a2fb
PW
251 .user = OCP_USER_MPU | OCP_USER_SDMA,
252};
e569e994
MG
253
254/* l4 core -> sham interface */
255struct omap_hwmod_ocp_if omap2xxx_l4_core__sham = {
256 .master = &omap2xxx_l4_core_hwmod,
257 .slave = &omap2xxx_sham_hwmod,
258 .clk = "sha_ick",
fa7807b4 259 .user = OCP_USER_MPU | OCP_USER_SDMA,
e569e994 260};
660ffd6b
MG
261
262/* l4 core -> aes interface */
263struct omap_hwmod_ocp_if omap2xxx_l4_core__aes = {
264 .master = &omap2xxx_l4_core_hwmod,
265 .slave = &omap2xxx_aes_hwmod,
266 .clk = "aes_ick",
660ffd6b
MG
267 .user = OCP_USER_MPU | OCP_USER_SDMA,
268};