diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-01-18 17:54:39 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-21 11:07:39 +0000 |
commit | 7ebf0147982beb0cb30dfc471392c984bf765f4e (patch) | |
tree | 6bf7ed1c2c32cb2219a4a7d218a786ab57cd99bb /driver | |
parent | 790394d32292e97a57444f449279a42ce6da511d (diff) | |
download | chrome-ec-7ebf0147982beb0cb30dfc471392c984bf765f4e.tar.gz |
zephyr: drivers: Increase ticks per second in tests
Increase ticks per second to 10000 (10 ticks per ms) from 100. This
allows to meassure delays of 1 ms and simulate time related behaviour
better.
PS8815 test is extended to check if delay of 1 ms is applied when role
control register is written. This is workaround for some PS8815 HW
revisions (b/171430855).
BUG=b:203858808
BRANCH=none
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ib8b4b38c5994b4040b12225f28b628edf1278049
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3398505
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Sam Hurst <shurst@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/ps8xxx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/tcpm/ps8xxx.c b/driver/tcpm/ps8xxx.c index ea76b64d6f..ef6f37263a 100644 --- a/driver/tcpm/ps8xxx.c +++ b/driver/tcpm/ps8xxx.c @@ -764,6 +764,7 @@ __maybe_unused static int ps8815_transmit_buffer_workaround_check(int port) ps8xxx_role_control_delay_ms[port] = 1; break; default: + ps8xxx_role_control_delay_ms[port] = 0; break; } |