Commit 3f08d7f49f8365d5c9050522ee733951a503e955
1 parent
c24c407e96
Exists in
master
and in
16 other branches
hwmon: (pmbus/ltc2978): Add support for LTC2978A
Detect LTC2978A chip ID. Treat it as LC2978. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Showing 2 changed files with 5 additions and 2 deletions Side-by-side Diff
Documentation/hwmon/ltc2978
... | ... | @@ -10,10 +10,11 @@ |
10 | 10 | Prefix: 'ltc2977' |
11 | 11 | Addresses scanned: - |
12 | 12 | Datasheet: http://www.linear.com/product/ltc2977 |
13 | - * Linear Technology LTC2978 | |
13 | + * Linear Technology LTC2978, LTC2978A | |
14 | 14 | Prefix: 'ltc2978' |
15 | 15 | Addresses scanned: - |
16 | 16 | Datasheet: http://www.linear.com/product/ltc2978 |
17 | + http://www.linear.com/product/ltc2978a | |
17 | 18 | * Linear Technology LTC3880 |
18 | 19 | Prefix: 'ltc3880' |
19 | 20 | Addresses scanned: - |
drivers/hwmon/pmbus/ltc2978.c
... | ... | @@ -57,6 +57,7 @@ |
57 | 57 | #define LTC2977_ID 0x0130 |
58 | 58 | #define LTC2978_ID_REV1 0x0121 |
59 | 59 | #define LTC2978_ID_REV2 0x0122 |
60 | +#define LTC2978A_ID 0x0124 | |
60 | 61 | #define LTC3880_ID 0x4000 |
61 | 62 | #define LTC3880_ID_MASK 0xff00 |
62 | 63 | #define LTC3883_ID 0x4300 |
... | ... | @@ -397,7 +398,8 @@ |
397 | 398 | data->id = ltc2974; |
398 | 399 | } else if (chip_id == LTC2977_ID) { |
399 | 400 | data->id = ltc2977; |
400 | - } else if (chip_id == LTC2978_ID_REV1 || chip_id == LTC2978_ID_REV2) { | |
401 | + } else if (chip_id == LTC2978_ID_REV1 || chip_id == LTC2978_ID_REV2 || | |
402 | + chip_id == LTC2978A_ID) { | |
401 | 403 | data->id = ltc2978; |
402 | 404 | } else if ((chip_id & LTC3880_ID_MASK) == LTC3880_ID) { |
403 | 405 | data->id = ltc3880; |