aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorGravatar Huang Shijie <b32955@freescale.com> 2014-02-21 13:39:40 +0800
committerGravatar Brian Norris <computersforpeace@gmail.com> 2014-03-10 22:42:27 -0700
commit913618185e51ee1fcbc193b2f121a9d072405619 (patch)
tree925cbffa92fb3ede2963de273a71dd70c0673864 /include/linux/mtd
parentmtd: nand: add a helper to get the supported features for JEDEC (diff)
downloadlinux-913618185e51ee1fcbc193b2f121a9d072405619.tar.gz
linux-913618185e51ee1fcbc193b2f121a9d072405619.tar.bz2
linux-913618185e51ee1fcbc193b2f121a9d072405619.zip
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>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index afd1cf9b5eaf..aa005e87d161 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -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. */