summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGuillaume LECERF <glecerf@gmail.com>2010-10-26 10:45:23 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-26 11:39:17 +0100
commit08968041bef437ec363623cd3218c2b083537ada (patch)
tree937da129712ee96f3099d762d100543743eed062 /include/linux
parent9fc05fcadadcf3d6ddfe288e2e5c7ad0773b2abf (diff)
mtd: cfi_cmdset_0002: make sector erase command variable
Some old SST chips use 0x50 as sector erase command, instead of 0x30. Make this value variable to handle such chips. Signed-off-by: Guillaume LECERF <glecerf@gmail.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/cfi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/cfi.h b/include/linux/mtd/cfi.h
index d2118b0eac9a..4dd0c2cd7659 100644
--- a/include/linux/mtd/cfi.h
+++ b/include/linux/mtd/cfi.h
@@ -289,6 +289,7 @@ struct cfi_private {
must be of the same type. */
int mfr, id;
int numchips;
+ map_word sector_erase_cmd;
unsigned long chipshift; /* Because they're of the same type */
const char *im_name; /* inter_module name for cmdset_setup */
struct flchip chips[0]; /* per-chip data structure for each chip */