aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/omap-dma.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-11-08 13:04:06 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-04-03 19:31:44 -0400
commit64a2dc3d3de4235eb73921d870a674a23d9888f0 (patch)
tree02be605c9a07a76952dc8678d7e7a4e0c2bac2f3 /include/linux/omap-dma.h
parentad0c381a8b3a15b8edfca0996729ea45692470ca (diff)
ARM: omap: clean up DMA register accesses
We can do much better with this by using a structure to describe each register, rather than code. Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/omap-dma.h')
-rw-r--r--include/linux/omap-dma.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h
index 0bb7de77d478..41328725721a 100644
--- a/include/linux/omap-dma.h
+++ b/include/linux/omap-dma.h
@@ -271,6 +271,19 @@ struct omap_dma_dev_attr {
271 struct omap_dma_lch *chan; 271 struct omap_dma_lch *chan;
272}; 272};
273 273
274enum {
275 OMAP_DMA_REG_NONE,
276 OMAP_DMA_REG_16BIT,
277 OMAP_DMA_REG_2X16BIT,
278 OMAP_DMA_REG_32BIT,
279};
280
281struct omap_dma_reg {
282 u16 offset;
283 u8 stride;
284 u8 type;
285};
286
274/* System DMA platform data structure */ 287/* System DMA platform data structure */
275struct omap_system_dma_plat_info { 288struct omap_system_dma_plat_info {
276 struct omap_dma_dev_attr *dma_attr; 289 struct omap_dma_dev_attr *dma_attr;