From c425ace909b134095698dd604eb685cd2f620256 Mon Sep 17 00:00:00 2001 From: Devin Lu Date: Tue, 3 Aug 2021 20:27:49 +0800 Subject: nct38xx: Split after-reset time Split after-reset time for NCT3807 and NCT3808, since the after-reset time is not the same. From the datasheet (section 4.4.2 Reset Timing) as following: * | Min | Max | * ----------------------+-------+-------+ * NCT3807 (single port) | x | 1.5ms | * ----------------------+-------+-------+ * NCT3808 (dual port) | x | 3ms | * ----------------------+-------+-------+ Currently the after-reset time for NCT3807 is zero. Change to 2ms to fit specification as well. BUG=none BRANCH=none TEST=On Redrix. Initial success with NCT3807. TEST=On Dirinboz. Initial success with NCT3807. TEST=make buildall. Signed-off-by: Devin Lu Change-Id: I1f47f57c0d8955946b1c2522e1a1736739217f41 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068492 Reviewed-by: caveh jalali --- board/redrix/usbc_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/redrix') diff --git a/board/redrix/usbc_config.c b/board/redrix/usbc_config.c index 906147a696..f0f39b6d87 100644 --- a/board/redrix/usbc_config.c +++ b/board/redrix/usbc_config.c @@ -197,8 +197,8 @@ void board_reset_pd_mcu(void) nct38xx_reset_notify(USBC_PORT_C1); /* wait for chips to come up */ - if (NCT38XX_RESET_POST_DELAY_MS != 0) - msleep(NCT38XX_RESET_POST_DELAY_MS); + if (NCT3807_RESET_POST_DELAY_MS != 0) + msleep(NCT3807_RESET_POST_DELAY_MS); } static void board_tcpc_init(void) -- cgit v1.2.1