From 98f420b23a62e0c9df78c5851860d47bf1bc87dd Mon Sep 17 00:00:00 2001 From: dmitry pervushin Date: Sun, 31 May 2009 13:32:11 +0100 Subject: [ARM] 5532/1: Freescale STMP: register definitions [3/3] Replace HW_zzz register access macros by regular __raw_readl/__raw_writel calls Signed-off-by: dmitry pervushin Signed-off-by: Russell King --- arch/arm/plat-stmp3xxx/include/mach/dma.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'arch/arm/plat-stmp3xxx/include/mach/dma.h') diff --git a/arch/arm/plat-stmp3xxx/include/mach/dma.h b/arch/arm/plat-stmp3xxx/include/mach/dma.h index 1e305b2bfe73..7c58557c6766 100644 --- a/arch/arm/plat-stmp3xxx/include/mach/dma.h +++ b/arch/arm/plat-stmp3xxx/include/mach/dma.h @@ -25,16 +25,14 @@ #define MAX_PIO_WORDS (15) #endif -#define STMP3XXX_BUS_APBH 0 -#define STMP3XXX_BUS_APBX 1 +#define STMP3XXX_BUS_APBH 0 +#define STMP3XXX_BUS_APBX 1 #define STMP3XXX_DMA_MAX_CHANNEL 16 - - -#define STMP3xxx_DMA(channel, bus) ((bus) * 16 + (channel)) - -#define MAX_DMA_ADDRESS 0xffffffff - -#define MAX_DMA_CHANNELS 32 +#define STMP3XXX_DMA_BUS(dma) ((dma) / 16) +#define STMP3XXX_DMA_CHANNEL(dma) ((dma) % 16) +#define STMP3XXX_DMA(channel, bus) ((bus) * 16 + (channel)) +#define MAX_DMA_ADDRESS 0xffffffff +#define MAX_DMA_CHANNELS 32 struct stmp3xxx_dma_command { u32 next; -- cgit v1.2.3