From c7e869cb1cd4f51a302fd1e807be9aaafd605851 Mon Sep 17 00:00:00 2001 From: Zick Wei Date: Wed, 15 Jul 2020 11:16:38 +0800 Subject: morphius: support aoz ppc only There is a limitation on TCPC NCT3807, which not support internal pull down on gpio. We only use ppc AOZ1380 on board version 3. BUG=b:156552519, b:161215922 BRANCH=none TEST=make BOARD=morphius Signed-off-by: Zick Wei Change-Id: I3ab3fc86ae55939e1a7d73bef9d27719378736ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2297216 Reviewed-by: Edward Hill Reviewed-by: Denis Brockus Commit-Queue: Edward Hill --- board/morphius/board.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'board/morphius/board.c') diff --git a/board/morphius/board.c b/board/morphius/board.c index ccebea4e9e..f7674273d2 100644 --- a/board/morphius/board.c +++ b/board/morphius/board.c @@ -260,7 +260,6 @@ enum gpio_signal gpio_ec_ps2_reset = GPIO_EC_PS2_RESET_V1; static void board_remap_gpio(void) { uint32_t board_ver = 0; - int ppc_id = 0; cbi_get_board_version(&board_ver); @@ -272,9 +271,7 @@ static void board_remap_gpio(void) ccprintf("GPIO_EC_PS2_RESET_V0\n"); } - ioex_get_level(IOEX_PPC_ID, &ppc_id); - - support_aoz_ppc = ((board_ver >= 3) && !ppc_id); + support_aoz_ppc = (board_ver == 3); if (support_aoz_ppc) { ccprintf("DB USBC PPC aoz1380\n"); ppc_chips[USBC_PORT_C1].drv = &aoz1380_drv; -- cgit v1.2.1