Add -D / --dump-readable option which prints the Super I/O register
contents in human-readable form (e.g. "COM1 enabled" etc.) instead
of the hex-table format from -d / --dump.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2795 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/util/superiotool/fintek.c b/util/superiotool/fintek.c
index a95a383..f7f0a7c 100644
--- a/util/superiotool/fintek.c
+++ b/util/superiotool/fintek.c
@@ -33,8 +33,11 @@
{EOT}
};
-void dump_fintek(uint16_t port, uint16_t did)
+static void dump_readable_fintek(uint16_t port, uint16_t did)
{
+ if (!dump_readable)
+ return;
+
switch (did) {
case 0x0604:
printf("Fintek F71805\n");
@@ -124,9 +127,7 @@
get_superio_name(reg_table, did), vid, did, port);
dump_superio("Fintek", reg_table, port, did);
-
- /* TODO: Revive this as --dump-human-readable output. */
- /* dump_fintek(port, did); */
+ dump_readable_fintek(port, did);
exit_conf_mode_winbond_fintek_ite_8787(port);
}