diff options
author | Sugnan Prabhu S <sugnan.prabhu.s@intel.com> | 2022-02-02 20:25:08 +0530 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-09 17:05:55 +0000 |
commit | 5e2e973b4ef0cf02596bdfc5fa81e7f4e704f446 (patch) | |
tree | cd309aaa5f883c794500797e35e44f15ed9d6871 /include/config.h | |
parent | c79f4f71c787d3eb772b9d38f421b4be26780c96 (diff) | |
download | chrome-ec-5e2e973b4ef0cf02596bdfc5fa81e7f4e704f446.tar.gz |
intel_x86: Add config to configure S5 exit timer
On enabling Delayed Authentication Mode(DAM) in the coreboot for latest
platforms, system takes more time to exit from S5 than the current wait
time(4secs). Due to which EC forces the system to G3 after few retries.
This patch adds a new config to allow configuration of this timeout
value for which EC has to wait for S5 exit before performing RTC reset
and forcing the system to G3.
BRANCH=None
BUG=b:191742284
TEST=Boot test on Brya with the DAM enabled coreboot
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com>
Change-Id: I78821280fa5928682c9c0c742a4e00299ac49db0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3432445
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.corp-partner.google.com>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 17af7d6b5a..9cf522a98a 100644 --- a/include/config.h +++ b/include/config.h @@ -6784,4 +6784,12 @@ #define CONFIG_AMD_SB_RMI #endif +/* + * Default timeout value for which EC has to wait for system to exit from S5 + * before performing RTC reset and moving the system to G3. + */ +#if defined(CONFIG_BOARD_HAS_RTC_RESET) && !defined(CONFIG_S5_EXIT_WAIT) +#define CONFIG_S5_EXIT_WAIT 4 +#endif + #endif /* __CROS_EC_CONFIG_H */ |