diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-11-08 13:04:06 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-03 19:31:44 -0400 |
commit | 64a2dc3d3de4235eb73921d870a674a23d9888f0 (patch) | |
tree | 02be605c9a07a76952dc8678d7e7a4e0c2bac2f3 /include/linux/omap-dma.h | |
parent | ad0c381a8b3a15b8edfca0996729ea45692470ca (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.h | 13 |
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 | ||
274 | enum { | ||
275 | OMAP_DMA_REG_NONE, | ||
276 | OMAP_DMA_REG_16BIT, | ||
277 | OMAP_DMA_REG_2X16BIT, | ||
278 | OMAP_DMA_REG_32BIT, | ||
279 | }; | ||
280 | |||
281 | struct 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 */ |
275 | struct omap_system_dma_plat_info { | 288 | struct omap_system_dma_plat_info { |
276 | struct omap_dma_dev_attr *dma_attr; | 289 | struct omap_dma_dev_attr *dma_attr; |