summaryrefslogtreecommitdiff
path: root/board/nami/board.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-11-01 12:46:33 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-11-15 13:16:04 -0800
commit43085b3aafbc7be83707559988c7d2695fa5c34f (patch)
tree96efe5f6b895b8aa96344dca20689f84c888ef71 /board/nami/board.h
parent26e2bf4b2fe27d2cfcbb629c6a830dd0c979ad3b (diff)
downloadchrome-ec-43085b3aafbc7be83707559988c7d2695fa5c34f.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/1315411 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/nami/board.h')
-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 4d9d88dd80..c7e3ee96bd 100644
--- a/board/nami/board.h
+++ b/board/nami/board.h
@@ -87,6 +87,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