Changeset 5966
- Timestamp:
- 05/05/11 17:31:19 (13 months ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/detect/sensors-detect (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r5962 r5966 8 8 Add detection of ADT7461A / NCT1008 9 9 Add detection of ITE IT8516E/F/G 10 Integrate with systemd 11 Drop unreliable smart battery detection 10 12 11 13 3.3.0 (2011-03-28) -
lm-sensors/trunk/prog/detect/sensors-detect
r5965 r5966 1345 1345 i2c_addrs => [0x18..0x1f], 1346 1346 i2c_detect => sub { jedec_JC42_4_detect(@_, 9); }, 1347 }, {1348 name => "Smart Battery",1349 driver => "sbs", # ACPI driver, not sure if it always works1350 i2c_addrs => [0x0b],1351 i2c_detect => sub { smartbatt_detect(@_); },1352 1347 } 1353 1348 ); … … 5706 5701 } 5707 5702 5708 # This checks for non-FFFF values for temperature, voltage, and current.5709 # The address (0x0b) is specified by the SMBus standard so it's likely5710 # that this really is a smart battery.5711 sub smartbatt_detect5712 {5713 my ($file, $addr) = @_;5714 5715 return if i2c_smbus_read_word_data($file, 0x08) == 0xffff5716 || i2c_smbus_read_word_data($file, 0x09) == 0xffff5717 || i2c_smbus_read_word_data($file, 0x0a) == 0xffff;5718 return 5;5719 }5720 5721 5703 # Chip to detect: 0 = W83L784R/AR/G, 1 = W83L785R/G, 2 = W83L786NR/NG/R/G, 5722 5704 # 3 = W83L785TS-S
