diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-07 12:32:33 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-12 21:03:57 +0000 |
commit | f0551d3dc6dd3b84815e7b1ff7e1876fb4b6cbf6 (patch) | |
tree | 19d8e67be841f2d6a99b5c0bd1263ff5eaca2cd1 /include | |
parent | 5b8ddb8e81c6f9ce7a595343ab23b012d9ded4f1 (diff) | |
download | chrome-ec-f0551d3dc6dd3b84815e7b1ff7e1876fb4b6cbf6.tar.gz |
Export more symbols from ps8xxx
It turns out we need more symbols for some drivers. For example,
PS8XXX_RESET_DELAY_MS is needed by most boards, including volteer.
Export some more things.
BUG=b:175434113
BRANCH=none
TEST=make BOARD=volteer -j30
With a zephyr-chrome CL, build volteer on zephyr
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Id82eaaa0a1e4a7c66ae0fd1fb7c781f1fc1de1d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2615622
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver/tcpm/ps8xxx_public.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/driver/tcpm/ps8xxx_public.h b/include/driver/tcpm/ps8xxx_public.h index 95b213bb65..84ca9511cb 100644 --- a/include/driver/tcpm/ps8xxx_public.h +++ b/include/driver/tcpm/ps8xxx_public.h @@ -18,6 +18,27 @@ #define PS8XXX_VENDOR_ID 0x1DA0 +/* Minimum Delay for reset assertion */ +#define PS8XXX_RESET_DELAY_MS 1 + +/* Delay between releasing reset and the first I2C read */ +#define PS8805_FW_INIT_DELAY_MS 10 + +/* Delay from power on to reset de-asserted */ +#define PS8815_PWR_H_RST_H_DELAY_MS 20 +/* + * Delay between releasing reset and the first I2C read + * + * If the delay is too short, I2C fails. + * If the delay is marginal I2C reads return garbage. + * + * With firmware 0x03: + * 10ms is too short + * 20ms is marginal + * 25ms is OK + */ +#define PS8815_FW_INIT_DELAY_MS 40 + extern const struct tcpm_drv ps8xxx_tcpm_drv; /** |