diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-01-26 09:21:16 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-26 21:01:50 +0000 |
commit | 2737321ecda82335bada3aa4d6530de83a8985bb (patch) | |
tree | 952d02790e4bb177648bcf62a0bc17550430c0f2 /driver/charger/bq24773.c | |
parent | 6fb8ab3369f454e51fa2ef6bcbf14dc0a9919912 (diff) | |
download | chrome-ec-2737321ecda82335bada3aa4d6530de83a8985bb.tar.gz |
bq24773: turn off prochot warning
Turn off prochot warning on bq24773 by default because our
battery can always supply enough power for the whole system
so we don't need to throttle the CPU if the BQ senses too much
input current.
BUG=chrome-os-partner:34885
BRANCH=samus
TEST=force BQ into it's prochot condition on samus by setting
the charging voltage temporarily below the battery voltage, which
causes INA to turn off and the BQ to think IADP is > 4.1A. in
this condition PROCHOT is normally asserted and CPU slows down,
but with this patch PROCHOT is not asserted and the CPU does not
slow down.
Change-Id: I658dbe568b7bfe94944ef90d6d59656a0683c8a0
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/243231
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Diffstat (limited to 'driver/charger/bq24773.c')
-rw-r--r-- | driver/charger/bq24773.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/charger/bq24773.c b/driver/charger/bq24773.c index 45faff9d23..fc5e7c688c 100644 --- a/driver/charger/bq24773.c +++ b/driver/charger/bq24773.c @@ -184,6 +184,10 @@ int charger_post_init(void) if (rv) return rv; + /* Turn off PROCHOT warning */ + rv = i2c_write8(I2C_PORT_CHARGER, BQ24773_ADDR, + BQ24773_PROCHOT_OPTION1, 0); + #ifdef CONFIG_CHARGER_ILIM_PIN_DISABLED /* Read the external ILIM pin enabled flag. */ rv = i2c_read16(I2C_PORT_CHARGER, BQ24773_ADDR, |