diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2010-01-31 18:48:34 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-01-31 18:48:34 +0000 |
commit | 588d1660915d6a4883431f47ff5f6bb105402d48 (patch) | |
tree | 294097471416e9749005f40368099dbd9260ef4a /util | |
parent | 6f0074e6b63b056a40589f23f8347e4a3bf6e88b (diff) |
Add detection support for the Winbond W83877AF (trivial).
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@5070 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r-- | util/superiotool/winbond.c | 8 |
1 files 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 |