From 8e8eb7d261dcc2c10d7f25ad9b58bd47c2263a2f Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 15 May 2008 22:32:08 +0000 Subject: Print detailed status register information for SST25VF series flash. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3323 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/spi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/flashrom/spi.c') diff --git a/util/flashrom/spi.c b/util/flashrom/spi.c index ddb9ff8fdc..f50414cbc5 100644 --- a/util/flashrom/spi.c +++ b/util/flashrom/spi.c @@ -213,6 +213,10 @@ void spi_prettyprint_status_register(struct flashchip *flash) 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); -- cgit v1.2.3