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

Commit c9a726af authored by Taniya Das's avatar Taniya Das
Browse files

clk: qcom: gdsc: Update the BLK_ARES assert/deassert delay



The recommendation is to ensure that the ACD BLK_ARES/IROOT_ARES are
kept asserted for at least 100 us before being de-asserted.

Change-Id: I7910a86bcff1589d8ace975c6c18e2b86e924714
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent b794964c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -251,11 +251,13 @@ static int gdsc_enable(struct regulator_dev *rdev)
				regmap_write(sc->acd_misc_reset, REG_OFFSET, regval);

			/*
			 * BLK_ARES should be kept asserted for 1us before
			 * being de-asserted.
			 * BLK_ARES should be kept asserted for at least 100 us
			 * before being de-asserted.
			 * This is necessary as in HW there are 3 demet cells
			 * on sleep clk to synchronize the BLK_ARES.
			 */
			gdsc_mb(sc);
			udelay(1);
			udelay(100);

			regval &= ~BCR_BLK_ARES_BIT;
			regmap_write(sc->sw_reset, REG_OFFSET, regval);