summaryrefslogtreecommitdiff
path: root/board/felwinter
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/felwinter
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/felwinter')
-rw-r--r--board/felwinter/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/felwinter/board.h b/board/felwinter/board.h
index 0ca6a59b9c..5327e8fec2 100644
--- a/board/felwinter/board.h
+++ b/board/felwinter/board.h
@@ -179,6 +179,7 @@
#define CONFIG_CHARGE_RAMP_SW
#define CONFIG_CHARGER_SENSE_RESISTOR 10
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10
+#undef CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT
#define CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT 10
#define CONFIG_KEYBOARD_REFRESH_ROW3