diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-01-28 20:25:37 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-29 21:07:55 +0000 |
commit | 1bee9f2a9a560d21a4e10a1ba1b0ae1d281ae6f6 (patch) | |
tree | 3d18b6fb623a6de58b37531f4b86d418f362ae2c /board/waddledoo | |
parent | a68b6588f73d09654d5c12a9667468f1e9f1c196 (diff) | |
download | chrome-ec-1bee9f2a9a560d21a4e10a1ba1b0ae1d281ae6f6.tar.gz |
waddledoo: Add chg_chips table
Waddledoo was boot looping due to the fact that its charger init was
missing. This commit adds the chg_chips table containing the charger
ICs in the system.
BUG=b:147672225
BRANCH=None
TEST=Build and flash waddledoo, verify that the EC no longer boot loops.
Change-Id: I649cf3a4e1869eaeca69e69e96084cc17871194f
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2027078
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/waddledoo')
-rw-r--r-- | board/waddledoo/board.c | 16 | ||||
-rw-r--r-- | board/waddledoo/board.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/board/waddledoo/board.c b/board/waddledoo/board.c index e6316139d3..eb9354cedf 100644 --- a/board/waddledoo/board.c +++ b/board/waddledoo/board.c @@ -15,6 +15,7 @@ #include "driver/accel_bma2x2.h" #include "driver/accelgyro_bmi160.h" #include "driver/bc12/pi3usb9201.h" +#include "driver/charger/isl923x.h" #include "driver/retimer/nb7v904m.h" #include "driver/sync.h" #include "driver/tcpm/raa489000.h" @@ -274,6 +275,21 @@ int pd_snk_is_vbus_provided(int port) return regval & TCPC_REG_POWER_STATUS_VBUS_PRES; } +struct charger_config_t chg_chips[] = { + { + .i2c_port = I2C_PORT_USB_C0, + .i2c_addr_flags = ISL923X_ADDR_FLAGS, + .drv = &isl923x_drv, + }, + + { + .i2c_port = I2C_PORT_SUB_USB_C1, + .i2c_addr_flags = ISL923X_ADDR_FLAGS, + .drv = &isl923x_drv, + }, +}; +const unsigned int chg_cnt = ARRAY_SIZE(chg_chips); + const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = { { .i2c_port = I2C_PORT_USB_C0, diff --git a/board/waddledoo/board.h b/board/waddledoo/board.h index b4e06dffb6..f643c04ed9 100644 --- a/board/waddledoo/board.h +++ b/board/waddledoo/board.h @@ -14,6 +14,7 @@ /* Charger */ #define CONFIG_CHARGER_DISCHARGE_ON_AC #define CONFIG_CHARGER_RAA489000 +#define CONFIG_CHARGER_RUNTIME_CONFIG #define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 #define CONFIG_CHARGER_SENSE_RESISTOR 10 |