diff options
author | Luca Ellero <luca.ellero@brickedbrain.com> | 2014-12-16 15:36:15 +0100 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-03-30 22:25:54 -0500 |
commit | 88a2cbb2aeb34c7c91f7cd30b59066368063bd07 (patch) | |
tree | 0cabd95ad945fed58cbd15018be09cbe40c0e459 /drivers | |
parent | 5263a02e8b5034dfe962ed2ce9892a617bac8583 (diff) | |
download | u-boot-imx-88a2cbb2aeb34c7c91f7cd30b59066368063bd07.zip u-boot-imx-88a2cbb2aeb34c7c91f7cd30b59066368063bd07.tar.gz u-boot-imx-88a2cbb2aeb34c7c91f7cd30b59066368063bd07.tar.bz2 |
mtd: nand: mxs: fix PIO_WORDs in mxs_nand_write_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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c index 8c6954b..2d2b938 100644 --- a/drivers/mtd/nand/mxs_nand.c +++ b/drivers/mtd/nand/mxs_nand.c @@ -510,7 +510,7 @@ static void mxs_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, d->cmd.data = MXS_DMA_DESC_COMMAND_DMA_READ | MXS_DMA_DESC_IRQ | MXS_DMA_DESC_DEC_SEM | MXS_DMA_DESC_WAIT4END | - (4 << MXS_DMA_DESC_PIO_WORDS_OFFSET) | + (1 << MXS_DMA_DESC_PIO_WORDS_OFFSET) | (length << MXS_DMA_DESC_BYTES_OFFSET); d->cmd.address = (dma_addr_t)nand_info->data_buf; |