mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.175,1.176

tpoynor at infradead.org tpoynor at infradead.org
Wed Apr 27 16:01:52 EDT 2005


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv23243/drivers/mtd/chips

Modified Files:
	cfi_cmdset_0001.c 
Log Message:
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 at mvista.com>


Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -r1.175 -r1.176
--- cfi_cmdset_0001.c	1 Apr 2005 16:36:25 -0000	1.175
+++ cfi_cmdset_0001.c	27 Apr 2005 20:01:49 -0000	1.176
@@ -1812,8 +1812,9 @@
 	struct cfi_private *cfi = map->fldrv_priv;
 	int status, ofs_factor = cfi->interleave * cfi->device_type;
 
+	adr += chip->start;
 	xip_disable(map, chip, adr+(2*ofs_factor));
-	cfi_send_gen_cmd(0x90, 0x55, 0, map, cfi, cfi->device_type, NULL);
+	map_write(map, CMD(0x90), adr+(2*ofs_factor));
 	chip->state = FL_JEDEC_QUERY;
 	status = cfi_read_query(map, adr+(2*ofs_factor));
 	xip_enable(map, chip, 0);





More information about the linux-mtd-cvs mailing list