Skip to content

Commit 5da556e

Browse files
jwrdegoedeJean Delvare
authored andcommitted
hwmon: (f71882fg) Add support for the F71869A
The F71869A is almost the same as the F71869F/E, except that it has the normal number of temp and pwm zones for a F71882FG derived chip, rather then the limited number of the F71869F/E. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Max Baldwin <archerseven@gmail.com> Acked-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
1 parent 7958e3b commit 5da556e

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

‎Documentation/hwmon/f71882fg‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Supported chips:
2222
Prefix: 'f71869'
2323
Addresses scanned: none, address read from Super I/O config space
2424
Datasheet: Available from the Fintek website
25+
* Fintek F71869A
26+
Prefix: 'f71869a'
27+
Addresses scanned: none, address read from Super I/O config space
28+
Datasheet: Not public
2529
* Fintek F71882FG and F71883FG
2630
Prefix: 'f71882fg'
2731
Addresses scanned: none, address read from Super I/O config space

‎drivers/hwmon/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ config SENSORS_F71882FG
333333
F71858FG
334334
F71862FG
335335
F71863FG
336-
F71869F/E
336+
F71869F/E/A
337337
F71882FG
338338
F71883FG
339339
F71889FG/ED/A

‎drivers/hwmon/f71882fg.c‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#define SIO_F71858_ID 0x0507 /* Chipset ID */
5353
#define SIO_F71862_ID 0x0601 /* Chipset ID */
5454
#define SIO_F71869_ID 0x0814 /* Chipset ID */
55+
#define SIO_F71869A_ID 0x1007 /* Chipset ID */
5556
#define SIO_F71882_ID 0x0541 /* Chipset ID */
5657
#define SIO_F71889_ID 0x0723 /* Chipset ID */
5758
#define SIO_F71889E_ID 0x0909 /* Chipset ID */
@@ -108,15 +109,16 @@ static unsigned short force_id;
108109
module_param(force_id, ushort, 0);
109110
MODULE_PARM_DESC(force_id, "Override the detected device ID");
110111

111-
enum chips { f71808e, f71808a, f71858fg, f71862fg, f71869, f71882fg, f71889fg,
112-
f71889ed, f71889a, f8000, f81865f };
112+
enum chips { f71808e, f71808a, f71858fg, f71862fg, f71869, f71869a, f71882fg,
113+
f71889fg, f71889ed, f71889a, f8000, f81865f };
113114

114115
static const char *f71882fg_names[] = {
115116
"f71808e",
116117
"f71808a",
117118
"f71858fg",
118119
"f71862fg",
119120
"f71869", /* Both f71869f and f71869e, reg. compatible and same id */
121+
"f71869a",
120122
"f71882fg",
121123
"f71889fg", /* f81801u too, same id */
122124
"f71889ed",
@@ -131,6 +133,7 @@ static const char f71882fg_has_in[][F71882FG_MAX_INS] = {
131133
[f71858fg] = { 1, 1, 1, 0, 0, 0, 0, 0, 0 },
132134
[f71862fg] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 },
133135
[f71869] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 },
136+
[f71869a] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 },
134137
[f71882fg] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 },
135138
[f71889fg] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 },
136139
[f71889ed] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 },
@@ -145,6 +148,7 @@ static const char f71882fg_has_in1_alarm[] = {
145148
[f71858fg] = 0,
146149
[f71862fg] = 0,
147150
[f71869] = 0,
151+
[f71869a] = 0,
148152
[f71882fg] = 1,
149153
[f71889fg] = 1,
150154
[f71889ed] = 1,
@@ -159,6 +163,7 @@ static const char f71882fg_fan_has_beep[] = {
159163
[f71858fg] = 0,
160164
[f71862fg] = 1,
161165
[f71869] = 1,
166+
[f71869a] = 1,
162167
[f71882fg] = 1,
163168
[f71889fg] = 1,
164169
[f71889ed] = 1,
@@ -173,6 +178,7 @@ static const char f71882fg_nr_fans[] = {
173178
[f71858fg] = 3,
174179
[f71862fg] = 3,
175180
[f71869] = 3,
181+
[f71869a] = 3,
176182
[f71882fg] = 4,
177183
[f71889fg] = 3,
178184
[f71889ed] = 3,
@@ -187,6 +193,7 @@ static const char f71882fg_temp_has_beep[] = {
187193
[f71858fg] = 0,
188194
[f71862fg] = 1,
189195
[f71869] = 1,
196+
[f71869a] = 1,
190197
[f71882fg] = 1,
191198
[f71889fg] = 1,
192199
[f71889ed] = 1,
@@ -201,6 +208,7 @@ static const char f71882fg_nr_temps[] = {
201208
[f71858fg] = 3,
202209
[f71862fg] = 3,
203210
[f71869] = 3,
211+
[f71869a] = 3,
204212
[f71882fg] = 3,
205213
[f71889fg] = 3,
206214
[f71889ed] = 3,
@@ -2243,6 +2251,7 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)
22432251
case f71808e:
22442252
case f71808a:
22452253
case f71869:
2254+
case f71869a:
22462255
/* These always have signed auto point temps */
22472256
data->auto_point_temp_signed = 1;
22482257
/* Fall through to select correct fan/pwm reg bank! */
@@ -2305,6 +2314,7 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)
23052314
case f71808e:
23062315
case f71808a:
23072316
case f71869:
2317+
case f71869a:
23082318
case f71889fg:
23092319
case f71889ed:
23102320
case f71889a:
@@ -2528,6 +2538,9 @@ static int __init f71882fg_find(int sioaddr, unsigned short *address,
25282538
case SIO_F71869_ID:
25292539
sio_data->type = f71869;
25302540
break;
2541+
case SIO_F71869A_ID:
2542+
sio_data->type = f71869a;
2543+
break;
25312544
case SIO_F71882_ID:
25322545
sio_data->type = f71882fg;
25332546
break;

0 commit comments

Comments
 (0)