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. BUG=chromium:349681 TEST=emerge-rambi chromeos-coreboot-rambi BRANCH=baytrail Change-Id: I6723754e2fe12862f50709875140fcadcddb18eb Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/189029 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Brad Geltz <brad.geltz@intel.com>
This commit is contained in:
parent
27fae3e670
commit
ed1ee57701
1 changed files with 7 additions and 0 deletions
|
|
@ -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 ()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue