Commit d4977c08 authored by Vadim Pasternak's avatar Vadim Pasternak Committed by Guenter Roeck

hwmon: (pmbus) Add support for Intel VID protocol VR13

The below lists of VOUT_MODE command readout with their related VID
protocols, Digital to Analog Converter steps:
- VR13.0 mode, 10-mV DAC - 0x24
- VR13.0 mode, 5-mV DAC - 0x27
Signed-off-by: default avatarVadim Pasternak <vadimp@mellanox.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent caf59a5b
...@@ -341,7 +341,7 @@ enum pmbus_sensor_classes { ...@@ -341,7 +341,7 @@ enum pmbus_sensor_classes {
#define PMBUS_HAVE_STATUS_VMON BIT(19) #define PMBUS_HAVE_STATUS_VMON BIT(19)
enum pmbus_data_format { linear = 0, direct, vid }; enum pmbus_data_format { linear = 0, direct, vid };
enum vrm_version { vr11 = 0, vr12 }; enum vrm_version { vr11 = 0, vr12, vr13 };
struct pmbus_driver_info { struct pmbus_driver_info {
int pages; /* Total number of pages */ int pages; /* Total number of pages */
......
...@@ -557,6 +557,10 @@ static long pmbus_reg2data_vid(struct pmbus_data *data, ...@@ -557,6 +557,10 @@ static long pmbus_reg2data_vid(struct pmbus_data *data,
if (val >= 0x01) if (val >= 0x01)
rv = 250 + (val - 1) * 5; rv = 250 + (val - 1) * 5;
break; break;
case vr13:
if (val >= 0x01)
rv = 500 + (val - 1) * 10;
break;
} }
return rv; return rv;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment