diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2016-08-25 10:30:04 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-11-15 14:27:57 (GMT) |
commit | 02bcff2c56ed1528c01bf718892e0b4dc37dfacc (patch) | |
tree | c689ca0a73ddaeda834e5d44cef02bd9db3eb35f /drivers/mtd/nand/arasan_nfc.c | |
parent | cde28c815581d5b1086ef1e84613367ae96df085 (diff) | |
download | u-boot-fsl-qoriq-02bcff2c56ed1528c01bf718892e0b4dc37dfacc.tar.xz |
nand: arasan_nfc: Clear ecc on bit while sending read command
Clear ecc ON bit while sending read command as all types
of read command(like reading spare) doesnt need ECC to be
enabled. It has been anyway taken care in other places
whereever required using arasan_nand_enable_ecc().
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/mtd/nand/arasan_nfc.c')
-rw-r--r-- | drivers/mtd/nand/arasan_nfc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/arasan_nfc.c b/drivers/mtd/nand/arasan_nfc.c index 86f7526..a8f795d 100644 --- a/drivers/mtd/nand/arasan_nfc.c +++ b/drivers/mtd/nand/arasan_nfc.c @@ -853,6 +853,8 @@ static int arasan_nand_send_rdcmd(struct arasan_nand_command_format *curr_cmd, reg_val |= (page_val << ARASAN_NAND_CMD_PG_SIZE_SHIFT); } + reg_val &= ~ARASAN_NAND_CMD_ECC_ON_MASK; + reg_val &= ~ARASAN_NAND_CMD_ADDR_CYCL_MASK; addr_cycles = arasan_nand_get_addrcycle(mtd); |