diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2016-03-16 16:38:57 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-03-19 14:34:09 +0530 |
commit | f2e3d55397ff7ad62e159e14281b346760857935 (patch) | |
tree | c24a20b11bd69c34412fa023da623843fccaf575 /arch/arc/include | |
parent | f5db19e93f680160a0fb3e2b05ceb4832b24d486 (diff) | |
download | linux-stable-f2e3d55397ff7ad62e159e14281b346760857935.tar.gz linux-stable-f2e3d55397ff7ad62e159e14281b346760857935.tar.bz2 linux-stable-f2e3d55397ff7ad62e159e14281b346760857935.zip |
ARC: dma: reintroduce platform specific dma<->phys
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/dma-mapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arc/include/asm/dma-mapping.h b/arch/arc/include/asm/dma-mapping.h index 660205414f1d..266f11c9bd59 100644 --- a/arch/arc/include/asm/dma-mapping.h +++ b/arch/arc/include/asm/dma-mapping.h @@ -11,6 +11,13 @@ #ifndef ASM_ARC_DMA_MAPPING_H #define ASM_ARC_DMA_MAPPING_H +#ifndef CONFIG_ARC_PLAT_NEEDS_PHYS_TO_DMA +#define plat_dma_to_phys(dev, dma_handle) ((phys_addr_t)(dma_handle)) +#define plat_phys_to_dma(dev, paddr) ((dma_addr_t)(paddr)) +#else +#include <plat/dma.h> +#endif + extern struct dma_map_ops arc_dma_ops; static inline struct dma_map_ops *get_dma_ops(struct device *dev) |