Commit d1441b95 authored by Eric Kuzmenko's avatar Eric Kuzmenko
Browse files

Use 0x6b for the charge controller's slave address isntead of 0x68 (RTC's slave address)

parent 52cf86c8
Pipeline #5033 failed with stages
......@@ -213,12 +213,12 @@ void init_charger_bq25896(void)
u8 val;
/* limit the charge current to 1.6A */
i2c_reg_write(0x68, 0x12, 0x20);
i2c_reg_write(0x6b, 0x12, 0x20);
/* set the max voltage to 4.912V */
val = i2c_reg_read(0x68, 0x6);
val = i2c_reg_read(0x6b, 0x6);
val = (val & 0xFC) | 0x16 << 2;
i2c_reg_write(0x68, 0x6, val);
i2c_reg_write(0x6b, 0x6, 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