[PATCH] [MTD] [NOR] Add support for the ST M29W400DB flash chip.
Gordon Farquharson
gordonfarquharson at gmail.com
Tue Jan 8 23:35:15 EST 2008
Add support for the ST M29W400DB flash chip.
Signed-off-by: Gordon Farquharson <gordonfarquharson at gmail.com>
---
diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index 6405938..0b4f481 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -135,6 +135,7 @@
#define M29W160DT 0x22C4
#define M29W160DB 0x2249
#define M29W040B 0x00E3
+#define M29W400DB 0x00EF
#define M50FW040 0x002C
#define M50FW080 0x002D
#define M50FW016 0x002E
@@ -1498,7 +1499,22 @@ static const struct amd_flash_info jedec_table[] = {
.regions = {
ERASEINFO(0x10000,8),
}
- }, {
+ }, {
+ .mfr_id = MANUFACTURER_ST,
+ .dev_id = M29W400DB,
+ .name = "ST M29W400DB",
+ .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
+ .uaddr = MTD_UADDR_0x0555_0x02AA,
+ .dev_size = SIZE_512KiB,
+ .cmd_set = P_ID_AMD_STD,
+ .nr_regions = 4,
+ .regions = {
+ ERASEINFO(0x04000,1),
+ ERASEINFO(0x02000,2),
+ ERASEINFO(0x08000,1),
+ ERASEINFO(0x10000,7)
+ }
+ }, {
.mfr_id = MANUFACTURER_ST,
.dev_id = M50FW040,
.name = "ST M50FW040",
--
Gordon Farquharson
GnuPG Key ID: 32D6D676
More information about the linux-mtd
mailing list