]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/am335x_spl_bch.c
Merge branch 'master' of git://git.denx.de/u-boot-usb
[u-boot] / drivers / mtd / nand / am335x_spl_bch.c
index bd89b067d5bfe669bca3d40cadae3de45a4625c2..ce65d8e12b12075714a18581570d4c86d0a4fcb6 100644 (file)
@@ -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 */