Skip to content

Commit 2db4aa8

Browse files
committed
Azalea: enable ISL9241_CONTROL3_ENABLE_ADC
Signed-off-by: Josh-Tsai <josh_tsai@compal.com>
1 parent 876634f commit 2db4aa8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

common/charge_state.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,8 +1917,6 @@ int charge_set_input_current_limit(int ma, int mv)
19171917
}
19181918
#endif
19191919

1920-
CPRINTS("ComCharger: %dmA, %dmV", ma, mv);
1921-
19221920
if (IS_ENABLED(CONFIG_OCPC))
19231921
chgnum = charge_get_active_chg_chip();
19241922
if (IS_ENABLED(CONFIG_EC_EC_COMM_BATTERY_CLIENT))

zephyr/program/lotus/azalea/src/charger.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ static void charger_chips_init(void)
6464
* [14]: ACLIM Reload (Do not reload)
6565
*/
6666
if (i2c_write16(I2C_PORT_CHARGER, ISL9241_ADDR_FLAGS,
67-
ISL9241_REG_CONTROL3, ISL9241_CONTROL3_ACLIM_RELOAD))
67+
ISL9241_REG_CONTROL3,
68+
(ISL9241_CONTROL3_ACLIM_RELOAD | ISL9241_CONTROL3_ENABLE_ADC)))
6869
goto init_fail;
6970

7071
value = battery_is_charge_fet_disabled();
@@ -191,8 +192,6 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
191192
charge_ma = prochot_ma - 128;
192193
}
193194

194-
CPRINTS("Charger:%d mA", charge_ma);
195-
196195
charge_set_input_current_limit(charge_ma, charge_mv);
197196
/* sync-up ac prochot with current change */
198197
isl9241_set_ac_prochot(0, prochot_ma);

0 commit comments

Comments
 (0)