aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Poynor <tpoynor@mvista.com>2005-04-27 16:01:52 -0400
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-05-23 07:18:44 -0400
commitc25bb1f59ca6ebbee2649d82533537d4bf123609 (patch)
tree74dbbdfc3da2709308d73eee65695e1bfc75145a
parentc13cbf3b5086d4ed51360b86b6b0ef8b82b179dc (diff)
[MTD] CFI DEBUG_LOCK_BITS fixes for Intel NOR flash:
adjust chip-relative offsets to block address, write to block address + 2 per recent datasheets. Signed-off-by: Todd Poynor <tpoynor@mvista.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0001.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index b99400f6e484..71fad1601444 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * (C) 2000 Red Hat. GPL'd 5 * (C) 2000 Red Hat. GPL'd
6 * 6 *
7 * $Id: cfi_cmdset_0001.c,v 1.175 2005/04/01 16:36:25 nico Exp $ 7 * $Id: cfi_cmdset_0001.c,v 1.176 2005/04/27 20:01:49 tpoynor Exp $
8 * 8 *
9 * 9 *
10 * 10/10/2000 Nicolas Pitre <nico@cam.org> 10 * 10/10/2000 Nicolas Pitre <nico@cam.org>
@@ -1812,8 +1812,9 @@ static int __xipram do_printlockstatus_oneblock(struct map_info *map,
1812 struct cfi_private *cfi = map->fldrv_priv; 1812 struct cfi_private *cfi = map->fldrv_priv;
1813 int status, ofs_factor = cfi->interleave * cfi->device_type; 1813 int status, ofs_factor = cfi->interleave * cfi->device_type;
1814 1814
1815 adr += chip->start;
1815 xip_disable(map, chip, adr+(2*ofs_factor)); 1816 xip_disable(map, chip, adr+(2*ofs_factor));
1816 cfi_send_gen_cmd(0x90, 0x55, 0, map, cfi, cfi->device_type, NULL); 1817 map_write(map, CMD(0x90), adr+(2*ofs_factor));
1817 chip->state = FL_JEDEC_QUERY; 1818 chip->state = FL_JEDEC_QUERY;
1818 status = cfi_read_query(map, adr+(2*ofs_factor)); 1819 status = cfi_read_query(map, adr+(2*ofs_factor));
1819 xip_enable(map, chip, 0); 1820 xip_enable(map, chip, 0);