Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25044c0e authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: smb1360: Fix the fuel-gauge and IRQ register offsets



All the fuel-gauge registers are from a base offset
of 0x60 and not 0xE0, fix them.
The IRQ_E register offset is 0x54 and not 0x53.

Change-Id: I2d9ef53a0528574aa3860797a7f6086d2de01e01
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent de9a0741
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@
#define IRQ_C_CHG_TERM			BIT(0)

#define IRQ_D_REG			0x53
#define IRQ_E_REG			0x53
#define IRQ_E_REG			0x54
#define IRQ_F_REG			0x55

#define IRQ_G_REG			0x56
@@ -162,10 +162,10 @@
#define VTG_EMPTY_REG			0x26

/* FG SHADOW registers */
#define SHDW_FG_MSYS_SOC		0xE1
#define SHDW_FG_CAPACITY		0xE2
#define SHDW_FG_VTG_NOW			0xE9
#define SHDW_FG_BATT_TEMP		0xED
#define SHDW_FG_MSYS_SOC		0x61
#define SHDW_FG_CAPACITY		0x62
#define SHDW_FG_VTG_NOW			0x69
#define SHDW_FG_BATT_TEMP		0x6D

/* Constants */
#define CURRENT_100_MA			100