diff options
author | YongBeum.Ha <ybha@samsung.corp-partner.google.com> | 2020-03-20 14:48:17 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-25 19:15:48 +0000 |
commit | 11b0f59e33b4683225232c1ee809e78a89cd782c (patch) | |
tree | 5ace5115edae12a231a70a841d008daa2dee6d74 /board/nightfury | |
parent | 6f84456a665b04f67beb2b0ec0b25c5838cd566e (diff) | |
download | chrome-ec-11b0f59e33b4683225232c1ee809e78a89cd782c.tar.gz |
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 <ybha@samsung.corp-partner.google.com>
Change-Id: I0eaf4d3c9f09d005acafd5827d93b3367bc1db36
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2111913
Tested-by: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'board/nightfury')
-rw-r--r-- | board/nightfury/board.c | 23 | ||||
-rw-r--r-- | board/nightfury/board.h | 2 |
2 files changed, 12 insertions, 13 deletions
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 */ /* |