Files
OpenCellular/chip/stm32
Shawn Nematbakhsh 23bc38414a pd: Store PD active state in battery-backed memory
Our previous idea to cut Rd for many reset cases cannot work if cr50
consistently resets the EC by asserting the reset pin shortly after
power-on. Therefore, make a decision based upon whether battery-backed
memory indicates we previously negotiated a PD power contract as a sink.
If we previously did not negotiate a contract, or if power was removed
from the device (causing battery-backed memory to wipe) then we can
assume that we don't have an active power contract.

BUG=chrome-os-partner:62952
BRANCH=reef
TEST=On reef, run "cutoff" on the console, reattach AC, and verify
device successfully wakes. Also verify Rp is dropped on console 'reboot'
and F3 + power from RW.

Change-Id: Ie300b9589cac6be7a69b77678bea6b1b6b25578c
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/443356
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
2017-02-25 14:23:20 -08:00
..
2017-02-23 11:36:21 -08:00
2017-01-26 18:43:53 -08:00
2014-10-07 20:58:52 +00:00
2017-02-17 01:47:29 -08:00
2016-04-25 16:49:02 -07:00
2015-06-18 19:07:00 +00:00
2014-10-07 20:58:52 +00:00
2016-08-21 04:11:10 -07:00
2014-10-07 20:58:52 +00:00
2016-04-25 16:49:02 -07:00
2013-07-08 13:53:58 -07:00
2017-02-17 01:47:29 -08:00
2016-04-25 16:49:01 -07:00
2017-02-23 11:36:21 -08:00
2016-11-15 17:41:53 -08:00
2015-08-24 19:08:35 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:35 +00:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2015-06-18 05:07:55 +00:00
2016-03-15 21:49:35 -07:00
2016-09-02 21:17:22 -07:00