diff options
author | Aseda Aboagye <aaboagye@google.com> | 2017-08-24 13:08:07 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-28 15:24:10 -0700 |
commit | 52789bd7fd6307e2d48add81a325c1582303ea1b (patch) | |
tree | 419f6251cb2d69e75ec2445f0d9b5e6eafc1dd0e /board/samus/board.h | |
parent | e5c69151dfd895162118023b6c591686dd49d4c9 (diff) | |
download | chrome-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/samus/board.h')
-rw-r--r-- | board/samus/board.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/samus/board.h b/board/samus/board.h index 59455e7822..82dc062518 100644 --- a/board/samus/board.h +++ b/board/samus/board.h @@ -80,6 +80,8 @@ #define CONFIG_USB_PORT_POWER_SMART #define CONFIG_USB_PORT_POWER_SMART_DEFAULT_MODE USB_CHARGE_MODE_CDP #define CONFIG_USB_PORT_POWER_SMART_INVERTED +#define GPIO_USB1_ILIM_SEL GPIO_USB1_ILIM_SEL_L +#define GPIO_USB2_ILIM_SEL GPIO_USB2_ILIM_SEL_L #define CONFIG_VBOOT_HASH #define CONFIG_WIRELESS #define CONFIG_WIRELESS_SUSPEND \ |