diff options
author | Shelley Chen <shchen@google.com> | 2020-05-05 14:57:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-07 03:08:49 +0000 |
commit | 03bed07a9d4f07619598771f3363ef9e3e58632d (patch) | |
tree | fc7f7607bfb7e8a985e2102167d09a846b0cfeec /board/mushu | |
parent | e033acbaf98d86eb3955bc5e1fd9f2268e2ecda7 (diff) | |
download | chrome-ec-03bed07a9d4f07619598771f3363ef9e3e58632d.tar.gz |
Mushu: Enable TCPMv2
Transitioning Mushu to TCPMv2. Mushu needs some features that are
only going to be available on the new stack. We need to still use PD
2.0 because we have a parade TCPC however, which is not compatible
with the PD 3.0 spec.
BUG=b:155118660
BRANCH=None
TEST=flash onto mushu board
Plug in charger. See the following output, which
verified that we are using the new stack:
2020-05-05 14:59:06 [269.461931 C1: Attached.SNK]
2020-05-05 14:59:06 [269.471130 C1: PE_SNK_Startup]
2020-05-05 14:59:06 [269.473331 VBUS p1 1]
2020-05-05 14:59:06 [269.474353 C1: PE_SNK_Discovery]
2020-05-05 14:59:06 [269.476796 New charge port: C1]
2020-05-05 14:59:06 [269.482324 C1: PE_SNK_Wait_for_Capabilities]
2020-05-05 14:59:06 bq25710: no battery, skip ICO enable
2020-05-05 14:59:06 [269.486195 CL: p1 s1 i3000 v5000]
2020-05-05 14:59:06 [269.556396 AC on]
2020-05-05 14:59:06 [269.577137 C1: PE_SNK_Evaluate_Capability]
2020-05-05 14:59:06 [269.577801 C1: PE_SNK_Select_Capability]
2020-05-05 14:59:06 C1 Req [4] 15000mV 3000mA
Signed-off-by: Shelley Chen <shchen@google.com>
Change-Id: I796c8de9a7f7f4d9f5c139fbe0fd09cd64f933dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2182043
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Commit-Queue: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>
Diffstat (limited to 'board/mushu')
-rw-r--r-- | board/mushu/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/mushu/board.h b/board/mushu/board.h index 38f9984750..900ef7cac0 100644 --- a/board/mushu/board.h +++ b/board/mushu/board.h @@ -53,6 +53,13 @@ #define I2C_PORT_GPU NPCX_I2C_PORT4_1 /* USB Type C and USB PD defines */ +#undef CONFIG_USB_PD_TCPMV1 +#define CONFIG_USB_PD_TCPMV2 /* Use TCPMv2 */ +#define CONFIG_USB_PD_REV20 /* enable PD 2.0 because we have a parade TCPC */ +#define CONFIG_USB_PID 0x5047 +#define CONFIG_USB_PD_DECODE_SOP +#define CONFIG_USB_PD_TRY_SRC +#define CONFIG_USB_DRP_ACC_TRYSRC #define CONFIG_USB_PD_COMM_LOCKED #define CONFIG_USB_PD_TCPM_ANX7447 #define CONFIG_USB_PD_TCPM_ANX7447_AUX_PU_PD |