Skip to contentSkip to conversation

drivers/peci: Add a PECI adapter driver for Aspeed AST24xx/AST25xx

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

Subsystems (2)

v5 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 6/13 drivers/peci: Add a PECI adapter driver for Aspeed AST24xx/AST25xx

This commit adds PECI adapter driver implementation for Aspeed AST24xx/AST25xx SoCs.

---
 drivers/peci/Kconfig       |  27 ++
 drivers/peci/Makefile      |   3 +
 drivers/peci/peci-aspeed.c | 498 +++++++++++++++++++++++++++++++++++++
 3 files changed, 528 insertions(+)
 create mode 100644 drivers/peci/peci-aspeed.c
drivers/peci/Kconfig +27 -0
index c39f7730d081..273a10eab1ce 100644
@@ -11,3 +11,30 @@ config PECI
 	  interface that provides a communication channel between Intel
 	  processors and chipset components to external monitoring or control
 	  devices.
+
+	  If you want PECI support, you should say Y here and also to the
+	  specific driver for your bus adapter(s) below.
+
+if PECI
+
+#
+# PECI hardware bus configuration
+#
+
+menu "PECI Hardware Bus support"
+
+config PECI_ASPEED
+	tristate "ASPEED PECI support"
+	select REGMAP_MMIO
+	depends on OF
+	depends on ARCH_ASPEED || COMPILE_TEST
+	help
+	  Say Y here if you want support for the Platform Environment Control
+	  Interface (PECI) bus adapter driver on the ASPEED SoCs.
+
+	  This support is also available as a module.  If so, the module
+	  will be called peci-aspeed.
+
+endmenu
+
+endif # PECI
drivers/peci/Makefile +3 -0
index 9e8615e0d3ff..886285e69765 100644
@@ -4,3 +4,6 @@
 
 # Core functionality
 obj-$(CONFIG_PECI)		+= peci-core.o
+
+# Hardware specific bus drivers
+obj-$(CONFIG_PECI_ASPEED)	+= peci-aspeed.o
drivers/peci/peci-aspeed.c new file +498 -0

498 lines not on this page · raw message

Signature · 1 line
2.17.0