(mds) Change VID_FROM_REG to allow values 0x06 - 0x0F

(1.75 to 1.30 Volts) as specified in Intel document
      243773302.pdf. Lower voltages are coming!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@617 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 1999-10-31 00:51:13 +00:00
1 parent 5ba1006fbb
commit c31a3f5ad8
4 files changed
+11 -6

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ extern inline u8 FAN_TO_REG(long rpm, int div)
#define TEMP_FROM_REG(val) (((val)>0x80?(val)-0x100:(val))*10)
#define VID_FROM_REG(val) ((val)==0x1f?0:(val)>=0x10?510-(val)*10:\
(val)>=0x06?0:205-(val)*5)
205-(val)*5)
#define ALARMS_FROM_REG(val) (val)
#define DIV_TO_REG(val) ((val)==8?3:(val)==4?2:(val)==1?0:1)