From c96ad868d4ad869523b615d90fb0bea4bd6d4ef6 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 26 Jan 2018 10:40:09 -0800 Subject: chromeec: Decouple EC tablet event and TBMC device This change decouples EC tablet event and TBMC device by guarding TBMC definition and notification using EC_ENABLE_TBMC_DEVICE. It allows mainboards to use tablet events without having to define a TBMC device. BUG=b:72554519 Change-Id: Ie38b6d68486e8e644dd0d6d406def3ae7fdb5152 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/23461 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie Reviewed-by: Aaron Durbin Reviewed-by: Sumeet R Pawnikar --- src/ec/google/chromeec/acpi/ec.asl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ec/google/chromeec/acpi') diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index d295a8d580..618b00a79e 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -365,6 +365,8 @@ Device (EC0) If (CondRefOf (\_SB.DPTF.TPET)) { \_SB.DPTF.TPET() } +#endif +#ifdef EC_ENABLE_TBMC_DEVICE Notify (TBMC, 0x80) #endif } @@ -517,7 +519,7 @@ Device (EC0) #include "pd.asl" #endif -#ifdef EC_ENABLE_TABLET_EVENT +#ifdef EC_ENABLE_TBMC_DEVICE #include "tbmc.asl" #endif } -- cgit v1.2.3