]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: add coherent dma ops
authorRob Herring <rob.herring@calxeda.com>
Tue, 21 Aug 2012 10:20:17 +0000 (12:20 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 11 Sep 2012 05:43:23 +0000 (07:43 +0200)
commit18a109d5a2d24e1badf4b6a23fc5c3d9f804701b
tree5fc2c2f92191ab11073083d3aa4828d71f343008
parent55d512e245bc7699a8800e23df1a24195dd08217
ARM: add coherent dma ops

arch_is_coherent is problematic as it is a global symbol. This
doesn't work for multi-platform kernels or platforms which can support
per device coherent DMA.

This adds arm_coherent_dma_ops to be used for devices which connected
coherently (i.e. to the ACP port on Cortex-A9 or A15). The arm_dma_ops
are modified at boot when arch_is_coherent is true.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/include/asm/dma-mapping.h
arch/arm/mm/dma-mapping.c