From 18d9899be13ac518cfe65ed326df0b333a58eabf Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 28 Aug 2013 09:54:04 -0700 Subject: chrome ec: Add Methods for new EC events The EC recently added events for Thermal and Battery shutdown to provide some sort of notification to the OS that it is about to pull power. Original-Change-Id: Ibbdb5f11b8fa9fc80612a3cc10667c612420b1bb Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/167301 Reviewed-by: Aaron Durbin Commit-Queue: Duncan Laurie (cherry picked from commit 03a53ed5e58caa018d49df193510d95bdf5bed7b) Change-Id: I0cdf89a60b541840029db58d49921340e7ab60eb Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/167314 Reviewed-by: Aaron Durbin (cherry picked from commit 16d00848f48da83f6d6c813137a35af45bb05c4b) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6458 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- src/ec/google/chromeec/acpi/ec.asl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/ec/google') diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 1cadcc882d..1d698a1f1e 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -263,6 +263,20 @@ Device (EC0) Store ("EC: KEY PRESSED", Debug) } + // Thermal Shutdown Imminent + Method (_Q10, 0, NotSerialized) + { + Store ("EC: THERMAL SHUTDOWN", Debug) + Notify (\_TZ, 0x80) + } + + // Battery Shutdown Imminent + Method (_Q11, 0, NotSerialized) + { + Store ("EC: BATTERY SHUTDOWN", Debug) + Notify (BAT0, 0x80) + } + // Throttle Start Method (_Q12, 0, NotSerialized) { -- cgit v1.2.3