diff options
author | Nick Sanders <nsanders@chromium.org> | 2016-07-26 08:22:34 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-08 18:22:30 -0700 |
commit | 3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4 (patch) | |
tree | fb568512db8acb0c9acc6a94344117ada540c6dc /board/servo_micro | |
parent | 1e7b5f3c071d219df2866004980662622ea810d8 (diff) | |
download | chrome-ec-3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4.tar.gz |
servo_v4: servo_micro: cr50: fix usb power declaration
Servo_micro sets usb config maxpower to 100mA.
Servo_v4 is set to self powered as it's powered by a
shared vbus and not be the bub it's connected to.
cr50 is self powered as no power is transmitted as part of CCD.
* Add CONFIG_USB_MAXPOWER_MA to define USB maximum power draw requested
per board.
* Add CONFIG_USB_SELF_POWERED to indicate that a device is not
powered by allocated USB power.
BUG=chromium:631302
TEST=lsusb reports 100mA bMaxPower (micro), Self powered (v4)
BRANCH=None
Change-Id: I79b8ce46f32d94f16104a4a8080104e30dce7f2c
Signed-off-by: Nick Sanders <nsanders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/363153
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/servo_micro')
-rw-r--r-- | board/servo_micro/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/servo_micro/board.h b/board/servo_micro/board.h index 03e583afeb..b2543c3ac3 100644 --- a/board/servo_micro/board.h +++ b/board/servo_micro/board.h @@ -35,6 +35,9 @@ #define CONFIG_USB_CONSOLE #define CONFIG_USB_UPDATE +#undef CONFIG_USB_MAXPOWER_MA +#define CONFIG_USB_MAXPOWER_MA 100 + #define CONFIG_USB_SERIALNO #define DEFAULT_SERIALNO "Uninitialized" |