sarien: Add and use interface to get lid switch state from EC
Add an interface to read the LID switch state from the EC and
return it as a GPIO for depthcharge. This will allow vboot to
turn off the system if the lid is closed.
BUG=b:121380403
BRANCH=none
TEST=test_that DUT firmware_FwScreenCloseLid
Change-Id: I0f5cba9fb8efd0cb219c8984b1bdc8ed387caa02
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1429099
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
3 files changed