From: Jim Wright <wrightj@linux.ibm.com>
To: linux@roeck-us.net, linux-hwmon@vger.kernel.org, joel@jms.id.au,
openbmc@lists.ozlabs.org
Cc: Jim Wright <wrightj@linux.ibm.com>
Subject: [PATCH] hwmon: (ucd9000) Add voltage monitor types
Date: Tue, 7 Jun 2022 15:53:06 -0500 [thread overview]
Message-ID: <20220607205306.145636-1-wrightj@linux.ibm.com> (raw)
The UCD90240 and UCD90320 devices support monitor types "Input Voltage",
"Voltage With AVS", and "Input Voltage With AVS", add support to driver
to recognize these types as voltage monitors.
Signed-off-by: Jim Wright <wrightj@linux.ibm.com>
---
drivers/hwmon/pmbus/ucd9000.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c
index 75fc770c9e40..28cc214d4d6b 100644
--- a/drivers/hwmon/pmbus/ucd9000.c
+++ b/drivers/hwmon/pmbus/ucd9000.c
@@ -45,6 +45,9 @@ enum chips { ucd9000, ucd90120, ucd90124, ucd90160, ucd90320, ucd9090,
#define UCD9000_MON_TEMPERATURE 2
#define UCD9000_MON_CURRENT 3
#define UCD9000_MON_VOLTAGE_HW 4
+#define UCD9000_MON_INPUT_VOLTAGE 5
+#define UCD9000_MON_VOLTAGE_AVS 6
+#define UCD9000_MON_INPUT_VOLTAGE_AVS 7
#define UCD9000_NUM_FAN 4
@@ -566,6 +569,9 @@ static int ucd9000_probe(struct i2c_client *client)
switch (UCD9000_MON_TYPE(block_buffer[i])) {
case UCD9000_MON_VOLTAGE:
case UCD9000_MON_VOLTAGE_HW:
+ case UCD9000_MON_INPUT_VOLTAGE:
+ case UCD9000_MON_VOLTAGE_AVS:
+ case UCD9000_MON_INPUT_VOLTAGE_AVS:
info->func[page] |= PMBUS_HAVE_VOUT
| PMBUS_HAVE_STATUS_VOUT;
break;
--
2.32.0
next reply other threads:[~2022-06-08 1:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-07 20:53 Jim Wright [this message]
2022-06-08 1:13 ` [PATCH] hwmon: (ucd9000) Add voltage monitor types Guenter Roeck
2022-06-08 1:26 ` Jim Wright
2022-06-08 20:34 ` Jim Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220607205306.145636-1-wrightj@linux.ibm.com \
--to=wrightj@linux.ibm.com \
--cc=joel@jms.id.au \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.