diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-10-30 18:30:03 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-31 13:04:58 -0700 |
commit | 7d66541b462a5b86ab051ce1a4ad5404496a991c (patch) | |
tree | 41fc8f797a916fb49bc29a6b7e5038c0a2ea3b6c /include/lpc.h | |
parent | 7b8fb2ad2a60f70bad675b66c8dbe68fcb344629 (diff) | |
download | chrome-ec-7d66541b462a5b86ab051ce1a4ad5404496a991c.tar.gz |
lpc: Add and use lpc_resume_clear_masks
Add a new LPC helper routine lpc_resume_clear_masks that can be used
to clear SCI, SMI and wake masks upon resume from S3. This is done to
mask the events until host explicitly unmasks them.
It also ensures that these masks do not get reset on resume from S0ix
where the host does not re-configure these masks.
BUG=b:68669668
BRANCH=None
TEST=Verified following:
1. make -j buildall
2. On resume from S0ix, SCI mask is not reset.
3. On resume from S3, SCI mask is reset and then set again by host request.
Change-Id: I17a86bd60ef066b3716fb79ecce62f311eb45509
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/745533
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/lpc.h b/include/lpc.h index 05b8d660e3..7b9a7d7012 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -152,4 +152,10 @@ uint32_t lpc_override_always_report_mask(void); /* Initialize LPC masks. */ void lpc_init_mask(void); +/* + * Clear LPC masks for SMI, SCI and wake upon resume from S3. This is done to + * mask these events until host unmasks them itself. + */ +void lpc_s3_resume_clear_masks(void); + #endif /* __CROS_EC_LPC_H */ |