Skip to content

Commit fc373e4

Browse files
Peter Ujfalusivinodkoul
authored andcommitted
dmaengine: ti: Add support for k3 event routers
In k3 architecture a DMA channel (in TR momde) can be triggered by global events, origination from different modules. The events for triggers can be sent from any module which is connected to PSI-L fabric, but the event number to be sent is DMA channel specific, it is only known after the channel itself is requested. The router operation needs to be split up: - route_allocate: configure the dma_spec for the DMA and store the configuration which is needed for the router's input - set_event: callback used by the DMA driver to set the event number for the channel and enable the routing Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/20201208090440.31792-16-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 2329725 commit fc373e4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com
4+
*/
5+
6+
#ifndef K3_EVENT_ROUTER_
7+
#define K3_EVENT_ROUTER_
8+
9+
#include <linux/types.h>
10+
11+
struct k3_event_route_data {
12+
void *priv;
13+
int (*set_event)(void *priv, u32 event);
14+
};
15+
16+
#endif /* K3_EVENT_ROUTER_ */

0 commit comments

Comments
 (0)