diff options
author | Shunqian Zheng <zhengsq@rock-chips.com> | 2016-06-24 10:13:29 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-06-27 14:50:08 +0200 |
commit | 4f0aba676735c653b4e739b760c1e66cd520d3e3 (patch) | |
tree | 69d0c011f1379b5b60c57fd822fd575f5fc5825d /kernel | |
parent | 3d08f434bd58656ae630376d0b5afd6ca1ffb013 (diff) |
iommu/rockchip: Use DMA API to manage coherency
Use DMA API instead of architecture internal functions like
__cpuc_flush_dcache_area() etc.
The biggest difficulty here is that dma_map and _sync calls require some
struct device, while there is no real 1:1 relation between an IOMMU
domain and some device. To overcome this, a simple platform device is
registered for each allocated IOMMU domain.
With this patch, this driver can be used on both ARM and ARM64
platforms, such as RK3288 and RK3399 respectively.
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions