From e8cc52fab012798dd9f5ad12cd6a8d238ea360c7 Mon Sep 17 00:00:00 2001 From: Freddy Paul Date: Fri, 2 Oct 2015 19:06:57 -0700 Subject: 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 Original-Reviewed-by: T.H. Lin Original-Tested-by: T.H. Lin Original-Tested-by: Jagadish Krishnamoorthy Original-Reviewed-by: Divya Jyothi Original-Reviewed-by: Aaron Durbin Original-Signed-off-by: Freddy Paul Change-Id: I188e80e6688d0bac5bed6dd64cd2d0feefa30d3f Signed-off-by: Hannah Williams Signed-off-by: Freddy Paul Signed-off-by: Hannah Williams Reviewed-on: https://review.coreboot.org/12748 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/ec/google/chromeec/acpi/ec.asl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index bcb26bfe80..44a7eedd31 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -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 () } -- cgit v1.2.3