summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2013-07-30 23:37:51 +0200
committerAnatolij Gustschin <[email protected]>2013-08-09 21:48:34 +0200
commit69f7345c95011cdc46d0ecf5e62c16d711e2eb2a (patch)
treee7cb55607c9ae2354a87ac8ae1f015df0464c650 /arch
parenta78dac79ede7fbb4c9e816abc879655540c3f076 (diff)
dma: apbh: Add special circular mode for LCD
Add special function that executes a specially crafted circular DMA descriptor. The function doesn't wait for the descriptor to finish the transfer, since the descritor never finishes. This is useful when operating a SmartLCD through the LCDIF interface, as the LCDIF does not give us any means to have continuous refresh of the SmartLCD. Instead, the RUN bit in the LCDIF CTRL register must be triggered manually. This can be worked around by starting an DMA transfer which continuously sets the RUN bit. This function allows starting exactly such transfer. Signed-off-by: Marek Vasut <[email protected]> Cc: Anatolij Gustschin <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Otavio Salvador <[email protected]> Cc: Stefano Babic <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/imx-common/dma.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/imx-common/dma.h b/arch/arm/include/asm/imx-common/dma.h
index 5f516ef6e04..d5c1f7f255a 100644
--- a/arch/arm/include/asm/imx-common/dma.h
+++ b/arch/arm/include/asm/imx-common/dma.h
@@ -161,4 +161,6 @@ void mxs_dma_init(void);
int mxs_dma_init_channel(int chan);
int mxs_dma_release(int chan);
+void mxs_dma_circ_start(int chan, struct mxs_dma_desc *pdesc);
+
#endif /* __DMA_H__ */