|
@@ -366,6 +366,20 @@ struct xilinx_dma_chan {
|
|
|
u16 tdest;
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * enum xdma_ip_type: DMA IP type.
|
|
|
+ *
|
|
|
+ * XDMA_TYPE_AXIDMA: Axi dma ip.
|
|
|
+ * XDMA_TYPE_CDMA: Axi cdma ip.
|
|
|
+ * XDMA_TYPE_VDMA: Axi vdma ip.
|
|
|
+ *
|
|
|
+ */
|
|
|
+enum xdma_ip_type {
|
|
|
+ XDMA_TYPE_AXIDMA = 0,
|
|
|
+ XDMA_TYPE_CDMA,
|
|
|
+ XDMA_TYPE_VDMA,
|
|
|
+};
|
|
|
+
|
|
|
struct xilinx_dma_config {
|
|
|
enum xdma_ip_type dmatype;
|
|
|
int (*clk_init)(struct platform_device *pdev, struct clk **axi_clk,
|