mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
6fb8ab3369
commit
2737321ecd
@@ -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,
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
/* Chip specific commands */
|
||||
#define BQ24773_CHARGE_OPTION0 0x00
|
||||
#define BQ24773_CHARGE_OPTION1 0x02
|
||||
#define BQ24773_PROTECT_OPTION0 0x04
|
||||
#define BQ24773_PROTECT_OPTION1 0x06
|
||||
#define BQ24773_PROTECT_STATUS 0x08
|
||||
#define BQ24773_PROCHOT_OPTION0 0x04
|
||||
#define BQ24773_PROCHOT_OPTION1 0x06
|
||||
#define BQ24773_PROCHOT_STATUS 0x08
|
||||
#define BQ24773_DEVICE_ADDRESS 0x09
|
||||
#define BQ24773_CHARGE_CURRENT 0x0A
|
||||
#define BQ24773_MAX_CHARGE_VOLTAGE 0x0C
|
||||
|
||||
Reference in New Issue
Block a user