Skip to contentSkip to conversation

hwmon/f71882fg: Add support for f71869f

PATCH In review Hans de Goede 1 participant 1 message Mar 9, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 9/10 hwmon/f71882fg: Add support for f71869f

Note that these 2 are register compatible and report the same superio id, but they are 2 distinct chips / models!

---
 Documentation/hwmon/f71882fg |    4 ++
 drivers/hwmon/f71882fg.c     |  120 ++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 119 insertions(+), 5 deletions(-)
Documentation/hwmon/f71882fg +4 -0
index 9aa210c..4d0bc70 100644
@@ -10,6 +10,10 @@ Supported chips:
     Prefix: 'f71862fg'
     Addresses scanned: none, address read from Super I/O config space
     Datasheet: Available from the Fintek website
+  * Fintek F71869F and F71869E
+    Prefix: 'f71869'
+    Addresses scanned: none, address read from Super I/O config space
+    Datasheet: Available from the Fintek website
   * Fintek F71882FG and F71883FG
     Prefix: 'f71882fg'
     Addresses scanned: none, address read from Super I/O config space
drivers/hwmon/f71882fg.c +90 -5

147 lines not on this page · raw message

(nr, point));
}
} else {
+ if (data->type = f71869) {
+ data->pwm_auto_point_pwm[nr][0] + f71882fg_read8(data,
+ F71882FG_REG_POINT_PWM
+ (nr, 0));
+ }
data->pwm_auto_point_pwm[nr][1] f71882fg_read8(data,
F71882FG_REG_POINT_PWM
@@ -2029,6 +2120,10 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)

if (start_reg & 0x02) {
switch (data->type) {
+ case f71869:
+ /* The f71869 always has signed auto point temps */
+ data->auto_point_temp_signed = 1;
+ /* Fall through to select correct fan/pwm reg bank! */
case f71889fg:
case f71889ed:
reg = f71882fg_read8(data, F71882FG_REG_FAN_FAULT_T);
@@ -2056,6 +2151,7 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)
case f71862fg:
err = (data->pwm_enable & 0x15) != 0x15;
break;
+ case f71869:
case f71882fg:
case f71889fg:
case f71889ed:
@@ -2086,6 +2182,7 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)
}

switch (data->type) {
+ case f71869:
case f71889fg:
case f71889ed:
for (i = 0; i < nr_fans; i++) {
@@ -2114,6 +2211,11 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)
f71862fg_auto_pwm_attr, ARRAY_SIZE(f71862fg_auto_pwm_attr));
break;
+ case f71869:
+ err = f71882fg_create_sysfs_files(pdev,
+ f71869_auto_pwm_attr,
+ ARRAY_SIZE(f71869_auto_pwm_attr));
+ break;
case f8000:
err = f71882fg_create_sysfs_files(pdev,
f8000_fan_attr,
@@ -2225,6 +2327,11 @@ static int f71882fg_remove(struct platform_device *pdev)
f71862fg_auto_pwm_attr, ARRAY_SIZE(f71862fg_auto_pwm_attr));
break;
+ case f71869:
+ f71882fg_remove_sysfs_files(pdev,
+ f71869_auto_pwm_attr,
+ ARRAY_SIZE(f71869_auto_pwm_attr));
+ break;
case f8000:
f71882fg_remove_sysfs_files(pdev,
f8000_fan_attr,
@@ -2268,6 +2375,9 @@ static int __init f71882fg_find(int sioaddr, unsigned short *address,
case SIO_F71862_ID:
sio_data->type = f71862fg;
break;
+ case SIO_F71869_ID:
+ sio_data->type = f71869;
+ break;
case SIO_F71882_ID:
sio_data->type = f71882fg;
break;

Signature · 7 lines
1.7.3.2


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors