[PATCH linux dev-4.10 0/3] drivers: hwmon: Add OCC driver

Eddie James eajames at linux.vnet.ibm.com
Sat May 27 03:46:30 AEST 2017

From: "Edward A. James" <eajames at us.ibm.com>

This series adds a hwmon driver for the POWER9 OCC (haven't tested for P8 yet).
The driver obtains the OCC poll response and exports all the sensor data as
hwmon attributes. This driver is intended to operate on a service processor.

For the POWER9 application, the driver communicates with the OCC from a service
processor using the SBE engine. The low-level transfer protocol details,
however, are contained in the OCC "fifo" driver, in order to arbitrate accesses
from different users on the service processor.

Edward A. James (3):
  drivers: hwmon: Add P9 OCC driver
  drivers: hwmon: OCC: Add common functionality and SBE access
  drivers: hwmon: OCC: Add P9 sensors, hwmon attributes, and device

 drivers/hwmon/Kconfig      |   2 +
 drivers/hwmon/Makefile     |   1 +
 drivers/hwmon/occ/Kconfig  |  24 ++++
 drivers/hwmon/occ/Makefile |   7 +
 drivers/hwmon/occ/common.c | 110 ++++++++++++++
 drivers/hwmon/occ/common.h | 124 ++++++++++++++++
 drivers/hwmon/occ/p9.c     | 350 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/hwmon/occ/p9.h     |  17 +++
 drivers/hwmon/occ/p9_sbe.c | 195 +++++++++++++++++++++++++
 9 files changed, 830 insertions(+)
 create mode 100644 drivers/hwmon/occ/Kconfig
 create mode 100644 drivers/hwmon/occ/Makefile
 create mode 100644 drivers/hwmon/occ/common.c
 create mode 100644 drivers/hwmon/occ/common.h
 create mode 100644 drivers/hwmon/occ/p9.c
 create mode 100644 drivers/hwmon/occ/p9.h
 create mode 100644 drivers/hwmon/occ/p9_sbe.c


More information about the openbmc mailing list