xref: /linux/drivers/dma/ti/k3-psil-j721e.c (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
18c6bb62fSPeter Ujfalusi // SPDX-License-Identifier: GPL-2.0
28c6bb62fSPeter Ujfalusi /*
38c6bb62fSPeter Ujfalusi  *  Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
48c6bb62fSPeter Ujfalusi  *  Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
58c6bb62fSPeter Ujfalusi  */
68c6bb62fSPeter Ujfalusi 
78c6bb62fSPeter Ujfalusi #include <linux/kernel.h>
88c6bb62fSPeter Ujfalusi 
98c6bb62fSPeter Ujfalusi #include "k3-psil-priv.h"
108c6bb62fSPeter Ujfalusi 
118c6bb62fSPeter Ujfalusi #define PSIL_PDMA_XY_TR(x)				\
128c6bb62fSPeter Ujfalusi 	{						\
138c6bb62fSPeter Ujfalusi 		.thread_id = x,				\
148c6bb62fSPeter Ujfalusi 		.ep_config = {				\
158c6bb62fSPeter Ujfalusi 			.ep_type = PSIL_EP_PDMA_XY,	\
168c6bb62fSPeter Ujfalusi 		},					\
178c6bb62fSPeter Ujfalusi 	}
188c6bb62fSPeter Ujfalusi 
198c6bb62fSPeter Ujfalusi #define PSIL_PDMA_XY_PKT(x)				\
208c6bb62fSPeter Ujfalusi 	{						\
218c6bb62fSPeter Ujfalusi 		.thread_id = x,				\
228c6bb62fSPeter Ujfalusi 		.ep_config = {				\
238c6bb62fSPeter Ujfalusi 			.ep_type = PSIL_EP_PDMA_XY,	\
248c6bb62fSPeter Ujfalusi 			.pkt_mode = 1,			\
258c6bb62fSPeter Ujfalusi 		},					\
268c6bb62fSPeter Ujfalusi 	}
278c6bb62fSPeter Ujfalusi 
288c6bb62fSPeter Ujfalusi #define PSIL_PDMA_MCASP(x)				\
298c6bb62fSPeter Ujfalusi 	{						\
308c6bb62fSPeter Ujfalusi 		.thread_id = x,				\
318c6bb62fSPeter Ujfalusi 		.ep_config = {				\
328c6bb62fSPeter Ujfalusi 			.ep_type = PSIL_EP_PDMA_XY,	\
338c6bb62fSPeter Ujfalusi 			.pdma_acc32 = 1,		\
348c6bb62fSPeter Ujfalusi 			.pdma_burst = 1,		\
358c6bb62fSPeter Ujfalusi 		},					\
368c6bb62fSPeter Ujfalusi 	}
378c6bb62fSPeter Ujfalusi 
388c6bb62fSPeter Ujfalusi #define PSIL_ETHERNET(x)				\
398c6bb62fSPeter Ujfalusi 	{						\
408c6bb62fSPeter Ujfalusi 		.thread_id = x,				\
418c6bb62fSPeter Ujfalusi 		.ep_config = {				\
428c6bb62fSPeter Ujfalusi 			.ep_type = PSIL_EP_NATIVE,	\
438c6bb62fSPeter Ujfalusi 			.pkt_mode = 1,			\
448c6bb62fSPeter Ujfalusi 			.needs_epib = 1,		\
458c6bb62fSPeter Ujfalusi 			.psd_size = 16,			\
468c6bb62fSPeter Ujfalusi 		},					\
478c6bb62fSPeter Ujfalusi 	}
488c6bb62fSPeter Ujfalusi 
498c6bb62fSPeter Ujfalusi #define PSIL_SA2UL(x, tx)				\
508c6bb62fSPeter Ujfalusi 	{						\
518c6bb62fSPeter Ujfalusi 		.thread_id = x,				\
528c6bb62fSPeter Ujfalusi 		.ep_config = {				\
538c6bb62fSPeter Ujfalusi 			.ep_type = PSIL_EP_NATIVE,	\
548c6bb62fSPeter Ujfalusi 			.pkt_mode = 1,			\
558c6bb62fSPeter Ujfalusi 			.needs_epib = 1,		\
568c6bb62fSPeter Ujfalusi 			.psd_size = 64,			\
578c6bb62fSPeter Ujfalusi 			.notdpkt = tx,			\
588c6bb62fSPeter Ujfalusi 		},					\
598c6bb62fSPeter Ujfalusi 	}
608c6bb62fSPeter Ujfalusi 
615e70a09cSPratyush Yadav #define PSIL_CSI2RX(x)					\
625e70a09cSPratyush Yadav 	{						\
635e70a09cSPratyush Yadav 		.thread_id = x,				\
645e70a09cSPratyush Yadav 		.ep_config = {				\
655e70a09cSPratyush Yadav 			.ep_type = PSIL_EP_NATIVE,	\
665e70a09cSPratyush Yadav 		},					\
675e70a09cSPratyush Yadav 	}
685e70a09cSPratyush Yadav 
698c6bb62fSPeter Ujfalusi /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
702bd8010aSPeter Ujfalusi static struct psil_ep j721e_src_ep_map[] = {
718c6bb62fSPeter Ujfalusi 	/* SA2UL */
728c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0x4000, 0),
738c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0x4001, 0),
748c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0x4002, 0),
758c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0x4003, 0),
768c6bb62fSPeter Ujfalusi 	/* PRU_ICSSG0 */
778c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4100),
788c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4101),
798c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4102),
808c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4103),
818c6bb62fSPeter Ujfalusi 	/* PRU_ICSSG1 */
828c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4200),
838c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4201),
848c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4202),
858c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4203),
868c6bb62fSPeter Ujfalusi 	/* PDMA6 (PSIL_PDMA_MCASP_G0) - McASP0-2 */
878c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4400),
888c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4401),
898c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4402),
908c6bb62fSPeter Ujfalusi 	/* PDMA7 (PSIL_PDMA_MCASP_G1) - McASP3-11 */
918c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4500),
928c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4501),
938c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4502),
948c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4503),
958c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4504),
968c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4505),
978c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4506),
988c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4507),
998c6bb62fSPeter Ujfalusi 	PSIL_PDMA_MCASP(0x4508),
1008c6bb62fSPeter Ujfalusi 	/* PDMA8 (PDMA_MISC_G0) - SPI0-1 */
1018c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4600),
1028c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4601),
1038c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4602),
1048c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4603),
1058c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4604),
1068c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4605),
1078c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4606),
1088c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4607),
1098c6bb62fSPeter Ujfalusi 	/* PDMA9 (PDMA_MISC_G1) - SPI2-3 */
1108c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x460c),
1118c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x460d),
1128c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x460e),
1138c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x460f),
1148c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4610),
1158c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4611),
1168c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4612),
1178c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4613),
1188c6bb62fSPeter Ujfalusi 	/* PDMA10 (PDMA_MISC_G2) - SPI4-5 */
1198c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4618),
1208c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4619),
1218c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x461a),
1228c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x461b),
1238c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x461c),
1248c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x461d),
1258c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x461e),
1268c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x461f),
1278c6bb62fSPeter Ujfalusi 	/* PDMA11 (PDMA_MISC_G3) */
1288c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4624),
1298c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4625),
1308c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4626),
1318c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4627),
1328c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4628),
1338c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4629),
1348c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4630),
1358c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x463a),
1368c6bb62fSPeter Ujfalusi 	/* PDMA13 (PDMA_USART_G0) - UART0-1 */
1378c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4700),
1388c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4701),
1398c6bb62fSPeter Ujfalusi 	/* PDMA14 (PDMA_USART_G1) - UART2-3 */
1408c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4702),
1418c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4703),
1428c6bb62fSPeter Ujfalusi 	/* PDMA15 (PDMA_USART_G2) - UART4-9 */
1438c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4704),
1448c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4705),
1458c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4706),
1468c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4707),
1478c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4708),
1488c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x4709),
1495e70a09cSPratyush Yadav 	/* CSI2RX */
1505e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4940),
1515e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4941),
1525e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4942),
1535e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4943),
1545e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4944),
1555e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4945),
1565e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4946),
1575e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4947),
1585e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4948),
1595e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4949),
1605e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x494a),
1615e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x494b),
1625e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x494c),
1635e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x494d),
1645e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x494e),
1655e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x494f),
1665e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4950),
1675e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4951),
1685e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4952),
1695e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4953),
1705e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4954),
1715e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4955),
1725e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4956),
1735e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4957),
1745e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4958),
1755e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4959),
1765e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x495a),
1775e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x495b),
1785e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x495c),
1795e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x495d),
1805e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x495e),
1815e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x495f),
1825e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4960),
1835e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4961),
1845e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4962),
1855e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4963),
1865e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4964),
1875e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4965),
1885e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4966),
1895e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4967),
1905e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4968),
1915e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4969),
1925e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x496a),
1935e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x496b),
1945e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x496c),
1955e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x496d),
1965e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x496e),
1975e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x496f),
1985e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4970),
1995e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4971),
2005e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4972),
2015e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4973),
2025e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4974),
2035e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4975),
2045e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4976),
2055e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4977),
2065e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4978),
2075e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x4979),
2085e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x497a),
2095e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x497b),
2105e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x497c),
2115e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x497d),
2125e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x497e),
2135e70a09cSPratyush Yadav 	PSIL_CSI2RX(0x497f),
2148c6bb62fSPeter Ujfalusi 	/* CPSW9 */
2158c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x4a00),
2168c6bb62fSPeter Ujfalusi 	/* CPSW0 */
2178c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0x7000),
2188c6bb62fSPeter Ujfalusi 	/* MCU_PDMA0 (MCU_PDMA_MISC_G0) - SPI0 */
2198c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7100),
2208c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7101),
2218c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7102),
2228c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7103),
2238c6bb62fSPeter Ujfalusi 	/* MCU_PDMA1 (MCU_PDMA_MISC_G1) - SPI1-2 */
2248c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7200),
2258c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7201),
2268c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7202),
2278c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7203),
2288c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7204),
2298c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7205),
2308c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7206),
2318c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7207),
2328c6bb62fSPeter Ujfalusi 	/* MCU_PDMA2 (MCU_PDMA_MISC_G2) - UART0 */
2338c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_PKT(0x7300),
2348c6bb62fSPeter Ujfalusi 	/* MCU_PDMA_ADC - ADC0-1 */
2358c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_TR(0x7400),
2368c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_TR(0x7401),
2378c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_TR(0x7402),
2388c6bb62fSPeter Ujfalusi 	PSIL_PDMA_XY_TR(0x7403),
2398c6bb62fSPeter Ujfalusi 	/* SA2UL */
2408c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0x7500, 0),
2418c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0x7501, 0),
2429c857a8eSPeter Ujfalusi 	PSIL_SA2UL(0x7502, 0),
2439c857a8eSPeter Ujfalusi 	PSIL_SA2UL(0x7503, 0),
2448c6bb62fSPeter Ujfalusi };
2458c6bb62fSPeter Ujfalusi 
2468c6bb62fSPeter Ujfalusi /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */
2472bd8010aSPeter Ujfalusi static struct psil_ep j721e_dst_ep_map[] = {
2488c6bb62fSPeter Ujfalusi 	/* SA2UL */
2498c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0xc000, 1),
2508c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0xc001, 1),
2518c6bb62fSPeter Ujfalusi 	/* PRU_ICSSG0 */
2528c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc100),
2538c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc101),
2548c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc102),
2558c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc103),
2568c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc104),
2578c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc105),
2588c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc106),
2598c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc107),
2608c6bb62fSPeter Ujfalusi 	/* PRU_ICSSG1 */
2618c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc200),
2628c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc201),
2638c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc202),
2648c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc203),
2658c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc204),
2668c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc205),
2678c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc206),
2688c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xc207),
269*693e9c26SMatt Ranostay 	/* PDMA6 (PSIL_PDMA_MCASP_G0) - McASP0-2 */
270*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc400),
271*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc401),
272*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc402),
273*693e9c26SMatt Ranostay 	/* PDMA7 (PSIL_PDMA_MCASP_G1) - McASP3-11 */
274*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc500),
275*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc501),
276*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc502),
277*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc503),
278*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc504),
279*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc505),
280*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc506),
281*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc507),
282*693e9c26SMatt Ranostay 	PSIL_PDMA_MCASP(0xc508),
283*693e9c26SMatt Ranostay 	/* PDMA8 (PDMA_MISC_G0) - SPI0-1 */
284*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc600),
285*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc601),
286*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc602),
287*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc603),
288*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc604),
289*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc605),
290*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc606),
291*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc607),
292*693e9c26SMatt Ranostay 	/* PDMA9 (PDMA_MISC_G1) - SPI2-3 */
293*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc60c),
294*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc60d),
295*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc60e),
296*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc60f),
297*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc610),
298*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc611),
299*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc612),
300*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc613),
301*693e9c26SMatt Ranostay 	/* PDMA10 (PDMA_MISC_G2) - SPI4-5 */
302*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc618),
303*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc619),
304*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc61a),
305*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc61b),
306*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc61c),
307*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc61d),
308*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc61e),
309*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc61f),
310*693e9c26SMatt Ranostay 	/* PDMA11 (PDMA_MISC_G3) */
311*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc624),
312*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc625),
313*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc626),
314*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc627),
315*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc628),
316*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc629),
317*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc630),
318*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc63a),
319*693e9c26SMatt Ranostay 	/* PDMA13 (PDMA_USART_G0) - UART0-1 */
320*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc700),
321*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc701),
322*693e9c26SMatt Ranostay 	/* PDMA14 (PDMA_USART_G1) - UART2-3 */
323*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc702),
324*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc703),
325*693e9c26SMatt Ranostay 	/* PDMA15 (PDMA_USART_G2) - UART4-9 */
326*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc704),
327*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc705),
328*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc706),
329*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc707),
330*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc708),
331*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xc709),
3328c6bb62fSPeter Ujfalusi 	/* CPSW9 */
3338c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca00),
3348c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca01),
3358c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca02),
3368c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca03),
3378c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca04),
3388c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca05),
3398c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca06),
3408c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xca07),
3418c6bb62fSPeter Ujfalusi 	/* CPSW0 */
3428c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf000),
3438c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf001),
3448c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf002),
3458c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf003),
3468c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf004),
3478c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf005),
3488c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf006),
3498c6bb62fSPeter Ujfalusi 	PSIL_ETHERNET(0xf007),
350*693e9c26SMatt Ranostay 	/* MCU_PDMA0 (MCU_PDMA_MISC_G0) - SPI0 */
351*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf100),
352*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf101),
353*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf102),
354*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf103),
355*693e9c26SMatt Ranostay 	/* MCU_PDMA1 (MCU_PDMA_MISC_G1) - SPI1-2 */
356*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf200),
357*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf201),
358*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf202),
359*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf203),
360*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf204),
361*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf205),
362*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf206),
363*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf207),
364*693e9c26SMatt Ranostay 	/* MCU_PDMA2 (MCU_PDMA_MISC_G2) - UART0 */
365*693e9c26SMatt Ranostay 	PSIL_PDMA_XY_PKT(0xf300),
3668c6bb62fSPeter Ujfalusi 	/* SA2UL */
3678c6bb62fSPeter Ujfalusi 	PSIL_SA2UL(0xf500, 1),
3689c857a8eSPeter Ujfalusi 	PSIL_SA2UL(0xf501, 1),
3698c6bb62fSPeter Ujfalusi };
3708c6bb62fSPeter Ujfalusi 
3718c6bb62fSPeter Ujfalusi struct psil_ep_map j721e_ep_map = {
3728c6bb62fSPeter Ujfalusi 	.name = "j721e",
3738c6bb62fSPeter Ujfalusi 	.src = j721e_src_ep_map,
3748c6bb62fSPeter Ujfalusi 	.src_count = ARRAY_SIZE(j721e_src_ep_map),
3758c6bb62fSPeter Ujfalusi 	.dst = j721e_dst_ep_map,
3768c6bb62fSPeter Ujfalusi 	.dst_count = ARRAY_SIZE(j721e_dst_ep_map),
3778c6bb62fSPeter Ujfalusi };
378