Skip to contentSkip to conversation

drivers/peci: Add support for PECI bus driver core

PATCH In review Jae Hyun Yoo 1 participant 1 message May 21, 2018 PECI

lore
Share & tools
lore
#0 lore raw

PATCH v4 3/11 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            |   17 +
 drivers/peci/Makefile           |    6 +
 drivers/peci/peci-core.c        | 1451 +++++++++++++++++++++++++++++++
 include/linux/peci.h            |  105 +++
 include/uapi/linux/peci-ioctl.h |  265 ++++++
 7 files changed, 1847 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 +17 -0
new file mode 100644
index 000000000000..1fbc13f9e6c2
@@ -0,0 +1,17 @@
+#
+# Platform Environment Control Interface (PECI) subsystem configuration
+#
+
+menu "PECI support"
+
+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.
+
+endmenu
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 +1451 -0

1,451 lines not on this page · raw message

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

105 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