Skip to contentSkip to conversation

drivers/peci: Add support for PECI bus driver core

PATCH Superseded Jae Hyun Yoo 1 participant 1 message Jun 1, 2018 PECI

v5 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 3/13 drivers/peci: Add support for PECI bus driver core

This commit adds driver implementation for PECI bus core into linux driver framework.

Cc Alan Cox <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Fengguang Wu <[email protected]>
Cc Greg KH <[email protected]>
Cc Jason M Biils <[email protected]>
Cc Julia Cartwright <[email protected]>
---
 drivers/Kconfig                 |    2 +
 drivers/Makefile                |    1 +
 drivers/peci/Kconfig            |   13 +
 drivers/peci/Makefile           |    6 +
 drivers/peci/peci-core.c        | 1439 +++++++++++++++++++++++++++++++
 include/linux/peci.h            |  104 +++
 include/uapi/linux/peci-ioctl.h |  265 ++++++
 7 files changed, 1830 insertions(+)
 create mode 100644 drivers/peci/Kconfig
 create mode 100644 drivers/peci/Makefile
 create mode 100644 drivers/peci/peci-core.c
 create mode 100644 include/linux/peci.h
 create mode 100644 include/uapi/linux/peci-ioctl.h
drivers/Kconfig +2 -0
index 95b9ccc08165..8c44d9738377 100644
@@ -217,4 +217,6 @@ source "drivers/siox/Kconfig"
 
 source "drivers/slimbus/Kconfig"
 
+source "drivers/peci/Kconfig"
+
 endmenu
drivers/Makefile +1 -0
index 24cd47014657..250fe3d0fa7e 100644
@@ -185,3 +185,4 @@ obj-$(CONFIG_TEE)		+= tee/
 obj-$(CONFIG_MULTIPLEXER)	+= mux/
 obj-$(CONFIG_UNISYS_VISORBUS)	+= visorbus/
 obj-$(CONFIG_SIOX)		+= siox/
+obj-$(CONFIG_PECI)		+= peci/
drivers/peci/Kconfig new file +13 -0
new file mode 100644
index 000000000000..c39f7730d081
@@ -0,0 +1,13 @@
+#
+# Platform Environment Control Interface (PECI) subsystem configuration
+#
+
+config PECI
+	bool "PECI support"
+	select RT_MUTEXES
+	select CRC8
+	help
+	  The Platform Environment Control Interface (PECI) is a one-wire bus
+	  interface that provides a communication channel between Intel
+	  processors and chipset components to external monitoring or control
+	  devices.
drivers/peci/Makefile new file +6 -0
new file mode 100644
index 000000000000..9e8615e0d3ff
@@ -0,0 +1,6 @@
+#
+# Makefile for the PECI core and bus drivers.
+#
+
+# Core functionality
+obj-$(CONFIG_PECI)		+= peci-core.o
drivers/peci/peci-core.c new file +1439 -0

1,439 lines not on this page · raw message

include/linux/peci.h new file +104 -0

104 lines not on this page · raw message

include/uapi/linux/peci-ioctl.h new file +265 -0

265 lines not on this page · raw message

Signature · 1 line
2.17.0