diff options
author | Ladislav Michl <Ladislav.Michl@seznam.cz> | 2009-11-22 18:06:50 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 06:38:32 -0500 |
commit | db5432db81b1775f145945b21428490583ab3e2b (patch) | |
tree | 7ec4658a3c67c547a49387825913204487054aec /drivers/mtd | |
parent | d5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 (diff) |
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@linux-mips.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | 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 736a3be265f2..1bec5e1ce6ac 100644 --- a/drivers/mtd/chips/jedec_probe.c +++ b/drivers/mtd/chips/jedec_probe.c | |||
@@ -142,8 +142,8 @@ | |||
142 | 142 | ||
143 | /* ST - www.st.com */ | 143 | /* ST - www.st.com */ |
144 | #define M29F800AB 0x0058 | 144 | #define M29F800AB 0x0058 |
145 | #define M29W800DT 0x00D7 | 145 | #define M29W800DT 0x22D7 |
146 | #define M29W800DB 0x005B | 146 | #define M29W800DB 0x225B |
147 | #define M29W400DT 0x00EE | 147 | #define M29W400DT 0x00EE |
148 | #define M29W400DB 0x00EF | 148 | #define M29W400DB 0x00EF |
149 | #define M29W160DT 0x22C4 | 149 | #define M29W160DT 0x22C4 |
@@ -1575,7 +1575,7 @@ static const struct amd_flash_info jedec_table[] = { | |||
1575 | .dev_id = M29W800DT, | 1575 | .dev_id = M29W800DT, |
1576 | .name = "ST M29W800DT", | 1576 | .name = "ST M29W800DT", |
1577 | .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, | 1577 | .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, |
1578 | .uaddr = MTD_UADDR_0x5555_0x2AAA, /* ???? */ | 1578 | .uaddr = MTD_UADDR_0x0AAA_0x0555, |
1579 | .dev_size = SIZE_1MiB, | 1579 | .dev_size = SIZE_1MiB, |
1580 | .cmd_set = P_ID_AMD_STD, | 1580 | .cmd_set = P_ID_AMD_STD, |
1581 | .nr_regions = 4, | 1581 | .nr_regions = 4, |
@@ -1590,7 +1590,7 @@ static const struct amd_flash_info jedec_table[] = { | |||
1590 | .dev_id = M29W800DB, | 1590 | .dev_id = M29W800DB, |
1591 | .name = "ST M29W800DB", | 1591 | .name = "ST M29W800DB", |
1592 | .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, | 1592 | .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, |
1593 | .uaddr = MTD_UADDR_0x5555_0x2AAA, /* ???? */ | 1593 | .uaddr = MTD_UADDR_0x0AAA_0x0555, |
1594 | .dev_size = SIZE_1MiB, | 1594 | .dev_size = SIZE_1MiB, |
1595 | .cmd_set = P_ID_AMD_STD, | 1595 | .cmd_set = P_ID_AMD_STD, |
1596 | .nr_regions = 4, | 1596 | .nr_regions = 4, |