|
|
@@ -19,6 +19,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "chips.h"
|
|
|
|
#include "chips.h"
|
|
|
|
#include "access.h"
|
|
|
|
#include "access.h"
|
|
|
|
|
|
|
|
#include "sensors.h"
|
|
|
|
#include "src/sensors.h"
|
|
|
|
#include "src/sensors.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* For each chip, a list of features;
|
|
|
|
/* For each chip, a list of features;
|
|
|
@@ -40,237 +41,243 @@
|
|
|
|
static sensors_chip_feature lm78_features[] =
|
|
|
|
static sensors_chip_feature lm78_features[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ SENSORS_LM78_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN0, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN0, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN1, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN1, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN2, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN2, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN3, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN3, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN4, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN4, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN5, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN5, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN6, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN6, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78_IN0_MIN, "in0_min", SENSORS_LM78_IN0, SENSORS_LM78_IN0,
|
|
|
|
{ SENSORS_LM78_IN0_MIN, "in0_min", SENSORS_LM78_IN0, SENSORS_LM78_IN0,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN0, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN0, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN1_MIN, "in1_min", SENSORS_LM78_IN1, SENSORS_LM78_IN1,
|
|
|
|
{ SENSORS_LM78_IN1_MIN, "in1_min", SENSORS_LM78_IN1, SENSORS_LM78_IN1,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN1, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN1, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN2_MIN, "in2_min", SENSORS_LM78_IN2, SENSORS_LM78_IN2,
|
|
|
|
{ SENSORS_LM78_IN2_MIN, "in2_min", SENSORS_LM78_IN2, SENSORS_LM78_IN2,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN2, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN2, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN3_MIN, "in3_min", SENSORS_LM78_IN3, SENSORS_LM78_IN3,
|
|
|
|
{ SENSORS_LM78_IN3_MIN, "in3_min", SENSORS_LM78_IN3, SENSORS_LM78_IN3,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN3, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN3, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN4_MIN, "in4_min", SENSORS_LM78_IN4, SENSORS_LM78_IN4,
|
|
|
|
{ SENSORS_LM78_IN4_MIN, "in4_min", SENSORS_LM78_IN4, SENSORS_LM78_IN4,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN4, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN4, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN5_MIN, "in5_min", SENSORS_LM78_IN5, SENSORS_LM78_IN5,
|
|
|
|
{ SENSORS_LM78_IN5_MIN, "in5_min", SENSORS_LM78_IN5, SENSORS_LM78_IN5,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN5, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN5, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN6_MIN, "in6_min", SENSORS_LM78_IN6, SENSORS_LM78_IN6,
|
|
|
|
{ SENSORS_LM78_IN6_MIN, "in6_min", SENSORS_LM78_IN6, SENSORS_LM78_IN6,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN6, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN6, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_IN0_MAX, "in0_max", SENSORS_LM78_IN0, SENSORS_LM78_IN0,
|
|
|
|
{ SENSORS_LM78_IN0_MAX, "in0_max", SENSORS_LM78_IN0, SENSORS_LM78_IN0,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN0, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN0, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_IN1_MAX, "in1_max", SENSORS_LM78_IN1, SENSORS_LM78_IN1,
|
|
|
|
{ SENSORS_LM78_IN1_MAX, "in1_max", SENSORS_LM78_IN1, SENSORS_LM78_IN1,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN1, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN1, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_IN2_MAX, "in2_max", SENSORS_LM78_IN2, SENSORS_LM78_IN2,
|
|
|
|
{ SENSORS_LM78_IN2_MAX, "in2_max", SENSORS_LM78_IN2, SENSORS_LM78_IN2,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN2, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN2, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_IN3_MAX, "in3_max", SENSORS_LM78_IN3, SENSORS_LM78_IN3,
|
|
|
|
{ SENSORS_LM78_IN3_MAX, "in3_max", SENSORS_LM78_IN3, SENSORS_LM78_IN3,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN3, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN3, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_IN4_MAX, "in4_max", SENSORS_LM78_IN4, SENSORS_LM78_IN4,
|
|
|
|
{ SENSORS_LM78_IN4_MAX, "in4_max", SENSORS_LM78_IN4, SENSORS_LM78_IN4,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN4, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN4, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_IN5_MAX, "in5_max", SENSORS_LM78_IN5, SENSORS_LM78_IN5,
|
|
|
|
{ SENSORS_LM78_IN5_MAX, "in5_max", SENSORS_LM78_IN5, SENSORS_LM78_IN5,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN5, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN5, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_IN6_MAX, "in6_max", SENSORS_LM78_IN6, SENSORS_LM78_IN6,
|
|
|
|
{ SENSORS_LM78_IN6_MAX, "in6_max", SENSORS_LM78_IN6, SENSORS_LM78_IN6,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN6, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN6, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN3, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN3, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78_FAN1_MIN, "fan1_min", SENSORS_LM78_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN1_MIN, "fan1_min", SENSORS_LM78_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78_FAN2_MIN, "fan2_min", SENSORS_LM78_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN2_MIN, "fan2_min", SENSORS_LM78_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78_FAN3_MIN, "fan3_min", SENSORS_LM78_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN3_MIN, "fan3_min", SENSORS_LM78_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN3, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN3, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
{ SENSORS_LM78_TEMP_HYST, "temp_hyst", SENSORS_LM78_TEMP,
|
|
|
|
{ SENSORS_LM78_TEMP_HYST, "temp_hyst", SENSORS_LM78_TEMP,
|
|
|
|
SENSORS_LM78_TEMP, SENSORS_RW, LM78_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM78_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(2), 1 },
|
|
|
|
LM78_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
{ SENSORS_LM78_TEMP_OVER, "temp_over", SENSORS_LM78_TEMP,
|
|
|
|
{ SENSORS_LM78_TEMP_OVER, "temp_over", SENSORS_LM78_TEMP,
|
|
|
|
SENSORS_LM78_TEMP, SENSORS_RW, LM78_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM78_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 1 },
|
|
|
|
LM78_SYSCTL_TEMP, VALUE(1), 1 },
|
|
|
|
{ SENSORS_LM78_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_VID, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_VID, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78_FAN1_DIV, "fan1_div", SENSORS_LM78_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN1_DIV, "fan1_div", SENSORS_LM78_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN_DIV, VALUE(1),
|
|
|
|
|
|
|
|
0 },
|
|
|
|
{ SENSORS_LM78_FAN2_DIV, "fan2_div", SENSORS_LM78_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN2_DIV, "fan2_div", SENSORS_LM78_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN_DIV, VALUE(2),
|
|
|
|
|
|
|
|
0 },
|
|
|
|
{ SENSORS_LM78_FAN3_DIV, "fan3_div", SENSORS_LM78_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_FAN3_DIV, "fan3_div", SENSORS_LM78_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN_DIV, VALUE(3),
|
|
|
|
|
|
|
|
0 },
|
|
|
|
{ SENSORS_LM78_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_ALARMS, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_ALARMS, VALUE(1), 0 },
|
|
|
|
{ 0 }
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static sensors_chip_feature lm78j_features[] =
|
|
|
|
static sensors_chip_feature lm78j_features[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ SENSORS_LM78J_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN0, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN0, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN1, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN1, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN2, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN2, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN3, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN3, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN4, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN4, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN5, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN5, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN6, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN6, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM78J_IN0_MIN, "in0_min", SENSORS_LM78J_IN0, SENSORS_LM78J_IN0,
|
|
|
|
{ SENSORS_LM78J_IN0_MIN, "in0_min", SENSORS_LM78J_IN0, SENSORS_LM78J_IN0,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN0, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN0, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN1_MIN, "in1_min", SENSORS_LM78J_IN1, SENSORS_LM78J_IN1,
|
|
|
|
{ SENSORS_LM78J_IN1_MIN, "in1_min", SENSORS_LM78J_IN1, SENSORS_LM78J_IN1,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN1, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN1, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN2_MIN, "in2_min", SENSORS_LM78J_IN2, SENSORS_LM78J_IN2,
|
|
|
|
{ SENSORS_LM78J_IN2_MIN, "in2_min", SENSORS_LM78J_IN2, SENSORS_LM78J_IN2,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN2, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN2, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN3_MIN, "in3_min", SENSORS_LM78J_IN3, SENSORS_LM78J_IN3,
|
|
|
|
{ SENSORS_LM78J_IN3_MIN, "in3_min", SENSORS_LM78J_IN3, SENSORS_LM78J_IN3,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN3, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN3, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN4_MIN, "in4_min", SENSORS_LM78J_IN4, SENSORS_LM78J_IN4,
|
|
|
|
{ SENSORS_LM78J_IN4_MIN, "in4_min", SENSORS_LM78J_IN4, SENSORS_LM78J_IN4,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN4, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN4, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN5_MIN, "in5_min", SENSORS_LM78J_IN5, SENSORS_LM78J_IN5,
|
|
|
|
{ SENSORS_LM78J_IN5_MIN, "in5_min", SENSORS_LM78J_IN5, SENSORS_LM78J_IN5,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN5, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN5, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN6_MIN, "in6_min", SENSORS_LM78J_IN6, SENSORS_LM78J_IN6,
|
|
|
|
{ SENSORS_LM78J_IN6_MIN, "in6_min", SENSORS_LM78J_IN6, SENSORS_LM78J_IN6,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN6, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN6, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_IN0_MAX, "in0_max", SENSORS_LM78J_IN0, SENSORS_LM78J_IN0,
|
|
|
|
{ SENSORS_LM78J_IN0_MAX, "in0_max", SENSORS_LM78J_IN0, SENSORS_LM78J_IN0,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN0, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN0, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_IN1_MAX, "in1_max", SENSORS_LM78J_IN1, SENSORS_LM78J_IN1,
|
|
|
|
{ SENSORS_LM78J_IN1_MAX, "in1_max", SENSORS_LM78J_IN1, SENSORS_LM78J_IN1,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN1, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN1, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_IN2_MAX, "in2_max", SENSORS_LM78J_IN2, SENSORS_LM78J_IN2,
|
|
|
|
{ SENSORS_LM78J_IN2_MAX, "in2_max", SENSORS_LM78J_IN2, SENSORS_LM78J_IN2,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN2, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN2, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_IN3_MAX, "in3_max", SENSORS_LM78J_IN3, SENSORS_LM78J_IN3,
|
|
|
|
{ SENSORS_LM78J_IN3_MAX, "in3_max", SENSORS_LM78J_IN3, SENSORS_LM78J_IN3,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN3, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN3, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_IN4_MAX, "in4_max", SENSORS_LM78J_IN4, SENSORS_LM78J_IN4,
|
|
|
|
{ SENSORS_LM78J_IN4_MAX, "in4_max", SENSORS_LM78J_IN4, SENSORS_LM78J_IN4,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN4, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN4, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_IN5_MAX, "in5_max", SENSORS_LM78J_IN5, SENSORS_LM78J_IN5,
|
|
|
|
{ SENSORS_LM78J_IN5_MAX, "in5_max", SENSORS_LM78J_IN5, SENSORS_LM78J_IN5,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN5, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN5, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_IN6_MAX, "in6_max", SENSORS_LM78J_IN6, SENSORS_LM78J_IN6,
|
|
|
|
{ SENSORS_LM78J_IN6_MAX, "in6_max", SENSORS_LM78J_IN6, SENSORS_LM78J_IN6,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN6, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN6, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM78J_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN3, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN3, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN1_MIN, "fan1_min", SENSORS_LM78J_FAN1,
|
|
|
|
{ SENSORS_LM78J_FAN1_MIN, "fan1_min", SENSORS_LM78J_FAN1,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW, LM78_SYSCTL_FAN1,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 0 },
|
|
|
|
LM78_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN2_MIN, "fan2_min", SENSORS_LM78J_FAN2,
|
|
|
|
{ SENSORS_LM78J_FAN2_MIN, "fan2_min", SENSORS_LM78J_FAN2,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW, LM78_SYSCTL_FAN2,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 0 },
|
|
|
|
LM78_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN3_MIN, "fan3_min", SENSORS_LM78J_FAN3,
|
|
|
|
{ SENSORS_LM78J_FAN3_MIN, "fan3_min", SENSORS_LM78J_FAN3,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW, LM78_SYSCTL_FAN3,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 0 },
|
|
|
|
LM78_SYSCTL_FAN3, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78J_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
{ SENSORS_LM78J_TEMP_HYST, "temp_hyst", SENSORS_LM78J_TEMP,
|
|
|
|
{ SENSORS_LM78J_TEMP_HYST, "temp_hyst", SENSORS_LM78J_TEMP,
|
|
|
|
SENSORS_LM78J_TEMP, SENSORS_RW, LM78_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM78J_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(2), 1 },
|
|
|
|
LM78_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
{ SENSORS_LM78J_TEMP_OVER, "temp_over", SENSORS_LM78J_TEMP,
|
|
|
|
{ SENSORS_LM78J_TEMP_OVER, "temp_over", SENSORS_LM78J_TEMP,
|
|
|
|
SENSORS_LM78J_TEMP, SENSORS_RW, LM78_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM78J_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 1 },
|
|
|
|
LM78_SYSCTL_TEMP, VALUE(1), 1 },
|
|
|
|
{ SENSORS_LM78J_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_VID, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_VID, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM78J_FAN1_DIV, "fan1_div", SENSORS_LM78J_FAN1,
|
|
|
|
{ SENSORS_LM78J_FAN1_DIV, "fan1_div", SENSORS_LM78J_FAN1,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
LM78_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
LM78_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN2_DIV, "fan2_div", SENSORS_LM78J_FAN2,
|
|
|
|
{ SENSORS_LM78J_FAN2_DIV, "fan2_div", SENSORS_LM78J_FAN2,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
LM78_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
LM78_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM78J_FAN3_DIV, "fan3_div", SENSORS_LM78J_FAN3,
|
|
|
|
{ SENSORS_LM78J_FAN3_DIV, "fan3_div", SENSORS_LM78J_FAN3,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_R,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_R,
|
|
|
|
LM78_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
LM78_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
{ SENSORS_LM78J_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM78J_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_ALARMS, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_ALARMS, VALUE(1), 0 },
|
|
|
|
{ 0 }
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static sensors_chip_feature lm79_features[] =
|
|
|
|
static sensors_chip_feature lm79_features[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ SENSORS_LM79_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN0, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN0, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN1, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN1, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN2, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN2, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN3, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN3, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN4, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN4, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN5, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN5, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_IN6, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_IN6, VALUE(3), 2 },
|
|
|
|
{ SENSORS_LM79_IN0_MIN, "in0_min", SENSORS_LM79_IN0, SENSORS_LM79_IN0,
|
|
|
|
{ SENSORS_LM79_IN0_MIN, "in0_min", SENSORS_LM79_IN0, SENSORS_LM79_IN0,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN0, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN0, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN1_MIN, "in1_min", SENSORS_LM79_IN1, SENSORS_LM79_IN1,
|
|
|
|
{ SENSORS_LM79_IN1_MIN, "in1_min", SENSORS_LM79_IN1, SENSORS_LM79_IN1,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN1, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN1, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN2_MIN, "in2_min", SENSORS_LM79_IN2, SENSORS_LM79_IN2,
|
|
|
|
{ SENSORS_LM79_IN2_MIN, "in2_min", SENSORS_LM79_IN2, SENSORS_LM79_IN2,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN2, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN2, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN3_MIN, "in3_min", SENSORS_LM79_IN3, SENSORS_LM79_IN3,
|
|
|
|
{ SENSORS_LM79_IN3_MIN, "in3_min", SENSORS_LM79_IN3, SENSORS_LM79_IN3,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN3, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN3, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN4_MIN, "in4_min", SENSORS_LM79_IN4, SENSORS_LM79_IN4,
|
|
|
|
{ SENSORS_LM79_IN4_MIN, "in4_min", SENSORS_LM79_IN4, SENSORS_LM79_IN4,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN4, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN4, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN5_MIN, "in5_min", SENSORS_LM79_IN5, SENSORS_LM79_IN5,
|
|
|
|
{ SENSORS_LM79_IN5_MIN, "in5_min", SENSORS_LM79_IN5, SENSORS_LM79_IN5,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN5, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN5, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN6_MIN, "in6_min", SENSORS_LM79_IN6, SENSORS_LM79_IN6,
|
|
|
|
{ SENSORS_LM79_IN6_MIN, "in6_min", SENSORS_LM79_IN6, SENSORS_LM79_IN6,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN6, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN6, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_IN0_MAX, "in0_max", SENSORS_LM79_IN0, SENSORS_LM79_IN0,
|
|
|
|
{ SENSORS_LM79_IN0_MAX, "in0_max", SENSORS_LM79_IN0, SENSORS_LM79_IN0,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN0, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN0, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_IN1_MAX, "in1_max", SENSORS_LM79_IN1, SENSORS_LM79_IN1,
|
|
|
|
{ SENSORS_LM79_IN1_MAX, "in1_max", SENSORS_LM79_IN1, SENSORS_LM79_IN1,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN1, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN1, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_IN2_MAX, "in2_max", SENSORS_LM79_IN2, SENSORS_LM79_IN2,
|
|
|
|
{ SENSORS_LM79_IN2_MAX, "in2_max", SENSORS_LM79_IN2, SENSORS_LM79_IN2,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN2, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN2, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_IN3_MAX, "in3_max", SENSORS_LM79_IN3, SENSORS_LM79_IN3,
|
|
|
|
{ SENSORS_LM79_IN3_MAX, "in3_max", SENSORS_LM79_IN3, SENSORS_LM79_IN3,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN3, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN3, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_IN4_MAX, "in4_max", SENSORS_LM79_IN4, SENSORS_LM79_IN4,
|
|
|
|
{ SENSORS_LM79_IN4_MAX, "in4_max", SENSORS_LM79_IN4, SENSORS_LM79_IN4,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN4, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN4, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_IN5_MAX, "in5_max", SENSORS_LM79_IN5, SENSORS_LM79_IN5,
|
|
|
|
{ SENSORS_LM79_IN5_MAX, "in5_max", SENSORS_LM79_IN5, SENSORS_LM79_IN5,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN5, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN5, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_IN6_MAX, "in6_max", SENSORS_LM79_IN6, SENSORS_LM79_IN6,
|
|
|
|
{ SENSORS_LM79_IN6_MAX, "in6_max", SENSORS_LM79_IN6, SENSORS_LM79_IN6,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_IN6, VALUE(2), 2 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_IN6, VALUE(2), 2 },
|
|
|
|
{ SENSORS_LM79_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM79_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM79_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN3, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN3, VALUE(2), 0 },
|
|
|
|
{ SENSORS_LM79_FAN1_MIN, "fan1_min", SENSORS_LM79_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN1_MIN, "fan1_min", SENSORS_LM79_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM79_FAN2_MIN, "fan2_min", SENSORS_LM79_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN2_MIN, "fan2_min", SENSORS_LM79_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM79_FAN3_MIN, "fan3_min", SENSORS_LM79_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN3_MIN, "fan3_min", SENSORS_LM79_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN3, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN3, VALUE(1), 0 },
|
|
|
|
{ SENSORS_LM79_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
{ SENSORS_LM79_TEMP_HYST, "temp_hyst", SENSORS_LM79_TEMP,
|
|
|
|
{ SENSORS_LM79_TEMP_HYST, "temp_hyst", SENSORS_LM79_TEMP,
|
|
|
|
SENSORS_LM79_TEMP, SENSORS_RW, LM78_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM79_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(2), 1 },
|
|
|
|
LM78_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
{ SENSORS_LM79_TEMP_OVER, "temp_over", SENSORS_LM79_TEMP,
|
|
|
|
{ SENSORS_LM79_TEMP_OVER, "temp_over", SENSORS_LM79_TEMP,
|
|
|
|
SENSORS_LM79_TEMP, SENSORS_RW, LM78_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM79_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 1 },
|
|
|
|
LM78_SYSCTL_TEMP, VALUE(1), 1 },
|
|
|
|
{ SENSORS_LM79_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_VID, VALUE(1), 2 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_VID, VALUE(1), 2 },
|
|
|
|
{ SENSORS_LM79_FAN1_DIV, "fan1_div", SENSORS_LM79_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN1_DIV, "fan1_div", SENSORS_LM79_FAN1, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN_DIV, VALUE(1),
|
|
|
|
|
|
|
|
0 },
|
|
|
|
{ SENSORS_LM79_FAN2_DIV, "fan2_div", SENSORS_LM79_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN2_DIV, "fan2_div", SENSORS_LM79_FAN2, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_RW, LM78_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_RW, LM78_SYSCTL_FAN_DIV, VALUE(2),
|
|
|
|
|
|
|
|
0 },
|
|
|
|
{ SENSORS_LM79_FAN3_DIV, "fan3_div", SENSORS_LM79_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_FAN3_DIV, "fan3_div", SENSORS_LM79_FAN3, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_FAN_DIV, VALUE(3),
|
|
|
|
|
|
|
|
0 },
|
|
|
|
{ SENSORS_LM79_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM79_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM78_SYSCTL_ALARMS, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_R, LM78_SYSCTL_ALARMS, VALUE(1), 0 },
|
|
|
|
{ 0 }
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@@ -278,78 +285,80 @@ static sensors_chip_feature lm79_features[] =
|
|
|
|
static sensors_chip_feature lm75_features[] =
|
|
|
|
static sensors_chip_feature lm75_features[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ SENSORS_LM75_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_LM75_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, LM75_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
SENSORS_MODE_R, LM75_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
{ SENSORS_LM75_TEMP_HYST, "temp_hyst", SENSORS_LM75_TEMP,
|
|
|
|
{ SENSORS_LM75_TEMP_HYST, "temp_hyst", SENSORS_LM75_TEMP,
|
|
|
|
SENSORS_LM75_TEMP, SENSORS_RW, LM75_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM75_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(2), 1 },
|
|
|
|
LM75_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
{ SENSORS_LM75_TEMP_OVER, "temp_over", SENSORS_LM75_TEMP,
|
|
|
|
{ SENSORS_LM75_TEMP_OVER, "temp_over", SENSORS_LM75_TEMP,
|
|
|
|
SENSORS_LM75_TEMP, SENSORS_RW, LM75_SYSCTL_TEMP,
|
|
|
|
SENSORS_LM75_TEMP, SENSORS_MODE_RW,
|
|
|
|
VALUE(1), 1 },
|
|
|
|
LM75_SYSCTL_TEMP, VALUE(1), 1 },
|
|
|
|
{ 0 }
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static sensors_chip_feature gl518r00_features[] =
|
|
|
|
static sensors_chip_feature gl518r00_features[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ SENSORS_GL518R00_VDD, "vdd", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_VDD, "vdd", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_RW, GL518_SYSCTL_VDD, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_NO_RW, GL518_SYSCTL_VDD, VALUE(3), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN1, "vin1", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_VIN1, "vin1", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_RW, GL518_SYSCTL_VIN1, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_NO_RW, GL518_SYSCTL_VIN1, VALUE(3),
|
|
|
|
|
|
|
|
2 },
|
|
|
|
{ SENSORS_GL518R00_VIN2, "vin2", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_VIN2, "vin2", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_RW, GL518_SYSCTL_VIN2, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_NO_RW, GL518_SYSCTL_VIN2, VALUE(3),
|
|
|
|
|
|
|
|
2 },
|
|
|
|
{ SENSORS_GL518R00_VIN3, "vin3", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_VIN3, "vin3", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_VIN3, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_VIN3, VALUE(3), 2 },
|
|
|
|
{ SENSORS_GL518R00_VDD_MIN, "vdd_min", SENSORS_GL518R00_VDD,
|
|
|
|
{ SENSORS_GL518R00_VDD_MIN, "vdd_min", SENSORS_GL518R00_VDD,
|
|
|
|
SENSORS_GL518R00_VDD, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VDD, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN1_MIN, "vin1_min", SENSORS_GL518R00_VIN1,
|
|
|
|
{ SENSORS_GL518R00_VIN1_MIN, "vin1_min", SENSORS_GL518R00_VIN1,
|
|
|
|
SENSORS_GL518R00_VIN1, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VIN1, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN2_MIN, "vin2_min", SENSORS_GL518R00_VIN2,
|
|
|
|
{ SENSORS_GL518R00_VIN2_MIN, "vin2_min", SENSORS_GL518R00_VIN2,
|
|
|
|
SENSORS_GL518R00_VIN2, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VIN2, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN3_MIN, "vin3_min", SENSORS_GL518R00_VIN3,
|
|
|
|
{ SENSORS_GL518R00_VIN3_MIN, "vin3_min", SENSORS_GL518R00_VIN3,
|
|
|
|
SENSORS_GL518R00_VIN3, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VIN3, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R00_VDD_MAX, "vdd_max", SENSORS_GL518R00_VDD,
|
|
|
|
{ SENSORS_GL518R00_VDD_MAX, "vdd_max", SENSORS_GL518R00_VDD,
|
|
|
|
SENSORS_GL518R00_VDD, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VDD, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VDD, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VDD, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN1_MAX, "vin1_max", SENSORS_GL518R00_VIN1,
|
|
|
|
{ SENSORS_GL518R00_VIN1_MAX, "vin1_max", SENSORS_GL518R00_VIN1,
|
|
|
|
SENSORS_GL518R00_VIN1, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VIN1, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN2_MAX, "vin2_max", SENSORS_GL518R00_VIN2,
|
|
|
|
{ SENSORS_GL518R00_VIN2_MAX, "vin2_max", SENSORS_GL518R00_VIN2,
|
|
|
|
SENSORS_GL518R00_VIN2, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VIN2, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R00_VIN3_MAX, "vin3_max", SENSORS_GL518R00_VIN3,
|
|
|
|
{ SENSORS_GL518R00_VIN3_MAX, "vin3_max", SENSORS_GL518R00_VIN3,
|
|
|
|
SENSORS_GL518R00_VIN3, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_VIN3, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R00_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
{ SENSORS_GL518R00_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
{ SENSORS_GL518R00_FAN1_MIN, "fan1_min", SENSORS_GL518R00_FAN1,
|
|
|
|
{ SENSORS_GL518R00_FAN1_MIN, "fan1_min", SENSORS_GL518R00_FAN1,
|
|
|
|
SENSORS_GL518R00_FAN1, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_FAN1, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
GL518_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R00_FAN2_MIN, "fan2_min", SENSORS_GL518R00_FAN2,
|
|
|
|
{ SENSORS_GL518R00_FAN2_MIN, "fan2_min", SENSORS_GL518R00_FAN2,
|
|
|
|
SENSORS_GL518R00_FAN2, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_FAN2, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
GL518_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R00_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
{ SENSORS_GL518R00_TEMP_HYST, "temp_hyst", SENSORS_GL518R00_TEMP,
|
|
|
|
{ SENSORS_GL518R00_TEMP_HYST, "temp_hyst", SENSORS_GL518R00_TEMP,
|
|
|
|
SENSORS_GL518R00_TEMP, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_TEMP, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
GL518_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
{ SENSORS_GL518R00_TEMP_OVER, "temp_over", SENSORS_GL518R00_TEMP,
|
|
|
|
{ SENSORS_GL518R00_TEMP_OVER, "temp_over", SENSORS_GL518R00_TEMP,
|
|
|
|
SENSORS_GL518R00_TEMP, SENSORS_RW,
|
|
|
|
SENSORS_GL518R00_TEMP, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 1 },
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 1 },
|
|
|
|
{ SENSORS_GL518R00_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_VID, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_VID, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R00_FAN1_DIV, "fan1_div", SENSORS_GL518R00_FAN1,
|
|
|
|
{ SENSORS_GL518R00_FAN1_DIV, "fan1_div", SENSORS_GL518R00_FAN1,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R00_FAN2_DIV, "fan2_div", SENSORS_GL518R00_FAN2,
|
|
|
|
{ SENSORS_GL518R00_FAN2_DIV, "fan2_div", SENSORS_GL518R00_FAN2,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
{ SENSORS_GL518R00_ALARMS, "alarms", SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R00_ALARMS, "alarms", SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_R,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_R,
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
{ 0 }
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
};
|
|
|
@@ -358,65 +367,67 @@ static sensors_chip_feature gl518r00_features[] =
|
|
|
|
static sensors_chip_feature gl518r80_features[] =
|
|
|
|
static sensors_chip_feature gl518r80_features[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ SENSORS_GL518R80_VDD, "vdd", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_VDD, "vdd", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_RW, GL518_SYSCTL_VDD, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_NO_RW, GL518_SYSCTL_VDD, VALUE(3), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN1, "vin1", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_VIN1, "vin1", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_RW, GL518_SYSCTL_VIN1, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_NO_RW, GL518_SYSCTL_VIN1, VALUE(3),
|
|
|
|
|
|
|
|
2 },
|
|
|
|
{ SENSORS_GL518R80_VIN2, "vin2", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_VIN2, "vin2", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_RW, GL518_SYSCTL_VIN2, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_NO_RW, GL518_SYSCTL_VIN2, VALUE(3),
|
|
|
|
|
|
|
|
2 },
|
|
|
|
{ SENSORS_GL518R80_VIN3, "vin3", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_VIN3, "vin3", SENSORS_NO_MAPPING,SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_VIN3, VALUE(3), 2 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_VIN3, VALUE(3), 2 },
|
|
|
|
{ SENSORS_GL518R80_VDD_MIN, "vdd_min", SENSORS_GL518R80_VDD,
|
|
|
|
{ SENSORS_GL518R80_VDD_MIN, "vdd_min", SENSORS_GL518R80_VDD,
|
|
|
|
SENSORS_GL518R80_VDD, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VDD, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN1_MIN, "vin1_min", SENSORS_GL518R80_VIN1,
|
|
|
|
{ SENSORS_GL518R80_VIN1_MIN, "vin1_min", SENSORS_GL518R80_VIN1,
|
|
|
|
SENSORS_GL518R80_VIN1, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VIN1, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN2_MIN, "vin2_min", SENSORS_GL518R80_VIN2,
|
|
|
|
{ SENSORS_GL518R80_VIN2_MIN, "vin2_min", SENSORS_GL518R80_VIN2,
|
|
|
|
SENSORS_GL518R80_VIN2, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VIN2, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN3_MIN, "vin3_min", SENSORS_GL518R80_VIN3,
|
|
|
|
{ SENSORS_GL518R80_VIN3_MIN, "vin3_min", SENSORS_GL518R80_VIN3,
|
|
|
|
SENSORS_GL518R80_VIN3, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VIN3, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(1), 2 },
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(1), 2 },
|
|
|
|
{ SENSORS_GL518R80_VDD_MAX, "vdd_max", SENSORS_GL518R80_VDD,
|
|
|
|
{ SENSORS_GL518R80_VDD_MAX, "vdd_max", SENSORS_GL518R80_VDD,
|
|
|
|
SENSORS_GL518R80_VDD, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VDD, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VDD, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VDD, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN1_MAX, "vin1_max", SENSORS_GL518R80_VIN1,
|
|
|
|
{ SENSORS_GL518R80_VIN1_MAX, "vin1_max", SENSORS_GL518R80_VIN1,
|
|
|
|
SENSORS_GL518R80_VIN1, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VIN1, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VIN1, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN2_MAX, "vin2_max", SENSORS_GL518R80_VIN2,
|
|
|
|
{ SENSORS_GL518R80_VIN2_MAX, "vin2_max", SENSORS_GL518R80_VIN2,
|
|
|
|
SENSORS_GL518R80_VIN2, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VIN2, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VIN2, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R80_VIN3_MAX, "vin3_max", SENSORS_GL518R80_VIN3,
|
|
|
|
{ SENSORS_GL518R80_VIN3_MAX, "vin3_max", SENSORS_GL518R80_VIN3,
|
|
|
|
SENSORS_GL518R80_VIN3, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_VIN3, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(2), 2 },
|
|
|
|
GL518_SYSCTL_VIN3, VALUE(2), 2 },
|
|
|
|
{ SENSORS_GL518R80_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_FAN1, VALUE(2), 0 },
|
|
|
|
{ SENSORS_GL518R80_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_FAN2, VALUE(2), 0 },
|
|
|
|
{ SENSORS_GL518R80_FAN1_MIN, "fan1_min", SENSORS_GL518R80_FAN1,
|
|
|
|
{ SENSORS_GL518R80_FAN1_MIN, "fan1_min", SENSORS_GL518R80_FAN1,
|
|
|
|
SENSORS_GL518R80_FAN1, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_FAN1, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
GL518_SYSCTL_FAN1, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R80_FAN2_MIN, "fan2_min", SENSORS_GL518R80_FAN2,
|
|
|
|
{ SENSORS_GL518R80_FAN2_MIN, "fan2_min", SENSORS_GL518R80_FAN2,
|
|
|
|
SENSORS_GL518R80_FAN2, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_FAN2, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
GL518_SYSCTL_FAN2, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R80_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_TEMP, "temp", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_TEMP, VALUE(3), 1 },
|
|
|
|
{ SENSORS_GL518R80_TEMP_HYST, "temp_hyst", SENSORS_GL518R80_TEMP,
|
|
|
|
{ SENSORS_GL518R80_TEMP_HYST, "temp_hyst", SENSORS_GL518R80_TEMP,
|
|
|
|
SENSORS_GL518R80_TEMP, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_TEMP, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
GL518_SYSCTL_TEMP, VALUE(2), 1 },
|
|
|
|
{ SENSORS_GL518R80_TEMP_OVER, "temp_over", SENSORS_GL518R80_TEMP,
|
|
|
|
{ SENSORS_GL518R80_TEMP_OVER, "temp_over", SENSORS_GL518R80_TEMP,
|
|
|
|
SENSORS_GL518R80_TEMP, SENSORS_RW,
|
|
|
|
SENSORS_GL518R80_TEMP, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 1 },
|
|
|
|
GL518_SYSCTL_VDD, VALUE(1), 1 },
|
|
|
|
{ SENSORS_GL518R80_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_R, GL518_SYSCTL_VID, VALUE(1), 0 },
|
|
|
|
SENSORS_MODE_R, GL518_SYSCTL_VID, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R80_FAN1_DIV, "fan1_div", SENSORS_GL518R80_FAN1,
|
|
|
|
{ SENSORS_GL518R80_FAN1_DIV, "fan1_div", SENSORS_GL518R80_FAN1,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(1), 0 },
|
|
|
|
{ SENSORS_GL518R80_FAN2_DIV, "fan2_div", SENSORS_GL518R80_FAN2,
|
|
|
|
{ SENSORS_GL518R80_FAN2_DIV, "fan2_div", SENSORS_GL518R80_FAN2,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_RW,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(2), 0 },
|
|
|
|
{ SENSORS_GL518R80_ALARMS, "alarms", SENSORS_NO_MAPPING,
|
|
|
|
{ SENSORS_GL518R80_ALARMS, "alarms", SENSORS_NO_MAPPING,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_R,
|
|
|
|
SENSORS_NO_MAPPING, SENSORS_MODE_R,
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
GL518_SYSCTL_FAN_DIV, VALUE(3), 0 },
|
|
|
|
{ 0 }
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
};
|
|
|
|