Changeset 1782

Show
Ignore:
Timestamp:
06/10/03 05:01:31 (5 years ago)
Author:
mds
Message:

add w83791d detection, update documentation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/doc/chips/SUMMARY

    r1777 r1782  
    166166        w83782d         3       9       3       2-4 pwm yes     yes 
    167167        w83783s         1-2     5-6     3       2 pwm   yes     no 
     168        w83791d         3       10      5       5 pwm   yes     no 
    168169        w83627hf        3       9       3       2 pwm   yes     yes (LPC) 
    169170        w83697hf        2       6       2       2 pwm   no      yes 
  • lm-sensors/trunk/doc/chips/w83781d

    r1678 r1782  
    55        W83782D support is complete and well-tested. 
    66        W83783S support is complete but has not been well-tested. 
     7        W83791D support is BETA. 
    78        W83627HF support is complete but has not been well-tested. 
    89        W83697HF support is complete but has not been well-tested. 
     
    2324  * Winbond W83783S 
    2425    Prefix 'w83783s' 
     26    Addresses scanned: I2C 0x20 - 0x2f (inclusive) 
     27    Datasheet: Publicly available at the Winbond website 
     28  * Winbond W83791D 
     29    Prefix 'w83791d' 
    2530    Addresses scanned: I2C 0x20 - 0x2f (inclusive) 
    2631    Datasheet: Publicly available at the Winbond website 
     
    5964  Ditto 
    6065* force_w83783s: 
     66  Ditto 
     67* force_w83791d: 
    6168  Ditto 
    6269* force_w83627hf: 
  • lm-sensors/trunk/kernel/chips/w83781d.c

    r1772 r1782  
    22    w83781d.c - Part of lm_sensors, Linux kernel modules for hardware 
    33                monitoring 
    4     Copyright (c) 1998 - 2001  Frodo Looijaard <frodol@dds.nl>, 
     4    Copyright (c) 1998 - 2003  Frodo Looijaard <frodol@dds.nl>, 
    55    Philip Edelbrock <phil@netroedge.com>, 
    66    and Mark Studebaker <mdsxyz123@yahoo.com> 
     
    2727    as99127f    7       3       1?      3       0x30    0x12c3  yes     no 
    2828    asb100 "bach" (type_name = as99127f)        0x30    0x0694  yes     no 
     29    w83627hf    9       3       2       3       0x20    0x5ca3  yes     yes(LPC) 
     30    w83697hf    8       2       2       2       0x60    0x5ca3  no      yes(LPC) 
    2931    w83781d     7       3       0       3       0x10    0x5ca3  yes     yes 
    30     w83627hf    9       3       2       3       0x20    0x5ca3  yes     yes(LPC) 
    3132    w83782d     9       3       2-4     3       0x30    0x5ca3  yes     yes 
    3233    w83783s     5-6     3       2       1-2     0x40    0x5ca3  yes     no 
    33     w83697hf   8       2       2       2       0x60    0x5ca3  no      yes(LPC) 
     34    w83791d    10      5       5       3       0x70    0x5ca3  yes     no 
    3435 
    3536*/ 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r1781 r1782  
    881881       i2c_addrs => [0x20..0x2f],  
    882882       i2c_detect => sub { w83781d_detect 2, @_}, 
     883     } , 
     884     { 
     885       name => "Winbond W83791D", 
     886       driver => "w83781d", 
     887       i2c_addrs => [0x20..0x2f],  
     888       i2c_detect => sub { w83781d_detect 7, @_}, 
    883889     } , 
    884890     { 
     
    23192325# $_[0]: Chip to detect (0 = W83781D, 1 = W83782D, 2 = W83783S, 
    23202326#                        3 = W83627HF, 4 = AS99127F, 6 = W83L784R/AR 
     2327#                        7 = W83791D 
    23212328# $_[1]: A reference to the file descriptor to access this chip. 
    23222329#        We may assume an i2c_set_slave_addr was already done. 
     
    23592366  return if $chip == 4 and  $reg1 != 0x30; 
    23602367  return if $chip == 6 and  $reg1 != 0x50; 
     2368  return if $chip == 7 and  $reg1 != 0x70; 
    23612369  $reg1 = i2c_smbus_read_byte_data($file,0x4a); 
    23622370  @res = (8);