mtd: fix M29W800D dev_id and uaddr

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 30 07:59:02 EST 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=db5432db81b1775f145945b21428490583ab3e2b
Commit:     db5432db81b1775f145945b21428490583ab3e2b
Parent:     d5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3
Author:     Ladislav Michl <Ladislav.Michl at seznam.cz>
AuthorDate: Mon Nov 23 00:06:50 2009 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Nov 30 11:38:32 2009 +0000

    mtd: fix M29W800D dev_id and uaddr
    
    This one sits in my tree for more than two years...
    Using device code found on page 12 (http://www.btdesigner.com/pdfs/M29W800D.pdf)
    and unlock address from page 15 MTD subsytem happily detects ST M29W800DB
    in 16-bit mode. I do believe original author used only 8-bit mode and thus
    didn't hit this bug.
    
    Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/chips/jedec_probe.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index 736a3be..1bec5e1 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -142,8 +142,8 @@
 
 /* ST - www.st.com */
 #define M29F800AB	0x0058
-#define M29W800DT	0x00D7
-#define M29W800DB	0x005B
+#define M29W800DT	0x22D7
+#define M29W800DB	0x225B
 #define M29W400DT	0x00EE
 #define M29W400DB	0x00EF
 #define M29W160DT	0x22C4
@@ -1575,7 +1575,7 @@ static const struct amd_flash_info jedec_table[] = {
 		.dev_id		= M29W800DT,
 		.name		= "ST M29W800DT",
 		.devtypes	= CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
-		.uaddr		= MTD_UADDR_0x5555_0x2AAA,	/* ???? */
+		.uaddr		= MTD_UADDR_0x0AAA_0x0555,
 		.dev_size	= SIZE_1MiB,
 		.cmd_set	= P_ID_AMD_STD,
 		.nr_regions	= 4,
@@ -1590,7 +1590,7 @@ static const struct amd_flash_info jedec_table[] = {
 		.dev_id		= M29W800DB,
 		.name		= "ST M29W800DB",
 		.devtypes	= CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
-		.uaddr		= MTD_UADDR_0x5555_0x2AAA,	/* ???? */
+		.uaddr		= MTD_UADDR_0x0AAA_0x0555,
 		.dev_size	= SIZE_1MiB,
 		.cmd_set	= P_ID_AMD_STD,
 		.nr_regions	= 4,



More information about the linux-mtd-cvs mailing list