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>
This commit is contained in:
parent
9fc05fcada
commit
08968041be
3 changed files with 9 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue