Add unconditional fake 512kByte flash chip match. For debugging purposes
only. Not for merge.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Index: flash.h
===================================================================
--- flash.h (Revision 3210)
+++ flash.h (Arbeitskopie)
@@ -316,6 +316,7 @@
/* flashrom.c */
int map_flash_registers(struct flashchip *flash);
+int probe_fake(struct flashchip *flash);
/* layout.c */
int show_id(uint8_t *bios, int size);
Index: flashchips.c
===================================================================
--- flashchips.c (Revision 3210)
+++ flashchips.c (Arbeitskopie)
@@ -137,6 +137,7 @@
{"PMC", "unknown SPI chip", PMC_ID, GENERIC_DEVICE_ID, 0, 0, probe_spi, NULL, NULL},
{"SST", "unknown SPI chip", SST_ID, GENERIC_DEVICE_ID, 0, 0, probe_spi, NULL, NULL},
{"ST", "unknown SPI chip", ST_ID, GENERIC_DEVICE_ID, 0, 0, probe_spi, NULL, NULL},
+ {"Fake", "Fake flash chip", 0, 0, 512, 0, probe_fake, NULL, NULL},
{NULL,}
};
Index: flashrom.c
===================================================================
--- flashrom.c (Revision 3210)
+++ flashrom.c (Arbeitskopie)
@@ -99,6 +99,11 @@
return 0;
}
+int probe_fake(struct flashchip *flash)
+{
+ return 1;
+}
+
struct flashchip *probe_flash(struct flashchip *flash)
{
volatile uint8_t *bios;