diff options
author | David Mosberger <dmosberger@gmail.com> | 2013-05-29 15:30:13 +0300 |
---|---|---|
committer | Huang Shijie <b32955@freescale.com> | 2013-11-05 09:17:22 +0800 |
commit | cd683fdb147b9888918b31848403fbbfd6f8fd77 (patch) | |
tree | cbd7bfa11d6f1869ffe41a98f7d9aef9506225e9 /include | |
parent | d35a2e080077f7d10db202ea1de8ee25c63c17de (diff) |
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>
Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/nand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 05c5f9a0e5cc..a8d6623f18f7 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' */ |