mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-20 19:41:47 +00:00
Enhance w83791d support. Add output for in7, in8, in9, fan4 and fan5.
Also update to display the (beep) properly due to the fact that the w83791d beep enable mask is different than the alarm mask. Patch from Sven Anders and Charles Spirakis. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4096 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
0d15763f81
commit
2396d5cab7
3 files changed
+105
-9
No files matched your search
+14
-4
@@ -135,7 +135,7 @@ MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization");
|
||||
#define W83781D_REG_CHIPMAN 0x4F
|
||||
#define W83781D_REG_PIN 0x4B
|
||||
|
||||
/* 782D/783S only */
|
||||
/* 782D/783S/791D only */
|
||||
#define W83781D_REG_VBAT 0x5D
|
||||
|
||||
/* PWM 782D (1-4) and 783S (1-2) only */
|
||||
@@ -387,14 +387,24 @@ static struct i2c_driver w83781d_driver = {
|
||||
#define W83781D_ALARM_IN6 0x0400
|
||||
#define W83782D_ALARM_IN7 0x10000
|
||||
#define W83782D_ALARM_IN8 0x20000
|
||||
#define W83791D_ALARM_IN7 0x080000 /* 791D only */
|
||||
#define W83791D_ALARM_IN8 0x100000 /* 791D only */
|
||||
#define W83791D_ALARM_IN9 0x004000 /* 791D only */
|
||||
#define W83781D_ALARM_FAN1 0x0040
|
||||
#define W83781D_ALARM_FAN2 0x0080
|
||||
#define W83781D_ALARM_FAN3 0x0800
|
||||
#define W83791D_ALARM_FAN4 0x200000 /* 791D only */
|
||||
#define W83791D_ALARM_FAN5 0x400000 /* 791D only */
|
||||
#define W83781D_ALARM_TEMP1 0x0010
|
||||
#define W83781D_ALARM_TEMP23 0x0020 /* 781D only */
|
||||
#define W83781D_ALARM_TEMP2 0x0020 /* 782D/783S */
|
||||
#define W83781D_ALARM_TEMP3 0x2000 /* 782D only */
|
||||
#define W83781D_ALARM_CHAS 0x1000
|
||||
#define W83781D_ALARM_TEMP2 0x0020 /* 782D/783S/791D */
|
||||
#define W83781D_ALARM_TEMP3 0x2000 /* 782D/791D */
|
||||
#define W83781D_ALARM_CHAS 0x1000 /* 782D/791D */
|
||||
|
||||
#define W83791D_BEEP_IN1 0x002000 /* 791D only */
|
||||
#define W83791D_BEEP_IN7 0x010000 /* 791D only */
|
||||
#define W83791D_BEEP_IN8 0x020000 /* 791D only */
|
||||
#define W83791D_BEEP_TEMP3 0x000002 /* 791D only */
|
||||
|
||||
/* -- SENSORS SYSCTL END -- */
|
||||
|
||||
|
||||
Reference in new issue
Block a user