Commit deb1a5f1 authored by Nate Case's avatar Nate Case Committed by David Woodhouse

[MTD] [NOR] Support for M50FLW080A and M50FLW080B

Add support for M50FLW080A and M50FLW080B revisions of LPC flash
devices.
Signed-off-by: default avatarAaron Lindner <alindner@xes-inc.com>
Signed-off-by: default avatarNate Case <ncase@xes-inc.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 91949d64
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
#define I82802AC 0x00ac #define I82802AC 0x00ac
#define MANUFACTURER_ST 0x0020 #define MANUFACTURER_ST 0x0020
#define M50LPW080 0x002F #define M50LPW080 0x002F
#define M50FLW080A 0x0080
#define M50FLW080B 0x0081
#define AT49BV640D 0x02de #define AT49BV640D 0x02de
static int cfi_intelext_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); static int cfi_intelext_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
...@@ -301,6 +303,8 @@ static struct cfi_fixup jedec_fixup_table[] = { ...@@ -301,6 +303,8 @@ static struct cfi_fixup jedec_fixup_table[] = {
{ MANUFACTURER_INTEL, I82802AB, fixup_use_fwh_lock, NULL, }, { MANUFACTURER_INTEL, I82802AB, fixup_use_fwh_lock, NULL, },
{ MANUFACTURER_INTEL, I82802AC, fixup_use_fwh_lock, NULL, }, { MANUFACTURER_INTEL, I82802AC, fixup_use_fwh_lock, NULL, },
{ MANUFACTURER_ST, M50LPW080, fixup_use_fwh_lock, NULL, }, { MANUFACTURER_ST, M50LPW080, fixup_use_fwh_lock, NULL, },
{ MANUFACTURER_ST, M50FLW080A, fixup_use_fwh_lock, NULL, },
{ MANUFACTURER_ST, M50FLW080B, fixup_use_fwh_lock, NULL, },
{ 0, 0, NULL, NULL } { 0, 0, NULL, NULL }
}; };
static struct cfi_fixup fixup_table[] = { static struct cfi_fixup fixup_table[] = {
......
...@@ -141,6 +141,8 @@ ...@@ -141,6 +141,8 @@
#define M50FW080 0x002D #define M50FW080 0x002D
#define M50FW016 0x002E #define M50FW016 0x002E
#define M50LPW080 0x002F #define M50LPW080 0x002F
#define M50FLW080A 0x0080
#define M50FLW080B 0x0081
/* SST */ /* SST */
#define SST29EE020 0x0010 #define SST29EE020 0x0010
...@@ -1590,6 +1592,36 @@ static const struct amd_flash_info jedec_table[] = { ...@@ -1590,6 +1592,36 @@ static const struct amd_flash_info jedec_table[] = {
.nr_regions = 1, .nr_regions = 1,
.regions = { .regions = {
ERASEINFO(0x10000,16), ERASEINFO(0x10000,16),
},
}, {
.mfr_id = MANUFACTURER_ST,
.dev_id = M50FLW080A,
.name = "ST M50FLW080A",
.devtypes = CFI_DEVICETYPE_X8,
.uaddr = MTD_UADDR_UNNECESSARY,
.dev_size = SIZE_1MiB,
.cmd_set = P_ID_INTEL_EXT,
.nr_regions = 4,
.regions = {
ERASEINFO(0x1000,16),
ERASEINFO(0x10000,13),
ERASEINFO(0x1000,16),
ERASEINFO(0x1000,16),
}
}, {
.mfr_id = MANUFACTURER_ST,
.dev_id = M50FLW080B,
.name = "ST M50FLW080B",
.devtypes = CFI_DEVICETYPE_X8,
.uaddr = MTD_UADDR_UNNECESSARY,
.dev_size = SIZE_1MiB,
.cmd_set = P_ID_INTEL_EXT,
.nr_regions = 4,
.regions = {
ERASEINFO(0x1000,16),
ERASEINFO(0x1000,16),
ERASEINFO(0x10000,13),
ERASEINFO(0x1000,16),
} }
}, { }, {
.mfr_id = MANUFACTURER_TOSHIBA, .mfr_id = MANUFACTURER_TOSHIBA,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment