diff options
author | Namyoon Woo <namyoon@chromium.org> | 2019-08-02 11:25:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-16 04:37:33 +0000 |
commit | 2367420fd6f4a7db36c7cb566aa256e873fb33eb (patch) | |
tree | a5b3a2f313d8dd93b85561dd932bf094f56cfbff /include/timer.h | |
parent | 53534ea1da670669eec5be9144ddc549b9fe6bc3 (diff) | |
download | chrome-ec-2367420fd6f4a7db36c7cb566aa256e873fb33eb.tar.gz |
extend INT_AP_L pulse
This patch extends INT_AP_L pulses to be at least 6.5 micro seconds.
It is a tentative solution to to meet Intel TGL/JSL requirement on
interrupt duration.
BUG=b:130515803
BRANCH=cr50
TEST=checked INT_AP_L pulse length ranges extended to 6.5 ~ 11 usec
with logic analyzer on Hatch.
Checked dmesg and coreboot log has no TPM errors.
Change-Id: Iea8d0a779fff7cbda0c8647f3c1de719c3c3d7e0
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2002958
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'include/timer.h')
-rw-r--r-- | include/timer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h index d8bc252ba0..89a49762ae 100644 --- a/include/timer.h +++ b/include/timer.h @@ -178,3 +178,10 @@ static inline int time_after(uint32_t a, uint32_t b) } #endif /* __CROS_EC_TIMER_H */ + +/** + * Busy-wait for the given ticks. + * + * @param ticks Number of ticks to delay. + */ +void tick_delay(uint32_t ticks); |