drivers/peci: Add support for PECI bus driver core
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.
Signed-off-by Jae Hyun Yoo <[email protected]>
Signed-off-by Fengguang Wu <[email protected]>
Reviewed-by Haiyue Wang <[email protected]>
Reviewed-by James Feist <[email protected]>
Reviewed-by Vernon Mauery <[email protected]>
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
@@ -217,4 +217,6 @@ source "drivers/siox/Kconfig" source "drivers/slimbus/Kconfig" +source "drivers/peci/Kconfig" + endmenu
drivers/Makefile +1 -0
@@ -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
@@ -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
@@ -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