summaryrefslogtreecommitdiff
path: root/board/jerry/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/jerry/board.c')
-rw-r--r--board/jerry/board.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/jerry/board.c b/board/jerry/board.c
index 130d46b4a8..c99c6ac8a3 100644
--- a/board/jerry/board.c
+++ b/board/jerry/board.c
@@ -5,8 +5,10 @@
/* Veyron board-specific configuration */
#include "battery.h"
+#include "battery_smart.h"
#include "chipset.h"
#include "common.h"
+#include "driver/charger/bq24715.h"
#include "extpower.h"
#include "gpio.h"
#include "i2c.h"
@@ -45,6 +47,16 @@ const struct pwm_t pwm_channels[] = {
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
+/* Charger chips */
+const struct charger_config_t chg_chips[] = {
+ {
+ .i2c_port = I2C_PORT_CHARGER,
+ .i2c_addr_flags = CHARGER_ADDR_FLAGS,
+ .drv = &bq24715_drv,
+ },
+};
+const unsigned int chg_cnt = ARRAY_SIZE(chg_chips);
+
void board_config_pre_init(void)
{
/* enable SYSCFG clock */