Skip to content

Commit b9366e2

Browse files
Peter Ujfalusivinodkoul
authored andcommitted
dmaengine: ti: k3-psil: Extend psil_endpoint_config for K3 PKTDMA
Additional fields needed for K3 PKTDMA to be able to handle the mapped channels (channels are locked to handle specific threads) and flow ranges for these mapped threads. PKTDMA also introduces tflow for tx channels which can not be found in K3 UDMA architecture. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Link: https://lore.kernel.org/r/20201208090440.31792-14-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 1d92cec commit b9366e2

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎include/linux/dma/k3-psil.h‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ enum psil_endpoint_type {
5050
* @channel_tpl: Desired throughput level for the channel
5151
* @pdma_acc32: ACC32 must be enabled on the PDMA side
5252
* @pdma_burst: BURST must be enabled on the PDMA side
53+
* @mapped_channel_id: PKTDMA thread to channel mapping for mapped channels.
54+
* The thread must be serviced by the specified channel if
55+
* mapped_channel_id is >= 0 in case of PKTDMA
56+
* @flow_start: PKDMA flow range start of mapped channel. Unmapped
57+
* channels use flow_id == chan_id
58+
* @flow_num: PKDMA flow count of mapped channel. Unmapped channels
59+
* use flow_id == chan_id
60+
* @default_flow_id: PKDMA default (r)flow index of mapped channel.
61+
* Must be within the flow range of the mapped channel.
5362
*/
5463
struct psil_endpoint_config {
5564
enum psil_endpoint_type ep_type;
@@ -63,6 +72,13 @@ struct psil_endpoint_config {
6372
/* PDMA properties, valid for PSIL_EP_PDMA_* */
6473
unsigned pdma_acc32:1;
6574
unsigned pdma_burst:1;
75+
76+
/* PKDMA mapped channel */
77+
int mapped_channel_id;
78+
/* PKTDMA tflow and rflow ranges for mapped channel */
79+
u16 flow_start;
80+
u16 flow_num;
81+
u16 default_flow_id;
6682
};
6783

6884
int psil_set_new_ep_config(struct device *dev, const char *name,

0 commit comments

Comments
 (0)