Changeset 2924

Show
Ignore:
Timestamp:
03/10/05 04:45:34 (8 years ago)
Author:
mmh
Message:

Patch by David Knierim <david_knierim@…> to fix IN10

(+5V) scaling

I have been hunting down an issue related to the IN10 input of the
LM93. I have observed that there is a rather large error between the
actual voltage and the voltage level displayed by sensors(1) (~ .12V).

Please find attached a small patch that fixes this problem. The data
sheet is very ambiguous and I and another engineer made the same mistake
calculating the voltage per DAC step the first time we read the spec sheet.

The confusion stems from an entry in the "maximum voltage" column that
is higher than the value in the "absolute maximum range" column. For 5V
only, the value in the "register reading at maximum voltage" is for the
voltage in the "absolute maximum range", NOT the "maximum voltage". Whew!

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r2902 r2924  
    3636               Support VID on the IT8712F 
    3737  Module lm90: Fix MAX6657, MAX6658 and MAX6659 detection 
     38  Module lm93: Fix IN10 (+5V) scaling 
    3839  Module mic74: New 
    3940  Module w83781d: Revert AS99127F temp2 and temp3 computation change 
  • lm-sensors/trunk/kernel/chips/lm93.c

    r2837 r2924  
    690690static const unsigned long lm93_vin_val_max[16] = { 
    691691        1236, 1236, 1236, 1600, 2000, 2000, 1600, 1600, 
    692         4400, 6667, 3333, 2625, 1312, 1312, 1236, 3600, 
     692        4400, 6500, 3333, 2625, 1312, 1312, 1236, 3600, 
    693693}; 
    694694/*