mtd: nand: parse out the JEDEC compliant NAND

This patch adds the parsing code for the JEDEC compliant NAND.

Since we need the 0x40 as the column address, this patch also
makes the NAND_CMD_PARAM to use the 8-bit address only.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Huang Shijie
2014-02-21 13:39:40 +08:00
committed by Brian Norris
parent 7852f8962f
commit 913618185e
2 changed files with 86 additions and 1 deletions

View File

@ -925,7 +925,7 @@ static inline bool nand_is_slc(struct nand_chip *chip)
*/
static inline int nand_opcode_8bits(unsigned int command)
{
return command == NAND_CMD_READID;
return command == NAND_CMD_READID || command == NAND_CMD_PARAM;
}
/* return the supported JEDEC features. */