diff options
| author | David Mosberger <dmosberger@gmail.com> | 2013-05-29 08:30:13 -0400 |
|---|---|---|
| committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:06:00 -0400 |
| commit | b4fd7e86732df4883ae9282e8f9119e1d08c8a02 (patch) | |
| tree | de13534aab25aaf4afa83e025464523999a34a13 /include/linux/mtd | |
| parent | cbca4c75212da1ea82c10c054bbca36145cd13d8 (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/linux/mtd')
| -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; | |||
| 217 | /* ONFI subfeature parameters length */ | 217 | /* ONFI subfeature parameters length */ |
| 218 | #define ONFI_SUBFEATURE_PARAM_LEN 4 | 218 | #define ONFI_SUBFEATURE_PARAM_LEN 4 |
| 219 | 219 | ||
| 220 | /* ONFI optional commands SET/GET FEATURES supported? */ | ||
| 221 | #define ONFI_OPT_CMD_SET_GET_FEATURES (1 << 2) | ||
| 222 | |||
| 220 | struct nand_onfi_params { | 223 | struct nand_onfi_params { |
| 221 | /* rev info and features block */ | 224 | /* rev info and features block */ |
| 222 | /* 'O' 'N' 'F' 'I' */ | 225 | /* 'O' 'N' 'F' 'I' */ |
