summaryrefslogtreecommitdiff
path: root/board/strago
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2017-08-24 13:08:07 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-28 15:24:10 -0700
commit52789bd7fd6307e2d48add81a325c1582303ea1b (patch)
tree419f6251cb2d69e75ec2445f0d9b5e6eafc1dd0e /board/strago
parente5c69151dfd895162118023b6c591686dd49d4c9 (diff)
downloadchrome-ec-52789bd7fd6307e2d48add81a325c1582303ea1b.tar.gz
usb_port_power_smart: Add CDP/SDP only option.
For some boards, the control lines to the charging port controller are all tied to a power rail. In essence, this leaves the ILIM_SEL as the only signal able to be controlled, which means that we only support CDP/SDP. This commit adds a new CONFIG_* option which describes this. CONFIG_USB_PORT_POWER_SMART_CDP_SDP_ONLY Additionally, some cleanup is made to not always assume the number of smart power ports. BUG=None BRANCH=None TEST=make -j buildall Change-Id: I080ccd67ffc20ccccf1e6b33a3cf9374a6b70ad6 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/634274 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/strago')
-rw-r--r--board/strago/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/strago/board.h b/board/strago/board.h
index 23100c9a25..f13e650008 100644
--- a/board/strago/board.h
+++ b/board/strago/board.h
@@ -57,6 +57,7 @@
#define CONFIG_USB_PORT_POWER_SMART
#define CONFIG_USB_PORT_POWER_SMART_SIMPLE
+#define GPIO_USB1_ILIM_SEL GPIO_USB_ILIM_SEL
#define CONFIG_TEMP_SENSOR
#define CONFIG_TEMP_SENSOR_TMP432