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. BUG=chrome-os-partner:21175 BRANCH=falco TEST=emerge-falco chromeos-coreboot-falco Original-Change-Id: Ibbdb5f11b8fa9fc80612a3cc10667c612420b1bb Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167301 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Duncan Laurie <dlaurie@google.com> (cherry picked from commit 03a53ed5e58caa018d49df193510d95bdf5bed7b) Change-Id: I0cdf89a60b541840029db58d49921340e7ab60eb Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167314 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
b31d7a31b8
commit
16d00848f4
1 changed files with 14 additions and 0 deletions
|
|
@ -229,6 +229,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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue