diff options
author | Hu, Hebo <hebo.hu@intel.com> | 2019-04-19 14:20:44 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-23 07:21:36 -0700 |
commit | deee174f01c6272617321ffa9f2bcad50e255447 (patch) | |
tree | 502ad61420c684123f8dc42065d8e0f67235bac1 /chip/ish/power_mgt.h | |
parent | 1fda1785673f8c6c0452d25945ad7f93f7d73a9c (diff) | |
download | chrome-ec-deee174f01c6272617321ffa9f2bcad50e255447.tar.gz |
ish/ish5: add console in use timeout mechanism in low power managmentstabilize-12121.B
on ISH, uart interrupt can only wakeup ISH from low power state via
CTS pin, but most ISH platforms only have Rx and Tx pins, no CTS pin
exposed, so, we need block ISH enter low power state for a while when
console is in use.
we have two default timeout values for this mechanism:
1: after ISH boot, have 15 seconds window can input console commands
2: refresh 60 seconds timeout for console use after each console input
BUG=b:129246461
BRANCH=none
TEST=verified on arcada platform
Change-Id: Ic3bb33a7984e1bf55654403c76287617c8828daa
Signed-off-by: Hu, Hebo <hebo.hu@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1574375
Commit-Ready: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Hebo Hu <hebo.hu@intel.corp-partner.google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Reviewed-by: Hebo Hu <hebo.hu@intel.corp-partner.google.com>
Diffstat (limited to 'chip/ish/power_mgt.h')
-rw-r--r-- | chip/ish/power_mgt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/ish/power_mgt.h b/chip/ish/power_mgt.h index 2921e0534e..d592928744 100644 --- a/chip/ish/power_mgt.h +++ b/chip/ish/power_mgt.h @@ -69,4 +69,9 @@ void ish_pm_init(void); */ void ish_pm_reset(void) __attribute__((noreturn)); +/** + * notify the power management module that the UART for the console is in use. + */ +void ish_pm_refresh_console_in_use(void); + #endif /* __CROS_EC_POWER_MGT_H */ |