]> git.sur5r.net Git - u-boot/blobdiff - include/linux/mtd/nand.h
Merge git://www.denx.de/git/u-boot-ppc4xx
[u-boot] / include / linux / mtd / nand.h
index 0546565593546734d1e91b822d555fe2e25572db..991bd8e63ed0dccf945062b5085065004e667abe 100644 (file)
@@ -719,4 +719,23 @@ static inline int onfi_get_sync_timing_mode(struct nand_chip *chip)
 }
 #endif
 
+/**
+ * Check if the opcode's address should be sent only on the lower 8 bits
+ * @command: opcode to check
+ */
+static inline int nand_opcode_8bits(unsigned int command)
+{
+       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;
+}
+
+
 #endif /* __LINUX_MTD_NAND_H */