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

Commit 308cb81a authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Change profile compare length



Currently, we're reading the entire profile partition to see if
the profile loaded onto FG SRAM is matching with the profile
available from battery profile. Based on the parameters defined
in the battery profile, some of the words in the profile region
would be modified after loading the profile. Hence reduce the
profile compare length to 24 bytes to determine whether the
profile is different.

Change-Id: Id156f837bd6b9d330f0bc251e4dbbb9e2f054ed6
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 5cd75ce7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

#define FG_SRAM_LEN			960
#define PROFILE_LEN			416
#define PROFILE_COMP_LEN		208
#define PROFILE_COMP_LEN		24
#define KI_COEFF_SOC_LEVELS		3
#define KI_COEFF_MAX			15564
#define SLOPE_LIMIT_NUM_COEFFS		4