]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: [Review] Multi-platform image #6: cpu-to-dma-addr optional
authorVineet Gupta <vgupta@synopsys.com>
Tue, 22 Jan 2013 11:23:57 +0000 (16:53 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 15 Feb 2013 17:46:15 +0000 (23:16 +0530)
commitf38d3245e2b4a757647246862c8d5d870acfc502
tree04a0c556489438b9c25613345bc1a25cef38819b
parente29b13184fcf643bc54f09094095d854eadc1d3d
ARC: [Review] Multi-platform image #6: cpu-to-dma-addr optional

All the current platforms can work with 0x8000_0000 based dma_addr_t
since the Bus Bridges typically ignore the top bit (the only excpetion
was Angel4 PCI-AHB bridge which we no longer care for).
That way we don't need plat-specific cpu-addr to bus-addr conversion.

Hooks still provided - just in case a platform has an obscure device
which say needs 0 based bus address.

That way <asm/dma_mapping.h> no longer needs to unconditinally include
<plat/dma_addr.h>

Also verfied that on Angel4 board, other peripherals (IDE-disk / EMAC)
work fine with 0x8000_0000 based dma addresses.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/arc/Kconfig
arch/arc/include/asm/dma-mapping.h
arch/arc/plat-arcfpga/include/plat/dma_addr.h [deleted file]