Skip to content

Commit e388bb0

Browse files
LeoCX-TsaiJohnAZoidberg
authored andcommitted
fwk: lotus: modify ina236 setting
According to Power team, 240w adp will trigger ina236 prochot Follow power team's suggestion to set the register enlarge the alert current limit(0x7) same with 180w BRANCH=fwk-tulip-29169 BUG=https://app.clickup.com/t/86eudu4z7 TEST=test on lotus, check plug-in adp ina236 register will setting current data, and power team will verify prochot issue. Signed-off-by: LeoCX_Tsai <LeoCX_Tsai@compal.com>
1 parent 1936bf7 commit e388bb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void ina236_alert_current(int voltage, int current)
5252

5353
watt = (int64_t)current * (int64_t)voltage / 1000000;
5454

55-
if (watt == 180)
55+
if (watt >= 180)
5656
value = current * 4 * 12 / 10;
5757
else
5858
value = current * 4;

0 commit comments

Comments
 (0)