Skip to contentSkip to conversation

hwmon: PMBus device driver

PATCH Superseded Guenter Roeck 2 participants 3 messages Jan 28, 2011 Hardware monitoring

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/5 hwmon: PMBus device driver

This driver adds support for hardware monitoring features of various PMBus devices.

---
 drivers/hwmon/Kconfig      |   25 +
 drivers/hwmon/Makefile     |    4 +
 drivers/hwmon/pmbus.c      |  234 +++++++
 drivers/hwmon/pmbus.h      |  307 +++++++++
 drivers/hwmon/pmbus_core.c | 1611 ++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/pmbus.h  |   45 ++
 6 files changed, 2226 insertions(+), 0 deletions(-)
 create mode 100644 drivers/hwmon/pmbus.c
 create mode 100644 drivers/hwmon/pmbus.h
 create mode 100644 drivers/hwmon/pmbus_core.c
 create mode 100644 include/linux/i2c/pmbus.h
drivers/hwmon/Kconfig +25 -0
index 773e484..7c36091 100644
@@ -734,6 +734,31 @@ config SENSORS_PCF8591
 	  These devices are hard to detect and rarely found on mainstream
 	  hardware.  If unsure, say N.
 
+config PMBUS
+	tristate "PMBus support"
+	depends on I2C && EXPERIMENTAL
+	default n
+	help
+	  If you say yes here to enable PMBus support.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called pmbus_core.
+
+if PMBUS
+
+config SENSORS_PMBUS
+	tristate "Generic PMBus devices"
+	default n
+	help
+	  If you say yes here you get hardware monitoring support for generic
+	  PMBus devices, including but not limited to BMR450, BMR451, BMR453,
+	  BMR454, and LTC2978.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called pmbus.
+
+endif # PMBUS
+
 config SENSORS_SHT15
 	tristate "Sensiron humidity and temperature sensors. SHT15 and compat."
 	depends on GENERIC_GPIO
drivers/hwmon/Makefile +4 -0
index dde02d9..f7f158b 100644
@@ -112,6 +112,10 @@ obj-$(CONFIG_SENSORS_W83L786NG)	+= w83l786ng.o
 obj-$(CONFIG_SENSORS_WM831X)	+= wm831x-hwmon.o
 obj-$(CONFIG_SENSORS_WM8350)	+= wm8350-hwmon.o
 
+# PMBus drivers
+obj-$(CONFIG_PMBUS)		+= pmbus_core.o
+obj-$(CONFIG_SENSORS_PMBUS)	+= pmbus.o
+
 ifeq ($(CONFIG_HWMON_DEBUG_CHIP),y)
 EXTRA_CFLAGS += -DDEBUG
 endif
drivers/hwmon/pmbus.c new file +234 -0

234 lines not on this page · raw message

drivers/hwmon/pmbus.h new file +307 -0

307 lines not on this page · raw message

drivers/hwmon/pmbus_core.c new file +1607 -0

1,607 lines not on this page · raw message

include/linux/i2c/pmbus.h new file +45 -0

45 lines not on this page · raw message

Signature · 7 lines
1.7.3.1


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 22 lines · On Thu, 27 Jan 2011 18:36:28 -0800 Guenter Roeck wrote:

This driver adds support for hardware monitoring features of various PMBus devices.

---
 drivers/hwmon/Kconfig      |   25 +
 drivers/hwmon/Makefile     |    4 +
 drivers/hwmon/pmbus.c      |  234 +++++++
 drivers/hwmon/pmbus.h      |  307 +++++++++
 drivers/hwmon/pmbus_core.c | 1611 ++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/pmbus.h  |   45 ++
 6 files changed, 2226 insertions(+), 0 deletions(-)
 create mode 100644 drivers/hwmon/pmbus.c
 create mode 100644 drivers/hwmon/pmbus.h
 create mode 100644 drivers/hwmon/pmbus_core.c
 create mode 100644 include/linux/i2c/pmbus.h
drivers/hwmon/Kconfig +0 -0
index 773e484..7c36091 100644

drivers/hwmon/Kconfig config SENSORS_PCF8591 · line 742

Quoted 9 lines
drivers/hwmon/Kconfig +6 -0
@@ -734,6 +734,31 @@ config SENSORS_PCF8591
 	  These devices are hard to detect and rarely found on mainstream
 	  hardware.  If unsure, say N.
 
+config PMBUS
+	tristate "PMBus support"
+	depends on I2C && EXPERIMENTAL
+	default n
+	help
+	  If you say yes here to enable PMBus support.

Say Yes here if you want to enable PMBus support.

Quoted 12 lines
drivers/hwmon/Kconfig +12 -0
+
+	  This driver can also be built as a module. If so, the module will
+	  be called pmbus_core.
+
+if PMBUS
+
+config SENSORS_PMBUS
+	tristate "Generic PMBus devices"
+	default n
+	help
+	  If you say yes here you get hardware monitoring support for generic
+	  PMBus devices, including but not limited to BMR450, BMR451, BMR453,

drivers/hwmon/Kconfig config SENSORS_PCF8591 · line 764

Quoted 10 lines
drivers/hwmon/Kconfig +7 -0
+	  BMR454, and LTC2978.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called pmbus.
+
+endif # PMBUS
+
 config SENSORS_SHT15
 	tristate "Sensiron humidity and temperature sensors. SHT15 and compat."
 	depends on GENERIC_GPIO

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Guenter Roeck
Quoted 27 lines · Randy Dunlap
Quoted 25 lines · On Thu, 27 Jan 2011 18:36:28 -0800 Guenter Roeck wrote:

This driver adds support for hardware monitoring features of various PMBus devices.

---
 drivers/hwmon/Kconfig      |   25 +
 drivers/hwmon/Makefile     |    4 +
 drivers/hwmon/pmbus.c      |  234 +++++++
 drivers/hwmon/pmbus.h      |  307 +++++++++
 drivers/hwmon/pmbus_core.c | 1611 ++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/pmbus.h  |   45 ++
 6 files changed, 2226 insertions(+), 0 deletions(-)
 create mode 100644 drivers/hwmon/pmbus.c
 create mode 100644 drivers/hwmon/pmbus.h
 create mode 100644 drivers/hwmon/pmbus_core.c
 create mode 100644 include/linux/i2c/pmbus.h
drivers/hwmon/Kconfig +0 -0
index 773e484..7c36091 100644
@@ -734,6 +734,31 @@ config SENSORS_PCF8591
 	  These devices are hard to detect and rarely found on mainstream
 	  hardware.  If unsure, say N.
 
Quoted 8 lines

drivers/hwmon/Kconfig config SENSORS_PCF8591 · line 742

Quoted 6 lines
drivers/hwmon/Kconfig +6 -0
+config PMBUS
+	tristate "PMBus support"
+	depends on I2C && EXPERIMENTAL
+	default n
+	help
+	  If you say yes here to enable PMBus support.

Say Yes here if you want to enable PMBus support.

Oops ... fixed, thanks.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors