diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-05-28 10:48:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-20 16:35:56 +0000 |
commit | e372c02db2869992af492a57b3ee988f2a1a7e21 (patch) | |
tree | 6a07eee7a6c3c1db9b1a829f123093d3434f033d | |
parent | 6d93237941a6bf7dd080895531683168d75f01a3 (diff) | |
download | chrome-ec-e372c02db2869992af492a57b3ee988f2a1a7e21.tar.gz |
Atlas: Define chg_chips
This patch adds chg_chips[] to board.c to make Atlas compatible with
the multi-charger framework (introduced by CL:2008451 in ToT).
BUG=b:188457962
BRANCH=none
TEST=make runhosttests
Cq-Depend: chromium:3105739
Change-Id: Ifdb507de24c5d0dde55b9d8b77e1756f351c630a
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3107851
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | board/atlas/board.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c index faf36caa68..b12dec027a 100644 --- a/board/atlas/board.c +++ b/board/atlas/board.c @@ -15,6 +15,7 @@ #include "console.h" #include "driver/als_opt3001.h" #include "driver/pmic_bd99992gw.h" +#include "driver/charger/isl923x.h" #include "driver/tcpm/ps8xxx.h" #include "driver/tcpm/tcpci.h" #include "driver/tcpm/tcpm.h" @@ -164,6 +165,15 @@ const struct i2c_port_t i2c_ports[] = { }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); +/* Charger Chips */ +const struct charger_config_t chg_chips[] = { + { + .i2c_port = I2C_PORT_CHARGER, + .i2c_addr_flags = ISL923X_ADDR, + .drv = &isl923x_drv, + }, +}; + /* TCPC mux configuration */ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { { |