summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorDavid Mosberger2013-05-29 14:30:13 +0200
committerDavid Woodhouse2013-08-05 21:49:04 +0200
commitd914c932d7764bf9633af974940aee9390adf20d (patch)
treeb08b576b48b297d925bf83e77619d1c0c4fbc8b1 /include/linux/mtd/nand.h
parentmtd: nand: fsmc: update of OF support (diff)
downloadkernel-qcow2-linux-d914c932d7764bf9633af974940aee9390adf20d.tar.gz
kernel-qcow2-linux-d914c932d7764bf9633af974940aee9390adf20d.tar.xz
kernel-qcow2-linux-d914c932d7764bf9633af974940aee9390adf20d.zip
mtd: nand_base: Only use GET/SET FEATURES command on chips that support them.
Spansion's S34MLx chips support ONFI but not the GET/SET FEATURES calls. Signed-off-by: David Mosberger <dmosberger@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 38535eb453db..0745a42f1acd 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -217,6 +217,9 @@ struct nand_chip;
/* ONFI subfeature parameters length */
#define ONFI_SUBFEATURE_PARAM_LEN 4
+/* ONFI optional commands SET/GET FEATURES supported? */
+#define ONFI_OPT_CMD_SET_GET_FEATURES (1 << 2)
+
struct nand_onfi_params {
/* rev info and features block */
/* 'O' 'N' 'F' 'I' */