From 2e96374ae791e0781f3ce292d353340a32e73a70 Mon Sep 17 00:00:00 2001 From: Samsp_Liu Date: Wed, 22 Jul 2020 17:10:06 +0800 Subject: volteer: Support board-specific power parameters Separate usb pd power config from volteer baseboard to each project board. To meet different configurations on each board. BUG=b:159282888 BRANCH=none TEST=halvor test Change-Id: I5aba9c7c59ababd34e51906365b1ae2a28c256ea Signed-off-by: Samsp_Liu Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2312001 Tested-by: SamSP Liu Reviewed-by: Abe Levkoy Commit-Queue: Abe Levkoy --- board/volteer/board.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'board/volteer') diff --git a/board/volteer/board.h b/board/volteer/board.h index 170dbf58c1..cc90e36fd5 100644 --- a/board/volteer/board.h +++ b/board/volteer/board.h @@ -77,6 +77,20 @@ #define USBC_PORT_1_USB2_NUM 4 #define USBC_PORT_1_USB3_NUM 2 +/* TODO: b/144165680 - measure and check these values on Volteer */ +#define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */ +#define PD_POWER_SUPPLY_TURN_OFF_DELAY 30000 /* us */ +#define PD_VCONN_SWAP_DELAY 5000 /* us */ + +/* + * SN5S30 PPC supports up to 24V VBUS source and sink, however passive USB-C + * cables only support up to 60W. + */ +#define PD_OPERATING_POWER_MW 15000 +#define PD_MAX_POWER_MW 60000 +#define PD_MAX_CURRENT_MA 3000 +#define PD_MAX_VOLTAGE_MV 20000 + /* Enabling Thunderbolt-compatible mode */ #define CONFIG_USB_PD_TBT_COMPAT_MODE -- cgit v1.2.1