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)
committerChanho Park <chanho61.park@samsung.com>
Wed, 16 Apr 2014 12:36:52 +0000 (21:36 +0900)
commitbad744fb50877d3dce1505417685484efa437d0e
treed3e5e25a71457d2a9512e2a14cd1dc6bc6ba7211
parent4dd75ec77356a23b604be3116a7ea77e8e353627
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