3 * Copyright (C) 2013 Texas Instruments Incorporated
5 * Interconnects common for AM335x and AM43x
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 <linux/sizes.h>
18 #include "omap_hwmod.h"
19 #include "omap_hwmod_33xx_43xx_common_data.h"
22 struct omap_hwmod_ocp_if am33xx_mpu__l3_main
= {
23 .master
= &am33xx_mpu_hwmod
,
24 .slave
= &am33xx_l3_main_hwmod
,
25 .clk
= "dpll_mpu_m2_ck",
30 struct omap_hwmod_ocp_if am33xx_l3_main__l3_s
= {
31 .master
= &am33xx_l3_main_hwmod
,
32 .slave
= &am33xx_l3_s_hwmod
,
34 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
37 /* l3 s -> l4 per/ls */
38 struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls
= {
39 .master
= &am33xx_l3_s_hwmod
,
40 .slave
= &am33xx_l4_ls_hwmod
,
42 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
46 struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup
= {
47 .master
= &am33xx_l3_s_hwmod
,
48 .slave
= &am33xx_l4_wkup_hwmod
,
50 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
53 /* l3 main -> l3 instr */
54 struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr
= {
55 .master
= &am33xx_l3_main_hwmod
,
56 .slave
= &am33xx_l3_instr_hwmod
,
58 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
62 struct omap_hwmod_ocp_if am33xx_mpu__prcm
= {
63 .master
= &am33xx_mpu_hwmod
,
64 .slave
= &am33xx_prcm_hwmod
,
65 .clk
= "dpll_mpu_m2_ck",
66 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
70 struct omap_hwmod_ocp_if am33xx_l3_s__l3_main
= {
71 .master
= &am33xx_l3_s_hwmod
,
72 .slave
= &am33xx_l3_main_hwmod
,
74 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
77 /* pru-icss -> l3 main */
78 struct omap_hwmod_ocp_if am33xx_pruss__l3_main
= {
79 .master
= &am33xx_pruss_hwmod
,
80 .slave
= &am33xx_l3_main_hwmod
,
82 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
86 struct omap_hwmod_ocp_if am33xx_gfx__l3_main
= {
87 .master
= &am33xx_gfx_hwmod
,
88 .slave
= &am33xx_l3_main_hwmod
,
89 .clk
= "dpll_core_m4_ck",
90 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
94 struct omap_hwmod_ocp_if am33xx_l3_main__gfx
= {
95 .master
= &am33xx_l3_main_hwmod
,
96 .slave
= &am33xx_gfx_hwmod
,
97 .clk
= "dpll_core_m4_ck",
98 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
102 struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc
= {
103 .master
= &am33xx_l4_wkup_hwmod
,
104 .slave
= &am33xx_rtc_hwmod
,
105 .clk
= "clkdiv32k_ick",
106 .user
= OCP_USER_MPU
,
109 /* l4 per/ls -> DCAN0 */
110 struct omap_hwmod_ocp_if am33xx_l4_per__dcan0
= {
111 .master
= &am33xx_l4_ls_hwmod
,
112 .slave
= &am33xx_dcan0_hwmod
,
114 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
117 /* l4 per/ls -> DCAN1 */
118 struct omap_hwmod_ocp_if am33xx_l4_per__dcan1
= {
119 .master
= &am33xx_l4_ls_hwmod
,
120 .slave
= &am33xx_dcan1_hwmod
,
122 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
125 /* l4 per/ls -> GPIO2 */
126 struct omap_hwmod_ocp_if am33xx_l4_per__gpio1
= {
127 .master
= &am33xx_l4_ls_hwmod
,
128 .slave
= &am33xx_gpio1_hwmod
,
130 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
133 /* l4 per/ls -> gpio3 */
134 struct omap_hwmod_ocp_if am33xx_l4_per__gpio2
= {
135 .master
= &am33xx_l4_ls_hwmod
,
136 .slave
= &am33xx_gpio2_hwmod
,
138 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
141 /* l4 per/ls -> gpio4 */
142 struct omap_hwmod_ocp_if am33xx_l4_per__gpio3
= {
143 .master
= &am33xx_l4_ls_hwmod
,
144 .slave
= &am33xx_gpio3_hwmod
,
146 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
149 struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio
= {
150 .master
= &am33xx_cpgmac0_hwmod
,
151 .slave
= &am33xx_mdio_hwmod
,
152 .user
= OCP_USER_MPU
,
155 struct omap_hwmod_ocp_if am33xx_l4_ls__elm
= {
156 .master
= &am33xx_l4_ls_hwmod
,
157 .slave
= &am33xx_elm_hwmod
,
159 .user
= OCP_USER_MPU
,
162 static struct omap_hwmod_addr_space am33xx_epwmss0_addr_space
[] = {
164 .pa_start
= 0x48300000,
165 .pa_end
= 0x48300000 + SZ_16
- 1,
166 .flags
= ADDR_TYPE_RT
171 struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0
= {
172 .master
= &am33xx_l4_ls_hwmod
,
173 .slave
= &am33xx_epwmss0_hwmod
,
175 .addr
= am33xx_epwmss0_addr_space
,
176 .user
= OCP_USER_MPU
,
179 static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space
[] = {
181 .pa_start
= 0x48302000,
182 .pa_end
= 0x48302000 + SZ_16
- 1,
183 .flags
= ADDR_TYPE_RT
188 struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1
= {
189 .master
= &am33xx_l4_ls_hwmod
,
190 .slave
= &am33xx_epwmss1_hwmod
,
192 .addr
= am33xx_epwmss1_addr_space
,
193 .user
= OCP_USER_MPU
,
196 static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space
[] = {
198 .pa_start
= 0x48304000,
199 .pa_end
= 0x48304000 + SZ_16
- 1,
200 .flags
= ADDR_TYPE_RT
205 struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2
= {
206 .master
= &am33xx_l4_ls_hwmod
,
207 .slave
= &am33xx_epwmss2_hwmod
,
209 .addr
= am33xx_epwmss2_addr_space
,
210 .user
= OCP_USER_MPU
,
213 /* l3s cfg -> gpmc */
214 struct omap_hwmod_ocp_if am33xx_l3_s__gpmc
= {
215 .master
= &am33xx_l3_s_hwmod
,
216 .slave
= &am33xx_gpmc_hwmod
,
218 .user
= OCP_USER_MPU
,
222 struct omap_hwmod_ocp_if am33xx_l4_per__i2c2
= {
223 .master
= &am33xx_l4_ls_hwmod
,
224 .slave
= &am33xx_i2c2_hwmod
,
226 .user
= OCP_USER_MPU
,
229 struct omap_hwmod_ocp_if am33xx_l4_per__i2c3
= {
230 .master
= &am33xx_l4_ls_hwmod
,
231 .slave
= &am33xx_i2c3_hwmod
,
233 .user
= OCP_USER_MPU
,
236 /* l4 ls -> mailbox */
237 struct omap_hwmod_ocp_if am33xx_l4_per__mailbox
= {
238 .master
= &am33xx_l4_ls_hwmod
,
239 .slave
= &am33xx_mailbox_hwmod
,
241 .user
= OCP_USER_MPU
,
244 /* l4 ls -> spinlock */
245 struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock
= {
246 .master
= &am33xx_l4_ls_hwmod
,
247 .slave
= &am33xx_spinlock_hwmod
,
249 .user
= OCP_USER_MPU
,
252 /* l4 ls -> mcasp0 */
253 static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space
[] = {
255 .pa_start
= 0x48038000,
256 .pa_end
= 0x48038000 + SZ_8K
- 1,
257 .flags
= ADDR_TYPE_RT
262 struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0
= {
263 .master
= &am33xx_l4_ls_hwmod
,
264 .slave
= &am33xx_mcasp0_hwmod
,
266 .addr
= am33xx_mcasp0_addr_space
,
267 .user
= OCP_USER_MPU
,
270 /* l4 ls -> mcasp1 */
271 static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space
[] = {
273 .pa_start
= 0x4803C000,
274 .pa_end
= 0x4803C000 + SZ_8K
- 1,
275 .flags
= ADDR_TYPE_RT
280 struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1
= {
281 .master
= &am33xx_l4_ls_hwmod
,
282 .slave
= &am33xx_mcasp1_hwmod
,
284 .addr
= am33xx_mcasp1_addr_space
,
285 .user
= OCP_USER_MPU
,
289 static struct omap_hwmod_addr_space am33xx_mmc0_addr_space
[] = {
291 .pa_start
= 0x48060100,
292 .pa_end
= 0x48060100 + SZ_4K
- 1,
293 .flags
= ADDR_TYPE_RT
,
298 struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0
= {
299 .master
= &am33xx_l4_ls_hwmod
,
300 .slave
= &am33xx_mmc0_hwmod
,
302 .addr
= am33xx_mmc0_addr_space
,
303 .user
= OCP_USER_MPU
,
307 static struct omap_hwmod_addr_space am33xx_mmc1_addr_space
[] = {
309 .pa_start
= 0x481d8100,
310 .pa_end
= 0x481d8100 + SZ_4K
- 1,
311 .flags
= ADDR_TYPE_RT
,
316 struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1
= {
317 .master
= &am33xx_l4_ls_hwmod
,
318 .slave
= &am33xx_mmc1_hwmod
,
320 .addr
= am33xx_mmc1_addr_space
,
321 .user
= OCP_USER_MPU
,
325 static struct omap_hwmod_addr_space am33xx_mmc2_addr_space
[] = {
327 .pa_start
= 0x47810100,
328 .pa_end
= 0x47810100 + SZ_64K
- 1,
329 .flags
= ADDR_TYPE_RT
,
334 struct omap_hwmod_ocp_if am33xx_l3_s__mmc2
= {
335 .master
= &am33xx_l3_s_hwmod
,
336 .slave
= &am33xx_mmc2_hwmod
,
338 .addr
= am33xx_mmc2_addr_space
,
339 .user
= OCP_USER_MPU
,
342 /* l4 ls -> mcspi0 */
343 struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0
= {
344 .master
= &am33xx_l4_ls_hwmod
,
345 .slave
= &am33xx_spi0_hwmod
,
347 .user
= OCP_USER_MPU
,
350 /* l4 ls -> mcspi1 */
351 struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1
= {
352 .master
= &am33xx_l4_ls_hwmod
,
353 .slave
= &am33xx_spi1_hwmod
,
355 .user
= OCP_USER_MPU
,
358 /* l4 per -> timer2 */
359 struct omap_hwmod_ocp_if am33xx_l4_ls__timer2
= {
360 .master
= &am33xx_l4_ls_hwmod
,
361 .slave
= &am33xx_timer2_hwmod
,
363 .user
= OCP_USER_MPU
,
366 /* l4 per -> timer3 */
367 struct omap_hwmod_ocp_if am33xx_l4_ls__timer3
= {
368 .master
= &am33xx_l4_ls_hwmod
,
369 .slave
= &am33xx_timer3_hwmod
,
371 .user
= OCP_USER_MPU
,
374 /* l4 per -> timer4 */
375 struct omap_hwmod_ocp_if am33xx_l4_ls__timer4
= {
376 .master
= &am33xx_l4_ls_hwmod
,
377 .slave
= &am33xx_timer4_hwmod
,
379 .user
= OCP_USER_MPU
,
382 /* l4 per -> timer5 */
383 struct omap_hwmod_ocp_if am33xx_l4_ls__timer5
= {
384 .master
= &am33xx_l4_ls_hwmod
,
385 .slave
= &am33xx_timer5_hwmod
,
387 .user
= OCP_USER_MPU
,
390 /* l4 per -> timer6 */
391 struct omap_hwmod_ocp_if am33xx_l4_ls__timer6
= {
392 .master
= &am33xx_l4_ls_hwmod
,
393 .slave
= &am33xx_timer6_hwmod
,
395 .user
= OCP_USER_MPU
,
398 /* l4 per -> timer7 */
399 struct omap_hwmod_ocp_if am33xx_l4_ls__timer7
= {
400 .master
= &am33xx_l4_ls_hwmod
,
401 .slave
= &am33xx_timer7_hwmod
,
403 .user
= OCP_USER_MPU
,
406 /* l3 main -> tpcc */
407 struct omap_hwmod_ocp_if am33xx_l3_main__tpcc
= {
408 .master
= &am33xx_l3_main_hwmod
,
409 .slave
= &am33xx_tpcc_hwmod
,
411 .user
= OCP_USER_MPU
,
414 /* l3 main -> tpcc0 */
415 static struct omap_hwmod_addr_space am33xx_tptc0_addr_space
[] = {
417 .pa_start
= 0x49800000,
418 .pa_end
= 0x49800000 + SZ_8K
- 1,
419 .flags
= ADDR_TYPE_RT
,
424 struct omap_hwmod_ocp_if am33xx_l3_main__tptc0
= {
425 .master
= &am33xx_l3_main_hwmod
,
426 .slave
= &am33xx_tptc0_hwmod
,
428 .addr
= am33xx_tptc0_addr_space
,
429 .user
= OCP_USER_MPU
,
432 /* l3 main -> tpcc1 */
433 static struct omap_hwmod_addr_space am33xx_tptc1_addr_space
[] = {
435 .pa_start
= 0x49900000,
436 .pa_end
= 0x49900000 + SZ_8K
- 1,
437 .flags
= ADDR_TYPE_RT
,
442 struct omap_hwmod_ocp_if am33xx_l3_main__tptc1
= {
443 .master
= &am33xx_l3_main_hwmod
,
444 .slave
= &am33xx_tptc1_hwmod
,
446 .addr
= am33xx_tptc1_addr_space
,
447 .user
= OCP_USER_MPU
,
450 /* l3 main -> tpcc2 */
451 static struct omap_hwmod_addr_space am33xx_tptc2_addr_space
[] = {
453 .pa_start
= 0x49a00000,
454 .pa_end
= 0x49a00000 + SZ_8K
- 1,
455 .flags
= ADDR_TYPE_RT
,
460 struct omap_hwmod_ocp_if am33xx_l3_main__tptc2
= {
461 .master
= &am33xx_l3_main_hwmod
,
462 .slave
= &am33xx_tptc2_hwmod
,
464 .addr
= am33xx_tptc2_addr_space
,
465 .user
= OCP_USER_MPU
,
469 struct omap_hwmod_ocp_if am33xx_l4_ls__uart2
= {
470 .master
= &am33xx_l4_ls_hwmod
,
471 .slave
= &am33xx_uart2_hwmod
,
473 .user
= OCP_USER_MPU
,
477 struct omap_hwmod_ocp_if am33xx_l4_ls__uart3
= {
478 .master
= &am33xx_l4_ls_hwmod
,
479 .slave
= &am33xx_uart3_hwmod
,
481 .user
= OCP_USER_MPU
,
485 struct omap_hwmod_ocp_if am33xx_l4_ls__uart4
= {
486 .master
= &am33xx_l4_ls_hwmod
,
487 .slave
= &am33xx_uart4_hwmod
,
489 .user
= OCP_USER_MPU
,
493 struct omap_hwmod_ocp_if am33xx_l4_ls__uart5
= {
494 .master
= &am33xx_l4_ls_hwmod
,
495 .slave
= &am33xx_uart5_hwmod
,
497 .user
= OCP_USER_MPU
,
501 struct omap_hwmod_ocp_if am33xx_l4_ls__uart6
= {
502 .master
= &am33xx_l4_ls_hwmod
,
503 .slave
= &am33xx_uart6_hwmod
,
505 .user
= OCP_USER_MPU
,
508 /* l3 main -> ocmc */
509 struct omap_hwmod_ocp_if am33xx_l3_main__ocmc
= {
510 .master
= &am33xx_l3_main_hwmod
,
511 .slave
= &am33xx_ocmcram_hwmod
,
512 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
515 /* l3 main -> sha0 HIB2 */
516 static struct omap_hwmod_addr_space am33xx_sha0_addrs
[] = {
518 .pa_start
= 0x53100000,
519 .pa_end
= 0x53100000 + SZ_512
- 1,
520 .flags
= ADDR_TYPE_RT
525 struct omap_hwmod_ocp_if am33xx_l3_main__sha0
= {
526 .master
= &am33xx_l3_main_hwmod
,
527 .slave
= &am33xx_sha0_hwmod
,
529 .addr
= am33xx_sha0_addrs
,
530 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
533 /* l3 main -> AES0 HIB2 */
534 static struct omap_hwmod_addr_space am33xx_aes0_addrs
[] = {
536 .pa_start
= 0x53500000,
537 .pa_end
= 0x53500000 + SZ_1M
- 1,
538 .flags
= ADDR_TYPE_RT
543 struct omap_hwmod_ocp_if am33xx_l3_main__aes0
= {
544 .master
= &am33xx_l3_main_hwmod
,
545 .slave
= &am33xx_aes0_hwmod
,
547 .addr
= am33xx_aes0_addrs
,
548 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
552 struct omap_hwmod_ocp_if am33xx_l4_per__rng
= {
553 .master
= &am33xx_l4_ls_hwmod
,
554 .slave
= &am33xx_rng_hwmod
,
556 .user
= OCP_USER_MPU
,