Files
OpenCellular/include
Bill Richardson d3fdf5e6f3 Add stubs for DPTF thermal thresholds
This adds three new registers to the ACPI->EC interface, which will allow
the AP to set/clear two DPTF thermal threshold points for each temp sensor.

The registers are

  EC_ACPI_MEM_TEMP_ID            0x05
  EC_ACPI_MEM_TEMP_THRESHOLD     0x06
  EC_ACPI_MEM_TEMP_COMMIT        0x07

It doesn't actually do anything yet, but the AP can now write those values.

BUG=chrome-os-partner:23970
BRANCH=none
TEST=manual

On the host:

  dptf() {
         [ "$#" -eq "2" ] || return;
         iotools io_write8 0x66 0x81
         iotools io_write8 0x62 $1
         iotools io_write8 0x62 $2
  }

Now watch the EC console while running on the host:

  dptf 5 1
  dptf 6 80
  dptf 7 2
  dptf 7 3

The EC should say

 DPTF sensor 1, threshold 7 C, index 0, enabled
 DPTF sensor 1, threshold 7 C, index 1, enabled

Change-Id: I71fa57e3ca7c7b5bb8892e63212bf294b44dece5
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179778
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-12-13 01:13:44 +00:00
..
2013-10-25 20:12:54 +00:00
2013-04-05 14:28:42 -07:00
2013-12-02 22:03:51 +00:00
2013-10-15 00:27:14 +00:00
2013-09-10 23:46:07 +00:00
2013-12-13 01:13:44 +00:00
2013-10-25 20:12:49 +00:00
2012-10-26 09:49:38 -07:00
2013-10-08 20:41:32 +00:00
2013-06-26 09:08:23 -07:00
2013-10-21 23:59:38 +00:00
2013-06-18 10:31:09 -07:00
2013-10-30 23:10:13 +00:00
2013-08-07 12:43:48 -07:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:11 -07:00
2013-12-05 22:30:58 +00:00
2012-10-25 14:12:10 -07:00
2013-10-30 23:10:10 +00:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2013-11-21 00:09:09 +00:00
2013-10-21 23:59:38 +00:00