From fca75f573ff913a5be050c7a13e7dcda6be68da2 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Wed, 16 Dec 2020 23:29:04 -0700 Subject: TCPMv2: Update source-out configs Now that the DPM will be handling source-out decisions for TCPMv2, remove references to its old configuration options from TCPMv2 boards in order to avoid any confusion as to what code is running now. Also remove the charge manager notifications of sink attach/detach since the policy is being centralized into the DPM. Note that the previous configuration options only ever allocated one 3.0 A port, and so the default number of 3.0 A ports has been set to 1. BRANCH=None BUG=b:168862110,b:141690755 TEST=make -j buildall Signed-off-by: Diana Z Change-Id: Ie452e3da32b04226503539daa67b6b9f4a58aa58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597431 Reviewed-by: Keith Short --- board/waddledee/usb_pd_policy.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'board/waddledee') diff --git a/board/waddledee/usb_pd_policy.c b/board/waddledee/usb_pd_policy.c index 9d53f20047..7046e25d6c 100644 --- a/board/waddledee/usb_pd_policy.c +++ b/board/waddledee/usb_pd_policy.c @@ -38,11 +38,6 @@ void pd_power_supply_reset(int port) if (prev_en) sm5803_set_vbus_disch(port, 1); -#ifdef CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT - /* Give back the current quota we are no longer using */ - charge_manager_source_port(port, 0); -#endif /* defined(CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT) */ - /* Notify host of power info change. */ pd_send_host_event(PD_EVENT_POWER_CHANGE); } @@ -62,11 +57,6 @@ int pd_set_power_supply_ready(int port) /* Provide Vbus */ charger_enable_otg_power(port, 1); -#ifdef CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT - /* Ensure we advertise the proper available current quota */ - charge_manager_source_port(port, 1); -#endif /* defined(CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT) */ - /* Notify host of power info change. */ pd_send_host_event(PD_EVENT_POWER_CHANGE); -- cgit v1.2.1