diff options
author | Diana Z <dzigterman@chromium.org> | 2020-03-12 15:39:34 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-16 19:11:45 +0000 |
commit | 27f5a494fc2d6f40b4f33f1f6887f0836ff7e195 (patch) | |
tree | e3bea712af60f3f196b8e8e4fe3c3979a7e3d3e7 /board/nami | |
parent | b9d829a21f2c4ea85d96ba7df8426720591cc75c (diff) | |
download | chrome-ec-27f5a494fc2d6f40b4f33f1f6887f0836ff7e195.tar.gz |
ISL923x: Accept charger chip for prochot functions
This commit moves the charger chip number into a parameter for the
isl923x driver, so it can be used for boards which use more than one
charger chip.
BUG=None
BRANCH=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ibfc7aaf30e2c00be0d1b2171052e15c3098516a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2101219
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/nami')
-rw-r--r-- | board/nami/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/nami/board.c b/board/nami/board.c index 9bbffdc755..358b0bbf22 100644 --- a/board/nami/board.c +++ b/board/nami/board.c @@ -1043,17 +1043,17 @@ static void board_init(void) swap(scancode_set2[0][4], scancode_set2[7][2]); #endif - isl923x_set_ac_prochot(3328 /* mA */); + isl923x_set_ac_prochot(CHARGER_SOLO, 3328 /* mA */); switch (oem) { case PROJECT_VAYNE: - isl923x_set_dc_prochot(11008 /* mA */); + isl923x_set_dc_prochot(CHARGER_SOLO, 11008 /* mA */); break; case PROJECT_PANTHEON: - isl923x_set_dc_prochot(9984 /* mA */); + isl923x_set_dc_prochot(CHARGER_SOLO, 9984 /* mA */); break; case PROJECT_SONA: - isl923x_set_dc_prochot(5888 /* mA */); + isl923x_set_dc_prochot(CHARGER_SOLO, 5888 /* mA */); break; case PROJECT_NAMI: case PROJECT_AKALI: |