Here is the associated lib/chips.c patch for the kernel 2.6.X lm85 driver Justin Thiessen --------------- Linux Engineer jthiessen at penguincomputing.com http://www.penguincomputing.com from $diff -Naur -------------------------------------- --- lib/chips.c 2004-08-09 14:08:54.172679352 -0700 +++ lib/chips.c.new 2004-08-09 14:08:02.482537448 -0700 @@ -3159,7 +3159,7 @@ /* NOTE: Many shared values with adm1027_features !!! */ static sensors_chip_feature lm85_features[] = { - { SENSORS_LM85_IN0, "in0", NOMAP, NOMAP, + { SENSORS_LM85_IN0, "in0", NOMAP, NOMAP, R, LM85_SYSCTL_IN0, VALUE(3), 3 }, { SENSORS_LM85_IN1, "in1", NOMAP, NOMAP, R, LM85_SYSCTL_IN1, VALUE(3), 3 }, @@ -3176,214 +3176,219 @@ { SENSORS_LM85_IN7, "in7", NOMAP, NOMAP, R, EMC6D100_SYSCTL_IN7, VALUE(3), 3 }, { SENSORS_LM85_IN0_MIN, "in0_min", SENSORS_LM85_IN0, SENSORS_LM85_IN0, - RW, LM85_SYSCTL_IN0, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN0, VALUE(1), 3 }, { SENSORS_LM85_IN1_MIN, "in1_min", SENSORS_LM85_IN1, SENSORS_LM85_IN1, - RW, LM85_SYSCTL_IN1, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN1, VALUE(1), 3 }, { SENSORS_LM85_IN2_MIN, "in2_min", SENSORS_LM85_IN2, SENSORS_LM85_IN2, - RW, LM85_SYSCTL_IN2, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN2, VALUE(1), 3 }, { SENSORS_LM85_IN3_MIN, "in3_min", SENSORS_LM85_IN3, SENSORS_LM85_IN3, - RW, LM85_SYSCTL_IN3, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN3, VALUE(1), 3 }, { SENSORS_LM85_IN4_MIN, "in4_min", SENSORS_LM85_IN4, SENSORS_LM85_IN4, - RW, LM85_SYSCTL_IN4, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN4, VALUE(1), 3 }, { SENSORS_LM85_IN5_MIN, "in5_min", SENSORS_LM85_IN5, SENSORS_LM85_IN5, - RW, EMC6D100_SYSCTL_IN5, VALUE(1), 3 }, + RW, EMC6D100_SYSCTL_IN5, VALUE(1), 3 }, { SENSORS_LM85_IN6_MIN, "in6_min", SENSORS_LM85_IN6, SENSORS_LM85_IN6, - RW, EMC6D100_SYSCTL_IN6, VALUE(1), 3 }, + RW, EMC6D100_SYSCTL_IN6, VALUE(1), 3 }, { SENSORS_LM85_IN7_MIN, "in7_min", SENSORS_LM85_IN7, SENSORS_LM85_IN7, - RW, EMC6D100_SYSCTL_IN7, VALUE(1), 3 }, + RW, EMC6D100_SYSCTL_IN7, VALUE(1), 3 }, { SENSORS_LM85_IN0_MAX, "in0_max", SENSORS_LM85_IN0, SENSORS_LM85_IN0, - RW, LM85_SYSCTL_IN0, VALUE(2), 3 }, - { SENSORS_LM85_IN1_MAX, "in1_max", SENSORS_LM85_IN1, SENSORS_LM85_IN1, - RW, LM85_SYSCTL_IN1, VALUE(2), 3 }, - { SENSORS_LM85_IN2_MAX, "in2_max", SENSORS_LM85_IN2, SENSORS_LM85_IN2, - RW, LM85_SYSCTL_IN2, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN0, VALUE(2), 3 }, + { SENSORS_LM85_IN1_MAX, "in1_max", SENSORS_LM85_IN1, SENSORS_LM85_IN1, + RW, LM85_SYSCTL_IN1, VALUE(2), 3 }, + { SENSORS_LM85_IN2_MAX, "in2_max", SENSORS_LM85_IN2, SENSORS_LM85_IN2, + RW, LM85_SYSCTL_IN2, VALUE(2), 3 }, { SENSORS_LM85_IN3_MAX, "in3_max", SENSORS_LM85_IN3, SENSORS_LM85_IN3, - RW, LM85_SYSCTL_IN3, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN3, VALUE(2), 3 }, { SENSORS_LM85_IN4_MAX, "in4_max", SENSORS_LM85_IN4, SENSORS_LM85_IN4, - RW, LM85_SYSCTL_IN4, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN4, VALUE(2), 3 }, { SENSORS_LM85_IN5_MAX, "in5_max", SENSORS_LM85_IN5, SENSORS_LM85_IN5, - RW, EMC6D100_SYSCTL_IN5, VALUE(2), 3 }, + RW, EMC6D100_SYSCTL_IN5, VALUE(2), 3 }, { SENSORS_LM85_IN6_MAX, "in6_max", SENSORS_LM85_IN6, SENSORS_LM85_IN6, - RW, EMC6D100_SYSCTL_IN6, VALUE(2), 3 }, + RW, EMC6D100_SYSCTL_IN6, VALUE(2), 3 }, { SENSORS_LM85_IN7_MAX, "in7_max", SENSORS_LM85_IN7, SENSORS_LM85_IN7, - RW, EMC6D100_SYSCTL_IN7, VALUE(2), 3 }, + RW, EMC6D100_SYSCTL_IN7, VALUE(2), 3 }, { SENSORS_LM85_FAN1, "fan1", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN1, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN1, VALUE(2), 0 }, { SENSORS_LM85_FAN2, "fan2", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN2, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN2, VALUE(2), 0 }, { SENSORS_LM85_FAN3, "fan3", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN3, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN3, VALUE(2), 0 }, { SENSORS_LM85_FAN4, "fan4", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN4, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN4, VALUE(2), 0 }, + { SENSORS_LM85_FAN1_PWM, "fan1_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN1, VALUE(3), 0 }, + { SENSORS_LM85_FAN2_PWM, "fan2_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN2, VALUE(3), 0 }, + { SENSORS_LM85_FAN3_PWM, "fan3_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN3, VALUE(3), 0 }, { SENSORS_LM85_FAN1_MIN, "fan1_min", SENSORS_LM85_FAN1, SENSORS_LM85_FAN1, - RW, LM85_SYSCTL_FAN1, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN1, VALUE(1), 0 }, { SENSORS_LM85_FAN2_MIN, "fan2_min", SENSORS_LM85_FAN2, SENSORS_LM85_FAN2, - RW, LM85_SYSCTL_FAN2, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN2, VALUE(1), 0 }, { SENSORS_LM85_FAN3_MIN, "fan3_min", SENSORS_LM85_FAN3, SENSORS_LM85_FAN3, - RW, LM85_SYSCTL_FAN3, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN3, VALUE(1), 0 }, { SENSORS_LM85_FAN4_MIN, "fan4_min", SENSORS_LM85_FAN4, SENSORS_LM85_FAN4, - RW, LM85_SYSCTL_FAN4, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN4, VALUE(1), 0 }, { SENSORS_LM85_TEMP1, "temp1", NOMAP, NOMAP, - R, LM85_SYSCTL_TEMP1, VALUE(3), 2 }, + R, LM85_SYSCTL_TEMP1, VALUE(3), 3 }, { SENSORS_LM85_TEMP2, "temp2", NOMAP, NOMAP, - R, LM85_SYSCTL_TEMP2, VALUE(3), 2 }, + R, LM85_SYSCTL_TEMP2, VALUE(3), 3 }, { SENSORS_LM85_TEMP3, "temp3", NOMAP, NOMAP, - R, LM85_SYSCTL_TEMP3, VALUE(3), 2 }, + R, LM85_SYSCTL_TEMP3, VALUE(3), 3 }, { SENSORS_LM85_TEMP1_MIN, "temp1_min", SENSORS_LM85_TEMP1, - SENSORS_LM85_TEMP1, RW, - LM85_SYSCTL_TEMP1, VALUE(1), 2 }, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_TEMP1, VALUE(1), 3 }, { SENSORS_LM85_TEMP2_MIN, "temp2_min", SENSORS_LM85_TEMP2, - SENSORS_LM85_TEMP2, RW, - LM85_SYSCTL_TEMP2, VALUE(1), 2 }, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_TEMP2, VALUE(1), 3 }, { SENSORS_LM85_TEMP3_MIN, "temp3_min", SENSORS_LM85_TEMP3, - SENSORS_LM85_TEMP3, RW, - LM85_SYSCTL_TEMP3, VALUE(1), 2 }, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_TEMP3, VALUE(1), 3 }, { SENSORS_LM85_TEMP1_MAX, "temp1_max", SENSORS_LM85_TEMP1, - SENSORS_LM85_TEMP1, RW, - LM85_SYSCTL_TEMP1, VALUE(2), 2 }, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_TEMP1, VALUE(2), 3 }, { SENSORS_LM85_TEMP2_MAX, "temp2_max", SENSORS_LM85_TEMP2, - SENSORS_LM85_TEMP2, RW, - LM85_SYSCTL_TEMP2, VALUE(2), 2 }, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_TEMP2, VALUE(2), 3 }, { SENSORS_LM85_TEMP3_MAX, "temp3_max", SENSORS_LM85_TEMP3, - SENSORS_LM85_TEMP3, RW, - LM85_SYSCTL_TEMP3, VALUE(2), 2 }, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_TEMP3, VALUE(2), 3 }, { SENSORS_LM85_VID, "vid", NOMAP, NOMAP, - R, LM85_SYSCTL_VID, VALUE(1), 3 }, - { SENSORS_LM85_VRM, "vrm", NOMAP, NOMAP, - RW, LM85_SYSCTL_VRM, VALUE(1), 1 }, + R, LM85_SYSCTL_VID, VALUE(1), 3 }, + { SENSORS_LM85_VRM, "vrm", NOMAP, NOMAP, + RW, LM85_SYSCTL_VRM, VALUE(1), 1 }, { SENSORS_LM85_ALARMS, "alarms", NOMAP, NOMAP, - R, LM85_SYSCTL_ALARMS, VALUE(1), 0 }, - { SENSORS_LM85_PWM1, "pwm1", NOMAP, NOMAP, - RW, LM85_SYSCTL_PWM1, VALUE(1), 0 }, - { SENSORS_LM85_PWM2, "pwm2", NOMAP, NOMAP, - RW, LM85_SYSCTL_PWM2, VALUE(1), 0 }, - { SENSORS_LM85_PWM3, "pwm3", NOMAP, NOMAP, - RW, LM85_SYSCTL_PWM3, VALUE(1), 0 }, - { SENSORS_LM85_PWM1_SPINUP, "pwm1_spinup", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(1), 1 }, - { SENSORS_LM85_PWM2_SPINUP, "pwm2_spinup", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(1), 1 }, - { SENSORS_LM85_PWM3_SPINUP, "pwm3_spinup", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(1), 1 }, - { SENSORS_LM85_PWM1_MIN, "pwm1_min", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(2), 1 }, - { SENSORS_LM85_PWM2_MIN, "pwm2_min", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(2), 1 }, - { SENSORS_LM85_PWM3_MIN, "pwm3_min", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(2), 1 }, - { SENSORS_LM85_PWM1_FREQ, "pwm1_freq", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(3), 1 }, - { SENSORS_LM85_PWM2_FREQ, "pwm2_freq", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(3), 1 }, - { SENSORS_LM85_PWM3_FREQ, "pwm3_freq", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(3), 1 }, - { SENSORS_LM85_PWM1_MIN_CTL, "pwm1_min_ctl", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(4), 1 }, - { SENSORS_LM85_PWM2_MIN_CTL, "pwm2_min_ctl", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(4), 1 }, - { SENSORS_LM85_PWM3_MIN_CTL, "pwm3_min_ctl", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(4), 1 }, - { SENSORS_LM85_PWM1_INVERT, "pwm1_invert", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, - { SENSORS_LM85_PWM2_INVERT, "pwm2_invert", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(5), 0 }, - { SENSORS_LM85_PWM3_INVERT, "pwm3_invert", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(5), 0 }, - { SENSORS_LM85_PWM1_ZONE, "pwm1_zone", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_ZONE1, VALUE(1), 0 }, - { SENSORS_LM85_PWM2_ZONE, "pwm2_zone", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_ZONE2, VALUE(1), 0 }, - { SENSORS_LM85_PWM3_ZONE, "pwm3_zone", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_ZONE3, VALUE(1), 0 }, - { SENSORS_LM85_ZONE1_LIMIT, "zone1_limit", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(1), 1 }, - { SENSORS_LM85_ZONE2_LIMIT, "zone2_limit", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(1), 1 }, - { SENSORS_LM85_ZONE3_LIMIT, "zone3_limit", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(1), 1 }, - { SENSORS_LM85_ZONE1_HYST, "zone1_hyst", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(2), 1 }, - { SENSORS_LM85_ZONE2_HYST, "zone2_hyst", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(2), 1 }, - { SENSORS_LM85_ZONE3_HYST, "zone3_hyst", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(2), 1 }, - { SENSORS_LM85_ZONE1_RANGE, "zone1_range", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(3), 1 }, - { SENSORS_LM85_ZONE2_RANGE, "zone2_range", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(3), 1 }, - { SENSORS_LM85_ZONE3_RANGE, "zone3_range", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(3), 1 }, - { SENSORS_LM85_ZONE1_CRITICAL, "zone1_critical", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(4), 1 }, - { SENSORS_LM85_ZONE2_CRITICAL, "zone2_critical", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(4), 1 }, - { SENSORS_LM85_ZONE3_CRITICAL, "zone3_critical", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(4), 1 }, - - { SENSORS_LM85_PWM1_SPINUP_CTL, "pwm1_spinup_ctl", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_SPINUP_CTL, VALUE(1), 0 }, - { SENSORS_LM85_PWM2_SPINUP_CTL, "pwm2_spinup_ctl", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_SPINUP_CTL, VALUE(2), 0 }, - { SENSORS_LM85_PWM3_SPINUP_CTL, "pwm3_spinup_ctl", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_SPINUP_CTL, VALUE(3), 0 }, - { SENSORS_LM85_FAN1_TACH_MODE, "fan1_tach_mode", SENSORS_LM85_FAN1, - NOMAP, RW, - LM85_SYSCTL_TACH_MODE, VALUE(1), 0 }, - { SENSORS_LM85_FAN2_TACH_MODE, "fan2_tach_mode", SENSORS_LM85_FAN2, - NOMAP, RW, - LM85_SYSCTL_TACH_MODE, VALUE(2), 0 }, - { SENSORS_LM85_FAN3_TACH_MODE, "fan3_tach_mode", SENSORS_LM85_FAN3, - NOMAP, RW, - LM85_SYSCTL_TACH_MODE, VALUE(3), 0 }, - { SENSORS_LM85_ZONE1_SMOOTH, "zone1_smooth", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_SMOOTH1, VALUE(1), 1 }, - { SENSORS_LM85_ZONE2_SMOOTH, "zone2_smooth", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_SMOOTH2, VALUE(1), 1 }, - { SENSORS_LM85_ZONE3_SMOOTH, "zone3_smooth", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_SMOOTH3, VALUE(1), 1 }, + R, LM85_SYSCTL_ALARMS, VALUE(1), 0 }, + { SENSORS_LM85_FAN1_AUTO, "fan1_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO, "fan2_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_AUTO, "fan3_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM3, VALUE(1), 0 }, + { SENSORS_LM85_FAN1_AUTO_SPINUP, "fan1_auto_spinup", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(1), 1 }, + { SENSORS_LM85_FAN2_AUTO_SPINUP, "fan2_auto_spinup", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(1), 1 }, + { SENSORS_LM85_FAN3_AUTO_SPINUP, "fan3_auto_spinup", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(1), 1 }, + { SENSORS_LM85_FAN1_AUTO_MIN_PWM, "fan1_auto_min_pwm", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(2), 3 }, + { SENSORS_LM85_FAN2_AUTO_MIN_PWM, "fan2_auto_min_pwm", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(2), 3 }, + { SENSORS_LM85_FAN3_AUTO_MIN_PWM, "fan3_auto_min_pwm", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(2), 3 }, + { SENSORS_LM85_FAN1_AUTO_FREQ, "fan1_auto_freq", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(3), 0 }, + { SENSORS_LM85_FAN2_AUTO_FREQ, "fan2_auto_freq", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(3), 0 }, + { SENSORS_LM85_FAN3_AUTO_FREQ, "fan3_auto_freq", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(3), 0 }, + { SENSORS_LM85_FAN1_AUTO_INVERT, "fan1_auto_invert", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(4), 0 }, + { SENSORS_LM85_FAN2_AUTO_INVERT, "fan2_auto_invert", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(4), 0 }, + { SENSORS_LM85_FAN3_AUTO_INVERT, "fan3_auto_invert", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(4), 0 }, + { SENSORS_LM85_FAN1_AUTO_MIN_CTL, "fan1_auto_min_ctl", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, + { SENSORS_LM85_FAN2_AUTO_MIN_CTL, "fan2_auto_min_ctl", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(5), 0 }, + { SENSORS_LM85_FAN3_AUTO_MIN_CTL, "fan3_auto_min_ctl", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(5), 0 }, + { SENSORS_LM85_FAN1_AUTO_ZONE, "fan1_auto_zone", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_ZONE1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO_ZONE, "fan2_auto_zone", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_ZONE2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_AUTO_ZONE, "fan3_auto_zone", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_ZONE3, VALUE(1), 0 }, + { SENSORS_LM85_TEMP1_AUTO_MIN, "temp1_auto_min", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(1), 3 }, + { SENSORS_LM85_TEMP2_AUTO_MIN, "temp2_auto_min", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(1), 3 }, + { SENSORS_LM85_TEMP3_AUTO_MIN, "temp3_auto_min", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(1), 3 }, + { SENSORS_LM85_TEMP1_AUTO_OFF, "temp1_auto_off", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(2), 3 }, + { SENSORS_LM85_TEMP2_AUTO_OFF, "temp2_auto_off", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(2), 3 }, + { SENSORS_LM85_TEMP3_AUTO_OFF, "temp3_auto_off", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(2), 3 }, + { SENSORS_LM85_TEMP1_AUTO_MAX, "temp1_auto_max", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(3), 3 }, + { SENSORS_LM85_TEMP2_AUTO_MAX, "temp2_auto_max", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(3), 3 }, + { SENSORS_LM85_TEMP3_AUTO_MAX, "temp3_auto_max", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(3), 3 }, + { SENSORS_LM85_TEMP1_AUTO_CRITICAL, "temp1_auto_critical", + SENSORS_LM85_TEMP1, SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(5), 3 }, + { SENSORS_LM85_TEMP2_AUTO_CRITICAL, "temp2_auto_critical", + SENSORS_LM85_TEMP2, SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(4), 3 }, + { SENSORS_LM85_TEMP3_AUTO_CRITICAL, "temp3_auto_critical", + SENSORS_LM85_TEMP3, SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(4), 3 }, + { SENSORS_LM85_FAN1_AUTO_SPINUP_CTL, "fan1_auto_spinup_ctl", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_SPINUP_CTL, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO_SPINUP_CTL, "fan2_auto_spinup_ctl", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_SPINUP_CTL, VALUE(2), 0 }, + { SENSORS_LM85_FAN3_AUTO_SPINUP_CTL, "fan3_auto_spinup_ctl", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_SPINUP_CTL, VALUE(3), 0 }, + { SENSORS_LM85_FAN1_TACH_MODE, "fan1_tach_mode", SENSORS_LM85_FAN1, + SENSORS_LM85_FAN1, RW, + LM85_SYSCTL_TACH_MODE, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_TACH_MODE, "fan2_tach_mode", SENSORS_LM85_FAN2, + SENSORS_LM85_FAN2, RW, + LM85_SYSCTL_TACH_MODE, VALUE(2), 0 }, + { SENSORS_LM85_FAN3_TACH_MODE, "fan3_tach_mode", SENSORS_LM85_FAN3, + SENSORS_LM85_FAN3, RW, + LM85_SYSCTL_TACH_MODE, VALUE(3), 0 }, + { SENSORS_LM85_TEMP1_AUTO_SMOOTH, "temp1_auto_smooth", + SENSORS_LM85_TEMP1, SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_SMOOTH1, VALUE(1), 1 }, + { SENSORS_LM85_TEMP2_AUTO_SMOOTH, "temp2_auto_smooth", + SENSORS_LM85_TEMP2, SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_SMOOTH2, VALUE(1), 1 }, + { SENSORS_LM85_TEMP3_AUTO_SMOOTH, "temp3_auto_smooth", + SENSORS_LM85_TEMP3, SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_SMOOTH3, VALUE(1), 1 }, { 0 } }; /* NOTE: Many shared values with lm85_features !!! */ static sensors_chip_feature adm1027_features[] = - { - { SENSORS_LM85_IN0, "in0", NOMAP, NOMAP, + { + { SENSORS_LM85_IN0, "in0", NOMAP, NOMAP, R, LM85_SYSCTL_IN0, VALUE(3), 3 }, { SENSORS_LM85_IN1, "in1", NOMAP, NOMAP, R, LM85_SYSCTL_IN1, VALUE(3), 3 }, @@ -3394,213 +3399,556 @@ { SENSORS_LM85_IN4, "in4", NOMAP, NOMAP, R, LM85_SYSCTL_IN4, VALUE(3), 3 }, { SENSORS_LM85_IN0_MIN, "in0_min", SENSORS_LM85_IN0, SENSORS_LM85_IN0, - RW, LM85_SYSCTL_IN0, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN0, VALUE(1), 3 }, { SENSORS_LM85_IN1_MIN, "in1_min", SENSORS_LM85_IN1, SENSORS_LM85_IN1, - RW, LM85_SYSCTL_IN1, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN1, VALUE(1), 3 }, { SENSORS_LM85_IN2_MIN, "in2_min", SENSORS_LM85_IN2, SENSORS_LM85_IN2, - RW, LM85_SYSCTL_IN2, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN2, VALUE(1), 3 }, { SENSORS_LM85_IN3_MIN, "in3_min", SENSORS_LM85_IN3, SENSORS_LM85_IN3, - RW, LM85_SYSCTL_IN3, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN3, VALUE(1), 3 }, { SENSORS_LM85_IN4_MIN, "in4_min", SENSORS_LM85_IN4, SENSORS_LM85_IN4, - RW, LM85_SYSCTL_IN4, VALUE(1), 3 }, + RW, LM85_SYSCTL_IN4, VALUE(1), 3 }, { SENSORS_LM85_IN0_MAX, "in0_max", SENSORS_LM85_IN0, SENSORS_LM85_IN0, - RW, LM85_SYSCTL_IN0, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN0, VALUE(2), 3 }, { SENSORS_LM85_IN1_MAX, "in1_max", SENSORS_LM85_IN1, SENSORS_LM85_IN1, - RW, LM85_SYSCTL_IN1, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN1, VALUE(2), 3 }, { SENSORS_LM85_IN2_MAX, "in2_max", SENSORS_LM85_IN2, SENSORS_LM85_IN2, - RW, LM85_SYSCTL_IN2, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN2, VALUE(2), 3 }, { SENSORS_LM85_IN3_MAX, "in3_max", SENSORS_LM85_IN3, SENSORS_LM85_IN3, - RW, LM85_SYSCTL_IN3, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN3, VALUE(2), 3 }, { SENSORS_LM85_IN4_MAX, "in4_max", SENSORS_LM85_IN4, SENSORS_LM85_IN4, - RW, LM85_SYSCTL_IN4, VALUE(2), 3 }, + RW, LM85_SYSCTL_IN4, VALUE(2), 3 }, { SENSORS_LM85_FAN1, "fan1", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN1, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN1, VALUE(2), 0 }, { SENSORS_LM85_FAN2, "fan2", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN2, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN2, VALUE(2), 0 }, { SENSORS_LM85_FAN3, "fan3", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN3, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN3, VALUE(2), 0 }, { SENSORS_LM85_FAN4, "fan4", NOMAP, NOMAP, - R, LM85_SYSCTL_FAN4, VALUE(2), 0 }, + R, LM85_SYSCTL_FAN4, VALUE(2), 0 }, + { SENSORS_LM85_FAN1_PWM, "fan1_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN1, VALUE(3), 0 }, + { SENSORS_LM85_FAN2_PWM, "fan2_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN2, VALUE(3), 0 }, + { SENSORS_LM85_FAN3_PWM, "fan3_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN3, VALUE(3), 0 }, { SENSORS_LM85_FAN1_MIN, "fan1_min", SENSORS_LM85_FAN1, SENSORS_LM85_FAN1, - RW, LM85_SYSCTL_FAN1, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN1, VALUE(1), 0 }, { SENSORS_LM85_FAN2_MIN, "fan2_min", SENSORS_LM85_FAN2, SENSORS_LM85_FAN2, - RW, LM85_SYSCTL_FAN2, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN2, VALUE(1), 0 }, { SENSORS_LM85_FAN3_MIN, "fan3_min", SENSORS_LM85_FAN3, SENSORS_LM85_FAN3, - RW, LM85_SYSCTL_FAN3, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN3, VALUE(1), 0 }, { SENSORS_LM85_FAN4_MIN, "fan4_min", SENSORS_LM85_FAN4, SENSORS_LM85_FAN4, - RW, LM85_SYSCTL_FAN4, VALUE(1), 0 }, + RW, LM85_SYSCTL_FAN4, VALUE(1), 0 }, { SENSORS_LM85_TEMP1, "temp1", NOMAP, NOMAP, - R, LM85_SYSCTL_TEMP1, VALUE(3), 2 }, + R, LM85_SYSCTL_TEMP1, VALUE(3), 3 }, { SENSORS_LM85_TEMP2, "temp2", NOMAP, NOMAP, - R, LM85_SYSCTL_TEMP2, VALUE(3), 2 }, + R, LM85_SYSCTL_TEMP2, VALUE(3), 3 }, { SENSORS_LM85_TEMP3, "temp3", NOMAP, NOMAP, - R, LM85_SYSCTL_TEMP3, VALUE(3), 2 }, + R, LM85_SYSCTL_TEMP3, VALUE(3), 3 }, { SENSORS_LM85_TEMP1_MIN, "temp1_min", SENSORS_LM85_TEMP1, - SENSORS_LM85_TEMP1, RW, - LM85_SYSCTL_TEMP1, VALUE(1), 2 }, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_TEMP1, VALUE(1), 3 }, { SENSORS_LM85_TEMP2_MIN, "temp2_min", SENSORS_LM85_TEMP2, - SENSORS_LM85_TEMP2, RW, - LM85_SYSCTL_TEMP2, VALUE(1), 2 }, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_TEMP2, VALUE(1), 3 }, { SENSORS_LM85_TEMP3_MIN, "temp3_min", SENSORS_LM85_TEMP3, - SENSORS_LM85_TEMP3, RW, - LM85_SYSCTL_TEMP3, VALUE(1), 2 }, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_TEMP3, VALUE(1), 3 }, { SENSORS_LM85_TEMP1_MAX, "temp1_max", SENSORS_LM85_TEMP1, - SENSORS_LM85_TEMP1, RW, - LM85_SYSCTL_TEMP1, VALUE(2), 2 }, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_TEMP1, VALUE(2), 3 }, { SENSORS_LM85_TEMP2_MAX, "temp2_max", SENSORS_LM85_TEMP2, - SENSORS_LM85_TEMP2, RW, - LM85_SYSCTL_TEMP2, VALUE(2), 2 }, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_TEMP2, VALUE(2), 3 }, { SENSORS_LM85_TEMP3_MAX, "temp3_max", SENSORS_LM85_TEMP3, - SENSORS_LM85_TEMP3, RW, - LM85_SYSCTL_TEMP3, VALUE(2), 2 }, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_TEMP3, VALUE(2), 3 }, { SENSORS_LM85_VID, "vid", NOMAP, NOMAP, - R, LM85_SYSCTL_VID, VALUE(1), 3 }, + R, LM85_SYSCTL_VID, VALUE(1), 3 }, { SENSORS_LM85_VRM, "vrm", NOMAP, NOMAP, - RW, LM85_SYSCTL_VRM, VALUE(1), 1 }, - { SENSORS_LM85_ALARMS, "alarms", NOMAP, NOMAP, - R, LM85_SYSCTL_ALARMS, VALUE(1), 0 }, - { SENSORS_LM85_PWM1, "pwm1", NOMAP, NOMAP, - RW, LM85_SYSCTL_PWM1, VALUE(1), 0 }, - { SENSORS_LM85_PWM2, "pwm2", NOMAP, NOMAP, - RW, LM85_SYSCTL_PWM2, VALUE(1), 0 }, - { SENSORS_LM85_PWM3, "pwm3", NOMAP, NOMAP, - RW, LM85_SYSCTL_PWM3, VALUE(1), 0 }, - { SENSORS_LM85_PWM1_SPINUP, "pwm1_spinup", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(1), 1 }, - { SENSORS_LM85_PWM2_SPINUP, "pwm2_spinup", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(1), 1 }, - { SENSORS_LM85_PWM3_SPINUP, "pwm3_spinup", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(1), 1 }, - { SENSORS_LM85_PWM1_MIN, "pwm1_min", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(2), 1 }, - { SENSORS_LM85_PWM2_MIN, "pwm2_min", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(2), 1 }, - { SENSORS_LM85_PWM3_MIN, "pwm3_min", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(2), 1 }, - { SENSORS_LM85_PWM1_FREQ, "pwm1_freq", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(3), 1 }, - { SENSORS_LM85_PWM2_FREQ, "pwm2_freq", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(3), 1 }, - { SENSORS_LM85_PWM3_FREQ, "pwm3_freq", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(3), 1 }, - { SENSORS_LM85_PWM1_MIN_CTL, "pwm1_min_ctl", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(4), 1 }, - { SENSORS_LM85_PWM2_MIN_CTL, "pwm2_min_ctl", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(4), 1 }, - { SENSORS_LM85_PWM3_MIN_CTL, "pwm3_min_ctl", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(4), 1 }, - { SENSORS_LM85_PWM1_INVERT, "pwm1_invert", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, - { SENSORS_LM85_PWM2_INVERT, "pwm2_invert", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG2, VALUE(5), 0 }, - { SENSORS_LM85_PWM3_INVERT, "pwm3_invert", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_CFG3, VALUE(5), 0 }, - { SENSORS_LM85_PWM1_ZONE, "pwm1_zone", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_PWM_ZONE1, VALUE(1), 0 }, - { SENSORS_LM85_PWM2_ZONE, "pwm2_zone", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_PWM_ZONE2, VALUE(1), 0 }, - { SENSORS_LM85_PWM3_ZONE, "pwm3_zone", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_PWM_ZONE3, VALUE(1), 0 }, - { SENSORS_LM85_ZONE1_LIMIT, "zone1_limit", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(1), 1 }, - { SENSORS_LM85_ZONE2_LIMIT, "zone2_limit", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(1), 1 }, - { SENSORS_LM85_ZONE3_LIMIT, "zone3_limit", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(1), 1 }, - { SENSORS_LM85_ZONE1_HYST, "zone1_hyst", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(2), 1 }, - { SENSORS_LM85_ZONE2_HYST, "zone2_hyst", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(2), 1 }, - { SENSORS_LM85_ZONE3_HYST, "zone3_hyst", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(2), 1 }, - { SENSORS_LM85_ZONE1_RANGE, "zone1_range", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(3), 1 }, - { SENSORS_LM85_ZONE2_RANGE, "zone2_range", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(3), 1 }, - { SENSORS_LM85_ZONE3_RANGE, "zone3_range", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(3), 1 }, - { SENSORS_LM85_ZONE1_CRITICAL, "zone1_critical", SENSORS_LM85_TEMP1, - NOMAP, RW, - LM85_SYSCTL_ZONE1, VALUE(4), 1 }, - { SENSORS_LM85_ZONE2_CRITICAL, "zone2_critical", SENSORS_LM85_TEMP2, - NOMAP, RW, - LM85_SYSCTL_ZONE2, VALUE(4), 1 }, - { SENSORS_LM85_ZONE3_CRITICAL, "zone3_critical", SENSORS_LM85_TEMP3, - NOMAP, RW, - LM85_SYSCTL_ZONE3, VALUE(4), 1 }, - - { SENSORS_ADM1027_FAN1_TACH_MODE, "fan1_tach_mode", SENSORS_LM85_FAN1, - NOMAP, RW, - ADM1027_SYSCTL_TACH_MODE, VALUE(1), 0 }, - { SENSORS_ADM1027_FAN2_TACH_MODE, "fan2_tach_mode", SENSORS_LM85_FAN2, - NOMAP, RW, - ADM1027_SYSCTL_TACH_MODE, VALUE(2), 0 }, - { SENSORS_ADM1027_FAN3_TACH_MODE, "fan3_tach_mode", SENSORS_LM85_FAN3, - NOMAP, RW, - ADM1027_SYSCTL_TACH_MODE, VALUE(3), 0 }, - { SENSORS_ADM1027_FAN4_TACH_MODE, "fan4_tach_mode", SENSORS_LM85_FAN4, - NOMAP, RW, - ADM1027_SYSCTL_TACH_MODE, VALUE(4), 0 }, - { SENSORS_ADM1027_PWM1_SMOOTH, "pwm1_smooth", SENSORS_LM85_PWM1, - NOMAP, RW, - LM85_SYSCTL_SMOOTH1, VALUE(1), 1 }, - { SENSORS_ADM1027_PWM2_SMOOTH, "pwm2_smooth", SENSORS_LM85_PWM2, - NOMAP, RW, - LM85_SYSCTL_SMOOTH2, VALUE(1), 1 }, - { SENSORS_ADM1027_PWM3_SMOOTH, "pwm3_smooth", SENSORS_LM85_PWM3, - NOMAP, RW, - LM85_SYSCTL_SMOOTH3, VALUE(1), 1 }, + RW, LM85_SYSCTL_VRM, VALUE(1), 1 }, + { SENSORS_LM85_ALARMS, "alarms", NOMAP, NOMAP, + R, LM85_SYSCTL_ALARMS, VALUE(1), 0 }, + { SENSORS_LM85_FAN1_AUTO, "fan1_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO, "fan2_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_AUTO, "fan3_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM3, VALUE(1), 0 }, + { SENSORS_LM85_FAN1_AUTO_SPINUP, "fan1_auto_spinup", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(1), 1 }, + { SENSORS_LM85_FAN2_AUTO_SPINUP, "fan2_auto_spinup", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(1), 1 }, + { SENSORS_LM85_FAN3_AUTO_SPINUP, "fan3_auto_spinup", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(1), 1 }, + { SENSORS_LM85_FAN1_AUTO_MIN_PWM, "fan1_auto_min_pwm", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(2), 3 }, + { SENSORS_LM85_FAN2_AUTO_MIN_PWM, "fan2_auto_min_pwm", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(2), 3 }, + { SENSORS_LM85_FAN3_AUTO_MIN_PWM, "fan3_auto_min_pwm", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(2), 3 }, + { SENSORS_LM85_FAN1_AUTO_FREQ, "fan1_auto_freq", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(3), 0 }, + { SENSORS_LM85_FAN2_AUTO_FREQ, "fan2_auto_freq", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(3), 0 }, + { SENSORS_LM85_FAN3_AUTO_FREQ, "fan3_auto_freq", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(3), 0 }, + { SENSORS_LM85_FAN1_AUTO_INVERT, "fan1_auto_invert", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(4), 0 }, + { SENSORS_LM85_FAN2_AUTO_INVERT, "fan2_auto_invert", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(4), 0 }, + { SENSORS_LM85_FAN3_AUTO_INVERT, "fan3_auto_invert", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(4), 0 }, + { SENSORS_LM85_FAN1_AUTO_MIN_CTL, "fan1_auto_min_ctl", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, + { SENSORS_LM85_FAN2_AUTO_MIN_CTL, "fan2_auto_min_ctl", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(5), 0 }, + { SENSORS_LM85_FAN3_AUTO_MIN_CTL, "fan3_auto_min_ctl", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(5), 0 }, + { SENSORS_LM85_FAN1_AUTO_ZONE, "fan1_auto_zone", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_ZONE1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO_ZONE, "fan2_auto_zone", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_ZONE2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_AUTO_ZONE, "fan3_auto_zone", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_ZONE3, VALUE(1), 0 }, + { SENSORS_LM85_TEMP1_AUTO_MIN, "temp1_auto_min", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(1), 3 }, + { SENSORS_LM85_TEMP2_AUTO_MIN, "temp2_auto_min", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(1), 3 }, + { SENSORS_LM85_TEMP3_AUTO_MIN, "temp3_auto_min", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(1), 3 }, + { SENSORS_LM85_TEMP1_AUTO_OFF, "temp1_auto_off", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(2), 3 }, + { SENSORS_LM85_TEMP2_AUTO_OFF, "temp2_auto_off", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(2), 3 }, + { SENSORS_LM85_TEMP3_AUTO_OFF, "temp3_auto_off", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(2), 3 }, + { SENSORS_LM85_TEMP1_AUTO_MAX, "temp1_auto_max", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(3), 3 }, + { SENSORS_LM85_TEMP2_AUTO_MAX, "temp2_auto_max", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(3), 3 }, + { SENSORS_LM85_TEMP3_AUTO_MAX, "temp3_auto_max", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(3), 3 }, + { SENSORS_LM85_TEMP1_AUTO_CRITICAL, "temp1_auto_critical", + SENSORS_LM85_TEMP1, SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(5), 3 }, + { SENSORS_LM85_TEMP2_AUTO_CRITICAL, "temp2_auto_critical", + SENSORS_LM85_TEMP2, SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(4), 3 }, + { SENSORS_LM85_TEMP3_AUTO_CRITICAL, "temp3_auto_critical", + SENSORS_LM85_TEMP3, SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(4), 3 }, + { SENSORS_ADM1027_FAN_AUTO_SPINUP_CTL, "fan_auto_spinup_ctl", + NOMAP, NOMAP, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, + { SENSORS_ADM1027_FAN1_TACH_MODE, "fan1_tach_mode", SENSORS_LM85_FAN1, + SENSORS_LM85_FAN1, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(1), 0 }, + { SENSORS_ADM1027_FAN2_TACH_MODE, "fan2_tach_mode", SENSORS_LM85_FAN2, + SENSORS_LM85_FAN2, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(2), 0 }, + { SENSORS_ADM1027_FAN3_TACH_MODE, "fan3_tach_mode", SENSORS_LM85_FAN3, + SENSORS_LM85_FAN3, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(3), 0 }, + { SENSORS_ADM1027_FAN4_TACH_MODE, "fan4_tach_mode", SENSORS_LM85_FAN4, + SENSORS_LM85_FAN4, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(4), 0 }, + { SENSORS_LM85_TEMP1_AUTO_SMOOTH, "fan1_auto_smooth", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_SMOOTH1, VALUE(1), 1 }, + { SENSORS_LM85_TEMP2_AUTO_SMOOTH, "fan2_auto_smooth", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_SMOOTH2, VALUE(1), 1 }, + { SENSORS_LM85_TEMP3_AUTO_SMOOTH, "fan3_auto_smooth", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_SMOOTH3, VALUE(1), 1 }, { SENSORS_ADM1027_TEMP1_OFFSET, "temp1_offset", SENSORS_LM85_TEMP1, - SENSORS_LM85_TEMP1, RW, - ADM1027_SYSCTL_TEMP_OFFSET1, VALUE(1), 2 }, + SENSORS_LM85_TEMP1, RW, + ADM1027_SYSCTL_TEMP_OFFSET1, VALUE(1), 3 }, { SENSORS_ADM1027_TEMP2_OFFSET, "temp2_offset", SENSORS_LM85_TEMP2, - SENSORS_LM85_TEMP2, RW, - ADM1027_SYSCTL_TEMP_OFFSET2, VALUE(1), 2 }, + SENSORS_LM85_TEMP2, RW, + ADM1027_SYSCTL_TEMP_OFFSET2, VALUE(1), 3 }, { SENSORS_ADM1027_TEMP3_OFFSET, "temp3_offset", SENSORS_LM85_TEMP3, - SENSORS_LM85_TEMP3, RW, - ADM1027_SYSCTL_TEMP_OFFSET3, VALUE(1), 2 }, - { SENSORS_ADM1027_FAN1_PPR, "fan1_ppr", SENSORS_LM85_FAN1, - NOMAP, RW, - ADM1027_SYSCTL_FAN_PPR, VALUE(1), 0 }, - { SENSORS_ADM1027_FAN2_PPR, "fan2_ppr", SENSORS_LM85_FAN2, - NOMAP, RW, - ADM1027_SYSCTL_FAN_PPR, VALUE(2), 0 }, + SENSORS_LM85_TEMP3, RW, + ADM1027_SYSCTL_TEMP_OFFSET3, VALUE(1), 3 }, + { SENSORS_ADM1027_FAN1_PPR, "fan1_ppr", SENSORS_LM85_FAN1, + SENSORS_LM85_FAN1, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(1), 0 }, + { SENSORS_ADM1027_FAN2_PPR, "fan2_ppr", SENSORS_LM85_FAN2, + SENSORS_LM85_FAN2, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(2), 0 }, { SENSORS_ADM1027_FAN3_PPR, "fan3_ppr", SENSORS_LM85_FAN3, - NOMAP, RW, - ADM1027_SYSCTL_FAN_PPR, VALUE(3), 0 }, + SENSORS_LM85_FAN3, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(3), 0 }, { SENSORS_ADM1027_FAN4_PPR, "fan4_ppr", SENSORS_LM85_FAN4, - NOMAP, RW, - ADM1027_SYSCTL_FAN_PPR, VALUE(4), 0 }, - { SENSORS_ADM1027_ALARM_MASK, "alarm_mask", NOMAP, - NOMAP, RW, - ADM1027_SYSCTL_ALARM_MASK, VALUE(1), 0 }, + SENSORS_LM85_FAN4, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(4), 0 }, + { SENSORS_ADM1027_ALARM_MASK_2500MV, "alarm_mask_2500mv", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(1), 0 }, + { SENSORS_ADM1027_ALARM_MASK_VCCP, "alarm_mask_vccp", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(2), 0 }, + { SENSORS_ADM1027_ALARM_MASK_VCCP, "alarm_mask_vcc", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(3), 0 }, + { SENSORS_ADM1027_ALARM_MASK_5000MV, "alarm_mask_5000mv", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(4), 0 }, + { SENSORS_ADM1027_ALARM_MASK_TEMP1, "alarm_mask_temp1", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(5), 0 }, + { SENSORS_ADM1027_ALARM_MASK_TEMP2, "alarm_mask_temp2", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(6), 0 }, + { SENSORS_ADM1027_ALARM_MASK_TEMP3, "alarm_mask_temp3", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(7), 0 }, + { SENSORS_ADM1027_ALARM_MASK_12000MV, "alarm_mask_12000mv", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(8), 0 }, + { SENSORS_ADM1027_ALARM_MASK_THERM, "alarm_mask_therm", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(9), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN1, "alarm_mask_fan1", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(10), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN2, "alarm_mask_fan2", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(11), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN3, "alarm_mask_fan3", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(12), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN4, "alarm_mask_fan4", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(13), 0 }, + { SENSORS_ADM1027_ALARM_MASK_REMOTE1_ELEC, "alarm_mask_remote1_elec", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(14), 0 }, + { SENSORS_ADM1027_ALARM_MASK_REMOTE2_ELEC, "alarm_mask_remote2_elec", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(15), 0 }, + { 0 } + }; + +/* NOTE: Many shared values with lm85_features and adm1027_features !!! */ +static sensors_chip_feature adt7463_features[] = + { + { SENSORS_LM85_IN0, "in0", NOMAP, NOMAP, + R, LM85_SYSCTL_IN0, VALUE(3), 3 }, + { SENSORS_LM85_IN1, "in1", NOMAP, NOMAP, + R, LM85_SYSCTL_IN1, VALUE(3), 3 }, + { SENSORS_LM85_IN2, "in2", NOMAP, NOMAP, + R, LM85_SYSCTL_IN2, VALUE(3), 3 }, + { SENSORS_LM85_IN3, "in3", NOMAP, NOMAP, + R, LM85_SYSCTL_IN3, VALUE(3), 3 }, + { SENSORS_LM85_IN4, "in4", NOMAP, NOMAP, + R, LM85_SYSCTL_IN4, VALUE(3), 3 }, + { SENSORS_LM85_IN0_MIN, "in0_min", SENSORS_LM85_IN0, SENSORS_LM85_IN0, + RW, LM85_SYSCTL_IN0, VALUE(1), 3 }, + { SENSORS_LM85_IN1_MIN, "in1_min", SENSORS_LM85_IN1, SENSORS_LM85_IN1, + RW, LM85_SYSCTL_IN1, VALUE(1), 3 }, + { SENSORS_LM85_IN2_MIN, "in2_min", SENSORS_LM85_IN2, SENSORS_LM85_IN2, + RW, LM85_SYSCTL_IN2, VALUE(1), 3 }, + { SENSORS_LM85_IN3_MIN, "in3_min", SENSORS_LM85_IN3, SENSORS_LM85_IN3, + RW, LM85_SYSCTL_IN3, VALUE(1), 3 }, + { SENSORS_LM85_IN4_MIN, "in4_min", SENSORS_LM85_IN4, SENSORS_LM85_IN4, + RW, LM85_SYSCTL_IN4, VALUE(1), 3 }, + { SENSORS_LM85_IN0_MAX, "in0_max", SENSORS_LM85_IN0, SENSORS_LM85_IN0, + RW, LM85_SYSCTL_IN0, VALUE(2), 3 }, + { SENSORS_LM85_IN1_MAX, "in1_max", SENSORS_LM85_IN1, SENSORS_LM85_IN1, + RW, LM85_SYSCTL_IN1, VALUE(2), 3 }, + { SENSORS_LM85_IN2_MAX, "in2_max", SENSORS_LM85_IN2, SENSORS_LM85_IN2, + RW, LM85_SYSCTL_IN2, VALUE(2), 3 }, + { SENSORS_LM85_IN3_MAX, "in3_max", SENSORS_LM85_IN3, SENSORS_LM85_IN3, + RW, LM85_SYSCTL_IN3, VALUE(2), 3 }, + { SENSORS_LM85_IN4_MAX, "in4_max", SENSORS_LM85_IN4, SENSORS_LM85_IN4, + RW, LM85_SYSCTL_IN4, VALUE(2), 3 }, + { SENSORS_LM85_FAN1, "fan1", NOMAP, NOMAP, + R, LM85_SYSCTL_FAN1, VALUE(2), 0 }, + { SENSORS_LM85_FAN2, "fan2", NOMAP, NOMAP, + R, LM85_SYSCTL_FAN2, VALUE(2), 0 }, + { SENSORS_LM85_FAN3, "fan3", NOMAP, NOMAP, + R, LM85_SYSCTL_FAN3, VALUE(2), 0 }, + { SENSORS_LM85_FAN4, "fan4", NOMAP, NOMAP, + R, LM85_SYSCTL_FAN4, VALUE(2), 0 }, + { SENSORS_LM85_FAN1_PWM, "fan1_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN1, VALUE(3), 0 }, + { SENSORS_LM85_FAN2_PWM, "fan2_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN2, VALUE(3), 0 }, + { SENSORS_LM85_FAN3_PWM, "fan3_pwm", NOMAP, NOMAP, + RW, LM85_SYSCTL_FAN3, VALUE(3), 0 }, + { SENSORS_LM85_FAN1_MIN, "fan1_min", SENSORS_LM85_FAN1, SENSORS_LM85_FAN1, + RW, LM85_SYSCTL_FAN1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_MIN, "fan2_min", SENSORS_LM85_FAN2, SENSORS_LM85_FAN2, + RW, LM85_SYSCTL_FAN2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_MIN, "fan3_min", SENSORS_LM85_FAN3, SENSORS_LM85_FAN3, + RW, LM85_SYSCTL_FAN3, VALUE(1), 0 }, + { SENSORS_LM85_FAN4_MIN, "fan4_min", SENSORS_LM85_FAN4, SENSORS_LM85_FAN4, + RW, LM85_SYSCTL_FAN4, VALUE(1), 0 }, + { SENSORS_LM85_TEMP1, "temp1", NOMAP, NOMAP, + R, LM85_SYSCTL_TEMP1, VALUE(3), 3 }, + { SENSORS_LM85_TEMP2, "temp2", NOMAP, NOMAP, + R, LM85_SYSCTL_TEMP2, VALUE(3), 3 }, + { SENSORS_LM85_TEMP3, "temp3", NOMAP, NOMAP, + R, LM85_SYSCTL_TEMP3, VALUE(3), 3 }, + { SENSORS_LM85_TEMP1_MIN, "temp1_min", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_TEMP1, VALUE(1), 3 }, + { SENSORS_LM85_TEMP2_MIN, "temp2_min", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_TEMP2, VALUE(1), 3 }, + { SENSORS_LM85_TEMP3_MIN, "temp3_min", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_TEMP3, VALUE(1), 3 }, + { SENSORS_LM85_TEMP1_MAX, "temp1_max", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_TEMP1, VALUE(2), 3 }, + { SENSORS_LM85_TEMP2_MAX, "temp2_max", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_TEMP2, VALUE(2), 3 }, + { SENSORS_LM85_TEMP3_MAX, "temp3_max", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_TEMP3, VALUE(2), 3 }, + { SENSORS_LM85_VID, "vid", NOMAP, NOMAP, + R, LM85_SYSCTL_VID, VALUE(1), 3 }, + { SENSORS_LM85_VRM, "vrm", NOMAP, NOMAP, + RW, LM85_SYSCTL_VRM, VALUE(1), 1 }, + { SENSORS_LM85_ALARMS, "alarms", NOMAP, NOMAP, + R, LM85_SYSCTL_ALARMS, VALUE(1), 0 }, + { SENSORS_LM85_FAN1_AUTO, "fan1_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO, "fan2_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_AUTO, "fan3_auto", NOMAP, NOMAP, + R, LM85_SYSCTL_PWM3, VALUE(1), 0 }, + { SENSORS_LM85_FAN1_AUTO_SPINUP, "fan1_auto_spinup", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(1), 1 }, + { SENSORS_LM85_FAN2_AUTO_SPINUP, "fan2_auto_spinup", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(1), 1 }, + { SENSORS_LM85_FAN3_AUTO_SPINUP, "fan3_auto_spinup", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(1), 1 }, + { SENSORS_LM85_FAN1_AUTO_MIN_PWM, "fan1_auto_min_pwm", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(2), 3 }, + { SENSORS_LM85_FAN2_AUTO_MIN_PWM, "fan2_auto_min_pwm", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(2), 3 }, + { SENSORS_LM85_FAN3_AUTO_MIN_PWM, "fan3_auto_min_pwm", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(2), 3 }, + { SENSORS_LM85_FAN1_AUTO_FREQ, "fan1_auto_freq", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(3), 0 }, + { SENSORS_LM85_FAN2_AUTO_FREQ, "fan2_auto_freq", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(3), 0 }, + { SENSORS_LM85_FAN3_AUTO_FREQ, "fan3_auto_freq", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(3), 0 }, + { SENSORS_LM85_FAN1_AUTO_INVERT, "fan1_auto_invert", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(4), 0 }, + { SENSORS_LM85_FAN2_AUTO_INVERT, "fan2_auto_invert", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(4), 0 }, + { SENSORS_LM85_FAN3_AUTO_INVERT, "fan3_auto_invert", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(4), 0 }, + { SENSORS_LM85_FAN1_AUTO_MIN_CTL, "fan1_auto_min_ctl", + SENSORS_LM85_FAN1_AUTO, SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, + { SENSORS_LM85_FAN2_AUTO_MIN_CTL, "fan2_auto_min_ctl", + SENSORS_LM85_FAN2_AUTO, SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_CFG2, VALUE(5), 0 }, + { SENSORS_LM85_FAN3_AUTO_MIN_CTL, "fan3_auto_min_ctl", + SENSORS_LM85_FAN3_AUTO, SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_CFG3, VALUE(5), 0 }, + { SENSORS_LM85_FAN1_AUTO_ZONE, "fan1_auto_zone", SENSORS_LM85_FAN1_AUTO, + SENSORS_LM85_FAN1_AUTO, RW, + LM85_SYSCTL_PWM_ZONE1, VALUE(1), 0 }, + { SENSORS_LM85_FAN2_AUTO_ZONE, "fan2_auto_zone", SENSORS_LM85_FAN2_AUTO, + SENSORS_LM85_FAN2_AUTO, RW, + LM85_SYSCTL_PWM_ZONE2, VALUE(1), 0 }, + { SENSORS_LM85_FAN3_AUTO_ZONE, "fan3_auto_zone", SENSORS_LM85_FAN3_AUTO, + SENSORS_LM85_FAN3_AUTO, RW, + LM85_SYSCTL_PWM_ZONE3, VALUE(1), 0 }, + { SENSORS_LM85_TEMP1_AUTO_MIN, "temp1_auto_min", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(1), 3 }, + { SENSORS_LM85_TEMP2_AUTO_MIN, "temp2_auto_min", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(1), 3 }, + { SENSORS_LM85_TEMP3_AUTO_MIN, "temp3_auto_min", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(1), 3 }, + { SENSORS_LM85_TEMP1_AUTO_OFF, "temp1_auto_off", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(2), 3 }, + { SENSORS_LM85_TEMP2_AUTO_OFF, "temp2_auto_off", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(2), 3 }, + { SENSORS_LM85_TEMP3_AUTO_OFF, "temp3_auto_off", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(2), 3 }, + { SENSORS_LM85_TEMP1_AUTO_MAX, "temp1_auto_max", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(3), 3 }, + { SENSORS_LM85_TEMP2_AUTO_MAX, "temp2_auto_max", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(3), 3 }, + { SENSORS_LM85_TEMP3_AUTO_MAX, "temp3_auto_max", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(3), 3 }, + { SENSORS_LM85_TEMP1_AUTO_CRITICAL, "temp1_auto_critical", + SENSORS_LM85_TEMP1, SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_ZONE1, VALUE(5), 3 }, + { SENSORS_LM85_TEMP2_AUTO_CRITICAL, "temp2_auto_critical", + SENSORS_LM85_TEMP2, SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_ZONE2, VALUE(4), 3 }, + { SENSORS_LM85_TEMP3_AUTO_CRITICAL, "temp3_auto_critical", + SENSORS_LM85_TEMP3, SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_ZONE3, VALUE(4), 3 }, + { SENSORS_ADM1027_FAN_AUTO_SPINUP_CTL, "fan_auto_spinup_ctl", + NOMAP, NOMAP, RW, + LM85_SYSCTL_PWM_CFG1, VALUE(5), 0 }, + { SENSORS_ADM1027_FAN1_TACH_MODE, "fan1_tach_mode", SENSORS_LM85_FAN1, + SENSORS_LM85_FAN1, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(1), 0 }, + { SENSORS_ADM1027_FAN2_TACH_MODE, "fan2_tach_mode", SENSORS_LM85_FAN2, + SENSORS_LM85_FAN2, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(2), 0 }, + { SENSORS_ADM1027_FAN3_TACH_MODE, "fan3_tach_mode", SENSORS_LM85_FAN3, + SENSORS_LM85_FAN3, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(3), 0 }, + { SENSORS_ADM1027_FAN4_TACH_MODE, "fan4_tach_mode", SENSORS_LM85_FAN4, + SENSORS_LM85_FAN4, RW, + ADM1027_SYSCTL_TACH_MODE, VALUE(4), 0 }, + { SENSORS_LM85_TEMP1_AUTO_SMOOTH, "temp1_auto_smooth", + SENSORS_LM85_TEMP1, SENSORS_LM85_TEMP1, RW, + LM85_SYSCTL_SMOOTH1, VALUE(1), 1 }, + { SENSORS_LM85_TEMP2_AUTO_SMOOTH, "temp2_auto_smooth", + SENSORS_LM85_TEMP2, SENSORS_LM85_TEMP2, RW, + LM85_SYSCTL_SMOOTH2, VALUE(1), 1 }, + { SENSORS_LM85_TEMP3_AUTO_SMOOTH, "temp3_auto_smooth", + SENSORS_LM85_TEMP3, SENSORS_LM85_TEMP3, RW, + LM85_SYSCTL_SMOOTH3, VALUE(1), 1 }, + { SENSORS_ADM1027_TEMP1_OFFSET, "temp1_offset", SENSORS_LM85_TEMP1, + SENSORS_LM85_TEMP1, RW, + ADM1027_SYSCTL_TEMP_OFFSET1, VALUE(1), 3 }, + { SENSORS_ADM1027_TEMP2_OFFSET, "temp2_offset", SENSORS_LM85_TEMP2, + SENSORS_LM85_TEMP2, RW, + ADM1027_SYSCTL_TEMP_OFFSET2, VALUE(1), 3 }, + { SENSORS_ADM1027_TEMP3_OFFSET, "temp3_offset", SENSORS_LM85_TEMP3, + SENSORS_LM85_TEMP3, RW, + ADM1027_SYSCTL_TEMP_OFFSET3, VALUE(1), 3 }, + { SENSORS_ADM1027_FAN1_PPR, "fan1_ppr", SENSORS_LM85_FAN1, + SENSORS_LM85_FAN1, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(1), 0 }, + { SENSORS_ADM1027_FAN2_PPR, "fan2_ppr", SENSORS_LM85_FAN2, + SENSORS_LM85_FAN2, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(2), 0 }, + { SENSORS_ADM1027_FAN3_PPR, "fan3_ppr", SENSORS_LM85_FAN3, + SENSORS_LM85_FAN3, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(3), 0 }, + { SENSORS_ADM1027_FAN4_PPR, "fan4_ppr", SENSORS_LM85_FAN4, + SENSORS_LM85_FAN4, RW, ADM1027_SYSCTL_FAN_PPR, + VALUE(4), 0 }, + { SENSORS_ADM1027_ALARM_MASK_2500MV, "alarm_mask_2500mv", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(1), 0 }, + { SENSORS_ADM1027_ALARM_MASK_VCCP, "alarm_mask_vccp", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(2), 0 }, + { SENSORS_ADM1027_ALARM_MASK_VCCP, "alarm_mask_vcc", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(3), 0 }, + { SENSORS_ADM1027_ALARM_MASK_5000MV, "alarm_mask_5000mv", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(4), 0 }, + { SENSORS_ADM1027_ALARM_MASK_TEMP1, "alarm_mask_temp1", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(5), 0 }, + { SENSORS_ADM1027_ALARM_MASK_TEMP2, "alarm_mask_temp2", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(6), 0 }, + { SENSORS_ADM1027_ALARM_MASK_TEMP3, "alarm_mask_temp3", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(7), 0 }, + { SENSORS_ADM1027_ALARM_MASK_12000MV, "alarm_mask_12000mv", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(8), 0 }, + { SENSORS_ADM1027_ALARM_MASK_THERM, "alarm_mask_therm", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(9), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN1, "alarm_mask_fan1", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(10), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN2, "alarm_mask_fan2", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(11), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN3, "alarm_mask_fan3", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(12), 0 }, + { SENSORS_ADM1027_ALARM_MASK_FAN4, "alarm_mask_fan4", SENSORS_LM85_ALARMS, + SENSORS_LM85_ALARMS, RW, ADM1027_SYSCTL_ALARM_MASK, + VALUE(13), 0 }, + { SENSORS_ADM1027_ALARM_MASK_REMOTE1_ELEC, "alarm_mask_remote1_elec", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(14), 0 }, + { SENSORS_ADM1027_ALARM_MASK_REMOTE2_ELEC, "alarm_mask_remote2_elec", + SENSORS_LM85_ALARMS, SENSORS_LM85_ALARMS, RW, + ADM1027_SYSCTL_ALARM_MASK, VALUE(15), 0 }, + { SENSORS_ADT7463_THERM_TOTAL, "therm_total", NOMAP, NOMAP, RW, + ADT7463_SYSCTL_THERM_SIGNAL, VALUE(1), 3 }, + { SENSORS_ADT7463_THERM_LIMIT, "therm_limit", NOMAP, NOMAP, RW, + ADT7463_SYSCTL_THERM_SIGNAL, VALUE(1), 3 }, + { SENSORS_ADT7463_TEMP1_AUTO_DYNAMIC_TMIN_CTL,"temp1_auto_dynamic_tmin_ctl", + NOMAP, NOMAP, RW, ADT7463_SYSCTL_TMIN_CTL1, + VALUE(1), 0 }, + { SENSORS_ADT7463_TEMP2_AUTO_DYNAMIC_TMIN_CTL,"temp2_auto_dynamic_tmin_ctl", + NOMAP, NOMAP, RW, ADT7463_SYSCTL_TMIN_CTL2, + VALUE(1), 0 }, + { SENSORS_ADT7463_TEMP3_AUTO_DYNAMIC_TMIN_CTL,"temp3_auto_dynamic_tmin_ctl", + NOMAP, NOMAP, RW, ADT7463_SYSCTL_TMIN_CTL3, + VALUE(1), 0 }, + { SENSORS_ADT7463_TEMP1_AUTO_OPPOINT, "temp1_auto_oppoint", NOMAP, + NOMAP, RW, ADT7463_SYSCTL_TMIN_CTL1, VALUE(1), 3 }, + { SENSORS_ADT7463_TEMP2_AUTO_OPPOINT, "temp2_auto_oppoint", NOMAP, + NOMAP, RW, ADT7463_SYSCTL_TMIN_CTL2, VALUE(1), 3 }, + { SENSORS_ADT7463_TEMP3_AUTO_OPPOINT, "temp3_auto_oppoint", NOMAP, + NOMAP, RW, ADT7463_SYSCTL_TMIN_CTL3, VALUE(1), 3 }, { 0 } }; @@ -5277,7 +5625,7 @@ { SENSORS_LM85C_PREFIX, lm85_features }, { SENSORS_EMC6D100_PREFIX, lm85_features }, { SENSORS_ADM1027_PREFIX, adm1027_features }, - { SENSORS_ADT7463_PREFIX, adm1027_features }, + { SENSORS_ADT7463_PREFIX, adt7463_features }, { SENSORS_LM83_PREFIX, lm83_features }, { SENSORS_LM90_PREFIX, lm90_features }, { SENSORS_ADM1032_PREFIX, lm90_features },