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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user