[coreboot-gerrit] New patch to review for coreboot: 9230678 dptf: chromeec: Notify DPTF Charger participant on AC state change
Isaac Christensen (isaac.christensen@se-eng.com)
gerrit at coreboot.org
Mon Sep 22 22:54:09 CEST 2014
Isaac Christensen (isaac.christensen at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6951
-gerrit
commit 92306788c7e23b460a393816d4c0caeffe697675
Author: Duncan Laurie <dlaurie at chromium.org>
Date: Thu Mar 6 08:37:49 2014 -0800
dptf: chromeec: Notify DPTF Charger participant on AC state change
The DPTF charger particpant device needs to be notified when the
AC state changes so it can re-evaluate the PPCC object and apply
the proper charge rate limit if necessary.
Change-Id: I6723754e2fe12862f50709875140fcadcddb18eb
Signed-off-by: Duncan Laurie <dlaurie at chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/189029
Reviewed-by: Aaron Durbin <adurbin at chromium.org>
Reviewed-by: Brad Geltz <brad.geltz at intel.com>
(cherry picked from commit ed1ee577014421b021e8814edc91a1b696bf9eed)
Signed-off-by: Isaac Christensen <isaac.christensen at se-eng.com>
---
src/ec/google/chromeec/acpi/ec.asl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index 5218c88..650efd2 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -26,6 +26,7 @@
// Mainboard specific throttle handler
External (\_TZ.THRT, MethodObj)
External (\_SB.DPTF.TEVT, MethodObj)
+External (\_SB.DPTF.TCHG, DeviceObj)
Device (EC0)
{
@@ -205,6 +206,9 @@ Device (EC0)
Store ("EC: AC CONNECTED", Debug)
Store (ACEX, \PWRS)
Notify (AC, 0x80)
+ If (CondRefOf (\_SB.DPTF.TCHG)) {
+ Notify (\_SB.DPTF.TCHG, 0x80)
+ }
\PNOT ()
}
@@ -214,6 +218,9 @@ Device (EC0)
Store ("EC: AC DISCONNECTED", Debug)
Store (ACEX, \PWRS)
Notify (AC, 0x80)
+ If (CondRefOf (\_SB.DPTF.TCHG)) {
+ Notify (\_SB.DPTF.TCHG, 0x80)
+ }
\PNOT ()
}
More information about the coreboot-gerrit
mailing list