OMAP: DMA: Replace read/write macros with functions
authorG, Manjunath Kondaiah <manjugk@ti.com>
Tue, 21 Dec 2010 02:27:17 +0000 (18:27 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Dec 2010 02:38:29 +0000 (18:38 -0800)
commita4c537c7f60704691efc5f833b3d440252275c3b
treea431af9f844a6556e91f77a4d83b539a378b3741
parent447b8da5d78ac8f2815a7824c0eb4ad66ba3e11e
OMAP: DMA: Replace read/write macros with functions

Prepare DMA library to get converted into DMA driver using platform
device model and hwmod infrastucture(for omap2+, resource structures
for omap1)

The low level read/write macros are replaced with static inline
functions and register offsets are handled through static register
offset tables mapped through  enumeration constants.

These low level read/write functions along with static register offset
tables will be moved to respective mach-omap dma files in the later
patches of this series.

There are no functionality changes with these changes except change in
logic for handling 16bit registers of OMAP1.

Signed-off-by: G, Manjunath Kondaiah <manjugk@ti.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/include/plat/dma.h