diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-24 23:24:46 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-24 23:24:46 +0000 |
commit | 48cac24742300f8225b3194bc8d4f3f119f633e5 (patch) | |
tree | f32ece4188878f058a2753a35eaf6a31f3c8437c /util/superiotool/winbond.c | |
parent | 2ee78d8b064ca41f97bf28b0a6c1af0cf8d2363a (diff) |
Detection support for the Winbond W83627HF (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@2806 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/winbond.c')
-rw-r--r-- | util/superiotool/winbond.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/superiotool/winbond.c b/util/superiotool/winbond.c index 9dbaba80d5..e17a60840e 100644 --- a/util/superiotool/winbond.c +++ b/util/superiotool/winbond.c @@ -123,6 +123,8 @@ const static struct superio_registers reg_table[] = { {0x30,0x60,0x61,0x70,0xf0,0xf1,EOT}, {0x00,0x00,0x00,0x00,0xc1,0x00,EOT}}, {EOT}}}, + {0x52, "W83627HF", { + {EOT}}}, {EOT} }; @@ -136,8 +138,11 @@ void probe_idregs_winbond(uint16_t port) devid = regval(port, DEVICE_ID_REG); rev = regval(port, DEVICE_REV_REG); - /* Bits 3..0 of 'rev' form the IC version, we don't match that. */ - id = (devid << 4) | ((rev & 0xf0) >> 4); + if (devid != 0x52) + /* Bits 3..0 of 'rev' == IC version, we don't match that. */ + id = (devid << 4) | ((rev & 0xf0) >> 4); + else + id = devid; if (superio_unknown(reg_table, id)) { no_superio_found(port); |