Skip to content

Commit 93bdff7

Browse files
vaishnavachathvinodkoul
authored andcommitted
dmaengine: ti: k3-psil-j721s2: Add entry for CSI2RX
The CSI2RX subsystem uses PSI-L DMA to transfer frames to memory. It can have up to 32 threads per instance. J721S2 has two instances of the subsystem, so there are 64 threads total, Add them to the endpoint map. Signed-off-by: Vaishnav Achath <[email protected]> Reviewed-by: Udit Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e54df52 commit 93bdff7

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

drivers/dma/ti/k3-psil-j721s2.c

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@
5757
}, \
5858
}
5959

60+
#define PSIL_CSI2RX(x) \
61+
{ \
62+
.thread_id = x, \
63+
.ep_config = { \
64+
.ep_type = PSIL_EP_NATIVE, \
65+
}, \
66+
}
67+
6068
/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
6169
static struct psil_ep j721s2_src_ep_map[] = {
6270
/* PDMA_MCASP - McASP0-4 */
@@ -114,6 +122,71 @@ static struct psil_ep j721s2_src_ep_map[] = {
114122
PSIL_PDMA_XY_PKT(0x4707),
115123
PSIL_PDMA_XY_PKT(0x4708),
116124
PSIL_PDMA_XY_PKT(0x4709),
125+
/* CSI2RX */
126+
PSIL_CSI2RX(0x4940),
127+
PSIL_CSI2RX(0x4941),
128+
PSIL_CSI2RX(0x4942),
129+
PSIL_CSI2RX(0x4943),
130+
PSIL_CSI2RX(0x4944),
131+
PSIL_CSI2RX(0x4945),
132+
PSIL_CSI2RX(0x4946),
133+
PSIL_CSI2RX(0x4947),
134+
PSIL_CSI2RX(0x4948),
135+
PSIL_CSI2RX(0x4949),
136+
PSIL_CSI2RX(0x494a),
137+
PSIL_CSI2RX(0x494b),
138+
PSIL_CSI2RX(0x494c),
139+
PSIL_CSI2RX(0x494d),
140+
PSIL_CSI2RX(0x494e),
141+
PSIL_CSI2RX(0x494f),
142+
PSIL_CSI2RX(0x4950),
143+
PSIL_CSI2RX(0x4951),
144+
PSIL_CSI2RX(0x4952),
145+
PSIL_CSI2RX(0x4953),
146+
PSIL_CSI2RX(0x4954),
147+
PSIL_CSI2RX(0x4955),
148+
PSIL_CSI2RX(0x4956),
149+
PSIL_CSI2RX(0x4957),
150+
PSIL_CSI2RX(0x4958),
151+
PSIL_CSI2RX(0x4959),
152+
PSIL_CSI2RX(0x495a),
153+
PSIL_CSI2RX(0x495b),
154+
PSIL_CSI2RX(0x495c),
155+
PSIL_CSI2RX(0x495d),
156+
PSIL_CSI2RX(0x495e),
157+
PSIL_CSI2RX(0x495f),
158+
PSIL_CSI2RX(0x4960),
159+
PSIL_CSI2RX(0x4961),
160+
PSIL_CSI2RX(0x4962),
161+
PSIL_CSI2RX(0x4963),
162+
PSIL_CSI2RX(0x4964),
163+
PSIL_CSI2RX(0x4965),
164+
PSIL_CSI2RX(0x4966),
165+
PSIL_CSI2RX(0x4967),
166+
PSIL_CSI2RX(0x4968),
167+
PSIL_CSI2RX(0x4969),
168+
PSIL_CSI2RX(0x496a),
169+
PSIL_CSI2RX(0x496b),
170+
PSIL_CSI2RX(0x496c),
171+
PSIL_CSI2RX(0x496d),
172+
PSIL_CSI2RX(0x496e),
173+
PSIL_CSI2RX(0x496f),
174+
PSIL_CSI2RX(0x4970),
175+
PSIL_CSI2RX(0x4971),
176+
PSIL_CSI2RX(0x4972),
177+
PSIL_CSI2RX(0x4973),
178+
PSIL_CSI2RX(0x4974),
179+
PSIL_CSI2RX(0x4975),
180+
PSIL_CSI2RX(0x4976),
181+
PSIL_CSI2RX(0x4977),
182+
PSIL_CSI2RX(0x4978),
183+
PSIL_CSI2RX(0x4979),
184+
PSIL_CSI2RX(0x497a),
185+
PSIL_CSI2RX(0x497b),
186+
PSIL_CSI2RX(0x497c),
187+
PSIL_CSI2RX(0x497d),
188+
PSIL_CSI2RX(0x497e),
189+
PSIL_CSI2RX(0x497f),
117190
/* MAIN SA2UL */
118191
PSIL_SA2UL(0x4a40, 0),
119192
PSIL_SA2UL(0x4a41, 0),

0 commit comments

Comments
 (0)