diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2020-06-19 10:18:40 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-09 14:23:53 +0000 |
commit | fbaaa105e4ee5aab61e07a67ed5708be514b876b (patch) | |
tree | 59645ab02d9e152346acff89940493aeae30fe6d /board/lazor/board.h | |
parent | bd4116995dc02b644d8ea7da840a79b69c94adac (diff) | |
download | chrome-ec-fbaaa105e4ee5aab61e07a67ed5708be514b876b.tar.gz |
Lazor: Modify battery information
Define board_battery_info and CONFIG_BATTERY_FUEL_GAUGE to get
battery info by reading manufacture name.
BUG=none
BRANCH=none
TEST=recognize the battery correctly, and cut off the battery
successfully by console command and ectool
Change-Id: I394c7526f17151350ca1e50e4fe638af93493699
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2253483
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/lazor/board.h')
-rw-r--r-- | board/lazor/board.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/lazor/board.h b/board/lazor/board.h index f8dcab84c1..2995dfe0a8 100644 --- a/board/lazor/board.h +++ b/board/lazor/board.h @@ -22,6 +22,10 @@ /* Internal SPI flash on NPCX7 */ #define CONFIG_FLASH_SIZE (512 * 1024) /* 512KB internal spi flash */ +/* Battery */ +#define CONFIG_BATTERY_DEVICE_CHEMISTRY "LION" +#define CONFIG_BATTERY_FUEL_GAUGE + /* BC 1.2 Charger */ #define CONFIG_BC12_DETECT_PI3USB9201 @@ -83,6 +87,13 @@ enum pwm_channel { PWM_CH_COUNT }; +/* List of possible batteries */ +enum battery_type { + BATTERY_AP16L5J, + BATTERY_AP16L5J_009, + BATTERY_TYPE_COUNT, +}; + /* Custom function to indicate if sourcing VBUS */ int board_is_sourcing_vbus(int port); /* Enable VBUS sink for a given port */ |