From 11b0f59e33b4683225232c1ee809e78a89cd782c Mon Sep 17 00:00:00 2001 From: "YongBeum.Ha" Date: Fri, 20 Mar 2020 14:48:17 +0900 Subject: nightfury : change BC1.2 IC to Pericom 9201 BC1.2 IC of nightfury is Pericom 9201. BUG=b:147798205 BRANCH=firmware-hatch-12672.B TEST=make -j BOARD=nightfury Signed-off-by: YongBeum.Ha Change-Id: I0eaf4d3c9f09d005acafd5827d93b3367bc1db36 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2111913 Tested-by: Jongpil Jung Reviewed-by: Tim Wawrzynczak Commit-Queue: Tim Wawrzynczak --- board/nightfury/board.c | 23 +++++++++++------------ board/nightfury/board.h | 2 +- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'board/nightfury') diff --git a/board/nightfury/board.c b/board/nightfury/board.c index 816623a1b2..fa182d62bf 100644 --- a/board/nightfury/board.c +++ b/board/nightfury/board.c @@ -15,7 +15,7 @@ #include "driver/als_bh1730.h" #include "driver/als_tcs3400.h" #include "driver/ppc/sn5s330.h" -#include "driver/bc12/max14637.h" +#include "driver/bc12/pi3usb9201.h" #include "driver/sync.h" #include "driver/tcpm/ps8xxx.h" #include "driver/tcpm/tcpci.h" @@ -143,17 +143,16 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { }; /* BC 1.2 chip Configuration */ -const struct max14637_config_t max14637_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { - { - .chip_enable_pin = GPIO_USB_C0_BC12_VBUS_ON, - .chg_det_pin = GPIO_USB_C0_BC12_CHG_DET_L, - .flags = MAX14637_FLAGS_CHG_DET_ACTIVE_LOW, - }, - { - .chip_enable_pin = GPIO_USB_C1_BC12_VBUS_ON, - .chg_det_pin = GPIO_USB_C1_BC12_CHG_DET_L, - .flags = MAX14637_FLAGS_CHG_DET_ACTIVE_LOW, - }, +const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = { + [USB_PD_PORT_TCPC_0] = { + .i2c_port = I2C_PORT_PPC0, + .i2c_addr_flags = PI3USB9201_I2C_ADDR_3_FLAGS, + }, + + [USB_PD_PORT_TCPC_1] = { + .i2c_port = I2C_PORT_TCPC1, + .i2c_addr_flags = PI3USB9201_I2C_ADDR_3_FLAGS, + }, }; /******************************************************************************/ diff --git a/board/nightfury/board.h b/board/nightfury/board.h index 9a0a8e6d6e..daf0f19c64 100644 --- a/board/nightfury/board.h +++ b/board/nightfury/board.h @@ -94,7 +94,7 @@ #define GPIO_PWR_LED_BLUE_L GPIO_LED_2_L /* BC 1.2 */ -#define CONFIG_BC12_DETECT_MAX14637 +#define CONFIG_BC12_DETECT_PI3USB9201 /* Charger features */ /* -- cgit v1.2.1