From 5b5f737d8f6f1be15d4ab5f42f290d20576307c4 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Mon, 11 May 2015 17:31:16 -0700 Subject: pd: move non-phy layer config out of usb_pd_config.h Move parts of usb_pd_config.h that are not part of the phy layer out of usb_pd_config.h and into board.h. This cleans up the division between the TCPC and TCPM as only the TCPC needs to use usb_pd_config.h. Also cleans up the use of the CC detection voltage thresholds by creating standard macros to use based on Rp strength for the board. BUG=none BRANCH=none TEST=make -j buildall Change-Id: I946cceb38bea8233095b8a4b287102bb8a3a296d Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/270337 Reviewed-by: Todd Broch Reviewed-by: Vincent Palatin --- board/hoho/board.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'board/hoho/board.h') diff --git a/board/hoho/board.h b/board/hoho/board.h index 4ce3a5320e..b83bd832ec 100644 --- a/board/hoho/board.h +++ b/board/hoho/board.h @@ -44,6 +44,7 @@ #define CONFIG_USB_PD_IDENTITY_SW_VERS 1 #define CONFIG_USB_PD_LOGGING #define CONFIG_USB_PD_LOG_SIZE 256 +#define CONFIG_USB_PD_PORT_COUNT 1 #define CONFIG_USB_PD_TCPC #define CONFIG_USB_PD_TCPM_STUB #define CONFIG_USB_PD_NO_VBUS_DETECT @@ -89,6 +90,19 @@ enum usb_strings { USB_STR_COUNT }; +/* we are acting only as a sink */ +#define PD_DEFAULT_STATE PD_STATE_SNK_DISCONNECTED + +/* we are never a source : don't care about power supply */ +#define PD_POWER_SUPPLY_TURN_ON_DELAY 0 /* us */ +#define PD_POWER_SUPPLY_TURN_OFF_DELAY 0 /* us */ + +/* Define typical operating power and max power */ +#define PD_OPERATING_POWER_MW 1000 +#define PD_MAX_POWER_MW 1500 +#define PD_MAX_CURRENT_MA 300 +#define PD_MAX_VOLTAGE_MV 5000 + #endif /* !__ASSEMBLER__ */ /* USB Device class */ -- cgit v1.2.1