[coreboot-gerrit] Change in coreboot[master]: google/chromeec: Add support for I2C and SPI devices

Duncan Laurie (Code Review) gerrit at coreboot.org
Wed Apr 26 17:39:48 CEST 2017


Duncan Laurie has uploaded a new change for review. ( https://review.coreboot.org/19464 )

Change subject: google/chromeec: Add support for I2C and SPI devices
......................................................................

google/chromeec: Add support for I2C and SPI devices

These ACPI devices will support I2C and SPI based devices that use
the Chrome EC message protocol.

BUG=b:35585386,b:35648259
TEST=Enable both EC I2C and EC SPI devices for Eve and verify they
are present in the dissasembled DSDT after booting into the kernel.

Change-Id: Iedb2beb5ab96f1632855ac2ca344be68cc892d45
Signed-off-by: Duncan Laurie <dlaurie at chromium.org>
---
M src/ec/google/chromeec/acpi/cros_ec.asl
1 file changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/19464/1

diff --git a/src/ec/google/chromeec/acpi/cros_ec.asl b/src/ec/google/chromeec/acpi/cros_ec.asl
index 7f3afea..d691599 100644
--- a/src/ec/google/chromeec/acpi/cros_ec.asl
+++ b/src/ec/google/chromeec/acpi/cros_ec.asl
@@ -27,4 +27,22 @@
 		Name (_DDN, "EC MKBP Device")
 	}
 #endif
+
+#ifdef EC_ENABLE_I2C_DEVICE
+	Device (CI2C)
+	{
+		Name (_HID, "GOOG0008")
+		Name (_UID, 1)
+		Name (_DDN, "EC I2C Device")
+	}
+#endif
+
+#ifdef EC_ENABLE_SPI_DEVICE
+	Device (CSPI)
+	{
+		Name (_HID, "GOOG0009")
+		Name (_UID, 1)
+		Name (_DDN, "EC SPI Device")
+	}
+#endif
 }

-- 
To view, visit https://review.coreboot.org/19464
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iedb2beb5ab96f1632855ac2ca344be68cc892d45
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Duncan Laurie <dlaurie at chromium.org>



More information about the coreboot-gerrit mailing list