diff options
author | Vic Yang <victoryang@chromium.org> | 2013-05-14 12:09:54 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-05-15 20:12:47 -0700 |
commit | c8b7b430fe5e4aa3d5f27fbd160dfee31254e36d (patch) | |
tree | 745a6de72919add31ec11a0b4747825e316b9d65 /include/system.h | |
parent | 3bcc4af4b6bb23280b3f87072b90162bb4ff73f5 (diff) | |
download | chrome-ec-c8b7b430fe5e4aa3d5f27fbd160dfee31254e36d.tar.gz |
Add console command to force enable console
When system is locked, the console is disabled. However, we need console
for debugging and testing. This CL uses a bit from back-up register to
indicate if the console should always be enabled. (This bit is currently
used by fake WP, which is removed in this CL.) With this, we can set
this bit with console command 'forceen 1' to ensure console is never
disabled.
To prevent device shipped in this state, the chip name is postfixed with
'-unsafe' so that the device is not able to pass HWID check.
BUG=chrome-os-partner:19293
TEST=Manual
BRANCH=spring
Change-Id: I88556e973ca542c1bdc27ba64988718291e01a26
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/51086
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index fb31e54268..82dda5fff3 100644 --- a/include/system.h +++ b/include/system.h @@ -260,4 +260,11 @@ void system_hibernate(uint32_t seconds, uint32_t microseconds); /* Minimum duration to get proper hibernation */ #define SYSTEM_HIB_MINIMUM_DURATION 0, 150000 +/** + * Get/Set console force enable status. This is only supported/used on platform + * with CONFIG_CONSOLE_RESTRICTED_INPUT defined. + */ +int system_get_console_force_enabled(void); +int system_set_console_force_enabled(int enabled); + #endif /* __CROS_EC_SYSTEM_H */ |