mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-26 12:24:33 +00:00
First shot at independent driver for ASB100 "Bach"
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2036 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b118dc6bad
commit
ca4b268555
4 files changed
+1191
No files matched your search
@@ -57,6 +57,9 @@ endif
|
||||
ifneq ($(shell if grep -q '^CONFIG_SENSORS_ADM9240=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||
KERNELCHIPSTARGETS += $(MODULE_DIR)/adm9240.o
|
||||
endif
|
||||
ifneq ($(shell if grep -q '^CONFIG_SENSORS_ASB100=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||
KERNELCHIPSTARGETS += $(MODULE_DIR)/asb100.o
|
||||
endif
|
||||
ifneq ($(shell if grep -q '^CONFIG_SENSORS_BT869=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||
KERNELCHIPSTARGETS += $(MODULE_DIR)/bt869.o
|
||||
endif
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+70
@@ -999,6 +999,75 @@ static sensors_chip_feature as99127f_features[] =
|
||||
SENSORS_MODE_RW, W83781D_SYSCTL_SENS3, VALUE(1), 0 },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
/* macro for ASB100 Bach voltage in/min/max entries */
|
||||
#define SENSORS_ASB100_IN_MIN_MAX(nr) \
|
||||
{ SENSORS_ASB100_IN##nr, "in" #nr, SENSORS_NO_MAPPING, \
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_R, ASB100_SYSCTL_IN##nr, \
|
||||
VALUE(3), 2 }, \
|
||||
{ SENSORS_ASB100_IN##nr##_MIN, "in" #nr "_min", SENSORS_ASB100_IN##nr, \
|
||||
SENSORS_ASB100_IN##nr, SENSORS_MODE_RW, ASB100_SYSCTL_IN##nr, \
|
||||
VALUE(1), 2 }, \
|
||||
{ SENSORS_ASB100_IN##nr##_MAX, "in" #nr "_max", SENSORS_ASB100_IN##nr, \
|
||||
SENSORS_ASB100_IN##nr, SENSORS_MODE_RW, ASB100_SYSCTL_IN##nr, \
|
||||
VALUE(2), 2 }
|
||||
|
||||
/* macro for ASB100 Bach fan/min/div entries */
|
||||
#define SENSORS_ASB100_FAN_MIN_DIV(nr, divmode) \
|
||||
{ SENSORS_ASB100_FAN##nr, "fan" #nr, SENSORS_NO_MAPPING, \
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_R, ASB100_SYSCTL_FAN##nr, \
|
||||
VALUE(2), 0 }, \
|
||||
{ SENSORS_ASB100_FAN##nr##_MIN, "fan" #nr "_min", \
|
||||
SENSORS_ASB100_FAN##nr, SENSORS_ASB100_FAN##nr, \
|
||||
SENSORS_MODE_RW, ASB100_SYSCTL_FAN##nr, VALUE(1), 0 }, \
|
||||
{ SENSORS_ASB100_FAN##nr##_DIV, "fan" #nr "_div", \
|
||||
SENSORS_ASB100_FAN##nr, SENSORS_NO_MAPPING, \
|
||||
divmode, ASB100_SYSCTL_FAN_DIV, VALUE(nr), 0 }
|
||||
|
||||
/* macro for ASB100 Bach temperature/overtemp/hysteresis entries */
|
||||
#define SENSORS_ASB100_TEMP_OVER_HYST(nr) \
|
||||
{ SENSORS_ASB100_TEMP##nr, "temp" #nr, SENSORS_NO_MAPPING, \
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_R, ASB100_SYSCTL_TEMP##nr, \
|
||||
VALUE(3), 1 }, \
|
||||
{ SENSORS_ASB100_TEMP##nr##_OVER, "temp" #nr "_over", \
|
||||
SENSORS_ASB100_TEMP##nr, SENSORS_ASB100_TEMP##nr, \
|
||||
SENSORS_MODE_RW, ASB100_SYSCTL_TEMP##nr, VALUE(1), 1 }, \
|
||||
{ SENSORS_ASB100_TEMP##nr##_HYST, "temp" #nr "_hyst", \
|
||||
SENSORS_ASB100_TEMP##nr, SENSORS_ASB100_TEMP##nr, \
|
||||
SENSORS_MODE_RW, ASB100_SYSCTL_TEMP##nr, VALUE(2), 1 }
|
||||
|
||||
static sensors_chip_feature asb100_features[] = {
|
||||
SENSORS_ASB100_IN_MIN_MAX(0),
|
||||
SENSORS_ASB100_IN_MIN_MAX(1),
|
||||
SENSORS_ASB100_IN_MIN_MAX(2),
|
||||
SENSORS_ASB100_IN_MIN_MAX(3),
|
||||
SENSORS_ASB100_IN_MIN_MAX(4),
|
||||
SENSORS_ASB100_IN_MIN_MAX(5),
|
||||
SENSORS_ASB100_IN_MIN_MAX(6),
|
||||
SENSORS_ASB100_FAN_MIN_DIV(1, SENSORS_MODE_RW),
|
||||
SENSORS_ASB100_FAN_MIN_DIV(2, SENSORS_MODE_RW),
|
||||
SENSORS_ASB100_FAN_MIN_DIV(3, SENSORS_MODE_RW),
|
||||
SENSORS_ASB100_TEMP_OVER_HYST(1),
|
||||
SENSORS_ASB100_TEMP_OVER_HYST(2),
|
||||
SENSORS_ASB100_TEMP_OVER_HYST(3),
|
||||
SENSORS_ASB100_TEMP_OVER_HYST(4),
|
||||
{ SENSORS_ASB100_VID, "vid", SENSORS_NO_MAPPING,
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_R,
|
||||
ASB100_SYSCTL_VID, VALUE(1), 3 },
|
||||
{ SENSORS_ASB100_VRM, "vrm", SENSORS_NO_MAPPING,
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
||||
ASB100_SYSCTL_VRM, VALUE(1), 1 },
|
||||
{ SENSORS_ASB100_ALARMS, "alarms", SENSORS_NO_MAPPING,
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_R,
|
||||
ASB100_SYSCTL_ALARMS, VALUE(1), 0 },
|
||||
{ SENSORS_ASB100_BEEP_ENABLE, "beep_enable", SENSORS_ASB100_ALARMS,
|
||||
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
||||
ASB100_SYSCTL_BEEP, VALUE(1), 0 },
|
||||
{ SENSORS_ASB100_BEEPS, "beeps", SENSORS_ASB100_ALARMS,
|
||||
SENSORS_ASB100_ALARMS, SENSORS_MODE_RW,
|
||||
ASB100_SYSCTL_BEEP, VALUE(2), 0 },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
static sensors_chip_feature w83782d_features[] =
|
||||
{
|
||||
@@ -4700,6 +4769,7 @@ sensors_chip_features sensors_chip_features_list[] =
|
||||
{ SENSORS_W83627THF_PREFIX, w83782d_features },
|
||||
{ SENSORS_W83791D_PREFIX, w83791d_features },
|
||||
{ SENSORS_AS99127F_PREFIX, as99127f_features },
|
||||
{ SENSORS_ASB100_PREFIX, asb100_features },
|
||||
{ SENSORS_ADM9240_PREFIX, adm9240_features },
|
||||
/* Cheat on LM81 for now - no separate #defines */
|
||||
{ SENSORS_LM81_PREFIX, adm9240_features },
|
||||
|
||||
+50
@@ -1681,6 +1681,56 @@
|
||||
#define SENSORS_BMC_CURR1_MIN 3101 /* RW */
|
||||
#define SENSORS_BMC_CURR1_MAX 3201 /* RW */
|
||||
|
||||
#define SENSORS_ASB100_PREFIX "asb100"
|
||||
|
||||
#define SENSORS_ASB100_IN0 0x01 /* R */
|
||||
#define SENSORS_ASB100_IN1 0x02 /* R */
|
||||
#define SENSORS_ASB100_IN2 0x03 /* R */
|
||||
#define SENSORS_ASB100_IN3 0x04 /* R */
|
||||
#define SENSORS_ASB100_IN4 0x05 /* R */
|
||||
#define SENSORS_ASB100_IN5 0x06 /* R */
|
||||
#define SENSORS_ASB100_IN6 0x07 /* R */
|
||||
#define SENSORS_ASB100_IN0_MIN 0x11 /* RW */
|
||||
#define SENSORS_ASB100_IN1_MIN 0x12 /* RW */
|
||||
#define SENSORS_ASB100_IN2_MIN 0x13 /* RW */
|
||||
#define SENSORS_ASB100_IN3_MIN 0x14 /* RW */
|
||||
#define SENSORS_ASB100_IN4_MIN 0x15 /* RW */
|
||||
#define SENSORS_ASB100_IN5_MIN 0x16 /* RW */
|
||||
#define SENSORS_ASB100_IN6_MIN 0x17 /* RW */
|
||||
#define SENSORS_ASB100_IN0_MAX 0x21 /* RW */
|
||||
#define SENSORS_ASB100_IN1_MAX 0x22 /* RW */
|
||||
#define SENSORS_ASB100_IN2_MAX 0x23 /* RW */
|
||||
#define SENSORS_ASB100_IN3_MAX 0x24 /* RW */
|
||||
#define SENSORS_ASB100_IN4_MAX 0x25 /* RW */
|
||||
#define SENSORS_ASB100_IN5_MAX 0x26 /* RW */
|
||||
#define SENSORS_ASB100_IN6_MAX 0x27 /* RW */
|
||||
#define SENSORS_ASB100_FAN1 0x31 /* R */
|
||||
#define SENSORS_ASB100_FAN2 0x32 /* R */
|
||||
#define SENSORS_ASB100_FAN3 0x33 /* R */
|
||||
#define SENSORS_ASB100_FAN1_MIN 0x41 /* RW */
|
||||
#define SENSORS_ASB100_FAN2_MIN 0x42 /* RW */
|
||||
#define SENSORS_ASB100_FAN3_MIN 0x43 /* RW */
|
||||
#define SENSORS_ASB100_TEMP1 0x51 /* R */
|
||||
#define SENSORS_ASB100_TEMP1_HYST 0x52 /* RW */
|
||||
#define SENSORS_ASB100_TEMP1_OVER 0x53 /* RW */
|
||||
#define SENSORS_ASB100_TEMP2 0x54 /* R */
|
||||
#define SENSORS_ASB100_TEMP2_HYST 0x55 /* RW */
|
||||
#define SENSORS_ASB100_TEMP2_OVER 0x56 /* RW */
|
||||
#define SENSORS_ASB100_TEMP3 0x57 /* R */
|
||||
#define SENSORS_ASB100_TEMP3_HYST 0x58 /* RW */
|
||||
#define SENSORS_ASB100_TEMP3_OVER 0x59 /* RW */
|
||||
#define SENSORS_ASB100_TEMP4 0x5a /* R */
|
||||
#define SENSORS_ASB100_TEMP4_HYST 0x5b /* RW */
|
||||
#define SENSORS_ASB100_TEMP4_OVER 0x5c /* RW */
|
||||
#define SENSORS_ASB100_VID 0x61 /* R */
|
||||
#define SENSORS_ASB100_VRM 0x62 /* RW */
|
||||
#define SENSORS_ASB100_FAN1_DIV 0x71 /* RW */
|
||||
#define SENSORS_ASB100_FAN2_DIV 0x72 /* RW */
|
||||
#define SENSORS_ASB100_FAN3_DIV 0x73 /* RW */
|
||||
#define SENSORS_ASB100_ALARMS 0x81 /* R */
|
||||
#define SENSORS_ASB100_BEEP_ENABLE 0x82 /* RW */
|
||||
#define SENSORS_ASB100_BEEPS 0x83 /* RW */
|
||||
|
||||
#define SENSORS_XEONTEMP_PREFIX "xeontemp"
|
||||
|
||||
#define SENSORS_XEONTEMP_REMOTE_TEMP 54 /* R */
|
||||
|
||||
Reference in new issue
Block a user