summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-05-15 22:32:08 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-05-15 22:32:08 +0000
commit8e8eb7d261dcc2c10d7f25ad9b58bd47c2263a2f (patch)
tree719e594e235511ff3e625e1f9f1923b6caa8711a
parentda69582ce45d4302cb0265b56a65f0787603a29a (diff)
downloadcoreboot-8e8eb7d261dcc2c10d7f25ad9b58bd47c2263a2f.tar.xz
Print detailed status register information for SST25VF series flash.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3323 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/flashrom/spi.c4
1 files changed, 4 insertions, 0 deletions
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);