diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-20 23:57:44 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-20 23:57:44 +0000 |
commit | eddc473ce0753bfd8aa55cc19bcec991866694fd (patch) | |
tree | c710be3d289d2d649572bf59cc429e2edc44cddb /util/superiotool/fintek.c | |
parent | b4db2209f9e01e1a013cc33356bceec57c3a3c80 (diff) | |
download | coreboot-eddc473ce0753bfd8aa55cc19bcec991866694fd.tar.xz |
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
Diffstat (limited to 'util/superiotool/fintek.c')
-rw-r--r-- | util/superiotool/fintek.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); } |