We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2db4aa8 commit 0585207Copy full SHA for 0585207
zephyr/program/lotus/azalea/src/charger.c
@@ -93,10 +93,15 @@ static void charger_chips_init(void)
93
* Set the MaxSystemVoltage to battery maximum,
94
* 0x00=disables switching charger states
95
*/
96
-
97
- if (i2c_write16(I2C_PORT_CHARGER, ISL9241_ADDR_FLAGS,
98
- ISL9241_REG_MAX_SYSTEM_VOLTAGE, 0x3C28))
99
- goto init_fail;
+ if (value == -1) {
+ if (i2c_write16(I2C_PORT_CHARGER, ISL9241_ADDR_FLAGS,
+ ISL9241_REG_MAX_SYSTEM_VOLTAGE, 15400))
+ goto init_fail;
100
+ } else {
101
102
+ ISL9241_REG_MAX_SYSTEM_VOLTAGE, bi->voltage_max))
103
104
+ }
105
106
/*
107
* Set the MinSystemVoltage to battery minimum,
0 commit comments