diff options
author | Ruben Rodriguez Buchillon <coconutruben@chromium.org> | 2017-11-28 11:01:47 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-16 04:08:26 -0800 |
commit | 51e9e69f386366256807e6f4ccdd258821cdcfe0 (patch) | |
tree | c6fc8260505edadf8da3e6e0237a7bc6b3906da3 /board/wheatley | |
parent | be1f97a2551549d81f77f0439a23683343234c40 (diff) | |
download | chrome-ec-51e9e69f386366256807e6f4ccdd258821cdcfe0.tar.gz |
power: introducing pwr_avg console command
pwr_avg provides an average voltage, current, and power over the last
1 minute. It's up to the battery drivers to implement this
functionality.
This change allows us to have better power tracking while minimizing
the power impact on the EC, because
- the pwr_avg command only needs to be called once every minute, and is
short, thus less expensive to parse on ECs without a UART buffer
- the work done to keep the avg is partially done by the batteries
already and it's just a question of retrieving it.
undefined on wheatley since no power debugging planned on that board.
usage:
> pwr_avg
mv = 7153
ma = -605
mw = -4327
BUG=chromium:752320
BRANCH=None
TEST=make buildall -j
Change-Id: Id1a3479d277aedf90dfa965afb4ee9136654b1cf
Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/823884
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/wheatley')
-rw-r--r-- | board/wheatley/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/wheatley/board.h b/board/wheatley/board.h index c3ccf33a84..84eb25091c 100644 --- a/board/wheatley/board.h +++ b/board/wheatley/board.h @@ -147,6 +147,7 @@ #undef CONFIG_CONSOLE_CMDHELP #undef CONFIG_CMD_I2C_SCAN #undef CONFIG_CONSOLE_HISTORY +#undef CONFIG_CMD_PWR_AVG /* Features of eSPI */ #undef CONFIG_ESPI /* Use eSPI protocol for host interface of x86 CPU */ |