summaryrefslogtreecommitdiffstats
path: root/drivers/dma/fsldma.h
diff options
context:
space:
mode:
authorScott Wood2018-12-22 05:34:45 +0100
committerVinod Koul2019-02-04 08:26:54 +0100
commit6175f6a7ebc77a3c83b425fdb4fc186c771193bf (patch)
tree277eb6d0bed7363f75cc8068844889435125c3a6 /drivers/dma/fsldma.h
parentdmaengine: fsl-edma: dma map slave device address (diff)
downloadkernel-qcow2-linux-6175f6a7ebc77a3c83b425fdb4fc186c771193bf.tar.gz
kernel-qcow2-linux-6175f6a7ebc77a3c83b425fdb4fc186c771193bf.tar.xz
kernel-qcow2-linux-6175f6a7ebc77a3c83b425fdb4fc186c771193bf.zip
dmaengine: fsldma: Add 64-bit I/O accessors for powerpc64
Otherwise 64-bit PPC builds fail with undefined references to these accessors. Cc: Peng Ma <peng.ma@nxp.com> Cc: Wen He <wen.he_1@nxp.com> Fixes: 68997fff94afa (" dmaengine: fsldma: Adding macro FSL_DMA_IN/OUT implement for ARM platform") Signed-off-by: Scott Wood <oss@buserror.net> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/fsldma.h')
-rw-r--r--drivers/dma/fsldma.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h
index 88db939c04a1..a9b12f82b5c3 100644
--- a/drivers/dma/fsldma.h
+++ b/drivers/dma/fsldma.h
@@ -202,7 +202,12 @@ struct fsldma_chan {
#define fsl_iowrite32(v, p) out_le32(p, v)
#define fsl_iowrite32be(v, p) out_be32(p, v)
-#ifndef __powerpc64__
+#ifdef __powerpc64__
+#define fsl_ioread64(p) in_le64(p)
+#define fsl_ioread64be(p) in_be64(p)
+#define fsl_iowrite64(v, p) out_le64(p, v)
+#define fsl_iowrite64be(v, p) out_be64(p, v)
+#else
static u64 fsl_ioread64(const u64 __iomem *addr)
{
u32 fsl_addr = lower_32_bits(addr);