mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-05 00:35:35 +00:00
Detect the LM93.
Detect the PC8739x Super-I/O family (no sensors). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2592 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -835,7 +835,8 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
saa1064_detect w83l784r_detect mozart_detect max6650_detect
|
||||
fscher_detect adm1029_detect adm1031_detect max6900_detect
|
||||
m5879_detect pca9540_detect smartbatt_mgr_detect
|
||||
smartbatt_chgr_detect adt7467_detect lm92_detect max1619_detect);
|
||||
smartbatt_chgr_detect adt7467_detect lm92_detect max1619_detect
|
||||
lm93_detect);
|
||||
|
||||
# This is a list of all recognized chips.
|
||||
# Each entry must have the following fields:
|
||||
@@ -936,6 +937,12 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
i2c_addrs => [0x2c..0x2e],
|
||||
i2c_detect => sub { lm87_detect @_} ,
|
||||
},
|
||||
{
|
||||
name => "National Semiconductor LM93",
|
||||
driver => "to-be-written",
|
||||
i2c_addrs => [0x2c..0x2e],
|
||||
i2c_detect => sub { lm93_detect @_ },
|
||||
},
|
||||
{
|
||||
name => "Winbond W83781D",
|
||||
driver => "w83781d",
|
||||
@@ -1193,7 +1200,7 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
},
|
||||
{
|
||||
name => "National Semiconductor LM86",
|
||||
driver => "to-be-written",
|
||||
driver => "lm90",
|
||||
i2c_addrs => [0x4c],
|
||||
i2c_detect => sub { lm90_detect 2, @_ },
|
||||
},
|
||||
@@ -1524,6 +1531,11 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
devid => 0xf3,
|
||||
logdev => 0x09,
|
||||
},
|
||||
{
|
||||
name => "Nat. Semi. PC8739x Super IO",
|
||||
driver => "not-a-sensor",
|
||||
devid => 0xea,
|
||||
},
|
||||
{
|
||||
name => "Nat. Semi. PC8741x Super IO",
|
||||
driver => "not-a-sensor",
|
||||
@@ -3994,6 +4006,21 @@ sub fscher_detect
|
||||
return (8);
|
||||
}
|
||||
|
||||
# $_[0]: A reference to the file descriptor to access this chip.
|
||||
# We assume an i2c_set_slave_addr was already done.
|
||||
# $_[1]: Address (unused)
|
||||
# Returns: undef if not detected, 5 if detected.
|
||||
# Registers used:
|
||||
# 0x3E: Manufacturer ID
|
||||
# 0x3F: Version/Stepping
|
||||
sub lm93_detect
|
||||
{
|
||||
my $file = shift;
|
||||
return unless i2c_smbus_read_byte_data($file, 0x3E) == 0x01
|
||||
and i2c_smbus_read_byte_data($file, 0x3F) == 0x73;
|
||||
return 5;
|
||||
}
|
||||
|
||||
# $_[0]: A reference to the file descriptor to access this chip.
|
||||
# We may assume an i2c_set_slave_addr was already done.
|
||||
# $_[1]: Address
|
||||
|
Reference in New Issue
Block a user