2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Prevent misdetection of W83627DHG (and more generally, Winbond chips)

on I2C as LM78.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5331 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-09-10 07:22:06 +00:00
parent 8f9a67f5bd
commit 6cf8b4be86
2 changed files with 6 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ SVN-HEAD
Add SMSC EMC2700LPC support Add SMSC EMC2700LPC support
Add ITE IT8720 support Add ITE IT8720 support
Add Texas Instruments TMP411 support Add Texas Instruments TMP411 support
Prevent misdetection of W83627DHG on I2C as LM78
3.0.2 (2008-05-18) 3.0.2 (2008-05-18)
documentation: Delete the FAQ, now maintained on the wiki documentation: Delete the FAQ, now maintained on the wiki

View File

@@ -3613,6 +3613,11 @@ sub lm78_detect
return unless ($chip == 0 and ($reg == 0x00 or $reg == 0x20)) or return unless ($chip == 0 and ($reg == 0x00 or $reg == 0x20)) or
($chip == 1 and $reg == 0x40) or ($chip == 1 and $reg == 0x40) or
($chip == 2 and ($reg & 0xfe) == 0xc0); ($chip == 2 and ($reg & 0xfe) == 0xc0);
# Explicitly prevent misdetection of Winbond chips
$reg = i2c_smbus_read_byte_data($file, 0x4f);
return if $reg == 0xa3 || $reg == 0x5c;
return (6); return (6);
} }