162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/kernel.h> 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#include "k3-psil-priv.h" 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#define PSIL_PDMA_XY_TR(x) \ 1162306a36Sopenharmony_ci { \ 1262306a36Sopenharmony_ci .thread_id = x, \ 1362306a36Sopenharmony_ci .ep_config = { \ 1462306a36Sopenharmony_ci .ep_type = PSIL_EP_PDMA_XY, \ 1562306a36Sopenharmony_ci }, \ 1662306a36Sopenharmony_ci } 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#define PSIL_PDMA_XY_PKT(x) \ 1962306a36Sopenharmony_ci { \ 2062306a36Sopenharmony_ci .thread_id = x, \ 2162306a36Sopenharmony_ci .ep_config = { \ 2262306a36Sopenharmony_ci .ep_type = PSIL_EP_PDMA_XY, \ 2362306a36Sopenharmony_ci .pkt_mode = 1, \ 2462306a36Sopenharmony_ci }, \ 2562306a36Sopenharmony_ci } 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci#define PSIL_PDMA_MCASP(x) \ 2862306a36Sopenharmony_ci { \ 2962306a36Sopenharmony_ci .thread_id = x, \ 3062306a36Sopenharmony_ci .ep_config = { \ 3162306a36Sopenharmony_ci .ep_type = PSIL_EP_PDMA_XY, \ 3262306a36Sopenharmony_ci .pdma_acc32 = 1, \ 3362306a36Sopenharmony_ci .pdma_burst = 1, \ 3462306a36Sopenharmony_ci }, \ 3562306a36Sopenharmony_ci } 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci#define PSIL_ETHERNET(x) \ 3862306a36Sopenharmony_ci { \ 3962306a36Sopenharmony_ci .thread_id = x, \ 4062306a36Sopenharmony_ci .ep_config = { \ 4162306a36Sopenharmony_ci .ep_type = PSIL_EP_NATIVE, \ 4262306a36Sopenharmony_ci .pkt_mode = 1, \ 4362306a36Sopenharmony_ci .needs_epib = 1, \ 4462306a36Sopenharmony_ci .psd_size = 16, \ 4562306a36Sopenharmony_ci }, \ 4662306a36Sopenharmony_ci } 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci#define PSIL_SA2UL(x, tx) \ 4962306a36Sopenharmony_ci { \ 5062306a36Sopenharmony_ci .thread_id = x, \ 5162306a36Sopenharmony_ci .ep_config = { \ 5262306a36Sopenharmony_ci .ep_type = PSIL_EP_NATIVE, \ 5362306a36Sopenharmony_ci .pkt_mode = 1, \ 5462306a36Sopenharmony_ci .needs_epib = 1, \ 5562306a36Sopenharmony_ci .psd_size = 64, \ 5662306a36Sopenharmony_ci .notdpkt = tx, \ 5762306a36Sopenharmony_ci }, \ 5862306a36Sopenharmony_ci } 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci#define PSIL_CSI2RX(x) \ 6162306a36Sopenharmony_ci { \ 6262306a36Sopenharmony_ci .thread_id = x, \ 6362306a36Sopenharmony_ci .ep_config = { \ 6462306a36Sopenharmony_ci .ep_type = PSIL_EP_NATIVE, \ 6562306a36Sopenharmony_ci }, \ 6662306a36Sopenharmony_ci } 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ 6962306a36Sopenharmony_cistatic struct psil_ep j784s4_src_ep_map[] = { 7062306a36Sopenharmony_ci /* PDMA_MCASP - McASP0-4 */ 7162306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4400), 7262306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4401), 7362306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4402), 7462306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4403), 7562306a36Sopenharmony_ci PSIL_PDMA_MCASP(0x4404), 7662306a36Sopenharmony_ci /* PDMA_SPI_G0 - SPI0-3 */ 7762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4600), 7862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4601), 7962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4602), 8062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4603), 8162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4604), 8262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4605), 8362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4606), 8462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4607), 8562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4608), 8662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4609), 8762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460a), 8862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460b), 8962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460c), 9062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460d), 9162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460e), 9262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x460f), 9362306a36Sopenharmony_ci /* PDMA_SPI_G1 - SPI4-7 */ 9462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4620), 9562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4621), 9662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4622), 9762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4623), 9862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4624), 9962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4625), 10062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4626), 10162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4627), 10262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4628), 10362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4629), 10462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x462a), 10562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x462b), 10662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x462c), 10762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x462d), 10862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x462e), 10962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x462f), 11062306a36Sopenharmony_ci /* MAIN_CPSW2G */ 11162306a36Sopenharmony_ci PSIL_ETHERNET(0x4640), 11262306a36Sopenharmony_ci /* PDMA_USART_G0 - UART0-1 */ 11362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4700), 11462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4701), 11562306a36Sopenharmony_ci /* PDMA_USART_G1 - UART2-3 */ 11662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4702), 11762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4703), 11862306a36Sopenharmony_ci /* PDMA_USART_G2 - UART4-9 */ 11962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4704), 12062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4705), 12162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4706), 12262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4707), 12362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4708), 12462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x4709), 12562306a36Sopenharmony_ci /* CSI2RX */ 12662306a36Sopenharmony_ci PSIL_CSI2RX(0x4900), 12762306a36Sopenharmony_ci PSIL_CSI2RX(0x4901), 12862306a36Sopenharmony_ci PSIL_CSI2RX(0x4902), 12962306a36Sopenharmony_ci PSIL_CSI2RX(0x4903), 13062306a36Sopenharmony_ci PSIL_CSI2RX(0x4940), 13162306a36Sopenharmony_ci PSIL_CSI2RX(0x4941), 13262306a36Sopenharmony_ci PSIL_CSI2RX(0x4942), 13362306a36Sopenharmony_ci PSIL_CSI2RX(0x4943), 13462306a36Sopenharmony_ci PSIL_CSI2RX(0x4944), 13562306a36Sopenharmony_ci PSIL_CSI2RX(0x4945), 13662306a36Sopenharmony_ci PSIL_CSI2RX(0x4946), 13762306a36Sopenharmony_ci PSIL_CSI2RX(0x4947), 13862306a36Sopenharmony_ci PSIL_CSI2RX(0x4948), 13962306a36Sopenharmony_ci PSIL_CSI2RX(0x4949), 14062306a36Sopenharmony_ci PSIL_CSI2RX(0x494a), 14162306a36Sopenharmony_ci PSIL_CSI2RX(0x494b), 14262306a36Sopenharmony_ci PSIL_CSI2RX(0x494c), 14362306a36Sopenharmony_ci PSIL_CSI2RX(0x494d), 14462306a36Sopenharmony_ci PSIL_CSI2RX(0x494e), 14562306a36Sopenharmony_ci PSIL_CSI2RX(0x494f), 14662306a36Sopenharmony_ci PSIL_CSI2RX(0x4950), 14762306a36Sopenharmony_ci PSIL_CSI2RX(0x4951), 14862306a36Sopenharmony_ci PSIL_CSI2RX(0x4952), 14962306a36Sopenharmony_ci PSIL_CSI2RX(0x4953), 15062306a36Sopenharmony_ci PSIL_CSI2RX(0x4954), 15162306a36Sopenharmony_ci PSIL_CSI2RX(0x4955), 15262306a36Sopenharmony_ci PSIL_CSI2RX(0x4956), 15362306a36Sopenharmony_ci PSIL_CSI2RX(0x4957), 15462306a36Sopenharmony_ci PSIL_CSI2RX(0x4958), 15562306a36Sopenharmony_ci PSIL_CSI2RX(0x4959), 15662306a36Sopenharmony_ci PSIL_CSI2RX(0x495a), 15762306a36Sopenharmony_ci PSIL_CSI2RX(0x495b), 15862306a36Sopenharmony_ci PSIL_CSI2RX(0x495c), 15962306a36Sopenharmony_ci PSIL_CSI2RX(0x495d), 16062306a36Sopenharmony_ci PSIL_CSI2RX(0x495e), 16162306a36Sopenharmony_ci PSIL_CSI2RX(0x495f), 16262306a36Sopenharmony_ci PSIL_CSI2RX(0x4960), 16362306a36Sopenharmony_ci PSIL_CSI2RX(0x4961), 16462306a36Sopenharmony_ci PSIL_CSI2RX(0x4962), 16562306a36Sopenharmony_ci PSIL_CSI2RX(0x4963), 16662306a36Sopenharmony_ci PSIL_CSI2RX(0x4964), 16762306a36Sopenharmony_ci PSIL_CSI2RX(0x4965), 16862306a36Sopenharmony_ci PSIL_CSI2RX(0x4966), 16962306a36Sopenharmony_ci PSIL_CSI2RX(0x4967), 17062306a36Sopenharmony_ci PSIL_CSI2RX(0x4968), 17162306a36Sopenharmony_ci PSIL_CSI2RX(0x4969), 17262306a36Sopenharmony_ci PSIL_CSI2RX(0x496a), 17362306a36Sopenharmony_ci PSIL_CSI2RX(0x496b), 17462306a36Sopenharmony_ci PSIL_CSI2RX(0x496c), 17562306a36Sopenharmony_ci PSIL_CSI2RX(0x496d), 17662306a36Sopenharmony_ci PSIL_CSI2RX(0x496e), 17762306a36Sopenharmony_ci PSIL_CSI2RX(0x496f), 17862306a36Sopenharmony_ci PSIL_CSI2RX(0x4970), 17962306a36Sopenharmony_ci PSIL_CSI2RX(0x4971), 18062306a36Sopenharmony_ci PSIL_CSI2RX(0x4972), 18162306a36Sopenharmony_ci PSIL_CSI2RX(0x4973), 18262306a36Sopenharmony_ci PSIL_CSI2RX(0x4974), 18362306a36Sopenharmony_ci PSIL_CSI2RX(0x4975), 18462306a36Sopenharmony_ci PSIL_CSI2RX(0x4976), 18562306a36Sopenharmony_ci PSIL_CSI2RX(0x4977), 18662306a36Sopenharmony_ci PSIL_CSI2RX(0x4978), 18762306a36Sopenharmony_ci PSIL_CSI2RX(0x4979), 18862306a36Sopenharmony_ci PSIL_CSI2RX(0x497a), 18962306a36Sopenharmony_ci PSIL_CSI2RX(0x497b), 19062306a36Sopenharmony_ci PSIL_CSI2RX(0x497c), 19162306a36Sopenharmony_ci PSIL_CSI2RX(0x497d), 19262306a36Sopenharmony_ci PSIL_CSI2RX(0x497e), 19362306a36Sopenharmony_ci PSIL_CSI2RX(0x497f), 19462306a36Sopenharmony_ci PSIL_CSI2RX(0x4980), 19562306a36Sopenharmony_ci PSIL_CSI2RX(0x4981), 19662306a36Sopenharmony_ci PSIL_CSI2RX(0x4982), 19762306a36Sopenharmony_ci PSIL_CSI2RX(0x4983), 19862306a36Sopenharmony_ci PSIL_CSI2RX(0x4984), 19962306a36Sopenharmony_ci PSIL_CSI2RX(0x4985), 20062306a36Sopenharmony_ci PSIL_CSI2RX(0x4986), 20162306a36Sopenharmony_ci PSIL_CSI2RX(0x4987), 20262306a36Sopenharmony_ci PSIL_CSI2RX(0x4988), 20362306a36Sopenharmony_ci PSIL_CSI2RX(0x4989), 20462306a36Sopenharmony_ci PSIL_CSI2RX(0x498a), 20562306a36Sopenharmony_ci PSIL_CSI2RX(0x498b), 20662306a36Sopenharmony_ci PSIL_CSI2RX(0x498c), 20762306a36Sopenharmony_ci PSIL_CSI2RX(0x498d), 20862306a36Sopenharmony_ci PSIL_CSI2RX(0x498e), 20962306a36Sopenharmony_ci PSIL_CSI2RX(0x498f), 21062306a36Sopenharmony_ci PSIL_CSI2RX(0x4990), 21162306a36Sopenharmony_ci PSIL_CSI2RX(0x4991), 21262306a36Sopenharmony_ci PSIL_CSI2RX(0x4992), 21362306a36Sopenharmony_ci PSIL_CSI2RX(0x4993), 21462306a36Sopenharmony_ci PSIL_CSI2RX(0x4994), 21562306a36Sopenharmony_ci PSIL_CSI2RX(0x4995), 21662306a36Sopenharmony_ci PSIL_CSI2RX(0x4996), 21762306a36Sopenharmony_ci PSIL_CSI2RX(0x4997), 21862306a36Sopenharmony_ci PSIL_CSI2RX(0x4998), 21962306a36Sopenharmony_ci PSIL_CSI2RX(0x4999), 22062306a36Sopenharmony_ci PSIL_CSI2RX(0x499a), 22162306a36Sopenharmony_ci PSIL_CSI2RX(0x499b), 22262306a36Sopenharmony_ci PSIL_CSI2RX(0x499c), 22362306a36Sopenharmony_ci PSIL_CSI2RX(0x499d), 22462306a36Sopenharmony_ci PSIL_CSI2RX(0x499e), 22562306a36Sopenharmony_ci PSIL_CSI2RX(0x499f), 22662306a36Sopenharmony_ci /* MAIN_CPSW9G */ 22762306a36Sopenharmony_ci PSIL_ETHERNET(0x4a00), 22862306a36Sopenharmony_ci /* MAIN-SA2UL */ 22962306a36Sopenharmony_ci PSIL_SA2UL(0x4a40, 0), 23062306a36Sopenharmony_ci PSIL_SA2UL(0x4a41, 0), 23162306a36Sopenharmony_ci PSIL_SA2UL(0x4a42, 0), 23262306a36Sopenharmony_ci PSIL_SA2UL(0x4a43, 0), 23362306a36Sopenharmony_ci /* MCU_CPSW0 */ 23462306a36Sopenharmony_ci PSIL_ETHERNET(0x7000), 23562306a36Sopenharmony_ci /* MCU_PDMA0 (MCU_PDMA_MISC_G0) - SPI0 */ 23662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7100), 23762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7101), 23862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7102), 23962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7103), 24062306a36Sopenharmony_ci /* MCU_PDMA1 (MCU_PDMA_MISC_G1) - SPI1-2 */ 24162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7200), 24262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7201), 24362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7202), 24462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7203), 24562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7204), 24662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7205), 24762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7206), 24862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7207), 24962306a36Sopenharmony_ci /* MCU_PDMA2 (MCU_PDMA_MISC_G2) - UART0 */ 25062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0x7300), 25162306a36Sopenharmony_ci /* MCU_PDMA_ADC - ADC0-1 */ 25262306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7400), 25362306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7401), 25462306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7402), 25562306a36Sopenharmony_ci PSIL_PDMA_XY_TR(0x7403), 25662306a36Sopenharmony_ci /* MCU_SA2UL */ 25762306a36Sopenharmony_ci PSIL_SA2UL(0x7500, 0), 25862306a36Sopenharmony_ci PSIL_SA2UL(0x7501, 0), 25962306a36Sopenharmony_ci PSIL_SA2UL(0x7502, 0), 26062306a36Sopenharmony_ci PSIL_SA2UL(0x7503, 0), 26162306a36Sopenharmony_ci}; 26262306a36Sopenharmony_ci 26362306a36Sopenharmony_ci/* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ 26462306a36Sopenharmony_cistatic struct psil_ep j784s4_dst_ep_map[] = { 26562306a36Sopenharmony_ci /* MAIN_CPSW2G */ 26662306a36Sopenharmony_ci PSIL_ETHERNET(0xc640), 26762306a36Sopenharmony_ci PSIL_ETHERNET(0xc641), 26862306a36Sopenharmony_ci PSIL_ETHERNET(0xc642), 26962306a36Sopenharmony_ci PSIL_ETHERNET(0xc643), 27062306a36Sopenharmony_ci PSIL_ETHERNET(0xc644), 27162306a36Sopenharmony_ci PSIL_ETHERNET(0xc645), 27262306a36Sopenharmony_ci PSIL_ETHERNET(0xc646), 27362306a36Sopenharmony_ci PSIL_ETHERNET(0xc647), 27462306a36Sopenharmony_ci /* MAIN_CPSW9G */ 27562306a36Sopenharmony_ci PSIL_ETHERNET(0xca00), 27662306a36Sopenharmony_ci PSIL_ETHERNET(0xca01), 27762306a36Sopenharmony_ci PSIL_ETHERNET(0xca02), 27862306a36Sopenharmony_ci PSIL_ETHERNET(0xca03), 27962306a36Sopenharmony_ci PSIL_ETHERNET(0xca04), 28062306a36Sopenharmony_ci PSIL_ETHERNET(0xca05), 28162306a36Sopenharmony_ci PSIL_ETHERNET(0xca06), 28262306a36Sopenharmony_ci PSIL_ETHERNET(0xca07), 28362306a36Sopenharmony_ci /* MAIN-SA2UL */ 28462306a36Sopenharmony_ci PSIL_SA2UL(0xca40, 1), 28562306a36Sopenharmony_ci PSIL_SA2UL(0xca41, 1), 28662306a36Sopenharmony_ci /* PDMA_SPI_G0 - SPI0-3 */ 28762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc600), 28862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc601), 28962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc602), 29062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc603), 29162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc604), 29262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc605), 29362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc606), 29462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc607), 29562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc608), 29662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc609), 29762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60a), 29862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60b), 29962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60c), 30062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60d), 30162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60e), 30262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc60f), 30362306a36Sopenharmony_ci /* PDMA_SPI_G1 - SPI4-7 */ 30462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc620), 30562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc621), 30662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc622), 30762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc623), 30862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc624), 30962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc625), 31062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc626), 31162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc627), 31262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc628), 31362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc629), 31462306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc62a), 31562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc62b), 31662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc62c), 31762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc62d), 31862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc62e), 31962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xc62f), 32062306a36Sopenharmony_ci /* MCU_CPSW0 */ 32162306a36Sopenharmony_ci PSIL_ETHERNET(0xf000), 32262306a36Sopenharmony_ci PSIL_ETHERNET(0xf001), 32362306a36Sopenharmony_ci PSIL_ETHERNET(0xf002), 32462306a36Sopenharmony_ci PSIL_ETHERNET(0xf003), 32562306a36Sopenharmony_ci PSIL_ETHERNET(0xf004), 32662306a36Sopenharmony_ci PSIL_ETHERNET(0xf005), 32762306a36Sopenharmony_ci PSIL_ETHERNET(0xf006), 32862306a36Sopenharmony_ci PSIL_ETHERNET(0xf007), 32962306a36Sopenharmony_ci /* MCU_PDMA_MISC_G0 - SPI0 */ 33062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf100), 33162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf101), 33262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf102), 33362306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf103), 33462306a36Sopenharmony_ci /* MCU_PDMA_MISC_G1 - SPI1-2 */ 33562306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf200), 33662306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf201), 33762306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf202), 33862306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf203), 33962306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf204), 34062306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf205), 34162306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf206), 34262306a36Sopenharmony_ci PSIL_PDMA_XY_PKT(0xf207), 34362306a36Sopenharmony_ci /* MCU_SA2UL */ 34462306a36Sopenharmony_ci PSIL_SA2UL(0xf500, 1), 34562306a36Sopenharmony_ci PSIL_SA2UL(0xf501, 1), 34662306a36Sopenharmony_ci}; 34762306a36Sopenharmony_ci 34862306a36Sopenharmony_cistruct psil_ep_map j784s4_ep_map = { 34962306a36Sopenharmony_ci .name = "j784s4", 35062306a36Sopenharmony_ci .src = j784s4_src_ep_map, 35162306a36Sopenharmony_ci .src_count = ARRAY_SIZE(j784s4_src_ep_map), 35262306a36Sopenharmony_ci .dst = j784s4_dst_ep_map, 35362306a36Sopenharmony_ci .dst_count = ARRAY_SIZE(j784s4_dst_ep_map), 35462306a36Sopenharmony_ci}; 355