diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-07-05 13:45:43 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-08-09 13:44:26 -0700 |
commit | 48065a138acb8435c60739ffa62622d69f61b712 (patch) | |
tree | a7e14d346206b4484ab4baa2a9e5eeab6a65e0b2 /drivers/hwmon/pmbus | |
parent | 9048539b7cd6ca99e03e6d9745779473349426f7 (diff) | |
download | linux-stable-48065a138acb8435c60739ffa62622d69f61b712.tar.gz linux-stable-48065a138acb8435c60739ffa62622d69f61b712.tar.bz2 linux-stable-48065a138acb8435c60739ffa62622d69f61b712.zip |
hwmon: (pmbus) Add support for lowest power value attributes
Add support for powerX_input_lowest for both input and output power.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus')
-rw-r--r-- | drivers/hwmon/pmbus/pmbus.h | 50 | ||||
-rw-r--r-- | drivers/hwmon/pmbus/pmbus_core.c | 8 |
2 files changed, 34 insertions, 24 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h index 58262b54f09f..2427f6e7c641 100644 --- a/drivers/hwmon/pmbus/pmbus.h +++ b/drivers/hwmon/pmbus/pmbus.h @@ -162,30 +162,32 @@ #define PMBUS_VIRT_READ_IIN_MAX (PMBUS_VIRT_BASE + 10) #define PMBUS_VIRT_RESET_IIN_HISTORY (PMBUS_VIRT_BASE + 11) #define PMBUS_VIRT_READ_PIN_AVG (PMBUS_VIRT_BASE + 12) -#define PMBUS_VIRT_READ_PIN_MAX (PMBUS_VIRT_BASE + 13) -#define PMBUS_VIRT_RESET_PIN_HISTORY (PMBUS_VIRT_BASE + 14) -#define PMBUS_VIRT_READ_POUT_AVG (PMBUS_VIRT_BASE + 15) -#define PMBUS_VIRT_READ_POUT_MAX (PMBUS_VIRT_BASE + 16) -#define PMBUS_VIRT_RESET_POUT_HISTORY (PMBUS_VIRT_BASE + 17) -#define PMBUS_VIRT_READ_VOUT_AVG (PMBUS_VIRT_BASE + 18) -#define PMBUS_VIRT_READ_VOUT_MIN (PMBUS_VIRT_BASE + 19) -#define PMBUS_VIRT_READ_VOUT_MAX (PMBUS_VIRT_BASE + 20) -#define PMBUS_VIRT_RESET_VOUT_HISTORY (PMBUS_VIRT_BASE + 21) -#define PMBUS_VIRT_READ_IOUT_AVG (PMBUS_VIRT_BASE + 22) -#define PMBUS_VIRT_READ_IOUT_MIN (PMBUS_VIRT_BASE + 23) -#define PMBUS_VIRT_READ_IOUT_MAX (PMBUS_VIRT_BASE + 24) -#define PMBUS_VIRT_RESET_IOUT_HISTORY (PMBUS_VIRT_BASE + 25) -#define PMBUS_VIRT_READ_TEMP2_AVG (PMBUS_VIRT_BASE + 26) -#define PMBUS_VIRT_READ_TEMP2_MIN (PMBUS_VIRT_BASE + 27) -#define PMBUS_VIRT_READ_TEMP2_MAX (PMBUS_VIRT_BASE + 28) -#define PMBUS_VIRT_RESET_TEMP2_HISTORY (PMBUS_VIRT_BASE + 29) - -#define PMBUS_VIRT_READ_VMON (PMBUS_VIRT_BASE + 30) -#define PMBUS_VIRT_VMON_UV_WARN_LIMIT (PMBUS_VIRT_BASE + 31) -#define PMBUS_VIRT_VMON_OV_WARN_LIMIT (PMBUS_VIRT_BASE + 32) -#define PMBUS_VIRT_VMON_UV_FAULT_LIMIT (PMBUS_VIRT_BASE + 33) -#define PMBUS_VIRT_VMON_OV_FAULT_LIMIT (PMBUS_VIRT_BASE + 34) -#define PMBUS_VIRT_STATUS_VMON (PMBUS_VIRT_BASE + 35) +#define PMBUS_VIRT_READ_PIN_MIN (PMBUS_VIRT_BASE + 13) +#define PMBUS_VIRT_READ_PIN_MAX (PMBUS_VIRT_BASE + 14) +#define PMBUS_VIRT_RESET_PIN_HISTORY (PMBUS_VIRT_BASE + 15) +#define PMBUS_VIRT_READ_POUT_AVG (PMBUS_VIRT_BASE + 16) +#define PMBUS_VIRT_READ_POUT_MIN (PMBUS_VIRT_BASE + 17) +#define PMBUS_VIRT_READ_POUT_MAX (PMBUS_VIRT_BASE + 18) +#define PMBUS_VIRT_RESET_POUT_HISTORY (PMBUS_VIRT_BASE + 19) +#define PMBUS_VIRT_READ_VOUT_AVG (PMBUS_VIRT_BASE + 20) +#define PMBUS_VIRT_READ_VOUT_MIN (PMBUS_VIRT_BASE + 21) +#define PMBUS_VIRT_READ_VOUT_MAX (PMBUS_VIRT_BASE + 22) +#define PMBUS_VIRT_RESET_VOUT_HISTORY (PMBUS_VIRT_BASE + 23) +#define PMBUS_VIRT_READ_IOUT_AVG (PMBUS_VIRT_BASE + 24) +#define PMBUS_VIRT_READ_IOUT_MIN (PMBUS_VIRT_BASE + 25) +#define PMBUS_VIRT_READ_IOUT_MAX (PMBUS_VIRT_BASE + 26) +#define PMBUS_VIRT_RESET_IOUT_HISTORY (PMBUS_VIRT_BASE + 27) +#define PMBUS_VIRT_READ_TEMP2_AVG (PMBUS_VIRT_BASE + 28) +#define PMBUS_VIRT_READ_TEMP2_MIN (PMBUS_VIRT_BASE + 29) +#define PMBUS_VIRT_READ_TEMP2_MAX (PMBUS_VIRT_BASE + 30) +#define PMBUS_VIRT_RESET_TEMP2_HISTORY (PMBUS_VIRT_BASE + 31) + +#define PMBUS_VIRT_READ_VMON (PMBUS_VIRT_BASE + 32) +#define PMBUS_VIRT_VMON_UV_WARN_LIMIT (PMBUS_VIRT_BASE + 33) +#define PMBUS_VIRT_VMON_OV_WARN_LIMIT (PMBUS_VIRT_BASE + 34) +#define PMBUS_VIRT_VMON_UV_FAULT_LIMIT (PMBUS_VIRT_BASE + 35) +#define PMBUS_VIRT_VMON_OV_FAULT_LIMIT (PMBUS_VIRT_BASE + 36) +#define PMBUS_VIRT_STATUS_VMON (PMBUS_VIRT_BASE + 37) /* * OPERATION diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index 12d85b178358..306a1b175557 100644 --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -1329,6 +1329,10 @@ static const struct pmbus_limit_attr pin_limit_attrs[] = { .update = true, .attr = "average", }, { + .reg = PMBUS_VIRT_READ_PIN_MIN, + .update = true, + .attr = "input_lowest", + }, { .reg = PMBUS_VIRT_READ_PIN_MAX, .update = true, .attr = "input_highest", @@ -1359,6 +1363,10 @@ static const struct pmbus_limit_attr pout_limit_attrs[] = { .update = true, .attr = "average", }, { + .reg = PMBUS_VIRT_READ_POUT_MIN, + .update = true, + .attr = "input_lowest", + }, { .reg = PMBUS_VIRT_READ_POUT_MAX, .update = true, .attr = "input_highest", |