From 588d1660915d6a4883431f47ff5f6bb105402d48 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 31 Jan 2010 18:48:34 +0000 Subject: [PATCH] Add detection support for the Winbond W83877AF (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5070 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/winbond.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/util/superiotool/winbond.c b/util/superiotool/winbond.c index c342b50c71..ecbf1f7c36 100644 --- a/util/superiotool/winbond.c +++ b/util/superiotool/winbond.c @@ -464,9 +464,11 @@ static const struct superio_registers reg_table[] = { /* ID[3..0] */ {0xa, "W83877F", { {EOT}}}, + {0xb, "W83877AF", { + {EOT}}}, {0xc, "W83877TF", { {EOT}}}, - {0xd, "W83877ATF", { + {0xd, "W83877ATF/ATG", { {EOT}}}, {EOT} }; @@ -556,7 +558,7 @@ static void probe_idregs_winbond_helper(const char *init, uint16_t port) else id = (devid << 4) | ((rev & 0xf0) >> 4); /* ID and rev[7..4] */ - if (olddevid == 0x0a || olddevid == 0x0c || olddevid == 0x0d) + if (olddevid >= 0x0a && olddevid <= 0x0d) id = olddevid & 0x0f; /* ID[3..0] */ if (superio_unknown(reg_table, id)) { @@ -566,7 +568,7 @@ static void probe_idregs_winbond_helper(const char *init, uint16_t port) return; } - if (olddevid == 0x0a || olddevid == 0x0c || olddevid == 0x0d) + if (olddevid >= 0x0a && olddevid <= 0x0d) printf("Found Winbond %s (id=0x%02x) at 0x%x\n", get_superio_name(reg_table, id), olddevid, port); else