summaryrefslogtreecommitdiff
path: root/board/hatch
diff options
context:
space:
mode:
Diffstat (limited to 'board/hatch')
-rw-r--r--board/hatch/board.c13
-rw-r--r--board/hatch/board.h3
2 files changed, 16 insertions, 0 deletions
diff --git a/board/hatch/board.c b/board/hatch/board.c
index 4149445231..bd126051ef 100644
--- a/board/hatch/board.c
+++ b/board/hatch/board.c
@@ -13,6 +13,7 @@
#include "driver/accel_bma2x2.h"
#include "driver/accelgyro_bmi160.h"
#include "driver/als_opt3001.h"
+#include "driver/bc12/pi3usb9201.h"
#include "driver/ppc/sn5s330.h"
#include "driver/tcpm/anx7447.h"
#include "driver/tcpm/ps8xxx.h"
@@ -150,6 +151,18 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
}
};
+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,
+ },
+};
+
/******************************************************************************/
/* Sensors */
/* Base Sensor mutex */
diff --git a/board/hatch/board.h b/board/hatch/board.h
index ae8ceec43a..869372096d 100644
--- a/board/hatch/board.h
+++ b/board/hatch/board.h
@@ -64,6 +64,9 @@
#define CONFIG_USB_PORT_POWER_SMART_CDP_SDP_ONLY
#define GPIO_USB1_ILIM_SEL GPIO_EN_USB_A_LOW_PWR_OD
+/* BC 1.2 */
+#define CONFIG_BC12_DETECT_PI3USB9201
+
/* Volume Button feature */
#define CONFIG_VOLUME_BUTTONS
#define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL