From d43e8cc9e636f4a4fbbd4d17da0bf2702b571b30 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 27 Jun 2004 17:24:11 +0000 Subject: [PATCH] Refine ADM1025 detection. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2616 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index f5a6a294..55e5dbc3 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3479,6 +3479,8 @@ sub adm1022_detect # 0x3e: Company ID # 0x3f: Revision # 0x40: Configuration +# 0x41: Status 1 +# 0x42: Status 2 # Note: Detection overrules a previous LM78 or ADM9240 detection sub adm1025_detect { @@ -3490,6 +3492,8 @@ sub adm1025_detect return if ($chip == 1) and ($reg != 0xA1); return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; + return unless (i2c_smbus_read_byte_data($file,0x41) & 0xC0) == 0x00; + return unless (i2c_smbus_read_byte_data($file,0x42) & 0xBC) == 0x00; return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xf0) == 0x20; return (8);