Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH v2 1/2] hwmon: (pmbus) Add ON_OFF_CONFIG register bits
@ 2023-07-27  9:13 Naresh Solanki
  2023-07-27  9:13 ` [PATCH v2 2/2] hwmon: (pmbus/tda38640) Add workaround for bug in SVID mode Naresh Solanki
  0 siblings, 1 reply; 7+ messages in thread
From: Naresh Solanki @ 2023-07-27  9:13 UTC (permalink / raw)
  To: Guenter Roeck, Jean Delvare, krzysztof.kozlowski+dt
  Cc: linux-hwmon, Patrick Rudolph, Naresh Solanki, linux-kernel

From: Patrick Rudolph <patrick.rudolph@9elements.com>

Add bits found in the ON_OFF_CONFIG register.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
---
 drivers/hwmon/pmbus/pmbus.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h
index b0832a4c690d..7a28bac7f171 100644
--- a/drivers/hwmon/pmbus/pmbus.h
+++ b/drivers/hwmon/pmbus/pmbus.h
@@ -243,6 +243,15 @@ enum pmbus_regs {
  */
 #define PB_OPERATION_CONTROL_ON		BIT(7)
 
+/*
+ * ON_OFF_CONFIG
+ */
+#define PB_ON_OFF_CONFIG_POWERUP_CONTROL	BIT(4)
+#define PB_ON_OFF_CONFIG_OPERATION_REQ		BIT(3)
+#define PB_ON_OFF_CONFIG_EN_PIN_REQ		BIT(2)
+#define PB_ON_OFF_CONFIG_POLARITY_HIGH		BIT(1)
+#define PB_ON_OFF_CONFIG_TURN_OFF_FAST		BIT(0)
+
 /*
  * WRITE_PROTECT
  */

base-commit: 60a6aa5742fa499a918b66d80c9baabef56c3adc
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-01 19:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27  9:13 [PATCH v2 1/2] hwmon: (pmbus) Add ON_OFF_CONFIG register bits Naresh Solanki
2023-07-27  9:13 ` [PATCH v2 2/2] hwmon: (pmbus/tda38640) Add workaround for bug in SVID mode Naresh Solanki
2023-07-27 17:16   ` Guenter Roeck
2023-08-01 12:34     ` Naresh Solanki
2023-08-01 14:34       ` Guenter Roeck
2023-08-01 18:46         ` Naresh Solanki
2023-08-01 19:34           ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox