From 62118f0130fbd11c9f55c98988bede2cbaab7da4 Mon Sep 17 00:00:00 2001 From: Zhuohao Lee Date: Sat, 19 Jan 2019 14:35:32 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1424039 Reviewed-by: Jett Rink --- board/rammus/board.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1