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

Commit 2f70573c authored by Neeraj Soni's avatar Neeraj Soni Committed by Gerrit - the friendly Code Review server
Browse files

mmc: host: Fix the offset for ICE address



ICE address space was added to command queue address
space in eMMC JEDEC v5.2 spec so adapt the offset of
crypto registers accordingly.

Change-Id: I409b031edcf1055289f2868aaaa00adc20eabfec
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 8e301b52
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -411,6 +411,11 @@ static int cmdq_enable(struct mmc_host *mmc)
	if (cmdq_host_is_crypto_supported(cq_host)) {
		cmdq_crypto_enable(cq_host);
		cqcfg |= CQ_ICE_ENABLE;
		/* For SDHC v5.0 onwards, ICE 3.0 specific registers are added
		 * in CQ register space, due to which few CQ registers are
		 * shifted. Set offset_changed boolean to use updated address.
		 */
		cq_host->offset_changed = true;
	}

	cmdq_writel(cq_host, cqcfg, CQCFG);