diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-03-11 11:21:33 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-12 19:27:34 +0000 |
commit | 179972d2f99d454edb7240892a5878b02669de9c (patch) | |
tree | 3b939eab1ff673a99adff5940ff62b9852bac890 /board/honeybuns | |
parent | bbdb128eae4a3ff2aa5e7711d755cdf9aece276d (diff) | |
download | chrome-ec-179972d2f99d454edb7240892a5878b02669de9c.tar.gz |
honeybuns: fix CC voltage thresholds
The Rp resistor on CC1 is set for a 3.0A capability,
so Vnc (no-connection voltage) is 2.45 V.
CC2 is not connected (captive cable), so for a PD source, it's identical
to being always pulled-up to 3.3V (no sink connection).
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:37078
TEST=connect to Samus and see PD activity
Change-Id: I8df0561cea59896d65d9be6523d4eed953851129
Reviewed-on: https://chromium-review.googlesource.com/259301
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/honeybuns')
-rw-r--r-- | board/honeybuns/usb_pd_config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/honeybuns/usb_pd_config.h b/board/honeybuns/usb_pd_config.h index e4e16dc5cd..35f47ff5ad 100644 --- a/board/honeybuns/usb_pd_config.h +++ b/board/honeybuns/usb_pd_config.h @@ -133,8 +133,8 @@ static inline void pd_config_init(int port, uint8_t power_role) static inline int pd_adc_read(int port, int cc) { - /* only one CC line, assume other one is always low */ - return (cc == 0) ? adc_read_channel(ADC_CH_CC1_PD) : 0; + /* only one CC line, assume other one is always high */ + return (cc == 0) ? adc_read_channel(ADC_CH_CC1_PD) : 3300; } @@ -148,8 +148,8 @@ static inline int pd_snk_is_vbus_provided(int port) return 0; } -/* Standard-current DFP : no-connect voltage is 1.55V */ -#define PD_SRC_VNC 1550 /* mV */ +/* 3.0A DFP : no-connect voltage is 2.45V */ +#define PD_SRC_VNC 2450 /* mV */ /* UFP-side : threshold for DFP connection detection */ #define PD_SNK_VA 200 /* mV */ |