From 4a46e7af81d743ddd696a55fbbdbf9e6e890b97e Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Thu, 11 Mar 2021 10:15:49 -0800 Subject: dedede/raa489000: Set LPM exit debounce to 100ms For some reason, when the RAA489000 TCPC exits low power mode, CC status doesn't appear changed when using a servo v4. This causes us to think no connection is present and immediately but the IC back into low power mode. If we wait 100ms before querying the CC status reg, it seems that then the right values are reported. This commit adds a workaround by setting the LPM exit debounce time to 100ms. BUG=b:182429150,b:181308089 BRANCH=dedede TEST=Build and flash a board, verify that servo v4 with an external charger is detected. Signed-off-by: Aseda Aboagye Change-Id: Ic0c2406fa20d0dad82adee865cd87c46d7126b9f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752250 Tested-by: Aseda Aboagye Auto-Submit: Aseda Aboagye Reviewed-by: Diana Z Commit-Queue: Diana Z --- board/storo/board.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/storo') diff --git a/board/storo/board.h b/board/storo/board.h index 361f059060..6e2ccc6c8b 100644 --- a/board/storo/board.h +++ b/board/storo/board.h @@ -32,6 +32,8 @@ #define CONFIG_OCPC_DEF_RBATT_MOHMS 22 /* R_DS(on) 11.6mOhm + 10mOhm sns rstr */ #define CONFIG_OCPC #undef CONFIG_CHARGER_SINGLE_CHIP +#undef CONFIG_USB_PD_TCPC_LPM_EXIT_DEBOUNCE +#define CONFIG_USB_PD_TCPC_LPM_EXIT_DEBOUNCE (100 * MSEC) #define GPIO_USB_C1_INT_ODL GPIO_SUB_USB_C1_INT_ODL -- cgit v1.2.1