Skip to content

Commit

Permalink
nds32: DMA mapping API
Browse files Browse the repository at this point in the history
This patch adds support for the DMA mapping API. It uses dma_map_ops for
flexibility.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Greentime Hu committed Feb 22, 2018
1 parent 4a64f68 commit 80081b3
Show file tree
Hide file tree
Showing 2 changed files with 491 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/nds32/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2005-2017 Andes Technology Corporation

#ifndef ASMNDS32_DMA_MAPPING_H
#define ASMNDS32_DMA_MAPPING_H

extern struct dma_map_ops nds32_dma_ops;

static inline struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
{
return &nds32_dma_ops;
}

#endif
Loading

0 comments on commit 80081b3

Please sign in to comment.