Print detailed status register information for SST25VF series flash
Corresponding to flashrom svn r237 and coreboot v2 svn r3323.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
diff --git a/spi.c b/spi.c
index ddb9ff8..f50414c 100644
--- a/spi.c
+++ b/spi.c
@@ -213,6 +213,10 @@
printf_debug("Chip status register is %02x\n", status);
switch (flash->manufacture_id) {
case ST_ID:
+ if (((flash->model_id & 0xff00) == 0x2000) ||
+ ((flash->model_id & 0xff00) == 0x2500))
+ spi_prettyprint_status_register_st_m25p(status);
+ break;
case MX_ID:
if ((flash->model_id & 0xff00) == 0x2000)
spi_prettyprint_status_register_st_m25p(status);