summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfirmware/target/arm/s5l8700/dma-s5l8700.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/dma-s5l8700.c b/firmware/target/arm/s5l8700/dma-s5l8700.c
index f766cef98a..88db7e005f 100755
--- a/firmware/target/arm/s5l8700/dma-s5l8700.c
+++ b/firmware/target/arm/s5l8700/dma-s5l8700.c
@@ -83,7 +83,7 @@ void dma_setup_channel(int channel, int sel, int dir, int dsize, int blen,
(1 << 16) | /* WCOMINT */
(0 << 0); /* OFFSET */
DMABASE(channel) = (unsigned int)addr;
- DMATCNT(channel) = size;
+ DMATCNT(channel) = size - 1;
}
void dma_enable_channel(int channel)