Commit 5323c48b authored by Michal Simek's avatar Michal Simek

microblaze: Add support for DMA_BIDIRECTIONAL

CDMA requires DMA_BIDIRECTIONAL option.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 0a2e1d23
......@@ -26,6 +26,7 @@ static inline void __dma_sync_page(unsigned long paddr, unsigned long offset,
{
switch (direction) {
case DMA_TO_DEVICE:
case DMA_BIDIRECTIONAL:
flush_dcache_range(paddr + offset, paddr + offset + size);
break;
case DMA_FROM_DEVICE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment