mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
(Kyösti) Small fixes for GL518.
Fan1 causes now alarm when rpm drops. Fixed libsensors displaying incorrect temperature limits for rev 80. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@293 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d9e5165439
commit
14e5a602c5
2 files changed
+3
-2
No files matched your search
@@ -312,12 +312,13 @@ int gl518_attach_adapter(struct i2c_adapter *adapter)
|
||||
gl518_write_value(new_client,GL518_REG_CONF,0x04);
|
||||
/* Never interrupts */
|
||||
gl518_write_value(new_client,GL518_REG_MASK,0x00);
|
||||
|
||||
gl518_write_value(new_client,GL518_REG_TEMP_HYST,
|
||||
TEMP_TO_REG(GL518_INIT_TEMP_HYST));
|
||||
gl518_write_value(new_client,GL518_REG_TEMP_OVER,
|
||||
TEMP_TO_REG(GL518_INIT_TEMP_OVER));
|
||||
gl518_write_value(new_client,GL518_REG_MISC,(DIV_TO_REG(2) << 6) |
|
||||
(DIV_TO_REG(2) << 4) | 0x08);
|
||||
(DIV_TO_REG(2) << 4));
|
||||
gl518_write_value(new_client,GL518_REG_FAN_LIMIT,
|
||||
(FAN_TO_REG(GL518_INIT_FAN_MIN_1,2) << 8) |
|
||||
FAN_TO_REG(GL518_INIT_FAN_MIN_2,2));
|
||||
|
||||
+1
-1
@@ -446,7 +446,7 @@ static sensors_chip_feature gl518r80_features[] =
|
||||
GL518_SYSCTL_TEMP, VALUE(2), 1 },
|
||||
{ SENSORS_GL518R80_TEMP_OVER, "temp_over", SENSORS_GL518R80_TEMP,
|
||||
SENSORS_GL518R80_TEMP, SENSORS_MODE_RW,
|
||||
GL518_SYSCTL_VDD, VALUE(1), 1 },
|
||||
GL518_SYSCTL_TEMP, VALUE(1), 1 },
|
||||
{ SENSORS_GL518R80_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, GL518_SYSCTL_VID, VALUE(1), 0 },
|
||||
{ SENSORS_GL518R80_FAN1_DIV, "fan1_div", SENSORS_GL518R80_FAN1,
|
||||
|
||||
Reference in new issue
Block a user