summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2019-01-19 14:35:32 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-23 10:47:33 -0800
commit62118f0130fbd11c9f55c98988bede2cbaab7da4 (patch)
tree37e66b13ffdb310e1756ea10094abf5e4b320ccd
parent4ed20a85abc7e850d8ba28b99e517407596849cd (diff)
downloadchrome-ec-62118f0130fbd11c9f55c98988bede2cbaab7da4.tar.gz
rammus: fix incorrect power mode configuration for the USB Type-A
On Rammus, the power mode of the USB Type-A is CDP. However, the default configuration is SDP2. We don't meet any problem on previous setting because of missing CONFIG_USB_PORT_POWER_SMART_INVERTED. This patch fixes the incorrect CONFIG in board.h. BUG=none BRANCH=firmware-rammus-11275 TEST=make -j buildall connect phone to type-a port, CDP works Change-Id: I19a6f2c01faa452131fa036a28be2fc37ce06e58 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1424039 Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--board/rammus/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/rammus/board.h b/board/rammus/board.h
index 3eba283818..29209ec811 100644
--- a/board/rammus/board.h
+++ b/board/rammus/board.h
@@ -96,6 +96,8 @@
/* USB-A config */
#define CONFIG_USB_PORT_POWER_SMART
#define CONFIG_USB_PORT_POWER_SMART_CDP_SDP_ONLY
+#define CONFIG_USB_PORT_POWER_SMART_DEFAULT_MODE USB_CHARGE_MODE_CDP
+#define CONFIG_USB_PORT_POWER_SMART_INVERTED
#undef CONFIG_USB_PORT_POWER_SMART_PORT_COUNT
#define CONFIG_USB_PORT_POWER_SMART_PORT_COUNT 1
#define GPIO_USB1_ILIM_SEL GPIO_USB_A_CHARGE_EN_L