diff options
Diffstat (limited to 'board/grunt')
-rw-r--r-- | board/grunt/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/grunt/board.c b/board/grunt/board.c index d87f074e09..597ff0fa10 100644 --- a/board/grunt/board.c +++ b/board/grunt/board.c @@ -17,6 +17,7 @@ #include "driver/accel_kionix.h" #include "driver/accel_kx022.h" #include "driver/accelgyro_bmi160.h" +#include "driver/bc12/bq24392.h" #include "driver/led/lm3630a.h" #include "driver/ppc/sn5s330.h" #include "driver/tcpm/anx74xx.h" @@ -200,6 +201,20 @@ const struct ppc_config_t ppc_chips[] = { }; const unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); +/* BC 1.2 chip Configuration */ +const struct bq24392_config_t bq24392_config[CONFIG_USB_PD_PORT_COUNT] = { + [USB_PD_PORT_ANX74XX] = { + .chip_enable_pin = GPIO_USB_C0_BC12_VBUS_ON_L, + .chg_det_pin = GPIO_USB_C0_BC12_CHG_DET, + .flags = BQ24392_FLAGS_ENABLE_ACTIVE_LOW, + }, + [USB_PD_PORT_PS8751] = { + .chip_enable_pin = GPIO_USB_C1_BC12_VBUS_ON_L, + .chg_det_pin = GPIO_USB_C1_BC12_CHG_DET, + .flags = BQ24392_FLAGS_ENABLE_ACTIVE_LOW, + }, +}; + const int usb_port_enable[CONFIG_USB_PORT_POWER_SMART_PORT_COUNT] = { GPIO_EN_USB_A0_5V, GPIO_EN_USB_A1_5V, |