summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoro Chen <koro.chen@mediatek.com>2016-06-28 09:48:08 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-06-29 05:15:41 -0700
commit535448d29ec9751b0dffa8aba67b32ad05729974 (patch)
tree161297c7be4eece313fdf00464869f34120f6313
parentac8e2c3c5025dfd2bdac5faa9aebb18b3b48d9ac (diff)
downloadchrome-ec-535448d29ec9751b0dffa8aba67b32ad05729974.tar.gz
elm: Choose low input voltage whenever possible
To achieve higher power efficiency, we want the input voltage to be as low as possible. If the PD source advertise several choices over PD_MAX_POWER_MW, choose the one with the lowest voltage. BRANCH=none BUG=chrome-os-partner:54519 TEST=Plug in Liteon charger and make sure 15V/3A is selected Change-Id: I6157eb94a1cb45cd537acc79c377db2cff09d922 Signed-off-by: Koro Chen <koro.chen@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/356317 Reviewed-by: Rong Chang <rongchang@chromium.org>
-rw-r--r--board/elm/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/elm/board.h b/board/elm/board.h
index 1edd4bcc60..41fdc60a6f 100644
--- a/board/elm/board.h
+++ b/board/elm/board.h
@@ -206,6 +206,9 @@ enum temp_sensor_id {
#define PD_MAX_CURRENT_MA CONFIG_CHARGER_MAX_INPUT_CURRENT
#define PD_MAX_VOLTAGE_MV 20000
+/* The lower the input voltage, the higher the power efficiency. */
+#define PD_PREFER_LOW_VOLTAGE
+
/* Reset PD MCU */
void board_reset_pd_mcu(void);
/* Set AP reset pin according to parameter */