summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-07-07 16:50:06 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-08 04:24:38 +0000
commit2d1509cd16d8f0a2c6a58bd5ddd8dfac98e34683 (patch)
tree2eb42d358b6a812fa3faba69b5a6f1cb845b2ee4
parent9f8fabbe07a70dff2b0f424b539fd94e40e29d00 (diff)
downloadchrome-ec-2d1509cd16d8f0a2c6a58bd5ddd8dfac98e34683.tar.gz
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 <vpalatin@chromium.org> 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 <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/firefly/usb_pd_policy.c2
1 files changed, 1 insertions, 1 deletions
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)
{