summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-06-28 21:47:57 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-06-28 21:47:57 +0000
commit9899cadcd8cb89fc675d38e59cad73641ddc565c (patch)
tree5fbe073c750f46b2a29e0f94a42650b1efb7c180
parent038a312bc641262c8e31f9972ab2ba49bfca1b13 (diff)
downloadast2050-flashrom-9899cadcd8cb89fc675d38e59cad73641ddc565c.zip
ast2050-flashrom-9899cadcd8cb89fc675d38e59cad73641ddc565c.tar.gz
Print the bus type(s) of both chipset and chip in the flashrom output
Corresponding to flashrom svn r635. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
-rw-r--r--chipset_enable.c2
-rw-r--r--flashrom.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 670ece7..3c1f7bd 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -1059,6 +1059,8 @@ int chipset_flash_enable(void)
else
printf("OK.\n");
}
+ printf("This chipset supports the following protcols: %s.\n",
+ flashbuses_to_text(buses_supported));
return ret;
}
diff --git a/flashrom.c b/flashrom.c
index 5791372..a61bf2d 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -380,8 +380,10 @@ notfound:
if (!flash || !flash->name)
return NULL;
- printf("Found chip \"%s %s\" (%d KB) at physical address 0x%lx.\n",
- flash->vendor, flash->name, flash->total_size, base);
+ printf("Found chip \"%s %s\" (%d KB, %s) at physical address 0x%lx.\n",
+ flash->vendor, flash->name, flash->total_size,
+ flashbuses_to_text(flash->bustype), base);
+
return flash;
}
OpenPOWER on IntegriCloud