Files
OpenCellular/include
Randall Spangler 5c808ee56c Support DPTF charger current limiting
This enables the AP to limit charging current via ACPI.

BUG=chrome-os-partner:23971
BRANCH=rambi
TEST=manual
    drain battery down to <90%, then plug into AC
    (charger commands at EC console, iotools at root shell)

    iotools io_write8 0x66 0x81
    iotools io_write8 0x62 0x08
    iotools io_write8 0x62 3

    charger -> dptf limit 192, I_batt=192

    charger dptf 320
    charger -> dptf limit 320, I_batt=320

    iotools io_write8 0x66 0x80
    iotools io_write8 0x62 0x08
    iotools io_read8 0x62 -> 0x05

    iotools io_write8 0x66 0x81
    iotools io_write8 0x62 0x08
    iotools io_write8 0x62 0xff

    charger -> dptf disabled, I_batt=(something > 192)

    iotools io_write8 0x66 0x80
    iotools io_write8 0x62 0x08
    iotools io_read8 0x62 -> 0xff

Change-Id: Iace2ebbbc018143c0154310d7acd02d16a6b7339
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/185411
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2014-02-08 00:14:48 +00:00
..
2013-10-25 20:12:54 +00:00
2013-12-17 21:27:53 +00:00
2013-04-05 14:28:42 -07:00
2013-10-15 00:27:14 +00:00
2013-09-10 23:46:07 +00:00
2014-02-08 00:14:48 +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-12-19 00:12:28 +00: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
2014-01-21 01:13:15 +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
2014-01-06 12:40:45 +00:00
2013-11-21 00:09:09 +00:00
2013-10-21 23:59:38 +00:00
2014-01-15 04:52:40 +00:00