summaryrefslogtreecommitdiff
path: root/include/usb_console.h
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-09-02 14:45:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-08 13:49:09 -0700
commit96093145cb6549a6058627a7aa196e86ac3911f4 (patch)
tree8e027d656391fb277e4c22d9dfb63389e53741de /include/usb_console.h
parent15fcbc95967b79157dc892f547206f2a0967d2ff (diff)
downloadchrome-ec-96093145cb6549a6058627a7aa196e86ac3911f4.tar.gz
update case closed debugging partial mode policy
When a debug accessory is connected to the type-C port while the write protection is enabled, put the case closed debugging in "partial" mode rather than "full". Update the "partial" mode to provide read-only access to the AP and EC consoles. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=smaug BUG=chrome-os-partner:44700 TEST=check the EC console input/output over USB is still working with SuzyQ on a write-protected system, verify that the console input is disabled. Change-Id: I5baa03d6e738d06437c45469f46b286e76a755a4 Reviewed-on: https://chromium-review.googlesource.com/297141 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/usb_console.h')
-rw-r--r--include/usb_console.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb_console.h b/include/usb_console.h
index d83fc480b0..08cbbf5491 100644
--- a/include/usb_console.h
+++ b/include/usb_console.h
@@ -50,7 +50,7 @@ int usb_getc(void);
* is not accessible until the USB peripheral is also initialized, which can
* be delayed.
*/
-void usb_console_enable(int enabled);
+void usb_console_enable(int enabled, int readonly);
#define usb_va_start va_start
#define usb_va_end va_end