diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-06-03 11:35:01 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-18 21:11:15 +0000 |
commit | b162ac513aa801b53d17a53591b73a303c675bdc (patch) | |
tree | effaec28303f365770592c59fd528059b259522f /driver/ina231.c | |
parent | 5fa52a895b6acd5d976a24dd571a44eaa3cb1ad1 (diff) | |
download | chrome-ec-b162ac513aa801b53d17a53591b73a303c675bdc.tar.gz |
twinkie: initialize INAs at startup
Disable INA1 to avoid leaking current from VCONN2.
Put the calibration in INA0.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=chrome-os-partner:28337
TEST=plug Twinkie and measure VBUS current/voltage.
Change-Id: I6b063460a86a7a3dd87ec5e3c2c9b992b66db146
Reviewed-on: https://chromium-review.googlesource.com/204468
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'driver/ina231.c')
-rw-r--r-- | driver/ina231.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/ina231.c b/driver/ina231.c index 73f03910e2..8736e916e9 100644 --- a/driver/ina231.c +++ b/driver/ina231.c @@ -141,6 +141,6 @@ static int command_ina(int argc, char **argv) return EC_ERROR_INVAL; } DECLARE_CONSOLE_COMMAND(ina, command_ina, - "[config|calib|mask|alert <val>]", + "<index> [config|calib|mask|alert <val>]", "INA231 power/current sensing", NULL); |