summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-11-01 12:46:33 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-11-08 19:33:39 +0000
commit81999afdd5b07c3244521bf54224d1c997b0422e (patch)
tree96ddf480bdde5157c640fa84f98b63134c1dfe81
parent983233c95c3f6c033d4ff81ad689c7855323cb6e (diff)
downloadchrome-ec-81999afdd5b07c3244521bf54224d1c997b0422e.tar.gz
Nami: Apply full factor to full capacity
This change applies 'full factor' to the battery full capacity. It makes the rest of the system see consistent charge percentage behavior. More concretely, with this change we can get rid of 'full factor' from Powerd because it sees the current charge equal to the full capacity. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> #CQ-DEPEND=CL:1314048 BUG=b:109954565,b:80270446 BRANCH=none TEST=Verify display percentages printed by EC and power_supply_info move up synchronously on charge and the LED and the taskbar icon turn to full at the same time. Change-Id: Ic16463d457a6c5c2860b97476c78bdafb9021572 Reviewed-on: https://chromium-review.googlesource.com/c/1327125 Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--board/nami/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/nami/board.h b/board/nami/board.h
index 1d5aef6a2e..ec0a05333b 100644
--- a/board/nami/board.h
+++ b/board/nami/board.h
@@ -88,6 +88,8 @@
#define CONFIG_BATTERY_SMART
#define CONFIG_PWR_STATE_DISCHARGE_FULL
#define CONFIG_BATTERY_REQUESTS_NIL_WHEN_DEAD
+#undef CONFIG_BATT_HOST_FULL_FACTOR
+#define CONFIG_BATT_HOST_FULL_FACTOR 100
/* Charger */
#define CONFIG_CHARGE_MANAGER