Commit 6175f6a7 authored by Scott Wood's avatar Scott Wood Committed by Vinod Koul

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: default avatarScott Wood <oss@buserror.net>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 0fa89f97
...@@ -202,7 +202,12 @@ struct fsldma_chan { ...@@ -202,7 +202,12 @@ struct fsldma_chan {
#define fsl_iowrite32(v, p) out_le32(p, v) #define fsl_iowrite32(v, p) out_le32(p, v)
#define fsl_iowrite32be(v, p) out_be32(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) static u64 fsl_ioread64(const u64 __iomem *addr)
{ {
u32 fsl_addr = lower_32_bits(addr); u32 fsl_addr = lower_32_bits(addr);
......
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