162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com 462306a36Sopenharmony_ci * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include <linux/kernel.h> 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include "k3-psil-priv.h" 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define PSIL_PDMA_XY_TR(x) \ 1262306a36Sopenharmony_ci { \ 1362306a36Sopenharmony_ci .thread_id = x, \ 1462306a36Sopenharmony_ci .ep_config = { \ 1562306a36Sopenharmony_ci .ep_type = PSIL_EP_PDMA_XY, \ 1662306a36Sopenharmony_ci }, \ 1762306a36Sopenharmony_ci } 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#define PSIL_PDMA_XY_PKT(x) \ 2062306a36Sopenharmony_ci { \ 2162306a36Sopenharmony_ci .thread_id = x, \ 2262306a36Sopenharmony_ci .ep_config = { \ 2362306a36Sopenharmony_ci .ep_type = PSIL_EP_PDMA_XY, \ 2462306a36Sopenharmony_ci .pkt_mode = 1, \ 2562306a36Sopenharmony_ci }, \ 2662306a36Sopenharmony_ci } 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#define PSIL_PDMA_MCASP(x) \ 2962306a36Sopenharmony_ci { \ 3062306a36Sopenharmony_ci .thread_id = x, \ 3162306a36Sopenharmony_ci .ep_config = { \ 3262306a36Sopenharmony_ci .ep_type = PSIL_EP_PDMA_XY, \ 3362306a36Sopenharmony_ci .pdma_acc32 = 1, \ 3462306a36Sopenharmony_ci .pdma_burst = 1, \ 3562306a36Sopenharmony_ci }, \ 3662306a36Sopenharmony_ci } 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci#define PSIL_ETHERNET(x) \ 3962306a36Sopenharmony_ci { \ 4062306a36Sopenharmony_ci .thread_id = x, \ 4162306a36Sopenharmony_ci .ep_config = { \ 4262306a36Sopenharmony_ci .ep_type = PSIL_EP_NATIVE, \ 4362306a36Sopenharmony_ci .pkt_mode = 1, \ 4462306a36Sopenharmony_ci .needs_epib = 1, \ 4562306a36Sopenharmony_ci .psd_size = 16, \ 4662306a36Sopenharmony_ci }, \ 4762306a36Sopenharmony_ci } 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci#define PSIL_SA2UL(x, tx) \ 5062306a36Sopenharmony_ci { \ 5162306a36Sopenharmony_ci .thread_id = x, \ 5262306a36Sopenharmony_ci .ep_config = { \ 5362306a36Sopenharmony_ci .ep_type = PSIL_EP_NATIVE, \ 5462306a36Sopenharmony_ci .pkt_mode = 1, \ 5562306a36Sopenharmony_ci .needs_epib = 1, \ 5662306a36Sopenharmony_ci .psd_size = 64, \ 5762306a36Sopenharmony_ci .notdpkt = tx, \ 5862306a36Sopenharmony_ci }, \ 5962306a36Sopenharmony_ci } 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ci#define PSIL_CSI2RX(x) \ 6262306a36Sopenharmony_ci { \ 6362306a36Sopenharmony_ci .thread_id = x, \ 6462306a36Sopenharmony_ci .ep_config = { \ 6562306a36Sopenharmony_ci .ep_type = PSIL_EP_NATIVE, \ 6662306a36Sopenharmony_ci }, \ 6762306a36Sopenharmony_ci } 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ 7062306a36Sopenharmony_cistatic struct psil_ep j721e_src_ep_map[] = { 7162306a36Sopenharmony_ci /* SA2UL */ 7262306a36Sopenharmony_ci PSIL_SA2UL(0x4000, 0), 7362306a36Sopenharmony_ci PSIL_SA2UL(0x4001, 0), 7462306a36Sopenharmony_ci PSIL_SA2UL(0x4002, 0), 7562306a36Sopenharmony_ci PSIL_SA2UL(0x4003, 0), 7662306a36Sopenharmony_ci /* PRU_ICSSG0 */ 7762306a36Sopenharmony_ci PSIL_ETHERNET(0x4100), 7862306a36Sopenharmony_ci PSIL_ETHERNET(0x4101), 7962306a36Sopenharmony_ci PSIL_ETHERNET(0x4102), 8062306a36Sopenharmony_ci PSIL_ETHERNET(0x4103), 8162306a36Sopenharmony_ci /* PRU_ICSSG1 */ 8262306a36Sopenharmony_ci PSIL_ETHERNET(0x4200), 8362306a36Sopenharmony_ci PSIL_ETHERNET(0x4201), 8462306a36Sopenharmony_ci PSIL_ETHERNET(0x4202), 8562306a36Sopenharmony_ci PSIL_ETHERNET(0x4203), 8662306a36Sopenharmony_ci /* PDMA6 (PSIL_PDMA_MCASP_G0) - McASP0-2 */ 8762306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4400), 8862306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4401), 8962306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4402), 9062306a36Sopenharmony_ci /* PDMA7 (PSIL_PDMA_MCASP_G1) - McASP3-11 */ 9162306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4500), 9262306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4501), 9362306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4502), 9462306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4503), 9562306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4504), 9662306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4505), 9762306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4506), 9862306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4507), 9962306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4508), 10062306a36Sopenharmony_ci /* PDMA8 (PDMA_MISC_G0) - SPI0-1 */ 10162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4600), 10262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4601), 10362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4602), 10462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4603), 10562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4604), 10662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4605), 10762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4606), 10862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4607), 10962306a36Sopenharmony_ci /* PDMA9 (PDMA_MISC_G1) - SPI2-3 */ 11062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460c), 11162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460d), 11262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460e), 11362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460f), 11462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4610), 11562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4611), 11662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4612), 11762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4613), 11862306a36Sopenharmony_ci /* PDMA10 (PDMA_MISC_G2) - SPI4-5 */ 11962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4618), 12062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4619), 12162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x461a), 12262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x461b), 12362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x461c), 12462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x461d), 12562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x461e), 12662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x461f), 12762306a36Sopenharmony_ci /* PDMA11 (PDMA_MISC_G3) */ 12862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4624), 12962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4625), 13062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4626), 13162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4627), 13262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4628), 13362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4629), 13462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4630), 13562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x463a), 13662306a36Sopenharmony_ci /* PDMA13 (PDMA_USART_G0) - UART0-1 */ 13762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4700), 13862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4701), 13962306a36Sopenharmony_ci /* PDMA14 (PDMA_USART_G1) - UART2-3 */ 14062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4702), 14162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4703), 14262306a36Sopenharmony_ci /* PDMA15 (PDMA_USART_G2) - UART4-9 */ 14362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4704), 14462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4705), 14562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4706), 14662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4707), 14762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4708), 14862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4709), 14962306a36Sopenharmony_ci /* CSI2RX */ 15062306a36Sopenharmony_ci PSIL_CSI2RX(0x4940), 15162306a36Sopenharmony_ci PSIL_CSI2RX(0x4941), 15262306a36Sopenharmony_ci PSIL_CSI2RX(0x4942), 15362306a36Sopenharmony_ci PSIL_CSI2RX(0x4943), 15462306a36Sopenharmony_ci PSIL_CSI2RX(0x4944), 15562306a36Sopenharmony_ci PSIL_CSI2RX(0x4945), 15662306a36Sopenharmony_ci PSIL_CSI2RX(0x4946), 15762306a36Sopenharmony_ci PSIL_CSI2RX(0x4947), 15862306a36Sopenharmony_ci PSIL_CSI2RX(0x4948), 15962306a36Sopenharmony_ci PSIL_CSI2RX(0x4949), 16062306a36Sopenharmony_ci PSIL_CSI2RX(0x494a), 16162306a36Sopenharmony_ci PSIL_CSI2RX(0x494b), 16262306a36Sopenharmony_ci PSIL_CSI2RX(0x494c), 16362306a36Sopenharmony_ci PSIL_CSI2RX(0x494d), 16462306a36Sopenharmony_ci PSIL_CSI2RX(0x494e), 16562306a36Sopenharmony_ci PSIL_CSI2RX(0x494f), 16662306a36Sopenharmony_ci PSIL_CSI2RX(0x4950), 16762306a36Sopenharmony_ci PSIL_CSI2RX(0x4951), 16862306a36Sopenharmony_ci PSIL_CSI2RX(0x4952), 16962306a36Sopenharmony_ci PSIL_CSI2RX(0x4953), 17062306a36Sopenharmony_ci PSIL_CSI2RX(0x4954), 17162306a36Sopenharmony_ci PSIL_CSI2RX(0x4955), 17262306a36Sopenharmony_ci PSIL_CSI2RX(0x4956), 17362306a36Sopenharmony_ci PSIL_CSI2RX(0x4957), 17462306a36Sopenharmony_ci PSIL_CSI2RX(0x4958), 17562306a36Sopenharmony_ci PSIL_CSI2RX(0x4959), 17662306a36Sopenharmony_ci PSIL_CSI2RX(0x495a), 17762306a36Sopenharmony_ci PSIL_CSI2RX(0x495b), 17862306a36Sopenharmony_ci PSIL_CSI2RX(0x495c), 17962306a36Sopenharmony_ci PSIL_CSI2RX(0x495d), 18062306a36Sopenharmony_ci PSIL_CSI2RX(0x495e), 18162306a36Sopenharmony_ci PSIL_CSI2RX(0x495f), 18262306a36Sopenharmony_ci PSIL_CSI2RX(0x4960), 18362306a36Sopenharmony_ci PSIL_CSI2RX(0x4961), 18462306a36Sopenharmony_ci PSIL_CSI2RX(0x4962), 18562306a36Sopenharmony_ci PSIL_CSI2RX(0x4963), 18662306a36Sopenharmony_ci PSIL_CSI2RX(0x4964), 18762306a36Sopenharmony_ci PSIL_CSI2RX(0x4965), 18862306a36Sopenharmony_ci PSIL_CSI2RX(0x4966), 18962306a36Sopenharmony_ci PSIL_CSI2RX(0x4967), 19062306a36Sopenharmony_ci PSIL_CSI2RX(0x4968), 19162306a36Sopenharmony_ci PSIL_CSI2RX(0x4969), 19262306a36Sopenharmony_ci PSIL_CSI2RX(0x496a), 19362306a36Sopenharmony_ci PSIL_CSI2RX(0x496b), 19462306a36Sopenharmony_ci PSIL_CSI2RX(0x496c), 19562306a36Sopenharmony_ci PSIL_CSI2RX(0x496d), 19662306a36Sopenharmony_ci PSIL_CSI2RX(0x496e), 19762306a36Sopenharmony_ci PSIL_CSI2RX(0x496f), 19862306a36Sopenharmony_ci PSIL_CSI2RX(0x4970), 19962306a36Sopenharmony_ci PSIL_CSI2RX(0x4971), 20062306a36Sopenharmony_ci PSIL_CSI2RX(0x4972), 20162306a36Sopenharmony_ci PSIL_CSI2RX(0x4973), 20262306a36Sopenharmony_ci PSIL_CSI2RX(0x4974), 20362306a36Sopenharmony_ci PSIL_CSI2RX(0x4975), 20462306a36Sopenharmony_ci PSIL_CSI2RX(0x4976), 20562306a36Sopenharmony_ci PSIL_CSI2RX(0x4977), 20662306a36Sopenharmony_ci PSIL_CSI2RX(0x4978), 20762306a36Sopenharmony_ci PSIL_CSI2RX(0x4979), 20862306a36Sopenharmony_ci PSIL_CSI2RX(0x497a), 20962306a36Sopenharmony_ci PSIL_CSI2RX(0x497b), 21062306a36Sopenharmony_ci PSIL_CSI2RX(0x497c), 21162306a36Sopenharmony_ci PSIL_CSI2RX(0x497d), 21262306a36Sopenharmony_ci PSIL_CSI2RX(0x497e), 21362306a36Sopenharmony_ci PSIL_CSI2RX(0x497f), 21462306a36Sopenharmony_ci /* CPSW9 */ 21562306a36Sopenharmony_ci PSIL_ETHERNET(0x4a00), 21662306a36Sopenharmony_ci /* CPSW0 */ 21762306a36Sopenharmony_ci PSIL_ETHERNET(0x7000), 21862306a36Sopenharmony_ci /* MCU_PDMA0 (MCU_PDMA_MISC_G0) - SPI0 */ 21962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7100), 22062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7101), 22162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7102), 22262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7103), 22362306a36Sopenharmony_ci /* MCU_PDMA1 (MCU_PDMA_MISC_G1) - SPI1-2 */ 22462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7200), 22562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7201), 22662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7202), 22762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7203), 22862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7204), 22962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7205), 23062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7206), 23162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7207), 23262306a36Sopenharmony_ci /* MCU_PDMA2 (MCU_PDMA_MISC_G2) - UART0 */ 23362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7300), 23462306a36Sopenharmony_ci /* MCU_PDMA_ADC - ADC0-1 */ 23562306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7400), 23662306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7401), 23762306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7402), 23862306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7403), 23962306a36Sopenharmony_ci /* SA2UL */ 24062306a36Sopenharmony_ci PSIL_SA2UL(0x7500, 0), 24162306a36Sopenharmony_ci PSIL_SA2UL(0x7501, 0), 24262306a36Sopenharmony_ci PSIL_SA2UL(0x7502, 0), 24362306a36Sopenharmony_ci PSIL_SA2UL(0x7503, 0), 24462306a36Sopenharmony_ci}; 24562306a36Sopenharmony_ci 24662306a36Sopenharmony_ci/* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ 24762306a36Sopenharmony_cistatic struct psil_ep j721e_dst_ep_map[] = { 24862306a36Sopenharmony_ci /* SA2UL */ 24962306a36Sopenharmony_ci PSIL_SA2UL(0xc000, 1), 25062306a36Sopenharmony_ci PSIL_SA2UL(0xc001, 1), 25162306a36Sopenharmony_ci /* PRU_ICSSG0 */ 25262306a36Sopenharmony_ci PSIL_ETHERNET(0xc100), 25362306a36Sopenharmony_ci PSIL_ETHERNET(0xc101), 25462306a36Sopenharmony_ci PSIL_ETHERNET(0xc102), 25562306a36Sopenharmony_ci PSIL_ETHERNET(0xc103), 25662306a36Sopenharmony_ci PSIL_ETHERNET(0xc104), 25762306a36Sopenharmony_ci PSIL_ETHERNET(0xc105), 25862306a36Sopenharmony_ci PSIL_ETHERNET(0xc106), 25962306a36Sopenharmony_ci PSIL_ETHERNET(0xc107), 26062306a36Sopenharmony_ci /* PRU_ICSSG1 */ 26162306a36Sopenharmony_ci PSIL_ETHERNET(0xc200), 26262306a36Sopenharmony_ci PSIL_ETHERNET(0xc201), 26362306a36Sopenharmony_ci PSIL_ETHERNET(0xc202), 26462306a36Sopenharmony_ci PSIL_ETHERNET(0xc203), 26562306a36Sopenharmony_ci PSIL_ETHERNET(0xc204), 26662306a36Sopenharmony_ci PSIL_ETHERNET(0xc205), 26762306a36Sopenharmony_ci PSIL_ETHERNET(0xc206), 26862306a36Sopenharmony_ci PSIL_ETHERNET(0xc207), 26962306a36Sopenharmony_ci /* PDMA6 (PSIL_PDMA_MCASP_G0) - McASP0-2 */ 27062306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc400), 27162306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc401), 27262306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc402), 27362306a36Sopenharmony_ci /* PDMA7 (PSIL_PDMA_MCASP_G1) - McASP3-11 */ 27462306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc500), 27562306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc501), 27662306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc502), 27762306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc503), 27862306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc504), 27962306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc505), 28062306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc506), 28162306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc507), 28262306a36Sopenharmony_ci PSIL_PDMA_MCASP(0xc508), 28362306a36Sopenharmony_ci /* PDMA8 (PDMA_MISC_G0) - SPI0-1 */ 28462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc600), 28562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc601), 28662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc602), 28762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc603), 28862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc604), 28962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc605), 29062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc606), 29162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc607), 29262306a36Sopenharmony_ci /* PDMA9 (PDMA_MISC_G1) - SPI2-3 */ 29362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60c), 29462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60d), 29562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60e), 29662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60f), 29762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc610), 29862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc611), 29962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc612), 30062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc613), 30162306a36Sopenharmony_ci /* PDMA10 (PDMA_MISC_G2) - SPI4-5 */ 30262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc618), 30362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc619), 30462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc61a), 30562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc61b), 30662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc61c), 30762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc61d), 30862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc61e), 30962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc61f), 31062306a36Sopenharmony_ci /* PDMA11 (PDMA_MISC_G3) */ 31162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc624), 31262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc625), 31362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc626), 31462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc627), 31562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc628), 31662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc629), 31762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc630), 31862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc63a), 31962306a36Sopenharmony_ci /* PDMA13 (PDMA_USART_G0) - UART0-1 */ 32062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc700), 32162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc701), 32262306a36Sopenharmony_ci /* PDMA14 (PDMA_USART_G1) - UART2-3 */ 32362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc702), 32462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc703), 32562306a36Sopenharmony_ci /* PDMA15 (PDMA_USART_G2) - UART4-9 */ 32662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc704), 32762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc705), 32862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc706), 32962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc707), 33062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc708), 33162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc709), 33262306a36Sopenharmony_ci /* CPSW9 */ 33362306a36Sopenharmony_ci PSIL_ETHERNET(0xca00), 33462306a36Sopenharmony_ci PSIL_ETHERNET(0xca01), 33562306a36Sopenharmony_ci PSIL_ETHERNET(0xca02), 33662306a36Sopenharmony_ci PSIL_ETHERNET(0xca03), 33762306a36Sopenharmony_ci PSIL_ETHERNET(0xca04), 33862306a36Sopenharmony_ci PSIL_ETHERNET(0xca05), 33962306a36Sopenharmony_ci PSIL_ETHERNET(0xca06), 34062306a36Sopenharmony_ci PSIL_ETHERNET(0xca07), 34162306a36Sopenharmony_ci /* CPSW0 */ 34262306a36Sopenharmony_ci PSIL_ETHERNET(0xf000), 34362306a36Sopenharmony_ci PSIL_ETHERNET(0xf001), 34462306a36Sopenharmony_ci PSIL_ETHERNET(0xf002), 34562306a36Sopenharmony_ci PSIL_ETHERNET(0xf003), 34662306a36Sopenharmony_ci PSIL_ETHERNET(0xf004), 34762306a36Sopenharmony_ci PSIL_ETHERNET(0xf005), 34862306a36Sopenharmony_ci PSIL_ETHERNET(0xf006), 34962306a36Sopenharmony_ci PSIL_ETHERNET(0xf007), 35062306a36Sopenharmony_ci /* MCU_PDMA0 (MCU_PDMA_MISC_G0) - SPI0 */ 35162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf100), 35262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf101), 35362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf102), 35462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf103), 35562306a36Sopenharmony_ci /* MCU_PDMA1 (MCU_PDMA_MISC_G1) - SPI1-2 */ 35662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf200), 35762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf201), 35862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf202), 35962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf203), 36062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf204), 36162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf205), 36262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf206), 36362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf207), 36462306a36Sopenharmony_ci /* MCU_PDMA2 (MCU_PDMA_MISC_G2) - UART0 */ 36562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf300), 36662306a36Sopenharmony_ci /* SA2UL */ 36762306a36Sopenharmony_ci PSIL_SA2UL(0xf500, 1), 36862306a36Sopenharmony_ci PSIL_SA2UL(0xf501, 1), 36962306a36Sopenharmony_ci}; 37062306a36Sopenharmony_ci 37162306a36Sopenharmony_cistruct psil_ep_map j721e_ep_map = { 37262306a36Sopenharmony_ci .name = "j721e", 37362306a36Sopenharmony_ci .src = j721e_src_ep_map, 37462306a36Sopenharmony_ci .src_count = ARRAY_SIZE(j721e_src_ep_map), 37562306a36Sopenharmony_ci .dst = j721e_dst_ep_map, 37662306a36Sopenharmony_ci .dst_count = ARRAY_SIZE(j721e_dst_ep_map), 37762306a36Sopenharmony_ci}; 378