From eddc473ce0753bfd8aa55cc19bcec991866694fd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 20 Sep 2007 23:57:44 +0000 Subject: 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 Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2795 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/fintek.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'util/superiotool/fintek.c') diff --git a/util/superiotool/fintek.c b/util/superiotool/fintek.c index a95a38354f..f7f0a7c5c8 100644 --- a/util/superiotool/fintek.c +++ b/util/superiotool/fintek.c @@ -33,8 +33,11 @@ const static struct superio_registers reg_table[] = { {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 @@ void probe_idregs_fintek(uint16_t port) 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); } -- cgit v1.2.3