]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/linux/mtd/nand.h
mtd: nand: fix GET/SET_FEATURES address on 16-bit devices
[karo-tx-uboot.git] / include / linux / mtd / nand.h
index 4be885823cfee360e2038f449b08ca4266c1c630..991bd8e63ed0dccf945062b5085065004e667abe 100644 (file)
@@ -725,7 +725,16 @@ static inline int onfi_get_sync_timing_mode(struct nand_chip *chip)
  */
 static inline int nand_opcode_8bits(unsigned int command)
 {
-       return command == NAND_CMD_READID;
+       switch (command) {
+       case NAND_CMD_READID:
+       case NAND_CMD_PARAM:
+       case NAND_CMD_GET_FEATURES:
+       case NAND_CMD_SET_FEATURES:
+               return 1;
+       default:
+               break;
+       }
+       return 0;
 }