summaryrefslogtreecommitdiff
path: root/board/cr50/board.h
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@google.com>2018-11-16 17:23:49 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-30 02:53:05 -0700
commit01f95b49e6dc69c2485c671b71d2075eb9e34f66 (patch)
tree04bc44412b8233a93650e73f2e0c5a3157644142 /board/cr50/board.h
parent25e9afb2978df50e67965c42cf8d2096a39c7855 (diff)
downloadchrome-ec-01f95b49e6dc69c2485c671b71d2075eb9e34f66.tar.gz
cr50: add command for forcing servo disconnect
Early proto boards may not have the servo detection setup correctly. This change adds a method to work around this issue, so people can use the consoles even if cr50 thinks servo is connected. BUG=b:119690767 BRANCH=cr50 TEST=Use 'ccdblock ignore_servo enable' on cheza EVT verify ec uart becomes read write. Make sure uart becomes read only after 'ccdblock ignore_servo disable'. Change-Id: I9cf04b742bec166b1cf6f0b90d5fe41346769ea7 Signed-off-by: Mary Ruthven <mruthven@google.com> Reviewed-on: https://chromium-review.googlesource.com/1341162 Commit-Ready: Mary Ruthven <mruthven@chromium.org> Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r--board/cr50/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index c83bd0c84b..78f6d5915a 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -219,6 +219,9 @@ enum device_state {
/* Device state is unknown. Used only by legacy device_state code. */
DEVICE_STATE_UNKNOWN,
+ /* The state is being ignored. */
+ DEVICE_STATE_IGNORED,
+
/* Number of device states */
DEVICE_STATE_COUNT
};
@@ -258,6 +261,8 @@ int is_sys_rst_asserted(void);
void assert_ec_rst(void);
void deassert_ec_rst(void);
int is_ec_rst_asserted(void);
+/* Ignore the servo state. */
+void servo_ignore(int enable);
/**
* Set up a deferred call to update CCD state.