summaryrefslogtreecommitdiff
path: root/board/hammer/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/hammer/board.c')
-rw-r--r--board/hammer/board.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c
index 65588dda05..9b26322e49 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -4,8 +4,10 @@
*/
/* Hammer board configuration */
+#include "charger.h"
#include "clock.h"
#include "common.h"
+#include "driver/charger/isl923x.h"
#include "driver/led/lm3630a.h"
#include "ec_version.h"
#include "ec_ec_comm_slave.h"
@@ -98,6 +100,18 @@ const struct i2c_port_t i2c_ports[] = {
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
#endif
+#ifdef CONFIG_CHARGER_ISL9238
+const struct charger_config_t chg_chips[] = {
+ {
+ .i2c_port = I2C_PORT_CHARGER,
+ .i2c_addr_flags = ISL923X_ADDR_FLAGS,
+ .drv = &isl923x_drv,
+ },
+};
+
+const unsigned int chg_cnt = ARRAY_SIZE(chg_chips);
+#endif
+
#ifdef HAS_BACKLIGHT
/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
const struct pwm_t pwm_channels[] = {