amba-clcd: separate ioremap framebuffer from DMA implementation
authorWill Deacon <will.deacon@arm.com>
Mon, 28 Jan 2013 12:06:58 +0000 (12:06 +0000)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:04:31 +0000 (11:04 +0100)
commit50ad0eb192d28ffaaac1a8c0ec97aa07bf9be645
tree4f5d95d4d4941e9adc7c86756aadb83c29262068
parent8df3102afa56f6e0b8fdc6df4af0ac4d8436f9a6
amba-clcd: separate ioremap framebuffer from DMA implementation

The amba-clcd device can be configured to use either DMA or, when this
feature is not available, an ioremapped frambuffer in static ram.

In the case of the latter, we must take care not to pass ioremapped
addresses to dma_common_mmap, since this expects only addresses from
dma_mmap_coherent, which reside in the kernel linear mapping.

This patch reworks the fb initialisation code so that either DMA or IO
implementations of the mmap/remove functions are chosen as appropriate.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/video/amba-clcd.c