Skip to content

Commit 5079701

Browse files
committed
lotus: modify ina236 init register
Signed-off-by: LeoCX_Tsai <LeoCX_Tsai@compal.com>
1 parent da01080 commit 5079701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ static void board_ina236_init(void)
5252
if (rv != EC_SUCCESS)
5353
CPRINTS("ina236 write config fail");
5454

55-
rv = ina2xx_write(0, INA2XX_REG_ALERT, 0x5DC0);
55+
rv = ina2xx_write(0, INA2XX_REG_ALERT, 0x3E80);
5656

5757
if (rv != EC_SUCCESS)
5858
CPRINTS("ina236 write alert fail");
5959

60-
rv = ina2xx_write(0, INA2XX_REG_MASK, 0x800A);
60+
rv = ina2xx_write(0, INA2XX_REG_MASK, 0x8008);
6161

6262
if (rv != EC_SUCCESS)
6363
CPRINTS("ina236 write mask fail");

0 commit comments

Comments
 (0)