diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-11-08 18:04:06 +0000 |
---|---|---|
committer | Rajendra Nayak <rnayak@ti.com> | 2014-07-08 17:50:17 +0530 |
commit | f061ac7aceab71e069bea2cf300c8a783e26ffeb (patch) | |
tree | 7331efee7c01ea796ae045f166ca151777813b08 /include | |
parent | 27b0bc09e60a377d356884fbe5e40d63707fc38a (diff) |
ARM: omap: clean up DMA register accesses
[ Upstream commit 64a2dc3d3de4235eb73921d870a674a23d9888f0 ]
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')
-rw-r--r-- | include/linux/omap-dma.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h index e51e574cb54..63a618efe09 100644 --- a/include/linux/omap-dma.h +++ b/include/linux/omap-dma.h @@ -255,6 +255,19 @@ struct omap_dma_dev_attr { struct omap_dma_lch *chan; }; +enum { + OMAP_DMA_REG_NONE, + OMAP_DMA_REG_16BIT, + OMAP_DMA_REG_2X16BIT, + OMAP_DMA_REG_32BIT, +}; + +struct omap_dma_reg { + u16 offset; + u8 stride; + u8 type; +}; + /* System DMA platform data structure */ struct omap_system_dma_plat_info { struct omap_dma_dev_attr *dma_attr; |