Commit 40d2035f authored by Eric Kuzmenko's avatar Eric Kuzmenko
Browse files

Correctly set the maximum battery charge current to 1.6A and the maximum...

Correctly set the maximum battery charge current to 1.6A and the maximum battery voltage to 4.192V in the SPL
parent dac0c7e1
......@@ -213,15 +213,15 @@ void init_charger_bq25896(void)
u8 val;
/* limit the charge current to 1.6A */
i2c_reg_write(0x6b, 0x12, 0x20);
i2c_reg_write(0x6b, 0x04, 0x19);
/* limit the VINDPM to 3.9V */
i2c_reg_write(0x6b, 0x0d, 0x8d);
/* set the max voltage to 4.192V */
val = i2c_reg_read(0x6b, 0x6);
val = (val & 0xFC) | 0x16 << 2;
i2c_reg_write(0x6b, 0x6, val);
val = i2c_reg_read(0x6b, 0x06);
val = (val & ~0xfc) | (0x16 << 2);
i2c_reg_write(0x6b, 0x06, val);
}
#define LDO_VOLT_EN (1 << 6)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment