ARM: shmobile: dma: Use defines instead of hardcoded numbers
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 5 Aug 2014 13:21:29 +0000 (15:21 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 20 Aug 2014 00:09:23 +0000 (09:09 +0900)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/dma-register.h

index 97c40bd9b94fabb5f4635586a70d50e6f22369bd..52a2f66e600f29953e3486bbe985c0e01d322d96 100644 (file)
@@ -52,8 +52,8 @@ static const unsigned int dma_ts_shift[] = {
        ((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\
         (((i) & TS_HI_BIT)  << TS_HI_SHIFT))
 
-#define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL((xmit_sz)))
-#define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL((xmit_sz)))
+#define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | RS_ERS | TS_INDEX2VAL((xmit_sz)))
+#define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | RS_ERS | TS_INDEX2VAL((xmit_sz)))
 
 
 /*