diff options
author | Philip Chen <philipchen@google.com> | 2017-12-15 18:47:54 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-12-20 20:41:16 -0800 |
commit | 24018711127b64f97844e98dfbe6860f7f7cdb0a (patch) | |
tree | c06da0bac028f9c157bcbd82db9a824ba0511624 /board/scarlet | |
parent | efc338869d5c593100a6086f09534bfc6e34ce18 (diff) | |
download | chrome-ec-24018711127b64f97844e98dfbe6860f7f7cdb0a.tar.gz |
scarlet: Set the maximal source current as 1.5A
Scarlet has only one PD port.
Let's always source 1.5A instead of 3A.
BUG=b:70524967
BRANCH=none
TEST=Monitor PD packets, see Scarlet rev2 broadcast
source_cap as 'FixedVol=5.00V, MaxCur=1.50A'
Change-Id: Id9bcd69f3a20ef5eb55eb7b17539fd304abb08e4
Signed-off-by: Philip Chen <philipchen@google.com>
Diffstat (limited to 'board/scarlet')
-rw-r--r-- | board/scarlet/board.h | 1 | ||||
-rw-r--r-- | board/scarlet/usb_pd_policy.c | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/board/scarlet/board.h b/board/scarlet/board.h index 5d4f941441..f18d25df86 100644 --- a/board/scarlet/board.h +++ b/board/scarlet/board.h @@ -108,7 +108,6 @@ #define CONFIG_USB_PD_LOGGING #define CONFIG_USB_PD_PORT_COUNT 1 #define CONFIG_USB_PD_TCPM_FUSB302 -#define CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT TYPEC_RP_3A0 #define CONFIG_USB_PD_VBUS_DETECT_TCPC #define ADC_VBUS -1 #define CONFIG_USBC_SS_MUX diff --git a/board/scarlet/usb_pd_policy.c b/board/scarlet/usb_pd_policy.c index e256c915c1..3bc3d26749 100644 --- a/board/scarlet/usb_pd_policy.c +++ b/board/scarlet/usb_pd_policy.c @@ -31,10 +31,6 @@ const uint32_t pd_src_pdo[] = { PDO_FIXED(5000, 1500, PDO_FIXED_FLAGS), }; const int pd_src_pdo_cnt = ARRAY_SIZE(pd_src_pdo); -const uint32_t pd_src_pdo_max[] = { - PDO_FIXED(5000, 3000, PDO_FIXED_FLAGS), -}; -const int pd_src_pdo_max_cnt = ARRAY_SIZE(pd_src_pdo_max); const uint32_t pd_snk_pdo[] = { PDO_FIXED(5000, 500, PDO_FIXED_FLAGS), @@ -66,8 +62,6 @@ int board_vbus_source_enabled(int port) int pd_set_power_supply_ready(int port) { - /* Ensure we advertise the proper available current quota */ - charge_manager_source_port(port, 1); pd_set_vbus_discharge(port, 0); /* Provide VBUS */ @@ -92,9 +86,6 @@ void pd_power_supply_reset(int port) if (prev_en) pd_set_vbus_discharge(port, 1); - /* Give back the current quota we are no longer using */ - charge_manager_source_port(port, 0); - /* notify host of power info change */ pd_send_host_event(PD_EVENT_POWER_CHANGE); } |