[coreboot-gerrit] Change in coreboot[master]: ec/google/chromeec: Update Tablet event call

Martin Roth (Code Review) gerrit at coreboot.org
Wed May 2 04:53:09 CEST 2018


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/25983


Change subject: ec/google/chromeec: Update Tablet event call
......................................................................

ec/google/chromeec: Update Tablet event call

The tablet event handler method TPET is defined as an extern, then
defined again in skylake, the only platform that supports it.  In newer
versions of IASL, this generates an error, as the method is defined in
two places.

Remove the extern and the CondRefOf check.  That's not needed if we
only set the EC_ENABLE_TABLET_EVENT define on platforms that have a
TPET handler.

Change-Id: I8bee069fc95637446593dfaaae1254e931421517
Signed-off-by: Martin Roth <martinroth at google.com>
---
M src/ec/google/chromeec/acpi/ec.asl
1 file changed, 2 insertions(+), 4 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/25983/1

diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index 9ec5f7f..ac4ceb1 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -24,7 +24,7 @@
 #ifdef DPTF_ENABLE_CHARGER
 External (\_SB.DPTF.TCHG, DeviceObj)
 #endif
-External (\_SB.DPTF.TPET, MethodObj)
+
 
 Device (EC0)
 {
@@ -373,9 +373,7 @@
 		Store ("EC: TABLET mode switch Event", Debug)
 		Notify (CREC, 0x2)
 #ifdef EC_ENABLE_TABLET_EVENT
-		If (CondRefOf (\_SB.DPTF.TPET)) {
-			\_SB.DPTF.TPET()
-		}
+		\_SB.DPTF.TPET()
 #endif
 #ifdef EC_ENABLE_TBMC_DEVICE
 		Notify (TBMC, 0x80)

-- 
To view, visit https://review.coreboot.org/25983
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8bee069fc95637446593dfaaae1254e931421517
Gerrit-Change-Number: 25983
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180502/fcf32786/attachment-0001.html>


More information about the coreboot-gerrit mailing list