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 struct omap_hwmod_ocp_if am33xx_epwmss0__ecap0 = {
180 .master = &am33xx_epwmss0_hwmod,
181 .slave = &am33xx_ecap0_hwmod,
183 .user = OCP_USER_MPU,
186 struct omap_hwmod_ocp_if am33xx_epwmss0__eqep0 = {
187 .master = &am33xx_epwmss0_hwmod,
188 .slave = &am33xx_eqep0_hwmod,
190 .user = OCP_USER_MPU,
193 struct omap_hwmod_ocp_if am33xx_epwmss0__ehrpwm0 = {
194 .master = &am33xx_epwmss0_hwmod,
195 .slave = &am33xx_ehrpwm0_hwmod,
197 .user = OCP_USER_MPU,
201 static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space[] = {
203 .pa_start = 0x48302000,
204 .pa_end = 0x48302000 + SZ_16 - 1,
205 .flags = ADDR_TYPE_RT
210 struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1 = {
211 .master = &am33xx_l4_ls_hwmod,
212 .slave = &am33xx_epwmss1_hwmod,
214 .addr = am33xx_epwmss1_addr_space,
215 .user = OCP_USER_MPU,
218 struct omap_hwmod_ocp_if am33xx_epwmss1__ecap1 = {
219 .master = &am33xx_epwmss1_hwmod,
220 .slave = &am33xx_ecap1_hwmod,
222 .user = OCP_USER_MPU,
225 struct omap_hwmod_ocp_if am33xx_epwmss1__eqep1 = {
226 .master = &am33xx_epwmss1_hwmod,
227 .slave = &am33xx_eqep1_hwmod,
229 .user = OCP_USER_MPU,
232 struct omap_hwmod_ocp_if am33xx_epwmss1__ehrpwm1 = {
233 .master = &am33xx_epwmss1_hwmod,
234 .slave = &am33xx_ehrpwm1_hwmod,
236 .user = OCP_USER_MPU,
239 static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space[] = {
241 .pa_start = 0x48304000,
242 .pa_end = 0x48304000 + SZ_16 - 1,
243 .flags = ADDR_TYPE_RT
248 struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2 = {
249 .master = &am33xx_l4_ls_hwmod,
250 .slave = &am33xx_epwmss2_hwmod,
252 .addr = am33xx_epwmss2_addr_space,
253 .user = OCP_USER_MPU,
256 struct omap_hwmod_ocp_if am33xx_epwmss2__ecap2 = {
257 .master = &am33xx_epwmss2_hwmod,
258 .slave = &am33xx_ecap2_hwmod,
260 .user = OCP_USER_MPU,
263 struct omap_hwmod_ocp_if am33xx_epwmss2__eqep2 = {
264 .master = &am33xx_epwmss2_hwmod,
265 .slave = &am33xx_eqep2_hwmod,
267 .user = OCP_USER_MPU,
270 struct omap_hwmod_ocp_if am33xx_epwmss2__ehrpwm2 = {
271 .master = &am33xx_epwmss2_hwmod,
272 .slave = &am33xx_ehrpwm2_hwmod,
274 .user = OCP_USER_MPU,
277 /* l3s cfg -> gpmc */
278 static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = {
280 .pa_start = 0x50000000,
281 .pa_end = 0x50000000 + SZ_8K - 1,
282 .flags = ADDR_TYPE_RT,
287 struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
288 .master = &am33xx_l3_s_hwmod,
289 .slave = &am33xx_gpmc_hwmod,
291 .addr = am33xx_gpmc_addr_space,
292 .user = OCP_USER_MPU,
296 struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
297 .master = &am33xx_l4_ls_hwmod,
298 .slave = &am33xx_i2c2_hwmod,
300 .user = OCP_USER_MPU,
303 struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
304 .master = &am33xx_l4_ls_hwmod,
305 .slave = &am33xx_i2c3_hwmod,
307 .user = OCP_USER_MPU,
310 /* l4 ls -> mailbox */
311 struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
312 .master = &am33xx_l4_ls_hwmod,
313 .slave = &am33xx_mailbox_hwmod,
315 .user = OCP_USER_MPU,
318 /* l4 ls -> spinlock */
319 struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
320 .master = &am33xx_l4_ls_hwmod,
321 .slave = &am33xx_spinlock_hwmod,
323 .user = OCP_USER_MPU,
326 /* l4 ls -> mcasp0 */
327 static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
329 .pa_start = 0x48038000,
330 .pa_end = 0x48038000 + SZ_8K - 1,
331 .flags = ADDR_TYPE_RT
336 struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
337 .master = &am33xx_l4_ls_hwmod,
338 .slave = &am33xx_mcasp0_hwmod,
340 .addr = am33xx_mcasp0_addr_space,
341 .user = OCP_USER_MPU,
344 /* l4 ls -> mcasp1 */
345 static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
347 .pa_start = 0x4803C000,
348 .pa_end = 0x4803C000 + SZ_8K - 1,
349 .flags = ADDR_TYPE_RT
354 struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
355 .master = &am33xx_l4_ls_hwmod,
356 .slave = &am33xx_mcasp1_hwmod,
358 .addr = am33xx_mcasp1_addr_space,
359 .user = OCP_USER_MPU,
363 static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
365 .pa_start = 0x48060100,
366 .pa_end = 0x48060100 + SZ_4K - 1,
367 .flags = ADDR_TYPE_RT,
372 struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
373 .master = &am33xx_l4_ls_hwmod,
374 .slave = &am33xx_mmc0_hwmod,
376 .addr = am33xx_mmc0_addr_space,
377 .user = OCP_USER_MPU,
381 static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
383 .pa_start = 0x481d8100,
384 .pa_end = 0x481d8100 + SZ_4K - 1,
385 .flags = ADDR_TYPE_RT,
390 struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
391 .master = &am33xx_l4_ls_hwmod,
392 .slave = &am33xx_mmc1_hwmod,
394 .addr = am33xx_mmc1_addr_space,
395 .user = OCP_USER_MPU,
399 static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
401 .pa_start = 0x47810100,
402 .pa_end = 0x47810100 + SZ_64K - 1,
403 .flags = ADDR_TYPE_RT,
408 struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
409 .master = &am33xx_l3_s_hwmod,
410 .slave = &am33xx_mmc2_hwmod,
412 .addr = am33xx_mmc2_addr_space,
413 .user = OCP_USER_MPU,
416 /* l4 ls -> mcspi0 */
417 struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
418 .master = &am33xx_l4_ls_hwmod,
419 .slave = &am33xx_spi0_hwmod,
421 .user = OCP_USER_MPU,
424 /* l4 ls -> mcspi1 */
425 struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
426 .master = &am33xx_l4_ls_hwmod,
427 .slave = &am33xx_spi1_hwmod,
429 .user = OCP_USER_MPU,
432 /* l4 per -> timer2 */
433 struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
434 .master = &am33xx_l4_ls_hwmod,
435 .slave = &am33xx_timer2_hwmod,
437 .user = OCP_USER_MPU,
440 /* l4 per -> timer3 */
441 struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
442 .master = &am33xx_l4_ls_hwmod,
443 .slave = &am33xx_timer3_hwmod,
445 .user = OCP_USER_MPU,
448 /* l4 per -> timer4 */
449 struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
450 .master = &am33xx_l4_ls_hwmod,
451 .slave = &am33xx_timer4_hwmod,
453 .user = OCP_USER_MPU,
456 /* l4 per -> timer5 */
457 struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
458 .master = &am33xx_l4_ls_hwmod,
459 .slave = &am33xx_timer5_hwmod,
461 .user = OCP_USER_MPU,
464 /* l4 per -> timer6 */
465 struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
466 .master = &am33xx_l4_ls_hwmod,
467 .slave = &am33xx_timer6_hwmod,
469 .user = OCP_USER_MPU,
472 /* l4 per -> timer7 */
473 struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
474 .master = &am33xx_l4_ls_hwmod,
475 .slave = &am33xx_timer7_hwmod,
477 .user = OCP_USER_MPU,
480 /* l3 main -> tpcc */
481 struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
482 .master = &am33xx_l3_main_hwmod,
483 .slave = &am33xx_tpcc_hwmod,
485 .user = OCP_USER_MPU,
488 /* l3 main -> tpcc0 */
489 static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
491 .pa_start = 0x49800000,
492 .pa_end = 0x49800000 + SZ_8K - 1,
493 .flags = ADDR_TYPE_RT,
498 struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
499 .master = &am33xx_l3_main_hwmod,
500 .slave = &am33xx_tptc0_hwmod,
502 .addr = am33xx_tptc0_addr_space,
503 .user = OCP_USER_MPU,
506 /* l3 main -> tpcc1 */
507 static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
509 .pa_start = 0x49900000,
510 .pa_end = 0x49900000 + SZ_8K - 1,
511 .flags = ADDR_TYPE_RT,
516 struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
517 .master = &am33xx_l3_main_hwmod,
518 .slave = &am33xx_tptc1_hwmod,
520 .addr = am33xx_tptc1_addr_space,
521 .user = OCP_USER_MPU,
524 /* l3 main -> tpcc2 */
525 static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
527 .pa_start = 0x49a00000,
528 .pa_end = 0x49a00000 + SZ_8K - 1,
529 .flags = ADDR_TYPE_RT,
534 struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
535 .master = &am33xx_l3_main_hwmod,
536 .slave = &am33xx_tptc2_hwmod,
538 .addr = am33xx_tptc2_addr_space,
539 .user = OCP_USER_MPU,
543 struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
544 .master = &am33xx_l4_ls_hwmod,
545 .slave = &am33xx_uart2_hwmod,
547 .user = OCP_USER_MPU,
551 struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
552 .master = &am33xx_l4_ls_hwmod,
553 .slave = &am33xx_uart3_hwmod,
555 .user = OCP_USER_MPU,
559 struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
560 .master = &am33xx_l4_ls_hwmod,
561 .slave = &am33xx_uart4_hwmod,
563 .user = OCP_USER_MPU,
567 struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
568 .master = &am33xx_l4_ls_hwmod,
569 .slave = &am33xx_uart5_hwmod,
571 .user = OCP_USER_MPU,
575 struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
576 .master = &am33xx_l4_ls_hwmod,
577 .slave = &am33xx_uart6_hwmod,
579 .user = OCP_USER_MPU,
582 /* l3 main -> ocmc */
583 struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
584 .master = &am33xx_l3_main_hwmod,
585 .slave = &am33xx_ocmcram_hwmod,
586 .user = OCP_USER_MPU | OCP_USER_SDMA,
589 /* l3 main -> sha0 HIB2 */
590 static struct omap_hwmod_addr_space am33xx_sha0_addrs[] = {
592 .pa_start = 0x53100000,
593 .pa_end = 0x53100000 + SZ_512 - 1,
594 .flags = ADDR_TYPE_RT
599 struct omap_hwmod_ocp_if am33xx_l3_main__sha0 = {
600 .master = &am33xx_l3_main_hwmod,
601 .slave = &am33xx_sha0_hwmod,
603 .addr = am33xx_sha0_addrs,
604 .user = OCP_USER_MPU | OCP_USER_SDMA,
607 /* l3 main -> AES0 HIB2 */
608 static struct omap_hwmod_addr_space am33xx_aes0_addrs[] = {
610 .pa_start = 0x53500000,
611 .pa_end = 0x53500000 + SZ_1M - 1,
612 .flags = ADDR_TYPE_RT
617 struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = {
618 .master = &am33xx_l3_main_hwmod,
619 .slave = &am33xx_aes0_hwmod,
621 .addr = am33xx_aes0_addrs,
622 .user = OCP_USER_MPU | OCP_USER_SDMA,