diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-06-13 16:57:20 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-19 21:03:29 -0700 |
commit | 627f3a8ac28751f549fbdb5266f8ccee417d339d (patch) | |
tree | 61a294f140f22ff079be4a278b9127b410d2cc1a /include/power_button.h | |
parent | 1a09831d0fdc6515e5d516074ee563a3e6e8ca12 (diff) | |
download | chrome-ec-627f3a8ac28751f549fbdb5266f8ccee417d339d.tar.gz |
KBL/SKL: Add wait between DSW_PWROK and PWRBTN
This patch adds wait between DSW_PWROK and PWRBTN assert. It is
required to be 95 msec or longer for Kaby Lake and Sky Lake.
Refer to the timing diagram for G3 to S0 on Sky Lake or Kaby Lake
platform design guide for details.
BUG=b:62584658
BRANCH=none
TEST=On Fizz, measured time between DSW_PWROK high and PWRBTN assert
for 1:AC plug-in, 2:recovery+power press, 3: reboot ec command.
Change-Id: I89a14ac9a49e20a332bd662d90be62f8ea23b003
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/534901
Diffstat (limited to 'include/power_button.h')
-rw-r--r-- | include/power_button.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/power_button.h b/include/power_button.h index 3297c411eb..cfa234c8be 100644 --- a/include/power_button.h +++ b/include/power_button.h @@ -54,4 +54,12 @@ void power_button_pch_release(void); */ void power_button_pch_pulse(void); +/** + * Returns the time when DSW_PWROK was asserted. It should be customized + * by each board. See CONFIG_DELAY_DSW_PWROK_TO_PWRBTN for details. + * + * @return time in usec when DSW_PWROK was asserted. + */ +int64_t get_time_dsw_pwrok(void); + #endif /* __CROS_EC_POWER_BUTTON_H */ |