diff options
author | Duncan Laurie <dlaurie@google.com> | 2018-11-20 17:30:47 -0800 |
---|---|---|
committer | Duncan Laurie <dlaurie@chromium.org> | 2018-12-04 17:34:38 +0000 |
commit | 98d7de7ea93379957fc3f48bef6912e9947e1099 (patch) | |
tree | 5f638ec5330ebe11b4ebf59a9cad0377e690c856 /src/ec/google/wilco/acpi/ec_ram.asl | |
parent | 106a0823c92593fe35150c5255d9852b9bff9c5d (diff) |
ec/google/wilco/acpi: Add DPTF support
Add the support needed for DPTF. This includes the methods to
write trip point values, read temperatures, and handle events.
This was tested on a sarien board by inspecting AML debug output
with the kernel while monitoring temperatures and trip points in
sysfs and controlling temperatures with a fan to ensure that when
a trip point is crossed an SCI is generated and the event is
handled properly.
Change-Id: I8d8570d176c0896fa709a6c782b319f58d3c1e52
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/29761
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/google/wilco/acpi/ec_ram.asl')
-rw-r--r-- | src/ec/google/wilco/acpi/ec_ram.asl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ec/google/wilco/acpi/ec_ram.asl b/src/ec/google/wilco/acpi/ec_ram.asl index 6ea2366b0a..1563a3c8af 100644 --- a/src/ec/google/wilco/acpi/ec_ram.asl +++ b/src/ec/google/wilco/acpi/ec_ram.asl @@ -106,6 +106,14 @@ Name (BSBS, Package () { 0x2a, 0xff, RD }) /* BSTATIC: Battery String */ Name (QSEC, Package () { 0x2b, 0xff, RD }) /* QS Event Count */ Name (QSEB, Package () { 0x2c, 0xff, RD }) /* QS Event Byte */ +Name (DRST, Package () { 0x32, 0xff, RD }) /* DPTF: Read State */ +Name (DRTI, Package () { 0x33, 0xff, RD }) /* DPTF: Read Thermal Index */ +Name (DRTV, Package () { 0x34, 0xff, RD }) /* DPTF: Read Thermal Value */ +Name (DRTL, Package () { 0x35, 0xff, RD }) /* DPTF: Read Trip Low */ +Name (DRTH, Package () { 0x36, 0xff, RD }) /* DPTF: Read Trip High */ +Name (DRHY, Package () { 0x37, 0xff, RD }) /* DPTF: Read Hysteresis */ +Name (DRTQ, Package () { 0x38, 0xff, RD }) /* DPTF: Read Trip Query */ + Name (ORST, Package () { 0x39, 0xff, RD }) /* Orientation State */ Name (OREV, Package () { 0x3a, 0xff, RD }) /* Orientation Events */ Name (OECH, Package () { 0x3a, 0x01, RD }) /* Event: Orientation */ @@ -128,3 +136,9 @@ Name (SSEL, Package () { 0x04, 0xff, WR }) /* Battery String Select */ Name (ERDY, Package () { 0x05, 0xff, WR }) /* EC Ready */ Name (FWAK, Package () { 0x06, 0xff, WR }) /* EC _WAK */ Name (PS2M, Package () { 0x20, 0xff, WR }) /* EC PS/2 Mouse Emulation */ +Name (DWST, Package () { 0x32, 0xff, WR }) /* DPTF: Write State */ +Name (DWTI, Package () { 0x33, 0xff, WR }) /* DPTF: Write Thermal Index */ +Name (DWTL, Package () { 0x35, 0xff, WR }) /* DPTF: Write Trip Low */ +Name (DWTH, Package () { 0x36, 0xff, WR }) /* DPTF: Write Trip High */ +Name (DWHY, Package () { 0x37, 0xff, WR }) /* DPTF: Write Hysteresis */ +Name (DWTQ, Package () { 0x38, 0xff, WR }) /* DPTF: Write Trip Query */ |