[flashrom] [commit] r942 - trunk

repository service svn at flashrom.org
Tue Mar 16 02:00:51 CET 2010


Author: snelson
Date: Tue Mar 16 02:00:50 2010
New Revision: 942
URL: http://flashrom.org/trac/coreboot/changeset/942

Log:
remove function probe_28sf040
delete references to dead sharplhf00l04.c and sst29sf040.c functions from chipdrivers.h
Signed-off-by: Sean Nelson <audiohacked at gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Modified:
   trunk/chipdrivers.h
   trunk/sst28sf040.c

Modified: trunk/chipdrivers.h
==============================================================================
--- trunk/chipdrivers.h	Tue Mar 16 01:51:31 2010	(r941)
+++ trunk/chipdrivers.h	Tue Mar 16 02:00:50 2010	(r942)
@@ -93,13 +93,10 @@
 int lock_49fl00x(struct flashchip *flash);
 
 /* sharplhf00l04.c */
-int probe_lhf00l04(struct flashchip *flash);
 int erase_lhf00l04_block(struct flashchip *flash, unsigned int blockaddr, unsigned int blocklen);
 int write_lhf00l04(struct flashchip *flash, uint8_t *buf);
-void protect_lhf00l04(chipaddr bios);
 
 /* sst28sf040.c */
-int probe_28sf040(struct flashchip *flash);
 int erase_chip_28sf040(struct flashchip *flash, unsigned int addr, unsigned int blocklen);
 int erase_sector_28sf040(struct flashchip *flash, unsigned int address, unsigned int sector_size);
 int write_28sf040(struct flashchip *flash, uint8_t *buf);

Modified: trunk/sst28sf040.c
==============================================================================
--- trunk/sst28sf040.c	Tue Mar 16 01:51:31 2010	(r941)
+++ trunk/sst28sf040.c	Tue Mar 16 02:00:50 2010	(r942)
@@ -92,30 +92,6 @@
 	return 0;
 }
 
-int probe_28sf040(struct flashchip *flash)
-{
-	chipaddr bios = flash->virtual_memory;
-	uint8_t id1, id2;
-
-	chip_writeb(RESET, bios);
-	programmer_delay(10);
-
-	chip_writeb(READ_ID, bios);
-	programmer_delay(10);
-	id1 = chip_readb(bios);
-	programmer_delay(10);
-	id2 = chip_readb(bios + 0x01);
-
-	chip_writeb(RESET, bios);
-	programmer_delay(10);
-
-	printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __func__, id1, id2);
-	if (id1 == flash->manufacture_id && id2 == flash->model_id)
-		return 1;
-
-	return 0;
-}
-
 int erase_28sf040(struct flashchip *flash)
 {
 	chipaddr bios = flash->virtual_memory;




More information about the flashrom mailing list