Commit dac0c7e1 authored by Angus Ainslie's avatar Angus Ainslie
Browse files

Merge branch 'devkit-bootloop' into 'devkit-bootloop'

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

See merge request !11
parents 18e65270 6cdaba8a
......@@ -213,15 +213,15 @@ 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);
/* limit the VINDPM to 3.9V */
i2c_reg_write(0x68, 0x0d, 0x8d);
i2c_reg_write(0x6b, 0x0d, 0x8d);
/* set the max voltage to 4.192V */
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