summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLuca Ellero <luca.ellero@brickedbrain.com>2014-12-16 15:36:14 +0100
committerScott Wood <scottwood@freescale.com>2015-03-30 22:25:47 -0500
commit5263a02e8b5034dfe962ed2ce9892a617bac8583 (patch)
treea881e7188f8aed23255f9f8288ba8974c5bee49f /drivers
parent662e2acb46250881ec26bc8366fc9eb1856cb7c2 (diff)
downloadu-boot-imx-5263a02e8b5034dfe962ed2ce9892a617bac8583.zip
u-boot-imx-5263a02e8b5034dfe962ed2ce9892a617bac8583.tar.gz
u-boot-imx-5263a02e8b5034dfe962ed2ce9892a617bac8583.tar.bz2
mtd: nand: mxs: fix PIO_WORDs in mxs_nand_read_buf()
There is only one pio_word in this DMA transaction so data field must be 1. Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxs_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index 7a064ab..8c6954b 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -453,7 +453,7 @@ static void mxs_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int length)
d->cmd.data =
MXS_DMA_DESC_COMMAND_NO_DMAXFER | MXS_DMA_DESC_IRQ |
MXS_DMA_DESC_NAND_WAIT_4_READY | MXS_DMA_DESC_DEC_SEM |
- MXS_DMA_DESC_WAIT4END | (4 << MXS_DMA_DESC_PIO_WORDS_OFFSET);
+ MXS_DMA_DESC_WAIT4END | (1 << MXS_DMA_DESC_PIO_WORDS_OFFSET);
d->cmd.address = 0;