diff options
author | Jonathan Brandmeyer <jbrandmeyer@chromium.org> | 2018-09-13 14:14:19 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-14 12:08:45 -0700 |
commit | 6b72a548f7a0999a43259426432132295635624b (patch) | |
tree | b189d4bb5aa1cb21067f62cb2367e42dcc72305e /driver/ppc/sn5s330.h | |
parent | ca25c78f48ed3fb6b52945afa9b5d83136f07c08 (diff) | |
download | chrome-ec-6b72a548f7a0999a43259426432132295635624b.tar.gz |
ppc: Increase deglitch time on SN5S330
The default deglitch time is short enough to trip the current limit with
some commercially available USB-C -> HDMI adapters. Increase the
deglitch timeout to improve compatibility with those adapters.
BUG=b:113777138, b:113365815
BRANCH=none
TEST=Insert 7 different USB-C to HDMI adapters, including both
single-function and multifunction devices, and observe that a Careena
clamshell will extend the screen to include the attached monitor on both
USB-C ports 0 and 1. Brands tested include SIIG, StarTech, Amazon
basics, iogear, Apple, and an unlabeled device.
Change-Id: I403e4a65e90c85bdaa8078230751d611d04c9c67
Signed-off-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1225354
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'driver/ppc/sn5s330.h')
-rw-r--r-- | driver/ppc/sn5s330.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/driver/ppc/sn5s330.h b/driver/ppc/sn5s330.h index fcb41204ef..039fbe68e4 100644 --- a/driver/ppc/sn5s330.h +++ b/driver/ppc/sn5s330.h @@ -101,6 +101,13 @@ enum sn5s330_pp_idx { #define SN5S330_CC_EN (1 << 4) #define SN5S330_VCONN_ILIM_SEL (1 << 5) +/* FUNC_SET_8 */ +#define SN5S330_VCONN_DEGLITCH_MASK (3 << 6) +#define SN5S330_VCONN_DEGLITCH_63_US (0 << 6) +#define SN5S330_VCONN_DEGLITCH_125_US (1 << 6) +#define SN5S330_VCONN_DEGLITCH_640_US (2 << 6) +#define SN5S330_VCONN_DEGLITCH_1280_US (3 << 6) + /* FUNC_SET_9 */ #define SN5S330_FORCE_OVP_EN_SBU (1 << 1) #define SN5S330_PP2_CONFIG (1 << 2) |