aboutsummaryrefslogtreecommitdiff
path: root/src/ec/google/wilco/acpi/ec.asl
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2018-10-15 15:10:21 -0700
committerDuncan Laurie <dlaurie@chromium.org>2018-10-31 18:30:38 +0000
commit4af38d440d1618e3e837aea016de30004a642e2c (patch)
tree5e643adfa82756f91d6d7d7087ba65f930c8264c /src/ec/google/wilco/acpi/ec.asl
parenta802be2910735c73f1b3c21dc837ce7750ed4ff7 (diff)
ec/google/wilco: Add ACPI battery and AC objects
Add the expected objects (_BST, _BIF, _BIX) for reading battery information and status from the embedded controller, and the expected objects for reporting AC power status. The battery was tested by booting with a battery attached and checking that it is present in /sys/class/power_supply/BAT0 and that the values are consistent and within expected ranges. The AC device was tested by checking the AC status in sysfs when AC is inserted or removed while the system is running. Change-Id: Ie996891c383c9e990736690aef9795512ad6d35a Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/29123 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/ec/google/wilco/acpi/ec.asl')
-rw-r--r--src/ec/google/wilco/acpi/ec.asl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ec/google/wilco/acpi/ec.asl b/src/ec/google/wilco/acpi/ec.asl
index 8197c549a7..d669854920 100644
--- a/src/ec/google/wilco/acpi/ec.asl
+++ b/src/ec/google/wilco/acpi/ec.asl
@@ -132,6 +132,8 @@ Device (EC0)
#include "ec_dev.asl"
#include "ec_ram.asl"
+ #include "ac.asl"
+ #include "battery.asl"
#include "lid.asl"
#include "platform.asl"
}