diff options
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 6 |
1 files changed, 6 insertions, 0 deletions
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 () } |