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

Commit 9ae46537 authored by Osvaldo Banuelos's avatar Osvaldo Banuelos
Browse files

msm: qpnp-power-on: Update SOFT_RB_SPARE register mask



A total of six bits are allocated in the SOFT_RB_SPARE PON register
to store device restart reasons. Update the mask and shift values
used to write to this register so that a total of 64 restart reasons
can be supported using the top six bits of this register.

Change-Id: Ic4fdcb958d6aed18e7983c739bfd36decde72a5a
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent 60be5879
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ int qpnp_pon_set_restart_reason(enum pon_restart_reason reason)
		return 0;

	rc = qpnp_pon_masked_write(pon, QPNP_PON_SOFT_RB_SPARE(pon),
					PON_MASK(7, 5), (reason << 5));
					PON_MASK(7, 2), (reason << 2));
	if (rc)
		dev_err(&pon->spmi->dev,
				"Unable to write to addr=%x, rc(%d)\n",