summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/am335x_spl_bch.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/am335x_spl_bch.c')
-rw-r--r--drivers/mtd/nand/am335x_spl_bch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/am335x_spl_bch.c b/drivers/mtd/nand/am335x_spl_bch.c
index bd89b067d5..ce65d8e12b 100644
--- a/drivers/mtd/nand/am335x_spl_bch.c
+++ b/drivers/mtd/nand/am335x_spl_bch.c
@@ -55,7 +55,7 @@ static int nand_command(int block, int page, uint32_t offs,
}
/* Shift the offset from byte addressing to word addressing. */
- if (this->options & NAND_BUSWIDTH_16)
+ if ((this->options & NAND_BUSWIDTH_16) && !nand_opcode_8bits(cmd))
offs >>= 1;
/* Set ALE and clear CLE to start address cycle */