summaryrefslogtreecommitdiff
path: root/board/yorp/battery.c
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2018-03-30 13:02:34 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-13 13:25:13 -0700
commit1e677d3f32155265f062a9011e553b39ad9dac50 (patch)
tree6f5b49de5039f9a214de8055080040bec7377dbf /board/yorp/battery.c
parent4bfde23411b1e335a86e9c5521539df67a2bbadb (diff)
downloadchrome-ec-1e677d3f32155265f062a9011e553b39ad9dac50.tar.gz
anx7447: Add functions to the anx7447 driver to check/erase OCM flash
This CL adds support to check if the OCM flash is erased and if not, will erase it at initialization time. These changes are encapsulated in a new config option CONFIG_USB_PD_TCPM_ANX7447_OCM_ERASE and this option is enabled for Yorp boards. BUG=b:77658388 BRANCH=NONE TEST=make -j buildall. Tested on a board that hadn't yet been erased. Verifed the message "anx7447: OCM flash checked and successfully erased" was in the EC log, but did not show up on subsequent reboots. Change-Id: I660e76a9498d3dc1ba821a04317b324f716c5089 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/988414 Commit-Ready: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/yorp/battery.c')
0 files changed, 0 insertions, 0 deletions