summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sf-pdma/sf-pdma.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/sf-pdma/sf-pdma.h')
-rw-r--r--drivers/dma/sf-pdma/sf-pdma.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/sf-pdma/sf-pdma.h b/drivers/dma/sf-pdma/sf-pdma.h
index aab65a0bdfcc..0c20167b097d 100644
--- a/drivers/dma/sf-pdma/sf-pdma.h
+++ b/drivers/dma/sf-pdma/sf-pdma.h
@@ -57,6 +57,8 @@
/* Error Recovery */
#define MAX_RETRY 1
+#define SF_PDMA_REG_BASE(ch) (pdma->membase + (PDMA_CHAN_OFFSET * (ch)))
+
struct pdma_regs {
/* read-write regs */
void __iomem *ctrl; /* 4 bytes */