]> Git Repo - J-u-boot.git/blobdiff - drivers/dma/dma-uclass.c
dma: Introduce dma_get_cfg() interface
[J-u-boot.git] / drivers / dma / dma-uclass.c
index 0ff56f7e88c9e04c76bf265f60c2279d4b2e9c69..5598bca21c5e64298cf5b6e5a74d989fc62e6624 100644 (file)
@@ -187,6 +187,18 @@ int dma_send(struct dma *dma, void *src, size_t len, void *metadata)
 
        return ops->send(dma, src, len, metadata);
 }
+
+int dma_get_cfg(struct dma *dma, u32 cfg_id, void **cfg_data)
+{
+       struct dma_ops *ops = dma_dev_ops(dma->dev);
+
+       debug("%s(dma=%p)\n", __func__, dma);
+
+       if (!ops->get_cfg)
+               return -ENOSYS;
+
+       return ops->get_cfg(dma, cfg_id, cfg_data);
+}
 #endif /* CONFIG_DMA_CHANNELS */
 
 int dma_get_device(u32 transfer_type, struct udevice **devp)
This page took 0.024976 seconds and 4 git commands to generate.