diff options
author | Scott Collyer <scollyer@google.com> | 2019-04-18 15:19:28 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-20 03:58:33 -0700 |
commit | afbb1b511cdf5ab36ce2f6969ac701322fe91517 (patch) | |
tree | 6c3c7cc11abf6606634a09cf80ce310cc8c25891 /baseboard | |
parent | e25a0bc9539161c0222166b2d63057a4ecca4f7a (diff) | |
download | chrome-ec-afbb1b511cdf5ab36ce2f6969ac701322fe91517.tar.gz |
hatch/kohaku: Account for different bc1.2 chips
This CL moves bc1.2 configuration from baseboard.c/.h to the
board.c/.h files for hatch and kohaku.
BUG=b:130197995
BRANCH=none
TEST=make -j BOARD=hatch and make -j BOARD=kohaku both are successful
Change-Id: I2aa44d37a7a1d23196a766c95c59737838e9e09f
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1574788
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/hatch/baseboard.c | 13 | ||||
-rw-r--r-- | baseboard/hatch/baseboard.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/baseboard/hatch/baseboard.c b/baseboard/hatch/baseboard.c index 737e280eeb..debdd015c3 100644 --- a/baseboard/hatch/baseboard.c +++ b/baseboard/hatch/baseboard.c @@ -10,7 +10,6 @@ #include "charge_state_v2.h" #include "chipset.h" #include "console.h" -#include "driver/bc12/pi3usb9201.h" #include "driver/ppc/sn5s330.h" #include "driver/tcpm/anx7447.h" #include "driver/tcpm/ps8xxx.h" @@ -158,18 +157,6 @@ struct ppc_config_t ppc_chips[CONFIG_USB_PD_PORT_COUNT] = { }; unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); -const struct pi3usb2901_config_t pi3usb2901_bc12_chips[] = { - [USB_PD_PORT_TCPC_0] = { - .i2c_port = I2C_PORT_PPC0, - .i2c_addr = PI3USB9201_I2C_ADDR_3, - }, - - [USB_PD_PORT_TCPC_1] = { - .i2c_port = I2C_PORT_TCPC1, - .i2c_addr = PI3USB9201_I2C_ADDR_3, - }, -}; - /* Power Delivery and charging functions */ void baseboard_tcpc_init(void) { diff --git a/baseboard/hatch/baseboard.h b/baseboard/hatch/baseboard.h index dc05188075..7ffe1cc9c8 100644 --- a/baseboard/hatch/baseboard.h +++ b/baseboard/hatch/baseboard.h @@ -119,7 +119,6 @@ /* BC 1.2 */ #define CONFIG_USB_CHARGER -#define CONFIG_BC12_DETECT_PI3USB9201 /* Common Sensor Defines */ #define CONFIG_TABLET_MODE |