diff options
author | wen zhang <zhangwen6@huaqin.corp-partner.google.com> | 2023-05-12 01:29:00 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-11 19:38:10 +0000 |
commit | 76d2b9b1e47ba721d83ada33f18a1aab28a80ea7 (patch) | |
tree | 65b93d9e21ea9062d0a37bc530dbca23efc667e4 /board/morphius | |
parent | 3d5b996f731dc2697f1ea97a68f06f8493863912 (diff) | |
download | chrome-ec-76d2b9b1e47ba721d83ada33f18a1aab28a80ea7.tar.gz |
battery: Deprecate CONFIG_BATTERY_LEVEL_NEAR_FULL
Atlas, coral, corori, eve, morphius, primus, and rammus are setting
CONFIG_BATTERY_LEVEL_NEAR_FULL to custom values. This causes their LEDs
show 'full' while the display battery percentages are still < 100%.
We'll make these boards define CONFIG_BATT_HOST_FULL_FACTOR, instead.
And fix LED dts for some zephyr projects.
BUG=b:280818345
TEST=build pass
Change-Id: I98f97798ea99cc812671d5b31d64e92d55a1e05a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4523043
Commit-Queue: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Tested-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/morphius')
-rw-r--r-- | board/morphius/board.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/morphius/board.h b/board/morphius/board.h index b430055930..ca3ecf4f03 100644 --- a/board/morphius/board.h +++ b/board/morphius/board.h @@ -23,7 +23,8 @@ #define CONFIG_ASSERT_CCD_MODE_ON_DTS_CONNECT #undef CONFIG_LED_ONOFF_STATES -#define CONFIG_BATTERY_LEVEL_NEAR_FULL 91 +#undef CONFIG_BATT_HOST_FULL_FACTOR +#define CONFIG_BATT_HOST_FULL_FACTOR 91 #undef ZORK_PS8818_RX_INPUT_TERM #define ZORK_PS8818_RX_INPUT_TERM PS8818_RX_INPUT_TERM_85_OHM |