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

Commit f920fa1a authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Extend profile integrity whitelist values



First profile load bit can be set until SOH algorithm clears it.
If the HLOS or bootloader has loaded the profile again by that
time or the bootloader has re-estimated SOC again, that would
change the profile integrity word. Extend the whitelist values to
take care of that.

Change-Id: I35722328518003bd815c04c17f5473fdc0b3b900
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 1cef27dd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1592,6 +1592,10 @@ static bool is_profile_load_required(struct fg_gen4_chip *chip)
		BOOTLOADER_LOAD_BIT | BOOTLOADER_RESTART_BIT,
		BOOTLOADER_RESTART_BIT | HLOS_RESTART_BIT,
		BOOTLOADER_LOAD_BIT | FIRST_PROFILE_LOAD_BIT,
		BOOTLOADER_LOAD_BIT | BOOTLOADER_RESTART_BIT |
			FIRST_PROFILE_LOAD_BIT,
		HLOS_RESTART_BIT | BOOTLOADER_RESTART_BIT |
			FIRST_PROFILE_LOAD_BIT,
	};

	rc = fg_sram_read(fg, PROFILE_INTEGRITY_WORD,