@@ -74,13 +74,19 @@ static void charger_chips_init(void)
7474 CHARGER_SOLO , no_battery_current_limit_override_ma );
7575 }
7676
77+ /* According to Power team suggest, Set ACOK reference to 4.544V */
78+ if (i2c_write16 (I2C_PORT_CHARGER , ISL9241_ADDR_FLAGS ,
79+ ISL9241_REG_ACOK_REFERENCE , ISL9241_MV_TO_ACOK_REFERENCE (4207 )))
80+ goto init_fail ;
81+
82+
7783 /*
7884 * Set the MaxSystemVoltage to battery maximum,
7985 * 0x00=disables switching charger states
8086 */
8187
8288 if (i2c_write16 (I2C_PORT_CHARGER , ISL9241_ADDR_FLAGS ,
83- ISL9241_REG_MAX_SYSTEM_VOLTAGE , bi -> voltage_max ))
89+ ISL9241_REG_MAX_SYSTEM_VOLTAGE , 0x3C28 ))
8490 goto init_fail ;
8591
8692 /*
@@ -120,17 +126,6 @@ static void charger_chips_init(void)
120126 ISL9241_REG_CONTROL1 , val ))
121127 goto init_fail ;
122128
123- /* According to Power team suggest, Set ACOK reference to 4.544V */
124- if (i2c_write16 (I2C_PORT_CHARGER , ISL9241_ADDR_FLAGS ,
125- ISL9241_REG_ACOK_REFERENCE , 0x0B00 ))
126- goto init_fail ;
127-
128- if (i2c_read16 (I2C_PORT_CHARGER , ISL9241_ADDR_FLAGS ,
129- ISL9241_REG_ADAPTER_CUR_LIMIT1 , & value )) {
130- CPRINTS ("read charger control1 fail" );
131- }
132-
133-
134129 /* TODO: should we need to talk to PD chip after initial complete ? */
135130 CPRINTS ("ISL9241 customized initial complete! 3F:%d" , value );
136131 return ;
0 commit comments