From 2d1509cd16d8f0a2c6a58bd5ddd8dfac98e34683 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 7 Jul 2014 16:50:06 -0700 Subject: [PATCH] firefly: switch on 5V LED by default The default VBUS voltage is 5V, let's switch on the matching LED rather no LED when no voltage has been selected. This allows to know that the board is powered. Signed-off-by: Vincent Palatin BRANCH=none BUG=none TEST=power up Firefly and see the 5V LED ON (if the cable is plug) or blinking (if the cable is unplug). Change-Id: I8f6525bc6f901daf21af9b20eede2a9b1e8dbfdf Reviewed-on: https://chromium-review.googlesource.com/206940 Tested-by: Vincent Palatin Reviewed-by: Alec Berg Commit-Queue: Vincent Palatin --- board/firefly/usb_pd_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/firefly/usb_pd_policy.c b/board/firefly/usb_pd_policy.c index a526702b13..14bb8dbf69 100644 --- a/board/firefly/usb_pd_policy.c +++ b/board/firefly/usb_pd_policy.c @@ -35,7 +35,7 @@ const uint32_t pd_snk_pdo[] = { const int pd_snk_pdo_cnt = ARRAY_SIZE(pd_snk_pdo); /* Desired voltage requested as a sink (in millivolts) */ -static unsigned select_mv = -1; /* no valid selection */ +static unsigned select_mv = 5000; int pd_choose_voltage(int cnt, uint32_t *src_caps, uint32_t *rdo) {