summaryrefslogtreecommitdiff
path: root/board/pico
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-12-15 11:33:19 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-12 22:52:09 +0000
commit49abac39678928a242f94115f523ba462146412a (patch)
tree4f49575ca917686881027e18bfa17d6cbef6ece5 /board/pico
parent9a9669c83100f8833d066e8a0e58a561075c3e9f (diff)
downloadchrome-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/pico')
-rw-r--r--board/pico/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/pico/board.h b/board/pico/board.h
index 97128b54f1..1cfed1eba1 100644
--- a/board/pico/board.h
+++ b/board/pico/board.h
@@ -28,6 +28,7 @@
#define CONFIG_BATTERY_HW_PRESENT_CUSTOM
#define CONFIG_CHARGER_PSYS
+#undef CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT
#define CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT 5
#define CONFIG_CHARGER_RUNTIME_CONFIG