ec/google/chromeec/acpi :Enable DPTF charger/TSR1/TSR2 participant.
TEST=Plug/Unplug AC Adapter multiple times and make sure device is charging properly. Original-Reviewed-on: https://chromium-review.googlesource.com/303990 Original-Reviewed-by: Jenny Tc <jenny.tc@intel.com> Original-Reviewed-by: T.H. Lin <T.H_Lin@quantatw.com> Original-Tested-by: T.H. Lin <T.H_Lin@quantatw.com> Original-Tested-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com> Original-Reviewed-by: Divya Jyothi <divya.jyothi@intel.com> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Signed-off-by: Freddy Paul <freddy.paul@intel.com> Change-Id: I188e80e6688d0bac5bed6dd64cd2d0feefa30d3f Signed-off-by: Hannah Williams <hannah.williams@intel.com> Signed-off-by: Freddy Paul <freddy.paul@intel.com> Signed-off-by: Hannah Williams <hannah.williams@intel.com> Reviewed-on: https://review.coreboot.org/12748 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
01be52eca9
commit
e8cc52fab0
|
@ -22,7 +22,9 @@
|
|||
// Mainboard specific throttle handler
|
||||
External (\_TZ.THRT, MethodObj)
|
||||
External (\_SB.DPTF.TEVT, MethodObj)
|
||||
#ifdef DPTF_ENABLE_CHARGER
|
||||
External (\_SB.DPTF.TCHG, DeviceObj)
|
||||
#endif
|
||||
|
||||
Device (EC0)
|
||||
{
|
||||
|
@ -170,9 +172,11 @@ Device (EC0)
|
|||
Store ("EC: AC CONNECTED", Debug)
|
||||
Store (ACEX, \PWRS)
|
||||
Notify (AC, 0x80)
|
||||
#ifdef DPTF_ENABLE_CHARGER
|
||||
If (CondRefOf (\_SB.DPTF.TCHG)) {
|
||||
Notify (\_SB.DPTF.TCHG, 0x80)
|
||||
}
|
||||
#endif
|
||||
\PNOT ()
|
||||
}
|
||||
|
||||
|
@ -182,9 +186,11 @@ Device (EC0)
|
|||
Store ("EC: AC DISCONNECTED", Debug)
|
||||
Store (ACEX, \PWRS)
|
||||
Notify (AC, 0x80)
|
||||
#ifdef DPTF_ENABLE_CHARGER
|
||||
If (CondRefOf (\_SB.DPTF.TCHG)) {
|
||||
Notify (\_SB.DPTF.TCHG, 0x80)
|
||||
}
|
||||
#endif
|
||||
\PNOT ()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue