From 6eecf91b63af56209acf3ae367ab28bcc3fceb1e Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Fri, 24 Jul 2015 16:52:01 -0700 Subject: [PATCH] pd: enable try.src for necessary boards Enable Try.Src for Glados, Kunimitsu, Strago, and Oak so that they default to sourcing power when connecting to other dual-role devices. BUG=none BRANCH=strago TEST=make -j buildall Tested on glados by plugging in charger, hoho, and another dual-role device and making sure we resolve roles appropriately. Change-Id: I9393e30b35620eeda3ef1ef56366a97e59ba8054 Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/288247 Reviewed-by: Shawn N --- board/glados/board.h | 1 + board/kunimitsu/board.h | 1 + board/oak/board.h | 1 + board/strago/board.h | 1 + 4 files changed, 4 insertions(+) diff --git a/board/glados/board.h b/board/glados/board.h index 73d83a4fe4..d75b2a26e0 100644 --- a/board/glados/board.h +++ b/board/glados/board.h @@ -55,6 +55,7 @@ #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_PORT_COUNT 2 #define CONFIG_USB_PD_TCPM_TCPCI +#define CONFIG_USB_PD_TRY_SRC #define CONFIG_USB_SWITCH_PI3USB9281 #define CONFIG_USB_SWITCH_PI3USB9281_CHIP_COUNT 2 #define CONFIG_USBC_SS_MUX diff --git a/board/kunimitsu/board.h b/board/kunimitsu/board.h index eec775966e..e132357a55 100644 --- a/board/kunimitsu/board.h +++ b/board/kunimitsu/board.h @@ -50,6 +50,7 @@ #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_PORT_COUNT 2 #define CONFIG_USB_PD_TCPM_TCPCI +#define CONFIG_USB_PD_TRY_SRC #define CONFIG_USB_SWITCH_PI3USB9281 #define CONFIG_USB_SWITCH_PI3USB9281_CHIP_COUNT 2 #define CONFIG_USBC_SS_MUX diff --git a/board/oak/board.h b/board/oak/board.h index df78eb56bd..75aad13569 100644 --- a/board/oak/board.h +++ b/board/oak/board.h @@ -65,6 +65,7 @@ #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_PORT_COUNT 2 #define CONFIG_USB_PD_TCPM_TCPCI +#define CONFIG_USB_PD_TRY_SRC #define CONFIG_SPI #define CONFIG_STM_HWTIMER32 #define CONFIG_VBOOT_HASH diff --git a/board/strago/board.h b/board/strago/board.h index 2aa2b16ed0..04828dc73f 100644 --- a/board/strago/board.h +++ b/board/strago/board.h @@ -40,6 +40,7 @@ #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_PORT_COUNT 1 #define CONFIG_USB_PD_TCPM_TCPCI +#define CONFIG_USB_PD_TRY_SRC #define CONFIG_USB_SWITCH_PI3USB9281 #define CONFIG_USB_SWITCH_PI3USB9281_CHIP_COUNT 1 #define CONFIG_USBC_SS_MUX