From 98cc94c974a1eac13f6a52acef96cd88910f2c89 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Thu, 28 Aug 2014 11:33:41 -0700 Subject: chromeec: Add ACPI device for PD MCU and handle related EC host event Add ACPI device for PD MCU, if present. Call Notify routine when the corresponding EC host event is received. BUG=chrome-os-partner:31361 TEST=Manual on Samus. Enable EC_ENABLE_PD_MCU_DEVICE, unmask PD MCU host event, and verify ACPI Notify routine is called when host event is sent from EC. BRANCH=None. Original-Change-Id: I6db61031e434d7ecb211802a4caeaba051e22a28 Original-Signed-off-by: Shawn Nematbakhsh Original-Reviewed-on: https://chromium-review.googlesource.com/214809 Original-Reviewed-by: Duncan Laurie Original-Reviewed-by: Alec Berg (cherry picked from commit 226b349e40ed8eacce20d0a8063877382f707c69) Signed-off-by: Marc Jones Change-Id: Iecff6c06f1b37651ff61e36d6085d397d66f861c Reviewed-on: http://review.coreboot.org/8968 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/ec/google/chromeec/acpi/ec.asl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/ec/google/chromeec/acpi/ec.asl') diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 2760f195d0..734d22394a 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -303,6 +303,15 @@ Device (EC0) } } +#ifdef EC_ENABLE_PD_MCU_DEVICE + // PD event + Method (_Q16, 0, NotSerialized) + { + Store ("EC: GOT PD EVENT", Debug) + Notify (ECPD, 0x80) + } +#endif + /* * Dynamic Platform Thermal Framework support */ @@ -435,4 +444,8 @@ Device (EC0) #ifdef EC_ENABLE_ALS_DEVICE #include "als.asl" #endif + +#ifdef EC_ENABLE_PD_MCU_DEVICE + #include "pd.asl" +#endif } -- cgit v1.2.3