diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-03-19 16:50:15 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-22 07:32:43 +0000 |
commit | 40380658717904d61483e02f50ce590734872aba (patch) | |
tree | 53fba65db2745ebce56189882c6c8d957f0411d7 /include/driver | |
parent | b7c284cc45cc101b05e48ff97d995f6a2d34cdc7 (diff) | |
download | chrome-ec-40380658717904d61483e02f50ce590734872aba.tar.gz |
lazor: move declaration of battery_cell_type to ln9310.h
ln9310 driver depends on these functions (sadly), so it does not make
sense to be declaring them in board.h. Specifically, the Zephyr build
won't include Lazor's board.h.
ln9310.h is the best home I can think of for now. Ideally we could
refactor this later so that the ln9310 driver wasn't depending on
board-specific functions.
BUG=b:183054226
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I7c82d2ed3d3c16d8131238cd236741e31de5b0c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2776221
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/driver')
-rw-r--r-- | include/driver/ln9310.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/driver/ln9310.h b/include/driver/ln9310.h index 4cdcb156f5..07cff8ba97 100644 --- a/include/driver/ln9310.h +++ b/include/driver/ln9310.h @@ -185,4 +185,13 @@ void ln9310_interrupt(enum gpio_signal signal); /* Return the POWER_GOOD status */ int ln9310_power_good(void); +/* Battery cell type */ +enum battery_cell_type { + BATTERY_CELL_TYPE_UNKNOWN = 0, + BATTERY_CELL_TYPE_2S = 2, + BATTERY_CELL_TYPE_3S = 3 +}; + +enum battery_cell_type board_get_battery_cell_type(void); + #endif /* __CROS_EC_LN9310_H */ |