diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-12-15 11:33:19 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-12 22:52:09 +0000 |
commit | 49abac39678928a242f94115f523ba462146412a (patch) | |
tree | 4f49575ca917686881027e18bfa17d6cbef6ece5 /board/gelarshie | |
parent | 9a9669c83100f8833d066e8a0e58a561075c3e9f (diff) | |
download | chrome-ec-49abac39678928a242f94115f523ba462146412a.tar.gz |
Default charger current derating to 5%
Not derating seems like a common pitfall that can cause problems with
some chargers, so set a reasonably conservative default.
5% is chosen as the most common derating factor used among boards today
(counting occurrences in source code, so this may undercount 5%
occurrences because several projects set 5% at the project rather than
board-level):
1. 38 x 5%
2. 23 x 4%
3. 6 x 10%
3. 2 x 3%
4. 1 x 2%
Boards that currently configure this setting are modified only to
continue building without warnings regardless of whether they use the
new default value in order to signal that they were explicitly
configured.
BUG=b:260774380
TEST=make buildall / zmake build -a
BRANCH=none
Change-Id: I017849d38572fbc48090ae1fa2c539b808e426f9
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4109651
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'board/gelarshie')
-rw-r--r-- | board/gelarshie/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/gelarshie/board.h b/board/gelarshie/board.h index 737f005639..65016ceb75 100644 --- a/board/gelarshie/board.h +++ b/board/gelarshie/board.h @@ -44,6 +44,7 @@ #define CONFIG_BATTERY_VENDOR_PARAM /* charger margin */ +#undef CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT #define CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT 5 /* Enable PD3.0 */ |