From e03bbafca5d83361f32233a6bfd09c65702102b6 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Mon, 25 May 2020 13:53:35 +0800 Subject: poppy: Disable PU on GPIO10 For NPCX5, when CR_SIN is selected via DEVALTC.UART_SL2, the PU/PD is selected according to GPIO10 configuration (and not according to GPIO64). Also, disable the relevant WKIEN bit for GPIO10. BRANCH=poppy BUG=b:111215677 TEST=Boot soraka Change-Id: Icee01043dcd562f9b72f2097b9a988d5535e0ffc Signed-off-by: Nicolas Boichat Signed-off-by: CHLin Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2214454 --- board/poppy/board.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board/poppy/board.c') diff --git a/board/poppy/board.c b/board/poppy/board.c index cceff650b1..32d386f0a5 100644 --- a/board/poppy/board.c +++ b/board/poppy/board.c @@ -559,6 +559,16 @@ static void board_init(void) } #endif +#ifndef BOARD_LUX + /* + * see (b/111215677): setting the internal PU/PD of the unused pin + * GPIO10 affects the ball K10 when it is selected to CR_SIN. + * Disabing the WKINEN bit of GPIO10 insteading setting its PU/PD to + * bypass this issue. + */ + NPCX_WKINEN(MIWU_TABLE_1, MIWU_GROUP_2) &= 0xFE; +#endif + /* Enable Gyro interrupts */ gpio_enable_interrupt(GPIO_ACCELGYRO3_INT_L); -- cgit v1.2.1